configure 712 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell [email protected] and
  259. $0: http://bugzilla.redhat.com/ about your system,
  260. $0: including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='dirsrv'
  542. PACKAGE_TARNAME='dirsrv'
  543. PACKAGE_VERSION='1.0'
  544. PACKAGE_STRING='dirsrv 1.0'
  545. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_default_prefix=/opt/$PACKAGE_NAME
  584. ac_subst_vars='am__EXEEXT_FALSE
  585. am__EXEEXT_TRUE
  586. LTLIBOBJS
  587. vendor
  588. capbrand
  589. brand
  590. localrundir
  591. pcre_libdir
  592. pcre_lib
  593. pcre_inc
  594. netsnmp_link
  595. netsnmp_libdir
  596. netsnmp_lib
  597. netsnmp_inc
  598. icu_bin
  599. icu_inc
  600. icu_lib
  601. svrcore_lib
  602. svrcore_inc
  603. sasl_path
  604. sasl_libdir
  605. sasl_lib
  606. sasl_inc
  607. db_libver
  608. db_bindir
  609. db_libdir
  610. db_lib
  611. db_incdir
  612. db_inc
  613. ol_libver
  614. plainldif_opts
  615. ldaptool_opts
  616. ldaptool_bindir
  617. openldap_bindir
  618. openldap_libdir
  619. openldap_lib
  620. openldap_inc
  621. ldapsdk_bindir
  622. ldapsdk_libdir
  623. ldapsdk_lib
  624. ldapsdk_inc
  625. nss_libdir
  626. nss_lib
  627. nss_inc
  628. nspr_libdir
  629. nspr_lib
  630. nspr_inc
  631. SPARC_FALSE
  632. SPARC_TRUE
  633. OPENLDAP_FALSE
  634. OPENLDAP_TRUE
  635. SELINUX_FALSE
  636. SELINUX_TRUE
  637. PACKAGE_BASE_VERSION
  638. with_selinux
  639. kerberos_libdir
  640. kerberos_lib
  641. kerberos_inc
  642. KRB5_CONFIG_BIN
  643. NETSNMP_CONFIG
  644. ICU_CONFIG
  645. ldap_lib_ldif
  646. SYSTEMD_FALSE
  647. SYSTEMD_TRUE
  648. SOLARIS_FALSE
  649. SOLARIS_TRUE
  650. HPUX_FALSE
  651. HPUX_TRUE
  652. initconfigdir
  653. sttyexec
  654. perlexec
  655. initdir
  656. LIBCRUN
  657. LIBCSTD
  658. LIBDL
  659. LIBNSL
  660. LIBSOCKET
  661. LIBCRYPT
  662. THREADLIB
  663. WINNT_FALSE
  664. WINNT_TRUE
  665. instconfigdir
  666. defaultgroup
  667. defaultuser
  668. updatedir
  669. mibdir
  670. infdir
  671. perldir
  672. scripttemplatedir
  673. serverplugindir
  674. serverincdir
  675. serverdir
  676. schemadir
  677. propertydir
  678. sampledatadir
  679. configdir
  680. with_systemdgroupname
  681. with_systemdsystemconfdir
  682. with_systemdsystemunitdir
  683. PKG_CONFIG_LIBDIR
  684. PKG_CONFIG_PATH
  685. PKG_CONFIG
  686. with_tmpfiles_d
  687. with_fhs_opt
  688. enable_posix_winsync_FALSE
  689. enable_posix_winsync_TRUE
  690. enable_acctpolicy_FALSE
  691. enable_acctpolicy_TRUE
  692. enable_presence_FALSE
  693. enable_presence_TRUE
  694. enable_bitwise_FALSE
  695. enable_bitwise_TRUE
  696. enable_auto_dn_suffix_FALSE
  697. enable_auto_dn_suffix_TRUE
  698. enable_autobind_FALSE
  699. enable_autobind_TRUE
  700. enable_ldapi_FALSE
  701. enable_ldapi_TRUE
  702. enable_dna_FALSE
  703. enable_dna_TRUE
  704. enable_pam_passthru_FALSE
  705. enable_pam_passthru_TRUE
  706. BUNDLE_FALSE
  707. BUNDLE_TRUE
  708. debug_defs
  709. LIBOBJS
  710. CXXCPP
  711. CPP
  712. OTOOL64
  713. OTOOL
  714. LIPO
  715. NMEDIT
  716. DSYMUTIL
  717. MANIFEST_TOOL
  718. RANLIB
  719. ac_ct_AR
  720. AR
  721. DLLTOOL
  722. OBJDUMP
  723. LN_S
  724. NM
  725. ac_ct_DUMPBIN
  726. DUMPBIN
  727. LD
  728. FGREP
  729. EGREP
  730. GREP
  731. SED
  732. LIBTOOL
  733. am__fastdepCCAS_FALSE
  734. am__fastdepCCAS_TRUE
  735. CCASDEPMODE
  736. CCASFLAGS
  737. CCAS
  738. am__fastdepCC_FALSE
  739. am__fastdepCC_TRUE
  740. CCDEPMODE
  741. ac_ct_CC
  742. CFLAGS
  743. CC
  744. am__fastdepCXX_FALSE
  745. am__fastdepCXX_TRUE
  746. CXXDEPMODE
  747. am__nodep
  748. AMDEPBACKSLASH
  749. AMDEP_FALSE
  750. AMDEP_TRUE
  751. am__quote
  752. am__include
  753. DEPDIR
  754. OBJEXT
  755. EXEEXT
  756. ac_ct_CXX
  757. CPPFLAGS
  758. LDFLAGS
  759. CXXFLAGS
  760. CXX
  761. host_os
  762. host_vendor
  763. host_cpu
  764. host
  765. build_os
  766. build_vendor
  767. build_cpu
  768. build
  769. MAINT
  770. MAINTAINER_MODE_FALSE
  771. MAINTAINER_MODE_TRUE
  772. CONSOLE_VERSION
  773. AM_BACKSLASH
  774. AM_DEFAULT_VERBOSITY
  775. AM_DEFAULT_V
  776. AM_V
  777. am__untar
  778. am__tar
  779. AMTAR
  780. am__leading_dot
  781. SET_MAKE
  782. AWK
  783. mkdir_p
  784. MKDIR_P
  785. INSTALL_STRIP_PROGRAM
  786. STRIP
  787. install_sh
  788. MAKEINFO
  789. AUTOHEADER
  790. AUTOMAKE
  791. AUTOCONF
  792. ACLOCAL
  793. VERSION
  794. PACKAGE
  795. CYGPATH_W
  796. am__isrc
  797. INSTALL_DATA
  798. INSTALL_SCRIPT
  799. INSTALL_PROGRAM
  800. target_alias
  801. host_alias
  802. build_alias
  803. LIBS
  804. ECHO_T
  805. ECHO_N
  806. ECHO_C
  807. DEFS
  808. mandir
  809. localedir
  810. libdir
  811. psdir
  812. pdfdir
  813. dvidir
  814. htmldir
  815. infodir
  816. docdir
  817. oldincludedir
  818. includedir
  819. localstatedir
  820. sharedstatedir
  821. sysconfdir
  822. datadir
  823. datarootdir
  824. libexecdir
  825. sbindir
  826. bindir
  827. program_transform_name
  828. prefix
  829. exec_prefix
  830. PACKAGE_URL
  831. PACKAGE_BUGREPORT
  832. PACKAGE_STRING
  833. PACKAGE_VERSION
  834. PACKAGE_TARNAME
  835. PACKAGE_NAME
  836. PATH_SEPARATOR
  837. SHELL'
  838. ac_subst_files=''
  839. ac_user_opts='
  840. enable_option_checking
  841. enable_silent_rules
  842. enable_maintainer_mode
  843. enable_dependency_tracking
  844. enable_static
  845. enable_shared
  846. with_pic
  847. enable_fast_install
  848. with_gnu_ld
  849. with_sysroot
  850. enable_libtool_lock
  851. enable_debug
  852. enable_bundle
  853. enable_pam_passthru
  854. enable_dna
  855. enable_ldapi
  856. enable_autobind
  857. enable_bitwise
  858. enable_presence
  859. enable_acctpolicy
  860. enable_posix_winsync
  861. with_fhs
  862. with_fhs_opt
  863. with_tmpfiles_d
  864. with_perldir
  865. with_systemdsystemunitdir
  866. with_systemdsystemconfdir
  867. with_systemdgroupname
  868. with_instconfigdir
  869. with_initddir
  870. with_nspr
  871. with_nspr_inc
  872. with_nspr_lib
  873. with_nss
  874. with_nss_inc
  875. with_nss_lib
  876. with_openldap
  877. with_openldap_inc
  878. with_openldap_lib
  879. with_openldap_bin
  880. with_ldapsdk
  881. with_ldapsdk_inc
  882. with_ldapsdk_lib
  883. with_ldapsdk_bin
  884. with_db
  885. with_db_inc
  886. with_db_lib
  887. with_sasl
  888. with_sasl_inc
  889. with_sasl_lib
  890. with_svrcore
  891. with_svrcore_inc
  892. with_svrcore_lib
  893. with_icu
  894. with_icu_inc
  895. with_icu_lib
  896. with_icu_bin
  897. with_netsnmp
  898. with_netsnmp_inc
  899. with_netsnmp_lib
  900. with_kerberos
  901. with_kerberos_inc
  902. with_kerberos_lib
  903. with_pcre
  904. with_selinux
  905. '
  906. ac_precious_vars='build_alias
  907. host_alias
  908. target_alias
  909. CXX
  910. CXXFLAGS
  911. LDFLAGS
  912. LIBS
  913. CPPFLAGS
  914. CCC
  915. CC
  916. CFLAGS
  917. CCAS
  918. CCASFLAGS
  919. CPP
  920. CXXCPP
  921. PKG_CONFIG
  922. PKG_CONFIG_PATH
  923. PKG_CONFIG_LIBDIR'
  924. # Initialize some variables set by options.
  925. ac_init_help=
  926. ac_init_version=false
  927. ac_unrecognized_opts=
  928. ac_unrecognized_sep=
  929. # The variables have the same names as the options, with
  930. # dashes changed to underlines.
  931. cache_file=/dev/null
  932. exec_prefix=NONE
  933. no_create=
  934. no_recursion=
  935. prefix=NONE
  936. program_prefix=NONE
  937. program_suffix=NONE
  938. program_transform_name=s,x,x,
  939. silent=
  940. site=
  941. srcdir=
  942. verbose=
  943. x_includes=NONE
  944. x_libraries=NONE
  945. # Installation directory options.
  946. # These are left unexpanded so users can "make install exec_prefix=/foo"
  947. # and all the variables that are supposed to be based on exec_prefix
  948. # by default will actually change.
  949. # Use braces instead of parens because sh, perl, etc. also accept them.
  950. # (The list follows the same order as the GNU Coding Standards.)
  951. bindir='${exec_prefix}/bin'
  952. sbindir='${exec_prefix}/sbin'
  953. libexecdir='${exec_prefix}/libexec'
  954. datarootdir='${prefix}/share'
  955. datadir='${datarootdir}'
  956. sysconfdir='${prefix}/etc'
  957. sharedstatedir='${prefix}/com'
  958. localstatedir='${prefix}/var'
  959. includedir='${prefix}/include'
  960. oldincludedir='/usr/include'
  961. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  962. infodir='${datarootdir}/info'
  963. htmldir='${docdir}'
  964. dvidir='${docdir}'
  965. pdfdir='${docdir}'
  966. psdir='${docdir}'
  967. libdir='${exec_prefix}/lib'
  968. localedir='${datarootdir}/locale'
  969. mandir='${datarootdir}/man'
  970. ac_prev=
  971. ac_dashdash=
  972. for ac_option
  973. do
  974. # If the previous option needs an argument, assign it.
  975. if test -n "$ac_prev"; then
  976. eval $ac_prev=\$ac_option
  977. ac_prev=
  978. continue
  979. fi
  980. case $ac_option in
  981. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  982. *=) ac_optarg= ;;
  983. *) ac_optarg=yes ;;
  984. esac
  985. # Accept the important Cygnus configure options, so we can diagnose typos.
  986. case $ac_dashdash$ac_option in
  987. --)
  988. ac_dashdash=yes ;;
  989. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  990. ac_prev=bindir ;;
  991. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  992. bindir=$ac_optarg ;;
  993. -build | --build | --buil | --bui | --bu)
  994. ac_prev=build_alias ;;
  995. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  996. build_alias=$ac_optarg ;;
  997. -cache-file | --cache-file | --cache-fil | --cache-fi \
  998. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  999. ac_prev=cache_file ;;
  1000. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1001. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1002. cache_file=$ac_optarg ;;
  1003. --config-cache | -C)
  1004. cache_file=config.cache ;;
  1005. -datadir | --datadir | --datadi | --datad)
  1006. ac_prev=datadir ;;
  1007. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1008. datadir=$ac_optarg ;;
  1009. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1010. | --dataroo | --dataro | --datar)
  1011. ac_prev=datarootdir ;;
  1012. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1013. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1014. datarootdir=$ac_optarg ;;
  1015. -disable-* | --disable-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error $? "invalid feature name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "enable_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval enable_$ac_useropt=no ;;
  1030. -docdir | --docdir | --docdi | --doc | --do)
  1031. ac_prev=docdir ;;
  1032. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1033. docdir=$ac_optarg ;;
  1034. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1035. ac_prev=dvidir ;;
  1036. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1037. dvidir=$ac_optarg ;;
  1038. -enable-* | --enable-*)
  1039. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  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--enable-$ac_useropt_orig"
  1050. ac_unrecognized_sep=', ';;
  1051. esac
  1052. eval enable_$ac_useropt=\$ac_optarg ;;
  1053. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1054. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1055. | --exec | --exe | --ex)
  1056. ac_prev=exec_prefix ;;
  1057. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1058. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1059. | --exec=* | --exe=* | --ex=*)
  1060. exec_prefix=$ac_optarg ;;
  1061. -gas | --gas | --ga | --g)
  1062. # Obsolete; use --with-gas.
  1063. with_gas=yes ;;
  1064. -help | --help | --hel | --he | -h)
  1065. ac_init_help=long ;;
  1066. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1067. ac_init_help=recursive ;;
  1068. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1069. ac_init_help=short ;;
  1070. -host | --host | --hos | --ho)
  1071. ac_prev=host_alias ;;
  1072. -host=* | --host=* | --hos=* | --ho=*)
  1073. host_alias=$ac_optarg ;;
  1074. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1075. ac_prev=htmldir ;;
  1076. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1077. | --ht=*)
  1078. htmldir=$ac_optarg ;;
  1079. -includedir | --includedir | --includedi | --included | --include \
  1080. | --includ | --inclu | --incl | --inc)
  1081. ac_prev=includedir ;;
  1082. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1083. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1084. includedir=$ac_optarg ;;
  1085. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1086. ac_prev=infodir ;;
  1087. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1088. infodir=$ac_optarg ;;
  1089. -libdir | --libdir | --libdi | --libd)
  1090. ac_prev=libdir ;;
  1091. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1092. libdir=$ac_optarg ;;
  1093. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1094. | --libexe | --libex | --libe)
  1095. ac_prev=libexecdir ;;
  1096. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1097. | --libexe=* | --libex=* | --libe=*)
  1098. libexecdir=$ac_optarg ;;
  1099. -localedir | --localedir | --localedi | --localed | --locale)
  1100. ac_prev=localedir ;;
  1101. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1102. localedir=$ac_optarg ;;
  1103. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1104. | --localstate | --localstat | --localsta | --localst | --locals)
  1105. ac_prev=localstatedir ;;
  1106. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1107. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1108. localstatedir=$ac_optarg ;;
  1109. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1110. ac_prev=mandir ;;
  1111. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1112. mandir=$ac_optarg ;;
  1113. -nfp | --nfp | --nf)
  1114. # Obsolete; use --without-fp.
  1115. with_fp=no ;;
  1116. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1117. | --no-cr | --no-c | -n)
  1118. no_create=yes ;;
  1119. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1120. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1121. no_recursion=yes ;;
  1122. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1123. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1124. | --oldin | --oldi | --old | --ol | --o)
  1125. ac_prev=oldincludedir ;;
  1126. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1127. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1128. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1129. oldincludedir=$ac_optarg ;;
  1130. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1131. ac_prev=prefix ;;
  1132. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1133. prefix=$ac_optarg ;;
  1134. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1135. | --program-pre | --program-pr | --program-p)
  1136. ac_prev=program_prefix ;;
  1137. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1138. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1139. program_prefix=$ac_optarg ;;
  1140. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1141. | --program-suf | --program-su | --program-s)
  1142. ac_prev=program_suffix ;;
  1143. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1144. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1145. program_suffix=$ac_optarg ;;
  1146. -program-transform-name | --program-transform-name \
  1147. | --program-transform-nam | --program-transform-na \
  1148. | --program-transform-n | --program-transform- \
  1149. | --program-transform | --program-transfor \
  1150. | --program-transfo | --program-transf \
  1151. | --program-trans | --program-tran \
  1152. | --progr-tra | --program-tr | --program-t)
  1153. ac_prev=program_transform_name ;;
  1154. -program-transform-name=* | --program-transform-name=* \
  1155. | --program-transform-nam=* | --program-transform-na=* \
  1156. | --program-transform-n=* | --program-transform-=* \
  1157. | --program-transform=* | --program-transfor=* \
  1158. | --program-transfo=* | --program-transf=* \
  1159. | --program-trans=* | --program-tran=* \
  1160. | --progr-tra=* | --program-tr=* | --program-t=*)
  1161. program_transform_name=$ac_optarg ;;
  1162. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1163. ac_prev=pdfdir ;;
  1164. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1165. pdfdir=$ac_optarg ;;
  1166. -psdir | --psdir | --psdi | --psd | --ps)
  1167. ac_prev=psdir ;;
  1168. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1169. psdir=$ac_optarg ;;
  1170. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1171. | -silent | --silent | --silen | --sile | --sil)
  1172. silent=yes ;;
  1173. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1174. ac_prev=sbindir ;;
  1175. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1176. | --sbi=* | --sb=*)
  1177. sbindir=$ac_optarg ;;
  1178. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1179. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1180. | --sharedst | --shareds | --shared | --share | --shar \
  1181. | --sha | --sh)
  1182. ac_prev=sharedstatedir ;;
  1183. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1184. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1185. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1186. | --sha=* | --sh=*)
  1187. sharedstatedir=$ac_optarg ;;
  1188. -site | --site | --sit)
  1189. ac_prev=site ;;
  1190. -site=* | --site=* | --sit=*)
  1191. site=$ac_optarg ;;
  1192. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1193. ac_prev=srcdir ;;
  1194. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1195. srcdir=$ac_optarg ;;
  1196. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1197. | --syscon | --sysco | --sysc | --sys | --sy)
  1198. ac_prev=sysconfdir ;;
  1199. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1200. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1201. sysconfdir=$ac_optarg ;;
  1202. -target | --target | --targe | --targ | --tar | --ta | --t)
  1203. ac_prev=target_alias ;;
  1204. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1205. target_alias=$ac_optarg ;;
  1206. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1207. verbose=yes ;;
  1208. -version | --version | --versio | --versi | --vers | -V)
  1209. ac_init_version=: ;;
  1210. -with-* | --with-*)
  1211. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1212. # Reject names that are not valid shell variable names.
  1213. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1214. as_fn_error $? "invalid package name: $ac_useropt"
  1215. ac_useropt_orig=$ac_useropt
  1216. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1217. case $ac_user_opts in
  1218. *"
  1219. "with_$ac_useropt"
  1220. "*) ;;
  1221. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1222. ac_unrecognized_sep=', ';;
  1223. esac
  1224. eval with_$ac_useropt=\$ac_optarg ;;
  1225. -without-* | --without-*)
  1226. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1227. # Reject names that are not valid shell variable names.
  1228. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1229. as_fn_error $? "invalid package name: $ac_useropt"
  1230. ac_useropt_orig=$ac_useropt
  1231. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1232. case $ac_user_opts in
  1233. *"
  1234. "with_$ac_useropt"
  1235. "*) ;;
  1236. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1237. ac_unrecognized_sep=', ';;
  1238. esac
  1239. eval with_$ac_useropt=no ;;
  1240. --x)
  1241. # Obsolete; use --with-x.
  1242. with_x=yes ;;
  1243. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1244. | --x-incl | --x-inc | --x-in | --x-i)
  1245. ac_prev=x_includes ;;
  1246. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1247. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1248. x_includes=$ac_optarg ;;
  1249. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1250. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1251. ac_prev=x_libraries ;;
  1252. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1253. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1254. x_libraries=$ac_optarg ;;
  1255. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1256. Try \`$0 --help' for more information"
  1257. ;;
  1258. *=*)
  1259. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1260. # Reject names that are not valid shell variable names.
  1261. case $ac_envvar in #(
  1262. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1263. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1264. esac
  1265. eval $ac_envvar=\$ac_optarg
  1266. export $ac_envvar ;;
  1267. *)
  1268. # FIXME: should be removed in autoconf 3.0.
  1269. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1270. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1271. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1272. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1273. ;;
  1274. esac
  1275. done
  1276. if test -n "$ac_prev"; then
  1277. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1278. as_fn_error $? "missing argument to $ac_option"
  1279. fi
  1280. if test -n "$ac_unrecognized_opts"; then
  1281. case $enable_option_checking in
  1282. no) ;;
  1283. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1284. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1285. esac
  1286. fi
  1287. # Check all directory arguments for consistency.
  1288. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1289. datadir sysconfdir sharedstatedir localstatedir includedir \
  1290. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1291. libdir localedir mandir
  1292. do
  1293. eval ac_val=\$$ac_var
  1294. # Remove trailing slashes.
  1295. case $ac_val in
  1296. */ )
  1297. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1298. eval $ac_var=\$ac_val;;
  1299. esac
  1300. # Be sure to have absolute directory names.
  1301. case $ac_val in
  1302. [\\/$]* | ?:[\\/]* ) continue;;
  1303. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1304. esac
  1305. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1306. done
  1307. # There might be people who depend on the old broken behavior: `$host'
  1308. # used to hold the argument of --host etc.
  1309. # FIXME: To remove some day.
  1310. build=$build_alias
  1311. host=$host_alias
  1312. target=$target_alias
  1313. # FIXME: To remove some day.
  1314. if test "x$host_alias" != x; then
  1315. if test "x$build_alias" = x; then
  1316. cross_compiling=maybe
  1317. elif test "x$build_alias" != "x$host_alias"; then
  1318. cross_compiling=yes
  1319. fi
  1320. fi
  1321. ac_tool_prefix=
  1322. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1323. test "$silent" = yes && exec 6>/dev/null
  1324. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1325. ac_ls_di=`ls -di .` &&
  1326. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1327. as_fn_error $? "working directory cannot be determined"
  1328. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1329. as_fn_error $? "pwd does not report name of working directory"
  1330. # Find the source files, if location was not specified.
  1331. if test -z "$srcdir"; then
  1332. ac_srcdir_defaulted=yes
  1333. # Try the directory containing this script, then the parent directory.
  1334. ac_confdir=`$as_dirname -- "$as_myself" ||
  1335. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1336. X"$as_myself" : 'X\(//\)[^/]' \| \
  1337. X"$as_myself" : 'X\(//\)$' \| \
  1338. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1339. $as_echo X"$as_myself" |
  1340. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1341. s//\1/
  1342. q
  1343. }
  1344. /^X\(\/\/\)[^/].*/{
  1345. s//\1/
  1346. q
  1347. }
  1348. /^X\(\/\/\)$/{
  1349. s//\1/
  1350. q
  1351. }
  1352. /^X\(\/\).*/{
  1353. s//\1/
  1354. q
  1355. }
  1356. s/.*/./; q'`
  1357. srcdir=$ac_confdir
  1358. if test ! -r "$srcdir/$ac_unique_file"; then
  1359. srcdir=..
  1360. fi
  1361. else
  1362. ac_srcdir_defaulted=no
  1363. fi
  1364. if test ! -r "$srcdir/$ac_unique_file"; then
  1365. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1366. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1367. fi
  1368. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1369. ac_abs_confdir=`(
  1370. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1371. pwd)`
  1372. # When building in place, set srcdir=.
  1373. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1374. srcdir=.
  1375. fi
  1376. # Remove unnecessary trailing slashes from srcdir.
  1377. # Double slashes in file names in object file debugging info
  1378. # mess up M-x gdb in Emacs.
  1379. case $srcdir in
  1380. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1381. esac
  1382. for ac_var in $ac_precious_vars; do
  1383. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1384. eval ac_env_${ac_var}_value=\$${ac_var}
  1385. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1386. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1387. done
  1388. #
  1389. # Report the --help message.
  1390. #
  1391. if test "$ac_init_help" = "long"; then
  1392. # Omit some internal or obsolete options to make the list less imposing.
  1393. # This message is too long to be a string in the A/UX 3.1 sh.
  1394. cat <<_ACEOF
  1395. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1396. Usage: $0 [OPTION]... [VAR=VALUE]...
  1397. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1398. VAR=VALUE. See below for descriptions of some of the useful variables.
  1399. Defaults for the options are specified in brackets.
  1400. Configuration:
  1401. -h, --help display this help and exit
  1402. --help=short display options specific to this package
  1403. --help=recursive display the short help of all the included packages
  1404. -V, --version display version information and exit
  1405. -q, --quiet, --silent do not print \`checking ...' messages
  1406. --cache-file=FILE cache test results in FILE [disabled]
  1407. -C, --config-cache alias for \`--cache-file=config.cache'
  1408. -n, --no-create do not create output files
  1409. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1410. Installation directories:
  1411. --prefix=PREFIX install architecture-independent files in PREFIX
  1412. [$ac_default_prefix]
  1413. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1414. [PREFIX]
  1415. By default, \`make install' will install all the files in
  1416. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1417. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1418. for instance \`--prefix=\$HOME'.
  1419. For better control, use the options below.
  1420. Fine tuning of the installation directories:
  1421. --bindir=DIR user executables [EPREFIX/bin]
  1422. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1423. --libexecdir=DIR program executables [EPREFIX/libexec]
  1424. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1425. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1426. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1427. --libdir=DIR object code libraries [EPREFIX/lib]
  1428. --includedir=DIR C header files [PREFIX/include]
  1429. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1430. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1431. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1432. --infodir=DIR info documentation [DATAROOTDIR/info]
  1433. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1434. --mandir=DIR man documentation [DATAROOTDIR/man]
  1435. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1436. --htmldir=DIR html documentation [DOCDIR]
  1437. --dvidir=DIR dvi documentation [DOCDIR]
  1438. --pdfdir=DIR pdf documentation [DOCDIR]
  1439. --psdir=DIR ps documentation [DOCDIR]
  1440. _ACEOF
  1441. cat <<\_ACEOF
  1442. Program names:
  1443. --program-prefix=PREFIX prepend PREFIX to installed program names
  1444. --program-suffix=SUFFIX append SUFFIX to installed program names
  1445. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1446. System types:
  1447. --build=BUILD configure for building on BUILD [guessed]
  1448. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1449. _ACEOF
  1450. fi
  1451. if test -n "$ac_init_help"; then
  1452. case $ac_init_help in
  1453. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1454. esac
  1455. cat <<\_ACEOF
  1456. Optional Features:
  1457. --disable-option-checking ignore unrecognized --enable/--with options
  1458. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1459. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1460. --enable-silent-rules less verbose build output (undo: "make V=1")
  1461. --disable-silent-rules verbose build output (undo: "make V=0")
  1462. --enable-maintainer-mode
  1463. enable make rules and dependencies not useful (and
  1464. sometimes confusing) to the casual installer
  1465. --enable-dependency-tracking
  1466. do not reject slow dependency extractors
  1467. --disable-dependency-tracking
  1468. speeds up one-time build
  1469. --enable-static[=PKGS] build static libraries [default=no]
  1470. --enable-shared[=PKGS] build shared libraries [default=yes]
  1471. --enable-fast-install[=PKGS]
  1472. optimize for fast installation [default=yes]
  1473. --disable-libtool-lock avoid locking (might break parallel builds)
  1474. --enable-debug Enable debug features (default: no)
  1475. --enable-bundle Enable bundled dependencies (default: no)
  1476. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1477. yes)
  1478. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1479. plugin (default: yes)
  1480. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1481. (default: yes)
  1482. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1483. support (default: no)
  1484. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1485. domain socket (LDAPI) support (default: no)
  1486. --enable-bitwise enable the bitwise matching rule plugin (default:
  1487. yes)
  1488. --enable-presence enable the presence plugin (default: no)
  1489. --enable-acctpolicy enable the account policy plugin (default: yes)
  1490. --enable-posix-winsync enable support for POSIX user/group attributes in
  1491. winsync (default: yes)
  1492. Optional Packages:
  1493. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1494. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1495. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1496. both]
  1497. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1498. --with-sysroot=DIR Search for dependent libraries within DIR
  1499. (or the compiler's sysroot if not specified).
  1500. --with-fhs Use FHS layout
  1501. --with-fhs-opt Use FHS optional layout
  1502. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1503. (default: $with_tmpfiles_d)
  1504. --with-perldir=PATH Directory for perl)
  1505. --with-systemdsystemunitdir=PATH
  1506. Directory for systemd service files (default:
  1507. $with_systemdsystemunitdir)
  1508. --with-systemdsystemconfdir=PATH
  1509. Directory for systemd service files (default:
  1510. $with_systemdsystemconfdir)
  1511. --with-systemdgroupname=NAME
  1512. Name of group target for all instances (default:
  1513. $with_systemdgroupname)
  1514. --with-instconfigdir=/path
  1515. Base directory for instance specific writable
  1516. configuration directories (default
  1517. $sysconfdir/$PACKAGE_NAME)
  1518. --with-initddir=/path Absolute path (not relative like some of the other
  1519. options) that should contain the SysV init scripts
  1520. (default '$(sysconfdir)/rc.d')
  1521. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1522. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1523. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1524. --with-nss[=PATH] Network Security Services (NSS) directory
  1525. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1526. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1527. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1528. --with-openldap-inc=PATH
  1529. OpenLDAP SDK include directory
  1530. --with-openldap-lib=PATH
  1531. OpenLDAP SDK library directory
  1532. --with-openldap-bin=PATH
  1533. OpenLDAP SDK binary directory
  1534. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1535. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1536. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1537. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1538. --with-db[=PATH] Berkeley DB directory
  1539. --with-db-inc=PATH Berkeley DB include file directory
  1540. --with-db-lib=PATH Berkeley DB library directory
  1541. --with-sasl[=PATH] Use SASL from supplied path
  1542. --with-sasl-inc=PATH SASL include file directory
  1543. --with-sasl-lib=PATH SASL library directory
  1544. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1545. SVRCORE
  1546. --with-svrcore-inc=PATH SVRCORE include file directory
  1547. --with-svrcore-lib=PATH SVRCORE library directory
  1548. --with-icu[=PATH] ICU directory
  1549. --with-icu-inc=PATH ICU include directory
  1550. --with-icu-lib=PATH ICU library directory
  1551. --with-icu-bin=PATH ICU binary directory
  1552. --with-netsnmp[=PATH] Net-SNMP directory
  1553. --with-netsnmp-inc=PATH Net-SNMP include directory
  1554. --with-netsnmp-lib=PATH Net-SNMP library directory
  1555. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1556. the server to authenticate directly with a keytab -
  1557. otherwise, SASL/GSSAPI auth depends on underlying
  1558. SASL libraries and external kinit with a keytab - if
  1559. PATH is not specified, look for kerberos in the
  1560. system locations. This will attempt to use
  1561. krb5-config from the PATH to find the libs and
  1562. include dirs - you can specify KRB5_CONFIG_BIN to
  1563. specify a different filename or absolute path. If
  1564. krb5-config does not work, this will attempt to look
  1565. in various system directories
  1566. --with-kerberos-inc=PATH
  1567. Allows you to explicitly set the directory
  1568. containing the kerberos include files - implies use
  1569. of kerberos
  1570. --with-kerberos-lib=PATH
  1571. Allows you to explicitly set the directory
  1572. containing the kerberos libraries - implies use of
  1573. kerberos
  1574. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1575. --with-selinux Support SELinux policy
  1576. Some influential environment variables:
  1577. CXX C++ compiler command
  1578. CXXFLAGS C++ compiler flags
  1579. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1580. nonstandard directory <lib dir>
  1581. LIBS libraries to pass to the linker, e.g. -l<library>
  1582. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1583. you have headers in a nonstandard directory <include dir>
  1584. CC C compiler command
  1585. CFLAGS C compiler flags
  1586. CCAS assembler compiler command (defaults to CC)
  1587. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1588. CPP C preprocessor
  1589. CXXCPP C++ preprocessor
  1590. PKG_CONFIG path to pkg-config utility
  1591. PKG_CONFIG_PATH
  1592. directories to add to pkg-config's search path
  1593. PKG_CONFIG_LIBDIR
  1594. path overriding pkg-config's built-in search path
  1595. Use these variables to override the choices made by `configure' or to help
  1596. it to find libraries and programs with nonstandard names/locations.
  1597. Report bugs to <http://bugzilla.redhat.com/>.
  1598. _ACEOF
  1599. ac_status=$?
  1600. fi
  1601. if test "$ac_init_help" = "recursive"; then
  1602. # If there are subdirs, report their specific --help.
  1603. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1604. test -d "$ac_dir" ||
  1605. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1606. continue
  1607. ac_builddir=.
  1608. case "$ac_dir" in
  1609. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1610. *)
  1611. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1612. # A ".." for each directory in $ac_dir_suffix.
  1613. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1614. case $ac_top_builddir_sub in
  1615. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1616. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1617. esac ;;
  1618. esac
  1619. ac_abs_top_builddir=$ac_pwd
  1620. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1621. # for backward compatibility:
  1622. ac_top_builddir=$ac_top_build_prefix
  1623. case $srcdir in
  1624. .) # We are building in place.
  1625. ac_srcdir=.
  1626. ac_top_srcdir=$ac_top_builddir_sub
  1627. ac_abs_top_srcdir=$ac_pwd ;;
  1628. [\\/]* | ?:[\\/]* ) # Absolute name.
  1629. ac_srcdir=$srcdir$ac_dir_suffix;
  1630. ac_top_srcdir=$srcdir
  1631. ac_abs_top_srcdir=$srcdir ;;
  1632. *) # Relative name.
  1633. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1634. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1635. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1636. esac
  1637. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1638. cd "$ac_dir" || { ac_status=$?; continue; }
  1639. # Check for guested configure.
  1640. if test -f "$ac_srcdir/configure.gnu"; then
  1641. echo &&
  1642. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1643. elif test -f "$ac_srcdir/configure"; then
  1644. echo &&
  1645. $SHELL "$ac_srcdir/configure" --help=recursive
  1646. else
  1647. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1648. fi || ac_status=$?
  1649. cd "$ac_pwd" || { ac_status=$?; break; }
  1650. done
  1651. fi
  1652. test -n "$ac_init_help" && exit $ac_status
  1653. if $ac_init_version; then
  1654. cat <<\_ACEOF
  1655. dirsrv configure 1.0
  1656. generated by GNU Autoconf 2.69
  1657. Copyright (C) 2012 Free Software Foundation, Inc.
  1658. This configure script is free software; the Free Software Foundation
  1659. gives unlimited permission to copy, distribute and modify it.
  1660. _ACEOF
  1661. exit
  1662. fi
  1663. ## ------------------------ ##
  1664. ## Autoconf initialization. ##
  1665. ## ------------------------ ##
  1666. # ac_fn_cxx_try_compile LINENO
  1667. # ----------------------------
  1668. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1669. ac_fn_cxx_try_compile ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. rm -f conftest.$ac_objext
  1673. if { { ac_try="$ac_compile"
  1674. case "(($ac_try" in
  1675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1676. *) ac_try_echo=$ac_try;;
  1677. esac
  1678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1679. $as_echo "$ac_try_echo"; } >&5
  1680. (eval "$ac_compile") 2>conftest.err
  1681. ac_status=$?
  1682. if test -s conftest.err; then
  1683. grep -v '^ *+' conftest.err >conftest.er1
  1684. cat conftest.er1 >&5
  1685. mv -f conftest.er1 conftest.err
  1686. fi
  1687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1688. test $ac_status = 0; } && {
  1689. test -z "$ac_cxx_werror_flag" ||
  1690. test ! -s conftest.err
  1691. } && test -s conftest.$ac_objext; then :
  1692. ac_retval=0
  1693. else
  1694. $as_echo "$as_me: failed program was:" >&5
  1695. sed 's/^/| /' conftest.$ac_ext >&5
  1696. ac_retval=1
  1697. fi
  1698. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1699. as_fn_set_status $ac_retval
  1700. } # ac_fn_cxx_try_compile
  1701. # ac_fn_c_try_compile LINENO
  1702. # --------------------------
  1703. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1704. ac_fn_c_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_c_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_c_try_compile
  1736. # ac_fn_c_try_link LINENO
  1737. # -----------------------
  1738. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_link ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext conftest$ac_exeext
  1743. if { { ac_try="$ac_link"
  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_link") 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_exeext && {
  1762. test "$cross_compiling" = yes ||
  1763. test -x conftest$ac_exeext
  1764. }; then :
  1765. ac_retval=0
  1766. else
  1767. $as_echo "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=1
  1770. fi
  1771. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1772. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1773. # interfere with the next link command; also delete a directory that is
  1774. # left behind by Apple's compiler. We do this before executing the actions.
  1775. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. as_fn_set_status $ac_retval
  1778. } # ac_fn_c_try_link
  1779. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1780. # -------------------------------------------------------
  1781. # Tests whether HEADER exists and can be compiled using the include files in
  1782. # INCLUDES, setting the cache variable VAR accordingly.
  1783. ac_fn_c_check_header_compile ()
  1784. {
  1785. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1787. $as_echo_n "checking for $2... " >&6; }
  1788. if eval \${$3+:} false; then :
  1789. $as_echo_n "(cached) " >&6
  1790. else
  1791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1792. /* end confdefs.h. */
  1793. $4
  1794. #include <$2>
  1795. _ACEOF
  1796. if ac_fn_c_try_compile "$LINENO"; then :
  1797. eval "$3=yes"
  1798. else
  1799. eval "$3=no"
  1800. fi
  1801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1802. fi
  1803. eval ac_res=\$$3
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1805. $as_echo "$ac_res" >&6; }
  1806. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1807. } # ac_fn_c_check_header_compile
  1808. # ac_fn_c_try_cpp LINENO
  1809. # ----------------------
  1810. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1811. ac_fn_c_try_cpp ()
  1812. {
  1813. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1814. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1815. case "(($ac_try" in
  1816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1817. *) ac_try_echo=$ac_try;;
  1818. esac
  1819. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1820. $as_echo "$ac_try_echo"; } >&5
  1821. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1822. ac_status=$?
  1823. if test -s conftest.err; then
  1824. grep -v '^ *+' conftest.err >conftest.er1
  1825. cat conftest.er1 >&5
  1826. mv -f conftest.er1 conftest.err
  1827. fi
  1828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1829. test $ac_status = 0; } > conftest.i && {
  1830. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1831. test ! -s conftest.err
  1832. }; then :
  1833. ac_retval=0
  1834. else
  1835. $as_echo "$as_me: failed program was:" >&5
  1836. sed 's/^/| /' conftest.$ac_ext >&5
  1837. ac_retval=1
  1838. fi
  1839. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1840. as_fn_set_status $ac_retval
  1841. } # ac_fn_c_try_cpp
  1842. # ac_fn_c_try_run LINENO
  1843. # ----------------------
  1844. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1845. # that executables *can* be run.
  1846. ac_fn_c_try_run ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if { { ac_try="$ac_link"
  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_link") 2>&5
  1857. ac_status=$?
  1858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1859. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1860. { { case "(($ac_try" in
  1861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1862. *) ac_try_echo=$ac_try;;
  1863. esac
  1864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1865. $as_echo "$ac_try_echo"; } >&5
  1866. (eval "$ac_try") 2>&5
  1867. ac_status=$?
  1868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1869. test $ac_status = 0; }; }; then :
  1870. ac_retval=0
  1871. else
  1872. $as_echo "$as_me: program exited with status $ac_status" >&5
  1873. $as_echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. ac_retval=$ac_status
  1876. fi
  1877. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1878. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1879. as_fn_set_status $ac_retval
  1880. } # ac_fn_c_try_run
  1881. # ac_fn_c_check_func LINENO FUNC VAR
  1882. # ----------------------------------
  1883. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1884. ac_fn_c_check_func ()
  1885. {
  1886. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1888. $as_echo_n "checking for $2... " >&6; }
  1889. if eval \${$3+:} false; then :
  1890. $as_echo_n "(cached) " >&6
  1891. else
  1892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1893. /* end confdefs.h. */
  1894. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1895. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1896. #define $2 innocuous_$2
  1897. /* System header to define __stub macros and hopefully few prototypes,
  1898. which can conflict with char $2 (); below.
  1899. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1900. <limits.h> exists even on freestanding compilers. */
  1901. #ifdef __STDC__
  1902. # include <limits.h>
  1903. #else
  1904. # include <assert.h>
  1905. #endif
  1906. #undef $2
  1907. /* Override any GCC internal prototype to avoid an error.
  1908. Use char because int might match the return type of a GCC
  1909. builtin and then its argument prototype would still apply. */
  1910. #ifdef __cplusplus
  1911. extern "C"
  1912. #endif
  1913. char $2 ();
  1914. /* The GNU C library defines this for functions which it implements
  1915. to always fail with ENOSYS. Some functions are actually named
  1916. something starting with __ and the normal name is an alias. */
  1917. #if defined __stub_$2 || defined __stub___$2
  1918. choke me
  1919. #endif
  1920. int
  1921. main ()
  1922. {
  1923. return $2 ();
  1924. ;
  1925. return 0;
  1926. }
  1927. _ACEOF
  1928. if ac_fn_c_try_link "$LINENO"; then :
  1929. eval "$3=yes"
  1930. else
  1931. eval "$3=no"
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext \
  1934. conftest$ac_exeext conftest.$ac_ext
  1935. fi
  1936. eval ac_res=\$$3
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1938. $as_echo "$ac_res" >&6; }
  1939. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1940. } # ac_fn_c_check_func
  1941. # ac_fn_cxx_try_cpp LINENO
  1942. # ------------------------
  1943. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1944. ac_fn_cxx_try_cpp ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1948. case "(($ac_try" in
  1949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1950. *) ac_try_echo=$ac_try;;
  1951. esac
  1952. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1953. $as_echo "$ac_try_echo"; } >&5
  1954. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1955. ac_status=$?
  1956. if test -s conftest.err; then
  1957. grep -v '^ *+' conftest.err >conftest.er1
  1958. cat conftest.er1 >&5
  1959. mv -f conftest.er1 conftest.err
  1960. fi
  1961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1962. test $ac_status = 0; } > conftest.i && {
  1963. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1964. test ! -s conftest.err
  1965. }; then :
  1966. ac_retval=0
  1967. else
  1968. $as_echo "$as_me: failed program was:" >&5
  1969. sed 's/^/| /' conftest.$ac_ext >&5
  1970. ac_retval=1
  1971. fi
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. as_fn_set_status $ac_retval
  1974. } # ac_fn_cxx_try_cpp
  1975. # ac_fn_cxx_try_link LINENO
  1976. # -------------------------
  1977. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1978. ac_fn_cxx_try_link ()
  1979. {
  1980. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1981. rm -f conftest.$ac_objext conftest$ac_exeext
  1982. if { { ac_try="$ac_link"
  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_link") 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; } && {
  1998. test -z "$ac_cxx_werror_flag" ||
  1999. test ! -s conftest.err
  2000. } && test -s conftest$ac_exeext && {
  2001. test "$cross_compiling" = yes ||
  2002. test -x conftest$ac_exeext
  2003. }; then :
  2004. ac_retval=0
  2005. else
  2006. $as_echo "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. ac_retval=1
  2009. fi
  2010. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2011. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2012. # interfere with the next link command; also delete a directory that is
  2013. # left behind by Apple's compiler. We do this before executing the actions.
  2014. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2015. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2016. as_fn_set_status $ac_retval
  2017. } # ac_fn_cxx_try_link
  2018. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2019. # -------------------------------------------------------
  2020. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2021. # the include files in INCLUDES and setting the cache variable VAR
  2022. # accordingly.
  2023. ac_fn_c_check_header_mongrel ()
  2024. {
  2025. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2026. if eval \${$3+:} false; then :
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2028. $as_echo_n "checking for $2... " >&6; }
  2029. if eval \${$3+:} false; then :
  2030. $as_echo_n "(cached) " >&6
  2031. fi
  2032. eval ac_res=\$$3
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2034. $as_echo "$ac_res" >&6; }
  2035. else
  2036. # Is the header compilable?
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2038. $as_echo_n "checking $2 usability... " >&6; }
  2039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2040. /* end confdefs.h. */
  2041. $4
  2042. #include <$2>
  2043. _ACEOF
  2044. if ac_fn_c_try_compile "$LINENO"; then :
  2045. ac_header_compiler=yes
  2046. else
  2047. ac_header_compiler=no
  2048. fi
  2049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2051. $as_echo "$ac_header_compiler" >&6; }
  2052. # Is the header present?
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2054. $as_echo_n "checking $2 presence... " >&6; }
  2055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2056. /* end confdefs.h. */
  2057. #include <$2>
  2058. _ACEOF
  2059. if ac_fn_c_try_cpp "$LINENO"; then :
  2060. ac_header_preproc=yes
  2061. else
  2062. ac_header_preproc=no
  2063. fi
  2064. rm -f conftest.err conftest.i conftest.$ac_ext
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2066. $as_echo "$ac_header_preproc" >&6; }
  2067. # So? What about this header?
  2068. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2069. yes:no: )
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2071. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2073. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2074. ;;
  2075. no:yes:* )
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2077. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2079. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2081. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2083. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2085. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2086. ( $as_echo "## ------------------------------------------ ##
  2087. ## Report this to http://bugzilla.redhat.com/ ##
  2088. ## ------------------------------------------ ##"
  2089. ) | sed "s/^/$as_me: WARNING: /" >&2
  2090. ;;
  2091. esac
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2093. $as_echo_n "checking for $2... " >&6; }
  2094. if eval \${$3+:} false; then :
  2095. $as_echo_n "(cached) " >&6
  2096. else
  2097. eval "$3=\$ac_header_compiler"
  2098. fi
  2099. eval ac_res=\$$3
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2101. $as_echo "$ac_res" >&6; }
  2102. fi
  2103. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2104. } # ac_fn_c_check_header_mongrel
  2105. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2106. # -------------------------------------------
  2107. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2108. # variable VAR accordingly.
  2109. ac_fn_c_check_type ()
  2110. {
  2111. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2113. $as_echo_n "checking for $2... " >&6; }
  2114. if eval \${$3+:} false; then :
  2115. $as_echo_n "(cached) " >&6
  2116. else
  2117. eval "$3=no"
  2118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2119. /* end confdefs.h. */
  2120. $4
  2121. int
  2122. main ()
  2123. {
  2124. if (sizeof ($2))
  2125. return 0;
  2126. ;
  2127. return 0;
  2128. }
  2129. _ACEOF
  2130. if ac_fn_c_try_compile "$LINENO"; then :
  2131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2132. /* end confdefs.h. */
  2133. $4
  2134. int
  2135. main ()
  2136. {
  2137. if (sizeof (($2)))
  2138. return 0;
  2139. ;
  2140. return 0;
  2141. }
  2142. _ACEOF
  2143. if ac_fn_c_try_compile "$LINENO"; then :
  2144. else
  2145. eval "$3=yes"
  2146. fi
  2147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2148. fi
  2149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2150. fi
  2151. eval ac_res=\$$3
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2153. $as_echo "$ac_res" >&6; }
  2154. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2155. } # ac_fn_c_check_type
  2156. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2157. # ---------------------------------------------
  2158. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2159. # accordingly.
  2160. ac_fn_c_check_decl ()
  2161. {
  2162. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2163. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2164. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2166. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2167. if eval \${$3+:} false; then :
  2168. $as_echo_n "(cached) " >&6
  2169. else
  2170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2171. /* end confdefs.h. */
  2172. $4
  2173. int
  2174. main ()
  2175. {
  2176. #ifndef $as_decl_name
  2177. #ifdef __cplusplus
  2178. (void) $as_decl_use;
  2179. #else
  2180. (void) $as_decl_name;
  2181. #endif
  2182. #endif
  2183. ;
  2184. return 0;
  2185. }
  2186. _ACEOF
  2187. if ac_fn_c_try_compile "$LINENO"; then :
  2188. eval "$3=yes"
  2189. else
  2190. eval "$3=no"
  2191. fi
  2192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2193. fi
  2194. eval ac_res=\$$3
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2196. $as_echo "$ac_res" >&6; }
  2197. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2198. } # ac_fn_c_check_decl
  2199. cat >config.log <<_ACEOF
  2200. This file contains any messages produced by compilers while
  2201. running configure, to aid debugging if configure makes a mistake.
  2202. It was created by dirsrv $as_me 1.0, which was
  2203. generated by GNU Autoconf 2.69. Invocation command line was
  2204. $ $0 $@
  2205. _ACEOF
  2206. exec 5>>config.log
  2207. {
  2208. cat <<_ASUNAME
  2209. ## --------- ##
  2210. ## Platform. ##
  2211. ## --------- ##
  2212. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2213. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2214. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2215. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2216. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2217. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2218. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2219. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2220. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2221. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2222. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2223. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2224. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2225. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2226. _ASUNAME
  2227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2228. for as_dir in $PATH
  2229. do
  2230. IFS=$as_save_IFS
  2231. test -z "$as_dir" && as_dir=.
  2232. $as_echo "PATH: $as_dir"
  2233. done
  2234. IFS=$as_save_IFS
  2235. } >&5
  2236. cat >&5 <<_ACEOF
  2237. ## ----------- ##
  2238. ## Core tests. ##
  2239. ## ----------- ##
  2240. _ACEOF
  2241. # Keep a trace of the command line.
  2242. # Strip out --no-create and --no-recursion so they do not pile up.
  2243. # Strip out --silent because we don't want to record it for future runs.
  2244. # Also quote any args containing shell meta-characters.
  2245. # Make two passes to allow for proper duplicate-argument suppression.
  2246. ac_configure_args=
  2247. ac_configure_args0=
  2248. ac_configure_args1=
  2249. ac_must_keep_next=false
  2250. for ac_pass in 1 2
  2251. do
  2252. for ac_arg
  2253. do
  2254. case $ac_arg in
  2255. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2256. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2257. | -silent | --silent | --silen | --sile | --sil)
  2258. continue ;;
  2259. *\'*)
  2260. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2261. esac
  2262. case $ac_pass in
  2263. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2264. 2)
  2265. as_fn_append ac_configure_args1 " '$ac_arg'"
  2266. if test $ac_must_keep_next = true; then
  2267. ac_must_keep_next=false # Got value, back to normal.
  2268. else
  2269. case $ac_arg in
  2270. *=* | --config-cache | -C | -disable-* | --disable-* \
  2271. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2272. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2273. | -with-* | --with-* | -without-* | --without-* | --x)
  2274. case "$ac_configure_args0 " in
  2275. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2276. esac
  2277. ;;
  2278. -* ) ac_must_keep_next=true ;;
  2279. esac
  2280. fi
  2281. as_fn_append ac_configure_args " '$ac_arg'"
  2282. ;;
  2283. esac
  2284. done
  2285. done
  2286. { ac_configure_args0=; unset ac_configure_args0;}
  2287. { ac_configure_args1=; unset ac_configure_args1;}
  2288. # When interrupted or exit'd, cleanup temporary files, and complete
  2289. # config.log. We remove comments because anyway the quotes in there
  2290. # would cause problems or look ugly.
  2291. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2292. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2293. trap 'exit_status=$?
  2294. # Save into config.log some information that might help in debugging.
  2295. {
  2296. echo
  2297. $as_echo "## ---------------- ##
  2298. ## Cache variables. ##
  2299. ## ---------------- ##"
  2300. echo
  2301. # The following way of writing the cache mishandles newlines in values,
  2302. (
  2303. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2304. eval ac_val=\$$ac_var
  2305. case $ac_val in #(
  2306. *${as_nl}*)
  2307. case $ac_var in #(
  2308. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2309. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2310. esac
  2311. case $ac_var in #(
  2312. _ | IFS | as_nl) ;; #(
  2313. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2314. *) { eval $ac_var=; unset $ac_var;} ;;
  2315. esac ;;
  2316. esac
  2317. done
  2318. (set) 2>&1 |
  2319. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2320. *${as_nl}ac_space=\ *)
  2321. sed -n \
  2322. "s/'\''/'\''\\\\'\'''\''/g;
  2323. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2324. ;; #(
  2325. *)
  2326. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2327. ;;
  2328. esac |
  2329. sort
  2330. )
  2331. echo
  2332. $as_echo "## ----------------- ##
  2333. ## Output variables. ##
  2334. ## ----------------- ##"
  2335. echo
  2336. for ac_var in $ac_subst_vars
  2337. do
  2338. eval ac_val=\$$ac_var
  2339. case $ac_val in
  2340. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2341. esac
  2342. $as_echo "$ac_var='\''$ac_val'\''"
  2343. done | sort
  2344. echo
  2345. if test -n "$ac_subst_files"; then
  2346. $as_echo "## ------------------- ##
  2347. ## File substitutions. ##
  2348. ## ------------------- ##"
  2349. echo
  2350. for ac_var in $ac_subst_files
  2351. do
  2352. eval ac_val=\$$ac_var
  2353. case $ac_val in
  2354. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2355. esac
  2356. $as_echo "$ac_var='\''$ac_val'\''"
  2357. done | sort
  2358. echo
  2359. fi
  2360. if test -s confdefs.h; then
  2361. $as_echo "## ----------- ##
  2362. ## confdefs.h. ##
  2363. ## ----------- ##"
  2364. echo
  2365. cat confdefs.h
  2366. echo
  2367. fi
  2368. test "$ac_signal" != 0 &&
  2369. $as_echo "$as_me: caught signal $ac_signal"
  2370. $as_echo "$as_me: exit $exit_status"
  2371. } >&5
  2372. rm -f core *.core core.conftest.* &&
  2373. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2374. exit $exit_status
  2375. ' 0
  2376. for ac_signal in 1 2 13 15; do
  2377. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2378. done
  2379. ac_signal=0
  2380. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2381. rm -f -r conftest* confdefs.h
  2382. $as_echo "/* confdefs.h */" > confdefs.h
  2383. # Predefined preprocessor variables.
  2384. cat >>confdefs.h <<_ACEOF
  2385. #define PACKAGE_NAME "$PACKAGE_NAME"
  2386. _ACEOF
  2387. cat >>confdefs.h <<_ACEOF
  2388. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2389. _ACEOF
  2390. cat >>confdefs.h <<_ACEOF
  2391. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2392. _ACEOF
  2393. cat >>confdefs.h <<_ACEOF
  2394. #define PACKAGE_STRING "$PACKAGE_STRING"
  2395. _ACEOF
  2396. cat >>confdefs.h <<_ACEOF
  2397. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2398. _ACEOF
  2399. cat >>confdefs.h <<_ACEOF
  2400. #define PACKAGE_URL "$PACKAGE_URL"
  2401. _ACEOF
  2402. # Let the site file select an alternate cache file if it wants to.
  2403. # Prefer an explicitly selected file to automatically selected ones.
  2404. ac_site_file1=NONE
  2405. ac_site_file2=NONE
  2406. if test -n "$CONFIG_SITE"; then
  2407. # We do not want a PATH search for config.site.
  2408. case $CONFIG_SITE in #((
  2409. -*) ac_site_file1=./$CONFIG_SITE;;
  2410. */*) ac_site_file1=$CONFIG_SITE;;
  2411. *) ac_site_file1=./$CONFIG_SITE;;
  2412. esac
  2413. elif test "x$prefix" != xNONE; then
  2414. ac_site_file1=$prefix/share/config.site
  2415. ac_site_file2=$prefix/etc/config.site
  2416. else
  2417. ac_site_file1=$ac_default_prefix/share/config.site
  2418. ac_site_file2=$ac_default_prefix/etc/config.site
  2419. fi
  2420. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2421. do
  2422. test "x$ac_site_file" = xNONE && continue
  2423. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2425. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2426. sed 's/^/| /' "$ac_site_file" >&5
  2427. . "$ac_site_file" \
  2428. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2430. as_fn_error $? "failed to load site script $ac_site_file
  2431. See \`config.log' for more details" "$LINENO" 5; }
  2432. fi
  2433. done
  2434. if test -r "$cache_file"; then
  2435. # Some versions of bash will fail to source /dev/null (special files
  2436. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2437. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2439. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2440. case $cache_file in
  2441. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2442. *) . "./$cache_file";;
  2443. esac
  2444. fi
  2445. else
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2447. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2448. >$cache_file
  2449. fi
  2450. as_fn_append ac_header_list " stdlib.h"
  2451. as_fn_append ac_header_list " unistd.h"
  2452. as_fn_append ac_header_list " sys/param.h"
  2453. # Check that the precious variables saved in the cache have kept the same
  2454. # value.
  2455. ac_cache_corrupted=false
  2456. for ac_var in $ac_precious_vars; do
  2457. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2458. eval ac_new_set=\$ac_env_${ac_var}_set
  2459. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2460. eval ac_new_val=\$ac_env_${ac_var}_value
  2461. case $ac_old_set,$ac_new_set in
  2462. set,)
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2464. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2465. ac_cache_corrupted=: ;;
  2466. ,set)
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2468. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2469. ac_cache_corrupted=: ;;
  2470. ,);;
  2471. *)
  2472. if test "x$ac_old_val" != "x$ac_new_val"; then
  2473. # differences in whitespace do not lead to failure.
  2474. ac_old_val_w=`echo x $ac_old_val`
  2475. ac_new_val_w=`echo x $ac_new_val`
  2476. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2478. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2479. ac_cache_corrupted=:
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2482. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2483. eval $ac_var=\$ac_old_val
  2484. fi
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2486. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2488. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2489. fi;;
  2490. esac
  2491. # Pass precious variables to config.status.
  2492. if test "$ac_new_set" = set; then
  2493. case $ac_new_val in
  2494. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2495. *) ac_arg=$ac_var=$ac_new_val ;;
  2496. esac
  2497. case " $ac_configure_args " in
  2498. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2499. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2500. esac
  2501. fi
  2502. done
  2503. if $ac_cache_corrupted; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2507. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2508. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2509. fi
  2510. ## -------------------- ##
  2511. ## Main body of script. ##
  2512. ## -------------------- ##
  2513. ac_ext=c
  2514. ac_cpp='$CPP $CPPFLAGS'
  2515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2518. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2519. ac_config_headers="$ac_config_headers config.h"
  2520. # include the version information
  2521. . $srcdir/VERSION.sh
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2523. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2524. cat >>confdefs.h <<_ACEOF
  2525. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2526. _ACEOF
  2527. cat >>confdefs.h <<_ACEOF
  2528. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2529. _ACEOF
  2530. cat >>confdefs.h <<_ACEOF
  2531. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2532. _ACEOF
  2533. cat >>confdefs.h <<_ACEOF
  2534. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2535. _ACEOF
  2536. am__api_version='1.13'
  2537. ac_aux_dir=
  2538. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2539. if test -f "$ac_dir/install-sh"; then
  2540. ac_aux_dir=$ac_dir
  2541. ac_install_sh="$ac_aux_dir/install-sh -c"
  2542. break
  2543. elif test -f "$ac_dir/install.sh"; then
  2544. ac_aux_dir=$ac_dir
  2545. ac_install_sh="$ac_aux_dir/install.sh -c"
  2546. break
  2547. elif test -f "$ac_dir/shtool"; then
  2548. ac_aux_dir=$ac_dir
  2549. ac_install_sh="$ac_aux_dir/shtool install -c"
  2550. break
  2551. fi
  2552. done
  2553. if test -z "$ac_aux_dir"; then
  2554. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2555. fi
  2556. # These three variables are undocumented and unsupported,
  2557. # and are intended to be withdrawn in a future Autoconf release.
  2558. # They can cause serious problems if a builder's source tree is in a directory
  2559. # whose full name contains unusual characters.
  2560. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2561. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2562. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2563. # Find a good install program. We prefer a C program (faster),
  2564. # so one script is as good as another. But avoid the broken or
  2565. # incompatible versions:
  2566. # SysV /etc/install, /usr/sbin/install
  2567. # SunOS /usr/etc/install
  2568. # IRIX /sbin/install
  2569. # AIX /bin/install
  2570. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2571. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2572. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2573. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2574. # OS/2's system install, which has a completely different semantic
  2575. # ./install, which can be erroneously created by make from ./install.sh.
  2576. # Reject install programs that cannot install multiple files.
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2578. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2579. if test -z "$INSTALL"; then
  2580. if ${ac_cv_path_install+:} false; then :
  2581. $as_echo_n "(cached) " >&6
  2582. else
  2583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2584. for as_dir in $PATH
  2585. do
  2586. IFS=$as_save_IFS
  2587. test -z "$as_dir" && as_dir=.
  2588. # Account for people who put trailing slashes in PATH elements.
  2589. case $as_dir/ in #((
  2590. ./ | .// | /[cC]/* | \
  2591. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2592. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2593. /usr/ucb/* ) ;;
  2594. *)
  2595. # OSF1 and SCO ODT 3.0 have their own names for install.
  2596. # Don't use installbsd from OSF since it installs stuff as root
  2597. # by default.
  2598. for ac_prog in ginstall scoinst install; do
  2599. for ac_exec_ext in '' $ac_executable_extensions; do
  2600. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2601. if test $ac_prog = install &&
  2602. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2603. # AIX install. It has an incompatible calling convention.
  2604. :
  2605. elif test $ac_prog = install &&
  2606. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2607. # program-specific install script used by HP pwplus--don't use.
  2608. :
  2609. else
  2610. rm -rf conftest.one conftest.two conftest.dir
  2611. echo one > conftest.one
  2612. echo two > conftest.two
  2613. mkdir conftest.dir
  2614. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2615. test -s conftest.one && test -s conftest.two &&
  2616. test -s conftest.dir/conftest.one &&
  2617. test -s conftest.dir/conftest.two
  2618. then
  2619. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2620. break 3
  2621. fi
  2622. fi
  2623. fi
  2624. done
  2625. done
  2626. ;;
  2627. esac
  2628. done
  2629. IFS=$as_save_IFS
  2630. rm -rf conftest.one conftest.two conftest.dir
  2631. fi
  2632. if test "${ac_cv_path_install+set}" = set; then
  2633. INSTALL=$ac_cv_path_install
  2634. else
  2635. # As a last resort, use the slow shell script. Don't cache a
  2636. # value for INSTALL within a source directory, because that will
  2637. # break other packages using the cache if that directory is
  2638. # removed, or if the value is a relative name.
  2639. INSTALL=$ac_install_sh
  2640. fi
  2641. fi
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2643. $as_echo "$INSTALL" >&6; }
  2644. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2645. # It thinks the first close brace ends the variable substitution.
  2646. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2647. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2648. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2650. $as_echo_n "checking whether build environment is sane... " >&6; }
  2651. # Reject unsafe characters in $srcdir or the absolute working directory
  2652. # name. Accept space and tab only in the latter.
  2653. am_lf='
  2654. '
  2655. case `pwd` in
  2656. *[\\\"\#\$\&\'\`$am_lf]*)
  2657. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2658. esac
  2659. case $srcdir in
  2660. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2661. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2662. esac
  2663. # Do 'set' in a subshell so we don't clobber the current shell's
  2664. # arguments. Must try -L first in case configure is actually a
  2665. # symlink; some systems play weird games with the mod time of symlinks
  2666. # (eg FreeBSD returns the mod time of the symlink's containing
  2667. # directory).
  2668. if (
  2669. am_has_slept=no
  2670. for am_try in 1 2; do
  2671. echo "timestamp, slept: $am_has_slept" > conftest.file
  2672. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2673. if test "$*" = "X"; then
  2674. # -L didn't work.
  2675. set X `ls -t "$srcdir/configure" conftest.file`
  2676. fi
  2677. if test "$*" != "X $srcdir/configure conftest.file" \
  2678. && test "$*" != "X conftest.file $srcdir/configure"; then
  2679. # If neither matched, then we have a broken ls. This can happen
  2680. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2681. # broken ls alias from the environment. This has actually
  2682. # happened. Such a system could not be considered "sane".
  2683. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2684. alias in your environment" "$LINENO" 5
  2685. fi
  2686. if test "$2" = conftest.file || test $am_try -eq 2; then
  2687. break
  2688. fi
  2689. # Just in case.
  2690. sleep 1
  2691. am_has_slept=yes
  2692. done
  2693. test "$2" = conftest.file
  2694. )
  2695. then
  2696. # Ok.
  2697. :
  2698. else
  2699. as_fn_error $? "newly created file is older than distributed files!
  2700. Check your system clock" "$LINENO" 5
  2701. fi
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2703. $as_echo "yes" >&6; }
  2704. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2705. # generated files are strictly newer.
  2706. am_sleep_pid=
  2707. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2708. ( sleep 1 ) &
  2709. am_sleep_pid=$!
  2710. fi
  2711. rm -f conftest.file
  2712. test "$program_prefix" != NONE &&
  2713. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2714. # Use a double $ so make ignores it.
  2715. test "$program_suffix" != NONE &&
  2716. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2717. # Double any \ or $.
  2718. # By default was `s,x,x', remove it if useless.
  2719. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2720. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2721. # expand $ac_aux_dir to an absolute path
  2722. am_aux_dir=`cd $ac_aux_dir && pwd`
  2723. if test x"${MISSING+set}" != xset; then
  2724. case $am_aux_dir in
  2725. *\ * | *\ *)
  2726. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2727. *)
  2728. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2729. esac
  2730. fi
  2731. # Use eval to expand $SHELL
  2732. if eval "$MISSING --is-lightweight"; then
  2733. am_missing_run="$MISSING "
  2734. else
  2735. am_missing_run=
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2737. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2738. fi
  2739. if test x"${install_sh}" != xset; then
  2740. case $am_aux_dir in
  2741. *\ * | *\ *)
  2742. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2743. *)
  2744. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2745. esac
  2746. fi
  2747. # Installed binaries are usually stripped using 'strip' when the user
  2748. # run "make install-strip". However 'strip' might not be the right
  2749. # tool to use in cross-compilation environments, therefore Automake
  2750. # will honor the 'STRIP' environment variable to overrule this program.
  2751. if test "$cross_compiling" != no; then
  2752. if test -n "$ac_tool_prefix"; then
  2753. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2754. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2756. $as_echo_n "checking for $ac_word... " >&6; }
  2757. if ${ac_cv_prog_STRIP+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. if test -n "$STRIP"; then
  2761. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2762. else
  2763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2764. for as_dir in $PATH
  2765. do
  2766. IFS=$as_save_IFS
  2767. test -z "$as_dir" && as_dir=.
  2768. for ac_exec_ext in '' $ac_executable_extensions; do
  2769. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2770. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2772. break 2
  2773. fi
  2774. done
  2775. done
  2776. IFS=$as_save_IFS
  2777. fi
  2778. fi
  2779. STRIP=$ac_cv_prog_STRIP
  2780. if test -n "$STRIP"; then
  2781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2782. $as_echo "$STRIP" >&6; }
  2783. else
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2785. $as_echo "no" >&6; }
  2786. fi
  2787. fi
  2788. if test -z "$ac_cv_prog_STRIP"; then
  2789. ac_ct_STRIP=$STRIP
  2790. # Extract the first word of "strip", so it can be a program name with args.
  2791. set dummy strip; ac_word=$2
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2793. $as_echo_n "checking for $ac_word... " >&6; }
  2794. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2795. $as_echo_n "(cached) " >&6
  2796. else
  2797. if test -n "$ac_ct_STRIP"; then
  2798. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2799. else
  2800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2801. for as_dir in $PATH
  2802. do
  2803. IFS=$as_save_IFS
  2804. test -z "$as_dir" && as_dir=.
  2805. for ac_exec_ext in '' $ac_executable_extensions; do
  2806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2807. ac_cv_prog_ac_ct_STRIP="strip"
  2808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2809. break 2
  2810. fi
  2811. done
  2812. done
  2813. IFS=$as_save_IFS
  2814. fi
  2815. fi
  2816. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2817. if test -n "$ac_ct_STRIP"; then
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2819. $as_echo "$ac_ct_STRIP" >&6; }
  2820. else
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2822. $as_echo "no" >&6; }
  2823. fi
  2824. if test "x$ac_ct_STRIP" = x; then
  2825. STRIP=":"
  2826. else
  2827. case $cross_compiling:$ac_tool_warned in
  2828. yes:)
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2830. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2831. ac_tool_warned=yes ;;
  2832. esac
  2833. STRIP=$ac_ct_STRIP
  2834. fi
  2835. else
  2836. STRIP="$ac_cv_prog_STRIP"
  2837. fi
  2838. fi
  2839. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2841. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2842. if test -z "$MKDIR_P"; then
  2843. if ${ac_cv_path_mkdir+:} false; then :
  2844. $as_echo_n "(cached) " >&6
  2845. else
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2848. do
  2849. IFS=$as_save_IFS
  2850. test -z "$as_dir" && as_dir=.
  2851. for ac_prog in mkdir gmkdir; do
  2852. for ac_exec_ext in '' $ac_executable_extensions; do
  2853. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2854. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2855. 'mkdir (GNU coreutils) '* | \
  2856. 'mkdir (coreutils) '* | \
  2857. 'mkdir (fileutils) '4.1*)
  2858. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2859. break 3;;
  2860. esac
  2861. done
  2862. done
  2863. done
  2864. IFS=$as_save_IFS
  2865. fi
  2866. test -d ./--version && rmdir ./--version
  2867. if test "${ac_cv_path_mkdir+set}" = set; then
  2868. MKDIR_P="$ac_cv_path_mkdir -p"
  2869. else
  2870. # As a last resort, use the slow shell script. Don't cache a
  2871. # value for MKDIR_P within a source directory, because that will
  2872. # break other packages using the cache if that directory is
  2873. # removed, or if the value is a relative name.
  2874. MKDIR_P="$ac_install_sh -d"
  2875. fi
  2876. fi
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2878. $as_echo "$MKDIR_P" >&6; }
  2879. for ac_prog in gawk mawk nawk awk
  2880. do
  2881. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2882. set dummy $ac_prog; ac_word=$2
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2884. $as_echo_n "checking for $ac_word... " >&6; }
  2885. if ${ac_cv_prog_AWK+:} false; then :
  2886. $as_echo_n "(cached) " >&6
  2887. else
  2888. if test -n "$AWK"; then
  2889. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2890. else
  2891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2892. for as_dir in $PATH
  2893. do
  2894. IFS=$as_save_IFS
  2895. test -z "$as_dir" && as_dir=.
  2896. for ac_exec_ext in '' $ac_executable_extensions; do
  2897. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2898. ac_cv_prog_AWK="$ac_prog"
  2899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2900. break 2
  2901. fi
  2902. done
  2903. done
  2904. IFS=$as_save_IFS
  2905. fi
  2906. fi
  2907. AWK=$ac_cv_prog_AWK
  2908. if test -n "$AWK"; then
  2909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2910. $as_echo "$AWK" >&6; }
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. fi
  2915. test -n "$AWK" && break
  2916. done
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2918. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2919. set x ${MAKE-make}
  2920. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2921. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2922. $as_echo_n "(cached) " >&6
  2923. else
  2924. cat >conftest.make <<\_ACEOF
  2925. SHELL = /bin/sh
  2926. all:
  2927. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2928. _ACEOF
  2929. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2930. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2931. *@@@%%%=?*=@@@%%%*)
  2932. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2933. *)
  2934. eval ac_cv_prog_make_${ac_make}_set=no;;
  2935. esac
  2936. rm -f conftest.make
  2937. fi
  2938. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2940. $as_echo "yes" >&6; }
  2941. SET_MAKE=
  2942. else
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2944. $as_echo "no" >&6; }
  2945. SET_MAKE="MAKE=${MAKE-make}"
  2946. fi
  2947. rm -rf .tst 2>/dev/null
  2948. mkdir .tst 2>/dev/null
  2949. if test -d .tst; then
  2950. am__leading_dot=.
  2951. else
  2952. am__leading_dot=_
  2953. fi
  2954. rmdir .tst 2>/dev/null
  2955. # Check whether --enable-silent-rules was given.
  2956. if test "${enable_silent_rules+set}" = set; then :
  2957. enableval=$enable_silent_rules;
  2958. fi
  2959. case $enable_silent_rules in # (((
  2960. yes) AM_DEFAULT_VERBOSITY=0;;
  2961. no) AM_DEFAULT_VERBOSITY=1;;
  2962. *) AM_DEFAULT_VERBOSITY=1;;
  2963. esac
  2964. am_make=${MAKE-make}
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2966. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2967. if ${am_cv_make_support_nested_variables+:} false; then :
  2968. $as_echo_n "(cached) " >&6
  2969. else
  2970. if $as_echo 'TRUE=$(BAR$(V))
  2971. BAR0=false
  2972. BAR1=true
  2973. V=1
  2974. am__doit:
  2975. @$(TRUE)
  2976. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2977. am_cv_make_support_nested_variables=yes
  2978. else
  2979. am_cv_make_support_nested_variables=no
  2980. fi
  2981. fi
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2983. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2984. if test $am_cv_make_support_nested_variables = yes; then
  2985. AM_V='$(V)'
  2986. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2987. else
  2988. AM_V=$AM_DEFAULT_VERBOSITY
  2989. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2990. fi
  2991. AM_BACKSLASH='\'
  2992. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2993. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2994. # is not polluted with repeated "-I."
  2995. am__isrc=' -I$(srcdir)'
  2996. # test to see if srcdir already configured
  2997. if test -f $srcdir/config.status; then
  2998. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2999. fi
  3000. fi
  3001. # test whether we have cygpath
  3002. if test -z "$CYGPATH_W"; then
  3003. if (cygpath --version) >/dev/null 2>/dev/null; then
  3004. CYGPATH_W='cygpath -w'
  3005. else
  3006. CYGPATH_W=echo
  3007. fi
  3008. fi
  3009. # Define the identity of the package.
  3010. PACKAGE='dirsrv'
  3011. VERSION='1.0'
  3012. # Some tools Automake needs.
  3013. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3014. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3015. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3016. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3017. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3018. # For better backward compatibility. To be removed once Automake 1.9.x
  3019. # dies out for good. For more background, see:
  3020. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3021. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3022. mkdir_p='$(MKDIR_P)'
  3023. # We need awk for the "check" target. The system "awk" is bad on
  3024. # some platforms.
  3025. # Always define AMTAR for backward compatibility. Yes, it's still used
  3026. # in the wild :-( We should find a proper way to deprecate it ...
  3027. AMTAR='$${TAR-tar}'
  3028. # We'll loop over all known methods to create a tar archive until one works.
  3029. _am_tools='gnutar pax cpio none'
  3030. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3031. # define these for automake distdir
  3032. VERSION=$PACKAGE_VERSION
  3033. PACKAGE=$PACKAGE_TARNAME
  3034. cat >>confdefs.h <<_ACEOF
  3035. #define VERSION "$VERSION"
  3036. _ACEOF
  3037. cat >>confdefs.h <<_ACEOF
  3038. #define PACKAGE "$PACKAGE"
  3039. _ACEOF
  3040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3041. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3042. # Check whether --enable-maintainer-mode was given.
  3043. if test "${enable_maintainer_mode+set}" = set; then :
  3044. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3045. else
  3046. USE_MAINTAINER_MODE=no
  3047. fi
  3048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3049. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3050. if test $USE_MAINTAINER_MODE = yes; then
  3051. MAINTAINER_MODE_TRUE=
  3052. MAINTAINER_MODE_FALSE='#'
  3053. else
  3054. MAINTAINER_MODE_TRUE='#'
  3055. MAINTAINER_MODE_FALSE=
  3056. fi
  3057. MAINT=$MAINTAINER_MODE_TRUE
  3058. # Make sure we can run config.sub.
  3059. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3060. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3062. $as_echo_n "checking build system type... " >&6; }
  3063. if ${ac_cv_build+:} false; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. ac_build_alias=$build_alias
  3067. test "x$ac_build_alias" = x &&
  3068. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3069. test "x$ac_build_alias" = x &&
  3070. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3071. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3072. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3073. fi
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3075. $as_echo "$ac_cv_build" >&6; }
  3076. case $ac_cv_build in
  3077. *-*-*) ;;
  3078. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3079. esac
  3080. build=$ac_cv_build
  3081. ac_save_IFS=$IFS; IFS='-'
  3082. set x $ac_cv_build
  3083. shift
  3084. build_cpu=$1
  3085. build_vendor=$2
  3086. shift; shift
  3087. # Remember, the first character of IFS is used to create $*,
  3088. # except with old shells:
  3089. build_os=$*
  3090. IFS=$ac_save_IFS
  3091. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3093. $as_echo_n "checking host system type... " >&6; }
  3094. if ${ac_cv_host+:} false; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. if test "x$host_alias" = x; then
  3098. ac_cv_host=$ac_cv_build
  3099. else
  3100. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3101. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3102. fi
  3103. fi
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3105. $as_echo "$ac_cv_host" >&6; }
  3106. case $ac_cv_host in
  3107. *-*-*) ;;
  3108. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3109. esac
  3110. host=$ac_cv_host
  3111. ac_save_IFS=$IFS; IFS='-'
  3112. set x $ac_cv_host
  3113. shift
  3114. host_cpu=$1
  3115. host_vendor=$2
  3116. shift; shift
  3117. # Remember, the first character of IFS is used to create $*,
  3118. # except with old shells:
  3119. host_os=$*
  3120. IFS=$ac_save_IFS
  3121. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3122. # Checks for programs.
  3123. ac_ext=cpp
  3124. ac_cpp='$CXXCPP $CPPFLAGS'
  3125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3128. if test -z "$CXX"; then
  3129. if test -n "$CCC"; then
  3130. CXX=$CCC
  3131. else
  3132. if test -n "$ac_tool_prefix"; then
  3133. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3134. do
  3135. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3136. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3138. $as_echo_n "checking for $ac_word... " >&6; }
  3139. if ${ac_cv_prog_CXX+:} false; then :
  3140. $as_echo_n "(cached) " >&6
  3141. else
  3142. if test -n "$CXX"; then
  3143. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3144. else
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3152. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. IFS=$as_save_IFS
  3159. fi
  3160. fi
  3161. CXX=$ac_cv_prog_CXX
  3162. if test -n "$CXX"; then
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3164. $as_echo "$CXX" >&6; }
  3165. else
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3167. $as_echo "no" >&6; }
  3168. fi
  3169. test -n "$CXX" && break
  3170. done
  3171. fi
  3172. if test -z "$CXX"; then
  3173. ac_ct_CXX=$CXX
  3174. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3175. do
  3176. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3177. set dummy $ac_prog; ac_word=$2
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3179. $as_echo_n "checking for $ac_word... " >&6; }
  3180. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. if test -n "$ac_ct_CXX"; then
  3184. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3185. else
  3186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3187. for as_dir in $PATH
  3188. do
  3189. IFS=$as_save_IFS
  3190. test -z "$as_dir" && as_dir=.
  3191. for ac_exec_ext in '' $ac_executable_extensions; do
  3192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3193. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3195. break 2
  3196. fi
  3197. done
  3198. done
  3199. IFS=$as_save_IFS
  3200. fi
  3201. fi
  3202. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3203. if test -n "$ac_ct_CXX"; then
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3205. $as_echo "$ac_ct_CXX" >&6; }
  3206. else
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3208. $as_echo "no" >&6; }
  3209. fi
  3210. test -n "$ac_ct_CXX" && break
  3211. done
  3212. if test "x$ac_ct_CXX" = x; then
  3213. CXX="g++"
  3214. else
  3215. case $cross_compiling:$ac_tool_warned in
  3216. yes:)
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3218. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3219. ac_tool_warned=yes ;;
  3220. esac
  3221. CXX=$ac_ct_CXX
  3222. fi
  3223. fi
  3224. fi
  3225. fi
  3226. # Provide some information about the compiler.
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3228. set X $ac_compile
  3229. ac_compiler=$2
  3230. for ac_option in --version -v -V -qversion; do
  3231. { { ac_try="$ac_compiler $ac_option >&5"
  3232. case "(($ac_try" in
  3233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3234. *) ac_try_echo=$ac_try;;
  3235. esac
  3236. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3237. $as_echo "$ac_try_echo"; } >&5
  3238. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3239. ac_status=$?
  3240. if test -s conftest.err; then
  3241. sed '10a\
  3242. ... rest of stderr output deleted ...
  3243. 10q' conftest.err >conftest.er1
  3244. cat conftest.er1 >&5
  3245. fi
  3246. rm -f conftest.er1 conftest.err
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3248. test $ac_status = 0; }
  3249. done
  3250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3251. /* end confdefs.h. */
  3252. int
  3253. main ()
  3254. {
  3255. ;
  3256. return 0;
  3257. }
  3258. _ACEOF
  3259. ac_clean_files_save=$ac_clean_files
  3260. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3261. # Try to create an executable without -o first, disregard a.out.
  3262. # It will help us diagnose broken compilers, and finding out an intuition
  3263. # of exeext.
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3265. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3266. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3267. # The possible output files:
  3268. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3269. ac_rmfiles=
  3270. for ac_file in $ac_files
  3271. do
  3272. case $ac_file in
  3273. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3274. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3275. esac
  3276. done
  3277. rm -f $ac_rmfiles
  3278. if { { ac_try="$ac_link_default"
  3279. case "(($ac_try" in
  3280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3281. *) ac_try_echo=$ac_try;;
  3282. esac
  3283. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3284. $as_echo "$ac_try_echo"; } >&5
  3285. (eval "$ac_link_default") 2>&5
  3286. ac_status=$?
  3287. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3288. test $ac_status = 0; }; then :
  3289. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3290. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3291. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3292. # so that the user can short-circuit this test for compilers unknown to
  3293. # Autoconf.
  3294. for ac_file in $ac_files ''
  3295. do
  3296. test -f "$ac_file" || continue
  3297. case $ac_file in
  3298. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3299. ;;
  3300. [ab].out )
  3301. # We found the default executable, but exeext='' is most
  3302. # certainly right.
  3303. break;;
  3304. *.* )
  3305. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3306. then :; else
  3307. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3308. fi
  3309. # We set ac_cv_exeext here because the later test for it is not
  3310. # safe: cross compilers may not add the suffix if given an `-o'
  3311. # argument, so we may need to know it at that point already.
  3312. # Even if this section looks crufty: it has the advantage of
  3313. # actually working.
  3314. break;;
  3315. * )
  3316. break;;
  3317. esac
  3318. done
  3319. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3320. else
  3321. ac_file=''
  3322. fi
  3323. if test -z "$ac_file"; then :
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3325. $as_echo "no" >&6; }
  3326. $as_echo "$as_me: failed program was:" >&5
  3327. sed 's/^/| /' conftest.$ac_ext >&5
  3328. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3329. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3330. as_fn_error 77 "C++ compiler cannot create executables
  3331. See \`config.log' for more details" "$LINENO" 5; }
  3332. else
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3334. $as_echo "yes" >&6; }
  3335. fi
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3337. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3339. $as_echo "$ac_file" >&6; }
  3340. ac_exeext=$ac_cv_exeext
  3341. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3342. ac_clean_files=$ac_clean_files_save
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3344. $as_echo_n "checking for suffix of executables... " >&6; }
  3345. if { { ac_try="$ac_link"
  3346. case "(($ac_try" in
  3347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3348. *) ac_try_echo=$ac_try;;
  3349. esac
  3350. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3351. $as_echo "$ac_try_echo"; } >&5
  3352. (eval "$ac_link") 2>&5
  3353. ac_status=$?
  3354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3355. test $ac_status = 0; }; then :
  3356. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3357. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3358. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3359. # `rm'.
  3360. for ac_file in conftest.exe conftest conftest.*; do
  3361. test -f "$ac_file" || continue
  3362. case $ac_file in
  3363. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3364. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3365. break;;
  3366. * ) break;;
  3367. esac
  3368. done
  3369. else
  3370. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3371. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3372. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3373. See \`config.log' for more details" "$LINENO" 5; }
  3374. fi
  3375. rm -f conftest conftest$ac_cv_exeext
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3377. $as_echo "$ac_cv_exeext" >&6; }
  3378. rm -f conftest.$ac_ext
  3379. EXEEXT=$ac_cv_exeext
  3380. ac_exeext=$EXEEXT
  3381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3382. /* end confdefs.h. */
  3383. #include <stdio.h>
  3384. int
  3385. main ()
  3386. {
  3387. FILE *f = fopen ("conftest.out", "w");
  3388. return ferror (f) || fclose (f) != 0;
  3389. ;
  3390. return 0;
  3391. }
  3392. _ACEOF
  3393. ac_clean_files="$ac_clean_files conftest.out"
  3394. # Check that the compiler produces executables we can run. If not, either
  3395. # the compiler is broken, or we cross compile.
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3397. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3398. if test "$cross_compiling" != yes; then
  3399. { { ac_try="$ac_link"
  3400. case "(($ac_try" in
  3401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3402. *) ac_try_echo=$ac_try;;
  3403. esac
  3404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3405. $as_echo "$ac_try_echo"; } >&5
  3406. (eval "$ac_link") 2>&5
  3407. ac_status=$?
  3408. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3409. test $ac_status = 0; }
  3410. if { ac_try='./conftest$ac_cv_exeext'
  3411. { { case "(($ac_try" in
  3412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3413. *) ac_try_echo=$ac_try;;
  3414. esac
  3415. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3416. $as_echo "$ac_try_echo"; } >&5
  3417. (eval "$ac_try") 2>&5
  3418. ac_status=$?
  3419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3420. test $ac_status = 0; }; }; then
  3421. cross_compiling=no
  3422. else
  3423. if test "$cross_compiling" = maybe; then
  3424. cross_compiling=yes
  3425. else
  3426. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3427. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3428. as_fn_error $? "cannot run C++ compiled programs.
  3429. If you meant to cross compile, use \`--host'.
  3430. See \`config.log' for more details" "$LINENO" 5; }
  3431. fi
  3432. fi
  3433. fi
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3435. $as_echo "$cross_compiling" >&6; }
  3436. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3437. ac_clean_files=$ac_clean_files_save
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3439. $as_echo_n "checking for suffix of object files... " >&6; }
  3440. if ${ac_cv_objext+:} false; then :
  3441. $as_echo_n "(cached) " >&6
  3442. else
  3443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3444. /* end confdefs.h. */
  3445. int
  3446. main ()
  3447. {
  3448. ;
  3449. return 0;
  3450. }
  3451. _ACEOF
  3452. rm -f conftest.o conftest.obj
  3453. if { { ac_try="$ac_compile"
  3454. case "(($ac_try" in
  3455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3456. *) ac_try_echo=$ac_try;;
  3457. esac
  3458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3459. $as_echo "$ac_try_echo"; } >&5
  3460. (eval "$ac_compile") 2>&5
  3461. ac_status=$?
  3462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3463. test $ac_status = 0; }; then :
  3464. for ac_file in conftest.o conftest.obj conftest.*; do
  3465. test -f "$ac_file" || continue;
  3466. case $ac_file in
  3467. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3468. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3469. break;;
  3470. esac
  3471. done
  3472. else
  3473. $as_echo "$as_me: failed program was:" >&5
  3474. sed 's/^/| /' conftest.$ac_ext >&5
  3475. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3476. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3477. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3478. See \`config.log' for more details" "$LINENO" 5; }
  3479. fi
  3480. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3481. fi
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3483. $as_echo "$ac_cv_objext" >&6; }
  3484. OBJEXT=$ac_cv_objext
  3485. ac_objext=$OBJEXT
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3487. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3488. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3489. $as_echo_n "(cached) " >&6
  3490. else
  3491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3492. /* end confdefs.h. */
  3493. int
  3494. main ()
  3495. {
  3496. #ifndef __GNUC__
  3497. choke me
  3498. #endif
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. if ac_fn_cxx_try_compile "$LINENO"; then :
  3504. ac_compiler_gnu=yes
  3505. else
  3506. ac_compiler_gnu=no
  3507. fi
  3508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3509. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3510. fi
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3512. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3513. if test $ac_compiler_gnu = yes; then
  3514. GXX=yes
  3515. else
  3516. GXX=
  3517. fi
  3518. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3519. ac_save_CXXFLAGS=$CXXFLAGS
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3521. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3522. if ${ac_cv_prog_cxx_g+:} false; then :
  3523. $as_echo_n "(cached) " >&6
  3524. else
  3525. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3526. ac_cxx_werror_flag=yes
  3527. ac_cv_prog_cxx_g=no
  3528. CXXFLAGS="-g"
  3529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3530. /* end confdefs.h. */
  3531. int
  3532. main ()
  3533. {
  3534. ;
  3535. return 0;
  3536. }
  3537. _ACEOF
  3538. if ac_fn_cxx_try_compile "$LINENO"; then :
  3539. ac_cv_prog_cxx_g=yes
  3540. else
  3541. CXXFLAGS=""
  3542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3543. /* end confdefs.h. */
  3544. int
  3545. main ()
  3546. {
  3547. ;
  3548. return 0;
  3549. }
  3550. _ACEOF
  3551. if ac_fn_cxx_try_compile "$LINENO"; then :
  3552. else
  3553. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3554. CXXFLAGS="-g"
  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. if ac_fn_cxx_try_compile "$LINENO"; then :
  3565. ac_cv_prog_cxx_g=yes
  3566. fi
  3567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3568. fi
  3569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3570. fi
  3571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3572. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3573. fi
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3575. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3576. if test "$ac_test_CXXFLAGS" = set; then
  3577. CXXFLAGS=$ac_save_CXXFLAGS
  3578. elif test $ac_cv_prog_cxx_g = yes; then
  3579. if test "$GXX" = yes; then
  3580. CXXFLAGS="-g -O2"
  3581. else
  3582. CXXFLAGS="-g"
  3583. fi
  3584. else
  3585. if test "$GXX" = yes; then
  3586. CXXFLAGS="-O2"
  3587. else
  3588. CXXFLAGS=
  3589. fi
  3590. fi
  3591. ac_ext=c
  3592. ac_cpp='$CPP $CPPFLAGS'
  3593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3596. DEPDIR="${am__leading_dot}deps"
  3597. ac_config_commands="$ac_config_commands depfiles"
  3598. am_make=${MAKE-make}
  3599. cat > confinc << 'END'
  3600. am__doit:
  3601. @echo this is the am__doit target
  3602. .PHONY: am__doit
  3603. END
  3604. # If we don't find an include directive, just comment out the code.
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3606. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3607. am__include="#"
  3608. am__quote=
  3609. _am_result=none
  3610. # First try GNU make style include.
  3611. echo "include confinc" > confmf
  3612. # Ignore all kinds of additional output from 'make'.
  3613. case `$am_make -s -f confmf 2> /dev/null` in #(
  3614. *the\ am__doit\ target*)
  3615. am__include=include
  3616. am__quote=
  3617. _am_result=GNU
  3618. ;;
  3619. esac
  3620. # Now try BSD make style include.
  3621. if test "$am__include" = "#"; then
  3622. echo '.include "confinc"' > confmf
  3623. case `$am_make -s -f confmf 2> /dev/null` in #(
  3624. *the\ am__doit\ target*)
  3625. am__include=.include
  3626. am__quote="\""
  3627. _am_result=BSD
  3628. ;;
  3629. esac
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3632. $as_echo "$_am_result" >&6; }
  3633. rm -f confinc confmf
  3634. # Check whether --enable-dependency-tracking was given.
  3635. if test "${enable_dependency_tracking+set}" = set; then :
  3636. enableval=$enable_dependency_tracking;
  3637. fi
  3638. if test "x$enable_dependency_tracking" != xno; then
  3639. am_depcomp="$ac_aux_dir/depcomp"
  3640. AMDEPBACKSLASH='\'
  3641. am__nodep='_no'
  3642. fi
  3643. if test "x$enable_dependency_tracking" != xno; then
  3644. AMDEP_TRUE=
  3645. AMDEP_FALSE='#'
  3646. else
  3647. AMDEP_TRUE='#'
  3648. AMDEP_FALSE=
  3649. fi
  3650. depcc="$CXX" am_compiler_list=
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3652. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3653. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3657. # We make a subdir and do the tests there. Otherwise we can end up
  3658. # making bogus files that we don't know about and never remove. For
  3659. # instance it was reported that on HP-UX the gcc test will end up
  3660. # making a dummy file named 'D' -- because '-MD' means "put the output
  3661. # in D".
  3662. rm -rf conftest.dir
  3663. mkdir conftest.dir
  3664. # Copy depcomp to subdir because otherwise we won't find it if we're
  3665. # using a relative directory.
  3666. cp "$am_depcomp" conftest.dir
  3667. cd conftest.dir
  3668. # We will build objects and dependencies in a subdirectory because
  3669. # it helps to detect inapplicable dependency modes. For instance
  3670. # both Tru64's cc and ICC support -MD to output dependencies as a
  3671. # side effect of compilation, but ICC will put the dependencies in
  3672. # the current directory while Tru64 will put them in the object
  3673. # directory.
  3674. mkdir sub
  3675. am_cv_CXX_dependencies_compiler_type=none
  3676. if test "$am_compiler_list" = ""; then
  3677. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3678. fi
  3679. am__universal=false
  3680. case " $depcc " in #(
  3681. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3682. esac
  3683. for depmode in $am_compiler_list; do
  3684. # Setup a source with many dependencies, because some compilers
  3685. # like to wrap large dependency lists on column 80 (with \), and
  3686. # we should not choose a depcomp mode which is confused by this.
  3687. #
  3688. # We need to recreate these files for each test, as the compiler may
  3689. # overwrite some of them when testing with obscure command lines.
  3690. # This happens at least with the AIX C compiler.
  3691. : > sub/conftest.c
  3692. for i in 1 2 3 4 5 6; do
  3693. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3694. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3695. # Solaris 10 /bin/sh.
  3696. echo '/* dummy */' > sub/conftst$i.h
  3697. done
  3698. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3699. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3700. # mode. It turns out that the SunPro C++ compiler does not properly
  3701. # handle '-M -o', and we need to detect this. Also, some Intel
  3702. # versions had trouble with output in subdirs.
  3703. am__obj=sub/conftest.${OBJEXT-o}
  3704. am__minus_obj="-o $am__obj"
  3705. case $depmode in
  3706. gcc)
  3707. # This depmode causes a compiler race in universal mode.
  3708. test "$am__universal" = false || continue
  3709. ;;
  3710. nosideeffect)
  3711. # After this tag, mechanisms are not by side-effect, so they'll
  3712. # only be used when explicitly requested.
  3713. if test "x$enable_dependency_tracking" = xyes; then
  3714. continue
  3715. else
  3716. break
  3717. fi
  3718. ;;
  3719. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3720. # This compiler won't grok '-c -o', but also, the minuso test has
  3721. # not run yet. These depmodes are late enough in the game, and
  3722. # so weak that their functioning should not be impacted.
  3723. am__obj=conftest.${OBJEXT-o}
  3724. am__minus_obj=
  3725. ;;
  3726. none) break ;;
  3727. esac
  3728. if depmode=$depmode \
  3729. source=sub/conftest.c object=$am__obj \
  3730. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3731. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3732. >/dev/null 2>conftest.err &&
  3733. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3734. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3735. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3736. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3737. # icc doesn't choke on unknown options, it will just issue warnings
  3738. # or remarks (even with -Werror). So we grep stderr for any message
  3739. # that says an option was ignored or not supported.
  3740. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3741. # icc: Command line warning: ignoring option '-M'; no argument required
  3742. # The diagnosis changed in icc 8.0:
  3743. # icc: Command line remark: option '-MP' not supported
  3744. if (grep 'ignoring option' conftest.err ||
  3745. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3746. am_cv_CXX_dependencies_compiler_type=$depmode
  3747. break
  3748. fi
  3749. fi
  3750. done
  3751. cd ..
  3752. rm -rf conftest.dir
  3753. else
  3754. am_cv_CXX_dependencies_compiler_type=none
  3755. fi
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3758. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3759. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3760. if
  3761. test "x$enable_dependency_tracking" != xno \
  3762. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3763. am__fastdepCXX_TRUE=
  3764. am__fastdepCXX_FALSE='#'
  3765. else
  3766. am__fastdepCXX_TRUE='#'
  3767. am__fastdepCXX_FALSE=
  3768. fi
  3769. ac_ext=c
  3770. ac_cpp='$CPP $CPPFLAGS'
  3771. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3772. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3773. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3774. if test -n "$ac_tool_prefix"; then
  3775. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3776. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3778. $as_echo_n "checking for $ac_word... " >&6; }
  3779. if ${ac_cv_prog_CC+:} false; then :
  3780. $as_echo_n "(cached) " >&6
  3781. else
  3782. if test -n "$CC"; then
  3783. ac_cv_prog_CC="$CC" # Let the user override the test.
  3784. else
  3785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3786. for as_dir in $PATH
  3787. do
  3788. IFS=$as_save_IFS
  3789. test -z "$as_dir" && as_dir=.
  3790. for ac_exec_ext in '' $ac_executable_extensions; do
  3791. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3792. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3793. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3794. break 2
  3795. fi
  3796. done
  3797. done
  3798. IFS=$as_save_IFS
  3799. fi
  3800. fi
  3801. CC=$ac_cv_prog_CC
  3802. if test -n "$CC"; then
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3804. $as_echo "$CC" >&6; }
  3805. else
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3807. $as_echo "no" >&6; }
  3808. fi
  3809. fi
  3810. if test -z "$ac_cv_prog_CC"; then
  3811. ac_ct_CC=$CC
  3812. # Extract the first word of "gcc", so it can be a program name with args.
  3813. set dummy gcc; ac_word=$2
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3815. $as_echo_n "checking for $ac_word... " >&6; }
  3816. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. if test -n "$ac_ct_CC"; then
  3820. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3821. else
  3822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3823. for as_dir in $PATH
  3824. do
  3825. IFS=$as_save_IFS
  3826. test -z "$as_dir" && as_dir=.
  3827. for ac_exec_ext in '' $ac_executable_extensions; do
  3828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3829. ac_cv_prog_ac_ct_CC="gcc"
  3830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. IFS=$as_save_IFS
  3836. fi
  3837. fi
  3838. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3839. if test -n "$ac_ct_CC"; then
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3841. $as_echo "$ac_ct_CC" >&6; }
  3842. else
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3844. $as_echo "no" >&6; }
  3845. fi
  3846. if test "x$ac_ct_CC" = x; then
  3847. CC=""
  3848. else
  3849. case $cross_compiling:$ac_tool_warned in
  3850. yes:)
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3853. ac_tool_warned=yes ;;
  3854. esac
  3855. CC=$ac_ct_CC
  3856. fi
  3857. else
  3858. CC="$ac_cv_prog_CC"
  3859. fi
  3860. if test -z "$CC"; then
  3861. if test -n "$ac_tool_prefix"; then
  3862. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3863. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3865. $as_echo_n "checking for $ac_word... " >&6; }
  3866. if ${ac_cv_prog_CC+:} false; then :
  3867. $as_echo_n "(cached) " >&6
  3868. else
  3869. if test -n "$CC"; then
  3870. ac_cv_prog_CC="$CC" # Let the user override the test.
  3871. else
  3872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3873. for as_dir in $PATH
  3874. do
  3875. IFS=$as_save_IFS
  3876. test -z "$as_dir" && as_dir=.
  3877. for ac_exec_ext in '' $ac_executable_extensions; do
  3878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3879. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3881. break 2
  3882. fi
  3883. done
  3884. done
  3885. IFS=$as_save_IFS
  3886. fi
  3887. fi
  3888. CC=$ac_cv_prog_CC
  3889. if test -n "$CC"; then
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3891. $as_echo "$CC" >&6; }
  3892. else
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3894. $as_echo "no" >&6; }
  3895. fi
  3896. fi
  3897. fi
  3898. if test -z "$CC"; then
  3899. # Extract the first word of "cc", so it can be a program name with args.
  3900. set dummy cc; ac_word=$2
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3902. $as_echo_n "checking for $ac_word... " >&6; }
  3903. if ${ac_cv_prog_CC+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. if test -n "$CC"; then
  3907. ac_cv_prog_CC="$CC" # Let the user override the test.
  3908. else
  3909. ac_prog_rejected=no
  3910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3911. for as_dir in $PATH
  3912. do
  3913. IFS=$as_save_IFS
  3914. test -z "$as_dir" && as_dir=.
  3915. for ac_exec_ext in '' $ac_executable_extensions; do
  3916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3917. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3918. ac_prog_rejected=yes
  3919. continue
  3920. fi
  3921. ac_cv_prog_CC="cc"
  3922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3923. break 2
  3924. fi
  3925. done
  3926. done
  3927. IFS=$as_save_IFS
  3928. if test $ac_prog_rejected = yes; then
  3929. # We found a bogon in the path, so make sure we never use it.
  3930. set dummy $ac_cv_prog_CC
  3931. shift
  3932. if test $# != 0; then
  3933. # We chose a different compiler from the bogus one.
  3934. # However, it has the same basename, so the bogon will be chosen
  3935. # first if we set CC to just the basename; use the full file name.
  3936. shift
  3937. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3938. fi
  3939. fi
  3940. fi
  3941. fi
  3942. CC=$ac_cv_prog_CC
  3943. if test -n "$CC"; then
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3945. $as_echo "$CC" >&6; }
  3946. else
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3948. $as_echo "no" >&6; }
  3949. fi
  3950. fi
  3951. if test -z "$CC"; then
  3952. if test -n "$ac_tool_prefix"; then
  3953. for ac_prog in cl.exe
  3954. do
  3955. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3956. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3958. $as_echo_n "checking for $ac_word... " >&6; }
  3959. if ${ac_cv_prog_CC+:} false; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. if test -n "$CC"; then
  3963. ac_cv_prog_CC="$CC" # Let the user override the test.
  3964. else
  3965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3966. for as_dir in $PATH
  3967. do
  3968. IFS=$as_save_IFS
  3969. test -z "$as_dir" && as_dir=.
  3970. for ac_exec_ext in '' $ac_executable_extensions; do
  3971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3972. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3974. break 2
  3975. fi
  3976. done
  3977. done
  3978. IFS=$as_save_IFS
  3979. fi
  3980. fi
  3981. CC=$ac_cv_prog_CC
  3982. if test -n "$CC"; then
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3984. $as_echo "$CC" >&6; }
  3985. else
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3987. $as_echo "no" >&6; }
  3988. fi
  3989. test -n "$CC" && break
  3990. done
  3991. fi
  3992. if test -z "$CC"; then
  3993. ac_ct_CC=$CC
  3994. for ac_prog in cl.exe
  3995. do
  3996. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3997. set dummy $ac_prog; ac_word=$2
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3999. $as_echo_n "checking for $ac_word... " >&6; }
  4000. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. if test -n "$ac_ct_CC"; then
  4004. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4005. else
  4006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4007. for as_dir in $PATH
  4008. do
  4009. IFS=$as_save_IFS
  4010. test -z "$as_dir" && as_dir=.
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4013. ac_cv_prog_ac_ct_CC="$ac_prog"
  4014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4015. break 2
  4016. fi
  4017. done
  4018. done
  4019. IFS=$as_save_IFS
  4020. fi
  4021. fi
  4022. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4023. if test -n "$ac_ct_CC"; then
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4025. $as_echo "$ac_ct_CC" >&6; }
  4026. else
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4028. $as_echo "no" >&6; }
  4029. fi
  4030. test -n "$ac_ct_CC" && break
  4031. done
  4032. if test "x$ac_ct_CC" = x; then
  4033. CC=""
  4034. else
  4035. case $cross_compiling:$ac_tool_warned in
  4036. yes:)
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4039. ac_tool_warned=yes ;;
  4040. esac
  4041. CC=$ac_ct_CC
  4042. fi
  4043. fi
  4044. fi
  4045. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4047. as_fn_error $? "no acceptable C compiler found in \$PATH
  4048. See \`config.log' for more details" "$LINENO" 5; }
  4049. # Provide some information about the compiler.
  4050. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4051. set X $ac_compile
  4052. ac_compiler=$2
  4053. for ac_option in --version -v -V -qversion; do
  4054. { { ac_try="$ac_compiler $ac_option >&5"
  4055. case "(($ac_try" in
  4056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4057. *) ac_try_echo=$ac_try;;
  4058. esac
  4059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4060. $as_echo "$ac_try_echo"; } >&5
  4061. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4062. ac_status=$?
  4063. if test -s conftest.err; then
  4064. sed '10a\
  4065. ... rest of stderr output deleted ...
  4066. 10q' conftest.err >conftest.er1
  4067. cat conftest.er1 >&5
  4068. fi
  4069. rm -f conftest.er1 conftest.err
  4070. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4071. test $ac_status = 0; }
  4072. done
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4074. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4075. if ${ac_cv_c_compiler_gnu+:} false; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4079. /* end confdefs.h. */
  4080. int
  4081. main ()
  4082. {
  4083. #ifndef __GNUC__
  4084. choke me
  4085. #endif
  4086. ;
  4087. return 0;
  4088. }
  4089. _ACEOF
  4090. if ac_fn_c_try_compile "$LINENO"; then :
  4091. ac_compiler_gnu=yes
  4092. else
  4093. ac_compiler_gnu=no
  4094. fi
  4095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4096. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4099. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4100. if test $ac_compiler_gnu = yes; then
  4101. GCC=yes
  4102. else
  4103. GCC=
  4104. fi
  4105. ac_test_CFLAGS=${CFLAGS+set}
  4106. ac_save_CFLAGS=$CFLAGS
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4108. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4109. if ${ac_cv_prog_cc_g+:} false; then :
  4110. $as_echo_n "(cached) " >&6
  4111. else
  4112. ac_save_c_werror_flag=$ac_c_werror_flag
  4113. ac_c_werror_flag=yes
  4114. ac_cv_prog_cc_g=no
  4115. CFLAGS="-g"
  4116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4117. /* end confdefs.h. */
  4118. int
  4119. main ()
  4120. {
  4121. ;
  4122. return 0;
  4123. }
  4124. _ACEOF
  4125. if ac_fn_c_try_compile "$LINENO"; then :
  4126. ac_cv_prog_cc_g=yes
  4127. else
  4128. CFLAGS=""
  4129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4130. /* end confdefs.h. */
  4131. int
  4132. main ()
  4133. {
  4134. ;
  4135. return 0;
  4136. }
  4137. _ACEOF
  4138. if ac_fn_c_try_compile "$LINENO"; then :
  4139. else
  4140. ac_c_werror_flag=$ac_save_c_werror_flag
  4141. CFLAGS="-g"
  4142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4143. /* end confdefs.h. */
  4144. int
  4145. main ()
  4146. {
  4147. ;
  4148. return 0;
  4149. }
  4150. _ACEOF
  4151. if ac_fn_c_try_compile "$LINENO"; then :
  4152. ac_cv_prog_cc_g=yes
  4153. fi
  4154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4155. fi
  4156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4157. fi
  4158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4159. ac_c_werror_flag=$ac_save_c_werror_flag
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4162. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4163. if test "$ac_test_CFLAGS" = set; then
  4164. CFLAGS=$ac_save_CFLAGS
  4165. elif test $ac_cv_prog_cc_g = yes; then
  4166. if test "$GCC" = yes; then
  4167. CFLAGS="-g -O2"
  4168. else
  4169. CFLAGS="-g"
  4170. fi
  4171. else
  4172. if test "$GCC" = yes; then
  4173. CFLAGS="-O2"
  4174. else
  4175. CFLAGS=
  4176. fi
  4177. fi
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4179. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4180. if ${ac_cv_prog_cc_c89+:} false; then :
  4181. $as_echo_n "(cached) " >&6
  4182. else
  4183. ac_cv_prog_cc_c89=no
  4184. ac_save_CC=$CC
  4185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4186. /* end confdefs.h. */
  4187. #include <stdarg.h>
  4188. #include <stdio.h>
  4189. struct stat;
  4190. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4191. struct buf { int x; };
  4192. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4193. static char *e (p, i)
  4194. char **p;
  4195. int i;
  4196. {
  4197. return p[i];
  4198. }
  4199. static char *f (char * (*g) (char **, int), char **p, ...)
  4200. {
  4201. char *s;
  4202. va_list v;
  4203. va_start (v,p);
  4204. s = g (p, va_arg (v,int));
  4205. va_end (v);
  4206. return s;
  4207. }
  4208. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4209. function prototypes and stuff, but not '\xHH' hex character constants.
  4210. These don't provoke an error unfortunately, instead are silently treated
  4211. as 'x'. The following induces an error, until -std is added to get
  4212. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4213. array size at least. It's necessary to write '\x00'==0 to get something
  4214. that's true only with -std. */
  4215. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4216. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4217. inside strings and character constants. */
  4218. #define FOO(x) 'x'
  4219. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4220. int test (int i, double x);
  4221. struct s1 {int (*f) (int a);};
  4222. struct s2 {int (*f) (double a);};
  4223. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4224. int argc;
  4225. char **argv;
  4226. int
  4227. main ()
  4228. {
  4229. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4230. ;
  4231. return 0;
  4232. }
  4233. _ACEOF
  4234. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4235. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4236. do
  4237. CC="$ac_save_CC $ac_arg"
  4238. if ac_fn_c_try_compile "$LINENO"; then :
  4239. ac_cv_prog_cc_c89=$ac_arg
  4240. fi
  4241. rm -f core conftest.err conftest.$ac_objext
  4242. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4243. done
  4244. rm -f conftest.$ac_ext
  4245. CC=$ac_save_CC
  4246. fi
  4247. # AC_CACHE_VAL
  4248. case "x$ac_cv_prog_cc_c89" in
  4249. x)
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4251. $as_echo "none needed" >&6; } ;;
  4252. xno)
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4254. $as_echo "unsupported" >&6; } ;;
  4255. *)
  4256. CC="$CC $ac_cv_prog_cc_c89"
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4258. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4259. esac
  4260. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4261. fi
  4262. ac_ext=c
  4263. ac_cpp='$CPP $CPPFLAGS'
  4264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4267. depcc="$CC" am_compiler_list=
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4269. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4270. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4274. # We make a subdir and do the tests there. Otherwise we can end up
  4275. # making bogus files that we don't know about and never remove. For
  4276. # instance it was reported that on HP-UX the gcc test will end up
  4277. # making a dummy file named 'D' -- because '-MD' means "put the output
  4278. # in D".
  4279. rm -rf conftest.dir
  4280. mkdir conftest.dir
  4281. # Copy depcomp to subdir because otherwise we won't find it if we're
  4282. # using a relative directory.
  4283. cp "$am_depcomp" conftest.dir
  4284. cd conftest.dir
  4285. # We will build objects and dependencies in a subdirectory because
  4286. # it helps to detect inapplicable dependency modes. For instance
  4287. # both Tru64's cc and ICC support -MD to output dependencies as a
  4288. # side effect of compilation, but ICC will put the dependencies in
  4289. # the current directory while Tru64 will put them in the object
  4290. # directory.
  4291. mkdir sub
  4292. am_cv_CC_dependencies_compiler_type=none
  4293. if test "$am_compiler_list" = ""; then
  4294. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4295. fi
  4296. am__universal=false
  4297. case " $depcc " in #(
  4298. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4299. esac
  4300. for depmode in $am_compiler_list; do
  4301. # Setup a source with many dependencies, because some compilers
  4302. # like to wrap large dependency lists on column 80 (with \), and
  4303. # we should not choose a depcomp mode which is confused by this.
  4304. #
  4305. # We need to recreate these files for each test, as the compiler may
  4306. # overwrite some of them when testing with obscure command lines.
  4307. # This happens at least with the AIX C compiler.
  4308. : > sub/conftest.c
  4309. for i in 1 2 3 4 5 6; do
  4310. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4311. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4312. # Solaris 10 /bin/sh.
  4313. echo '/* dummy */' > sub/conftst$i.h
  4314. done
  4315. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4316. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4317. # mode. It turns out that the SunPro C++ compiler does not properly
  4318. # handle '-M -o', and we need to detect this. Also, some Intel
  4319. # versions had trouble with output in subdirs.
  4320. am__obj=sub/conftest.${OBJEXT-o}
  4321. am__minus_obj="-o $am__obj"
  4322. case $depmode in
  4323. gcc)
  4324. # This depmode causes a compiler race in universal mode.
  4325. test "$am__universal" = false || continue
  4326. ;;
  4327. nosideeffect)
  4328. # After this tag, mechanisms are not by side-effect, so they'll
  4329. # only be used when explicitly requested.
  4330. if test "x$enable_dependency_tracking" = xyes; then
  4331. continue
  4332. else
  4333. break
  4334. fi
  4335. ;;
  4336. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4337. # This compiler won't grok '-c -o', but also, the minuso test has
  4338. # not run yet. These depmodes are late enough in the game, and
  4339. # so weak that their functioning should not be impacted.
  4340. am__obj=conftest.${OBJEXT-o}
  4341. am__minus_obj=
  4342. ;;
  4343. none) break ;;
  4344. esac
  4345. if depmode=$depmode \
  4346. source=sub/conftest.c object=$am__obj \
  4347. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4348. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4349. >/dev/null 2>conftest.err &&
  4350. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4351. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4352. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4353. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4354. # icc doesn't choke on unknown options, it will just issue warnings
  4355. # or remarks (even with -Werror). So we grep stderr for any message
  4356. # that says an option was ignored or not supported.
  4357. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4358. # icc: Command line warning: ignoring option '-M'; no argument required
  4359. # The diagnosis changed in icc 8.0:
  4360. # icc: Command line remark: option '-MP' not supported
  4361. if (grep 'ignoring option' conftest.err ||
  4362. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4363. am_cv_CC_dependencies_compiler_type=$depmode
  4364. break
  4365. fi
  4366. fi
  4367. done
  4368. cd ..
  4369. rm -rf conftest.dir
  4370. else
  4371. am_cv_CC_dependencies_compiler_type=none
  4372. fi
  4373. fi
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4375. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4376. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4377. if
  4378. test "x$enable_dependency_tracking" != xno \
  4379. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4380. am__fastdepCC_TRUE=
  4381. am__fastdepCC_FALSE='#'
  4382. else
  4383. am__fastdepCC_TRUE='#'
  4384. am__fastdepCC_FALSE=
  4385. fi
  4386. if test "x$CC" != xcc; then
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4388. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4389. else
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4391. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4392. fi
  4393. set dummy $CC; ac_cc=`$as_echo "$2" |
  4394. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4395. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4396. $as_echo_n "(cached) " >&6
  4397. else
  4398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4399. /* end confdefs.h. */
  4400. int
  4401. main ()
  4402. {
  4403. ;
  4404. return 0;
  4405. }
  4406. _ACEOF
  4407. # Make sure it works both with $CC and with simple cc.
  4408. # We do the test twice because some compilers refuse to overwrite an
  4409. # existing .o file with -o, though they will create one.
  4410. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4411. rm -f conftest2.*
  4412. if { { case "(($ac_try" in
  4413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4414. *) ac_try_echo=$ac_try;;
  4415. esac
  4416. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4417. $as_echo "$ac_try_echo"; } >&5
  4418. (eval "$ac_try") 2>&5
  4419. ac_status=$?
  4420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4421. test $ac_status = 0; } &&
  4422. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4424. *) ac_try_echo=$ac_try;;
  4425. esac
  4426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4427. $as_echo "$ac_try_echo"; } >&5
  4428. (eval "$ac_try") 2>&5
  4429. ac_status=$?
  4430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4431. test $ac_status = 0; };
  4432. then
  4433. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4434. if test "x$CC" != xcc; then
  4435. # Test first that cc exists at all.
  4436. if { ac_try='cc -c conftest.$ac_ext >&5'
  4437. { { case "(($ac_try" in
  4438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4439. *) ac_try_echo=$ac_try;;
  4440. esac
  4441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4442. $as_echo "$ac_try_echo"; } >&5
  4443. (eval "$ac_try") 2>&5
  4444. ac_status=$?
  4445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4446. test $ac_status = 0; }; }; then
  4447. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4448. rm -f conftest2.*
  4449. if { { case "(($ac_try" in
  4450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4451. *) ac_try_echo=$ac_try;;
  4452. esac
  4453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4454. $as_echo "$ac_try_echo"; } >&5
  4455. (eval "$ac_try") 2>&5
  4456. ac_status=$?
  4457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4458. test $ac_status = 0; } &&
  4459. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4461. *) ac_try_echo=$ac_try;;
  4462. esac
  4463. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4464. $as_echo "$ac_try_echo"; } >&5
  4465. (eval "$ac_try") 2>&5
  4466. ac_status=$?
  4467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4468. test $ac_status = 0; };
  4469. then
  4470. # cc works too.
  4471. :
  4472. else
  4473. # cc exists but doesn't like -o.
  4474. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4475. fi
  4476. fi
  4477. fi
  4478. else
  4479. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4480. fi
  4481. rm -f core conftest*
  4482. fi
  4483. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4485. $as_echo "yes" >&6; }
  4486. else
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4488. $as_echo "no" >&6; }
  4489. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4490. fi
  4491. # FIXME: we rely on the cache variable name because
  4492. # there is no other way.
  4493. set dummy $CC
  4494. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4495. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4496. if test "$am_t" != yes; then
  4497. # Losing compiler, so override with the script.
  4498. # FIXME: It is wrong to rewrite CC.
  4499. # But if we don't then we get into trouble of one sort or another.
  4500. # A longer-term fix would be to have automake use am__CC in this case,
  4501. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4502. CC="$am_aux_dir/compile $CC"
  4503. fi
  4504. # By default we simply use the C compiler to build assembly code.
  4505. test "${CCAS+set}" = set || CCAS=$CC
  4506. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4507. depcc="$CCAS" am_compiler_list=
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4509. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4510. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4514. # We make a subdir and do the tests there. Otherwise we can end up
  4515. # making bogus files that we don't know about and never remove. For
  4516. # instance it was reported that on HP-UX the gcc test will end up
  4517. # making a dummy file named 'D' -- because '-MD' means "put the output
  4518. # in D".
  4519. rm -rf conftest.dir
  4520. mkdir conftest.dir
  4521. # Copy depcomp to subdir because otherwise we won't find it if we're
  4522. # using a relative directory.
  4523. cp "$am_depcomp" conftest.dir
  4524. cd conftest.dir
  4525. # We will build objects and dependencies in a subdirectory because
  4526. # it helps to detect inapplicable dependency modes. For instance
  4527. # both Tru64's cc and ICC support -MD to output dependencies as a
  4528. # side effect of compilation, but ICC will put the dependencies in
  4529. # the current directory while Tru64 will put them in the object
  4530. # directory.
  4531. mkdir sub
  4532. am_cv_CCAS_dependencies_compiler_type=none
  4533. if test "$am_compiler_list" = ""; then
  4534. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4535. fi
  4536. am__universal=false
  4537. for depmode in $am_compiler_list; do
  4538. # Setup a source with many dependencies, because some compilers
  4539. # like to wrap large dependency lists on column 80 (with \), and
  4540. # we should not choose a depcomp mode which is confused by this.
  4541. #
  4542. # We need to recreate these files for each test, as the compiler may
  4543. # overwrite some of them when testing with obscure command lines.
  4544. # This happens at least with the AIX C compiler.
  4545. : > sub/conftest.c
  4546. for i in 1 2 3 4 5 6; do
  4547. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4548. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4549. # Solaris 10 /bin/sh.
  4550. echo '/* dummy */' > sub/conftst$i.h
  4551. done
  4552. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4553. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4554. # mode. It turns out that the SunPro C++ compiler does not properly
  4555. # handle '-M -o', and we need to detect this. Also, some Intel
  4556. # versions had trouble with output in subdirs.
  4557. am__obj=sub/conftest.${OBJEXT-o}
  4558. am__minus_obj="-o $am__obj"
  4559. case $depmode in
  4560. gcc)
  4561. # This depmode causes a compiler race in universal mode.
  4562. test "$am__universal" = false || continue
  4563. ;;
  4564. nosideeffect)
  4565. # After this tag, mechanisms are not by side-effect, so they'll
  4566. # only be used when explicitly requested.
  4567. if test "x$enable_dependency_tracking" = xyes; then
  4568. continue
  4569. else
  4570. break
  4571. fi
  4572. ;;
  4573. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4574. # This compiler won't grok '-c -o', but also, the minuso test has
  4575. # not run yet. These depmodes are late enough in the game, and
  4576. # so weak that their functioning should not be impacted.
  4577. am__obj=conftest.${OBJEXT-o}
  4578. am__minus_obj=
  4579. ;;
  4580. none) break ;;
  4581. esac
  4582. if depmode=$depmode \
  4583. source=sub/conftest.c object=$am__obj \
  4584. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4585. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4586. >/dev/null 2>conftest.err &&
  4587. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4588. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4589. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4590. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4591. # icc doesn't choke on unknown options, it will just issue warnings
  4592. # or remarks (even with -Werror). So we grep stderr for any message
  4593. # that says an option was ignored or not supported.
  4594. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4595. # icc: Command line warning: ignoring option '-M'; no argument required
  4596. # The diagnosis changed in icc 8.0:
  4597. # icc: Command line remark: option '-MP' not supported
  4598. if (grep 'ignoring option' conftest.err ||
  4599. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4600. am_cv_CCAS_dependencies_compiler_type=$depmode
  4601. break
  4602. fi
  4603. fi
  4604. done
  4605. cd ..
  4606. rm -rf conftest.dir
  4607. else
  4608. am_cv_CCAS_dependencies_compiler_type=none
  4609. fi
  4610. fi
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4612. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4613. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4614. if
  4615. test "x$enable_dependency_tracking" != xno \
  4616. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4617. am__fastdepCCAS_TRUE=
  4618. am__fastdepCCAS_FALSE='#'
  4619. else
  4620. am__fastdepCCAS_TRUE='#'
  4621. am__fastdepCCAS_FALSE=
  4622. fi
  4623. # disable static libs by default - we only use a couple
  4624. # Check whether --enable-static was given.
  4625. if test "${enable_static+set}" = set; then :
  4626. enableval=$enable_static; p=${PACKAGE-default}
  4627. case $enableval in
  4628. yes) enable_static=yes ;;
  4629. no) enable_static=no ;;
  4630. *)
  4631. enable_static=no
  4632. # Look at the argument we got. We use all the common list separators.
  4633. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4634. for pkg in $enableval; do
  4635. IFS="$lt_save_ifs"
  4636. if test "X$pkg" = "X$p"; then
  4637. enable_static=yes
  4638. fi
  4639. done
  4640. IFS="$lt_save_ifs"
  4641. ;;
  4642. esac
  4643. else
  4644. enable_static=no
  4645. fi
  4646. case `pwd` in
  4647. *\ * | *\ *)
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4649. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4650. esac
  4651. macro_version='2.4.2'
  4652. macro_revision='1.3337'
  4653. ltmain="$ac_aux_dir/ltmain.sh"
  4654. # Backslashify metacharacters that are still active within
  4655. # double-quoted strings.
  4656. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4657. # Same as above, but do not quote variable references.
  4658. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4659. # Sed substitution to delay expansion of an escaped shell variable in a
  4660. # double_quote_subst'ed string.
  4661. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4662. # Sed substitution to delay expansion of an escaped single quote.
  4663. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4664. # Sed substitution to avoid accidental globbing in evaled expressions
  4665. no_glob_subst='s/\*/\\\*/g'
  4666. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4667. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4668. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4670. $as_echo_n "checking how to print strings... " >&6; }
  4671. # Test print first, because it will be a builtin if present.
  4672. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4673. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4674. ECHO='print -r --'
  4675. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4676. ECHO='printf %s\n'
  4677. else
  4678. # Use this function as a fallback that always works.
  4679. func_fallback_echo ()
  4680. {
  4681. eval 'cat <<_LTECHO_EOF
  4682. $1
  4683. _LTECHO_EOF'
  4684. }
  4685. ECHO='func_fallback_echo'
  4686. fi
  4687. # func_echo_all arg...
  4688. # Invoke $ECHO with all args, space-separated.
  4689. func_echo_all ()
  4690. {
  4691. $ECHO ""
  4692. }
  4693. case "$ECHO" in
  4694. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4695. $as_echo "printf" >&6; } ;;
  4696. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4697. $as_echo "print -r" >&6; } ;;
  4698. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4699. $as_echo "cat" >&6; } ;;
  4700. esac
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4702. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4703. if ${ac_cv_path_SED+:} false; then :
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4707. for ac_i in 1 2 3 4 5 6 7; do
  4708. ac_script="$ac_script$as_nl$ac_script"
  4709. done
  4710. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4711. { ac_script=; unset ac_script;}
  4712. if test -z "$SED"; then
  4713. ac_path_SED_found=false
  4714. # Loop through the user's path and test for each of PROGNAME-LIST
  4715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4716. for as_dir in $PATH
  4717. do
  4718. IFS=$as_save_IFS
  4719. test -z "$as_dir" && as_dir=.
  4720. for ac_prog in sed gsed; do
  4721. for ac_exec_ext in '' $ac_executable_extensions; do
  4722. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4723. as_fn_executable_p "$ac_path_SED" || continue
  4724. # Check for GNU ac_path_SED and select it if it is found.
  4725. # Check for GNU $ac_path_SED
  4726. case `"$ac_path_SED" --version 2>&1` in
  4727. *GNU*)
  4728. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4729. *)
  4730. ac_count=0
  4731. $as_echo_n 0123456789 >"conftest.in"
  4732. while :
  4733. do
  4734. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4735. mv "conftest.tmp" "conftest.in"
  4736. cp "conftest.in" "conftest.nl"
  4737. $as_echo '' >> "conftest.nl"
  4738. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4739. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4740. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4741. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4742. # Best one so far, save it but keep looking for a better one
  4743. ac_cv_path_SED="$ac_path_SED"
  4744. ac_path_SED_max=$ac_count
  4745. fi
  4746. # 10*(2^10) chars as input seems more than enough
  4747. test $ac_count -gt 10 && break
  4748. done
  4749. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4750. esac
  4751. $ac_path_SED_found && break 3
  4752. done
  4753. done
  4754. done
  4755. IFS=$as_save_IFS
  4756. if test -z "$ac_cv_path_SED"; then
  4757. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4758. fi
  4759. else
  4760. ac_cv_path_SED=$SED
  4761. fi
  4762. fi
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4764. $as_echo "$ac_cv_path_SED" >&6; }
  4765. SED="$ac_cv_path_SED"
  4766. rm -f conftest.sed
  4767. test -z "$SED" && SED=sed
  4768. Xsed="$SED -e 1s/^X//"
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4770. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4771. if ${ac_cv_path_GREP+:} false; then :
  4772. $as_echo_n "(cached) " >&6
  4773. else
  4774. if test -z "$GREP"; then
  4775. ac_path_GREP_found=false
  4776. # Loop through the user's path and test for each of PROGNAME-LIST
  4777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4778. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4779. do
  4780. IFS=$as_save_IFS
  4781. test -z "$as_dir" && as_dir=.
  4782. for ac_prog in grep ggrep; do
  4783. for ac_exec_ext in '' $ac_executable_extensions; do
  4784. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4785. as_fn_executable_p "$ac_path_GREP" || continue
  4786. # Check for GNU ac_path_GREP and select it if it is found.
  4787. # Check for GNU $ac_path_GREP
  4788. case `"$ac_path_GREP" --version 2>&1` in
  4789. *GNU*)
  4790. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4791. *)
  4792. ac_count=0
  4793. $as_echo_n 0123456789 >"conftest.in"
  4794. while :
  4795. do
  4796. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4797. mv "conftest.tmp" "conftest.in"
  4798. cp "conftest.in" "conftest.nl"
  4799. $as_echo 'GREP' >> "conftest.nl"
  4800. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4801. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4802. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4803. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4804. # Best one so far, save it but keep looking for a better one
  4805. ac_cv_path_GREP="$ac_path_GREP"
  4806. ac_path_GREP_max=$ac_count
  4807. fi
  4808. # 10*(2^10) chars as input seems more than enough
  4809. test $ac_count -gt 10 && break
  4810. done
  4811. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4812. esac
  4813. $ac_path_GREP_found && break 3
  4814. done
  4815. done
  4816. done
  4817. IFS=$as_save_IFS
  4818. if test -z "$ac_cv_path_GREP"; then
  4819. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4820. fi
  4821. else
  4822. ac_cv_path_GREP=$GREP
  4823. fi
  4824. fi
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4826. $as_echo "$ac_cv_path_GREP" >&6; }
  4827. GREP="$ac_cv_path_GREP"
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4829. $as_echo_n "checking for egrep... " >&6; }
  4830. if ${ac_cv_path_EGREP+:} false; then :
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4834. then ac_cv_path_EGREP="$GREP -E"
  4835. else
  4836. if test -z "$EGREP"; then
  4837. ac_path_EGREP_found=false
  4838. # Loop through the user's path and test for each of PROGNAME-LIST
  4839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4840. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4841. do
  4842. IFS=$as_save_IFS
  4843. test -z "$as_dir" && as_dir=.
  4844. for ac_prog in egrep; do
  4845. for ac_exec_ext in '' $ac_executable_extensions; do
  4846. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4847. as_fn_executable_p "$ac_path_EGREP" || continue
  4848. # Check for GNU ac_path_EGREP and select it if it is found.
  4849. # Check for GNU $ac_path_EGREP
  4850. case `"$ac_path_EGREP" --version 2>&1` in
  4851. *GNU*)
  4852. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4853. *)
  4854. ac_count=0
  4855. $as_echo_n 0123456789 >"conftest.in"
  4856. while :
  4857. do
  4858. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4859. mv "conftest.tmp" "conftest.in"
  4860. cp "conftest.in" "conftest.nl"
  4861. $as_echo 'EGREP' >> "conftest.nl"
  4862. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4863. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4864. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4865. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4866. # Best one so far, save it but keep looking for a better one
  4867. ac_cv_path_EGREP="$ac_path_EGREP"
  4868. ac_path_EGREP_max=$ac_count
  4869. fi
  4870. # 10*(2^10) chars as input seems more than enough
  4871. test $ac_count -gt 10 && break
  4872. done
  4873. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4874. esac
  4875. $ac_path_EGREP_found && break 3
  4876. done
  4877. done
  4878. done
  4879. IFS=$as_save_IFS
  4880. if test -z "$ac_cv_path_EGREP"; then
  4881. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4882. fi
  4883. else
  4884. ac_cv_path_EGREP=$EGREP
  4885. fi
  4886. fi
  4887. fi
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4889. $as_echo "$ac_cv_path_EGREP" >&6; }
  4890. EGREP="$ac_cv_path_EGREP"
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4892. $as_echo_n "checking for fgrep... " >&6; }
  4893. if ${ac_cv_path_FGREP+:} false; then :
  4894. $as_echo_n "(cached) " >&6
  4895. else
  4896. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4897. then ac_cv_path_FGREP="$GREP -F"
  4898. else
  4899. if test -z "$FGREP"; then
  4900. ac_path_FGREP_found=false
  4901. # Loop through the user's path and test for each of PROGNAME-LIST
  4902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4903. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4904. do
  4905. IFS=$as_save_IFS
  4906. test -z "$as_dir" && as_dir=.
  4907. for ac_prog in fgrep; do
  4908. for ac_exec_ext in '' $ac_executable_extensions; do
  4909. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4910. as_fn_executable_p "$ac_path_FGREP" || continue
  4911. # Check for GNU ac_path_FGREP and select it if it is found.
  4912. # Check for GNU $ac_path_FGREP
  4913. case `"$ac_path_FGREP" --version 2>&1` in
  4914. *GNU*)
  4915. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4916. *)
  4917. ac_count=0
  4918. $as_echo_n 0123456789 >"conftest.in"
  4919. while :
  4920. do
  4921. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4922. mv "conftest.tmp" "conftest.in"
  4923. cp "conftest.in" "conftest.nl"
  4924. $as_echo 'FGREP' >> "conftest.nl"
  4925. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4926. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4927. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4928. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4929. # Best one so far, save it but keep looking for a better one
  4930. ac_cv_path_FGREP="$ac_path_FGREP"
  4931. ac_path_FGREP_max=$ac_count
  4932. fi
  4933. # 10*(2^10) chars as input seems more than enough
  4934. test $ac_count -gt 10 && break
  4935. done
  4936. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4937. esac
  4938. $ac_path_FGREP_found && break 3
  4939. done
  4940. done
  4941. done
  4942. IFS=$as_save_IFS
  4943. if test -z "$ac_cv_path_FGREP"; then
  4944. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4945. fi
  4946. else
  4947. ac_cv_path_FGREP=$FGREP
  4948. fi
  4949. fi
  4950. fi
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4952. $as_echo "$ac_cv_path_FGREP" >&6; }
  4953. FGREP="$ac_cv_path_FGREP"
  4954. test -z "$GREP" && GREP=grep
  4955. # Check whether --with-gnu-ld was given.
  4956. if test "${with_gnu_ld+set}" = set; then :
  4957. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4958. else
  4959. with_gnu_ld=no
  4960. fi
  4961. ac_prog=ld
  4962. if test "$GCC" = yes; then
  4963. # Check if gcc -print-prog-name=ld gives a path.
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4965. $as_echo_n "checking for ld used by $CC... " >&6; }
  4966. case $host in
  4967. *-*-mingw*)
  4968. # gcc leaves a trailing carriage return which upsets mingw
  4969. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4970. *)
  4971. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4972. esac
  4973. case $ac_prog in
  4974. # Accept absolute paths.
  4975. [\\/]* | ?:[\\/]*)
  4976. re_direlt='/[^/][^/]*/\.\./'
  4977. # Canonicalize the pathname of ld
  4978. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4979. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4980. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4981. done
  4982. test -z "$LD" && LD="$ac_prog"
  4983. ;;
  4984. "")
  4985. # If it fails, then pretend we aren't using GCC.
  4986. ac_prog=ld
  4987. ;;
  4988. *)
  4989. # If it is relative, then search for the first ld in PATH.
  4990. with_gnu_ld=unknown
  4991. ;;
  4992. esac
  4993. elif test "$with_gnu_ld" = yes; then
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4995. $as_echo_n "checking for GNU ld... " >&6; }
  4996. else
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4998. $as_echo_n "checking for non-GNU ld... " >&6; }
  4999. fi
  5000. if ${lt_cv_path_LD+:} false; then :
  5001. $as_echo_n "(cached) " >&6
  5002. else
  5003. if test -z "$LD"; then
  5004. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5005. for ac_dir in $PATH; do
  5006. IFS="$lt_save_ifs"
  5007. test -z "$ac_dir" && ac_dir=.
  5008. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5009. lt_cv_path_LD="$ac_dir/$ac_prog"
  5010. # Check to see if the program is GNU ld. I'd rather use --version,
  5011. # but apparently some variants of GNU ld only accept -v.
  5012. # Break only if it was the GNU/non-GNU ld that we prefer.
  5013. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5014. *GNU* | *'with BFD'*)
  5015. test "$with_gnu_ld" != no && break
  5016. ;;
  5017. *)
  5018. test "$with_gnu_ld" != yes && break
  5019. ;;
  5020. esac
  5021. fi
  5022. done
  5023. IFS="$lt_save_ifs"
  5024. else
  5025. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5026. fi
  5027. fi
  5028. LD="$lt_cv_path_LD"
  5029. if test -n "$LD"; then
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5031. $as_echo "$LD" >&6; }
  5032. else
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5034. $as_echo "no" >&6; }
  5035. fi
  5036. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5038. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5039. if ${lt_cv_prog_gnu_ld+:} false; then :
  5040. $as_echo_n "(cached) " >&6
  5041. else
  5042. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5043. case `$LD -v 2>&1 </dev/null` in
  5044. *GNU* | *'with BFD'*)
  5045. lt_cv_prog_gnu_ld=yes
  5046. ;;
  5047. *)
  5048. lt_cv_prog_gnu_ld=no
  5049. ;;
  5050. esac
  5051. fi
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5053. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5054. with_gnu_ld=$lt_cv_prog_gnu_ld
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5056. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5057. if ${lt_cv_path_NM+:} false; then :
  5058. $as_echo_n "(cached) " >&6
  5059. else
  5060. if test -n "$NM"; then
  5061. # Let the user override the test.
  5062. lt_cv_path_NM="$NM"
  5063. else
  5064. lt_nm_to_check="${ac_tool_prefix}nm"
  5065. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5066. lt_nm_to_check="$lt_nm_to_check nm"
  5067. fi
  5068. for lt_tmp_nm in $lt_nm_to_check; do
  5069. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5070. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5071. IFS="$lt_save_ifs"
  5072. test -z "$ac_dir" && ac_dir=.
  5073. tmp_nm="$ac_dir/$lt_tmp_nm"
  5074. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5075. # Check to see if the nm accepts a BSD-compat flag.
  5076. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5077. # nm: unknown option "B" ignored
  5078. # Tru64's nm complains that /dev/null is an invalid object file
  5079. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5080. */dev/null* | *'Invalid file or object type'*)
  5081. lt_cv_path_NM="$tmp_nm -B"
  5082. break
  5083. ;;
  5084. *)
  5085. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5086. */dev/null*)
  5087. lt_cv_path_NM="$tmp_nm -p"
  5088. break
  5089. ;;
  5090. *)
  5091. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5092. continue # so that we can try to find one that supports BSD flags
  5093. ;;
  5094. esac
  5095. ;;
  5096. esac
  5097. fi
  5098. done
  5099. IFS="$lt_save_ifs"
  5100. done
  5101. : ${lt_cv_path_NM=no}
  5102. fi
  5103. fi
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5105. $as_echo "$lt_cv_path_NM" >&6; }
  5106. if test "$lt_cv_path_NM" != "no"; then
  5107. NM="$lt_cv_path_NM"
  5108. else
  5109. # Didn't find any BSD compatible name lister, look for dumpbin.
  5110. if test -n "$DUMPBIN"; then :
  5111. # Let the user override the test.
  5112. else
  5113. if test -n "$ac_tool_prefix"; then
  5114. for ac_prog in dumpbin "link -dump"
  5115. do
  5116. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5117. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5119. $as_echo_n "checking for $ac_word... " >&6; }
  5120. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5121. $as_echo_n "(cached) " >&6
  5122. else
  5123. if test -n "$DUMPBIN"; then
  5124. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5125. else
  5126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5127. for as_dir in $PATH
  5128. do
  5129. IFS=$as_save_IFS
  5130. test -z "$as_dir" && as_dir=.
  5131. for ac_exec_ext in '' $ac_executable_extensions; do
  5132. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5133. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5135. break 2
  5136. fi
  5137. done
  5138. done
  5139. IFS=$as_save_IFS
  5140. fi
  5141. fi
  5142. DUMPBIN=$ac_cv_prog_DUMPBIN
  5143. if test -n "$DUMPBIN"; then
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5145. $as_echo "$DUMPBIN" >&6; }
  5146. else
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5148. $as_echo "no" >&6; }
  5149. fi
  5150. test -n "$DUMPBIN" && break
  5151. done
  5152. fi
  5153. if test -z "$DUMPBIN"; then
  5154. ac_ct_DUMPBIN=$DUMPBIN
  5155. for ac_prog in dumpbin "link -dump"
  5156. do
  5157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5158. set dummy $ac_prog; ac_word=$2
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5160. $as_echo_n "checking for $ac_word... " >&6; }
  5161. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5162. $as_echo_n "(cached) " >&6
  5163. else
  5164. if test -n "$ac_ct_DUMPBIN"; then
  5165. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5166. else
  5167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5168. for as_dir in $PATH
  5169. do
  5170. IFS=$as_save_IFS
  5171. test -z "$as_dir" && as_dir=.
  5172. for ac_exec_ext in '' $ac_executable_extensions; do
  5173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5174. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5176. break 2
  5177. fi
  5178. done
  5179. done
  5180. IFS=$as_save_IFS
  5181. fi
  5182. fi
  5183. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5184. if test -n "$ac_ct_DUMPBIN"; then
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5186. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5187. else
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5189. $as_echo "no" >&6; }
  5190. fi
  5191. test -n "$ac_ct_DUMPBIN" && break
  5192. done
  5193. if test "x$ac_ct_DUMPBIN" = x; then
  5194. DUMPBIN=":"
  5195. else
  5196. case $cross_compiling:$ac_tool_warned in
  5197. yes:)
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5199. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5200. ac_tool_warned=yes ;;
  5201. esac
  5202. DUMPBIN=$ac_ct_DUMPBIN
  5203. fi
  5204. fi
  5205. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5206. *COFF*)
  5207. DUMPBIN="$DUMPBIN -symbols"
  5208. ;;
  5209. *)
  5210. DUMPBIN=:
  5211. ;;
  5212. esac
  5213. fi
  5214. if test "$DUMPBIN" != ":"; then
  5215. NM="$DUMPBIN"
  5216. fi
  5217. fi
  5218. test -z "$NM" && NM=nm
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5220. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5221. if ${lt_cv_nm_interface+:} false; then :
  5222. $as_echo_n "(cached) " >&6
  5223. else
  5224. lt_cv_nm_interface="BSD nm"
  5225. echo "int some_variable = 0;" > conftest.$ac_ext
  5226. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5227. (eval "$ac_compile" 2>conftest.err)
  5228. cat conftest.err >&5
  5229. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5230. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5231. cat conftest.err >&5
  5232. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5233. cat conftest.out >&5
  5234. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5235. lt_cv_nm_interface="MS dumpbin"
  5236. fi
  5237. rm -f conftest*
  5238. fi
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5240. $as_echo "$lt_cv_nm_interface" >&6; }
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5242. $as_echo_n "checking whether ln -s works... " >&6; }
  5243. LN_S=$as_ln_s
  5244. if test "$LN_S" = "ln -s"; then
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5246. $as_echo "yes" >&6; }
  5247. else
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5249. $as_echo "no, using $LN_S" >&6; }
  5250. fi
  5251. # find the maximum length of command line arguments
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5253. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5254. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5255. $as_echo_n "(cached) " >&6
  5256. else
  5257. i=0
  5258. teststring="ABCD"
  5259. case $build_os in
  5260. msdosdjgpp*)
  5261. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5262. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5263. # during glob expansion). Even if it were fixed, the result of this
  5264. # check would be larger than it should be.
  5265. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5266. ;;
  5267. gnu*)
  5268. # Under GNU Hurd, this test is not required because there is
  5269. # no limit to the length of command line arguments.
  5270. # Libtool will interpret -1 as no limit whatsoever
  5271. lt_cv_sys_max_cmd_len=-1;
  5272. ;;
  5273. cygwin* | mingw* | cegcc*)
  5274. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5275. # about 5 minutes as the teststring grows exponentially.
  5276. # Worse, since 9x/ME are not pre-emptively multitasking,
  5277. # you end up with a "frozen" computer, even though with patience
  5278. # the test eventually succeeds (with a max line length of 256k).
  5279. # Instead, let's just punt: use the minimum linelength reported by
  5280. # all of the supported platforms: 8192 (on NT/2K/XP).
  5281. lt_cv_sys_max_cmd_len=8192;
  5282. ;;
  5283. mint*)
  5284. # On MiNT this can take a long time and run out of memory.
  5285. lt_cv_sys_max_cmd_len=8192;
  5286. ;;
  5287. amigaos*)
  5288. # On AmigaOS with pdksh, this test takes hours, literally.
  5289. # So we just punt and use a minimum line length of 8192.
  5290. lt_cv_sys_max_cmd_len=8192;
  5291. ;;
  5292. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5293. # This has been around since 386BSD, at least. Likely further.
  5294. if test -x /sbin/sysctl; then
  5295. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5296. elif test -x /usr/sbin/sysctl; then
  5297. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5298. else
  5299. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5300. fi
  5301. # And add a safety zone
  5302. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5303. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5304. ;;
  5305. interix*)
  5306. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5307. lt_cv_sys_max_cmd_len=196608
  5308. ;;
  5309. os2*)
  5310. # The test takes a long time on OS/2.
  5311. lt_cv_sys_max_cmd_len=8192
  5312. ;;
  5313. osf*)
  5314. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5315. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5316. # nice to cause kernel panics so lets avoid the loop below.
  5317. # First set a reasonable default.
  5318. lt_cv_sys_max_cmd_len=16384
  5319. #
  5320. if test -x /sbin/sysconfig; then
  5321. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5322. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5323. esac
  5324. fi
  5325. ;;
  5326. sco3.2v5*)
  5327. lt_cv_sys_max_cmd_len=102400
  5328. ;;
  5329. sysv5* | sco5v6* | sysv4.2uw2*)
  5330. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5331. if test -n "$kargmax"; then
  5332. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5333. else
  5334. lt_cv_sys_max_cmd_len=32768
  5335. fi
  5336. ;;
  5337. *)
  5338. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5339. if test -n "$lt_cv_sys_max_cmd_len"; then
  5340. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5341. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5342. else
  5343. # Make teststring a little bigger before we do anything with it.
  5344. # a 1K string should be a reasonable start.
  5345. for i in 1 2 3 4 5 6 7 8 ; do
  5346. teststring=$teststring$teststring
  5347. done
  5348. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5349. # If test is not a shell built-in, we'll probably end up computing a
  5350. # maximum length that is only half of the actual maximum length, but
  5351. # we can't tell.
  5352. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5353. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5354. test $i != 17 # 1/2 MB should be enough
  5355. do
  5356. i=`expr $i + 1`
  5357. teststring=$teststring$teststring
  5358. done
  5359. # Only check the string length outside the loop.
  5360. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5361. teststring=
  5362. # Add a significant safety factor because C++ compilers can tack on
  5363. # massive amounts of additional arguments before passing them to the
  5364. # linker. It appears as though 1/2 is a usable value.
  5365. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5366. fi
  5367. ;;
  5368. esac
  5369. fi
  5370. if test -n $lt_cv_sys_max_cmd_len ; then
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5372. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5373. else
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5375. $as_echo "none" >&6; }
  5376. fi
  5377. max_cmd_len=$lt_cv_sys_max_cmd_len
  5378. : ${CP="cp -f"}
  5379. : ${MV="mv -f"}
  5380. : ${RM="rm -f"}
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5382. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5383. # Try some XSI features
  5384. xsi_shell=no
  5385. ( _lt_dummy="a/b/c"
  5386. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5387. = c,a/b,b/c, \
  5388. && eval 'test $(( 1 + 1 )) -eq 2 \
  5389. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5390. && xsi_shell=yes
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5392. $as_echo "$xsi_shell" >&6; }
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5394. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5395. lt_shell_append=no
  5396. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5397. >/dev/null 2>&1 \
  5398. && lt_shell_append=yes
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5400. $as_echo "$lt_shell_append" >&6; }
  5401. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5402. lt_unset=unset
  5403. else
  5404. lt_unset=false
  5405. fi
  5406. # test EBCDIC or ASCII
  5407. case `echo X|tr X '\101'` in
  5408. A) # ASCII based system
  5409. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5410. lt_SP2NL='tr \040 \012'
  5411. lt_NL2SP='tr \015\012 \040\040'
  5412. ;;
  5413. *) # EBCDIC based system
  5414. lt_SP2NL='tr \100 \n'
  5415. lt_NL2SP='tr \r\n \100\100'
  5416. ;;
  5417. esac
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5419. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5420. if ${lt_cv_to_host_file_cmd+:} false; then :
  5421. $as_echo_n "(cached) " >&6
  5422. else
  5423. case $host in
  5424. *-*-mingw* )
  5425. case $build in
  5426. *-*-mingw* ) # actually msys
  5427. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5428. ;;
  5429. *-*-cygwin* )
  5430. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5431. ;;
  5432. * ) # otherwise, assume *nix
  5433. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5434. ;;
  5435. esac
  5436. ;;
  5437. *-*-cygwin* )
  5438. case $build in
  5439. *-*-mingw* ) # actually msys
  5440. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5441. ;;
  5442. *-*-cygwin* )
  5443. lt_cv_to_host_file_cmd=func_convert_file_noop
  5444. ;;
  5445. * ) # otherwise, assume *nix
  5446. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5447. ;;
  5448. esac
  5449. ;;
  5450. * ) # unhandled hosts (and "normal" native builds)
  5451. lt_cv_to_host_file_cmd=func_convert_file_noop
  5452. ;;
  5453. esac
  5454. fi
  5455. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5457. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5459. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5460. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5461. $as_echo_n "(cached) " >&6
  5462. else
  5463. #assume ordinary cross tools, or native build.
  5464. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5465. case $host in
  5466. *-*-mingw* )
  5467. case $build in
  5468. *-*-mingw* ) # actually msys
  5469. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5470. ;;
  5471. esac
  5472. ;;
  5473. esac
  5474. fi
  5475. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5477. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5479. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5480. if ${lt_cv_ld_reload_flag+:} false; then :
  5481. $as_echo_n "(cached) " >&6
  5482. else
  5483. lt_cv_ld_reload_flag='-r'
  5484. fi
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5486. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5487. reload_flag=$lt_cv_ld_reload_flag
  5488. case $reload_flag in
  5489. "" | " "*) ;;
  5490. *) reload_flag=" $reload_flag" ;;
  5491. esac
  5492. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5493. case $host_os in
  5494. cygwin* | mingw* | pw32* | cegcc*)
  5495. if test "$GCC" != yes; then
  5496. reload_cmds=false
  5497. fi
  5498. ;;
  5499. darwin*)
  5500. if test "$GCC" = yes; then
  5501. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5502. else
  5503. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5504. fi
  5505. ;;
  5506. esac
  5507. if test -n "$ac_tool_prefix"; then
  5508. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5509. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5511. $as_echo_n "checking for $ac_word... " >&6; }
  5512. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5513. $as_echo_n "(cached) " >&6
  5514. else
  5515. if test -n "$OBJDUMP"; then
  5516. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5517. else
  5518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5519. for as_dir in $PATH
  5520. do
  5521. IFS=$as_save_IFS
  5522. test -z "$as_dir" && as_dir=.
  5523. for ac_exec_ext in '' $ac_executable_extensions; do
  5524. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5525. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5527. break 2
  5528. fi
  5529. done
  5530. done
  5531. IFS=$as_save_IFS
  5532. fi
  5533. fi
  5534. OBJDUMP=$ac_cv_prog_OBJDUMP
  5535. if test -n "$OBJDUMP"; then
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5537. $as_echo "$OBJDUMP" >&6; }
  5538. else
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5540. $as_echo "no" >&6; }
  5541. fi
  5542. fi
  5543. if test -z "$ac_cv_prog_OBJDUMP"; then
  5544. ac_ct_OBJDUMP=$OBJDUMP
  5545. # Extract the first word of "objdump", so it can be a program name with args.
  5546. set dummy objdump; ac_word=$2
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5548. $as_echo_n "checking for $ac_word... " >&6; }
  5549. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5550. $as_echo_n "(cached) " >&6
  5551. else
  5552. if test -n "$ac_ct_OBJDUMP"; then
  5553. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5554. else
  5555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5556. for as_dir in $PATH
  5557. do
  5558. IFS=$as_save_IFS
  5559. test -z "$as_dir" && as_dir=.
  5560. for ac_exec_ext in '' $ac_executable_extensions; do
  5561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5562. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5564. break 2
  5565. fi
  5566. done
  5567. done
  5568. IFS=$as_save_IFS
  5569. fi
  5570. fi
  5571. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5572. if test -n "$ac_ct_OBJDUMP"; then
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5574. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5575. else
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5577. $as_echo "no" >&6; }
  5578. fi
  5579. if test "x$ac_ct_OBJDUMP" = x; then
  5580. OBJDUMP="false"
  5581. else
  5582. case $cross_compiling:$ac_tool_warned in
  5583. yes:)
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5586. ac_tool_warned=yes ;;
  5587. esac
  5588. OBJDUMP=$ac_ct_OBJDUMP
  5589. fi
  5590. else
  5591. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5592. fi
  5593. test -z "$OBJDUMP" && OBJDUMP=objdump
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5595. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5596. if ${lt_cv_deplibs_check_method+:} false; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5600. lt_cv_file_magic_test_file=
  5601. lt_cv_deplibs_check_method='unknown'
  5602. # Need to set the preceding variable on all platforms that support
  5603. # interlibrary dependencies.
  5604. # 'none' -- dependencies not supported.
  5605. # `unknown' -- same as none, but documents that we really don't know.
  5606. # 'pass_all' -- all dependencies passed with no checks.
  5607. # 'test_compile' -- check by making test program.
  5608. # 'file_magic [[regex]]' -- check by looking for files in library path
  5609. # which responds to the $file_magic_cmd with a given extended regex.
  5610. # If you have `file' or equivalent on your system and you're not sure
  5611. # whether `pass_all' will *always* work, you probably want this one.
  5612. case $host_os in
  5613. aix[4-9]*)
  5614. lt_cv_deplibs_check_method=pass_all
  5615. ;;
  5616. beos*)
  5617. lt_cv_deplibs_check_method=pass_all
  5618. ;;
  5619. bsdi[45]*)
  5620. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5621. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5622. lt_cv_file_magic_test_file=/shlib/libc.so
  5623. ;;
  5624. cygwin*)
  5625. # func_win32_libid is a shell function defined in ltmain.sh
  5626. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5627. lt_cv_file_magic_cmd='func_win32_libid'
  5628. ;;
  5629. mingw* | pw32*)
  5630. # Base MSYS/MinGW do not provide the 'file' command needed by
  5631. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5632. # unless we find 'file', for example because we are cross-compiling.
  5633. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5634. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5635. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5636. lt_cv_file_magic_cmd='func_win32_libid'
  5637. else
  5638. # Keep this pattern in sync with the one in func_win32_libid.
  5639. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5640. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5641. fi
  5642. ;;
  5643. cegcc*)
  5644. # use the weaker test based on 'objdump'. See mingw*.
  5645. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5646. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5647. ;;
  5648. darwin* | rhapsody*)
  5649. lt_cv_deplibs_check_method=pass_all
  5650. ;;
  5651. freebsd* | dragonfly*)
  5652. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5653. case $host_cpu in
  5654. i*86 )
  5655. # Not sure whether the presence of OpenBSD here was a mistake.
  5656. # Let's accept both of them until this is cleared up.
  5657. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5658. lt_cv_file_magic_cmd=/usr/bin/file
  5659. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5660. ;;
  5661. esac
  5662. else
  5663. lt_cv_deplibs_check_method=pass_all
  5664. fi
  5665. ;;
  5666. gnu*)
  5667. lt_cv_deplibs_check_method=pass_all
  5668. ;;
  5669. haiku*)
  5670. lt_cv_deplibs_check_method=pass_all
  5671. ;;
  5672. hpux10.20* | hpux11*)
  5673. lt_cv_file_magic_cmd=/usr/bin/file
  5674. case $host_cpu in
  5675. ia64*)
  5676. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5677. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5678. ;;
  5679. hppa*64*)
  5680. 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]'
  5681. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5682. ;;
  5683. *)
  5684. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5685. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5686. ;;
  5687. esac
  5688. ;;
  5689. interix[3-9]*)
  5690. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5691. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5692. ;;
  5693. irix5* | irix6* | nonstopux*)
  5694. case $LD in
  5695. *-32|*"-32 ") libmagic=32-bit;;
  5696. *-n32|*"-n32 ") libmagic=N32;;
  5697. *-64|*"-64 ") libmagic=64-bit;;
  5698. *) libmagic=never-match;;
  5699. esac
  5700. lt_cv_deplibs_check_method=pass_all
  5701. ;;
  5702. # This must be glibc/ELF.
  5703. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5704. lt_cv_deplibs_check_method=pass_all
  5705. ;;
  5706. netbsd*)
  5707. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5708. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5709. else
  5710. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5711. fi
  5712. ;;
  5713. newos6*)
  5714. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5715. lt_cv_file_magic_cmd=/usr/bin/file
  5716. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5717. ;;
  5718. *nto* | *qnx*)
  5719. lt_cv_deplibs_check_method=pass_all
  5720. ;;
  5721. openbsd*)
  5722. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5723. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5724. else
  5725. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5726. fi
  5727. ;;
  5728. osf3* | osf4* | osf5*)
  5729. lt_cv_deplibs_check_method=pass_all
  5730. ;;
  5731. rdos*)
  5732. lt_cv_deplibs_check_method=pass_all
  5733. ;;
  5734. solaris*)
  5735. lt_cv_deplibs_check_method=pass_all
  5736. ;;
  5737. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5738. lt_cv_deplibs_check_method=pass_all
  5739. ;;
  5740. sysv4 | sysv4.3*)
  5741. case $host_vendor in
  5742. motorola)
  5743. 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]'
  5744. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5745. ;;
  5746. ncr)
  5747. lt_cv_deplibs_check_method=pass_all
  5748. ;;
  5749. sequent)
  5750. lt_cv_file_magic_cmd='/bin/file'
  5751. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5752. ;;
  5753. sni)
  5754. lt_cv_file_magic_cmd='/bin/file'
  5755. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5756. lt_cv_file_magic_test_file=/lib/libc.so
  5757. ;;
  5758. siemens)
  5759. lt_cv_deplibs_check_method=pass_all
  5760. ;;
  5761. pc)
  5762. lt_cv_deplibs_check_method=pass_all
  5763. ;;
  5764. esac
  5765. ;;
  5766. tpf*)
  5767. lt_cv_deplibs_check_method=pass_all
  5768. ;;
  5769. esac
  5770. fi
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5772. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5773. file_magic_glob=
  5774. want_nocaseglob=no
  5775. if test "$build" = "$host"; then
  5776. case $host_os in
  5777. mingw* | pw32*)
  5778. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5779. want_nocaseglob=yes
  5780. else
  5781. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5782. fi
  5783. ;;
  5784. esac
  5785. fi
  5786. file_magic_cmd=$lt_cv_file_magic_cmd
  5787. deplibs_check_method=$lt_cv_deplibs_check_method
  5788. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5789. if test -n "$ac_tool_prefix"; then
  5790. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5791. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5793. $as_echo_n "checking for $ac_word... " >&6; }
  5794. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. if test -n "$DLLTOOL"; then
  5798. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5799. else
  5800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5801. for as_dir in $PATH
  5802. do
  5803. IFS=$as_save_IFS
  5804. test -z "$as_dir" && as_dir=.
  5805. for ac_exec_ext in '' $ac_executable_extensions; do
  5806. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5807. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5808. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5809. break 2
  5810. fi
  5811. done
  5812. done
  5813. IFS=$as_save_IFS
  5814. fi
  5815. fi
  5816. DLLTOOL=$ac_cv_prog_DLLTOOL
  5817. if test -n "$DLLTOOL"; then
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5819. $as_echo "$DLLTOOL" >&6; }
  5820. else
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5822. $as_echo "no" >&6; }
  5823. fi
  5824. fi
  5825. if test -z "$ac_cv_prog_DLLTOOL"; then
  5826. ac_ct_DLLTOOL=$DLLTOOL
  5827. # Extract the first word of "dlltool", so it can be a program name with args.
  5828. set dummy dlltool; ac_word=$2
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5830. $as_echo_n "checking for $ac_word... " >&6; }
  5831. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5832. $as_echo_n "(cached) " >&6
  5833. else
  5834. if test -n "$ac_ct_DLLTOOL"; then
  5835. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. test -z "$as_dir" && as_dir=.
  5842. for ac_exec_ext in '' $ac_executable_extensions; do
  5843. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5844. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5845. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5846. break 2
  5847. fi
  5848. done
  5849. done
  5850. IFS=$as_save_IFS
  5851. fi
  5852. fi
  5853. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5854. if test -n "$ac_ct_DLLTOOL"; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5856. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5859. $as_echo "no" >&6; }
  5860. fi
  5861. if test "x$ac_ct_DLLTOOL" = x; then
  5862. DLLTOOL="false"
  5863. else
  5864. case $cross_compiling:$ac_tool_warned in
  5865. yes:)
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5867. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5868. ac_tool_warned=yes ;;
  5869. esac
  5870. DLLTOOL=$ac_ct_DLLTOOL
  5871. fi
  5872. else
  5873. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5874. fi
  5875. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5877. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5878. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5879. $as_echo_n "(cached) " >&6
  5880. else
  5881. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5882. case $host_os in
  5883. cygwin* | mingw* | pw32* | cegcc*)
  5884. # two different shell functions defined in ltmain.sh
  5885. # decide which to use based on capabilities of $DLLTOOL
  5886. case `$DLLTOOL --help 2>&1` in
  5887. *--identify-strict*)
  5888. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5889. ;;
  5890. *)
  5891. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5892. ;;
  5893. esac
  5894. ;;
  5895. *)
  5896. # fallback: assume linklib IS sharedlib
  5897. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5898. ;;
  5899. esac
  5900. fi
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5902. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5903. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5904. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5905. if test -n "$ac_tool_prefix"; then
  5906. for ac_prog in ar
  5907. do
  5908. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5909. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5911. $as_echo_n "checking for $ac_word... " >&6; }
  5912. if ${ac_cv_prog_AR+:} false; then :
  5913. $as_echo_n "(cached) " >&6
  5914. else
  5915. if test -n "$AR"; then
  5916. ac_cv_prog_AR="$AR" # Let the user override the test.
  5917. else
  5918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5919. for as_dir in $PATH
  5920. do
  5921. IFS=$as_save_IFS
  5922. test -z "$as_dir" && as_dir=.
  5923. for ac_exec_ext in '' $ac_executable_extensions; do
  5924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5925. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5927. break 2
  5928. fi
  5929. done
  5930. done
  5931. IFS=$as_save_IFS
  5932. fi
  5933. fi
  5934. AR=$ac_cv_prog_AR
  5935. if test -n "$AR"; then
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5937. $as_echo "$AR" >&6; }
  5938. else
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5940. $as_echo "no" >&6; }
  5941. fi
  5942. test -n "$AR" && break
  5943. done
  5944. fi
  5945. if test -z "$AR"; then
  5946. ac_ct_AR=$AR
  5947. for ac_prog in ar
  5948. do
  5949. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5950. set dummy $ac_prog; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$ac_ct_AR"; then
  5957. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5966. ac_cv_prog_ac_ct_AR="$ac_prog"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5976. if test -n "$ac_ct_AR"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5978. $as_echo "$ac_ct_AR" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. test -n "$ac_ct_AR" && break
  5984. done
  5985. if test "x$ac_ct_AR" = x; then
  5986. AR="false"
  5987. else
  5988. case $cross_compiling:$ac_tool_warned in
  5989. yes:)
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5992. ac_tool_warned=yes ;;
  5993. esac
  5994. AR=$ac_ct_AR
  5995. fi
  5996. fi
  5997. : ${AR=ar}
  5998. : ${AR_FLAGS=cru}
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6000. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6001. if ${lt_cv_ar_at_file+:} false; then :
  6002. $as_echo_n "(cached) " >&6
  6003. else
  6004. lt_cv_ar_at_file=no
  6005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6006. /* end confdefs.h. */
  6007. int
  6008. main ()
  6009. {
  6010. ;
  6011. return 0;
  6012. }
  6013. _ACEOF
  6014. if ac_fn_c_try_compile "$LINENO"; then :
  6015. echo conftest.$ac_objext > conftest.lst
  6016. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6017. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6018. (eval $lt_ar_try) 2>&5
  6019. ac_status=$?
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6021. test $ac_status = 0; }
  6022. if test "$ac_status" -eq 0; then
  6023. # Ensure the archiver fails upon bogus file names.
  6024. rm -f conftest.$ac_objext libconftest.a
  6025. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6026. (eval $lt_ar_try) 2>&5
  6027. ac_status=$?
  6028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6029. test $ac_status = 0; }
  6030. if test "$ac_status" -ne 0; then
  6031. lt_cv_ar_at_file=@
  6032. fi
  6033. fi
  6034. rm -f conftest.* libconftest.a
  6035. fi
  6036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6037. fi
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6039. $as_echo "$lt_cv_ar_at_file" >&6; }
  6040. if test "x$lt_cv_ar_at_file" = xno; then
  6041. archiver_list_spec=
  6042. else
  6043. archiver_list_spec=$lt_cv_ar_at_file
  6044. fi
  6045. if test -n "$ac_tool_prefix"; then
  6046. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6047. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6049. $as_echo_n "checking for $ac_word... " >&6; }
  6050. if ${ac_cv_prog_STRIP+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. if test -n "$STRIP"; then
  6054. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6055. else
  6056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6057. for as_dir in $PATH
  6058. do
  6059. IFS=$as_save_IFS
  6060. test -z "$as_dir" && as_dir=.
  6061. for ac_exec_ext in '' $ac_executable_extensions; do
  6062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6063. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6065. break 2
  6066. fi
  6067. done
  6068. done
  6069. IFS=$as_save_IFS
  6070. fi
  6071. fi
  6072. STRIP=$ac_cv_prog_STRIP
  6073. if test -n "$STRIP"; then
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6075. $as_echo "$STRIP" >&6; }
  6076. else
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6078. $as_echo "no" >&6; }
  6079. fi
  6080. fi
  6081. if test -z "$ac_cv_prog_STRIP"; then
  6082. ac_ct_STRIP=$STRIP
  6083. # Extract the first word of "strip", so it can be a program name with args.
  6084. set dummy strip; ac_word=$2
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6086. $as_echo_n "checking for $ac_word... " >&6; }
  6087. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6088. $as_echo_n "(cached) " >&6
  6089. else
  6090. if test -n "$ac_ct_STRIP"; then
  6091. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6092. else
  6093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6094. for as_dir in $PATH
  6095. do
  6096. IFS=$as_save_IFS
  6097. test -z "$as_dir" && as_dir=.
  6098. for ac_exec_ext in '' $ac_executable_extensions; do
  6099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6100. ac_cv_prog_ac_ct_STRIP="strip"
  6101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6102. break 2
  6103. fi
  6104. done
  6105. done
  6106. IFS=$as_save_IFS
  6107. fi
  6108. fi
  6109. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6110. if test -n "$ac_ct_STRIP"; then
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6112. $as_echo "$ac_ct_STRIP" >&6; }
  6113. else
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6115. $as_echo "no" >&6; }
  6116. fi
  6117. if test "x$ac_ct_STRIP" = x; then
  6118. STRIP=":"
  6119. else
  6120. case $cross_compiling:$ac_tool_warned in
  6121. yes:)
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6123. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6124. ac_tool_warned=yes ;;
  6125. esac
  6126. STRIP=$ac_ct_STRIP
  6127. fi
  6128. else
  6129. STRIP="$ac_cv_prog_STRIP"
  6130. fi
  6131. test -z "$STRIP" && STRIP=:
  6132. if test -n "$ac_tool_prefix"; then
  6133. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6134. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6136. $as_echo_n "checking for $ac_word... " >&6; }
  6137. if ${ac_cv_prog_RANLIB+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. if test -n "$RANLIB"; then
  6141. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6142. else
  6143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6144. for as_dir in $PATH
  6145. do
  6146. IFS=$as_save_IFS
  6147. test -z "$as_dir" && as_dir=.
  6148. for ac_exec_ext in '' $ac_executable_extensions; do
  6149. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6150. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6152. break 2
  6153. fi
  6154. done
  6155. done
  6156. IFS=$as_save_IFS
  6157. fi
  6158. fi
  6159. RANLIB=$ac_cv_prog_RANLIB
  6160. if test -n "$RANLIB"; then
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6162. $as_echo "$RANLIB" >&6; }
  6163. else
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6165. $as_echo "no" >&6; }
  6166. fi
  6167. fi
  6168. if test -z "$ac_cv_prog_RANLIB"; then
  6169. ac_ct_RANLIB=$RANLIB
  6170. # Extract the first word of "ranlib", so it can be a program name with args.
  6171. set dummy ranlib; ac_word=$2
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6173. $as_echo_n "checking for $ac_word... " >&6; }
  6174. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. if test -n "$ac_ct_RANLIB"; then
  6178. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6179. else
  6180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6181. for as_dir in $PATH
  6182. do
  6183. IFS=$as_save_IFS
  6184. test -z "$as_dir" && as_dir=.
  6185. for ac_exec_ext in '' $ac_executable_extensions; do
  6186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6187. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6189. break 2
  6190. fi
  6191. done
  6192. done
  6193. IFS=$as_save_IFS
  6194. fi
  6195. fi
  6196. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6197. if test -n "$ac_ct_RANLIB"; then
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6199. $as_echo "$ac_ct_RANLIB" >&6; }
  6200. else
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6202. $as_echo "no" >&6; }
  6203. fi
  6204. if test "x$ac_ct_RANLIB" = x; then
  6205. RANLIB=":"
  6206. else
  6207. case $cross_compiling:$ac_tool_warned in
  6208. yes:)
  6209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6210. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6211. ac_tool_warned=yes ;;
  6212. esac
  6213. RANLIB=$ac_ct_RANLIB
  6214. fi
  6215. else
  6216. RANLIB="$ac_cv_prog_RANLIB"
  6217. fi
  6218. test -z "$RANLIB" && RANLIB=:
  6219. # Determine commands to create old-style static archives.
  6220. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6221. old_postinstall_cmds='chmod 644 $oldlib'
  6222. old_postuninstall_cmds=
  6223. if test -n "$RANLIB"; then
  6224. case $host_os in
  6225. openbsd*)
  6226. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6227. ;;
  6228. *)
  6229. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6230. ;;
  6231. esac
  6232. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6233. fi
  6234. case $host_os in
  6235. darwin*)
  6236. lock_old_archive_extraction=yes ;;
  6237. *)
  6238. lock_old_archive_extraction=no ;;
  6239. esac
  6240. # If no C compiler was specified, use CC.
  6241. LTCC=${LTCC-"$CC"}
  6242. # If no C compiler flags were specified, use CFLAGS.
  6243. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6244. # Allow CC to be a program name with arguments.
  6245. compiler=$CC
  6246. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6248. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6249. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. # These are sane defaults that work on at least a few old systems.
  6253. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6254. # Character class describing NM global symbol codes.
  6255. symcode='[BCDEGRST]'
  6256. # Regexp to match symbols that can be accessed directly from C.
  6257. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6258. # Define system-specific variables.
  6259. case $host_os in
  6260. aix*)
  6261. symcode='[BCDT]'
  6262. ;;
  6263. cygwin* | mingw* | pw32* | cegcc*)
  6264. symcode='[ABCDGISTW]'
  6265. ;;
  6266. hpux*)
  6267. if test "$host_cpu" = ia64; then
  6268. symcode='[ABCDEGRST]'
  6269. fi
  6270. ;;
  6271. irix* | nonstopux*)
  6272. symcode='[BCDEGRST]'
  6273. ;;
  6274. osf*)
  6275. symcode='[BCDEGQRST]'
  6276. ;;
  6277. solaris*)
  6278. symcode='[BDRT]'
  6279. ;;
  6280. sco3.2v5*)
  6281. symcode='[DT]'
  6282. ;;
  6283. sysv4.2uw2*)
  6284. symcode='[DT]'
  6285. ;;
  6286. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6287. symcode='[ABDT]'
  6288. ;;
  6289. sysv4)
  6290. symcode='[DFNSTU]'
  6291. ;;
  6292. esac
  6293. # If we're using GNU nm, then use its standard symbol codes.
  6294. case `$NM -V 2>&1` in
  6295. *GNU* | *'with BFD'*)
  6296. symcode='[ABCDGIRSTW]' ;;
  6297. esac
  6298. # Transform an extracted symbol line into a proper C declaration.
  6299. # Some systems (esp. on ia64) link data and code symbols differently,
  6300. # so use this general approach.
  6301. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6302. # Transform an extracted symbol line into symbol name and symbol address
  6303. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6304. 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'"
  6305. # Handle CRLF in mingw tool chain
  6306. opt_cr=
  6307. case $build_os in
  6308. mingw*)
  6309. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6310. ;;
  6311. esac
  6312. # Try without a prefix underscore, then with it.
  6313. for ac_symprfx in "" "_"; do
  6314. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6315. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6316. # Write the raw and C identifiers.
  6317. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6318. # Fake it for dumpbin and say T for any non-static function
  6319. # and D for any global variable.
  6320. # Also find C++ and __fastcall symbols from MSVC++,
  6321. # which start with @ or ?.
  6322. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6323. " {last_section=section; section=\$ 3};"\
  6324. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6325. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6326. " \$ 0!~/External *\|/{next};"\
  6327. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6328. " {if(hide[section]) next};"\
  6329. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6330. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6331. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6332. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6333. " ' prfx=^$ac_symprfx"
  6334. else
  6335. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6336. fi
  6337. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6338. # Check to see that the pipe works correctly.
  6339. pipe_works=no
  6340. rm -f conftest*
  6341. cat > conftest.$ac_ext <<_LT_EOF
  6342. #ifdef __cplusplus
  6343. extern "C" {
  6344. #endif
  6345. char nm_test_var;
  6346. void nm_test_func(void);
  6347. void nm_test_func(void){}
  6348. #ifdef __cplusplus
  6349. }
  6350. #endif
  6351. int main(){nm_test_var='a';nm_test_func();return(0);}
  6352. _LT_EOF
  6353. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6354. (eval $ac_compile) 2>&5
  6355. ac_status=$?
  6356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6357. test $ac_status = 0; }; then
  6358. # Now try to grab the symbols.
  6359. nlist=conftest.nm
  6360. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6361. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6362. ac_status=$?
  6363. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6364. test $ac_status = 0; } && test -s "$nlist"; then
  6365. # Try sorting and uniquifying the output.
  6366. if sort "$nlist" | uniq > "$nlist"T; then
  6367. mv -f "$nlist"T "$nlist"
  6368. else
  6369. rm -f "$nlist"T
  6370. fi
  6371. # Make sure that we snagged all the symbols we need.
  6372. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6373. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6374. cat <<_LT_EOF > conftest.$ac_ext
  6375. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6376. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6377. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6378. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6379. # define LT_DLSYM_CONST
  6380. #elif defined(__osf__)
  6381. /* This system does not cope well with relocations in const data. */
  6382. # define LT_DLSYM_CONST
  6383. #else
  6384. # define LT_DLSYM_CONST const
  6385. #endif
  6386. #ifdef __cplusplus
  6387. extern "C" {
  6388. #endif
  6389. _LT_EOF
  6390. # Now generate the symbol file.
  6391. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6392. cat <<_LT_EOF >> conftest.$ac_ext
  6393. /* The mapping between symbol names and symbols. */
  6394. LT_DLSYM_CONST struct {
  6395. const char *name;
  6396. void *address;
  6397. }
  6398. lt__PROGRAM__LTX_preloaded_symbols[] =
  6399. {
  6400. { "@PROGRAM@", (void *) 0 },
  6401. _LT_EOF
  6402. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6403. cat <<\_LT_EOF >> conftest.$ac_ext
  6404. {0, (void *) 0}
  6405. };
  6406. /* This works around a problem in FreeBSD linker */
  6407. #ifdef FREEBSD_WORKAROUND
  6408. static const void *lt_preloaded_setup() {
  6409. return lt__PROGRAM__LTX_preloaded_symbols;
  6410. }
  6411. #endif
  6412. #ifdef __cplusplus
  6413. }
  6414. #endif
  6415. _LT_EOF
  6416. # Now try linking the two files.
  6417. mv conftest.$ac_objext conftstm.$ac_objext
  6418. lt_globsym_save_LIBS=$LIBS
  6419. lt_globsym_save_CFLAGS=$CFLAGS
  6420. LIBS="conftstm.$ac_objext"
  6421. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6422. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6423. (eval $ac_link) 2>&5
  6424. ac_status=$?
  6425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6426. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6427. pipe_works=yes
  6428. fi
  6429. LIBS=$lt_globsym_save_LIBS
  6430. CFLAGS=$lt_globsym_save_CFLAGS
  6431. else
  6432. echo "cannot find nm_test_func in $nlist" >&5
  6433. fi
  6434. else
  6435. echo "cannot find nm_test_var in $nlist" >&5
  6436. fi
  6437. else
  6438. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6439. fi
  6440. else
  6441. echo "$progname: failed program was:" >&5
  6442. cat conftest.$ac_ext >&5
  6443. fi
  6444. rm -rf conftest* conftst*
  6445. # Do not use the global_symbol_pipe unless it works.
  6446. if test "$pipe_works" = yes; then
  6447. break
  6448. else
  6449. lt_cv_sys_global_symbol_pipe=
  6450. fi
  6451. done
  6452. fi
  6453. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6454. lt_cv_sys_global_symbol_to_cdecl=
  6455. fi
  6456. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6458. $as_echo "failed" >&6; }
  6459. else
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6461. $as_echo "ok" >&6; }
  6462. fi
  6463. # Response file support.
  6464. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6465. nm_file_list_spec='@'
  6466. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6467. nm_file_list_spec='@'
  6468. fi
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6470. $as_echo_n "checking for sysroot... " >&6; }
  6471. # Check whether --with-sysroot was given.
  6472. if test "${with_sysroot+set}" = set; then :
  6473. withval=$with_sysroot;
  6474. else
  6475. with_sysroot=no
  6476. fi
  6477. lt_sysroot=
  6478. case ${with_sysroot} in #(
  6479. yes)
  6480. if test "$GCC" = yes; then
  6481. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6482. fi
  6483. ;; #(
  6484. /*)
  6485. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6486. ;; #(
  6487. no|'')
  6488. ;; #(
  6489. *)
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6491. $as_echo "${with_sysroot}" >&6; }
  6492. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6493. ;;
  6494. esac
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6496. $as_echo "${lt_sysroot:-no}" >&6; }
  6497. # Check whether --enable-libtool-lock was given.
  6498. if test "${enable_libtool_lock+set}" = set; then :
  6499. enableval=$enable_libtool_lock;
  6500. fi
  6501. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6502. # Some flags need to be propagated to the compiler or linker for good
  6503. # libtool support.
  6504. case $host in
  6505. ia64-*-hpux*)
  6506. # Find out which ABI we are using.
  6507. echo 'int i;' > conftest.$ac_ext
  6508. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6509. (eval $ac_compile) 2>&5
  6510. ac_status=$?
  6511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6512. test $ac_status = 0; }; then
  6513. case `/usr/bin/file conftest.$ac_objext` in
  6514. *ELF-32*)
  6515. HPUX_IA64_MODE="32"
  6516. ;;
  6517. *ELF-64*)
  6518. HPUX_IA64_MODE="64"
  6519. ;;
  6520. esac
  6521. fi
  6522. rm -rf conftest*
  6523. ;;
  6524. *-*-irix6*)
  6525. # Find out which ABI we are using.
  6526. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6527. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6528. (eval $ac_compile) 2>&5
  6529. ac_status=$?
  6530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6531. test $ac_status = 0; }; then
  6532. if test "$lt_cv_prog_gnu_ld" = yes; then
  6533. case `/usr/bin/file conftest.$ac_objext` in
  6534. *32-bit*)
  6535. LD="${LD-ld} -melf32bsmip"
  6536. ;;
  6537. *N32*)
  6538. LD="${LD-ld} -melf32bmipn32"
  6539. ;;
  6540. *64-bit*)
  6541. LD="${LD-ld} -melf64bmip"
  6542. ;;
  6543. esac
  6544. else
  6545. case `/usr/bin/file conftest.$ac_objext` in
  6546. *32-bit*)
  6547. LD="${LD-ld} -32"
  6548. ;;
  6549. *N32*)
  6550. LD="${LD-ld} -n32"
  6551. ;;
  6552. *64-bit*)
  6553. LD="${LD-ld} -64"
  6554. ;;
  6555. esac
  6556. fi
  6557. fi
  6558. rm -rf conftest*
  6559. ;;
  6560. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6561. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6562. # Find out which ABI we are using.
  6563. echo 'int i;' > conftest.$ac_ext
  6564. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6565. (eval $ac_compile) 2>&5
  6566. ac_status=$?
  6567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6568. test $ac_status = 0; }; then
  6569. case `/usr/bin/file conftest.o` in
  6570. *32-bit*)
  6571. case $host in
  6572. x86_64-*kfreebsd*-gnu)
  6573. LD="${LD-ld} -m elf_i386_fbsd"
  6574. ;;
  6575. x86_64-*linux*)
  6576. LD="${LD-ld} -m elf_i386"
  6577. ;;
  6578. ppc64-*linux*|powerpc64-*linux*)
  6579. LD="${LD-ld} -m elf32ppclinux"
  6580. ;;
  6581. s390x-*linux*)
  6582. LD="${LD-ld} -m elf_s390"
  6583. ;;
  6584. sparc64-*linux*)
  6585. LD="${LD-ld} -m elf32_sparc"
  6586. ;;
  6587. esac
  6588. ;;
  6589. *64-bit*)
  6590. case $host in
  6591. x86_64-*kfreebsd*-gnu)
  6592. LD="${LD-ld} -m elf_x86_64_fbsd"
  6593. ;;
  6594. x86_64-*linux*)
  6595. LD="${LD-ld} -m elf_x86_64"
  6596. ;;
  6597. ppc*-*linux*|powerpc*-*linux*)
  6598. LD="${LD-ld} -m elf64ppc"
  6599. ;;
  6600. s390*-*linux*|s390*-*tpf*)
  6601. LD="${LD-ld} -m elf64_s390"
  6602. ;;
  6603. sparc*-*linux*)
  6604. LD="${LD-ld} -m elf64_sparc"
  6605. ;;
  6606. esac
  6607. ;;
  6608. esac
  6609. fi
  6610. rm -rf conftest*
  6611. ;;
  6612. *-*-sco3.2v5*)
  6613. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6614. SAVE_CFLAGS="$CFLAGS"
  6615. CFLAGS="$CFLAGS -belf"
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6617. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6618. if ${lt_cv_cc_needs_belf+:} false; then :
  6619. $as_echo_n "(cached) " >&6
  6620. else
  6621. ac_ext=c
  6622. ac_cpp='$CPP $CPPFLAGS'
  6623. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6624. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6625. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6627. /* end confdefs.h. */
  6628. int
  6629. main ()
  6630. {
  6631. ;
  6632. return 0;
  6633. }
  6634. _ACEOF
  6635. if ac_fn_c_try_link "$LINENO"; then :
  6636. lt_cv_cc_needs_belf=yes
  6637. else
  6638. lt_cv_cc_needs_belf=no
  6639. fi
  6640. rm -f core conftest.err conftest.$ac_objext \
  6641. conftest$ac_exeext conftest.$ac_ext
  6642. ac_ext=c
  6643. ac_cpp='$CPP $CPPFLAGS'
  6644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6649. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6650. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6651. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6652. CFLAGS="$SAVE_CFLAGS"
  6653. fi
  6654. ;;
  6655. *-*solaris*)
  6656. # Find out which ABI we are using.
  6657. echo 'int i;' > conftest.$ac_ext
  6658. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6659. (eval $ac_compile) 2>&5
  6660. ac_status=$?
  6661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6662. test $ac_status = 0; }; then
  6663. case `/usr/bin/file conftest.o` in
  6664. *64-bit*)
  6665. case $lt_cv_prog_gnu_ld in
  6666. yes*)
  6667. case $host in
  6668. i?86-*-solaris*)
  6669. LD="${LD-ld} -m elf_x86_64"
  6670. ;;
  6671. sparc*-*-solaris*)
  6672. LD="${LD-ld} -m elf64_sparc"
  6673. ;;
  6674. esac
  6675. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6676. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6677. LD="${LD-ld}_sol2"
  6678. fi
  6679. ;;
  6680. *)
  6681. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6682. LD="${LD-ld} -64"
  6683. fi
  6684. ;;
  6685. esac
  6686. ;;
  6687. esac
  6688. fi
  6689. rm -rf conftest*
  6690. ;;
  6691. esac
  6692. need_locks="$enable_libtool_lock"
  6693. if test -n "$ac_tool_prefix"; then
  6694. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6695. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6697. $as_echo_n "checking for $ac_word... " >&6; }
  6698. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. if test -n "$MANIFEST_TOOL"; then
  6702. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6703. else
  6704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6705. for as_dir in $PATH
  6706. do
  6707. IFS=$as_save_IFS
  6708. test -z "$as_dir" && as_dir=.
  6709. for ac_exec_ext in '' $ac_executable_extensions; do
  6710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6711. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6713. break 2
  6714. fi
  6715. done
  6716. done
  6717. IFS=$as_save_IFS
  6718. fi
  6719. fi
  6720. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6721. if test -n "$MANIFEST_TOOL"; then
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6723. $as_echo "$MANIFEST_TOOL" >&6; }
  6724. else
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6726. $as_echo "no" >&6; }
  6727. fi
  6728. fi
  6729. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6730. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6731. # Extract the first word of "mt", so it can be a program name with args.
  6732. set dummy mt; ac_word=$2
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6734. $as_echo_n "checking for $ac_word... " >&6; }
  6735. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6739. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6740. else
  6741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6742. for as_dir in $PATH
  6743. do
  6744. IFS=$as_save_IFS
  6745. test -z "$as_dir" && as_dir=.
  6746. for ac_exec_ext in '' $ac_executable_extensions; do
  6747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6748. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6750. break 2
  6751. fi
  6752. done
  6753. done
  6754. IFS=$as_save_IFS
  6755. fi
  6756. fi
  6757. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6758. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6760. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6761. else
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6763. $as_echo "no" >&6; }
  6764. fi
  6765. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6766. MANIFEST_TOOL=":"
  6767. else
  6768. case $cross_compiling:$ac_tool_warned in
  6769. yes:)
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6772. ac_tool_warned=yes ;;
  6773. esac
  6774. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6775. fi
  6776. else
  6777. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6778. fi
  6779. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6781. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6782. if ${lt_cv_path_mainfest_tool+:} false; then :
  6783. $as_echo_n "(cached) " >&6
  6784. else
  6785. lt_cv_path_mainfest_tool=no
  6786. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6787. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6788. cat conftest.err >&5
  6789. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6790. lt_cv_path_mainfest_tool=yes
  6791. fi
  6792. rm -f conftest*
  6793. fi
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6795. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6796. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6797. MANIFEST_TOOL=:
  6798. fi
  6799. case $host_os in
  6800. rhapsody* | darwin*)
  6801. if test -n "$ac_tool_prefix"; then
  6802. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6803. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6805. $as_echo_n "checking for $ac_word... " >&6; }
  6806. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6807. $as_echo_n "(cached) " >&6
  6808. else
  6809. if test -n "$DSYMUTIL"; then
  6810. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6811. else
  6812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6813. for as_dir in $PATH
  6814. do
  6815. IFS=$as_save_IFS
  6816. test -z "$as_dir" && as_dir=.
  6817. for ac_exec_ext in '' $ac_executable_extensions; do
  6818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6819. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6821. break 2
  6822. fi
  6823. done
  6824. done
  6825. IFS=$as_save_IFS
  6826. fi
  6827. fi
  6828. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6829. if test -n "$DSYMUTIL"; then
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6831. $as_echo "$DSYMUTIL" >&6; }
  6832. else
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6834. $as_echo "no" >&6; }
  6835. fi
  6836. fi
  6837. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6838. ac_ct_DSYMUTIL=$DSYMUTIL
  6839. # Extract the first word of "dsymutil", so it can be a program name with args.
  6840. set dummy dsymutil; ac_word=$2
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6842. $as_echo_n "checking for $ac_word... " >&6; }
  6843. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. if test -n "$ac_ct_DSYMUTIL"; then
  6847. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6848. else
  6849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6850. for as_dir in $PATH
  6851. do
  6852. IFS=$as_save_IFS
  6853. test -z "$as_dir" && as_dir=.
  6854. for ac_exec_ext in '' $ac_executable_extensions; do
  6855. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6856. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6858. break 2
  6859. fi
  6860. done
  6861. done
  6862. IFS=$as_save_IFS
  6863. fi
  6864. fi
  6865. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6866. if test -n "$ac_ct_DSYMUTIL"; then
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6868. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6869. else
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6871. $as_echo "no" >&6; }
  6872. fi
  6873. if test "x$ac_ct_DSYMUTIL" = x; then
  6874. DSYMUTIL=":"
  6875. else
  6876. case $cross_compiling:$ac_tool_warned in
  6877. yes:)
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6879. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6880. ac_tool_warned=yes ;;
  6881. esac
  6882. DSYMUTIL=$ac_ct_DSYMUTIL
  6883. fi
  6884. else
  6885. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6886. fi
  6887. if test -n "$ac_tool_prefix"; then
  6888. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6889. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6891. $as_echo_n "checking for $ac_word... " >&6; }
  6892. if ${ac_cv_prog_NMEDIT+:} false; then :
  6893. $as_echo_n "(cached) " >&6
  6894. else
  6895. if test -n "$NMEDIT"; then
  6896. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6897. else
  6898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6899. for as_dir in $PATH
  6900. do
  6901. IFS=$as_save_IFS
  6902. test -z "$as_dir" && as_dir=.
  6903. for ac_exec_ext in '' $ac_executable_extensions; do
  6904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6905. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6907. break 2
  6908. fi
  6909. done
  6910. done
  6911. IFS=$as_save_IFS
  6912. fi
  6913. fi
  6914. NMEDIT=$ac_cv_prog_NMEDIT
  6915. if test -n "$NMEDIT"; then
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6917. $as_echo "$NMEDIT" >&6; }
  6918. else
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6920. $as_echo "no" >&6; }
  6921. fi
  6922. fi
  6923. if test -z "$ac_cv_prog_NMEDIT"; then
  6924. ac_ct_NMEDIT=$NMEDIT
  6925. # Extract the first word of "nmedit", so it can be a program name with args.
  6926. set dummy nmedit; ac_word=$2
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6928. $as_echo_n "checking for $ac_word... " >&6; }
  6929. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6930. $as_echo_n "(cached) " >&6
  6931. else
  6932. if test -n "$ac_ct_NMEDIT"; then
  6933. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6934. else
  6935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6936. for as_dir in $PATH
  6937. do
  6938. IFS=$as_save_IFS
  6939. test -z "$as_dir" && as_dir=.
  6940. for ac_exec_ext in '' $ac_executable_extensions; do
  6941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6942. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6944. break 2
  6945. fi
  6946. done
  6947. done
  6948. IFS=$as_save_IFS
  6949. fi
  6950. fi
  6951. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6952. if test -n "$ac_ct_NMEDIT"; then
  6953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6954. $as_echo "$ac_ct_NMEDIT" >&6; }
  6955. else
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6957. $as_echo "no" >&6; }
  6958. fi
  6959. if test "x$ac_ct_NMEDIT" = x; then
  6960. NMEDIT=":"
  6961. else
  6962. case $cross_compiling:$ac_tool_warned in
  6963. yes:)
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6965. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6966. ac_tool_warned=yes ;;
  6967. esac
  6968. NMEDIT=$ac_ct_NMEDIT
  6969. fi
  6970. else
  6971. NMEDIT="$ac_cv_prog_NMEDIT"
  6972. fi
  6973. if test -n "$ac_tool_prefix"; then
  6974. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6975. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6977. $as_echo_n "checking for $ac_word... " >&6; }
  6978. if ${ac_cv_prog_LIPO+:} false; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. if test -n "$LIPO"; then
  6982. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6983. else
  6984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6985. for as_dir in $PATH
  6986. do
  6987. IFS=$as_save_IFS
  6988. test -z "$as_dir" && as_dir=.
  6989. for ac_exec_ext in '' $ac_executable_extensions; do
  6990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6991. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6993. break 2
  6994. fi
  6995. done
  6996. done
  6997. IFS=$as_save_IFS
  6998. fi
  6999. fi
  7000. LIPO=$ac_cv_prog_LIPO
  7001. if test -n "$LIPO"; then
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7003. $as_echo "$LIPO" >&6; }
  7004. else
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7006. $as_echo "no" >&6; }
  7007. fi
  7008. fi
  7009. if test -z "$ac_cv_prog_LIPO"; then
  7010. ac_ct_LIPO=$LIPO
  7011. # Extract the first word of "lipo", so it can be a program name with args.
  7012. set dummy lipo; ac_word=$2
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7014. $as_echo_n "checking for $ac_word... " >&6; }
  7015. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7016. $as_echo_n "(cached) " >&6
  7017. else
  7018. if test -n "$ac_ct_LIPO"; then
  7019. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7020. else
  7021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7022. for as_dir in $PATH
  7023. do
  7024. IFS=$as_save_IFS
  7025. test -z "$as_dir" && as_dir=.
  7026. for ac_exec_ext in '' $ac_executable_extensions; do
  7027. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7028. ac_cv_prog_ac_ct_LIPO="lipo"
  7029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7030. break 2
  7031. fi
  7032. done
  7033. done
  7034. IFS=$as_save_IFS
  7035. fi
  7036. fi
  7037. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7038. if test -n "$ac_ct_LIPO"; then
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7040. $as_echo "$ac_ct_LIPO" >&6; }
  7041. else
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7043. $as_echo "no" >&6; }
  7044. fi
  7045. if test "x$ac_ct_LIPO" = x; then
  7046. LIPO=":"
  7047. else
  7048. case $cross_compiling:$ac_tool_warned in
  7049. yes:)
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7051. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7052. ac_tool_warned=yes ;;
  7053. esac
  7054. LIPO=$ac_ct_LIPO
  7055. fi
  7056. else
  7057. LIPO="$ac_cv_prog_LIPO"
  7058. fi
  7059. if test -n "$ac_tool_prefix"; then
  7060. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7061. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7063. $as_echo_n "checking for $ac_word... " >&6; }
  7064. if ${ac_cv_prog_OTOOL+:} false; then :
  7065. $as_echo_n "(cached) " >&6
  7066. else
  7067. if test -n "$OTOOL"; then
  7068. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7069. else
  7070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7071. for as_dir in $PATH
  7072. do
  7073. IFS=$as_save_IFS
  7074. test -z "$as_dir" && as_dir=.
  7075. for ac_exec_ext in '' $ac_executable_extensions; do
  7076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7077. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7079. break 2
  7080. fi
  7081. done
  7082. done
  7083. IFS=$as_save_IFS
  7084. fi
  7085. fi
  7086. OTOOL=$ac_cv_prog_OTOOL
  7087. if test -n "$OTOOL"; then
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7089. $as_echo "$OTOOL" >&6; }
  7090. else
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7092. $as_echo "no" >&6; }
  7093. fi
  7094. fi
  7095. if test -z "$ac_cv_prog_OTOOL"; then
  7096. ac_ct_OTOOL=$OTOOL
  7097. # Extract the first word of "otool", so it can be a program name with args.
  7098. set dummy otool; ac_word=$2
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7100. $as_echo_n "checking for $ac_word... " >&6; }
  7101. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7102. $as_echo_n "(cached) " >&6
  7103. else
  7104. if test -n "$ac_ct_OTOOL"; then
  7105. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7106. else
  7107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7108. for as_dir in $PATH
  7109. do
  7110. IFS=$as_save_IFS
  7111. test -z "$as_dir" && as_dir=.
  7112. for ac_exec_ext in '' $ac_executable_extensions; do
  7113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7114. ac_cv_prog_ac_ct_OTOOL="otool"
  7115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7116. break 2
  7117. fi
  7118. done
  7119. done
  7120. IFS=$as_save_IFS
  7121. fi
  7122. fi
  7123. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7124. if test -n "$ac_ct_OTOOL"; then
  7125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7126. $as_echo "$ac_ct_OTOOL" >&6; }
  7127. else
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7129. $as_echo "no" >&6; }
  7130. fi
  7131. if test "x$ac_ct_OTOOL" = x; then
  7132. OTOOL=":"
  7133. else
  7134. case $cross_compiling:$ac_tool_warned in
  7135. yes:)
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7138. ac_tool_warned=yes ;;
  7139. esac
  7140. OTOOL=$ac_ct_OTOOL
  7141. fi
  7142. else
  7143. OTOOL="$ac_cv_prog_OTOOL"
  7144. fi
  7145. if test -n "$ac_tool_prefix"; then
  7146. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7147. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7149. $as_echo_n "checking for $ac_word... " >&6; }
  7150. if ${ac_cv_prog_OTOOL64+:} false; then :
  7151. $as_echo_n "(cached) " >&6
  7152. else
  7153. if test -n "$OTOOL64"; then
  7154. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7155. else
  7156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7157. for as_dir in $PATH
  7158. do
  7159. IFS=$as_save_IFS
  7160. test -z "$as_dir" && as_dir=.
  7161. for ac_exec_ext in '' $ac_executable_extensions; do
  7162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7163. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7165. break 2
  7166. fi
  7167. done
  7168. done
  7169. IFS=$as_save_IFS
  7170. fi
  7171. fi
  7172. OTOOL64=$ac_cv_prog_OTOOL64
  7173. if test -n "$OTOOL64"; then
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7175. $as_echo "$OTOOL64" >&6; }
  7176. else
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7178. $as_echo "no" >&6; }
  7179. fi
  7180. fi
  7181. if test -z "$ac_cv_prog_OTOOL64"; then
  7182. ac_ct_OTOOL64=$OTOOL64
  7183. # Extract the first word of "otool64", so it can be a program name with args.
  7184. set dummy otool64; ac_word=$2
  7185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7186. $as_echo_n "checking for $ac_word... " >&6; }
  7187. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7188. $as_echo_n "(cached) " >&6
  7189. else
  7190. if test -n "$ac_ct_OTOOL64"; then
  7191. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7192. else
  7193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7194. for as_dir in $PATH
  7195. do
  7196. IFS=$as_save_IFS
  7197. test -z "$as_dir" && as_dir=.
  7198. for ac_exec_ext in '' $ac_executable_extensions; do
  7199. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7200. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7202. break 2
  7203. fi
  7204. done
  7205. done
  7206. IFS=$as_save_IFS
  7207. fi
  7208. fi
  7209. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7210. if test -n "$ac_ct_OTOOL64"; then
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7212. $as_echo "$ac_ct_OTOOL64" >&6; }
  7213. else
  7214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7215. $as_echo "no" >&6; }
  7216. fi
  7217. if test "x$ac_ct_OTOOL64" = x; then
  7218. OTOOL64=":"
  7219. else
  7220. case $cross_compiling:$ac_tool_warned in
  7221. yes:)
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7223. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7224. ac_tool_warned=yes ;;
  7225. esac
  7226. OTOOL64=$ac_ct_OTOOL64
  7227. fi
  7228. else
  7229. OTOOL64="$ac_cv_prog_OTOOL64"
  7230. fi
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7232. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7233. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. lt_cv_apple_cc_single_mod=no
  7237. if test -z "${LT_MULTI_MODULE}"; then
  7238. # By default we will add the -single_module flag. You can override
  7239. # by either setting the environment variable LT_MULTI_MODULE
  7240. # non-empty at configure time, or by adding -multi_module to the
  7241. # link flags.
  7242. rm -rf libconftest.dylib*
  7243. echo "int foo(void){return 1;}" > conftest.c
  7244. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7245. -dynamiclib -Wl,-single_module conftest.c" >&5
  7246. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7247. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7248. _lt_result=$?
  7249. # If there is a non-empty error log, and "single_module"
  7250. # appears in it, assume the flag caused a linker warning
  7251. if test -s conftest.err && $GREP single_module conftest.err; then
  7252. cat conftest.err >&5
  7253. # Otherwise, if the output was created with a 0 exit code from
  7254. # the compiler, it worked.
  7255. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7256. lt_cv_apple_cc_single_mod=yes
  7257. else
  7258. cat conftest.err >&5
  7259. fi
  7260. rm -rf libconftest.dylib*
  7261. rm -f conftest.*
  7262. fi
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7265. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7267. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7268. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7269. $as_echo_n "(cached) " >&6
  7270. else
  7271. lt_cv_ld_exported_symbols_list=no
  7272. save_LDFLAGS=$LDFLAGS
  7273. echo "_main" > conftest.sym
  7274. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7276. /* end confdefs.h. */
  7277. int
  7278. main ()
  7279. {
  7280. ;
  7281. return 0;
  7282. }
  7283. _ACEOF
  7284. if ac_fn_c_try_link "$LINENO"; then :
  7285. lt_cv_ld_exported_symbols_list=yes
  7286. else
  7287. lt_cv_ld_exported_symbols_list=no
  7288. fi
  7289. rm -f core conftest.err conftest.$ac_objext \
  7290. conftest$ac_exeext conftest.$ac_ext
  7291. LDFLAGS="$save_LDFLAGS"
  7292. fi
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7294. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7296. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7297. if ${lt_cv_ld_force_load+:} false; then :
  7298. $as_echo_n "(cached) " >&6
  7299. else
  7300. lt_cv_ld_force_load=no
  7301. cat > conftest.c << _LT_EOF
  7302. int forced_loaded() { return 2;}
  7303. _LT_EOF
  7304. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7305. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7306. echo "$AR cru libconftest.a conftest.o" >&5
  7307. $AR cru libconftest.a conftest.o 2>&5
  7308. echo "$RANLIB libconftest.a" >&5
  7309. $RANLIB libconftest.a 2>&5
  7310. cat > conftest.c << _LT_EOF
  7311. int main() { return 0;}
  7312. _LT_EOF
  7313. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7314. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7315. _lt_result=$?
  7316. if test -s conftest.err && $GREP force_load conftest.err; then
  7317. cat conftest.err >&5
  7318. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7319. lt_cv_ld_force_load=yes
  7320. else
  7321. cat conftest.err >&5
  7322. fi
  7323. rm -f conftest.err libconftest.a conftest conftest.c
  7324. rm -rf conftest.dSYM
  7325. fi
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7327. $as_echo "$lt_cv_ld_force_load" >&6; }
  7328. case $host_os in
  7329. rhapsody* | darwin1.[012])
  7330. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7331. darwin1.*)
  7332. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7333. darwin*) # darwin 5.x on
  7334. # if running on 10.5 or later, the deployment target defaults
  7335. # to the OS version, if on x86, and 10.4, the deployment
  7336. # target defaults to 10.4. Don't you love it?
  7337. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7338. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7339. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7340. 10.[012]*)
  7341. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7342. 10.*)
  7343. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7344. esac
  7345. ;;
  7346. esac
  7347. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7348. _lt_dar_single_mod='$single_module'
  7349. fi
  7350. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7351. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7352. else
  7353. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7354. fi
  7355. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7356. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7357. else
  7358. _lt_dsymutil=
  7359. fi
  7360. ;;
  7361. esac
  7362. ac_ext=c
  7363. ac_cpp='$CPP $CPPFLAGS'
  7364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7368. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7369. # On Suns, sometimes $CPP names a directory.
  7370. if test -n "$CPP" && test -d "$CPP"; then
  7371. CPP=
  7372. fi
  7373. if test -z "$CPP"; then
  7374. if ${ac_cv_prog_CPP+:} false; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. # Double quotes because CPP needs to be expanded
  7378. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7379. do
  7380. ac_preproc_ok=false
  7381. for ac_c_preproc_warn_flag in '' yes
  7382. do
  7383. # Use a header file that comes with gcc, so configuring glibc
  7384. # with a fresh cross-compiler works.
  7385. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7386. # <limits.h> exists even on freestanding compilers.
  7387. # On the NeXT, cc -E runs the code through the compiler's parser,
  7388. # not just through cpp. "Syntax error" is here to catch this case.
  7389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7390. /* end confdefs.h. */
  7391. #ifdef __STDC__
  7392. # include <limits.h>
  7393. #else
  7394. # include <assert.h>
  7395. #endif
  7396. Syntax error
  7397. _ACEOF
  7398. if ac_fn_c_try_cpp "$LINENO"; then :
  7399. else
  7400. # Broken: fails on valid input.
  7401. continue
  7402. fi
  7403. rm -f conftest.err conftest.i conftest.$ac_ext
  7404. # OK, works on sane cases. Now check whether nonexistent headers
  7405. # can be detected and how.
  7406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7407. /* end confdefs.h. */
  7408. #include <ac_nonexistent.h>
  7409. _ACEOF
  7410. if ac_fn_c_try_cpp "$LINENO"; then :
  7411. # Broken: success on invalid input.
  7412. continue
  7413. else
  7414. # Passes both tests.
  7415. ac_preproc_ok=:
  7416. break
  7417. fi
  7418. rm -f conftest.err conftest.i conftest.$ac_ext
  7419. done
  7420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7421. rm -f conftest.i conftest.err conftest.$ac_ext
  7422. if $ac_preproc_ok; then :
  7423. break
  7424. fi
  7425. done
  7426. ac_cv_prog_CPP=$CPP
  7427. fi
  7428. CPP=$ac_cv_prog_CPP
  7429. else
  7430. ac_cv_prog_CPP=$CPP
  7431. fi
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7433. $as_echo "$CPP" >&6; }
  7434. ac_preproc_ok=false
  7435. for ac_c_preproc_warn_flag in '' yes
  7436. do
  7437. # Use a header file that comes with gcc, so configuring glibc
  7438. # with a fresh cross-compiler works.
  7439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7440. # <limits.h> exists even on freestanding compilers.
  7441. # On the NeXT, cc -E runs the code through the compiler's parser,
  7442. # not just through cpp. "Syntax error" is here to catch this case.
  7443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7444. /* end confdefs.h. */
  7445. #ifdef __STDC__
  7446. # include <limits.h>
  7447. #else
  7448. # include <assert.h>
  7449. #endif
  7450. Syntax error
  7451. _ACEOF
  7452. if ac_fn_c_try_cpp "$LINENO"; then :
  7453. else
  7454. # Broken: fails on valid input.
  7455. continue
  7456. fi
  7457. rm -f conftest.err conftest.i conftest.$ac_ext
  7458. # OK, works on sane cases. Now check whether nonexistent headers
  7459. # can be detected and how.
  7460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7461. /* end confdefs.h. */
  7462. #include <ac_nonexistent.h>
  7463. _ACEOF
  7464. if ac_fn_c_try_cpp "$LINENO"; then :
  7465. # Broken: success on invalid input.
  7466. continue
  7467. else
  7468. # Passes both tests.
  7469. ac_preproc_ok=:
  7470. break
  7471. fi
  7472. rm -f conftest.err conftest.i conftest.$ac_ext
  7473. done
  7474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7475. rm -f conftest.i conftest.err conftest.$ac_ext
  7476. if $ac_preproc_ok; then :
  7477. else
  7478. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7479. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7480. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7481. See \`config.log' for more details" "$LINENO" 5; }
  7482. fi
  7483. ac_ext=c
  7484. ac_cpp='$CPP $CPPFLAGS'
  7485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7489. $as_echo_n "checking for ANSI C header files... " >&6; }
  7490. if ${ac_cv_header_stdc+:} false; then :
  7491. $as_echo_n "(cached) " >&6
  7492. else
  7493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7494. /* end confdefs.h. */
  7495. #include <stdlib.h>
  7496. #include <stdarg.h>
  7497. #include <string.h>
  7498. #include <float.h>
  7499. int
  7500. main ()
  7501. {
  7502. ;
  7503. return 0;
  7504. }
  7505. _ACEOF
  7506. if ac_fn_c_try_compile "$LINENO"; then :
  7507. ac_cv_header_stdc=yes
  7508. else
  7509. ac_cv_header_stdc=no
  7510. fi
  7511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7512. if test $ac_cv_header_stdc = yes; then
  7513. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7515. /* end confdefs.h. */
  7516. #include <string.h>
  7517. _ACEOF
  7518. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7519. $EGREP "memchr" >/dev/null 2>&1; then :
  7520. else
  7521. ac_cv_header_stdc=no
  7522. fi
  7523. rm -f conftest*
  7524. fi
  7525. if test $ac_cv_header_stdc = yes; then
  7526. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7528. /* end confdefs.h. */
  7529. #include <stdlib.h>
  7530. _ACEOF
  7531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7532. $EGREP "free" >/dev/null 2>&1; then :
  7533. else
  7534. ac_cv_header_stdc=no
  7535. fi
  7536. rm -f conftest*
  7537. fi
  7538. if test $ac_cv_header_stdc = yes; then
  7539. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7540. if test "$cross_compiling" = yes; then :
  7541. :
  7542. else
  7543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7544. /* end confdefs.h. */
  7545. #include <ctype.h>
  7546. #include <stdlib.h>
  7547. #if ((' ' & 0x0FF) == 0x020)
  7548. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7549. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7550. #else
  7551. # define ISLOWER(c) \
  7552. (('a' <= (c) && (c) <= 'i') \
  7553. || ('j' <= (c) && (c) <= 'r') \
  7554. || ('s' <= (c) && (c) <= 'z'))
  7555. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7556. #endif
  7557. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7558. int
  7559. main ()
  7560. {
  7561. int i;
  7562. for (i = 0; i < 256; i++)
  7563. if (XOR (islower (i), ISLOWER (i))
  7564. || toupper (i) != TOUPPER (i))
  7565. return 2;
  7566. return 0;
  7567. }
  7568. _ACEOF
  7569. if ac_fn_c_try_run "$LINENO"; then :
  7570. else
  7571. ac_cv_header_stdc=no
  7572. fi
  7573. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7574. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7575. fi
  7576. fi
  7577. fi
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7579. $as_echo "$ac_cv_header_stdc" >&6; }
  7580. if test $ac_cv_header_stdc = yes; then
  7581. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7582. fi
  7583. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7584. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7585. inttypes.h stdint.h unistd.h
  7586. do :
  7587. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7588. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7589. "
  7590. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7591. cat >>confdefs.h <<_ACEOF
  7592. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7593. _ACEOF
  7594. fi
  7595. done
  7596. for ac_header in dlfcn.h
  7597. do :
  7598. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7599. "
  7600. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7601. cat >>confdefs.h <<_ACEOF
  7602. #define HAVE_DLFCN_H 1
  7603. _ACEOF
  7604. fi
  7605. done
  7606. func_stripname_cnf ()
  7607. {
  7608. case ${2} in
  7609. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7610. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7611. esac
  7612. } # func_stripname_cnf
  7613. # Set options
  7614. enable_dlopen=no
  7615. enable_win32_dll=no
  7616. # Check whether --enable-shared was given.
  7617. if test "${enable_shared+set}" = set; then :
  7618. enableval=$enable_shared; p=${PACKAGE-default}
  7619. case $enableval in
  7620. yes) enable_shared=yes ;;
  7621. no) enable_shared=no ;;
  7622. *)
  7623. enable_shared=no
  7624. # Look at the argument we got. We use all the common list separators.
  7625. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7626. for pkg in $enableval; do
  7627. IFS="$lt_save_ifs"
  7628. if test "X$pkg" = "X$p"; then
  7629. enable_shared=yes
  7630. fi
  7631. done
  7632. IFS="$lt_save_ifs"
  7633. ;;
  7634. esac
  7635. else
  7636. enable_shared=yes
  7637. fi
  7638. # Check whether --with-pic was given.
  7639. if test "${with_pic+set}" = set; then :
  7640. withval=$with_pic; lt_p=${PACKAGE-default}
  7641. case $withval in
  7642. yes|no) pic_mode=$withval ;;
  7643. *)
  7644. pic_mode=default
  7645. # Look at the argument we got. We use all the common list separators.
  7646. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7647. for lt_pkg in $withval; do
  7648. IFS="$lt_save_ifs"
  7649. if test "X$lt_pkg" = "X$lt_p"; then
  7650. pic_mode=yes
  7651. fi
  7652. done
  7653. IFS="$lt_save_ifs"
  7654. ;;
  7655. esac
  7656. else
  7657. pic_mode=default
  7658. fi
  7659. test -z "$pic_mode" && pic_mode=default
  7660. # Check whether --enable-fast-install was given.
  7661. if test "${enable_fast_install+set}" = set; then :
  7662. enableval=$enable_fast_install; p=${PACKAGE-default}
  7663. case $enableval in
  7664. yes) enable_fast_install=yes ;;
  7665. no) enable_fast_install=no ;;
  7666. *)
  7667. enable_fast_install=no
  7668. # Look at the argument we got. We use all the common list separators.
  7669. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7670. for pkg in $enableval; do
  7671. IFS="$lt_save_ifs"
  7672. if test "X$pkg" = "X$p"; then
  7673. enable_fast_install=yes
  7674. fi
  7675. done
  7676. IFS="$lt_save_ifs"
  7677. ;;
  7678. esac
  7679. else
  7680. enable_fast_install=yes
  7681. fi
  7682. # This can be used to rebuild libtool when needed
  7683. LIBTOOL_DEPS="$ltmain"
  7684. # Always use our own libtool.
  7685. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7686. test -z "$LN_S" && LN_S="ln -s"
  7687. if test -n "${ZSH_VERSION+set}" ; then
  7688. setopt NO_GLOB_SUBST
  7689. fi
  7690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7691. $as_echo_n "checking for objdir... " >&6; }
  7692. if ${lt_cv_objdir+:} false; then :
  7693. $as_echo_n "(cached) " >&6
  7694. else
  7695. rm -f .libs 2>/dev/null
  7696. mkdir .libs 2>/dev/null
  7697. if test -d .libs; then
  7698. lt_cv_objdir=.libs
  7699. else
  7700. # MS-DOS does not allow filenames that begin with a dot.
  7701. lt_cv_objdir=_libs
  7702. fi
  7703. rmdir .libs 2>/dev/null
  7704. fi
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7706. $as_echo "$lt_cv_objdir" >&6; }
  7707. objdir=$lt_cv_objdir
  7708. cat >>confdefs.h <<_ACEOF
  7709. #define LT_OBJDIR "$lt_cv_objdir/"
  7710. _ACEOF
  7711. case $host_os in
  7712. aix3*)
  7713. # AIX sometimes has problems with the GCC collect2 program. For some
  7714. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7715. # vanish in a puff of smoke.
  7716. if test "X${COLLECT_NAMES+set}" != Xset; then
  7717. COLLECT_NAMES=
  7718. export COLLECT_NAMES
  7719. fi
  7720. ;;
  7721. esac
  7722. # Global variables:
  7723. ofile=libtool
  7724. can_build_shared=yes
  7725. # All known linkers require a `.a' archive for static linking (except MSVC,
  7726. # which needs '.lib').
  7727. libext=a
  7728. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7729. old_CC="$CC"
  7730. old_CFLAGS="$CFLAGS"
  7731. # Set sane defaults for various variables
  7732. test -z "$CC" && CC=cc
  7733. test -z "$LTCC" && LTCC=$CC
  7734. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7735. test -z "$LD" && LD=ld
  7736. test -z "$ac_objext" && ac_objext=o
  7737. for cc_temp in $compiler""; do
  7738. case $cc_temp in
  7739. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7740. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7741. \-*) ;;
  7742. *) break;;
  7743. esac
  7744. done
  7745. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7746. # Only perform the check for file, if the check method requires it
  7747. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7748. case $deplibs_check_method in
  7749. file_magic*)
  7750. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7752. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7753. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7754. $as_echo_n "(cached) " >&6
  7755. else
  7756. case $MAGIC_CMD in
  7757. [\\/*] | ?:[\\/]*)
  7758. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7759. ;;
  7760. *)
  7761. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7762. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7763. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7764. for ac_dir in $ac_dummy; do
  7765. IFS="$lt_save_ifs"
  7766. test -z "$ac_dir" && ac_dir=.
  7767. if test -f $ac_dir/${ac_tool_prefix}file; then
  7768. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7769. if test -n "$file_magic_test_file"; then
  7770. case $deplibs_check_method in
  7771. "file_magic "*)
  7772. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7773. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7774. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7775. $EGREP "$file_magic_regex" > /dev/null; then
  7776. :
  7777. else
  7778. cat <<_LT_EOF 1>&2
  7779. *** Warning: the command libtool uses to detect shared libraries,
  7780. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7781. *** The result is that libtool may fail to recognize shared libraries
  7782. *** as such. This will affect the creation of libtool libraries that
  7783. *** depend on shared libraries, but programs linked with such libtool
  7784. *** libraries will work regardless of this problem. Nevertheless, you
  7785. *** may want to report the problem to your system manager and/or to
  7786. *** [email protected]
  7787. _LT_EOF
  7788. fi ;;
  7789. esac
  7790. fi
  7791. break
  7792. fi
  7793. done
  7794. IFS="$lt_save_ifs"
  7795. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7796. ;;
  7797. esac
  7798. fi
  7799. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7800. if test -n "$MAGIC_CMD"; then
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7802. $as_echo "$MAGIC_CMD" >&6; }
  7803. else
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7805. $as_echo "no" >&6; }
  7806. fi
  7807. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7808. if test -n "$ac_tool_prefix"; then
  7809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7810. $as_echo_n "checking for file... " >&6; }
  7811. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7812. $as_echo_n "(cached) " >&6
  7813. else
  7814. case $MAGIC_CMD in
  7815. [\\/*] | ?:[\\/]*)
  7816. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7817. ;;
  7818. *)
  7819. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7820. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7821. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7822. for ac_dir in $ac_dummy; do
  7823. IFS="$lt_save_ifs"
  7824. test -z "$ac_dir" && ac_dir=.
  7825. if test -f $ac_dir/file; then
  7826. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7827. if test -n "$file_magic_test_file"; then
  7828. case $deplibs_check_method in
  7829. "file_magic "*)
  7830. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7831. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7832. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7833. $EGREP "$file_magic_regex" > /dev/null; then
  7834. :
  7835. else
  7836. cat <<_LT_EOF 1>&2
  7837. *** Warning: the command libtool uses to detect shared libraries,
  7838. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7839. *** The result is that libtool may fail to recognize shared libraries
  7840. *** as such. This will affect the creation of libtool libraries that
  7841. *** depend on shared libraries, but programs linked with such libtool
  7842. *** libraries will work regardless of this problem. Nevertheless, you
  7843. *** may want to report the problem to your system manager and/or to
  7844. *** [email protected]
  7845. _LT_EOF
  7846. fi ;;
  7847. esac
  7848. fi
  7849. break
  7850. fi
  7851. done
  7852. IFS="$lt_save_ifs"
  7853. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7854. ;;
  7855. esac
  7856. fi
  7857. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7858. if test -n "$MAGIC_CMD"; then
  7859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7860. $as_echo "$MAGIC_CMD" >&6; }
  7861. else
  7862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7863. $as_echo "no" >&6; }
  7864. fi
  7865. else
  7866. MAGIC_CMD=:
  7867. fi
  7868. fi
  7869. fi
  7870. ;;
  7871. esac
  7872. # Use C for the default configuration in the libtool script
  7873. lt_save_CC="$CC"
  7874. ac_ext=c
  7875. ac_cpp='$CPP $CPPFLAGS'
  7876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7879. # Source file extension for C test sources.
  7880. ac_ext=c
  7881. # Object file extension for compiled C test sources.
  7882. objext=o
  7883. objext=$objext
  7884. # Code to be used in simple compile tests
  7885. lt_simple_compile_test_code="int some_variable = 0;"
  7886. # Code to be used in simple link tests
  7887. lt_simple_link_test_code='int main(){return(0);}'
  7888. # If no C compiler was specified, use CC.
  7889. LTCC=${LTCC-"$CC"}
  7890. # If no C compiler flags were specified, use CFLAGS.
  7891. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7892. # Allow CC to be a program name with arguments.
  7893. compiler=$CC
  7894. # Save the default compiler, since it gets overwritten when the other
  7895. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7896. compiler_DEFAULT=$CC
  7897. # save warnings/boilerplate of simple test code
  7898. ac_outfile=conftest.$ac_objext
  7899. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7900. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7901. _lt_compiler_boilerplate=`cat conftest.err`
  7902. $RM conftest*
  7903. ac_outfile=conftest.$ac_objext
  7904. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7905. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7906. _lt_linker_boilerplate=`cat conftest.err`
  7907. $RM -r conftest*
  7908. ## CAVEAT EMPTOR:
  7909. ## There is no encapsulation within the following macros, do not change
  7910. ## the running order or otherwise move them around unless you know exactly
  7911. ## what you are doing...
  7912. if test -n "$compiler"; then
  7913. lt_prog_compiler_no_builtin_flag=
  7914. if test "$GCC" = yes; then
  7915. case $cc_basename in
  7916. nvcc*)
  7917. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7918. *)
  7919. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7920. esac
  7921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7922. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7923. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7924. $as_echo_n "(cached) " >&6
  7925. else
  7926. lt_cv_prog_compiler_rtti_exceptions=no
  7927. ac_outfile=conftest.$ac_objext
  7928. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7929. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7930. # Insert the option either (1) after the last *FLAGS variable, or
  7931. # (2) before a word containing "conftest.", or (3) at the end.
  7932. # Note that $ac_compile itself does not contain backslashes and begins
  7933. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7934. # The option is referenced via a variable to avoid confusing sed.
  7935. lt_compile=`echo "$ac_compile" | $SED \
  7936. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7937. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7938. -e 's:$: $lt_compiler_flag:'`
  7939. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7940. (eval "$lt_compile" 2>conftest.err)
  7941. ac_status=$?
  7942. cat conftest.err >&5
  7943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7944. if (exit $ac_status) && test -s "$ac_outfile"; then
  7945. # The compiler can only warn and ignore the option if not recognized
  7946. # So say no if there are warnings other than the usual output.
  7947. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7948. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7949. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7950. lt_cv_prog_compiler_rtti_exceptions=yes
  7951. fi
  7952. fi
  7953. $RM conftest*
  7954. fi
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7956. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7957. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7958. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7959. else
  7960. :
  7961. fi
  7962. fi
  7963. lt_prog_compiler_wl=
  7964. lt_prog_compiler_pic=
  7965. lt_prog_compiler_static=
  7966. if test "$GCC" = yes; then
  7967. lt_prog_compiler_wl='-Wl,'
  7968. lt_prog_compiler_static='-static'
  7969. case $host_os in
  7970. aix*)
  7971. # All AIX code is PIC.
  7972. if test "$host_cpu" = ia64; then
  7973. # AIX 5 now supports IA64 processor
  7974. lt_prog_compiler_static='-Bstatic'
  7975. fi
  7976. ;;
  7977. amigaos*)
  7978. case $host_cpu in
  7979. powerpc)
  7980. # see comment about AmigaOS4 .so support
  7981. lt_prog_compiler_pic='-fPIC'
  7982. ;;
  7983. m68k)
  7984. # FIXME: we need at least 68020 code to build shared libraries, but
  7985. # adding the `-m68020' flag to GCC prevents building anything better,
  7986. # like `-m68040'.
  7987. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7988. ;;
  7989. esac
  7990. ;;
  7991. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7992. # PIC is the default for these OSes.
  7993. ;;
  7994. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7995. # This hack is so that the source file can tell whether it is being
  7996. # built for inclusion in a dll (and should export symbols for example).
  7997. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7998. # (--disable-auto-import) libraries
  7999. lt_prog_compiler_pic='-DDLL_EXPORT'
  8000. ;;
  8001. darwin* | rhapsody*)
  8002. # PIC is the default on this platform
  8003. # Common symbols not allowed in MH_DYLIB files
  8004. lt_prog_compiler_pic='-fno-common'
  8005. ;;
  8006. haiku*)
  8007. # PIC is the default for Haiku.
  8008. # The "-static" flag exists, but is broken.
  8009. lt_prog_compiler_static=
  8010. ;;
  8011. hpux*)
  8012. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8013. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8014. # sets the default TLS model and affects inlining.
  8015. case $host_cpu in
  8016. hppa*64*)
  8017. # +Z the default
  8018. ;;
  8019. *)
  8020. lt_prog_compiler_pic='-fPIC'
  8021. ;;
  8022. esac
  8023. ;;
  8024. interix[3-9]*)
  8025. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8026. # Instead, we relocate shared libraries at runtime.
  8027. ;;
  8028. msdosdjgpp*)
  8029. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8030. # on systems that don't support them.
  8031. lt_prog_compiler_can_build_shared=no
  8032. enable_shared=no
  8033. ;;
  8034. *nto* | *qnx*)
  8035. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8036. # it will coredump.
  8037. lt_prog_compiler_pic='-fPIC -shared'
  8038. ;;
  8039. sysv4*MP*)
  8040. if test -d /usr/nec; then
  8041. lt_prog_compiler_pic=-Kconform_pic
  8042. fi
  8043. ;;
  8044. *)
  8045. lt_prog_compiler_pic='-fPIC'
  8046. ;;
  8047. esac
  8048. case $cc_basename in
  8049. nvcc*) # Cuda Compiler Driver 2.2
  8050. lt_prog_compiler_wl='-Xlinker '
  8051. if test -n "$lt_prog_compiler_pic"; then
  8052. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8053. fi
  8054. ;;
  8055. esac
  8056. else
  8057. # PORTME Check for flag to pass linker flags through the system compiler.
  8058. case $host_os in
  8059. aix*)
  8060. lt_prog_compiler_wl='-Wl,'
  8061. if test "$host_cpu" = ia64; then
  8062. # AIX 5 now supports IA64 processor
  8063. lt_prog_compiler_static='-Bstatic'
  8064. else
  8065. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8066. fi
  8067. ;;
  8068. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8069. # This hack is so that the source file can tell whether it is being
  8070. # built for inclusion in a dll (and should export symbols for example).
  8071. lt_prog_compiler_pic='-DDLL_EXPORT'
  8072. ;;
  8073. hpux9* | hpux10* | hpux11*)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8076. # not for PA HP-UX.
  8077. case $host_cpu in
  8078. hppa*64*|ia64*)
  8079. # +Z the default
  8080. ;;
  8081. *)
  8082. lt_prog_compiler_pic='+Z'
  8083. ;;
  8084. esac
  8085. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8086. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8087. ;;
  8088. irix5* | irix6* | nonstopux*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. # PIC (with -KPIC) is the default.
  8091. lt_prog_compiler_static='-non_shared'
  8092. ;;
  8093. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8094. case $cc_basename in
  8095. # old Intel for x86_64 which still supported -KPIC.
  8096. ecc*)
  8097. lt_prog_compiler_wl='-Wl,'
  8098. lt_prog_compiler_pic='-KPIC'
  8099. lt_prog_compiler_static='-static'
  8100. ;;
  8101. # icc used to be incompatible with GCC.
  8102. # ICC 10 doesn't accept -KPIC any more.
  8103. icc* | ifort*)
  8104. lt_prog_compiler_wl='-Wl,'
  8105. lt_prog_compiler_pic='-fPIC'
  8106. lt_prog_compiler_static='-static'
  8107. ;;
  8108. # Lahey Fortran 8.1.
  8109. lf95*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. lt_prog_compiler_pic='--shared'
  8112. lt_prog_compiler_static='--static'
  8113. ;;
  8114. nagfor*)
  8115. # NAG Fortran compiler
  8116. lt_prog_compiler_wl='-Wl,-Wl,,'
  8117. lt_prog_compiler_pic='-PIC'
  8118. lt_prog_compiler_static='-Bstatic'
  8119. ;;
  8120. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8121. # Portland Group compilers (*not* the Pentium gcc compiler,
  8122. # which looks to be a dead project)
  8123. lt_prog_compiler_wl='-Wl,'
  8124. lt_prog_compiler_pic='-fpic'
  8125. lt_prog_compiler_static='-Bstatic'
  8126. ;;
  8127. ccc*)
  8128. lt_prog_compiler_wl='-Wl,'
  8129. # All Alpha code is PIC.
  8130. lt_prog_compiler_static='-non_shared'
  8131. ;;
  8132. xl* | bgxl* | bgf* | mpixl*)
  8133. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8134. lt_prog_compiler_wl='-Wl,'
  8135. lt_prog_compiler_pic='-qpic'
  8136. lt_prog_compiler_static='-qstaticlink'
  8137. ;;
  8138. *)
  8139. case `$CC -V 2>&1 | sed 5q` in
  8140. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8141. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8142. lt_prog_compiler_pic='-KPIC'
  8143. lt_prog_compiler_static='-Bstatic'
  8144. lt_prog_compiler_wl=''
  8145. ;;
  8146. *Sun\ F* | *Sun*Fortran*)
  8147. lt_prog_compiler_pic='-KPIC'
  8148. lt_prog_compiler_static='-Bstatic'
  8149. lt_prog_compiler_wl='-Qoption ld '
  8150. ;;
  8151. *Sun\ C*)
  8152. # Sun C 5.9
  8153. lt_prog_compiler_pic='-KPIC'
  8154. lt_prog_compiler_static='-Bstatic'
  8155. lt_prog_compiler_wl='-Wl,'
  8156. ;;
  8157. *Intel*\ [CF]*Compiler*)
  8158. lt_prog_compiler_wl='-Wl,'
  8159. lt_prog_compiler_pic='-fPIC'
  8160. lt_prog_compiler_static='-static'
  8161. ;;
  8162. *Portland\ Group*)
  8163. lt_prog_compiler_wl='-Wl,'
  8164. lt_prog_compiler_pic='-fpic'
  8165. lt_prog_compiler_static='-Bstatic'
  8166. ;;
  8167. esac
  8168. ;;
  8169. esac
  8170. ;;
  8171. newsos6)
  8172. lt_prog_compiler_pic='-KPIC'
  8173. lt_prog_compiler_static='-Bstatic'
  8174. ;;
  8175. *nto* | *qnx*)
  8176. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8177. # it will coredump.
  8178. lt_prog_compiler_pic='-fPIC -shared'
  8179. ;;
  8180. osf3* | osf4* | osf5*)
  8181. lt_prog_compiler_wl='-Wl,'
  8182. # All OSF/1 code is PIC.
  8183. lt_prog_compiler_static='-non_shared'
  8184. ;;
  8185. rdos*)
  8186. lt_prog_compiler_static='-non_shared'
  8187. ;;
  8188. solaris*)
  8189. lt_prog_compiler_pic='-KPIC'
  8190. lt_prog_compiler_static='-Bstatic'
  8191. case $cc_basename in
  8192. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8193. lt_prog_compiler_wl='-Qoption ld ';;
  8194. *)
  8195. lt_prog_compiler_wl='-Wl,';;
  8196. esac
  8197. ;;
  8198. sunos4*)
  8199. lt_prog_compiler_wl='-Qoption ld '
  8200. lt_prog_compiler_pic='-PIC'
  8201. lt_prog_compiler_static='-Bstatic'
  8202. ;;
  8203. sysv4 | sysv4.2uw2* | sysv4.3*)
  8204. lt_prog_compiler_wl='-Wl,'
  8205. lt_prog_compiler_pic='-KPIC'
  8206. lt_prog_compiler_static='-Bstatic'
  8207. ;;
  8208. sysv4*MP*)
  8209. if test -d /usr/nec ;then
  8210. lt_prog_compiler_pic='-Kconform_pic'
  8211. lt_prog_compiler_static='-Bstatic'
  8212. fi
  8213. ;;
  8214. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8215. lt_prog_compiler_wl='-Wl,'
  8216. lt_prog_compiler_pic='-KPIC'
  8217. lt_prog_compiler_static='-Bstatic'
  8218. ;;
  8219. unicos*)
  8220. lt_prog_compiler_wl='-Wl,'
  8221. lt_prog_compiler_can_build_shared=no
  8222. ;;
  8223. uts4*)
  8224. lt_prog_compiler_pic='-pic'
  8225. lt_prog_compiler_static='-Bstatic'
  8226. ;;
  8227. *)
  8228. lt_prog_compiler_can_build_shared=no
  8229. ;;
  8230. esac
  8231. fi
  8232. case $host_os in
  8233. # For platforms which do not support PIC, -DPIC is meaningless:
  8234. *djgpp*)
  8235. lt_prog_compiler_pic=
  8236. ;;
  8237. *)
  8238. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8239. ;;
  8240. esac
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8242. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8243. if ${lt_cv_prog_compiler_pic+:} false; then :
  8244. $as_echo_n "(cached) " >&6
  8245. else
  8246. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8247. fi
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8249. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8250. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8251. #
  8252. # Check to make sure the PIC flag actually works.
  8253. #
  8254. if test -n "$lt_prog_compiler_pic"; then
  8255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8256. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8257. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8258. $as_echo_n "(cached) " >&6
  8259. else
  8260. lt_cv_prog_compiler_pic_works=no
  8261. ac_outfile=conftest.$ac_objext
  8262. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8263. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8264. # Insert the option either (1) after the last *FLAGS variable, or
  8265. # (2) before a word containing "conftest.", or (3) at the end.
  8266. # Note that $ac_compile itself does not contain backslashes and begins
  8267. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8268. # The option is referenced via a variable to avoid confusing sed.
  8269. lt_compile=`echo "$ac_compile" | $SED \
  8270. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8271. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8272. -e 's:$: $lt_compiler_flag:'`
  8273. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8274. (eval "$lt_compile" 2>conftest.err)
  8275. ac_status=$?
  8276. cat conftest.err >&5
  8277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8278. if (exit $ac_status) && test -s "$ac_outfile"; then
  8279. # The compiler can only warn and ignore the option if not recognized
  8280. # So say no if there are warnings other than the usual output.
  8281. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8282. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8283. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8284. lt_cv_prog_compiler_pic_works=yes
  8285. fi
  8286. fi
  8287. $RM conftest*
  8288. fi
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8290. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8291. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8292. case $lt_prog_compiler_pic in
  8293. "" | " "*) ;;
  8294. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8295. esac
  8296. else
  8297. lt_prog_compiler_pic=
  8298. lt_prog_compiler_can_build_shared=no
  8299. fi
  8300. fi
  8301. #
  8302. # Check to make sure the static flag actually works.
  8303. #
  8304. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8306. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8307. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8308. $as_echo_n "(cached) " >&6
  8309. else
  8310. lt_cv_prog_compiler_static_works=no
  8311. save_LDFLAGS="$LDFLAGS"
  8312. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8313. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8314. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8315. # The linker can only warn and ignore the option if not recognized
  8316. # So say no if there are warnings
  8317. if test -s conftest.err; then
  8318. # Append any errors to the config.log.
  8319. cat conftest.err 1>&5
  8320. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8321. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8322. if diff conftest.exp conftest.er2 >/dev/null; then
  8323. lt_cv_prog_compiler_static_works=yes
  8324. fi
  8325. else
  8326. lt_cv_prog_compiler_static_works=yes
  8327. fi
  8328. fi
  8329. $RM -r conftest*
  8330. LDFLAGS="$save_LDFLAGS"
  8331. fi
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8333. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8334. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8335. :
  8336. else
  8337. lt_prog_compiler_static=
  8338. fi
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8340. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8341. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8342. $as_echo_n "(cached) " >&6
  8343. else
  8344. lt_cv_prog_compiler_c_o=no
  8345. $RM -r conftest 2>/dev/null
  8346. mkdir conftest
  8347. cd conftest
  8348. mkdir out
  8349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8350. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8351. # Insert the option either (1) after the last *FLAGS variable, or
  8352. # (2) before a word containing "conftest.", or (3) at the end.
  8353. # Note that $ac_compile itself does not contain backslashes and begins
  8354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8355. lt_compile=`echo "$ac_compile" | $SED \
  8356. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8357. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8358. -e 's:$: $lt_compiler_flag:'`
  8359. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8360. (eval "$lt_compile" 2>out/conftest.err)
  8361. ac_status=$?
  8362. cat out/conftest.err >&5
  8363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8364. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8365. then
  8366. # The compiler can only warn and ignore the option if not recognized
  8367. # So say no if there are warnings
  8368. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8369. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8370. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8371. lt_cv_prog_compiler_c_o=yes
  8372. fi
  8373. fi
  8374. chmod u+w . 2>&5
  8375. $RM conftest*
  8376. # SGI C++ compiler will create directory out/ii_files/ for
  8377. # template instantiation
  8378. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8379. $RM out/* && rmdir out
  8380. cd ..
  8381. $RM -r conftest
  8382. $RM conftest*
  8383. fi
  8384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8385. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8387. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8388. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8389. $as_echo_n "(cached) " >&6
  8390. else
  8391. lt_cv_prog_compiler_c_o=no
  8392. $RM -r conftest 2>/dev/null
  8393. mkdir conftest
  8394. cd conftest
  8395. mkdir out
  8396. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8397. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8398. # Insert the option either (1) after the last *FLAGS variable, or
  8399. # (2) before a word containing "conftest.", or (3) at the end.
  8400. # Note that $ac_compile itself does not contain backslashes and begins
  8401. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8402. lt_compile=`echo "$ac_compile" | $SED \
  8403. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8404. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8405. -e 's:$: $lt_compiler_flag:'`
  8406. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8407. (eval "$lt_compile" 2>out/conftest.err)
  8408. ac_status=$?
  8409. cat out/conftest.err >&5
  8410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8411. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8412. then
  8413. # The compiler can only warn and ignore the option if not recognized
  8414. # So say no if there are warnings
  8415. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8416. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8417. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8418. lt_cv_prog_compiler_c_o=yes
  8419. fi
  8420. fi
  8421. chmod u+w . 2>&5
  8422. $RM conftest*
  8423. # SGI C++ compiler will create directory out/ii_files/ for
  8424. # template instantiation
  8425. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8426. $RM out/* && rmdir out
  8427. cd ..
  8428. $RM -r conftest
  8429. $RM conftest*
  8430. fi
  8431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8432. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8433. hard_links="nottested"
  8434. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8435. # do not overwrite the value of need_locks provided by the user
  8436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8437. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8438. hard_links=yes
  8439. $RM conftest*
  8440. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8441. touch conftest.a
  8442. ln conftest.a conftest.b 2>&5 || hard_links=no
  8443. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8445. $as_echo "$hard_links" >&6; }
  8446. if test "$hard_links" = no; then
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8448. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8449. need_locks=warn
  8450. fi
  8451. else
  8452. need_locks=no
  8453. fi
  8454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8455. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8456. runpath_var=
  8457. allow_undefined_flag=
  8458. always_export_symbols=no
  8459. archive_cmds=
  8460. archive_expsym_cmds=
  8461. compiler_needs_object=no
  8462. enable_shared_with_static_runtimes=no
  8463. export_dynamic_flag_spec=
  8464. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8465. hardcode_automatic=no
  8466. hardcode_direct=no
  8467. hardcode_direct_absolute=no
  8468. hardcode_libdir_flag_spec=
  8469. hardcode_libdir_separator=
  8470. hardcode_minus_L=no
  8471. hardcode_shlibpath_var=unsupported
  8472. inherit_rpath=no
  8473. link_all_deplibs=unknown
  8474. module_cmds=
  8475. module_expsym_cmds=
  8476. old_archive_from_new_cmds=
  8477. old_archive_from_expsyms_cmds=
  8478. thread_safe_flag_spec=
  8479. whole_archive_flag_spec=
  8480. # include_expsyms should be a list of space-separated symbols to be *always*
  8481. # included in the symbol list
  8482. include_expsyms=
  8483. # exclude_expsyms can be an extended regexp of symbols to exclude
  8484. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8485. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8486. # as well as any symbol that contains `d'.
  8487. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8488. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8489. # platforms (ab)use it in PIC code, but their linkers get confused if
  8490. # the symbol is explicitly referenced. Since portable code cannot
  8491. # rely on this symbol name, it's probably fine to never include it in
  8492. # preloaded symbol tables.
  8493. # Exclude shared library initialization/finalization symbols.
  8494. extract_expsyms_cmds=
  8495. case $host_os in
  8496. cygwin* | mingw* | pw32* | cegcc*)
  8497. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8498. # When not using gcc, we currently assume that we are using
  8499. # Microsoft Visual C++.
  8500. if test "$GCC" != yes; then
  8501. with_gnu_ld=no
  8502. fi
  8503. ;;
  8504. interix*)
  8505. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8506. with_gnu_ld=yes
  8507. ;;
  8508. openbsd*)
  8509. with_gnu_ld=no
  8510. ;;
  8511. esac
  8512. ld_shlibs=yes
  8513. # On some targets, GNU ld is compatible enough with the native linker
  8514. # that we're better off using the native interface for both.
  8515. lt_use_gnu_ld_interface=no
  8516. if test "$with_gnu_ld" = yes; then
  8517. case $host_os in
  8518. aix*)
  8519. # The AIX port of GNU ld has always aspired to compatibility
  8520. # with the native linker. However, as the warning in the GNU ld
  8521. # block says, versions before 2.19.5* couldn't really create working
  8522. # shared libraries, regardless of the interface used.
  8523. case `$LD -v 2>&1` in
  8524. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8525. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8526. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8527. *)
  8528. lt_use_gnu_ld_interface=yes
  8529. ;;
  8530. esac
  8531. ;;
  8532. *)
  8533. lt_use_gnu_ld_interface=yes
  8534. ;;
  8535. esac
  8536. fi
  8537. if test "$lt_use_gnu_ld_interface" = yes; then
  8538. # If archive_cmds runs LD, not CC, wlarc should be empty
  8539. wlarc='${wl}'
  8540. # Set some defaults for GNU ld with shared library support. These
  8541. # are reset later if shared libraries are not supported. Putting them
  8542. # here allows them to be overridden if necessary.
  8543. runpath_var=LD_RUN_PATH
  8544. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8545. export_dynamic_flag_spec='${wl}--export-dynamic'
  8546. # ancient GNU ld didn't support --whole-archive et. al.
  8547. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8548. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8549. else
  8550. whole_archive_flag_spec=
  8551. fi
  8552. supports_anon_versioning=no
  8553. case `$LD -v 2>&1` in
  8554. *GNU\ gold*) supports_anon_versioning=yes ;;
  8555. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8556. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8557. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8558. *\ 2.11.*) ;; # other 2.11 versions
  8559. *) supports_anon_versioning=yes ;;
  8560. esac
  8561. # See if GNU ld supports shared libraries.
  8562. case $host_os in
  8563. aix[3-9]*)
  8564. # On AIX/PPC, the GNU linker is very broken
  8565. if test "$host_cpu" != ia64; then
  8566. ld_shlibs=no
  8567. cat <<_LT_EOF 1>&2
  8568. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8569. *** to be unable to reliably create shared libraries on AIX.
  8570. *** Therefore, libtool is disabling shared libraries support. If you
  8571. *** really care for shared libraries, you may want to install binutils
  8572. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8573. *** You will then need to restart the configuration process.
  8574. _LT_EOF
  8575. fi
  8576. ;;
  8577. amigaos*)
  8578. case $host_cpu in
  8579. powerpc)
  8580. # see comment about AmigaOS4 .so support
  8581. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8582. archive_expsym_cmds=''
  8583. ;;
  8584. m68k)
  8585. 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)'
  8586. hardcode_libdir_flag_spec='-L$libdir'
  8587. hardcode_minus_L=yes
  8588. ;;
  8589. esac
  8590. ;;
  8591. beos*)
  8592. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8593. allow_undefined_flag=unsupported
  8594. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8595. # support --undefined. This deserves some investigation. FIXME
  8596. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8597. else
  8598. ld_shlibs=no
  8599. fi
  8600. ;;
  8601. cygwin* | mingw* | pw32* | cegcc*)
  8602. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8603. # as there is no search path for DLLs.
  8604. hardcode_libdir_flag_spec='-L$libdir'
  8605. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8606. allow_undefined_flag=unsupported
  8607. always_export_symbols=no
  8608. enable_shared_with_static_runtimes=yes
  8609. 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'
  8610. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8611. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8612. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8613. # If the export-symbols file already is a .def file (1st line
  8614. # is EXPORTS), use it as is; otherwise, prepend...
  8615. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8616. cp $export_symbols $output_objdir/$soname.def;
  8617. else
  8618. echo EXPORTS > $output_objdir/$soname.def;
  8619. cat $export_symbols >> $output_objdir/$soname.def;
  8620. fi~
  8621. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8622. else
  8623. ld_shlibs=no
  8624. fi
  8625. ;;
  8626. haiku*)
  8627. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8628. link_all_deplibs=yes
  8629. ;;
  8630. interix[3-9]*)
  8631. hardcode_direct=no
  8632. hardcode_shlibpath_var=no
  8633. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8634. export_dynamic_flag_spec='${wl}-E'
  8635. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8636. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8637. # default) and relocated if they conflict, which is a slow very memory
  8638. # consuming and fragmenting process. To avoid this, we pick a random,
  8639. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8640. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8641. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8642. 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'
  8643. ;;
  8644. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8645. tmp_diet=no
  8646. if test "$host_os" = linux-dietlibc; then
  8647. case $cc_basename in
  8648. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8649. esac
  8650. fi
  8651. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8652. && test "$tmp_diet" = no
  8653. then
  8654. tmp_addflag=' $pic_flag'
  8655. tmp_sharedflag='-shared'
  8656. case $cc_basename,$host_cpu in
  8657. pgcc*) # Portland Group C compiler
  8658. 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'
  8659. tmp_addflag=' $pic_flag'
  8660. ;;
  8661. pgf77* | pgf90* | pgf95* | pgfortran*)
  8662. # Portland Group f77 and f90 compilers
  8663. 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'
  8664. tmp_addflag=' $pic_flag -Mnomain' ;;
  8665. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8666. tmp_addflag=' -i_dynamic' ;;
  8667. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8668. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8669. ifc* | ifort*) # Intel Fortran compiler
  8670. tmp_addflag=' -nofor_main' ;;
  8671. lf95*) # Lahey Fortran 8.1
  8672. whole_archive_flag_spec=
  8673. tmp_sharedflag='--shared' ;;
  8674. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8675. tmp_sharedflag='-qmkshrobj'
  8676. tmp_addflag= ;;
  8677. nvcc*) # Cuda Compiler Driver 2.2
  8678. 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'
  8679. compiler_needs_object=yes
  8680. ;;
  8681. esac
  8682. case `$CC -V 2>&1 | sed 5q` in
  8683. *Sun\ C*) # Sun C 5.9
  8684. 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'
  8685. compiler_needs_object=yes
  8686. tmp_sharedflag='-G' ;;
  8687. *Sun\ F*) # Sun Fortran 8.3
  8688. tmp_sharedflag='-G' ;;
  8689. esac
  8690. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8691. if test "x$supports_anon_versioning" = xyes; then
  8692. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8693. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8694. echo "local: *; };" >> $output_objdir/$libname.ver~
  8695. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8696. fi
  8697. case $cc_basename in
  8698. xlf* | bgf* | bgxlf* | mpixlf*)
  8699. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8700. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8701. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8702. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8703. if test "x$supports_anon_versioning" = xyes; then
  8704. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8705. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8706. echo "local: *; };" >> $output_objdir/$libname.ver~
  8707. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8708. fi
  8709. ;;
  8710. esac
  8711. else
  8712. ld_shlibs=no
  8713. fi
  8714. ;;
  8715. netbsd*)
  8716. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8717. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8718. wlarc=
  8719. else
  8720. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8721. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8722. fi
  8723. ;;
  8724. solaris*)
  8725. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8726. ld_shlibs=no
  8727. cat <<_LT_EOF 1>&2
  8728. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8729. *** create shared libraries on Solaris systems. Therefore, libtool
  8730. *** is disabling shared libraries support. We urge you to upgrade GNU
  8731. *** binutils to release 2.9.1 or newer. Another option is to modify
  8732. *** your PATH or compiler configuration so that the native linker is
  8733. *** used, and then restart.
  8734. _LT_EOF
  8735. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8736. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8737. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8738. else
  8739. ld_shlibs=no
  8740. fi
  8741. ;;
  8742. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8743. case `$LD -v 2>&1` in
  8744. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8745. ld_shlibs=no
  8746. cat <<_LT_EOF 1>&2
  8747. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8748. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8749. *** is disabling shared libraries support. We urge you to upgrade GNU
  8750. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8751. *** your PATH or compiler configuration so that the native linker is
  8752. *** used, and then restart.
  8753. _LT_EOF
  8754. ;;
  8755. *)
  8756. # For security reasons, it is highly recommended that you always
  8757. # use absolute paths for naming shared libraries, and exclude the
  8758. # DT_RUNPATH tag from executables and libraries. But doing so
  8759. # requires that you compile everything twice, which is a pain.
  8760. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8761. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8762. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8763. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8764. else
  8765. ld_shlibs=no
  8766. fi
  8767. ;;
  8768. esac
  8769. ;;
  8770. sunos4*)
  8771. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8772. wlarc=
  8773. hardcode_direct=yes
  8774. hardcode_shlibpath_var=no
  8775. ;;
  8776. *)
  8777. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8778. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8779. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8780. else
  8781. ld_shlibs=no
  8782. fi
  8783. ;;
  8784. esac
  8785. if test "$ld_shlibs" = no; then
  8786. runpath_var=
  8787. hardcode_libdir_flag_spec=
  8788. export_dynamic_flag_spec=
  8789. whole_archive_flag_spec=
  8790. fi
  8791. else
  8792. # PORTME fill in a description of your system's linker (not GNU ld)
  8793. case $host_os in
  8794. aix3*)
  8795. allow_undefined_flag=unsupported
  8796. always_export_symbols=yes
  8797. 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'
  8798. # Note: this linker hardcodes the directories in LIBPATH if there
  8799. # are no directories specified by -L.
  8800. hardcode_minus_L=yes
  8801. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8802. # Neither direct hardcoding nor static linking is supported with a
  8803. # broken collect2.
  8804. hardcode_direct=unsupported
  8805. fi
  8806. ;;
  8807. aix[4-9]*)
  8808. if test "$host_cpu" = ia64; then
  8809. # On IA64, the linker does run time linking by default, so we don't
  8810. # have to do anything special.
  8811. aix_use_runtimelinking=no
  8812. exp_sym_flag='-Bexport'
  8813. no_entry_flag=""
  8814. else
  8815. # If we're using GNU nm, then we don't want the "-C" option.
  8816. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8817. # Also, AIX nm treats weak defined symbols like other global
  8818. # defined symbols, whereas GNU nm marks them as "W".
  8819. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8820. 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'
  8821. else
  8822. 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'
  8823. fi
  8824. aix_use_runtimelinking=no
  8825. # Test if we are trying to use run time linking or normal
  8826. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8827. # need to do runtime linking.
  8828. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8829. for ld_flag in $LDFLAGS; do
  8830. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8831. aix_use_runtimelinking=yes
  8832. break
  8833. fi
  8834. done
  8835. ;;
  8836. esac
  8837. exp_sym_flag='-bexport'
  8838. no_entry_flag='-bnoentry'
  8839. fi
  8840. # When large executables or shared objects are built, AIX ld can
  8841. # have problems creating the table of contents. If linking a library
  8842. # or program results in "error TOC overflow" add -mminimal-toc to
  8843. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8844. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8845. archive_cmds=''
  8846. hardcode_direct=yes
  8847. hardcode_direct_absolute=yes
  8848. hardcode_libdir_separator=':'
  8849. link_all_deplibs=yes
  8850. file_list_spec='${wl}-f,'
  8851. if test "$GCC" = yes; then
  8852. case $host_os in aix4.[012]|aix4.[012].*)
  8853. # We only want to do this on AIX 4.2 and lower, the check
  8854. # below for broken collect2 doesn't work under 4.3+
  8855. collect2name=`${CC} -print-prog-name=collect2`
  8856. if test -f "$collect2name" &&
  8857. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8858. then
  8859. # We have reworked collect2
  8860. :
  8861. else
  8862. # We have old collect2
  8863. hardcode_direct=unsupported
  8864. # It fails to find uninstalled libraries when the uninstalled
  8865. # path is not listed in the libpath. Setting hardcode_minus_L
  8866. # to unsupported forces relinking
  8867. hardcode_minus_L=yes
  8868. hardcode_libdir_flag_spec='-L$libdir'
  8869. hardcode_libdir_separator=
  8870. fi
  8871. ;;
  8872. esac
  8873. shared_flag='-shared'
  8874. if test "$aix_use_runtimelinking" = yes; then
  8875. shared_flag="$shared_flag "'${wl}-G'
  8876. fi
  8877. else
  8878. # not using gcc
  8879. if test "$host_cpu" = ia64; then
  8880. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8881. # chokes on -Wl,-G. The following line is correct:
  8882. shared_flag='-G'
  8883. else
  8884. if test "$aix_use_runtimelinking" = yes; then
  8885. shared_flag='${wl}-G'
  8886. else
  8887. shared_flag='${wl}-bM:SRE'
  8888. fi
  8889. fi
  8890. fi
  8891. export_dynamic_flag_spec='${wl}-bexpall'
  8892. # It seems that -bexpall does not export symbols beginning with
  8893. # underscore (_), so it is better to generate a list of symbols to export.
  8894. always_export_symbols=yes
  8895. if test "$aix_use_runtimelinking" = yes; then
  8896. # Warning - without using the other runtime loading flags (-brtl),
  8897. # -berok will link without error, but may produce a broken library.
  8898. allow_undefined_flag='-berok'
  8899. # Determine the default libpath from the value encoded in an
  8900. # empty executable.
  8901. if test "${lt_cv_aix_libpath+set}" = set; then
  8902. aix_libpath=$lt_cv_aix_libpath
  8903. else
  8904. if ${lt_cv_aix_libpath_+:} false; then :
  8905. $as_echo_n "(cached) " >&6
  8906. else
  8907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8908. /* end confdefs.h. */
  8909. int
  8910. main ()
  8911. {
  8912. ;
  8913. return 0;
  8914. }
  8915. _ACEOF
  8916. if ac_fn_c_try_link "$LINENO"; then :
  8917. lt_aix_libpath_sed='
  8918. /Import File Strings/,/^$/ {
  8919. /^0/ {
  8920. s/^0 *\([^ ]*\) *$/\1/
  8921. p
  8922. }
  8923. }'
  8924. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8925. # Check for a 64-bit object if we didn't find anything.
  8926. if test -z "$lt_cv_aix_libpath_"; then
  8927. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8928. fi
  8929. fi
  8930. rm -f core conftest.err conftest.$ac_objext \
  8931. conftest$ac_exeext conftest.$ac_ext
  8932. if test -z "$lt_cv_aix_libpath_"; then
  8933. lt_cv_aix_libpath_="/usr/lib:/lib"
  8934. fi
  8935. fi
  8936. aix_libpath=$lt_cv_aix_libpath_
  8937. fi
  8938. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8939. 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"
  8940. else
  8941. if test "$host_cpu" = ia64; then
  8942. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8943. allow_undefined_flag="-z nodefs"
  8944. 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"
  8945. else
  8946. # Determine the default libpath from the value encoded in an
  8947. # empty executable.
  8948. if test "${lt_cv_aix_libpath+set}" = set; then
  8949. aix_libpath=$lt_cv_aix_libpath
  8950. else
  8951. if ${lt_cv_aix_libpath_+:} false; then :
  8952. $as_echo_n "(cached) " >&6
  8953. else
  8954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8955. /* end confdefs.h. */
  8956. int
  8957. main ()
  8958. {
  8959. ;
  8960. return 0;
  8961. }
  8962. _ACEOF
  8963. if ac_fn_c_try_link "$LINENO"; then :
  8964. lt_aix_libpath_sed='
  8965. /Import File Strings/,/^$/ {
  8966. /^0/ {
  8967. s/^0 *\([^ ]*\) *$/\1/
  8968. p
  8969. }
  8970. }'
  8971. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8972. # Check for a 64-bit object if we didn't find anything.
  8973. if test -z "$lt_cv_aix_libpath_"; then
  8974. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8975. fi
  8976. fi
  8977. rm -f core conftest.err conftest.$ac_objext \
  8978. conftest$ac_exeext conftest.$ac_ext
  8979. if test -z "$lt_cv_aix_libpath_"; then
  8980. lt_cv_aix_libpath_="/usr/lib:/lib"
  8981. fi
  8982. fi
  8983. aix_libpath=$lt_cv_aix_libpath_
  8984. fi
  8985. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8986. # Warning - without using the other run time loading flags,
  8987. # -berok will link without error, but may produce a broken library.
  8988. no_undefined_flag=' ${wl}-bernotok'
  8989. allow_undefined_flag=' ${wl}-berok'
  8990. if test "$with_gnu_ld" = yes; then
  8991. # We only use this code for GNU lds that support --whole-archive.
  8992. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8993. else
  8994. # Exported symbols can be pulled into shared objects from archives
  8995. whole_archive_flag_spec='$convenience'
  8996. fi
  8997. archive_cmds_need_lc=yes
  8998. # This is similar to how AIX traditionally builds its shared libraries.
  8999. 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'
  9000. fi
  9001. fi
  9002. ;;
  9003. amigaos*)
  9004. case $host_cpu in
  9005. powerpc)
  9006. # see comment about AmigaOS4 .so support
  9007. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9008. archive_expsym_cmds=''
  9009. ;;
  9010. m68k)
  9011. 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)'
  9012. hardcode_libdir_flag_spec='-L$libdir'
  9013. hardcode_minus_L=yes
  9014. ;;
  9015. esac
  9016. ;;
  9017. bsdi[45]*)
  9018. export_dynamic_flag_spec=-rdynamic
  9019. ;;
  9020. cygwin* | mingw* | pw32* | cegcc*)
  9021. # When not using gcc, we currently assume that we are using
  9022. # Microsoft Visual C++.
  9023. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9024. # no search path for DLLs.
  9025. case $cc_basename in
  9026. cl*)
  9027. # Native MSVC
  9028. hardcode_libdir_flag_spec=' '
  9029. allow_undefined_flag=unsupported
  9030. always_export_symbols=yes
  9031. file_list_spec='@'
  9032. # Tell ltmain to make .lib files, not .a files.
  9033. libext=lib
  9034. # Tell ltmain to make .dll files, not .so files.
  9035. shrext_cmds=".dll"
  9036. # FIXME: Setting linknames here is a bad hack.
  9037. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9038. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9039. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9040. else
  9041. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9042. fi~
  9043. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9044. linknames='
  9045. # The linker will not automatically build a static lib if we build a DLL.
  9046. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9047. enable_shared_with_static_runtimes=yes
  9048. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9049. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9050. # Don't use ranlib
  9051. old_postinstall_cmds='chmod 644 $oldlib'
  9052. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9053. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9054. case $lt_outputfile in
  9055. *.exe|*.EXE) ;;
  9056. *)
  9057. lt_outputfile="$lt_outputfile.exe"
  9058. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9059. ;;
  9060. esac~
  9061. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9062. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9063. $RM "$lt_outputfile.manifest";
  9064. fi'
  9065. ;;
  9066. *)
  9067. # Assume MSVC wrapper
  9068. hardcode_libdir_flag_spec=' '
  9069. allow_undefined_flag=unsupported
  9070. # Tell ltmain to make .lib files, not .a files.
  9071. libext=lib
  9072. # Tell ltmain to make .dll files, not .so files.
  9073. shrext_cmds=".dll"
  9074. # FIXME: Setting linknames here is a bad hack.
  9075. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9076. # The linker will automatically build a .lib file if we build a DLL.
  9077. old_archive_from_new_cmds='true'
  9078. # FIXME: Should let the user specify the lib program.
  9079. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9080. enable_shared_with_static_runtimes=yes
  9081. ;;
  9082. esac
  9083. ;;
  9084. darwin* | rhapsody*)
  9085. archive_cmds_need_lc=no
  9086. hardcode_direct=no
  9087. hardcode_automatic=yes
  9088. hardcode_shlibpath_var=unsupported
  9089. if test "$lt_cv_ld_force_load" = "yes"; then
  9090. 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\"`'
  9091. else
  9092. whole_archive_flag_spec=''
  9093. fi
  9094. link_all_deplibs=yes
  9095. allow_undefined_flag="$_lt_dar_allow_undefined"
  9096. case $cc_basename in
  9097. ifort*) _lt_dar_can_shared=yes ;;
  9098. *) _lt_dar_can_shared=$GCC ;;
  9099. esac
  9100. if test "$_lt_dar_can_shared" = "yes"; then
  9101. output_verbose_link_cmd=func_echo_all
  9102. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9103. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9104. 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}"
  9105. 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}"
  9106. else
  9107. ld_shlibs=no
  9108. fi
  9109. ;;
  9110. dgux*)
  9111. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9112. hardcode_libdir_flag_spec='-L$libdir'
  9113. hardcode_shlibpath_var=no
  9114. ;;
  9115. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9116. # support. Future versions do this automatically, but an explicit c++rt0.o
  9117. # does not break anything, and helps significantly (at the cost of a little
  9118. # extra space).
  9119. freebsd2.2*)
  9120. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9121. hardcode_libdir_flag_spec='-R$libdir'
  9122. hardcode_direct=yes
  9123. hardcode_shlibpath_var=no
  9124. ;;
  9125. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9126. freebsd2.*)
  9127. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9128. hardcode_direct=yes
  9129. hardcode_minus_L=yes
  9130. hardcode_shlibpath_var=no
  9131. ;;
  9132. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9133. freebsd* | dragonfly*)
  9134. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9135. hardcode_libdir_flag_spec='-R$libdir'
  9136. hardcode_direct=yes
  9137. hardcode_shlibpath_var=no
  9138. ;;
  9139. hpux9*)
  9140. if test "$GCC" = yes; then
  9141. 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'
  9142. else
  9143. 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'
  9144. fi
  9145. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9146. hardcode_libdir_separator=:
  9147. hardcode_direct=yes
  9148. # hardcode_minus_L: Not really in the search PATH,
  9149. # but as the default location of the library.
  9150. hardcode_minus_L=yes
  9151. export_dynamic_flag_spec='${wl}-E'
  9152. ;;
  9153. hpux10*)
  9154. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9155. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9156. else
  9157. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9158. fi
  9159. if test "$with_gnu_ld" = no; then
  9160. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9161. hardcode_libdir_separator=:
  9162. hardcode_direct=yes
  9163. hardcode_direct_absolute=yes
  9164. export_dynamic_flag_spec='${wl}-E'
  9165. # hardcode_minus_L: Not really in the search PATH,
  9166. # but as the default location of the library.
  9167. hardcode_minus_L=yes
  9168. fi
  9169. ;;
  9170. hpux11*)
  9171. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9172. case $host_cpu in
  9173. hppa*64*)
  9174. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9175. ;;
  9176. ia64*)
  9177. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9178. ;;
  9179. *)
  9180. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9181. ;;
  9182. esac
  9183. else
  9184. case $host_cpu in
  9185. hppa*64*)
  9186. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9187. ;;
  9188. ia64*)
  9189. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9190. ;;
  9191. *)
  9192. # Older versions of the 11.00 compiler do not understand -b yet
  9193. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9195. $as_echo_n "checking if $CC understands -b... " >&6; }
  9196. if ${lt_cv_prog_compiler__b+:} false; then :
  9197. $as_echo_n "(cached) " >&6
  9198. else
  9199. lt_cv_prog_compiler__b=no
  9200. save_LDFLAGS="$LDFLAGS"
  9201. LDFLAGS="$LDFLAGS -b"
  9202. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9203. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9204. # The linker can only warn and ignore the option if not recognized
  9205. # So say no if there are warnings
  9206. if test -s conftest.err; then
  9207. # Append any errors to the config.log.
  9208. cat conftest.err 1>&5
  9209. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9210. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9211. if diff conftest.exp conftest.er2 >/dev/null; then
  9212. lt_cv_prog_compiler__b=yes
  9213. fi
  9214. else
  9215. lt_cv_prog_compiler__b=yes
  9216. fi
  9217. fi
  9218. $RM -r conftest*
  9219. LDFLAGS="$save_LDFLAGS"
  9220. fi
  9221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9222. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9223. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9224. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9225. else
  9226. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9227. fi
  9228. ;;
  9229. esac
  9230. fi
  9231. if test "$with_gnu_ld" = no; then
  9232. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9233. hardcode_libdir_separator=:
  9234. case $host_cpu in
  9235. hppa*64*|ia64*)
  9236. hardcode_direct=no
  9237. hardcode_shlibpath_var=no
  9238. ;;
  9239. *)
  9240. hardcode_direct=yes
  9241. hardcode_direct_absolute=yes
  9242. export_dynamic_flag_spec='${wl}-E'
  9243. # hardcode_minus_L: Not really in the search PATH,
  9244. # but as the default location of the library.
  9245. hardcode_minus_L=yes
  9246. ;;
  9247. esac
  9248. fi
  9249. ;;
  9250. irix5* | irix6* | nonstopux*)
  9251. if test "$GCC" = yes; then
  9252. 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'
  9253. # Try to use the -exported_symbol ld option, if it does not
  9254. # work, assume that -exports_file does not work either and
  9255. # implicitly export all symbols.
  9256. # This should be the same for all languages, so no per-tag cache variable.
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9258. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9259. if ${lt_cv_irix_exported_symbol+:} false; then :
  9260. $as_echo_n "(cached) " >&6
  9261. else
  9262. save_LDFLAGS="$LDFLAGS"
  9263. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9265. /* end confdefs.h. */
  9266. int foo (void) { return 0; }
  9267. _ACEOF
  9268. if ac_fn_c_try_link "$LINENO"; then :
  9269. lt_cv_irix_exported_symbol=yes
  9270. else
  9271. lt_cv_irix_exported_symbol=no
  9272. fi
  9273. rm -f core conftest.err conftest.$ac_objext \
  9274. conftest$ac_exeext conftest.$ac_ext
  9275. LDFLAGS="$save_LDFLAGS"
  9276. fi
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9278. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9279. if test "$lt_cv_irix_exported_symbol" = yes; then
  9280. 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'
  9281. fi
  9282. else
  9283. 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'
  9284. 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'
  9285. fi
  9286. archive_cmds_need_lc='no'
  9287. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9288. hardcode_libdir_separator=:
  9289. inherit_rpath=yes
  9290. link_all_deplibs=yes
  9291. ;;
  9292. netbsd*)
  9293. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9294. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9295. else
  9296. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9297. fi
  9298. hardcode_libdir_flag_spec='-R$libdir'
  9299. hardcode_direct=yes
  9300. hardcode_shlibpath_var=no
  9301. ;;
  9302. newsos6)
  9303. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9304. hardcode_direct=yes
  9305. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9306. hardcode_libdir_separator=:
  9307. hardcode_shlibpath_var=no
  9308. ;;
  9309. *nto* | *qnx*)
  9310. ;;
  9311. openbsd*)
  9312. if test -f /usr/libexec/ld.so; then
  9313. hardcode_direct=yes
  9314. hardcode_shlibpath_var=no
  9315. hardcode_direct_absolute=yes
  9316. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9317. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9318. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9319. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9320. export_dynamic_flag_spec='${wl}-E'
  9321. else
  9322. case $host_os in
  9323. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9324. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9325. hardcode_libdir_flag_spec='-R$libdir'
  9326. ;;
  9327. *)
  9328. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9329. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9330. ;;
  9331. esac
  9332. fi
  9333. else
  9334. ld_shlibs=no
  9335. fi
  9336. ;;
  9337. os2*)
  9338. hardcode_libdir_flag_spec='-L$libdir'
  9339. hardcode_minus_L=yes
  9340. allow_undefined_flag=unsupported
  9341. 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'
  9342. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9343. ;;
  9344. osf3*)
  9345. if test "$GCC" = yes; then
  9346. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9347. 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'
  9348. else
  9349. allow_undefined_flag=' -expect_unresolved \*'
  9350. 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'
  9351. fi
  9352. archive_cmds_need_lc='no'
  9353. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9354. hardcode_libdir_separator=:
  9355. ;;
  9356. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9357. if test "$GCC" = yes; then
  9358. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9359. 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'
  9360. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9361. else
  9362. allow_undefined_flag=' -expect_unresolved \*'
  9363. 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'
  9364. 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~
  9365. $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'
  9366. # Both c and cxx compiler support -rpath directly
  9367. hardcode_libdir_flag_spec='-rpath $libdir'
  9368. fi
  9369. archive_cmds_need_lc='no'
  9370. hardcode_libdir_separator=:
  9371. ;;
  9372. solaris*)
  9373. no_undefined_flag=' -z defs'
  9374. if test "$GCC" = yes; then
  9375. wlarc='${wl}'
  9376. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9377. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9378. $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'
  9379. else
  9380. case `$CC -V 2>&1` in
  9381. *"Compilers 5.0"*)
  9382. wlarc=''
  9383. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9384. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9385. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9386. ;;
  9387. *)
  9388. wlarc='${wl}'
  9389. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9390. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9391. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9392. ;;
  9393. esac
  9394. fi
  9395. hardcode_libdir_flag_spec='-R$libdir'
  9396. hardcode_shlibpath_var=no
  9397. case $host_os in
  9398. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9399. *)
  9400. # The compiler driver will combine and reorder linker options,
  9401. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9402. # but is careful enough not to reorder.
  9403. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9404. if test "$GCC" = yes; then
  9405. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9406. else
  9407. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9408. fi
  9409. ;;
  9410. esac
  9411. link_all_deplibs=yes
  9412. ;;
  9413. sunos4*)
  9414. if test "x$host_vendor" = xsequent; then
  9415. # Use $CC to link under sequent, because it throws in some extra .o
  9416. # files that make .init and .fini sections work.
  9417. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9418. else
  9419. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9420. fi
  9421. hardcode_libdir_flag_spec='-L$libdir'
  9422. hardcode_direct=yes
  9423. hardcode_minus_L=yes
  9424. hardcode_shlibpath_var=no
  9425. ;;
  9426. sysv4)
  9427. case $host_vendor in
  9428. sni)
  9429. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9430. hardcode_direct=yes # is this really true???
  9431. ;;
  9432. siemens)
  9433. ## LD is ld it makes a PLAMLIB
  9434. ## CC just makes a GrossModule.
  9435. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9436. reload_cmds='$CC -r -o $output$reload_objs'
  9437. hardcode_direct=no
  9438. ;;
  9439. motorola)
  9440. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9441. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9442. ;;
  9443. esac
  9444. runpath_var='LD_RUN_PATH'
  9445. hardcode_shlibpath_var=no
  9446. ;;
  9447. sysv4.3*)
  9448. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9449. hardcode_shlibpath_var=no
  9450. export_dynamic_flag_spec='-Bexport'
  9451. ;;
  9452. sysv4*MP*)
  9453. if test -d /usr/nec; then
  9454. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9455. hardcode_shlibpath_var=no
  9456. runpath_var=LD_RUN_PATH
  9457. hardcode_runpath_var=yes
  9458. ld_shlibs=yes
  9459. fi
  9460. ;;
  9461. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9462. no_undefined_flag='${wl}-z,text'
  9463. archive_cmds_need_lc=no
  9464. hardcode_shlibpath_var=no
  9465. runpath_var='LD_RUN_PATH'
  9466. if test "$GCC" = yes; then
  9467. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9468. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9469. else
  9470. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9471. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9472. fi
  9473. ;;
  9474. sysv5* | sco3.2v5* | sco5v6*)
  9475. # Note: We can NOT use -z defs as we might desire, because we do not
  9476. # link with -lc, and that would cause any symbols used from libc to
  9477. # always be unresolved, which means just about no library would
  9478. # ever link correctly. If we're not using GNU ld we use -z text
  9479. # though, which does catch some bad symbols but isn't as heavy-handed
  9480. # as -z defs.
  9481. no_undefined_flag='${wl}-z,text'
  9482. allow_undefined_flag='${wl}-z,nodefs'
  9483. archive_cmds_need_lc=no
  9484. hardcode_shlibpath_var=no
  9485. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9486. hardcode_libdir_separator=':'
  9487. link_all_deplibs=yes
  9488. export_dynamic_flag_spec='${wl}-Bexport'
  9489. runpath_var='LD_RUN_PATH'
  9490. if test "$GCC" = yes; then
  9491. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9492. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9493. else
  9494. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9495. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9496. fi
  9497. ;;
  9498. uts4*)
  9499. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9500. hardcode_libdir_flag_spec='-L$libdir'
  9501. hardcode_shlibpath_var=no
  9502. ;;
  9503. *)
  9504. ld_shlibs=no
  9505. ;;
  9506. esac
  9507. if test x$host_vendor = xsni; then
  9508. case $host in
  9509. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9510. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9511. ;;
  9512. esac
  9513. fi
  9514. fi
  9515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9516. $as_echo "$ld_shlibs" >&6; }
  9517. test "$ld_shlibs" = no && can_build_shared=no
  9518. with_gnu_ld=$with_gnu_ld
  9519. #
  9520. # Do we need to explicitly link libc?
  9521. #
  9522. case "x$archive_cmds_need_lc" in
  9523. x|xyes)
  9524. # Assume -lc should be added
  9525. archive_cmds_need_lc=yes
  9526. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9527. case $archive_cmds in
  9528. *'~'*)
  9529. # FIXME: we may have to deal with multi-command sequences.
  9530. ;;
  9531. '$CC '*)
  9532. # Test whether the compiler implicitly links with -lc since on some
  9533. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9534. # to ld, don't add -lc before -lgcc.
  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9536. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9537. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9538. $as_echo_n "(cached) " >&6
  9539. else
  9540. $RM conftest*
  9541. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9542. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9543. (eval $ac_compile) 2>&5
  9544. ac_status=$?
  9545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9546. test $ac_status = 0; } 2>conftest.err; then
  9547. soname=conftest
  9548. lib=conftest
  9549. libobjs=conftest.$ac_objext
  9550. deplibs=
  9551. wl=$lt_prog_compiler_wl
  9552. pic_flag=$lt_prog_compiler_pic
  9553. compiler_flags=-v
  9554. linker_flags=-v
  9555. verstring=
  9556. output_objdir=.
  9557. libname=conftest
  9558. lt_save_allow_undefined_flag=$allow_undefined_flag
  9559. allow_undefined_flag=
  9560. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9561. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9562. ac_status=$?
  9563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9564. test $ac_status = 0; }
  9565. then
  9566. lt_cv_archive_cmds_need_lc=no
  9567. else
  9568. lt_cv_archive_cmds_need_lc=yes
  9569. fi
  9570. allow_undefined_flag=$lt_save_allow_undefined_flag
  9571. else
  9572. cat conftest.err 1>&5
  9573. fi
  9574. $RM conftest*
  9575. fi
  9576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9577. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9578. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9579. ;;
  9580. esac
  9581. fi
  9582. ;;
  9583. esac
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9585. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9586. if test "$GCC" = yes; then
  9587. case $host_os in
  9588. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9589. *) lt_awk_arg="/^libraries:/" ;;
  9590. esac
  9591. case $host_os in
  9592. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9593. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9594. esac
  9595. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9596. case $lt_search_path_spec in
  9597. *\;*)
  9598. # if the path contains ";" then we assume it to be the separator
  9599. # otherwise default to the standard path separator (i.e. ":") - it is
  9600. # assumed that no part of a normal pathname contains ";" but that should
  9601. # okay in the real world where ";" in dirpaths is itself problematic.
  9602. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9603. ;;
  9604. *)
  9605. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9606. ;;
  9607. esac
  9608. # Ok, now we have the path, separated by spaces, we can step through it
  9609. # and add multilib dir if necessary.
  9610. lt_tmp_lt_search_path_spec=
  9611. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9612. for lt_sys_path in $lt_search_path_spec; do
  9613. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9614. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9615. else
  9616. test -d "$lt_sys_path" && \
  9617. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9618. fi
  9619. done
  9620. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9621. BEGIN {RS=" "; FS="/|\n";} {
  9622. lt_foo="";
  9623. lt_count=0;
  9624. for (lt_i = NF; lt_i > 0; lt_i--) {
  9625. if ($lt_i != "" && $lt_i != ".") {
  9626. if ($lt_i == "..") {
  9627. lt_count++;
  9628. } else {
  9629. if (lt_count == 0) {
  9630. lt_foo="/" $lt_i lt_foo;
  9631. } else {
  9632. lt_count--;
  9633. }
  9634. }
  9635. }
  9636. }
  9637. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9638. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9639. }'`
  9640. # AWK program above erroneously prepends '/' to C:/dos/paths
  9641. # for these hosts.
  9642. case $host_os in
  9643. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9644. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9645. esac
  9646. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9647. else
  9648. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9649. fi
  9650. library_names_spec=
  9651. libname_spec='lib$name'
  9652. soname_spec=
  9653. shrext_cmds=".so"
  9654. postinstall_cmds=
  9655. postuninstall_cmds=
  9656. finish_cmds=
  9657. finish_eval=
  9658. shlibpath_var=
  9659. shlibpath_overrides_runpath=unknown
  9660. version_type=none
  9661. dynamic_linker="$host_os ld.so"
  9662. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9663. need_lib_prefix=unknown
  9664. hardcode_into_libs=no
  9665. # when you set need_version to no, make sure it does not cause -set_version
  9666. # flags to be left without arguments
  9667. need_version=unknown
  9668. case $host_os in
  9669. aix3*)
  9670. version_type=linux # correct to gnu/linux during the next big refactor
  9671. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9672. shlibpath_var=LIBPATH
  9673. # AIX 3 has no versioning support, so we append a major version to the name.
  9674. soname_spec='${libname}${release}${shared_ext}$major'
  9675. ;;
  9676. aix[4-9]*)
  9677. version_type=linux # correct to gnu/linux during the next big refactor
  9678. need_lib_prefix=no
  9679. need_version=no
  9680. hardcode_into_libs=yes
  9681. if test "$host_cpu" = ia64; then
  9682. # AIX 5 supports IA64
  9683. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9684. shlibpath_var=LD_LIBRARY_PATH
  9685. else
  9686. # With GCC up to 2.95.x, collect2 would create an import file
  9687. # for dependence libraries. The import file would start with
  9688. # the line `#! .'. This would cause the generated library to
  9689. # depend on `.', always an invalid library. This was fixed in
  9690. # development snapshots of GCC prior to 3.0.
  9691. case $host_os in
  9692. aix4 | aix4.[01] | aix4.[01].*)
  9693. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9694. echo ' yes '
  9695. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9696. :
  9697. else
  9698. can_build_shared=no
  9699. fi
  9700. ;;
  9701. esac
  9702. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9703. # soname into executable. Probably we can add versioning support to
  9704. # collect2, so additional links can be useful in future.
  9705. if test "$aix_use_runtimelinking" = yes; then
  9706. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9707. # instead of lib<name>.a to let people know that these are not
  9708. # typical AIX shared libraries.
  9709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9710. else
  9711. # We preserve .a as extension for shared libraries through AIX4.2
  9712. # and later when we are not doing run time linking.
  9713. library_names_spec='${libname}${release}.a $libname.a'
  9714. soname_spec='${libname}${release}${shared_ext}$major'
  9715. fi
  9716. shlibpath_var=LIBPATH
  9717. fi
  9718. ;;
  9719. amigaos*)
  9720. case $host_cpu in
  9721. powerpc)
  9722. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9723. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9725. ;;
  9726. m68k)
  9727. library_names_spec='$libname.ixlibrary $libname.a'
  9728. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9729. 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'
  9730. ;;
  9731. esac
  9732. ;;
  9733. beos*)
  9734. library_names_spec='${libname}${shared_ext}'
  9735. dynamic_linker="$host_os ld.so"
  9736. shlibpath_var=LIBRARY_PATH
  9737. ;;
  9738. bsdi[45]*)
  9739. version_type=linux # correct to gnu/linux during the next big refactor
  9740. need_version=no
  9741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9742. soname_spec='${libname}${release}${shared_ext}$major'
  9743. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9744. shlibpath_var=LD_LIBRARY_PATH
  9745. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9746. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9747. # the default ld.so.conf also contains /usr/contrib/lib and
  9748. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9749. # libtool to hard-code these into programs
  9750. ;;
  9751. cygwin* | mingw* | pw32* | cegcc*)
  9752. version_type=windows
  9753. shrext_cmds=".dll"
  9754. need_version=no
  9755. need_lib_prefix=no
  9756. case $GCC,$cc_basename in
  9757. yes,*)
  9758. # gcc
  9759. library_names_spec='$libname.dll.a'
  9760. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9761. postinstall_cmds='base_file=`basename \${file}`~
  9762. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9763. dldir=$destdir/`dirname \$dlpath`~
  9764. test -d \$dldir || mkdir -p \$dldir~
  9765. $install_prog $dir/$dlname \$dldir/$dlname~
  9766. chmod a+x \$dldir/$dlname~
  9767. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9768. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9769. fi'
  9770. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9771. dlpath=$dir/\$dldll~
  9772. $RM \$dlpath'
  9773. shlibpath_overrides_runpath=yes
  9774. case $host_os in
  9775. cygwin*)
  9776. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9777. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9778. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9779. ;;
  9780. mingw* | cegcc*)
  9781. # MinGW DLLs use traditional 'lib' prefix
  9782. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9783. ;;
  9784. pw32*)
  9785. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9786. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9787. ;;
  9788. esac
  9789. dynamic_linker='Win32 ld.exe'
  9790. ;;
  9791. *,cl*)
  9792. # Native MSVC
  9793. libname_spec='$name'
  9794. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9795. library_names_spec='${libname}.dll.lib'
  9796. case $build_os in
  9797. mingw*)
  9798. sys_lib_search_path_spec=
  9799. lt_save_ifs=$IFS
  9800. IFS=';'
  9801. for lt_path in $LIB
  9802. do
  9803. IFS=$lt_save_ifs
  9804. # Let DOS variable expansion print the short 8.3 style file name.
  9805. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9806. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9807. done
  9808. IFS=$lt_save_ifs
  9809. # Convert to MSYS style.
  9810. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9811. ;;
  9812. cygwin*)
  9813. # Convert to unix form, then to dos form, then back to unix form
  9814. # but this time dos style (no spaces!) so that the unix form looks
  9815. # like /cygdrive/c/PROGRA~1:/cygdr...
  9816. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9817. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9818. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9819. ;;
  9820. *)
  9821. sys_lib_search_path_spec="$LIB"
  9822. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9823. # It is most probably a Windows format PATH.
  9824. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9825. else
  9826. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9827. fi
  9828. # FIXME: find the short name or the path components, as spaces are
  9829. # common. (e.g. "Program Files" -> "PROGRA~1")
  9830. ;;
  9831. esac
  9832. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9833. postinstall_cmds='base_file=`basename \${file}`~
  9834. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9835. dldir=$destdir/`dirname \$dlpath`~
  9836. test -d \$dldir || mkdir -p \$dldir~
  9837. $install_prog $dir/$dlname \$dldir/$dlname'
  9838. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9839. dlpath=$dir/\$dldll~
  9840. $RM \$dlpath'
  9841. shlibpath_overrides_runpath=yes
  9842. dynamic_linker='Win32 link.exe'
  9843. ;;
  9844. *)
  9845. # Assume MSVC wrapper
  9846. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9847. dynamic_linker='Win32 ld.exe'
  9848. ;;
  9849. esac
  9850. # FIXME: first we should search . and the directory the executable is in
  9851. shlibpath_var=PATH
  9852. ;;
  9853. darwin* | rhapsody*)
  9854. dynamic_linker="$host_os dyld"
  9855. version_type=darwin
  9856. need_lib_prefix=no
  9857. need_version=no
  9858. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9859. soname_spec='${libname}${release}${major}$shared_ext'
  9860. shlibpath_overrides_runpath=yes
  9861. shlibpath_var=DYLD_LIBRARY_PATH
  9862. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9863. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9864. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9865. ;;
  9866. dgux*)
  9867. version_type=linux # correct to gnu/linux during the next big refactor
  9868. need_lib_prefix=no
  9869. need_version=no
  9870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9871. soname_spec='${libname}${release}${shared_ext}$major'
  9872. shlibpath_var=LD_LIBRARY_PATH
  9873. ;;
  9874. freebsd* | dragonfly*)
  9875. # DragonFly does not have aout. When/if they implement a new
  9876. # versioning mechanism, adjust this.
  9877. if test -x /usr/bin/objformat; then
  9878. objformat=`/usr/bin/objformat`
  9879. else
  9880. case $host_os in
  9881. freebsd[23].*) objformat=aout ;;
  9882. *) objformat=elf ;;
  9883. esac
  9884. fi
  9885. version_type=freebsd-$objformat
  9886. case $version_type in
  9887. freebsd-elf*)
  9888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9889. need_version=no
  9890. need_lib_prefix=no
  9891. ;;
  9892. freebsd-*)
  9893. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9894. need_version=yes
  9895. ;;
  9896. esac
  9897. shlibpath_var=LD_LIBRARY_PATH
  9898. case $host_os in
  9899. freebsd2.*)
  9900. shlibpath_overrides_runpath=yes
  9901. ;;
  9902. freebsd3.[01]* | freebsdelf3.[01]*)
  9903. shlibpath_overrides_runpath=yes
  9904. hardcode_into_libs=yes
  9905. ;;
  9906. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9907. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9908. shlibpath_overrides_runpath=no
  9909. hardcode_into_libs=yes
  9910. ;;
  9911. *) # from 4.6 on, and DragonFly
  9912. shlibpath_overrides_runpath=yes
  9913. hardcode_into_libs=yes
  9914. ;;
  9915. esac
  9916. ;;
  9917. gnu*)
  9918. version_type=linux # correct to gnu/linux during the next big refactor
  9919. need_lib_prefix=no
  9920. need_version=no
  9921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9922. soname_spec='${libname}${release}${shared_ext}$major'
  9923. shlibpath_var=LD_LIBRARY_PATH
  9924. shlibpath_overrides_runpath=no
  9925. hardcode_into_libs=yes
  9926. ;;
  9927. haiku*)
  9928. version_type=linux # correct to gnu/linux during the next big refactor
  9929. need_lib_prefix=no
  9930. need_version=no
  9931. dynamic_linker="$host_os runtime_loader"
  9932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9933. soname_spec='${libname}${release}${shared_ext}$major'
  9934. shlibpath_var=LIBRARY_PATH
  9935. shlibpath_overrides_runpath=yes
  9936. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9937. hardcode_into_libs=yes
  9938. ;;
  9939. hpux9* | hpux10* | hpux11*)
  9940. # Give a soname corresponding to the major version so that dld.sl refuses to
  9941. # link against other versions.
  9942. version_type=sunos
  9943. need_lib_prefix=no
  9944. need_version=no
  9945. case $host_cpu in
  9946. ia64*)
  9947. shrext_cmds='.so'
  9948. hardcode_into_libs=yes
  9949. dynamic_linker="$host_os dld.so"
  9950. shlibpath_var=LD_LIBRARY_PATH
  9951. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9953. soname_spec='${libname}${release}${shared_ext}$major'
  9954. if test "X$HPUX_IA64_MODE" = X32; then
  9955. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9956. else
  9957. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9958. fi
  9959. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9960. ;;
  9961. hppa*64*)
  9962. shrext_cmds='.sl'
  9963. hardcode_into_libs=yes
  9964. dynamic_linker="$host_os dld.sl"
  9965. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9966. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9968. soname_spec='${libname}${release}${shared_ext}$major'
  9969. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9970. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9971. ;;
  9972. *)
  9973. shrext_cmds='.sl'
  9974. dynamic_linker="$host_os dld.sl"
  9975. shlibpath_var=SHLIB_PATH
  9976. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9977. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9978. soname_spec='${libname}${release}${shared_ext}$major'
  9979. ;;
  9980. esac
  9981. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9982. postinstall_cmds='chmod 555 $lib'
  9983. # or fails outright, so override atomically:
  9984. install_override_mode=555
  9985. ;;
  9986. interix[3-9]*)
  9987. version_type=linux # correct to gnu/linux during the next big refactor
  9988. need_lib_prefix=no
  9989. need_version=no
  9990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9991. soname_spec='${libname}${release}${shared_ext}$major'
  9992. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9993. shlibpath_var=LD_LIBRARY_PATH
  9994. shlibpath_overrides_runpath=no
  9995. hardcode_into_libs=yes
  9996. ;;
  9997. irix5* | irix6* | nonstopux*)
  9998. case $host_os in
  9999. nonstopux*) version_type=nonstopux ;;
  10000. *)
  10001. if test "$lt_cv_prog_gnu_ld" = yes; then
  10002. version_type=linux # correct to gnu/linux during the next big refactor
  10003. else
  10004. version_type=irix
  10005. fi ;;
  10006. esac
  10007. need_lib_prefix=no
  10008. need_version=no
  10009. soname_spec='${libname}${release}${shared_ext}$major'
  10010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10011. case $host_os in
  10012. irix5* | nonstopux*)
  10013. libsuff= shlibsuff=
  10014. ;;
  10015. *)
  10016. case $LD in # libtool.m4 will add one of these switches to LD
  10017. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10018. libsuff= shlibsuff= libmagic=32-bit;;
  10019. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10020. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10021. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10022. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10023. *) libsuff= shlibsuff= libmagic=never-match;;
  10024. esac
  10025. ;;
  10026. esac
  10027. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10028. shlibpath_overrides_runpath=no
  10029. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10030. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10031. hardcode_into_libs=yes
  10032. ;;
  10033. # No shared lib support for Linux oldld, aout, or coff.
  10034. linux*oldld* | linux*aout* | linux*coff*)
  10035. dynamic_linker=no
  10036. ;;
  10037. # This must be glibc/ELF.
  10038. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10039. version_type=linux # correct to gnu/linux during the next big refactor
  10040. need_lib_prefix=no
  10041. need_version=no
  10042. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10043. soname_spec='${libname}${release}${shared_ext}$major'
  10044. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10045. shlibpath_var=LD_LIBRARY_PATH
  10046. shlibpath_overrides_runpath=no
  10047. # Some binutils ld are patched to set DT_RUNPATH
  10048. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10049. $as_echo_n "(cached) " >&6
  10050. else
  10051. lt_cv_shlibpath_overrides_runpath=no
  10052. save_LDFLAGS=$LDFLAGS
  10053. save_libdir=$libdir
  10054. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10055. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10057. /* end confdefs.h. */
  10058. int
  10059. main ()
  10060. {
  10061. ;
  10062. return 0;
  10063. }
  10064. _ACEOF
  10065. if ac_fn_c_try_link "$LINENO"; then :
  10066. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10067. lt_cv_shlibpath_overrides_runpath=yes
  10068. fi
  10069. fi
  10070. rm -f core conftest.err conftest.$ac_objext \
  10071. conftest$ac_exeext conftest.$ac_ext
  10072. LDFLAGS=$save_LDFLAGS
  10073. libdir=$save_libdir
  10074. fi
  10075. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10076. # This implies no fast_install, which is unacceptable.
  10077. # Some rework will be needed to allow for fast_install
  10078. # before this can be enabled.
  10079. hardcode_into_libs=yes
  10080. # Add ABI-specific directories to the system library path.
  10081. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10082. # Append ld.so.conf contents to the search path
  10083. if test -f /etc/ld.so.conf; then
  10084. 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' ' '`
  10085. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10086. fi
  10087. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10088. # powerpc, because MkLinux only supported shared libraries with the
  10089. # GNU dynamic linker. Since this was broken with cross compilers,
  10090. # most powerpc-linux boxes support dynamic linking these days and
  10091. # people can always --disable-shared, the test was removed, and we
  10092. # assume the GNU/Linux dynamic linker is in use.
  10093. dynamic_linker='GNU/Linux ld.so'
  10094. ;;
  10095. netbsd*)
  10096. version_type=sunos
  10097. need_lib_prefix=no
  10098. need_version=no
  10099. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10101. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10102. dynamic_linker='NetBSD (a.out) ld.so'
  10103. else
  10104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10105. soname_spec='${libname}${release}${shared_ext}$major'
  10106. dynamic_linker='NetBSD ld.elf_so'
  10107. fi
  10108. shlibpath_var=LD_LIBRARY_PATH
  10109. shlibpath_overrides_runpath=yes
  10110. hardcode_into_libs=yes
  10111. ;;
  10112. newsos6)
  10113. version_type=linux # correct to gnu/linux during the next big refactor
  10114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. shlibpath_overrides_runpath=yes
  10117. ;;
  10118. *nto* | *qnx*)
  10119. version_type=qnx
  10120. need_lib_prefix=no
  10121. need_version=no
  10122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10123. soname_spec='${libname}${release}${shared_ext}$major'
  10124. shlibpath_var=LD_LIBRARY_PATH
  10125. shlibpath_overrides_runpath=no
  10126. hardcode_into_libs=yes
  10127. dynamic_linker='ldqnx.so'
  10128. ;;
  10129. openbsd*)
  10130. version_type=sunos
  10131. sys_lib_dlsearch_path_spec="/usr/lib"
  10132. need_lib_prefix=no
  10133. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10134. case $host_os in
  10135. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10136. *) need_version=no ;;
  10137. esac
  10138. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10139. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10140. shlibpath_var=LD_LIBRARY_PATH
  10141. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10142. case $host_os in
  10143. openbsd2.[89] | openbsd2.[89].*)
  10144. shlibpath_overrides_runpath=no
  10145. ;;
  10146. *)
  10147. shlibpath_overrides_runpath=yes
  10148. ;;
  10149. esac
  10150. else
  10151. shlibpath_overrides_runpath=yes
  10152. fi
  10153. ;;
  10154. os2*)
  10155. libname_spec='$name'
  10156. shrext_cmds=".dll"
  10157. need_lib_prefix=no
  10158. library_names_spec='$libname${shared_ext} $libname.a'
  10159. dynamic_linker='OS/2 ld.exe'
  10160. shlibpath_var=LIBPATH
  10161. ;;
  10162. osf3* | osf4* | osf5*)
  10163. version_type=osf
  10164. need_lib_prefix=no
  10165. need_version=no
  10166. soname_spec='${libname}${release}${shared_ext}$major'
  10167. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10168. shlibpath_var=LD_LIBRARY_PATH
  10169. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10170. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10171. ;;
  10172. rdos*)
  10173. dynamic_linker=no
  10174. ;;
  10175. solaris*)
  10176. version_type=linux # correct to gnu/linux during the next big refactor
  10177. need_lib_prefix=no
  10178. need_version=no
  10179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10180. soname_spec='${libname}${release}${shared_ext}$major'
  10181. shlibpath_var=LD_LIBRARY_PATH
  10182. shlibpath_overrides_runpath=yes
  10183. hardcode_into_libs=yes
  10184. # ldd complains unless libraries are executable
  10185. postinstall_cmds='chmod +x $lib'
  10186. ;;
  10187. sunos4*)
  10188. version_type=sunos
  10189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10190. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10191. shlibpath_var=LD_LIBRARY_PATH
  10192. shlibpath_overrides_runpath=yes
  10193. if test "$with_gnu_ld" = yes; then
  10194. need_lib_prefix=no
  10195. fi
  10196. need_version=yes
  10197. ;;
  10198. sysv4 | sysv4.3*)
  10199. version_type=linux # correct to gnu/linux during the next big refactor
  10200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10201. soname_spec='${libname}${release}${shared_ext}$major'
  10202. shlibpath_var=LD_LIBRARY_PATH
  10203. case $host_vendor in
  10204. sni)
  10205. shlibpath_overrides_runpath=no
  10206. need_lib_prefix=no
  10207. runpath_var=LD_RUN_PATH
  10208. ;;
  10209. siemens)
  10210. need_lib_prefix=no
  10211. ;;
  10212. motorola)
  10213. need_lib_prefix=no
  10214. need_version=no
  10215. shlibpath_overrides_runpath=no
  10216. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10217. ;;
  10218. esac
  10219. ;;
  10220. sysv4*MP*)
  10221. if test -d /usr/nec ;then
  10222. version_type=linux # correct to gnu/linux during the next big refactor
  10223. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10224. soname_spec='$libname${shared_ext}.$major'
  10225. shlibpath_var=LD_LIBRARY_PATH
  10226. fi
  10227. ;;
  10228. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10229. version_type=freebsd-elf
  10230. need_lib_prefix=no
  10231. need_version=no
  10232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10233. soname_spec='${libname}${release}${shared_ext}$major'
  10234. shlibpath_var=LD_LIBRARY_PATH
  10235. shlibpath_overrides_runpath=yes
  10236. hardcode_into_libs=yes
  10237. if test "$with_gnu_ld" = yes; then
  10238. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10239. else
  10240. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10241. case $host_os in
  10242. sco3.2v5*)
  10243. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10244. ;;
  10245. esac
  10246. fi
  10247. sys_lib_dlsearch_path_spec='/usr/lib'
  10248. ;;
  10249. tpf*)
  10250. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10251. version_type=linux # correct to gnu/linux during the next big refactor
  10252. need_lib_prefix=no
  10253. need_version=no
  10254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10255. shlibpath_var=LD_LIBRARY_PATH
  10256. shlibpath_overrides_runpath=no
  10257. hardcode_into_libs=yes
  10258. ;;
  10259. uts4*)
  10260. version_type=linux # correct to gnu/linux during the next big refactor
  10261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10262. soname_spec='${libname}${release}${shared_ext}$major'
  10263. shlibpath_var=LD_LIBRARY_PATH
  10264. ;;
  10265. *)
  10266. dynamic_linker=no
  10267. ;;
  10268. esac
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10270. $as_echo "$dynamic_linker" >&6; }
  10271. test "$dynamic_linker" = no && can_build_shared=no
  10272. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10273. if test "$GCC" = yes; then
  10274. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10275. fi
  10276. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10277. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10278. fi
  10279. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10280. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10281. fi
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10283. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10284. hardcode_action=
  10285. if test -n "$hardcode_libdir_flag_spec" ||
  10286. test -n "$runpath_var" ||
  10287. test "X$hardcode_automatic" = "Xyes" ; then
  10288. # We can hardcode non-existent directories.
  10289. if test "$hardcode_direct" != no &&
  10290. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10291. # have to relink, otherwise we might link with an installed library
  10292. # when we should be linking with a yet-to-be-installed one
  10293. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10294. test "$hardcode_minus_L" != no; then
  10295. # Linking always hardcodes the temporary library directory.
  10296. hardcode_action=relink
  10297. else
  10298. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10299. hardcode_action=immediate
  10300. fi
  10301. else
  10302. # We cannot hardcode anything, or else we can only hardcode existing
  10303. # directories.
  10304. hardcode_action=unsupported
  10305. fi
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10307. $as_echo "$hardcode_action" >&6; }
  10308. if test "$hardcode_action" = relink ||
  10309. test "$inherit_rpath" = yes; then
  10310. # Fast installation is not supported
  10311. enable_fast_install=no
  10312. elif test "$shlibpath_overrides_runpath" = yes ||
  10313. test "$enable_shared" = no; then
  10314. # Fast installation is not necessary
  10315. enable_fast_install=needless
  10316. fi
  10317. if test "x$enable_dlopen" != xyes; then
  10318. enable_dlopen=unknown
  10319. enable_dlopen_self=unknown
  10320. enable_dlopen_self_static=unknown
  10321. else
  10322. lt_cv_dlopen=no
  10323. lt_cv_dlopen_libs=
  10324. case $host_os in
  10325. beos*)
  10326. lt_cv_dlopen="load_add_on"
  10327. lt_cv_dlopen_libs=
  10328. lt_cv_dlopen_self=yes
  10329. ;;
  10330. mingw* | pw32* | cegcc*)
  10331. lt_cv_dlopen="LoadLibrary"
  10332. lt_cv_dlopen_libs=
  10333. ;;
  10334. cygwin*)
  10335. lt_cv_dlopen="dlopen"
  10336. lt_cv_dlopen_libs=
  10337. ;;
  10338. darwin*)
  10339. # if libdl is installed we need to link against it
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10341. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10342. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. ac_check_lib_save_LIBS=$LIBS
  10346. LIBS="-ldl $LIBS"
  10347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10348. /* end confdefs.h. */
  10349. /* Override any GCC internal prototype to avoid an error.
  10350. Use char because int might match the return type of a GCC
  10351. builtin and then its argument prototype would still apply. */
  10352. #ifdef __cplusplus
  10353. extern "C"
  10354. #endif
  10355. char dlopen ();
  10356. int
  10357. main ()
  10358. {
  10359. return dlopen ();
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_c_try_link "$LINENO"; then :
  10365. ac_cv_lib_dl_dlopen=yes
  10366. else
  10367. ac_cv_lib_dl_dlopen=no
  10368. fi
  10369. rm -f core conftest.err conftest.$ac_objext \
  10370. conftest$ac_exeext conftest.$ac_ext
  10371. LIBS=$ac_check_lib_save_LIBS
  10372. fi
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10374. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10375. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10376. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10377. else
  10378. lt_cv_dlopen="dyld"
  10379. lt_cv_dlopen_libs=
  10380. lt_cv_dlopen_self=yes
  10381. fi
  10382. ;;
  10383. *)
  10384. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10385. if test "x$ac_cv_func_shl_load" = xyes; then :
  10386. lt_cv_dlopen="shl_load"
  10387. else
  10388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10389. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10390. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10391. $as_echo_n "(cached) " >&6
  10392. else
  10393. ac_check_lib_save_LIBS=$LIBS
  10394. LIBS="-ldld $LIBS"
  10395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10396. /* end confdefs.h. */
  10397. /* Override any GCC internal prototype to avoid an error.
  10398. Use char because int might match the return type of a GCC
  10399. builtin and then its argument prototype would still apply. */
  10400. #ifdef __cplusplus
  10401. extern "C"
  10402. #endif
  10403. char shl_load ();
  10404. int
  10405. main ()
  10406. {
  10407. return shl_load ();
  10408. ;
  10409. return 0;
  10410. }
  10411. _ACEOF
  10412. if ac_fn_c_try_link "$LINENO"; then :
  10413. ac_cv_lib_dld_shl_load=yes
  10414. else
  10415. ac_cv_lib_dld_shl_load=no
  10416. fi
  10417. rm -f core conftest.err conftest.$ac_objext \
  10418. conftest$ac_exeext conftest.$ac_ext
  10419. LIBS=$ac_check_lib_save_LIBS
  10420. fi
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10422. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10423. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10424. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10425. else
  10426. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10427. if test "x$ac_cv_func_dlopen" = xyes; then :
  10428. lt_cv_dlopen="dlopen"
  10429. else
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10431. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10432. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10433. $as_echo_n "(cached) " >&6
  10434. else
  10435. ac_check_lib_save_LIBS=$LIBS
  10436. LIBS="-ldl $LIBS"
  10437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10438. /* end confdefs.h. */
  10439. /* Override any GCC internal prototype to avoid an error.
  10440. Use char because int might match the return type of a GCC
  10441. builtin and then its argument prototype would still apply. */
  10442. #ifdef __cplusplus
  10443. extern "C"
  10444. #endif
  10445. char dlopen ();
  10446. int
  10447. main ()
  10448. {
  10449. return dlopen ();
  10450. ;
  10451. return 0;
  10452. }
  10453. _ACEOF
  10454. if ac_fn_c_try_link "$LINENO"; then :
  10455. ac_cv_lib_dl_dlopen=yes
  10456. else
  10457. ac_cv_lib_dl_dlopen=no
  10458. fi
  10459. rm -f core conftest.err conftest.$ac_objext \
  10460. conftest$ac_exeext conftest.$ac_ext
  10461. LIBS=$ac_check_lib_save_LIBS
  10462. fi
  10463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10464. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10465. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10466. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10467. else
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10469. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10470. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10471. $as_echo_n "(cached) " >&6
  10472. else
  10473. ac_check_lib_save_LIBS=$LIBS
  10474. LIBS="-lsvld $LIBS"
  10475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10476. /* end confdefs.h. */
  10477. /* Override any GCC internal prototype to avoid an error.
  10478. Use char because int might match the return type of a GCC
  10479. builtin and then its argument prototype would still apply. */
  10480. #ifdef __cplusplus
  10481. extern "C"
  10482. #endif
  10483. char dlopen ();
  10484. int
  10485. main ()
  10486. {
  10487. return dlopen ();
  10488. ;
  10489. return 0;
  10490. }
  10491. _ACEOF
  10492. if ac_fn_c_try_link "$LINENO"; then :
  10493. ac_cv_lib_svld_dlopen=yes
  10494. else
  10495. ac_cv_lib_svld_dlopen=no
  10496. fi
  10497. rm -f core conftest.err conftest.$ac_objext \
  10498. conftest$ac_exeext conftest.$ac_ext
  10499. LIBS=$ac_check_lib_save_LIBS
  10500. fi
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10502. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10503. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10504. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10505. else
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10507. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10508. if ${ac_cv_lib_dld_dld_link+:} 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 dld_link ();
  10522. int
  10523. main ()
  10524. {
  10525. return dld_link ();
  10526. ;
  10527. return 0;
  10528. }
  10529. _ACEOF
  10530. if ac_fn_c_try_link "$LINENO"; then :
  10531. ac_cv_lib_dld_dld_link=yes
  10532. else
  10533. ac_cv_lib_dld_dld_link=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_dld_link" >&5
  10540. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10541. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10542. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10543. fi
  10544. fi
  10545. fi
  10546. fi
  10547. fi
  10548. fi
  10549. ;;
  10550. esac
  10551. if test "x$lt_cv_dlopen" != xno; then
  10552. enable_dlopen=yes
  10553. else
  10554. enable_dlopen=no
  10555. fi
  10556. case $lt_cv_dlopen in
  10557. dlopen)
  10558. save_CPPFLAGS="$CPPFLAGS"
  10559. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10560. save_LDFLAGS="$LDFLAGS"
  10561. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10562. save_LIBS="$LIBS"
  10563. LIBS="$lt_cv_dlopen_libs $LIBS"
  10564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10565. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10566. if ${lt_cv_dlopen_self+:} false; then :
  10567. $as_echo_n "(cached) " >&6
  10568. else
  10569. if test "$cross_compiling" = yes; then :
  10570. lt_cv_dlopen_self=cross
  10571. else
  10572. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10573. lt_status=$lt_dlunknown
  10574. cat > conftest.$ac_ext <<_LT_EOF
  10575. #line $LINENO "configure"
  10576. #include "confdefs.h"
  10577. #if HAVE_DLFCN_H
  10578. #include <dlfcn.h>
  10579. #endif
  10580. #include <stdio.h>
  10581. #ifdef RTLD_GLOBAL
  10582. # define LT_DLGLOBAL RTLD_GLOBAL
  10583. #else
  10584. # ifdef DL_GLOBAL
  10585. # define LT_DLGLOBAL DL_GLOBAL
  10586. # else
  10587. # define LT_DLGLOBAL 0
  10588. # endif
  10589. #endif
  10590. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10591. find out it does not work in some platform. */
  10592. #ifndef LT_DLLAZY_OR_NOW
  10593. # ifdef RTLD_LAZY
  10594. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10595. # else
  10596. # ifdef DL_LAZY
  10597. # define LT_DLLAZY_OR_NOW DL_LAZY
  10598. # else
  10599. # ifdef RTLD_NOW
  10600. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10601. # else
  10602. # ifdef DL_NOW
  10603. # define LT_DLLAZY_OR_NOW DL_NOW
  10604. # else
  10605. # define LT_DLLAZY_OR_NOW 0
  10606. # endif
  10607. # endif
  10608. # endif
  10609. # endif
  10610. #endif
  10611. /* When -fvisbility=hidden is used, assume the code has been annotated
  10612. correspondingly for the symbols needed. */
  10613. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10614. int fnord () __attribute__((visibility("default")));
  10615. #endif
  10616. int fnord () { return 42; }
  10617. int main ()
  10618. {
  10619. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10620. int status = $lt_dlunknown;
  10621. if (self)
  10622. {
  10623. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10624. else
  10625. {
  10626. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10627. else puts (dlerror ());
  10628. }
  10629. /* dlclose (self); */
  10630. }
  10631. else
  10632. puts (dlerror ());
  10633. return status;
  10634. }
  10635. _LT_EOF
  10636. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10637. (eval $ac_link) 2>&5
  10638. ac_status=$?
  10639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10640. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10641. (./conftest; exit; ) >&5 2>/dev/null
  10642. lt_status=$?
  10643. case x$lt_status in
  10644. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10645. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10646. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10647. esac
  10648. else :
  10649. # compilation failed
  10650. lt_cv_dlopen_self=no
  10651. fi
  10652. fi
  10653. rm -fr conftest*
  10654. fi
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10656. $as_echo "$lt_cv_dlopen_self" >&6; }
  10657. if test "x$lt_cv_dlopen_self" = xyes; then
  10658. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10660. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10661. if ${lt_cv_dlopen_self_static+:} false; then :
  10662. $as_echo_n "(cached) " >&6
  10663. else
  10664. if test "$cross_compiling" = yes; then :
  10665. lt_cv_dlopen_self_static=cross
  10666. else
  10667. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10668. lt_status=$lt_dlunknown
  10669. cat > conftest.$ac_ext <<_LT_EOF
  10670. #line $LINENO "configure"
  10671. #include "confdefs.h"
  10672. #if HAVE_DLFCN_H
  10673. #include <dlfcn.h>
  10674. #endif
  10675. #include <stdio.h>
  10676. #ifdef RTLD_GLOBAL
  10677. # define LT_DLGLOBAL RTLD_GLOBAL
  10678. #else
  10679. # ifdef DL_GLOBAL
  10680. # define LT_DLGLOBAL DL_GLOBAL
  10681. # else
  10682. # define LT_DLGLOBAL 0
  10683. # endif
  10684. #endif
  10685. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10686. find out it does not work in some platform. */
  10687. #ifndef LT_DLLAZY_OR_NOW
  10688. # ifdef RTLD_LAZY
  10689. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10690. # else
  10691. # ifdef DL_LAZY
  10692. # define LT_DLLAZY_OR_NOW DL_LAZY
  10693. # else
  10694. # ifdef RTLD_NOW
  10695. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10696. # else
  10697. # ifdef DL_NOW
  10698. # define LT_DLLAZY_OR_NOW DL_NOW
  10699. # else
  10700. # define LT_DLLAZY_OR_NOW 0
  10701. # endif
  10702. # endif
  10703. # endif
  10704. # endif
  10705. #endif
  10706. /* When -fvisbility=hidden is used, assume the code has been annotated
  10707. correspondingly for the symbols needed. */
  10708. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10709. int fnord () __attribute__((visibility("default")));
  10710. #endif
  10711. int fnord () { return 42; }
  10712. int main ()
  10713. {
  10714. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10715. int status = $lt_dlunknown;
  10716. if (self)
  10717. {
  10718. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10719. else
  10720. {
  10721. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10722. else puts (dlerror ());
  10723. }
  10724. /* dlclose (self); */
  10725. }
  10726. else
  10727. puts (dlerror ());
  10728. return status;
  10729. }
  10730. _LT_EOF
  10731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10732. (eval $ac_link) 2>&5
  10733. ac_status=$?
  10734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10735. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10736. (./conftest; exit; ) >&5 2>/dev/null
  10737. lt_status=$?
  10738. case x$lt_status in
  10739. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10740. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10741. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10742. esac
  10743. else :
  10744. # compilation failed
  10745. lt_cv_dlopen_self_static=no
  10746. fi
  10747. fi
  10748. rm -fr conftest*
  10749. fi
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10751. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10752. fi
  10753. CPPFLAGS="$save_CPPFLAGS"
  10754. LDFLAGS="$save_LDFLAGS"
  10755. LIBS="$save_LIBS"
  10756. ;;
  10757. esac
  10758. case $lt_cv_dlopen_self in
  10759. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10760. *) enable_dlopen_self=unknown ;;
  10761. esac
  10762. case $lt_cv_dlopen_self_static in
  10763. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10764. *) enable_dlopen_self_static=unknown ;;
  10765. esac
  10766. fi
  10767. striplib=
  10768. old_striplib=
  10769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10770. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10771. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10772. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10773. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10775. $as_echo "yes" >&6; }
  10776. else
  10777. # FIXME - insert some real tests, host_os isn't really good enough
  10778. case $host_os in
  10779. darwin*)
  10780. if test -n "$STRIP" ; then
  10781. striplib="$STRIP -x"
  10782. old_striplib="$STRIP -S"
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10784. $as_echo "yes" >&6; }
  10785. else
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10787. $as_echo "no" >&6; }
  10788. fi
  10789. ;;
  10790. *)
  10791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10792. $as_echo "no" >&6; }
  10793. ;;
  10794. esac
  10795. fi
  10796. # Report which library types will actually be built
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10798. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10800. $as_echo "$can_build_shared" >&6; }
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10802. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10803. test "$can_build_shared" = "no" && enable_shared=no
  10804. # On AIX, shared libraries and static libraries use the same namespace, and
  10805. # are all built from PIC.
  10806. case $host_os in
  10807. aix3*)
  10808. test "$enable_shared" = yes && enable_static=no
  10809. if test -n "$RANLIB"; then
  10810. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10811. postinstall_cmds='$RANLIB $lib'
  10812. fi
  10813. ;;
  10814. aix[4-9]*)
  10815. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10816. test "$enable_shared" = yes && enable_static=no
  10817. fi
  10818. ;;
  10819. esac
  10820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10821. $as_echo "$enable_shared" >&6; }
  10822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10823. $as_echo_n "checking whether to build static libraries... " >&6; }
  10824. # Make sure either enable_shared or enable_static is yes.
  10825. test "$enable_shared" = yes || enable_static=yes
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10827. $as_echo "$enable_static" >&6; }
  10828. fi
  10829. ac_ext=c
  10830. ac_cpp='$CPP $CPPFLAGS'
  10831. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10832. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10833. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10834. CC="$lt_save_CC"
  10835. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10836. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10837. (test "X$CXX" != "Xg++"))) ; then
  10838. ac_ext=cpp
  10839. ac_cpp='$CXXCPP $CPPFLAGS'
  10840. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10841. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10842. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10844. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10845. if test -z "$CXXCPP"; then
  10846. if ${ac_cv_prog_CXXCPP+:} false; then :
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. # Double quotes because CXXCPP needs to be expanded
  10850. for CXXCPP in "$CXX -E" "/lib/cpp"
  10851. do
  10852. ac_preproc_ok=false
  10853. for ac_cxx_preproc_warn_flag in '' yes
  10854. do
  10855. # Use a header file that comes with gcc, so configuring glibc
  10856. # with a fresh cross-compiler works.
  10857. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10858. # <limits.h> exists even on freestanding compilers.
  10859. # On the NeXT, cc -E runs the code through the compiler's parser,
  10860. # not just through cpp. "Syntax error" is here to catch this case.
  10861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10862. /* end confdefs.h. */
  10863. #ifdef __STDC__
  10864. # include <limits.h>
  10865. #else
  10866. # include <assert.h>
  10867. #endif
  10868. Syntax error
  10869. _ACEOF
  10870. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10871. else
  10872. # Broken: fails on valid input.
  10873. continue
  10874. fi
  10875. rm -f conftest.err conftest.i conftest.$ac_ext
  10876. # OK, works on sane cases. Now check whether nonexistent headers
  10877. # can be detected and how.
  10878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10879. /* end confdefs.h. */
  10880. #include <ac_nonexistent.h>
  10881. _ACEOF
  10882. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10883. # Broken: success on invalid input.
  10884. continue
  10885. else
  10886. # Passes both tests.
  10887. ac_preproc_ok=:
  10888. break
  10889. fi
  10890. rm -f conftest.err conftest.i conftest.$ac_ext
  10891. done
  10892. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10893. rm -f conftest.i conftest.err conftest.$ac_ext
  10894. if $ac_preproc_ok; then :
  10895. break
  10896. fi
  10897. done
  10898. ac_cv_prog_CXXCPP=$CXXCPP
  10899. fi
  10900. CXXCPP=$ac_cv_prog_CXXCPP
  10901. else
  10902. ac_cv_prog_CXXCPP=$CXXCPP
  10903. fi
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10905. $as_echo "$CXXCPP" >&6; }
  10906. ac_preproc_ok=false
  10907. for ac_cxx_preproc_warn_flag in '' yes
  10908. do
  10909. # Use a header file that comes with gcc, so configuring glibc
  10910. # with a fresh cross-compiler works.
  10911. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10912. # <limits.h> exists even on freestanding compilers.
  10913. # On the NeXT, cc -E runs the code through the compiler's parser,
  10914. # not just through cpp. "Syntax error" is here to catch this case.
  10915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10916. /* end confdefs.h. */
  10917. #ifdef __STDC__
  10918. # include <limits.h>
  10919. #else
  10920. # include <assert.h>
  10921. #endif
  10922. Syntax error
  10923. _ACEOF
  10924. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10925. else
  10926. # Broken: fails on valid input.
  10927. continue
  10928. fi
  10929. rm -f conftest.err conftest.i conftest.$ac_ext
  10930. # OK, works on sane cases. Now check whether nonexistent headers
  10931. # can be detected and how.
  10932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10933. /* end confdefs.h. */
  10934. #include <ac_nonexistent.h>
  10935. _ACEOF
  10936. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10937. # Broken: success on invalid input.
  10938. continue
  10939. else
  10940. # Passes both tests.
  10941. ac_preproc_ok=:
  10942. break
  10943. fi
  10944. rm -f conftest.err conftest.i conftest.$ac_ext
  10945. done
  10946. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10947. rm -f conftest.i conftest.err conftest.$ac_ext
  10948. if $ac_preproc_ok; then :
  10949. else
  10950. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10952. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10953. See \`config.log' for more details" "$LINENO" 5; }
  10954. fi
  10955. ac_ext=c
  10956. ac_cpp='$CPP $CPPFLAGS'
  10957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10960. else
  10961. _lt_caught_CXX_error=yes
  10962. fi
  10963. ac_ext=cpp
  10964. ac_cpp='$CXXCPP $CPPFLAGS'
  10965. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10966. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10967. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10968. archive_cmds_need_lc_CXX=no
  10969. allow_undefined_flag_CXX=
  10970. always_export_symbols_CXX=no
  10971. archive_expsym_cmds_CXX=
  10972. compiler_needs_object_CXX=no
  10973. export_dynamic_flag_spec_CXX=
  10974. hardcode_direct_CXX=no
  10975. hardcode_direct_absolute_CXX=no
  10976. hardcode_libdir_flag_spec_CXX=
  10977. hardcode_libdir_separator_CXX=
  10978. hardcode_minus_L_CXX=no
  10979. hardcode_shlibpath_var_CXX=unsupported
  10980. hardcode_automatic_CXX=no
  10981. inherit_rpath_CXX=no
  10982. module_cmds_CXX=
  10983. module_expsym_cmds_CXX=
  10984. link_all_deplibs_CXX=unknown
  10985. old_archive_cmds_CXX=$old_archive_cmds
  10986. reload_flag_CXX=$reload_flag
  10987. reload_cmds_CXX=$reload_cmds
  10988. no_undefined_flag_CXX=
  10989. whole_archive_flag_spec_CXX=
  10990. enable_shared_with_static_runtimes_CXX=no
  10991. # Source file extension for C++ test sources.
  10992. ac_ext=cpp
  10993. # Object file extension for compiled C++ test sources.
  10994. objext=o
  10995. objext_CXX=$objext
  10996. # No sense in running all these tests if we already determined that
  10997. # the CXX compiler isn't working. Some variables (like enable_shared)
  10998. # are currently assumed to apply to all compilers on this platform,
  10999. # and will be corrupted by setting them based on a non-working compiler.
  11000. if test "$_lt_caught_CXX_error" != yes; then
  11001. # Code to be used in simple compile tests
  11002. lt_simple_compile_test_code="int some_variable = 0;"
  11003. # Code to be used in simple link tests
  11004. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11005. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11006. # If no C compiler was specified, use CC.
  11007. LTCC=${LTCC-"$CC"}
  11008. # If no C compiler flags were specified, use CFLAGS.
  11009. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11010. # Allow CC to be a program name with arguments.
  11011. compiler=$CC
  11012. # save warnings/boilerplate of simple test code
  11013. ac_outfile=conftest.$ac_objext
  11014. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11015. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11016. _lt_compiler_boilerplate=`cat conftest.err`
  11017. $RM conftest*
  11018. ac_outfile=conftest.$ac_objext
  11019. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11020. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11021. _lt_linker_boilerplate=`cat conftest.err`
  11022. $RM -r conftest*
  11023. # Allow CC to be a program name with arguments.
  11024. lt_save_CC=$CC
  11025. lt_save_CFLAGS=$CFLAGS
  11026. lt_save_LD=$LD
  11027. lt_save_GCC=$GCC
  11028. GCC=$GXX
  11029. lt_save_with_gnu_ld=$with_gnu_ld
  11030. lt_save_path_LD=$lt_cv_path_LD
  11031. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11032. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11033. else
  11034. $as_unset lt_cv_prog_gnu_ld
  11035. fi
  11036. if test -n "${lt_cv_path_LDCXX+set}"; then
  11037. lt_cv_path_LD=$lt_cv_path_LDCXX
  11038. else
  11039. $as_unset lt_cv_path_LD
  11040. fi
  11041. test -z "${LDCXX+set}" || LD=$LDCXX
  11042. CC=${CXX-"c++"}
  11043. CFLAGS=$CXXFLAGS
  11044. compiler=$CC
  11045. compiler_CXX=$CC
  11046. for cc_temp in $compiler""; do
  11047. case $cc_temp in
  11048. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11049. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11050. \-*) ;;
  11051. *) break;;
  11052. esac
  11053. done
  11054. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11055. if test -n "$compiler"; then
  11056. # We don't want -fno-exception when compiling C++ code, so set the
  11057. # no_builtin_flag separately
  11058. if test "$GXX" = yes; then
  11059. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11060. else
  11061. lt_prog_compiler_no_builtin_flag_CXX=
  11062. fi
  11063. if test "$GXX" = yes; then
  11064. # Set up default GNU C++ configuration
  11065. # Check whether --with-gnu-ld was given.
  11066. if test "${with_gnu_ld+set}" = set; then :
  11067. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11068. else
  11069. with_gnu_ld=no
  11070. fi
  11071. ac_prog=ld
  11072. if test "$GCC" = yes; then
  11073. # Check if gcc -print-prog-name=ld gives a path.
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11075. $as_echo_n "checking for ld used by $CC... " >&6; }
  11076. case $host in
  11077. *-*-mingw*)
  11078. # gcc leaves a trailing carriage return which upsets mingw
  11079. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11080. *)
  11081. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11082. esac
  11083. case $ac_prog in
  11084. # Accept absolute paths.
  11085. [\\/]* | ?:[\\/]*)
  11086. re_direlt='/[^/][^/]*/\.\./'
  11087. # Canonicalize the pathname of ld
  11088. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11089. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11090. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11091. done
  11092. test -z "$LD" && LD="$ac_prog"
  11093. ;;
  11094. "")
  11095. # If it fails, then pretend we aren't using GCC.
  11096. ac_prog=ld
  11097. ;;
  11098. *)
  11099. # If it is relative, then search for the first ld in PATH.
  11100. with_gnu_ld=unknown
  11101. ;;
  11102. esac
  11103. elif test "$with_gnu_ld" = yes; then
  11104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11105. $as_echo_n "checking for GNU ld... " >&6; }
  11106. else
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11108. $as_echo_n "checking for non-GNU ld... " >&6; }
  11109. fi
  11110. if ${lt_cv_path_LD+:} false; then :
  11111. $as_echo_n "(cached) " >&6
  11112. else
  11113. if test -z "$LD"; then
  11114. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11115. for ac_dir in $PATH; do
  11116. IFS="$lt_save_ifs"
  11117. test -z "$ac_dir" && ac_dir=.
  11118. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11119. lt_cv_path_LD="$ac_dir/$ac_prog"
  11120. # Check to see if the program is GNU ld. I'd rather use --version,
  11121. # but apparently some variants of GNU ld only accept -v.
  11122. # Break only if it was the GNU/non-GNU ld that we prefer.
  11123. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11124. *GNU* | *'with BFD'*)
  11125. test "$with_gnu_ld" != no && break
  11126. ;;
  11127. *)
  11128. test "$with_gnu_ld" != yes && break
  11129. ;;
  11130. esac
  11131. fi
  11132. done
  11133. IFS="$lt_save_ifs"
  11134. else
  11135. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11136. fi
  11137. fi
  11138. LD="$lt_cv_path_LD"
  11139. if test -n "$LD"; then
  11140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11141. $as_echo "$LD" >&6; }
  11142. else
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11144. $as_echo "no" >&6; }
  11145. fi
  11146. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11148. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11149. if ${lt_cv_prog_gnu_ld+:} false; then :
  11150. $as_echo_n "(cached) " >&6
  11151. else
  11152. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11153. case `$LD -v 2>&1 </dev/null` in
  11154. *GNU* | *'with BFD'*)
  11155. lt_cv_prog_gnu_ld=yes
  11156. ;;
  11157. *)
  11158. lt_cv_prog_gnu_ld=no
  11159. ;;
  11160. esac
  11161. fi
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11163. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11164. with_gnu_ld=$lt_cv_prog_gnu_ld
  11165. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11166. # archiving commands below assume that GNU ld is being used.
  11167. if test "$with_gnu_ld" = yes; then
  11168. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11169. 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'
  11170. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11171. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11172. # If archive_cmds runs LD, not CC, wlarc should be empty
  11173. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11174. # investigate it a little bit more. (MM)
  11175. wlarc='${wl}'
  11176. # ancient GNU ld didn't support --whole-archive et. al.
  11177. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11178. $GREP 'no-whole-archive' > /dev/null; then
  11179. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11180. else
  11181. whole_archive_flag_spec_CXX=
  11182. fi
  11183. else
  11184. with_gnu_ld=no
  11185. wlarc=
  11186. # A generic and very simple default shared library creation
  11187. # command for GNU C++ for the case where it uses the native
  11188. # linker, instead of GNU ld. If possible, this setting should
  11189. # overridden to take advantage of the native linker features on
  11190. # the platform it is being used on.
  11191. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11192. fi
  11193. # Commands to make compiler produce verbose output that lists
  11194. # what "hidden" libraries, object files and flags are used when
  11195. # linking a shared library.
  11196. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11197. else
  11198. GXX=no
  11199. with_gnu_ld=no
  11200. wlarc=
  11201. fi
  11202. # PORTME: fill in a description of your system's C++ link characteristics
  11203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11204. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11205. ld_shlibs_CXX=yes
  11206. case $host_os in
  11207. aix3*)
  11208. # FIXME: insert proper C++ library support
  11209. ld_shlibs_CXX=no
  11210. ;;
  11211. aix[4-9]*)
  11212. if test "$host_cpu" = ia64; then
  11213. # On IA64, the linker does run time linking by default, so we don't
  11214. # have to do anything special.
  11215. aix_use_runtimelinking=no
  11216. exp_sym_flag='-Bexport'
  11217. no_entry_flag=""
  11218. else
  11219. aix_use_runtimelinking=no
  11220. # Test if we are trying to use run time linking or normal
  11221. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11222. # need to do runtime linking.
  11223. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11224. for ld_flag in $LDFLAGS; do
  11225. case $ld_flag in
  11226. *-brtl*)
  11227. aix_use_runtimelinking=yes
  11228. break
  11229. ;;
  11230. esac
  11231. done
  11232. ;;
  11233. esac
  11234. exp_sym_flag='-bexport'
  11235. no_entry_flag='-bnoentry'
  11236. fi
  11237. # When large executables or shared objects are built, AIX ld can
  11238. # have problems creating the table of contents. If linking a library
  11239. # or program results in "error TOC overflow" add -mminimal-toc to
  11240. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11241. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11242. archive_cmds_CXX=''
  11243. hardcode_direct_CXX=yes
  11244. hardcode_direct_absolute_CXX=yes
  11245. hardcode_libdir_separator_CXX=':'
  11246. link_all_deplibs_CXX=yes
  11247. file_list_spec_CXX='${wl}-f,'
  11248. if test "$GXX" = yes; then
  11249. case $host_os in aix4.[012]|aix4.[012].*)
  11250. # We only want to do this on AIX 4.2 and lower, the check
  11251. # below for broken collect2 doesn't work under 4.3+
  11252. collect2name=`${CC} -print-prog-name=collect2`
  11253. if test -f "$collect2name" &&
  11254. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11255. then
  11256. # We have reworked collect2
  11257. :
  11258. else
  11259. # We have old collect2
  11260. hardcode_direct_CXX=unsupported
  11261. # It fails to find uninstalled libraries when the uninstalled
  11262. # path is not listed in the libpath. Setting hardcode_minus_L
  11263. # to unsupported forces relinking
  11264. hardcode_minus_L_CXX=yes
  11265. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11266. hardcode_libdir_separator_CXX=
  11267. fi
  11268. esac
  11269. shared_flag='-shared'
  11270. if test "$aix_use_runtimelinking" = yes; then
  11271. shared_flag="$shared_flag "'${wl}-G'
  11272. fi
  11273. else
  11274. # not using gcc
  11275. if test "$host_cpu" = ia64; then
  11276. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11277. # chokes on -Wl,-G. The following line is correct:
  11278. shared_flag='-G'
  11279. else
  11280. if test "$aix_use_runtimelinking" = yes; then
  11281. shared_flag='${wl}-G'
  11282. else
  11283. shared_flag='${wl}-bM:SRE'
  11284. fi
  11285. fi
  11286. fi
  11287. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11288. # It seems that -bexpall does not export symbols beginning with
  11289. # underscore (_), so it is better to generate a list of symbols to
  11290. # export.
  11291. always_export_symbols_CXX=yes
  11292. if test "$aix_use_runtimelinking" = yes; then
  11293. # Warning - without using the other runtime loading flags (-brtl),
  11294. # -berok will link without error, but may produce a broken library.
  11295. allow_undefined_flag_CXX='-berok'
  11296. # Determine the default libpath from the value encoded in an empty
  11297. # executable.
  11298. if test "${lt_cv_aix_libpath+set}" = set; then
  11299. aix_libpath=$lt_cv_aix_libpath
  11300. else
  11301. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11302. $as_echo_n "(cached) " >&6
  11303. else
  11304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11305. /* end confdefs.h. */
  11306. int
  11307. main ()
  11308. {
  11309. ;
  11310. return 0;
  11311. }
  11312. _ACEOF
  11313. if ac_fn_cxx_try_link "$LINENO"; then :
  11314. lt_aix_libpath_sed='
  11315. /Import File Strings/,/^$/ {
  11316. /^0/ {
  11317. s/^0 *\([^ ]*\) *$/\1/
  11318. p
  11319. }
  11320. }'
  11321. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11322. # Check for a 64-bit object if we didn't find anything.
  11323. if test -z "$lt_cv_aix_libpath__CXX"; then
  11324. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11325. fi
  11326. fi
  11327. rm -f core conftest.err conftest.$ac_objext \
  11328. conftest$ac_exeext conftest.$ac_ext
  11329. if test -z "$lt_cv_aix_libpath__CXX"; then
  11330. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11331. fi
  11332. fi
  11333. aix_libpath=$lt_cv_aix_libpath__CXX
  11334. fi
  11335. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11336. 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"
  11337. else
  11338. if test "$host_cpu" = ia64; then
  11339. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11340. allow_undefined_flag_CXX="-z nodefs"
  11341. 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"
  11342. else
  11343. # Determine the default libpath from the value encoded in an
  11344. # empty executable.
  11345. if test "${lt_cv_aix_libpath+set}" = set; then
  11346. aix_libpath=$lt_cv_aix_libpath
  11347. else
  11348. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11349. $as_echo_n "(cached) " >&6
  11350. else
  11351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11352. /* end confdefs.h. */
  11353. int
  11354. main ()
  11355. {
  11356. ;
  11357. return 0;
  11358. }
  11359. _ACEOF
  11360. if ac_fn_cxx_try_link "$LINENO"; then :
  11361. lt_aix_libpath_sed='
  11362. /Import File Strings/,/^$/ {
  11363. /^0/ {
  11364. s/^0 *\([^ ]*\) *$/\1/
  11365. p
  11366. }
  11367. }'
  11368. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11369. # Check for a 64-bit object if we didn't find anything.
  11370. if test -z "$lt_cv_aix_libpath__CXX"; then
  11371. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11372. fi
  11373. fi
  11374. rm -f core conftest.err conftest.$ac_objext \
  11375. conftest$ac_exeext conftest.$ac_ext
  11376. if test -z "$lt_cv_aix_libpath__CXX"; then
  11377. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11378. fi
  11379. fi
  11380. aix_libpath=$lt_cv_aix_libpath__CXX
  11381. fi
  11382. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11383. # Warning - without using the other run time loading flags,
  11384. # -berok will link without error, but may produce a broken library.
  11385. no_undefined_flag_CXX=' ${wl}-bernotok'
  11386. allow_undefined_flag_CXX=' ${wl}-berok'
  11387. if test "$with_gnu_ld" = yes; then
  11388. # We only use this code for GNU lds that support --whole-archive.
  11389. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11390. else
  11391. # Exported symbols can be pulled into shared objects from archives
  11392. whole_archive_flag_spec_CXX='$convenience'
  11393. fi
  11394. archive_cmds_need_lc_CXX=yes
  11395. # This is similar to how AIX traditionally builds its shared
  11396. # libraries.
  11397. 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'
  11398. fi
  11399. fi
  11400. ;;
  11401. beos*)
  11402. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11403. allow_undefined_flag_CXX=unsupported
  11404. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11405. # support --undefined. This deserves some investigation. FIXME
  11406. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11407. else
  11408. ld_shlibs_CXX=no
  11409. fi
  11410. ;;
  11411. chorus*)
  11412. case $cc_basename in
  11413. *)
  11414. # FIXME: insert proper C++ library support
  11415. ld_shlibs_CXX=no
  11416. ;;
  11417. esac
  11418. ;;
  11419. cygwin* | mingw* | pw32* | cegcc*)
  11420. case $GXX,$cc_basename in
  11421. ,cl* | no,cl*)
  11422. # Native MSVC
  11423. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11424. # no search path for DLLs.
  11425. hardcode_libdir_flag_spec_CXX=' '
  11426. allow_undefined_flag_CXX=unsupported
  11427. always_export_symbols_CXX=yes
  11428. file_list_spec_CXX='@'
  11429. # Tell ltmain to make .lib files, not .a files.
  11430. libext=lib
  11431. # Tell ltmain to make .dll files, not .so files.
  11432. shrext_cmds=".dll"
  11433. # FIXME: Setting linknames here is a bad hack.
  11434. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11435. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11436. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11437. else
  11438. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11439. fi~
  11440. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11441. linknames='
  11442. # The linker will not automatically build a static lib if we build a DLL.
  11443. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11444. enable_shared_with_static_runtimes_CXX=yes
  11445. # Don't use ranlib
  11446. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11447. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11448. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11449. case $lt_outputfile in
  11450. *.exe|*.EXE) ;;
  11451. *)
  11452. lt_outputfile="$lt_outputfile.exe"
  11453. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11454. ;;
  11455. esac~
  11456. func_to_tool_file "$lt_outputfile"~
  11457. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11458. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11459. $RM "$lt_outputfile.manifest";
  11460. fi'
  11461. ;;
  11462. *)
  11463. # g++
  11464. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11465. # as there is no search path for DLLs.
  11466. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11467. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11468. allow_undefined_flag_CXX=unsupported
  11469. always_export_symbols_CXX=no
  11470. enable_shared_with_static_runtimes_CXX=yes
  11471. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11472. 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'
  11473. # If the export-symbols file already is a .def file (1st line
  11474. # is EXPORTS), use it as is; otherwise, prepend...
  11475. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11476. cp $export_symbols $output_objdir/$soname.def;
  11477. else
  11478. echo EXPORTS > $output_objdir/$soname.def;
  11479. cat $export_symbols >> $output_objdir/$soname.def;
  11480. fi~
  11481. $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'
  11482. else
  11483. ld_shlibs_CXX=no
  11484. fi
  11485. ;;
  11486. esac
  11487. ;;
  11488. darwin* | rhapsody*)
  11489. archive_cmds_need_lc_CXX=no
  11490. hardcode_direct_CXX=no
  11491. hardcode_automatic_CXX=yes
  11492. hardcode_shlibpath_var_CXX=unsupported
  11493. if test "$lt_cv_ld_force_load" = "yes"; then
  11494. 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\"`'
  11495. else
  11496. whole_archive_flag_spec_CXX=''
  11497. fi
  11498. link_all_deplibs_CXX=yes
  11499. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11500. case $cc_basename in
  11501. ifort*) _lt_dar_can_shared=yes ;;
  11502. *) _lt_dar_can_shared=$GCC ;;
  11503. esac
  11504. if test "$_lt_dar_can_shared" = "yes"; then
  11505. output_verbose_link_cmd=func_echo_all
  11506. 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}"
  11507. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11508. 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}"
  11509. 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}"
  11510. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11511. 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}"
  11512. 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}"
  11513. fi
  11514. else
  11515. ld_shlibs_CXX=no
  11516. fi
  11517. ;;
  11518. dgux*)
  11519. case $cc_basename in
  11520. ec++*)
  11521. # FIXME: insert proper C++ library support
  11522. ld_shlibs_CXX=no
  11523. ;;
  11524. ghcx*)
  11525. # Green Hills C++ Compiler
  11526. # FIXME: insert proper C++ library support
  11527. ld_shlibs_CXX=no
  11528. ;;
  11529. *)
  11530. # FIXME: insert proper C++ library support
  11531. ld_shlibs_CXX=no
  11532. ;;
  11533. esac
  11534. ;;
  11535. freebsd2.*)
  11536. # C++ shared libraries reported to be fairly broken before
  11537. # switch to ELF
  11538. ld_shlibs_CXX=no
  11539. ;;
  11540. freebsd-elf*)
  11541. archive_cmds_need_lc_CXX=no
  11542. ;;
  11543. freebsd* | dragonfly*)
  11544. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11545. # conventions
  11546. ld_shlibs_CXX=yes
  11547. ;;
  11548. gnu*)
  11549. ;;
  11550. haiku*)
  11551. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11552. link_all_deplibs_CXX=yes
  11553. ;;
  11554. hpux9*)
  11555. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11556. hardcode_libdir_separator_CXX=:
  11557. export_dynamic_flag_spec_CXX='${wl}-E'
  11558. hardcode_direct_CXX=yes
  11559. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11560. # but as the default
  11561. # location of the library.
  11562. case $cc_basename in
  11563. CC*)
  11564. # FIXME: insert proper C++ library support
  11565. ld_shlibs_CXX=no
  11566. ;;
  11567. aCC*)
  11568. 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'
  11569. # Commands to make compiler produce verbose output that lists
  11570. # what "hidden" libraries, object files and flags are used when
  11571. # linking a shared library.
  11572. #
  11573. # There doesn't appear to be a way to prevent this compiler from
  11574. # explicitly linking system object files so we need to strip them
  11575. # from the output so that they don't get included in the library
  11576. # dependencies.
  11577. 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"'
  11578. ;;
  11579. *)
  11580. if test "$GXX" = yes; then
  11581. 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'
  11582. else
  11583. # FIXME: insert proper C++ library support
  11584. ld_shlibs_CXX=no
  11585. fi
  11586. ;;
  11587. esac
  11588. ;;
  11589. hpux10*|hpux11*)
  11590. if test $with_gnu_ld = no; then
  11591. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11592. hardcode_libdir_separator_CXX=:
  11593. case $host_cpu in
  11594. hppa*64*|ia64*)
  11595. ;;
  11596. *)
  11597. export_dynamic_flag_spec_CXX='${wl}-E'
  11598. ;;
  11599. esac
  11600. fi
  11601. case $host_cpu in
  11602. hppa*64*|ia64*)
  11603. hardcode_direct_CXX=no
  11604. hardcode_shlibpath_var_CXX=no
  11605. ;;
  11606. *)
  11607. hardcode_direct_CXX=yes
  11608. hardcode_direct_absolute_CXX=yes
  11609. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11610. # but as the default
  11611. # location of the library.
  11612. ;;
  11613. esac
  11614. case $cc_basename in
  11615. CC*)
  11616. # FIXME: insert proper C++ library support
  11617. ld_shlibs_CXX=no
  11618. ;;
  11619. aCC*)
  11620. case $host_cpu in
  11621. hppa*64*)
  11622. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11623. ;;
  11624. ia64*)
  11625. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11626. ;;
  11627. *)
  11628. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11629. ;;
  11630. esac
  11631. # Commands to make compiler produce verbose output that lists
  11632. # what "hidden" libraries, object files and flags are used when
  11633. # linking a shared library.
  11634. #
  11635. # There doesn't appear to be a way to prevent this compiler from
  11636. # explicitly linking system object files so we need to strip them
  11637. # from the output so that they don't get included in the library
  11638. # dependencies.
  11639. 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"'
  11640. ;;
  11641. *)
  11642. if test "$GXX" = yes; then
  11643. if test $with_gnu_ld = no; then
  11644. case $host_cpu in
  11645. hppa*64*)
  11646. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11647. ;;
  11648. ia64*)
  11649. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11650. ;;
  11651. *)
  11652. 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'
  11653. ;;
  11654. esac
  11655. fi
  11656. else
  11657. # FIXME: insert proper C++ library support
  11658. ld_shlibs_CXX=no
  11659. fi
  11660. ;;
  11661. esac
  11662. ;;
  11663. interix[3-9]*)
  11664. hardcode_direct_CXX=no
  11665. hardcode_shlibpath_var_CXX=no
  11666. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11667. export_dynamic_flag_spec_CXX='${wl}-E'
  11668. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11669. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11670. # default) and relocated if they conflict, which is a slow very memory
  11671. # consuming and fragmenting process. To avoid this, we pick a random,
  11672. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11673. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11674. 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'
  11675. 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'
  11676. ;;
  11677. irix5* | irix6*)
  11678. case $cc_basename in
  11679. CC*)
  11680. # SGI C++
  11681. 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'
  11682. # Archives containing C++ object files must be created using
  11683. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11684. # necessary to make sure instantiated templates are included
  11685. # in the archive.
  11686. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11687. ;;
  11688. *)
  11689. if test "$GXX" = yes; then
  11690. if test "$with_gnu_ld" = no; then
  11691. 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'
  11692. else
  11693. 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'
  11694. fi
  11695. fi
  11696. link_all_deplibs_CXX=yes
  11697. ;;
  11698. esac
  11699. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11700. hardcode_libdir_separator_CXX=:
  11701. inherit_rpath_CXX=yes
  11702. ;;
  11703. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11704. case $cc_basename in
  11705. KCC*)
  11706. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11707. # KCC will only create a shared library if the output file
  11708. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11709. # to its proper name (with version) after linking.
  11710. 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'
  11711. 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'
  11712. # Commands to make compiler produce verbose output that lists
  11713. # what "hidden" libraries, object files and flags are used when
  11714. # linking a shared library.
  11715. #
  11716. # There doesn't appear to be a way to prevent this compiler from
  11717. # explicitly linking system object files so we need to strip them
  11718. # from the output so that they don't get included in the library
  11719. # dependencies.
  11720. 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"'
  11721. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11722. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11723. # Archives containing C++ object files must be created using
  11724. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11725. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11726. ;;
  11727. icpc* | ecpc* )
  11728. # Intel C++
  11729. with_gnu_ld=yes
  11730. # version 8.0 and above of icpc choke on multiply defined symbols
  11731. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11732. # earlier do not add the objects themselves.
  11733. case `$CC -V 2>&1` in
  11734. *"Version 7."*)
  11735. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11736. 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'
  11737. ;;
  11738. *) # Version 8.0 or newer
  11739. tmp_idyn=
  11740. case $host_cpu in
  11741. ia64*) tmp_idyn=' -i_dynamic';;
  11742. esac
  11743. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11744. 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'
  11745. ;;
  11746. esac
  11747. archive_cmds_need_lc_CXX=no
  11748. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11749. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11750. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11751. ;;
  11752. pgCC* | pgcpp*)
  11753. # Portland Group C++ compiler
  11754. case `$CC -V` in
  11755. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11756. prelink_cmds_CXX='tpldir=Template.dir~
  11757. rm -rf $tpldir~
  11758. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11759. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11760. old_archive_cmds_CXX='tpldir=Template.dir~
  11761. rm -rf $tpldir~
  11762. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11763. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11764. $RANLIB $oldlib'
  11765. archive_cmds_CXX='tpldir=Template.dir~
  11766. rm -rf $tpldir~
  11767. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11768. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11769. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11770. rm -rf $tpldir~
  11771. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11772. $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'
  11773. ;;
  11774. *) # Version 6 and above use weak symbols
  11775. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11776. 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'
  11777. ;;
  11778. esac
  11779. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11780. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11781. 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'
  11782. ;;
  11783. cxx*)
  11784. # Compaq C++
  11785. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11786. 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'
  11787. runpath_var=LD_RUN_PATH
  11788. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11789. hardcode_libdir_separator_CXX=:
  11790. # Commands to make compiler produce verbose output that lists
  11791. # what "hidden" libraries, object files and flags are used when
  11792. # linking a shared library.
  11793. #
  11794. # There doesn't appear to be a way to prevent this compiler from
  11795. # explicitly linking system object files so we need to strip them
  11796. # from the output so that they don't get included in the library
  11797. # dependencies.
  11798. 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'
  11799. ;;
  11800. xl* | mpixl* | bgxl*)
  11801. # IBM XL 8.0 on PPC, with GNU ld
  11802. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11803. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11804. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11805. if test "x$supports_anon_versioning" = xyes; then
  11806. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11807. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11808. echo "local: *; };" >> $output_objdir/$libname.ver~
  11809. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11810. fi
  11811. ;;
  11812. *)
  11813. case `$CC -V 2>&1 | sed 5q` in
  11814. *Sun\ C*)
  11815. # Sun C++ 5.9
  11816. no_undefined_flag_CXX=' -zdefs'
  11817. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11818. 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'
  11819. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11820. 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'
  11821. compiler_needs_object_CXX=yes
  11822. # Not sure whether something based on
  11823. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11824. # would be better.
  11825. output_verbose_link_cmd='func_echo_all'
  11826. # Archives containing C++ object files must be created using
  11827. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11828. # necessary to make sure instantiated templates are included
  11829. # in the archive.
  11830. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11831. ;;
  11832. esac
  11833. ;;
  11834. esac
  11835. ;;
  11836. lynxos*)
  11837. # FIXME: insert proper C++ library support
  11838. ld_shlibs_CXX=no
  11839. ;;
  11840. m88k*)
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. mvs*)
  11845. case $cc_basename in
  11846. cxx*)
  11847. # FIXME: insert proper C++ library support
  11848. ld_shlibs_CXX=no
  11849. ;;
  11850. *)
  11851. # FIXME: insert proper C++ library support
  11852. ld_shlibs_CXX=no
  11853. ;;
  11854. esac
  11855. ;;
  11856. netbsd*)
  11857. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11858. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11859. wlarc=
  11860. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11861. hardcode_direct_CXX=yes
  11862. hardcode_shlibpath_var_CXX=no
  11863. fi
  11864. # Workaround some broken pre-1.5 toolchains
  11865. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11866. ;;
  11867. *nto* | *qnx*)
  11868. ld_shlibs_CXX=yes
  11869. ;;
  11870. openbsd2*)
  11871. # C++ shared libraries are fairly broken
  11872. ld_shlibs_CXX=no
  11873. ;;
  11874. openbsd*)
  11875. if test -f /usr/libexec/ld.so; then
  11876. hardcode_direct_CXX=yes
  11877. hardcode_shlibpath_var_CXX=no
  11878. hardcode_direct_absolute_CXX=yes
  11879. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11880. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11881. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11882. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11883. export_dynamic_flag_spec_CXX='${wl}-E'
  11884. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11885. fi
  11886. output_verbose_link_cmd=func_echo_all
  11887. else
  11888. ld_shlibs_CXX=no
  11889. fi
  11890. ;;
  11891. osf3* | osf4* | osf5*)
  11892. case $cc_basename in
  11893. KCC*)
  11894. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11895. # KCC will only create a shared library if the output file
  11896. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11897. # to its proper name (with version) after linking.
  11898. 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'
  11899. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11900. hardcode_libdir_separator_CXX=:
  11901. # Archives containing C++ object files must be created using
  11902. # the KAI C++ compiler.
  11903. case $host in
  11904. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11905. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11906. esac
  11907. ;;
  11908. RCC*)
  11909. # Rational C++ 2.4.1
  11910. # FIXME: insert proper C++ library support
  11911. ld_shlibs_CXX=no
  11912. ;;
  11913. cxx*)
  11914. case $host in
  11915. osf3*)
  11916. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11917. 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'
  11918. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11919. ;;
  11920. *)
  11921. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11922. 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'
  11923. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11924. echo "-hidden">> $lib.exp~
  11925. $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~
  11926. $RM $lib.exp'
  11927. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11928. ;;
  11929. esac
  11930. hardcode_libdir_separator_CXX=:
  11931. # Commands to make compiler produce verbose output that lists
  11932. # what "hidden" libraries, object files and flags are used when
  11933. # linking a shared library.
  11934. #
  11935. # There doesn't appear to be a way to prevent this compiler from
  11936. # explicitly linking system object files so we need to strip them
  11937. # from the output so that they don't get included in the library
  11938. # dependencies.
  11939. 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"'
  11940. ;;
  11941. *)
  11942. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11943. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11944. case $host in
  11945. osf3*)
  11946. 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'
  11947. ;;
  11948. *)
  11949. 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'
  11950. ;;
  11951. esac
  11952. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11953. hardcode_libdir_separator_CXX=:
  11954. # Commands to make compiler produce verbose output that lists
  11955. # what "hidden" libraries, object files and flags are used when
  11956. # linking a shared library.
  11957. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11958. else
  11959. # FIXME: insert proper C++ library support
  11960. ld_shlibs_CXX=no
  11961. fi
  11962. ;;
  11963. esac
  11964. ;;
  11965. psos*)
  11966. # FIXME: insert proper C++ library support
  11967. ld_shlibs_CXX=no
  11968. ;;
  11969. sunos4*)
  11970. case $cc_basename in
  11971. CC*)
  11972. # Sun C++ 4.x
  11973. # FIXME: insert proper C++ library support
  11974. ld_shlibs_CXX=no
  11975. ;;
  11976. lcc*)
  11977. # Lucid
  11978. # FIXME: insert proper C++ library support
  11979. ld_shlibs_CXX=no
  11980. ;;
  11981. *)
  11982. # FIXME: insert proper C++ library support
  11983. ld_shlibs_CXX=no
  11984. ;;
  11985. esac
  11986. ;;
  11987. solaris*)
  11988. case $cc_basename in
  11989. CC* | sunCC*)
  11990. # Sun C++ 4.2, 5.x and Centerline C++
  11991. archive_cmds_need_lc_CXX=yes
  11992. no_undefined_flag_CXX=' -zdefs'
  11993. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11994. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11995. $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'
  11996. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11997. hardcode_shlibpath_var_CXX=no
  11998. case $host_os in
  11999. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12000. *)
  12001. # The compiler driver will combine and reorder linker options,
  12002. # but understands `-z linker_flag'.
  12003. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12004. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12005. ;;
  12006. esac
  12007. link_all_deplibs_CXX=yes
  12008. output_verbose_link_cmd='func_echo_all'
  12009. # Archives containing C++ object files must be created using
  12010. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12011. # necessary to make sure instantiated templates are included
  12012. # in the archive.
  12013. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12014. ;;
  12015. gcx*)
  12016. # Green Hills C++ Compiler
  12017. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12018. # The C++ compiler must be used to create the archive.
  12019. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12020. ;;
  12021. *)
  12022. # GNU C++ compiler with Solaris linker
  12023. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12024. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12025. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12026. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12027. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12028. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12029. # Commands to make compiler produce verbose output that lists
  12030. # what "hidden" libraries, object files and flags are used when
  12031. # linking a shared library.
  12032. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12033. else
  12034. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12035. # platform.
  12036. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12037. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12038. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12039. # Commands to make compiler produce verbose output that lists
  12040. # what "hidden" libraries, object files and flags are used when
  12041. # linking a shared library.
  12042. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12043. fi
  12044. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12045. case $host_os in
  12046. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12047. *)
  12048. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12049. ;;
  12050. esac
  12051. fi
  12052. ;;
  12053. esac
  12054. ;;
  12055. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12056. no_undefined_flag_CXX='${wl}-z,text'
  12057. archive_cmds_need_lc_CXX=no
  12058. hardcode_shlibpath_var_CXX=no
  12059. runpath_var='LD_RUN_PATH'
  12060. case $cc_basename in
  12061. CC*)
  12062. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12063. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12064. ;;
  12065. *)
  12066. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12067. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. ;;
  12069. esac
  12070. ;;
  12071. sysv5* | sco3.2v5* | sco5v6*)
  12072. # Note: We can NOT use -z defs as we might desire, because we do not
  12073. # link with -lc, and that would cause any symbols used from libc to
  12074. # always be unresolved, which means just about no library would
  12075. # ever link correctly. If we're not using GNU ld we use -z text
  12076. # though, which does catch some bad symbols but isn't as heavy-handed
  12077. # as -z defs.
  12078. no_undefined_flag_CXX='${wl}-z,text'
  12079. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12080. archive_cmds_need_lc_CXX=no
  12081. hardcode_shlibpath_var_CXX=no
  12082. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12083. hardcode_libdir_separator_CXX=':'
  12084. link_all_deplibs_CXX=yes
  12085. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12086. runpath_var='LD_RUN_PATH'
  12087. case $cc_basename in
  12088. CC*)
  12089. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12090. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12091. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12092. '"$old_archive_cmds_CXX"
  12093. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12094. '"$reload_cmds_CXX"
  12095. ;;
  12096. *)
  12097. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12098. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12099. ;;
  12100. esac
  12101. ;;
  12102. tandem*)
  12103. case $cc_basename in
  12104. NCC*)
  12105. # NonStop-UX NCC 3.20
  12106. # FIXME: insert proper C++ library support
  12107. ld_shlibs_CXX=no
  12108. ;;
  12109. *)
  12110. # FIXME: insert proper C++ library support
  12111. ld_shlibs_CXX=no
  12112. ;;
  12113. esac
  12114. ;;
  12115. vxworks*)
  12116. # FIXME: insert proper C++ library support
  12117. ld_shlibs_CXX=no
  12118. ;;
  12119. *)
  12120. # FIXME: insert proper C++ library support
  12121. ld_shlibs_CXX=no
  12122. ;;
  12123. esac
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12125. $as_echo "$ld_shlibs_CXX" >&6; }
  12126. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12127. GCC_CXX="$GXX"
  12128. LD_CXX="$LD"
  12129. ## CAVEAT EMPTOR:
  12130. ## There is no encapsulation within the following macros, do not change
  12131. ## the running order or otherwise move them around unless you know exactly
  12132. ## what you are doing...
  12133. # Dependencies to place before and after the object being linked:
  12134. predep_objects_CXX=
  12135. postdep_objects_CXX=
  12136. predeps_CXX=
  12137. postdeps_CXX=
  12138. compiler_lib_search_path_CXX=
  12139. cat > conftest.$ac_ext <<_LT_EOF
  12140. class Foo
  12141. {
  12142. public:
  12143. Foo (void) { a = 0; }
  12144. private:
  12145. int a;
  12146. };
  12147. _LT_EOF
  12148. _lt_libdeps_save_CFLAGS=$CFLAGS
  12149. case "$CC $CFLAGS " in #(
  12150. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12151. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12152. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12153. esac
  12154. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12155. (eval $ac_compile) 2>&5
  12156. ac_status=$?
  12157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12158. test $ac_status = 0; }; then
  12159. # Parse the compiler output and extract the necessary
  12160. # objects, libraries and library flags.
  12161. # Sentinel used to keep track of whether or not we are before
  12162. # the conftest object file.
  12163. pre_test_object_deps_done=no
  12164. for p in `eval "$output_verbose_link_cmd"`; do
  12165. case ${prev}${p} in
  12166. -L* | -R* | -l*)
  12167. # Some compilers place space between "-{L,R}" and the path.
  12168. # Remove the space.
  12169. if test $p = "-L" ||
  12170. test $p = "-R"; then
  12171. prev=$p
  12172. continue
  12173. fi
  12174. # Expand the sysroot to ease extracting the directories later.
  12175. if test -z "$prev"; then
  12176. case $p in
  12177. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12178. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12179. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12180. esac
  12181. fi
  12182. case $p in
  12183. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12184. esac
  12185. if test "$pre_test_object_deps_done" = no; then
  12186. case ${prev} in
  12187. -L | -R)
  12188. # Internal compiler library paths should come after those
  12189. # provided the user. The postdeps already come after the
  12190. # user supplied libs so there is no need to process them.
  12191. if test -z "$compiler_lib_search_path_CXX"; then
  12192. compiler_lib_search_path_CXX="${prev}${p}"
  12193. else
  12194. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12195. fi
  12196. ;;
  12197. # The "-l" case would never come before the object being
  12198. # linked, so don't bother handling this case.
  12199. esac
  12200. else
  12201. if test -z "$postdeps_CXX"; then
  12202. postdeps_CXX="${prev}${p}"
  12203. else
  12204. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12205. fi
  12206. fi
  12207. prev=
  12208. ;;
  12209. *.lto.$objext) ;; # Ignore GCC LTO objects
  12210. *.$objext)
  12211. # This assumes that the test object file only shows up
  12212. # once in the compiler output.
  12213. if test "$p" = "conftest.$objext"; then
  12214. pre_test_object_deps_done=yes
  12215. continue
  12216. fi
  12217. if test "$pre_test_object_deps_done" = no; then
  12218. if test -z "$predep_objects_CXX"; then
  12219. predep_objects_CXX="$p"
  12220. else
  12221. predep_objects_CXX="$predep_objects_CXX $p"
  12222. fi
  12223. else
  12224. if test -z "$postdep_objects_CXX"; then
  12225. postdep_objects_CXX="$p"
  12226. else
  12227. postdep_objects_CXX="$postdep_objects_CXX $p"
  12228. fi
  12229. fi
  12230. ;;
  12231. *) ;; # Ignore the rest.
  12232. esac
  12233. done
  12234. # Clean up.
  12235. rm -f a.out a.exe
  12236. else
  12237. echo "libtool.m4: error: problem compiling CXX test program"
  12238. fi
  12239. $RM -f confest.$objext
  12240. CFLAGS=$_lt_libdeps_save_CFLAGS
  12241. # PORTME: override above test on systems where it is broken
  12242. case $host_os in
  12243. interix[3-9]*)
  12244. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12245. # hack all around it, let's just trust "g++" to DTRT.
  12246. predep_objects_CXX=
  12247. postdep_objects_CXX=
  12248. postdeps_CXX=
  12249. ;;
  12250. linux*)
  12251. case `$CC -V 2>&1 | sed 5q` in
  12252. *Sun\ C*)
  12253. # Sun C++ 5.9
  12254. # The more standards-conforming stlport4 library is
  12255. # incompatible with the Cstd library. Avoid specifying
  12256. # it if it's in CXXFLAGS. Ignore libCrun as
  12257. # -library=stlport4 depends on it.
  12258. case " $CXX $CXXFLAGS " in
  12259. *" -library=stlport4 "*)
  12260. solaris_use_stlport4=yes
  12261. ;;
  12262. esac
  12263. if test "$solaris_use_stlport4" != yes; then
  12264. postdeps_CXX='-library=Cstd -library=Crun'
  12265. fi
  12266. ;;
  12267. esac
  12268. ;;
  12269. solaris*)
  12270. case $cc_basename in
  12271. CC* | sunCC*)
  12272. # The more standards-conforming stlport4 library is
  12273. # incompatible with the Cstd library. Avoid specifying
  12274. # it if it's in CXXFLAGS. Ignore libCrun as
  12275. # -library=stlport4 depends on it.
  12276. case " $CXX $CXXFLAGS " in
  12277. *" -library=stlport4 "*)
  12278. solaris_use_stlport4=yes
  12279. ;;
  12280. esac
  12281. # Adding this requires a known-good setup of shared libraries for
  12282. # Sun compiler versions before 5.6, else PIC objects from an old
  12283. # archive will be linked into the output, leading to subtle bugs.
  12284. if test "$solaris_use_stlport4" != yes; then
  12285. postdeps_CXX='-library=Cstd -library=Crun'
  12286. fi
  12287. ;;
  12288. esac
  12289. ;;
  12290. esac
  12291. case " $postdeps_CXX " in
  12292. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12293. esac
  12294. compiler_lib_search_dirs_CXX=
  12295. if test -n "${compiler_lib_search_path_CXX}"; then
  12296. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12297. fi
  12298. lt_prog_compiler_wl_CXX=
  12299. lt_prog_compiler_pic_CXX=
  12300. lt_prog_compiler_static_CXX=
  12301. # C++ specific cases for pic, static, wl, etc.
  12302. if test "$GXX" = yes; then
  12303. lt_prog_compiler_wl_CXX='-Wl,'
  12304. lt_prog_compiler_static_CXX='-static'
  12305. case $host_os in
  12306. aix*)
  12307. # All AIX code is PIC.
  12308. if test "$host_cpu" = ia64; then
  12309. # AIX 5 now supports IA64 processor
  12310. lt_prog_compiler_static_CXX='-Bstatic'
  12311. fi
  12312. ;;
  12313. amigaos*)
  12314. case $host_cpu in
  12315. powerpc)
  12316. # see comment about AmigaOS4 .so support
  12317. lt_prog_compiler_pic_CXX='-fPIC'
  12318. ;;
  12319. m68k)
  12320. # FIXME: we need at least 68020 code to build shared libraries, but
  12321. # adding the `-m68020' flag to GCC prevents building anything better,
  12322. # like `-m68040'.
  12323. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12324. ;;
  12325. esac
  12326. ;;
  12327. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12328. # PIC is the default for these OSes.
  12329. ;;
  12330. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12331. # This hack is so that the source file can tell whether it is being
  12332. # built for inclusion in a dll (and should export symbols for example).
  12333. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12334. # (--disable-auto-import) libraries
  12335. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12336. ;;
  12337. darwin* | rhapsody*)
  12338. # PIC is the default on this platform
  12339. # Common symbols not allowed in MH_DYLIB files
  12340. lt_prog_compiler_pic_CXX='-fno-common'
  12341. ;;
  12342. *djgpp*)
  12343. # DJGPP does not support shared libraries at all
  12344. lt_prog_compiler_pic_CXX=
  12345. ;;
  12346. haiku*)
  12347. # PIC is the default for Haiku.
  12348. # The "-static" flag exists, but is broken.
  12349. lt_prog_compiler_static_CXX=
  12350. ;;
  12351. interix[3-9]*)
  12352. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12353. # Instead, we relocate shared libraries at runtime.
  12354. ;;
  12355. sysv4*MP*)
  12356. if test -d /usr/nec; then
  12357. lt_prog_compiler_pic_CXX=-Kconform_pic
  12358. fi
  12359. ;;
  12360. hpux*)
  12361. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12362. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12363. # sets the default TLS model and affects inlining.
  12364. case $host_cpu in
  12365. hppa*64*)
  12366. ;;
  12367. *)
  12368. lt_prog_compiler_pic_CXX='-fPIC'
  12369. ;;
  12370. esac
  12371. ;;
  12372. *qnx* | *nto*)
  12373. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12374. # it will coredump.
  12375. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12376. ;;
  12377. *)
  12378. lt_prog_compiler_pic_CXX='-fPIC'
  12379. ;;
  12380. esac
  12381. else
  12382. case $host_os in
  12383. aix[4-9]*)
  12384. # All AIX code is PIC.
  12385. if test "$host_cpu" = ia64; then
  12386. # AIX 5 now supports IA64 processor
  12387. lt_prog_compiler_static_CXX='-Bstatic'
  12388. else
  12389. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12390. fi
  12391. ;;
  12392. chorus*)
  12393. case $cc_basename in
  12394. cxch68*)
  12395. # Green Hills C++ Compiler
  12396. # _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"
  12397. ;;
  12398. esac
  12399. ;;
  12400. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12401. # This hack is so that the source file can tell whether it is being
  12402. # built for inclusion in a dll (and should export symbols for example).
  12403. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12404. ;;
  12405. dgux*)
  12406. case $cc_basename in
  12407. ec++*)
  12408. lt_prog_compiler_pic_CXX='-KPIC'
  12409. ;;
  12410. ghcx*)
  12411. # Green Hills C++ Compiler
  12412. lt_prog_compiler_pic_CXX='-pic'
  12413. ;;
  12414. *)
  12415. ;;
  12416. esac
  12417. ;;
  12418. freebsd* | dragonfly*)
  12419. # FreeBSD uses GNU C++
  12420. ;;
  12421. hpux9* | hpux10* | hpux11*)
  12422. case $cc_basename in
  12423. CC*)
  12424. lt_prog_compiler_wl_CXX='-Wl,'
  12425. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12426. if test "$host_cpu" != ia64; then
  12427. lt_prog_compiler_pic_CXX='+Z'
  12428. fi
  12429. ;;
  12430. aCC*)
  12431. lt_prog_compiler_wl_CXX='-Wl,'
  12432. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12433. case $host_cpu in
  12434. hppa*64*|ia64*)
  12435. # +Z the default
  12436. ;;
  12437. *)
  12438. lt_prog_compiler_pic_CXX='+Z'
  12439. ;;
  12440. esac
  12441. ;;
  12442. *)
  12443. ;;
  12444. esac
  12445. ;;
  12446. interix*)
  12447. # This is c89, which is MS Visual C++ (no shared libs)
  12448. # Anyone wants to do a port?
  12449. ;;
  12450. irix5* | irix6* | nonstopux*)
  12451. case $cc_basename in
  12452. CC*)
  12453. lt_prog_compiler_wl_CXX='-Wl,'
  12454. lt_prog_compiler_static_CXX='-non_shared'
  12455. # CC pic flag -KPIC is the default.
  12456. ;;
  12457. *)
  12458. ;;
  12459. esac
  12460. ;;
  12461. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12462. case $cc_basename in
  12463. KCC*)
  12464. # KAI C++ Compiler
  12465. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12466. lt_prog_compiler_pic_CXX='-fPIC'
  12467. ;;
  12468. ecpc* )
  12469. # old Intel C++ for x86_64 which still supported -KPIC.
  12470. lt_prog_compiler_wl_CXX='-Wl,'
  12471. lt_prog_compiler_pic_CXX='-KPIC'
  12472. lt_prog_compiler_static_CXX='-static'
  12473. ;;
  12474. icpc* )
  12475. # Intel C++, used to be incompatible with GCC.
  12476. # ICC 10 doesn't accept -KPIC any more.
  12477. lt_prog_compiler_wl_CXX='-Wl,'
  12478. lt_prog_compiler_pic_CXX='-fPIC'
  12479. lt_prog_compiler_static_CXX='-static'
  12480. ;;
  12481. pgCC* | pgcpp*)
  12482. # Portland Group C++ compiler
  12483. lt_prog_compiler_wl_CXX='-Wl,'
  12484. lt_prog_compiler_pic_CXX='-fpic'
  12485. lt_prog_compiler_static_CXX='-Bstatic'
  12486. ;;
  12487. cxx*)
  12488. # Compaq C++
  12489. # Make sure the PIC flag is empty. It appears that all Alpha
  12490. # Linux and Compaq Tru64 Unix objects are PIC.
  12491. lt_prog_compiler_pic_CXX=
  12492. lt_prog_compiler_static_CXX='-non_shared'
  12493. ;;
  12494. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12495. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12496. lt_prog_compiler_wl_CXX='-Wl,'
  12497. lt_prog_compiler_pic_CXX='-qpic'
  12498. lt_prog_compiler_static_CXX='-qstaticlink'
  12499. ;;
  12500. *)
  12501. case `$CC -V 2>&1 | sed 5q` in
  12502. *Sun\ C*)
  12503. # Sun C++ 5.9
  12504. lt_prog_compiler_pic_CXX='-KPIC'
  12505. lt_prog_compiler_static_CXX='-Bstatic'
  12506. lt_prog_compiler_wl_CXX='-Qoption ld '
  12507. ;;
  12508. esac
  12509. ;;
  12510. esac
  12511. ;;
  12512. lynxos*)
  12513. ;;
  12514. m88k*)
  12515. ;;
  12516. mvs*)
  12517. case $cc_basename in
  12518. cxx*)
  12519. lt_prog_compiler_pic_CXX='-W c,exportall'
  12520. ;;
  12521. *)
  12522. ;;
  12523. esac
  12524. ;;
  12525. netbsd*)
  12526. ;;
  12527. *qnx* | *nto*)
  12528. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12529. # it will coredump.
  12530. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12531. ;;
  12532. osf3* | osf4* | osf5*)
  12533. case $cc_basename in
  12534. KCC*)
  12535. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12536. ;;
  12537. RCC*)
  12538. # Rational C++ 2.4.1
  12539. lt_prog_compiler_pic_CXX='-pic'
  12540. ;;
  12541. cxx*)
  12542. # Digital/Compaq C++
  12543. lt_prog_compiler_wl_CXX='-Wl,'
  12544. # Make sure the PIC flag is empty. It appears that all Alpha
  12545. # Linux and Compaq Tru64 Unix objects are PIC.
  12546. lt_prog_compiler_pic_CXX=
  12547. lt_prog_compiler_static_CXX='-non_shared'
  12548. ;;
  12549. *)
  12550. ;;
  12551. esac
  12552. ;;
  12553. psos*)
  12554. ;;
  12555. solaris*)
  12556. case $cc_basename in
  12557. CC* | sunCC*)
  12558. # Sun C++ 4.2, 5.x and Centerline C++
  12559. lt_prog_compiler_pic_CXX='-KPIC'
  12560. lt_prog_compiler_static_CXX='-Bstatic'
  12561. lt_prog_compiler_wl_CXX='-Qoption ld '
  12562. ;;
  12563. gcx*)
  12564. # Green Hills C++ Compiler
  12565. lt_prog_compiler_pic_CXX='-PIC'
  12566. ;;
  12567. *)
  12568. ;;
  12569. esac
  12570. ;;
  12571. sunos4*)
  12572. case $cc_basename in
  12573. CC*)
  12574. # Sun C++ 4.x
  12575. lt_prog_compiler_pic_CXX='-pic'
  12576. lt_prog_compiler_static_CXX='-Bstatic'
  12577. ;;
  12578. lcc*)
  12579. # Lucid
  12580. lt_prog_compiler_pic_CXX='-pic'
  12581. ;;
  12582. *)
  12583. ;;
  12584. esac
  12585. ;;
  12586. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12587. case $cc_basename in
  12588. CC*)
  12589. lt_prog_compiler_wl_CXX='-Wl,'
  12590. lt_prog_compiler_pic_CXX='-KPIC'
  12591. lt_prog_compiler_static_CXX='-Bstatic'
  12592. ;;
  12593. esac
  12594. ;;
  12595. tandem*)
  12596. case $cc_basename in
  12597. NCC*)
  12598. # NonStop-UX NCC 3.20
  12599. lt_prog_compiler_pic_CXX='-KPIC'
  12600. ;;
  12601. *)
  12602. ;;
  12603. esac
  12604. ;;
  12605. vxworks*)
  12606. ;;
  12607. *)
  12608. lt_prog_compiler_can_build_shared_CXX=no
  12609. ;;
  12610. esac
  12611. fi
  12612. case $host_os in
  12613. # For platforms which do not support PIC, -DPIC is meaningless:
  12614. *djgpp*)
  12615. lt_prog_compiler_pic_CXX=
  12616. ;;
  12617. *)
  12618. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12619. ;;
  12620. esac
  12621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12622. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12623. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12624. $as_echo_n "(cached) " >&6
  12625. else
  12626. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12627. fi
  12628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12629. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12630. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12631. #
  12632. # Check to make sure the PIC flag actually works.
  12633. #
  12634. if test -n "$lt_prog_compiler_pic_CXX"; then
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12636. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12637. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12638. $as_echo_n "(cached) " >&6
  12639. else
  12640. lt_cv_prog_compiler_pic_works_CXX=no
  12641. ac_outfile=conftest.$ac_objext
  12642. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12643. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12644. # Insert the option either (1) after the last *FLAGS variable, or
  12645. # (2) before a word containing "conftest.", or (3) at the end.
  12646. # Note that $ac_compile itself does not contain backslashes and begins
  12647. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12648. # The option is referenced via a variable to avoid confusing sed.
  12649. lt_compile=`echo "$ac_compile" | $SED \
  12650. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12651. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12652. -e 's:$: $lt_compiler_flag:'`
  12653. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12654. (eval "$lt_compile" 2>conftest.err)
  12655. ac_status=$?
  12656. cat conftest.err >&5
  12657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12658. if (exit $ac_status) && test -s "$ac_outfile"; then
  12659. # The compiler can only warn and ignore the option if not recognized
  12660. # So say no if there are warnings other than the usual output.
  12661. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12662. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12663. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12664. lt_cv_prog_compiler_pic_works_CXX=yes
  12665. fi
  12666. fi
  12667. $RM conftest*
  12668. fi
  12669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12670. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12671. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12672. case $lt_prog_compiler_pic_CXX in
  12673. "" | " "*) ;;
  12674. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12675. esac
  12676. else
  12677. lt_prog_compiler_pic_CXX=
  12678. lt_prog_compiler_can_build_shared_CXX=no
  12679. fi
  12680. fi
  12681. #
  12682. # Check to make sure the static flag actually works.
  12683. #
  12684. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12686. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12687. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12688. $as_echo_n "(cached) " >&6
  12689. else
  12690. lt_cv_prog_compiler_static_works_CXX=no
  12691. save_LDFLAGS="$LDFLAGS"
  12692. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12693. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12694. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12695. # The linker can only warn and ignore the option if not recognized
  12696. # So say no if there are warnings
  12697. if test -s conftest.err; then
  12698. # Append any errors to the config.log.
  12699. cat conftest.err 1>&5
  12700. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12701. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12702. if diff conftest.exp conftest.er2 >/dev/null; then
  12703. lt_cv_prog_compiler_static_works_CXX=yes
  12704. fi
  12705. else
  12706. lt_cv_prog_compiler_static_works_CXX=yes
  12707. fi
  12708. fi
  12709. $RM -r conftest*
  12710. LDFLAGS="$save_LDFLAGS"
  12711. fi
  12712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12713. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12714. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12715. :
  12716. else
  12717. lt_prog_compiler_static_CXX=
  12718. fi
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12720. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12721. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12722. $as_echo_n "(cached) " >&6
  12723. else
  12724. lt_cv_prog_compiler_c_o_CXX=no
  12725. $RM -r conftest 2>/dev/null
  12726. mkdir conftest
  12727. cd conftest
  12728. mkdir out
  12729. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12730. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12731. # Insert the option either (1) after the last *FLAGS variable, or
  12732. # (2) before a word containing "conftest.", or (3) at the end.
  12733. # Note that $ac_compile itself does not contain backslashes and begins
  12734. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12735. lt_compile=`echo "$ac_compile" | $SED \
  12736. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12737. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12738. -e 's:$: $lt_compiler_flag:'`
  12739. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12740. (eval "$lt_compile" 2>out/conftest.err)
  12741. ac_status=$?
  12742. cat out/conftest.err >&5
  12743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12744. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12745. then
  12746. # The compiler can only warn and ignore the option if not recognized
  12747. # So say no if there are warnings
  12748. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12749. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12750. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12751. lt_cv_prog_compiler_c_o_CXX=yes
  12752. fi
  12753. fi
  12754. chmod u+w . 2>&5
  12755. $RM conftest*
  12756. # SGI C++ compiler will create directory out/ii_files/ for
  12757. # template instantiation
  12758. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12759. $RM out/* && rmdir out
  12760. cd ..
  12761. $RM -r conftest
  12762. $RM conftest*
  12763. fi
  12764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12765. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12767. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12768. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12769. $as_echo_n "(cached) " >&6
  12770. else
  12771. lt_cv_prog_compiler_c_o_CXX=no
  12772. $RM -r conftest 2>/dev/null
  12773. mkdir conftest
  12774. cd conftest
  12775. mkdir out
  12776. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12777. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12778. # Insert the option either (1) after the last *FLAGS variable, or
  12779. # (2) before a word containing "conftest.", or (3) at the end.
  12780. # Note that $ac_compile itself does not contain backslashes and begins
  12781. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12782. lt_compile=`echo "$ac_compile" | $SED \
  12783. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12784. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12785. -e 's:$: $lt_compiler_flag:'`
  12786. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12787. (eval "$lt_compile" 2>out/conftest.err)
  12788. ac_status=$?
  12789. cat out/conftest.err >&5
  12790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12791. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12792. then
  12793. # The compiler can only warn and ignore the option if not recognized
  12794. # So say no if there are warnings
  12795. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12796. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12797. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12798. lt_cv_prog_compiler_c_o_CXX=yes
  12799. fi
  12800. fi
  12801. chmod u+w . 2>&5
  12802. $RM conftest*
  12803. # SGI C++ compiler will create directory out/ii_files/ for
  12804. # template instantiation
  12805. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12806. $RM out/* && rmdir out
  12807. cd ..
  12808. $RM -r conftest
  12809. $RM conftest*
  12810. fi
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12812. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12813. hard_links="nottested"
  12814. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12815. # do not overwrite the value of need_locks provided by the user
  12816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12817. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12818. hard_links=yes
  12819. $RM conftest*
  12820. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12821. touch conftest.a
  12822. ln conftest.a conftest.b 2>&5 || hard_links=no
  12823. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12825. $as_echo "$hard_links" >&6; }
  12826. if test "$hard_links" = no; then
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12828. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12829. need_locks=warn
  12830. fi
  12831. else
  12832. need_locks=no
  12833. fi
  12834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12835. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12836. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12837. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12838. case $host_os in
  12839. aix[4-9]*)
  12840. # If we're using GNU nm, then we don't want the "-C" option.
  12841. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12842. # Also, AIX nm treats weak defined symbols like other global defined
  12843. # symbols, whereas GNU nm marks them as "W".
  12844. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12845. 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'
  12846. else
  12847. 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'
  12848. fi
  12849. ;;
  12850. pw32*)
  12851. export_symbols_cmds_CXX="$ltdll_cmds"
  12852. ;;
  12853. cygwin* | mingw* | cegcc*)
  12854. case $cc_basename in
  12855. cl*)
  12856. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12857. ;;
  12858. *)
  12859. 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'
  12860. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12861. ;;
  12862. esac
  12863. ;;
  12864. *)
  12865. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12866. ;;
  12867. esac
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12869. $as_echo "$ld_shlibs_CXX" >&6; }
  12870. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12871. with_gnu_ld_CXX=$with_gnu_ld
  12872. #
  12873. # Do we need to explicitly link libc?
  12874. #
  12875. case "x$archive_cmds_need_lc_CXX" in
  12876. x|xyes)
  12877. # Assume -lc should be added
  12878. archive_cmds_need_lc_CXX=yes
  12879. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12880. case $archive_cmds_CXX in
  12881. *'~'*)
  12882. # FIXME: we may have to deal with multi-command sequences.
  12883. ;;
  12884. '$CC '*)
  12885. # Test whether the compiler implicitly links with -lc since on some
  12886. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12887. # to ld, don't add -lc before -lgcc.
  12888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12889. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12890. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12891. $as_echo_n "(cached) " >&6
  12892. else
  12893. $RM conftest*
  12894. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12895. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12896. (eval $ac_compile) 2>&5
  12897. ac_status=$?
  12898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12899. test $ac_status = 0; } 2>conftest.err; then
  12900. soname=conftest
  12901. lib=conftest
  12902. libobjs=conftest.$ac_objext
  12903. deplibs=
  12904. wl=$lt_prog_compiler_wl_CXX
  12905. pic_flag=$lt_prog_compiler_pic_CXX
  12906. compiler_flags=-v
  12907. linker_flags=-v
  12908. verstring=
  12909. output_objdir=.
  12910. libname=conftest
  12911. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12912. allow_undefined_flag_CXX=
  12913. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12914. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12915. ac_status=$?
  12916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12917. test $ac_status = 0; }
  12918. then
  12919. lt_cv_archive_cmds_need_lc_CXX=no
  12920. else
  12921. lt_cv_archive_cmds_need_lc_CXX=yes
  12922. fi
  12923. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12924. else
  12925. cat conftest.err 1>&5
  12926. fi
  12927. $RM conftest*
  12928. fi
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12930. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12931. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12932. ;;
  12933. esac
  12934. fi
  12935. ;;
  12936. esac
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12938. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12939. library_names_spec=
  12940. libname_spec='lib$name'
  12941. soname_spec=
  12942. shrext_cmds=".so"
  12943. postinstall_cmds=
  12944. postuninstall_cmds=
  12945. finish_cmds=
  12946. finish_eval=
  12947. shlibpath_var=
  12948. shlibpath_overrides_runpath=unknown
  12949. version_type=none
  12950. dynamic_linker="$host_os ld.so"
  12951. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12952. need_lib_prefix=unknown
  12953. hardcode_into_libs=no
  12954. # when you set need_version to no, make sure it does not cause -set_version
  12955. # flags to be left without arguments
  12956. need_version=unknown
  12957. case $host_os in
  12958. aix3*)
  12959. version_type=linux # correct to gnu/linux during the next big refactor
  12960. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12961. shlibpath_var=LIBPATH
  12962. # AIX 3 has no versioning support, so we append a major version to the name.
  12963. soname_spec='${libname}${release}${shared_ext}$major'
  12964. ;;
  12965. aix[4-9]*)
  12966. version_type=linux # correct to gnu/linux during the next big refactor
  12967. need_lib_prefix=no
  12968. need_version=no
  12969. hardcode_into_libs=yes
  12970. if test "$host_cpu" = ia64; then
  12971. # AIX 5 supports IA64
  12972. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12973. shlibpath_var=LD_LIBRARY_PATH
  12974. else
  12975. # With GCC up to 2.95.x, collect2 would create an import file
  12976. # for dependence libraries. The import file would start with
  12977. # the line `#! .'. This would cause the generated library to
  12978. # depend on `.', always an invalid library. This was fixed in
  12979. # development snapshots of GCC prior to 3.0.
  12980. case $host_os in
  12981. aix4 | aix4.[01] | aix4.[01].*)
  12982. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12983. echo ' yes '
  12984. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12985. :
  12986. else
  12987. can_build_shared=no
  12988. fi
  12989. ;;
  12990. esac
  12991. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12992. # soname into executable. Probably we can add versioning support to
  12993. # collect2, so additional links can be useful in future.
  12994. if test "$aix_use_runtimelinking" = yes; then
  12995. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12996. # instead of lib<name>.a to let people know that these are not
  12997. # typical AIX shared libraries.
  12998. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12999. else
  13000. # We preserve .a as extension for shared libraries through AIX4.2
  13001. # and later when we are not doing run time linking.
  13002. library_names_spec='${libname}${release}.a $libname.a'
  13003. soname_spec='${libname}${release}${shared_ext}$major'
  13004. fi
  13005. shlibpath_var=LIBPATH
  13006. fi
  13007. ;;
  13008. amigaos*)
  13009. case $host_cpu in
  13010. powerpc)
  13011. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13012. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13014. ;;
  13015. m68k)
  13016. library_names_spec='$libname.ixlibrary $libname.a'
  13017. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13018. 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'
  13019. ;;
  13020. esac
  13021. ;;
  13022. beos*)
  13023. library_names_spec='${libname}${shared_ext}'
  13024. dynamic_linker="$host_os ld.so"
  13025. shlibpath_var=LIBRARY_PATH
  13026. ;;
  13027. bsdi[45]*)
  13028. version_type=linux # correct to gnu/linux during the next big refactor
  13029. need_version=no
  13030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13031. soname_spec='${libname}${release}${shared_ext}$major'
  13032. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13033. shlibpath_var=LD_LIBRARY_PATH
  13034. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13035. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13036. # the default ld.so.conf also contains /usr/contrib/lib and
  13037. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13038. # libtool to hard-code these into programs
  13039. ;;
  13040. cygwin* | mingw* | pw32* | cegcc*)
  13041. version_type=windows
  13042. shrext_cmds=".dll"
  13043. need_version=no
  13044. need_lib_prefix=no
  13045. case $GCC,$cc_basename in
  13046. yes,*)
  13047. # gcc
  13048. library_names_spec='$libname.dll.a'
  13049. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13050. postinstall_cmds='base_file=`basename \${file}`~
  13051. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13052. dldir=$destdir/`dirname \$dlpath`~
  13053. test -d \$dldir || mkdir -p \$dldir~
  13054. $install_prog $dir/$dlname \$dldir/$dlname~
  13055. chmod a+x \$dldir/$dlname~
  13056. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13057. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13058. fi'
  13059. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13060. dlpath=$dir/\$dldll~
  13061. $RM \$dlpath'
  13062. shlibpath_overrides_runpath=yes
  13063. case $host_os in
  13064. cygwin*)
  13065. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13066. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13067. ;;
  13068. mingw* | cegcc*)
  13069. # MinGW DLLs use traditional 'lib' prefix
  13070. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13071. ;;
  13072. pw32*)
  13073. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13074. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13075. ;;
  13076. esac
  13077. dynamic_linker='Win32 ld.exe'
  13078. ;;
  13079. *,cl*)
  13080. # Native MSVC
  13081. libname_spec='$name'
  13082. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13083. library_names_spec='${libname}.dll.lib'
  13084. case $build_os in
  13085. mingw*)
  13086. sys_lib_search_path_spec=
  13087. lt_save_ifs=$IFS
  13088. IFS=';'
  13089. for lt_path in $LIB
  13090. do
  13091. IFS=$lt_save_ifs
  13092. # Let DOS variable expansion print the short 8.3 style file name.
  13093. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13094. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13095. done
  13096. IFS=$lt_save_ifs
  13097. # Convert to MSYS style.
  13098. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13099. ;;
  13100. cygwin*)
  13101. # Convert to unix form, then to dos form, then back to unix form
  13102. # but this time dos style (no spaces!) so that the unix form looks
  13103. # like /cygdrive/c/PROGRA~1:/cygdr...
  13104. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13105. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13106. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13107. ;;
  13108. *)
  13109. sys_lib_search_path_spec="$LIB"
  13110. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13111. # It is most probably a Windows format PATH.
  13112. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13113. else
  13114. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13115. fi
  13116. # FIXME: find the short name or the path components, as spaces are
  13117. # common. (e.g. "Program Files" -> "PROGRA~1")
  13118. ;;
  13119. esac
  13120. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13121. postinstall_cmds='base_file=`basename \${file}`~
  13122. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13123. dldir=$destdir/`dirname \$dlpath`~
  13124. test -d \$dldir || mkdir -p \$dldir~
  13125. $install_prog $dir/$dlname \$dldir/$dlname'
  13126. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13127. dlpath=$dir/\$dldll~
  13128. $RM \$dlpath'
  13129. shlibpath_overrides_runpath=yes
  13130. dynamic_linker='Win32 link.exe'
  13131. ;;
  13132. *)
  13133. # Assume MSVC wrapper
  13134. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13135. dynamic_linker='Win32 ld.exe'
  13136. ;;
  13137. esac
  13138. # FIXME: first we should search . and the directory the executable is in
  13139. shlibpath_var=PATH
  13140. ;;
  13141. darwin* | rhapsody*)
  13142. dynamic_linker="$host_os dyld"
  13143. version_type=darwin
  13144. need_lib_prefix=no
  13145. need_version=no
  13146. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13147. soname_spec='${libname}${release}${major}$shared_ext'
  13148. shlibpath_overrides_runpath=yes
  13149. shlibpath_var=DYLD_LIBRARY_PATH
  13150. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13151. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13152. ;;
  13153. dgux*)
  13154. version_type=linux # correct to gnu/linux during the next big refactor
  13155. need_lib_prefix=no
  13156. need_version=no
  13157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13158. soname_spec='${libname}${release}${shared_ext}$major'
  13159. shlibpath_var=LD_LIBRARY_PATH
  13160. ;;
  13161. freebsd* | dragonfly*)
  13162. # DragonFly does not have aout. When/if they implement a new
  13163. # versioning mechanism, adjust this.
  13164. if test -x /usr/bin/objformat; then
  13165. objformat=`/usr/bin/objformat`
  13166. else
  13167. case $host_os in
  13168. freebsd[23].*) objformat=aout ;;
  13169. *) objformat=elf ;;
  13170. esac
  13171. fi
  13172. version_type=freebsd-$objformat
  13173. case $version_type in
  13174. freebsd-elf*)
  13175. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13176. need_version=no
  13177. need_lib_prefix=no
  13178. ;;
  13179. freebsd-*)
  13180. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13181. need_version=yes
  13182. ;;
  13183. esac
  13184. shlibpath_var=LD_LIBRARY_PATH
  13185. case $host_os in
  13186. freebsd2.*)
  13187. shlibpath_overrides_runpath=yes
  13188. ;;
  13189. freebsd3.[01]* | freebsdelf3.[01]*)
  13190. shlibpath_overrides_runpath=yes
  13191. hardcode_into_libs=yes
  13192. ;;
  13193. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13194. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13195. shlibpath_overrides_runpath=no
  13196. hardcode_into_libs=yes
  13197. ;;
  13198. *) # from 4.6 on, and DragonFly
  13199. shlibpath_overrides_runpath=yes
  13200. hardcode_into_libs=yes
  13201. ;;
  13202. esac
  13203. ;;
  13204. gnu*)
  13205. version_type=linux # correct to gnu/linux during the next big refactor
  13206. need_lib_prefix=no
  13207. need_version=no
  13208. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13209. soname_spec='${libname}${release}${shared_ext}$major'
  13210. shlibpath_var=LD_LIBRARY_PATH
  13211. shlibpath_overrides_runpath=no
  13212. hardcode_into_libs=yes
  13213. ;;
  13214. haiku*)
  13215. version_type=linux # correct to gnu/linux during the next big refactor
  13216. need_lib_prefix=no
  13217. need_version=no
  13218. dynamic_linker="$host_os runtime_loader"
  13219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13220. soname_spec='${libname}${release}${shared_ext}$major'
  13221. shlibpath_var=LIBRARY_PATH
  13222. shlibpath_overrides_runpath=yes
  13223. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13224. hardcode_into_libs=yes
  13225. ;;
  13226. hpux9* | hpux10* | hpux11*)
  13227. # Give a soname corresponding to the major version so that dld.sl refuses to
  13228. # link against other versions.
  13229. version_type=sunos
  13230. need_lib_prefix=no
  13231. need_version=no
  13232. case $host_cpu in
  13233. ia64*)
  13234. shrext_cmds='.so'
  13235. hardcode_into_libs=yes
  13236. dynamic_linker="$host_os dld.so"
  13237. shlibpath_var=LD_LIBRARY_PATH
  13238. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13240. soname_spec='${libname}${release}${shared_ext}$major'
  13241. if test "X$HPUX_IA64_MODE" = X32; then
  13242. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13243. else
  13244. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13245. fi
  13246. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13247. ;;
  13248. hppa*64*)
  13249. shrext_cmds='.sl'
  13250. hardcode_into_libs=yes
  13251. dynamic_linker="$host_os dld.sl"
  13252. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13253. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13255. soname_spec='${libname}${release}${shared_ext}$major'
  13256. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13257. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13258. ;;
  13259. *)
  13260. shrext_cmds='.sl'
  13261. dynamic_linker="$host_os dld.sl"
  13262. shlibpath_var=SHLIB_PATH
  13263. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13265. soname_spec='${libname}${release}${shared_ext}$major'
  13266. ;;
  13267. esac
  13268. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13269. postinstall_cmds='chmod 555 $lib'
  13270. # or fails outright, so override atomically:
  13271. install_override_mode=555
  13272. ;;
  13273. interix[3-9]*)
  13274. version_type=linux # correct to gnu/linux during the next big refactor
  13275. need_lib_prefix=no
  13276. need_version=no
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13280. shlibpath_var=LD_LIBRARY_PATH
  13281. shlibpath_overrides_runpath=no
  13282. hardcode_into_libs=yes
  13283. ;;
  13284. irix5* | irix6* | nonstopux*)
  13285. case $host_os in
  13286. nonstopux*) version_type=nonstopux ;;
  13287. *)
  13288. if test "$lt_cv_prog_gnu_ld" = yes; then
  13289. version_type=linux # correct to gnu/linux during the next big refactor
  13290. else
  13291. version_type=irix
  13292. fi ;;
  13293. esac
  13294. need_lib_prefix=no
  13295. need_version=no
  13296. soname_spec='${libname}${release}${shared_ext}$major'
  13297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13298. case $host_os in
  13299. irix5* | nonstopux*)
  13300. libsuff= shlibsuff=
  13301. ;;
  13302. *)
  13303. case $LD in # libtool.m4 will add one of these switches to LD
  13304. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13305. libsuff= shlibsuff= libmagic=32-bit;;
  13306. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13307. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13308. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13309. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13310. *) libsuff= shlibsuff= libmagic=never-match;;
  13311. esac
  13312. ;;
  13313. esac
  13314. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13315. shlibpath_overrides_runpath=no
  13316. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13317. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13318. hardcode_into_libs=yes
  13319. ;;
  13320. # No shared lib support for Linux oldld, aout, or coff.
  13321. linux*oldld* | linux*aout* | linux*coff*)
  13322. dynamic_linker=no
  13323. ;;
  13324. # This must be glibc/ELF.
  13325. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13326. version_type=linux # correct to gnu/linux during the next big refactor
  13327. need_lib_prefix=no
  13328. need_version=no
  13329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13330. soname_spec='${libname}${release}${shared_ext}$major'
  13331. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13332. shlibpath_var=LD_LIBRARY_PATH
  13333. shlibpath_overrides_runpath=no
  13334. # Some binutils ld are patched to set DT_RUNPATH
  13335. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13336. $as_echo_n "(cached) " >&6
  13337. else
  13338. lt_cv_shlibpath_overrides_runpath=no
  13339. save_LDFLAGS=$LDFLAGS
  13340. save_libdir=$libdir
  13341. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13342. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13344. /* end confdefs.h. */
  13345. int
  13346. main ()
  13347. {
  13348. ;
  13349. return 0;
  13350. }
  13351. _ACEOF
  13352. if ac_fn_cxx_try_link "$LINENO"; then :
  13353. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13354. lt_cv_shlibpath_overrides_runpath=yes
  13355. fi
  13356. fi
  13357. rm -f core conftest.err conftest.$ac_objext \
  13358. conftest$ac_exeext conftest.$ac_ext
  13359. LDFLAGS=$save_LDFLAGS
  13360. libdir=$save_libdir
  13361. fi
  13362. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13363. # This implies no fast_install, which is unacceptable.
  13364. # Some rework will be needed to allow for fast_install
  13365. # before this can be enabled.
  13366. hardcode_into_libs=yes
  13367. # Add ABI-specific directories to the system library path.
  13368. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13369. # Append ld.so.conf contents to the search path
  13370. if test -f /etc/ld.so.conf; then
  13371. 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' ' '`
  13372. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13373. fi
  13374. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13375. # powerpc, because MkLinux only supported shared libraries with the
  13376. # GNU dynamic linker. Since this was broken with cross compilers,
  13377. # most powerpc-linux boxes support dynamic linking these days and
  13378. # people can always --disable-shared, the test was removed, and we
  13379. # assume the GNU/Linux dynamic linker is in use.
  13380. dynamic_linker='GNU/Linux ld.so'
  13381. ;;
  13382. netbsd*)
  13383. version_type=sunos
  13384. need_lib_prefix=no
  13385. need_version=no
  13386. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13388. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13389. dynamic_linker='NetBSD (a.out) ld.so'
  13390. else
  13391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13392. soname_spec='${libname}${release}${shared_ext}$major'
  13393. dynamic_linker='NetBSD ld.elf_so'
  13394. fi
  13395. shlibpath_var=LD_LIBRARY_PATH
  13396. shlibpath_overrides_runpath=yes
  13397. hardcode_into_libs=yes
  13398. ;;
  13399. newsos6)
  13400. version_type=linux # correct to gnu/linux during the next big refactor
  13401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13402. shlibpath_var=LD_LIBRARY_PATH
  13403. shlibpath_overrides_runpath=yes
  13404. ;;
  13405. *nto* | *qnx*)
  13406. version_type=qnx
  13407. need_lib_prefix=no
  13408. need_version=no
  13409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13410. soname_spec='${libname}${release}${shared_ext}$major'
  13411. shlibpath_var=LD_LIBRARY_PATH
  13412. shlibpath_overrides_runpath=no
  13413. hardcode_into_libs=yes
  13414. dynamic_linker='ldqnx.so'
  13415. ;;
  13416. openbsd*)
  13417. version_type=sunos
  13418. sys_lib_dlsearch_path_spec="/usr/lib"
  13419. need_lib_prefix=no
  13420. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13421. case $host_os in
  13422. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13423. *) need_version=no ;;
  13424. esac
  13425. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13426. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13427. shlibpath_var=LD_LIBRARY_PATH
  13428. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13429. case $host_os in
  13430. openbsd2.[89] | openbsd2.[89].*)
  13431. shlibpath_overrides_runpath=no
  13432. ;;
  13433. *)
  13434. shlibpath_overrides_runpath=yes
  13435. ;;
  13436. esac
  13437. else
  13438. shlibpath_overrides_runpath=yes
  13439. fi
  13440. ;;
  13441. os2*)
  13442. libname_spec='$name'
  13443. shrext_cmds=".dll"
  13444. need_lib_prefix=no
  13445. library_names_spec='$libname${shared_ext} $libname.a'
  13446. dynamic_linker='OS/2 ld.exe'
  13447. shlibpath_var=LIBPATH
  13448. ;;
  13449. osf3* | osf4* | osf5*)
  13450. version_type=osf
  13451. need_lib_prefix=no
  13452. need_version=no
  13453. soname_spec='${libname}${release}${shared_ext}$major'
  13454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13455. shlibpath_var=LD_LIBRARY_PATH
  13456. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13457. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13458. ;;
  13459. rdos*)
  13460. dynamic_linker=no
  13461. ;;
  13462. solaris*)
  13463. version_type=linux # correct to gnu/linux during the next big refactor
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13467. soname_spec='${libname}${release}${shared_ext}$major'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. shlibpath_overrides_runpath=yes
  13470. hardcode_into_libs=yes
  13471. # ldd complains unless libraries are executable
  13472. postinstall_cmds='chmod +x $lib'
  13473. ;;
  13474. sunos4*)
  13475. version_type=sunos
  13476. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13477. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13478. shlibpath_var=LD_LIBRARY_PATH
  13479. shlibpath_overrides_runpath=yes
  13480. if test "$with_gnu_ld" = yes; then
  13481. need_lib_prefix=no
  13482. fi
  13483. need_version=yes
  13484. ;;
  13485. sysv4 | sysv4.3*)
  13486. version_type=linux # correct to gnu/linux during the next big refactor
  13487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13488. soname_spec='${libname}${release}${shared_ext}$major'
  13489. shlibpath_var=LD_LIBRARY_PATH
  13490. case $host_vendor in
  13491. sni)
  13492. shlibpath_overrides_runpath=no
  13493. need_lib_prefix=no
  13494. runpath_var=LD_RUN_PATH
  13495. ;;
  13496. siemens)
  13497. need_lib_prefix=no
  13498. ;;
  13499. motorola)
  13500. need_lib_prefix=no
  13501. need_version=no
  13502. shlibpath_overrides_runpath=no
  13503. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13504. ;;
  13505. esac
  13506. ;;
  13507. sysv4*MP*)
  13508. if test -d /usr/nec ;then
  13509. version_type=linux # correct to gnu/linux during the next big refactor
  13510. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13511. soname_spec='$libname${shared_ext}.$major'
  13512. shlibpath_var=LD_LIBRARY_PATH
  13513. fi
  13514. ;;
  13515. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13516. version_type=freebsd-elf
  13517. need_lib_prefix=no
  13518. need_version=no
  13519. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13520. soname_spec='${libname}${release}${shared_ext}$major'
  13521. shlibpath_var=LD_LIBRARY_PATH
  13522. shlibpath_overrides_runpath=yes
  13523. hardcode_into_libs=yes
  13524. if test "$with_gnu_ld" = yes; then
  13525. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13526. else
  13527. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13528. case $host_os in
  13529. sco3.2v5*)
  13530. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13531. ;;
  13532. esac
  13533. fi
  13534. sys_lib_dlsearch_path_spec='/usr/lib'
  13535. ;;
  13536. tpf*)
  13537. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13538. version_type=linux # correct to gnu/linux during the next big refactor
  13539. need_lib_prefix=no
  13540. need_version=no
  13541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13542. shlibpath_var=LD_LIBRARY_PATH
  13543. shlibpath_overrides_runpath=no
  13544. hardcode_into_libs=yes
  13545. ;;
  13546. uts4*)
  13547. version_type=linux # correct to gnu/linux during the next big refactor
  13548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13549. soname_spec='${libname}${release}${shared_ext}$major'
  13550. shlibpath_var=LD_LIBRARY_PATH
  13551. ;;
  13552. *)
  13553. dynamic_linker=no
  13554. ;;
  13555. esac
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13557. $as_echo "$dynamic_linker" >&6; }
  13558. test "$dynamic_linker" = no && can_build_shared=no
  13559. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13560. if test "$GCC" = yes; then
  13561. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13562. fi
  13563. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13564. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13565. fi
  13566. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13567. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13568. fi
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13570. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13571. hardcode_action_CXX=
  13572. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13573. test -n "$runpath_var_CXX" ||
  13574. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13575. # We can hardcode non-existent directories.
  13576. if test "$hardcode_direct_CXX" != no &&
  13577. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13578. # have to relink, otherwise we might link with an installed library
  13579. # when we should be linking with a yet-to-be-installed one
  13580. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13581. test "$hardcode_minus_L_CXX" != no; then
  13582. # Linking always hardcodes the temporary library directory.
  13583. hardcode_action_CXX=relink
  13584. else
  13585. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13586. hardcode_action_CXX=immediate
  13587. fi
  13588. else
  13589. # We cannot hardcode anything, or else we can only hardcode existing
  13590. # directories.
  13591. hardcode_action_CXX=unsupported
  13592. fi
  13593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13594. $as_echo "$hardcode_action_CXX" >&6; }
  13595. if test "$hardcode_action_CXX" = relink ||
  13596. test "$inherit_rpath_CXX" = yes; then
  13597. # Fast installation is not supported
  13598. enable_fast_install=no
  13599. elif test "$shlibpath_overrides_runpath" = yes ||
  13600. test "$enable_shared" = no; then
  13601. # Fast installation is not necessary
  13602. enable_fast_install=needless
  13603. fi
  13604. fi # test -n "$compiler"
  13605. CC=$lt_save_CC
  13606. CFLAGS=$lt_save_CFLAGS
  13607. LDCXX=$LD
  13608. LD=$lt_save_LD
  13609. GCC=$lt_save_GCC
  13610. with_gnu_ld=$lt_save_with_gnu_ld
  13611. lt_cv_path_LDCXX=$lt_cv_path_LD
  13612. lt_cv_path_LD=$lt_save_path_LD
  13613. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13614. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13615. fi # test "$_lt_caught_CXX_error" != yes
  13616. ac_ext=c
  13617. ac_cpp='$CPP $CPPFLAGS'
  13618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13621. ac_config_commands="$ac_config_commands libtool"
  13622. # Only expand once:
  13623. # Checks for header files.
  13624. ac_header_dirent=no
  13625. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13626. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13628. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13629. if eval \${$as_ac_Header+:} false; then :
  13630. $as_echo_n "(cached) " >&6
  13631. else
  13632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13633. /* end confdefs.h. */
  13634. #include <sys/types.h>
  13635. #include <$ac_hdr>
  13636. int
  13637. main ()
  13638. {
  13639. if ((DIR *) 0)
  13640. return 0;
  13641. ;
  13642. return 0;
  13643. }
  13644. _ACEOF
  13645. if ac_fn_c_try_compile "$LINENO"; then :
  13646. eval "$as_ac_Header=yes"
  13647. else
  13648. eval "$as_ac_Header=no"
  13649. fi
  13650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13651. fi
  13652. eval ac_res=\$$as_ac_Header
  13653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13654. $as_echo "$ac_res" >&6; }
  13655. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13656. cat >>confdefs.h <<_ACEOF
  13657. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13658. _ACEOF
  13659. ac_header_dirent=$ac_hdr; break
  13660. fi
  13661. done
  13662. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13663. if test $ac_header_dirent = dirent.h; then
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13665. $as_echo_n "checking for library containing opendir... " >&6; }
  13666. if ${ac_cv_search_opendir+:} false; then :
  13667. $as_echo_n "(cached) " >&6
  13668. else
  13669. ac_func_search_save_LIBS=$LIBS
  13670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13671. /* end confdefs.h. */
  13672. /* Override any GCC internal prototype to avoid an error.
  13673. Use char because int might match the return type of a GCC
  13674. builtin and then its argument prototype would still apply. */
  13675. #ifdef __cplusplus
  13676. extern "C"
  13677. #endif
  13678. char opendir ();
  13679. int
  13680. main ()
  13681. {
  13682. return opendir ();
  13683. ;
  13684. return 0;
  13685. }
  13686. _ACEOF
  13687. for ac_lib in '' dir; do
  13688. if test -z "$ac_lib"; then
  13689. ac_res="none required"
  13690. else
  13691. ac_res=-l$ac_lib
  13692. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13693. fi
  13694. if ac_fn_c_try_link "$LINENO"; then :
  13695. ac_cv_search_opendir=$ac_res
  13696. fi
  13697. rm -f core conftest.err conftest.$ac_objext \
  13698. conftest$ac_exeext
  13699. if ${ac_cv_search_opendir+:} false; then :
  13700. break
  13701. fi
  13702. done
  13703. if ${ac_cv_search_opendir+:} false; then :
  13704. else
  13705. ac_cv_search_opendir=no
  13706. fi
  13707. rm conftest.$ac_ext
  13708. LIBS=$ac_func_search_save_LIBS
  13709. fi
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13711. $as_echo "$ac_cv_search_opendir" >&6; }
  13712. ac_res=$ac_cv_search_opendir
  13713. if test "$ac_res" != no; then :
  13714. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13715. fi
  13716. else
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13718. $as_echo_n "checking for library containing opendir... " >&6; }
  13719. if ${ac_cv_search_opendir+:} false; then :
  13720. $as_echo_n "(cached) " >&6
  13721. else
  13722. ac_func_search_save_LIBS=$LIBS
  13723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13724. /* end confdefs.h. */
  13725. /* Override any GCC internal prototype to avoid an error.
  13726. Use char because int might match the return type of a GCC
  13727. builtin and then its argument prototype would still apply. */
  13728. #ifdef __cplusplus
  13729. extern "C"
  13730. #endif
  13731. char opendir ();
  13732. int
  13733. main ()
  13734. {
  13735. return opendir ();
  13736. ;
  13737. return 0;
  13738. }
  13739. _ACEOF
  13740. for ac_lib in '' x; do
  13741. if test -z "$ac_lib"; then
  13742. ac_res="none required"
  13743. else
  13744. ac_res=-l$ac_lib
  13745. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13746. fi
  13747. if ac_fn_c_try_link "$LINENO"; then :
  13748. ac_cv_search_opendir=$ac_res
  13749. fi
  13750. rm -f core conftest.err conftest.$ac_objext \
  13751. conftest$ac_exeext
  13752. if ${ac_cv_search_opendir+:} false; then :
  13753. break
  13754. fi
  13755. done
  13756. if ${ac_cv_search_opendir+:} false; then :
  13757. else
  13758. ac_cv_search_opendir=no
  13759. fi
  13760. rm conftest.$ac_ext
  13761. LIBS=$ac_func_search_save_LIBS
  13762. fi
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13764. $as_echo "$ac_cv_search_opendir" >&6; }
  13765. ac_res=$ac_cv_search_opendir
  13766. if test "$ac_res" != no; then :
  13767. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13768. fi
  13769. fi
  13770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13771. $as_echo_n "checking for ANSI C header files... " >&6; }
  13772. if ${ac_cv_header_stdc+:} false; then :
  13773. $as_echo_n "(cached) " >&6
  13774. else
  13775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13776. /* end confdefs.h. */
  13777. #include <stdlib.h>
  13778. #include <stdarg.h>
  13779. #include <string.h>
  13780. #include <float.h>
  13781. int
  13782. main ()
  13783. {
  13784. ;
  13785. return 0;
  13786. }
  13787. _ACEOF
  13788. if ac_fn_c_try_compile "$LINENO"; then :
  13789. ac_cv_header_stdc=yes
  13790. else
  13791. ac_cv_header_stdc=no
  13792. fi
  13793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13794. if test $ac_cv_header_stdc = yes; then
  13795. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13797. /* end confdefs.h. */
  13798. #include <string.h>
  13799. _ACEOF
  13800. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13801. $EGREP "memchr" >/dev/null 2>&1; then :
  13802. else
  13803. ac_cv_header_stdc=no
  13804. fi
  13805. rm -f conftest*
  13806. fi
  13807. if test $ac_cv_header_stdc = yes; then
  13808. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13810. /* end confdefs.h. */
  13811. #include <stdlib.h>
  13812. _ACEOF
  13813. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13814. $EGREP "free" >/dev/null 2>&1; then :
  13815. else
  13816. ac_cv_header_stdc=no
  13817. fi
  13818. rm -f conftest*
  13819. fi
  13820. if test $ac_cv_header_stdc = yes; then
  13821. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13822. if test "$cross_compiling" = yes; then :
  13823. :
  13824. else
  13825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13826. /* end confdefs.h. */
  13827. #include <ctype.h>
  13828. #include <stdlib.h>
  13829. #if ((' ' & 0x0FF) == 0x020)
  13830. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13831. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13832. #else
  13833. # define ISLOWER(c) \
  13834. (('a' <= (c) && (c) <= 'i') \
  13835. || ('j' <= (c) && (c) <= 'r') \
  13836. || ('s' <= (c) && (c) <= 'z'))
  13837. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13838. #endif
  13839. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13840. int
  13841. main ()
  13842. {
  13843. int i;
  13844. for (i = 0; i < 256; i++)
  13845. if (XOR (islower (i), ISLOWER (i))
  13846. || toupper (i) != TOUPPER (i))
  13847. return 2;
  13848. return 0;
  13849. }
  13850. _ACEOF
  13851. if ac_fn_c_try_run "$LINENO"; then :
  13852. else
  13853. ac_cv_header_stdc=no
  13854. fi
  13855. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13856. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13857. fi
  13858. fi
  13859. fi
  13860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13861. $as_echo "$ac_cv_header_stdc" >&6; }
  13862. if test $ac_cv_header_stdc = yes; then
  13863. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13864. fi
  13865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13866. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13867. if ${ac_cv_header_sys_wait_h+:} false; then :
  13868. $as_echo_n "(cached) " >&6
  13869. else
  13870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13871. /* end confdefs.h. */
  13872. #include <sys/types.h>
  13873. #include <sys/wait.h>
  13874. #ifndef WEXITSTATUS
  13875. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13876. #endif
  13877. #ifndef WIFEXITED
  13878. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13879. #endif
  13880. int
  13881. main ()
  13882. {
  13883. int s;
  13884. wait (&s);
  13885. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13886. ;
  13887. return 0;
  13888. }
  13889. _ACEOF
  13890. if ac_fn_c_try_compile "$LINENO"; then :
  13891. ac_cv_header_sys_wait_h=yes
  13892. else
  13893. ac_cv_header_sys_wait_h=no
  13894. fi
  13895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13896. fi
  13897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13898. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13899. if test $ac_cv_header_sys_wait_h = yes; then
  13900. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13901. fi
  13902. 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
  13903. do :
  13904. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13905. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13906. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13907. cat >>confdefs.h <<_ACEOF
  13908. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13909. _ACEOF
  13910. fi
  13911. done
  13912. # Checks for typedefs, structures, and compiler characteristics.
  13913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13914. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13915. if ${ac_cv_header_stat_broken+:} false; then :
  13916. $as_echo_n "(cached) " >&6
  13917. else
  13918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13919. /* end confdefs.h. */
  13920. #include <sys/types.h>
  13921. #include <sys/stat.h>
  13922. #if defined S_ISBLK && defined S_IFDIR
  13923. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13924. #endif
  13925. #if defined S_ISBLK && defined S_IFCHR
  13926. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13927. #endif
  13928. #if defined S_ISLNK && defined S_IFREG
  13929. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13930. #endif
  13931. #if defined S_ISSOCK && defined S_IFREG
  13932. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13933. #endif
  13934. _ACEOF
  13935. if ac_fn_c_try_compile "$LINENO"; then :
  13936. ac_cv_header_stat_broken=no
  13937. else
  13938. ac_cv_header_stat_broken=yes
  13939. fi
  13940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13941. fi
  13942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13943. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13944. if test $ac_cv_header_stat_broken = yes; then
  13945. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13946. fi
  13947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13948. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13949. if ${ac_cv_c_const+:} false; then :
  13950. $as_echo_n "(cached) " >&6
  13951. else
  13952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13953. /* end confdefs.h. */
  13954. int
  13955. main ()
  13956. {
  13957. #ifndef __cplusplus
  13958. /* Ultrix mips cc rejects this sort of thing. */
  13959. typedef int charset[2];
  13960. const charset cs = { 0, 0 };
  13961. /* SunOS 4.1.1 cc rejects this. */
  13962. char const *const *pcpcc;
  13963. char **ppc;
  13964. /* NEC SVR4.0.2 mips cc rejects this. */
  13965. struct point {int x, y;};
  13966. static struct point const zero = {0,0};
  13967. /* AIX XL C 1.02.0.0 rejects this.
  13968. It does not let you subtract one const X* pointer from another in
  13969. an arm of an if-expression whose if-part is not a constant
  13970. expression */
  13971. const char *g = "string";
  13972. pcpcc = &g + (g ? g-g : 0);
  13973. /* HPUX 7.0 cc rejects these. */
  13974. ++pcpcc;
  13975. ppc = (char**) pcpcc;
  13976. pcpcc = (char const *const *) ppc;
  13977. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13978. char tx;
  13979. char *t = &tx;
  13980. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13981. *t++ = 0;
  13982. if (s) return 0;
  13983. }
  13984. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13985. int x[] = {25, 17};
  13986. const int *foo = &x[0];
  13987. ++foo;
  13988. }
  13989. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13990. typedef const int *iptr;
  13991. iptr p = 0;
  13992. ++p;
  13993. }
  13994. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13995. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13996. struct s { int j; const int *ap[3]; } bx;
  13997. struct s *b = &bx; b->j = 5;
  13998. }
  13999. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14000. const int foo = 10;
  14001. if (!foo) return 0;
  14002. }
  14003. return !cs[0] && !zero.x;
  14004. #endif
  14005. ;
  14006. return 0;
  14007. }
  14008. _ACEOF
  14009. if ac_fn_c_try_compile "$LINENO"; then :
  14010. ac_cv_c_const=yes
  14011. else
  14012. ac_cv_c_const=no
  14013. fi
  14014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14015. fi
  14016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14017. $as_echo "$ac_cv_c_const" >&6; }
  14018. if test $ac_cv_c_const = no; then
  14019. $as_echo "#define const /**/" >>confdefs.h
  14020. fi
  14021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14022. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14023. if ${ac_cv_header_stdbool_h+:} false; then :
  14024. $as_echo_n "(cached) " >&6
  14025. else
  14026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14027. /* end confdefs.h. */
  14028. #include <stdbool.h>
  14029. #ifndef bool
  14030. "error: bool is not defined"
  14031. #endif
  14032. #ifndef false
  14033. "error: false is not defined"
  14034. #endif
  14035. #if false
  14036. "error: false is not 0"
  14037. #endif
  14038. #ifndef true
  14039. "error: true is not defined"
  14040. #endif
  14041. #if true != 1
  14042. "error: true is not 1"
  14043. #endif
  14044. #ifndef __bool_true_false_are_defined
  14045. "error: __bool_true_false_are_defined is not defined"
  14046. #endif
  14047. struct s { _Bool s: 1; _Bool t; } s;
  14048. char a[true == 1 ? 1 : -1];
  14049. char b[false == 0 ? 1 : -1];
  14050. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14051. char d[(bool) 0.5 == true ? 1 : -1];
  14052. /* See body of main program for 'e'. */
  14053. char f[(_Bool) 0.0 == false ? 1 : -1];
  14054. char g[true];
  14055. char h[sizeof (_Bool)];
  14056. char i[sizeof s.t];
  14057. enum { j = false, k = true, l = false * true, m = true * 256 };
  14058. /* The following fails for
  14059. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14060. _Bool n[m];
  14061. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14062. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14063. /* Catch a bug in an HP-UX C compiler. See
  14064. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14065. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14066. */
  14067. _Bool q = true;
  14068. _Bool *pq = &q;
  14069. int
  14070. main ()
  14071. {
  14072. bool e = &s;
  14073. *pq |= q;
  14074. *pq |= ! q;
  14075. /* Refer to every declared value, to avoid compiler optimizations. */
  14076. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14077. + !m + !n + !o + !p + !q + !pq);
  14078. ;
  14079. return 0;
  14080. }
  14081. _ACEOF
  14082. if ac_fn_c_try_compile "$LINENO"; then :
  14083. ac_cv_header_stdbool_h=yes
  14084. else
  14085. ac_cv_header_stdbool_h=no
  14086. fi
  14087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14088. fi
  14089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14090. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14091. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14092. if test "x$ac_cv_type__Bool" = xyes; then :
  14093. cat >>confdefs.h <<_ACEOF
  14094. #define HAVE__BOOL 1
  14095. _ACEOF
  14096. fi
  14097. if test $ac_cv_header_stdbool_h = yes; then
  14098. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14099. fi
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14101. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14102. if ${ac_cv_type_uid_t+:} false; then :
  14103. $as_echo_n "(cached) " >&6
  14104. else
  14105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14106. /* end confdefs.h. */
  14107. #include <sys/types.h>
  14108. _ACEOF
  14109. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14110. $EGREP "uid_t" >/dev/null 2>&1; then :
  14111. ac_cv_type_uid_t=yes
  14112. else
  14113. ac_cv_type_uid_t=no
  14114. fi
  14115. rm -f conftest*
  14116. fi
  14117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14118. $as_echo "$ac_cv_type_uid_t" >&6; }
  14119. if test $ac_cv_type_uid_t = no; then
  14120. $as_echo "#define uid_t int" >>confdefs.h
  14121. $as_echo "#define gid_t int" >>confdefs.h
  14122. fi
  14123. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  14124. if test "x$ac_cv_type_pid_t" = xyes; then :
  14125. else
  14126. cat >>confdefs.h <<_ACEOF
  14127. #define pid_t int
  14128. _ACEOF
  14129. fi
  14130. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14131. if test "x$ac_cv_type_size_t" = xyes; then :
  14132. else
  14133. cat >>confdefs.h <<_ACEOF
  14134. #define size_t unsigned int
  14135. _ACEOF
  14136. fi
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  14138. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14139. if ${ac_cv_header_time+:} false; then :
  14140. $as_echo_n "(cached) " >&6
  14141. else
  14142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14143. /* end confdefs.h. */
  14144. #include <sys/types.h>
  14145. #include <sys/time.h>
  14146. #include <time.h>
  14147. int
  14148. main ()
  14149. {
  14150. if ((struct tm *) 0)
  14151. return 0;
  14152. ;
  14153. return 0;
  14154. }
  14155. _ACEOF
  14156. if ac_fn_c_try_compile "$LINENO"; then :
  14157. ac_cv_header_time=yes
  14158. else
  14159. ac_cv_header_time=no
  14160. fi
  14161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14162. fi
  14163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14164. $as_echo "$ac_cv_header_time" >&6; }
  14165. if test $ac_cv_header_time = yes; then
  14166. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14167. fi
  14168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14169. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14170. if ${ac_cv_struct_tm+:} false; then :
  14171. $as_echo_n "(cached) " >&6
  14172. else
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. #include <sys/types.h>
  14176. #include <time.h>
  14177. int
  14178. main ()
  14179. {
  14180. struct tm tm;
  14181. int *p = &tm.tm_sec;
  14182. return !p;
  14183. ;
  14184. return 0;
  14185. }
  14186. _ACEOF
  14187. if ac_fn_c_try_compile "$LINENO"; then :
  14188. ac_cv_struct_tm=time.h
  14189. else
  14190. ac_cv_struct_tm=sys/time.h
  14191. fi
  14192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14193. fi
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14195. $as_echo "$ac_cv_struct_tm" >&6; }
  14196. if test $ac_cv_struct_tm = sys/time.h; then
  14197. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14198. fi
  14199. # Checks for library functions.
  14200. for ac_header in unistd.h
  14201. do :
  14202. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14203. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14204. cat >>confdefs.h <<_ACEOF
  14205. #define HAVE_UNISTD_H 1
  14206. _ACEOF
  14207. fi
  14208. done
  14209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14210. $as_echo_n "checking for working chown... " >&6; }
  14211. if ${ac_cv_func_chown_works+:} false; then :
  14212. $as_echo_n "(cached) " >&6
  14213. else
  14214. if test "$cross_compiling" = yes; then :
  14215. ac_cv_func_chown_works=no
  14216. else
  14217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14218. /* end confdefs.h. */
  14219. $ac_includes_default
  14220. #include <fcntl.h>
  14221. int
  14222. main ()
  14223. {
  14224. char *f = "conftest.chown";
  14225. struct stat before, after;
  14226. if (creat (f, 0600) < 0)
  14227. return 1;
  14228. if (stat (f, &before) < 0)
  14229. return 1;
  14230. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14231. return 1;
  14232. if (stat (f, &after) < 0)
  14233. return 1;
  14234. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14235. ;
  14236. return 0;
  14237. }
  14238. _ACEOF
  14239. if ac_fn_c_try_run "$LINENO"; then :
  14240. ac_cv_func_chown_works=yes
  14241. else
  14242. ac_cv_func_chown_works=no
  14243. fi
  14244. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14245. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14246. fi
  14247. rm -f conftest.chown
  14248. fi
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14250. $as_echo "$ac_cv_func_chown_works" >&6; }
  14251. if test $ac_cv_func_chown_works = yes; then
  14252. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14253. fi
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14255. $as_echo_n "checking whether closedir returns void... " >&6; }
  14256. if ${ac_cv_func_closedir_void+:} false; then :
  14257. $as_echo_n "(cached) " >&6
  14258. else
  14259. if test "$cross_compiling" = yes; then :
  14260. ac_cv_func_closedir_void=yes
  14261. else
  14262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14263. /* end confdefs.h. */
  14264. $ac_includes_default
  14265. #include <$ac_header_dirent>
  14266. #ifndef __cplusplus
  14267. int closedir ();
  14268. #endif
  14269. int
  14270. main ()
  14271. {
  14272. return closedir (opendir (".")) != 0;
  14273. ;
  14274. return 0;
  14275. }
  14276. _ACEOF
  14277. if ac_fn_c_try_run "$LINENO"; then :
  14278. ac_cv_func_closedir_void=no
  14279. else
  14280. ac_cv_func_closedir_void=yes
  14281. fi
  14282. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14283. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14284. fi
  14285. fi
  14286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14287. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14288. if test $ac_cv_func_closedir_void = yes; then
  14289. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14290. fi
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14292. $as_echo_n "checking for error_at_line... " >&6; }
  14293. if ${ac_cv_lib_error_at_line+:} false; then :
  14294. $as_echo_n "(cached) " >&6
  14295. else
  14296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14297. /* end confdefs.h. */
  14298. #include <error.h>
  14299. int
  14300. main ()
  14301. {
  14302. error_at_line (0, 0, "", 0, "an error occurred");
  14303. ;
  14304. return 0;
  14305. }
  14306. _ACEOF
  14307. if ac_fn_c_try_link "$LINENO"; then :
  14308. ac_cv_lib_error_at_line=yes
  14309. else
  14310. ac_cv_lib_error_at_line=no
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext \
  14313. conftest$ac_exeext conftest.$ac_ext
  14314. fi
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14316. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14317. if test $ac_cv_lib_error_at_line = no; then
  14318. case " $LIBOBJS " in
  14319. *" error.$ac_objext "* ) ;;
  14320. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14321. ;;
  14322. esac
  14323. fi
  14324. for ac_header in vfork.h
  14325. do :
  14326. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14327. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14328. cat >>confdefs.h <<_ACEOF
  14329. #define HAVE_VFORK_H 1
  14330. _ACEOF
  14331. fi
  14332. done
  14333. for ac_func in fork vfork
  14334. do :
  14335. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14336. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14337. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14338. cat >>confdefs.h <<_ACEOF
  14339. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14340. _ACEOF
  14341. fi
  14342. done
  14343. if test "x$ac_cv_func_fork" = xyes; then
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14345. $as_echo_n "checking for working fork... " >&6; }
  14346. if ${ac_cv_func_fork_works+:} false; then :
  14347. $as_echo_n "(cached) " >&6
  14348. else
  14349. if test "$cross_compiling" = yes; then :
  14350. ac_cv_func_fork_works=cross
  14351. else
  14352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14353. /* end confdefs.h. */
  14354. $ac_includes_default
  14355. int
  14356. main ()
  14357. {
  14358. /* By Ruediger Kuhlmann. */
  14359. return fork () < 0;
  14360. ;
  14361. return 0;
  14362. }
  14363. _ACEOF
  14364. if ac_fn_c_try_run "$LINENO"; then :
  14365. ac_cv_func_fork_works=yes
  14366. else
  14367. ac_cv_func_fork_works=no
  14368. fi
  14369. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14370. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14371. fi
  14372. fi
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14374. $as_echo "$ac_cv_func_fork_works" >&6; }
  14375. else
  14376. ac_cv_func_fork_works=$ac_cv_func_fork
  14377. fi
  14378. if test "x$ac_cv_func_fork_works" = xcross; then
  14379. case $host in
  14380. *-*-amigaos* | *-*-msdosdjgpp*)
  14381. # Override, as these systems have only a dummy fork() stub
  14382. ac_cv_func_fork_works=no
  14383. ;;
  14384. *)
  14385. ac_cv_func_fork_works=yes
  14386. ;;
  14387. esac
  14388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14389. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14390. fi
  14391. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14392. if test "x$ac_cv_func_vfork" = xyes; then
  14393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14394. $as_echo_n "checking for working vfork... " >&6; }
  14395. if ${ac_cv_func_vfork_works+:} false; then :
  14396. $as_echo_n "(cached) " >&6
  14397. else
  14398. if test "$cross_compiling" = yes; then :
  14399. ac_cv_func_vfork_works=cross
  14400. else
  14401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14402. /* end confdefs.h. */
  14403. /* Thanks to Paul Eggert for this test. */
  14404. $ac_includes_default
  14405. #include <sys/wait.h>
  14406. #ifdef HAVE_VFORK_H
  14407. # include <vfork.h>
  14408. #endif
  14409. /* On some sparc systems, changes by the child to local and incoming
  14410. argument registers are propagated back to the parent. The compiler
  14411. is told about this with #include <vfork.h>, but some compilers
  14412. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14413. static variable whose address is put into a register that is
  14414. clobbered by the vfork. */
  14415. static void
  14416. #ifdef __cplusplus
  14417. sparc_address_test (int arg)
  14418. # else
  14419. sparc_address_test (arg) int arg;
  14420. #endif
  14421. {
  14422. static pid_t child;
  14423. if (!child) {
  14424. child = vfork ();
  14425. if (child < 0) {
  14426. perror ("vfork");
  14427. _exit(2);
  14428. }
  14429. if (!child) {
  14430. arg = getpid();
  14431. write(-1, "", 0);
  14432. _exit (arg);
  14433. }
  14434. }
  14435. }
  14436. int
  14437. main ()
  14438. {
  14439. pid_t parent = getpid ();
  14440. pid_t child;
  14441. sparc_address_test (0);
  14442. child = vfork ();
  14443. if (child == 0) {
  14444. /* Here is another test for sparc vfork register problems. This
  14445. test uses lots of local variables, at least as many local
  14446. variables as main has allocated so far including compiler
  14447. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14448. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14449. reuse the register of parent for one of the local variables,
  14450. since it will think that parent can't possibly be used any more
  14451. in this routine. Assigning to the local variable will thus
  14452. munge parent in the parent process. */
  14453. pid_t
  14454. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14455. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14456. /* Convince the compiler that p..p7 are live; otherwise, it might
  14457. use the same hardware register for all 8 local variables. */
  14458. if (p != p1 || p != p2 || p != p3 || p != p4
  14459. || p != p5 || p != p6 || p != p7)
  14460. _exit(1);
  14461. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14462. from child file descriptors. If the child closes a descriptor
  14463. before it execs or exits, this munges the parent's descriptor
  14464. as well. Test for this by closing stdout in the child. */
  14465. _exit(close(fileno(stdout)) != 0);
  14466. } else {
  14467. int status;
  14468. struct stat st;
  14469. while (wait(&status) != child)
  14470. ;
  14471. return (
  14472. /* Was there some problem with vforking? */
  14473. child < 0
  14474. /* Did the child fail? (This shouldn't happen.) */
  14475. || status
  14476. /* Did the vfork/compiler bug occur? */
  14477. || parent != getpid()
  14478. /* Did the file descriptor bug occur? */
  14479. || fstat(fileno(stdout), &st) != 0
  14480. );
  14481. }
  14482. }
  14483. _ACEOF
  14484. if ac_fn_c_try_run "$LINENO"; then :
  14485. ac_cv_func_vfork_works=yes
  14486. else
  14487. ac_cv_func_vfork_works=no
  14488. fi
  14489. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14490. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14491. fi
  14492. fi
  14493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14494. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14495. fi;
  14496. if test "x$ac_cv_func_fork_works" = xcross; then
  14497. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14499. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14500. fi
  14501. if test "x$ac_cv_func_vfork_works" = xyes; then
  14502. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14503. else
  14504. $as_echo "#define vfork fork" >>confdefs.h
  14505. fi
  14506. if test "x$ac_cv_func_fork_works" = xyes; then
  14507. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14508. fi
  14509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14510. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14511. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14512. $as_echo_n "(cached) " >&6
  14513. else
  14514. rm -f conftest.sym conftest.file
  14515. echo >conftest.file
  14516. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14517. if test "$cross_compiling" = yes; then :
  14518. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14519. else
  14520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14521. /* end confdefs.h. */
  14522. $ac_includes_default
  14523. int
  14524. main ()
  14525. {
  14526. struct stat sbuf;
  14527. /* Linux will dereference the symlink and fail, as required by POSIX.
  14528. That is better in the sense that it means we will not
  14529. have to compile and use the lstat wrapper. */
  14530. return lstat ("conftest.sym/", &sbuf) == 0;
  14531. ;
  14532. return 0;
  14533. }
  14534. _ACEOF
  14535. if ac_fn_c_try_run "$LINENO"; then :
  14536. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14537. else
  14538. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14539. fi
  14540. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14541. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14542. fi
  14543. else
  14544. # If the `ln -s' command failed, then we probably don't even
  14545. # have an lstat function.
  14546. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14547. fi
  14548. rm -f conftest.sym conftest.file
  14549. fi
  14550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14551. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14552. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14553. cat >>confdefs.h <<_ACEOF
  14554. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14555. _ACEOF
  14556. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14557. case " $LIBOBJS " in
  14558. *" lstat.$ac_objext "* ) ;;
  14559. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14560. ;;
  14561. esac
  14562. fi
  14563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14564. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14565. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14566. $as_echo_n "(cached) " >&6
  14567. else
  14568. if test "$cross_compiling" = yes; then :
  14569. ac_cv_func_lstat_empty_string_bug=yes
  14570. else
  14571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14572. /* end confdefs.h. */
  14573. $ac_includes_default
  14574. int
  14575. main ()
  14576. {
  14577. struct stat sbuf;
  14578. return lstat ("", &sbuf) == 0;
  14579. ;
  14580. return 0;
  14581. }
  14582. _ACEOF
  14583. if ac_fn_c_try_run "$LINENO"; then :
  14584. ac_cv_func_lstat_empty_string_bug=no
  14585. else
  14586. ac_cv_func_lstat_empty_string_bug=yes
  14587. fi
  14588. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14589. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14590. fi
  14591. fi
  14592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14593. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14594. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14595. case " $LIBOBJS " in
  14596. *" lstat.$ac_objext "* ) ;;
  14597. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14598. ;;
  14599. esac
  14600. cat >>confdefs.h <<_ACEOF
  14601. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14602. _ACEOF
  14603. fi
  14604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14605. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14606. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14607. $as_echo_n "(cached) " >&6
  14608. else
  14609. rm -f conftest.sym conftest.file
  14610. echo >conftest.file
  14611. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14612. if test "$cross_compiling" = yes; then :
  14613. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14614. else
  14615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14616. /* end confdefs.h. */
  14617. $ac_includes_default
  14618. int
  14619. main ()
  14620. {
  14621. struct stat sbuf;
  14622. /* Linux will dereference the symlink and fail, as required by POSIX.
  14623. That is better in the sense that it means we will not
  14624. have to compile and use the lstat wrapper. */
  14625. return lstat ("conftest.sym/", &sbuf) == 0;
  14626. ;
  14627. return 0;
  14628. }
  14629. _ACEOF
  14630. if ac_fn_c_try_run "$LINENO"; then :
  14631. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14632. else
  14633. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14634. fi
  14635. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14636. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14637. fi
  14638. else
  14639. # If the `ln -s' command failed, then we probably don't even
  14640. # have an lstat function.
  14641. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14642. fi
  14643. rm -f conftest.sym conftest.file
  14644. fi
  14645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14646. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14647. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14648. cat >>confdefs.h <<_ACEOF
  14649. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14650. _ACEOF
  14651. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14652. case " $LIBOBJS " in
  14653. *" lstat.$ac_objext "* ) ;;
  14654. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14655. ;;
  14656. esac
  14657. fi
  14658. for ac_header in stdlib.h
  14659. do :
  14660. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14661. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14662. cat >>confdefs.h <<_ACEOF
  14663. #define HAVE_STDLIB_H 1
  14664. _ACEOF
  14665. fi
  14666. done
  14667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14668. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14669. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14670. $as_echo_n "(cached) " >&6
  14671. else
  14672. if test "$cross_compiling" = yes; then :
  14673. ac_cv_func_malloc_0_nonnull=no
  14674. else
  14675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14676. /* end confdefs.h. */
  14677. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14678. # include <stdlib.h>
  14679. #else
  14680. char *malloc ();
  14681. #endif
  14682. int
  14683. main ()
  14684. {
  14685. return ! malloc (0);
  14686. ;
  14687. return 0;
  14688. }
  14689. _ACEOF
  14690. if ac_fn_c_try_run "$LINENO"; then :
  14691. ac_cv_func_malloc_0_nonnull=yes
  14692. else
  14693. ac_cv_func_malloc_0_nonnull=no
  14694. fi
  14695. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14696. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14697. fi
  14698. fi
  14699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14700. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14701. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14702. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14703. else
  14704. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14705. case " $LIBOBJS " in
  14706. *" malloc.$ac_objext "* ) ;;
  14707. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14708. ;;
  14709. esac
  14710. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14711. fi
  14712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14713. $as_echo_n "checking for working memcmp... " >&6; }
  14714. if ${ac_cv_func_memcmp_working+:} false; then :
  14715. $as_echo_n "(cached) " >&6
  14716. else
  14717. if test "$cross_compiling" = yes; then :
  14718. ac_cv_func_memcmp_working=no
  14719. else
  14720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14721. /* end confdefs.h. */
  14722. $ac_includes_default
  14723. int
  14724. main ()
  14725. {
  14726. /* Some versions of memcmp are not 8-bit clean. */
  14727. char c0 = '\100', c1 = '\200', c2 = '\201';
  14728. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14729. return 1;
  14730. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14731. or more and with at least one buffer not starting on a 4-byte boundary.
  14732. William Lewis provided this test program. */
  14733. {
  14734. char foo[21];
  14735. char bar[21];
  14736. int i;
  14737. for (i = 0; i < 4; i++)
  14738. {
  14739. char *a = foo + i;
  14740. char *b = bar + i;
  14741. strcpy (a, "--------01111111");
  14742. strcpy (b, "--------10000000");
  14743. if (memcmp (a, b, 16) >= 0)
  14744. return 1;
  14745. }
  14746. return 0;
  14747. }
  14748. ;
  14749. return 0;
  14750. }
  14751. _ACEOF
  14752. if ac_fn_c_try_run "$LINENO"; then :
  14753. ac_cv_func_memcmp_working=yes
  14754. else
  14755. ac_cv_func_memcmp_working=no
  14756. fi
  14757. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14758. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14759. fi
  14760. fi
  14761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14762. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14763. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14764. *" memcmp.$ac_objext "* ) ;;
  14765. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14766. ;;
  14767. esac
  14768. for ac_header in $ac_header_list
  14769. do :
  14770. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14771. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14772. "
  14773. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14774. cat >>confdefs.h <<_ACEOF
  14775. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14776. _ACEOF
  14777. fi
  14778. done
  14779. for ac_func in getpagesize
  14780. do :
  14781. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14782. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14783. cat >>confdefs.h <<_ACEOF
  14784. #define HAVE_GETPAGESIZE 1
  14785. _ACEOF
  14786. fi
  14787. done
  14788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14789. $as_echo_n "checking for working mmap... " >&6; }
  14790. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14791. $as_echo_n "(cached) " >&6
  14792. else
  14793. if test "$cross_compiling" = yes; then :
  14794. ac_cv_func_mmap_fixed_mapped=no
  14795. else
  14796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14797. /* end confdefs.h. */
  14798. $ac_includes_default
  14799. /* malloc might have been renamed as rpl_malloc. */
  14800. #undef malloc
  14801. /* Thanks to Mike Haertel and Jim Avera for this test.
  14802. Here is a matrix of mmap possibilities:
  14803. mmap private not fixed
  14804. mmap private fixed at somewhere currently unmapped
  14805. mmap private fixed at somewhere already mapped
  14806. mmap shared not fixed
  14807. mmap shared fixed at somewhere currently unmapped
  14808. mmap shared fixed at somewhere already mapped
  14809. For private mappings, we should verify that changes cannot be read()
  14810. back from the file, nor mmap's back from the file at a different
  14811. address. (There have been systems where private was not correctly
  14812. implemented like the infamous i386 svr4.0, and systems where the
  14813. VM page cache was not coherent with the file system buffer cache
  14814. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14815. For shared mappings, we should conversely verify that changes get
  14816. propagated back to all the places they're supposed to be.
  14817. Grep wants private fixed already mapped.
  14818. The main things grep needs to know about mmap are:
  14819. * does it exist and is it safe to write into the mmap'd area
  14820. * how to use it (BSD variants) */
  14821. #include <fcntl.h>
  14822. #include <sys/mman.h>
  14823. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14824. char *malloc ();
  14825. #endif
  14826. /* This mess was copied from the GNU getpagesize.h. */
  14827. #ifndef HAVE_GETPAGESIZE
  14828. # ifdef _SC_PAGESIZE
  14829. # define getpagesize() sysconf(_SC_PAGESIZE)
  14830. # else /* no _SC_PAGESIZE */
  14831. # ifdef HAVE_SYS_PARAM_H
  14832. # include <sys/param.h>
  14833. # ifdef EXEC_PAGESIZE
  14834. # define getpagesize() EXEC_PAGESIZE
  14835. # else /* no EXEC_PAGESIZE */
  14836. # ifdef NBPG
  14837. # define getpagesize() NBPG * CLSIZE
  14838. # ifndef CLSIZE
  14839. # define CLSIZE 1
  14840. # endif /* no CLSIZE */
  14841. # else /* no NBPG */
  14842. # ifdef NBPC
  14843. # define getpagesize() NBPC
  14844. # else /* no NBPC */
  14845. # ifdef PAGESIZE
  14846. # define getpagesize() PAGESIZE
  14847. # endif /* PAGESIZE */
  14848. # endif /* no NBPC */
  14849. # endif /* no NBPG */
  14850. # endif /* no EXEC_PAGESIZE */
  14851. # else /* no HAVE_SYS_PARAM_H */
  14852. # define getpagesize() 8192 /* punt totally */
  14853. # endif /* no HAVE_SYS_PARAM_H */
  14854. # endif /* no _SC_PAGESIZE */
  14855. #endif /* no HAVE_GETPAGESIZE */
  14856. int
  14857. main ()
  14858. {
  14859. char *data, *data2, *data3;
  14860. const char *cdata2;
  14861. int i, pagesize;
  14862. int fd, fd2;
  14863. pagesize = getpagesize ();
  14864. /* First, make a file with some known garbage in it. */
  14865. data = (char *) malloc (pagesize);
  14866. if (!data)
  14867. return 1;
  14868. for (i = 0; i < pagesize; ++i)
  14869. *(data + i) = rand ();
  14870. umask (0);
  14871. fd = creat ("conftest.mmap", 0600);
  14872. if (fd < 0)
  14873. return 2;
  14874. if (write (fd, data, pagesize) != pagesize)
  14875. return 3;
  14876. close (fd);
  14877. /* Next, check that the tail of a page is zero-filled. File must have
  14878. non-zero length, otherwise we risk SIGBUS for entire page. */
  14879. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14880. if (fd2 < 0)
  14881. return 4;
  14882. cdata2 = "";
  14883. if (write (fd2, cdata2, 1) != 1)
  14884. return 5;
  14885. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14886. if (data2 == MAP_FAILED)
  14887. return 6;
  14888. for (i = 0; i < pagesize; ++i)
  14889. if (*(data2 + i))
  14890. return 7;
  14891. close (fd2);
  14892. if (munmap (data2, pagesize))
  14893. return 8;
  14894. /* Next, try to mmap the file at a fixed address which already has
  14895. something else allocated at it. If we can, also make sure that
  14896. we see the same garbage. */
  14897. fd = open ("conftest.mmap", O_RDWR);
  14898. if (fd < 0)
  14899. return 9;
  14900. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14901. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14902. return 10;
  14903. for (i = 0; i < pagesize; ++i)
  14904. if (*(data + i) != *(data2 + i))
  14905. return 11;
  14906. /* Finally, make sure that changes to the mapped area do not
  14907. percolate back to the file as seen by read(). (This is a bug on
  14908. some variants of i386 svr4.0.) */
  14909. for (i = 0; i < pagesize; ++i)
  14910. *(data2 + i) = *(data2 + i) + 1;
  14911. data3 = (char *) malloc (pagesize);
  14912. if (!data3)
  14913. return 12;
  14914. if (read (fd, data3, pagesize) != pagesize)
  14915. return 13;
  14916. for (i = 0; i < pagesize; ++i)
  14917. if (*(data + i) != *(data3 + i))
  14918. return 14;
  14919. close (fd);
  14920. return 0;
  14921. }
  14922. _ACEOF
  14923. if ac_fn_c_try_run "$LINENO"; then :
  14924. ac_cv_func_mmap_fixed_mapped=yes
  14925. else
  14926. ac_cv_func_mmap_fixed_mapped=no
  14927. fi
  14928. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14929. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14930. fi
  14931. fi
  14932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14933. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14934. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14935. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14936. fi
  14937. rm -f conftest.mmap conftest.txt
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14939. $as_echo_n "checking return type of signal handlers... " >&6; }
  14940. if ${ac_cv_type_signal+:} false; then :
  14941. $as_echo_n "(cached) " >&6
  14942. else
  14943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14944. /* end confdefs.h. */
  14945. #include <sys/types.h>
  14946. #include <signal.h>
  14947. int
  14948. main ()
  14949. {
  14950. return *(signal (0, 0)) (0) == 1;
  14951. ;
  14952. return 0;
  14953. }
  14954. _ACEOF
  14955. if ac_fn_c_try_compile "$LINENO"; then :
  14956. ac_cv_type_signal=int
  14957. else
  14958. ac_cv_type_signal=void
  14959. fi
  14960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14961. fi
  14962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14963. $as_echo "$ac_cv_type_signal" >&6; }
  14964. cat >>confdefs.h <<_ACEOF
  14965. #define RETSIGTYPE $ac_cv_type_signal
  14966. _ACEOF
  14967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14968. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14969. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  14970. $as_echo_n "(cached) " >&6
  14971. else
  14972. if test "$cross_compiling" = yes; then :
  14973. ac_cv_func_stat_empty_string_bug=yes
  14974. else
  14975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14976. /* end confdefs.h. */
  14977. $ac_includes_default
  14978. int
  14979. main ()
  14980. {
  14981. struct stat sbuf;
  14982. return stat ("", &sbuf) == 0;
  14983. ;
  14984. return 0;
  14985. }
  14986. _ACEOF
  14987. if ac_fn_c_try_run "$LINENO"; then :
  14988. ac_cv_func_stat_empty_string_bug=no
  14989. else
  14990. ac_cv_func_stat_empty_string_bug=yes
  14991. fi
  14992. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14993. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14994. fi
  14995. fi
  14996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  14997. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  14998. if test $ac_cv_func_stat_empty_string_bug = yes; then
  14999. case " $LIBOBJS " in
  15000. *" stat.$ac_objext "* ) ;;
  15001. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15002. ;;
  15003. esac
  15004. cat >>confdefs.h <<_ACEOF
  15005. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15006. _ACEOF
  15007. fi
  15008. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  15009. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  15010. ac_have_decl=1
  15011. else
  15012. ac_have_decl=0
  15013. fi
  15014. cat >>confdefs.h <<_ACEOF
  15015. #define HAVE_DECL_STRERROR_R $ac_have_decl
  15016. _ACEOF
  15017. for ac_func in strerror_r
  15018. do :
  15019. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  15020. if test "x$ac_cv_func_strerror_r" = xyes; then :
  15021. cat >>confdefs.h <<_ACEOF
  15022. #define HAVE_STRERROR_R 1
  15023. _ACEOF
  15024. fi
  15025. done
  15026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  15027. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  15028. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  15029. $as_echo_n "(cached) " >&6
  15030. else
  15031. ac_cv_func_strerror_r_char_p=no
  15032. if test $ac_cv_have_decl_strerror_r = yes; then
  15033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15034. /* end confdefs.h. */
  15035. $ac_includes_default
  15036. int
  15037. main ()
  15038. {
  15039. char buf[100];
  15040. char x = *strerror_r (0, buf, sizeof buf);
  15041. char *p = strerror_r (0, buf, sizeof buf);
  15042. return !p || x;
  15043. ;
  15044. return 0;
  15045. }
  15046. _ACEOF
  15047. if ac_fn_c_try_compile "$LINENO"; then :
  15048. ac_cv_func_strerror_r_char_p=yes
  15049. fi
  15050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15051. else
  15052. # strerror_r is not declared. Choose between
  15053. # systems that have relatively inaccessible declarations for the
  15054. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  15055. # former has a strerror_r that returns char*, while the latter
  15056. # has a strerror_r that returns `int'.
  15057. # This test should segfault on the DEC system.
  15058. if test "$cross_compiling" = yes; then :
  15059. :
  15060. else
  15061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15062. /* end confdefs.h. */
  15063. $ac_includes_default
  15064. extern char *strerror_r ();
  15065. int
  15066. main ()
  15067. {
  15068. char buf[100];
  15069. char x = *strerror_r (0, buf, sizeof buf);
  15070. return ! isalpha (x);
  15071. ;
  15072. return 0;
  15073. }
  15074. _ACEOF
  15075. if ac_fn_c_try_run "$LINENO"; then :
  15076. ac_cv_func_strerror_r_char_p=yes
  15077. fi
  15078. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15079. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15080. fi
  15081. fi
  15082. fi
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  15084. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  15085. if test $ac_cv_func_strerror_r_char_p = yes; then
  15086. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  15087. fi
  15088. for ac_func in strftime
  15089. do :
  15090. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15091. if test "x$ac_cv_func_strftime" = xyes; then :
  15092. cat >>confdefs.h <<_ACEOF
  15093. #define HAVE_STRFTIME 1
  15094. _ACEOF
  15095. else
  15096. # strftime is in -lintl on SCO UNIX.
  15097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15098. $as_echo_n "checking for strftime in -lintl... " >&6; }
  15099. if ${ac_cv_lib_intl_strftime+:} false; then :
  15100. $as_echo_n "(cached) " >&6
  15101. else
  15102. ac_check_lib_save_LIBS=$LIBS
  15103. LIBS="-lintl $LIBS"
  15104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15105. /* end confdefs.h. */
  15106. /* Override any GCC internal prototype to avoid an error.
  15107. Use char because int might match the return type of a GCC
  15108. builtin and then its argument prototype would still apply. */
  15109. #ifdef __cplusplus
  15110. extern "C"
  15111. #endif
  15112. char strftime ();
  15113. int
  15114. main ()
  15115. {
  15116. return strftime ();
  15117. ;
  15118. return 0;
  15119. }
  15120. _ACEOF
  15121. if ac_fn_c_try_link "$LINENO"; then :
  15122. ac_cv_lib_intl_strftime=yes
  15123. else
  15124. ac_cv_lib_intl_strftime=no
  15125. fi
  15126. rm -f core conftest.err conftest.$ac_objext \
  15127. conftest$ac_exeext conftest.$ac_ext
  15128. LIBS=$ac_check_lib_save_LIBS
  15129. fi
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15131. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  15132. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  15133. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  15134. LIBS="-lintl $LIBS"
  15135. fi
  15136. fi
  15137. done
  15138. for ac_func in vprintf
  15139. do :
  15140. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  15141. if test "x$ac_cv_func_vprintf" = xyes; then :
  15142. cat >>confdefs.h <<_ACEOF
  15143. #define HAVE_VPRINTF 1
  15144. _ACEOF
  15145. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15146. if test "x$ac_cv_func__doprnt" = xyes; then :
  15147. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15148. fi
  15149. fi
  15150. done
  15151. 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
  15152. do :
  15153. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15154. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15155. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15156. cat >>confdefs.h <<_ACEOF
  15157. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15158. _ACEOF
  15159. fi
  15160. done
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15162. $as_echo_n "checking for --enable-debug... " >&6; }
  15163. # Check whether --enable-debug was given.
  15164. if test "${enable_debug+set}" = set; then :
  15165. enableval=$enable_debug;
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15167. $as_echo "yes" >&6; }
  15168. debug_defs="-DDEBUG -DMCC_DEBUG"
  15169. else
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15171. $as_echo "no" >&6; }
  15172. debug_defs=""
  15173. fi
  15174. # Used for legacy style packaging where we bundle all of the dependencies.
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15176. $as_echo_n "checking for --enable-bundle... " >&6; }
  15177. # Check whether --enable-bundle was given.
  15178. if test "${enable_bundle+set}" = set; then :
  15179. enableval=$enable_bundle;
  15180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15181. $as_echo "yes" >&6; }
  15182. bundle="1";
  15183. else
  15184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15185. $as_echo "no" >&6; }
  15186. bundle="";
  15187. fi
  15188. if test "$bundle" = "1"; then
  15189. BUNDLE_TRUE=
  15190. BUNDLE_FALSE='#'
  15191. else
  15192. BUNDLE_TRUE='#'
  15193. BUNDLE_FALSE=
  15194. fi
  15195. # these enables are for optional or experimental features
  15196. if test -z "$enable_pam_passthru" ; then
  15197. enable_pam_passthru=yes # if not set on cmdline, set default
  15198. fi
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15200. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15201. # Check whether --enable-pam-passthru was given.
  15202. if test "${enable_pam_passthru+set}" = set; then :
  15203. enableval=$enable_pam_passthru;
  15204. fi
  15205. if test "$enable_pam_passthru" = yes ; then
  15206. # check for pam header file used by plugins/pass_passthru/pam_ptimpl.c
  15207. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  15208. if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
  15209. else
  15210. as_fn_error $? "Missing header file security/pam_appl.h" "$LINENO" 5
  15211. fi
  15212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15213. $as_echo "yes" >&6; }
  15214. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15215. else
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15217. $as_echo "no" >&6; }
  15218. fi
  15219. if test "$enable_pam_passthru" = "yes"; then
  15220. enable_pam_passthru_TRUE=
  15221. enable_pam_passthru_FALSE='#'
  15222. else
  15223. enable_pam_passthru_TRUE='#'
  15224. enable_pam_passthru_FALSE=
  15225. fi
  15226. if test -z "$enable_dna" ; then
  15227. enable_dna=yes # if not set on cmdline, set default
  15228. fi
  15229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15230. $as_echo_n "checking for --enable-dna... " >&6; }
  15231. # Check whether --enable-dna was given.
  15232. if test "${enable_dna+set}" = set; then :
  15233. enableval=$enable_dna;
  15234. fi
  15235. if test "$enable_dna" = yes ; then
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15237. $as_echo "yes" >&6; }
  15238. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15239. else
  15240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15241. $as_echo "no" >&6; }
  15242. fi
  15243. if test "$enable_dna" = "yes"; then
  15244. enable_dna_TRUE=
  15245. enable_dna_FALSE='#'
  15246. else
  15247. enable_dna_TRUE='#'
  15248. enable_dna_FALSE=
  15249. fi
  15250. if test -z "$enable_ldapi" ; then
  15251. enable_ldapi=yes # if not set on cmdline, set default
  15252. fi
  15253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15254. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15255. # Check whether --enable-ldapi was given.
  15256. if test "${enable_ldapi+set}" = set; then :
  15257. enableval=$enable_ldapi;
  15258. fi
  15259. if test "$enable_ldapi" = yes ; then
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15261. $as_echo "yes" >&6; }
  15262. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15263. else
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15265. $as_echo "no" >&6; }
  15266. fi
  15267. if test "$enable_ldapi" = "yes"; then
  15268. enable_ldapi_TRUE=
  15269. enable_ldapi_FALSE='#'
  15270. else
  15271. enable_ldapi_TRUE='#'
  15272. enable_ldapi_FALSE=
  15273. fi
  15274. if test -z "$enable_autobind" ; then
  15275. enable_autobind=no # if not set on cmdline, set default
  15276. fi
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15278. $as_echo_n "checking for --enable-autobind... " >&6; }
  15279. # Check whether --enable-autobind was given.
  15280. if test "${enable_autobind+set}" = set; then :
  15281. enableval=$enable_autobind;
  15282. fi
  15283. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15285. $as_echo "yes" >&6; }
  15286. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15287. else
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15289. $as_echo "no" >&6; }
  15290. fi
  15291. if test "$enable_autobind" = "yes"; then
  15292. enable_autobind_TRUE=
  15293. enable_autobind_FALSE='#'
  15294. else
  15295. enable_autobind_TRUE='#'
  15296. enable_autobind_FALSE=
  15297. fi
  15298. if test -z "$enable_auto_dn_suffix" ; then
  15299. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15300. fi
  15301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15302. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15303. # Check whether --enable-autobind was given.
  15304. if test "${enable_autobind+set}" = set; then :
  15305. enableval=$enable_autobind;
  15306. fi
  15307. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15309. $as_echo "yes" >&6; }
  15310. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15311. else
  15312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15313. $as_echo "no" >&6; }
  15314. fi
  15315. if test "$enable_auto_dn_suffix" = "yes"; then
  15316. enable_auto_dn_suffix_TRUE=
  15317. enable_auto_dn_suffix_FALSE='#'
  15318. else
  15319. enable_auto_dn_suffix_TRUE='#'
  15320. enable_auto_dn_suffix_FALSE=
  15321. fi
  15322. if test -z "$enable_bitwise" ; then
  15323. enable_bitwise=yes # if not set on cmdline, set default
  15324. fi
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15326. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15327. # Check whether --enable-bitwise was given.
  15328. if test "${enable_bitwise+set}" = set; then :
  15329. enableval=$enable_bitwise;
  15330. fi
  15331. if test "$enable_bitwise" = yes ; then
  15332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15333. $as_echo "yes" >&6; }
  15334. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15335. else
  15336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15337. $as_echo "no" >&6; }
  15338. fi
  15339. if test "$enable_bitwise" = "yes"; then
  15340. enable_bitwise_TRUE=
  15341. enable_bitwise_FALSE='#'
  15342. else
  15343. enable_bitwise_TRUE='#'
  15344. enable_bitwise_FALSE=
  15345. fi
  15346. if test -z "$enable_presence" ; then
  15347. enable_presence=no # if not set on cmdline, set default
  15348. fi
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15350. $as_echo_n "checking for --enable-presence... " >&6; }
  15351. # Check whether --enable-presence was given.
  15352. if test "${enable_presence+set}" = set; then :
  15353. enableval=$enable_presence;
  15354. fi
  15355. if test "$enable_presence" = yes ; then
  15356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15357. $as_echo "yes" >&6; }
  15358. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15359. else
  15360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15361. $as_echo "no" >&6; }
  15362. fi
  15363. if test "$enable_presence" = "yes"; then
  15364. enable_presence_TRUE=
  15365. enable_presence_FALSE='#'
  15366. else
  15367. enable_presence_TRUE='#'
  15368. enable_presence_FALSE=
  15369. fi
  15370. if test -z "$enable_acctpolicy" ; then
  15371. enable_acctpolicy=yes # if not set on cmdline, set default
  15372. fi
  15373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15374. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15375. # Check whether --enable-acctpolicy was given.
  15376. if test "${enable_acctpolicy+set}" = set; then :
  15377. enableval=$enable_acctpolicy;
  15378. fi
  15379. if test "$enable_acctpolicy" = yes ; then
  15380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15381. $as_echo "yes" >&6; }
  15382. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15383. else
  15384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15385. $as_echo "no" >&6; }
  15386. fi
  15387. if test "$enable_acctpolicy" = "yes"; then
  15388. enable_acctpolicy_TRUE=
  15389. enable_acctpolicy_FALSE='#'
  15390. else
  15391. enable_acctpolicy_TRUE='#'
  15392. enable_acctpolicy_FALSE=
  15393. fi
  15394. if test -z "$enable_posix_winsync" ; then
  15395. enable_posix_winsync=yes # if not set on cmdline, set default
  15396. fi
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-posix-winsync" >&5
  15398. $as_echo_n "checking for --enable-posix-winsync... " >&6; }
  15399. # Check whether --enable-posix_winsync was given.
  15400. if test "${enable_posix_winsync+set}" = set; then :
  15401. enableval=$enable_posix_winsync;
  15402. fi
  15403. if test "$enable_posix_winsync" = yes ; then
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15405. $as_echo "yes" >&6; }
  15406. $as_echo "#define ENABLE_POSIX_WINSYNC 1" >>confdefs.h
  15407. else
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15409. $as_echo "no" >&6; }
  15410. fi
  15411. if test "$enable_posix_winsync" = "yes"; then
  15412. enable_posix_winsync_TRUE=
  15413. enable_posix_winsync_FALSE='#'
  15414. else
  15415. enable_posix_winsync_TRUE='#'
  15416. enable_posix_winsync_FALSE=
  15417. fi
  15418. # the default prefix - override with --prefix or --with-fhs
  15419. # BEGIN COPYRIGHT BLOCK
  15420. # Copyright (C) 2006 Red Hat, Inc.
  15421. # All rights reserved.
  15422. #
  15423. # This program is free software; you can redistribute it and/or
  15424. # modify it under the terms of the GNU General Public License
  15425. # as published by the Free Software Foundation; either version 2
  15426. # of the License, or (at your option) any later version.
  15427. #
  15428. # This program is distributed in the hope that it will be useful,
  15429. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15430. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15431. # GNU General Public License for more details.
  15432. #
  15433. # You should have received a copy of the GNU General Public License
  15434. # along with this program; if not, write to the Free Software
  15435. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15436. #
  15437. # END COPYRIGHT BLOCK
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15439. $as_echo "$as_me: checking for FHS..." >&6;}
  15440. # check for --with-fhs
  15441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15442. $as_echo_n "checking for --with-fhs... " >&6; }
  15443. # Check whether --with-fhs was given.
  15444. if test "${with_fhs+set}" = set; then :
  15445. withval=$with_fhs;
  15446. with_fhs=yes
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15448. $as_echo "yes" >&6; }
  15449. else
  15450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15451. $as_echo "no" >&6; }
  15452. fi
  15453. if test "$with_fhs" = "yes"; then
  15454. $as_echo "#define IS_FHS 1" >>confdefs.h
  15455. fi
  15456. # check for --with-fhs-opt
  15457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15458. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15459. # Check whether --with-fhs-opt was given.
  15460. if test "${with_fhs_opt+set}" = set; then :
  15461. withval=$with_fhs_opt;
  15462. with_fhs_opt=yes
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15464. $as_echo "yes" >&6; }
  15465. else
  15466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15467. $as_echo "no" >&6; }
  15468. fi
  15469. if test "$with_fhs_opt" = "yes"; then
  15470. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15471. fi
  15472. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15473. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15474. fi
  15475. localrundir='/run'
  15476. # installation paths - by default, we store everything
  15477. # under the prefix. The with-fhs option will use /usr,
  15478. # /etc, and /var. The with-fhs-opt option will use the
  15479. # prefix, but it's sysconfdir and localstatedir will be
  15480. # /etc/opt, and /var/opt.
  15481. if test "$with_fhs_opt" = "yes"; then
  15482. # Override sysconfdir and localstatedir if FHS optional
  15483. # package was requested.
  15484. sysconfdir='/etc/opt'
  15485. localstatedir='/var/opt'
  15486. localrundir='/var/opt/run'
  15487. # relative to datadir
  15488. sampledatadir=/data
  15489. # relative to datadir
  15490. scripttemplatedir=/script-templates
  15491. # relative to datadir
  15492. updatedir=/updates
  15493. # relative to libdir
  15494. serverdir=
  15495. # relative to includedir
  15496. serverincdir=
  15497. # relative to libdir
  15498. serverplugindir=/plugins
  15499. # relative to datadir
  15500. infdir=/inf
  15501. # relative to datadir
  15502. mibdir=/mibs
  15503. # location of property/resource files, relative to datadir
  15504. propertydir=/properties
  15505. # relative to libdir
  15506. perldir=/perl
  15507. else
  15508. if test "$with_fhs" = "yes"; then
  15509. ac_default_prefix=/usr
  15510. prefix=$ac_default_prefix
  15511. exec_prefix=$prefix
  15512. sysconfdir='/etc'
  15513. localstatedir='/var'
  15514. localrundir='/run'
  15515. fi
  15516. # relative to datadir
  15517. sampledatadir=/$PACKAGE_NAME/data
  15518. # relative to datadir
  15519. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15520. # relative to datadir
  15521. updatedir=/$PACKAGE_NAME/updates
  15522. # relative to libdir
  15523. serverdir=/$PACKAGE_NAME
  15524. # relative to includedir
  15525. serverincdir=/$PACKAGE_NAME
  15526. # relative to libdir
  15527. serverplugindir=/$PACKAGE_NAME/plugins
  15528. # relative to datadir
  15529. infdir=/$PACKAGE_NAME/inf
  15530. # relative to datadir
  15531. mibdir=/$PACKAGE_NAME/mibs
  15532. # location of property/resource files, relative to datadir
  15533. propertydir=/$PACKAGE_NAME/properties
  15534. # relative to libdir
  15535. perldir=/$PACKAGE_NAME/perl
  15536. fi
  15537. # if mandir is the default value, override it
  15538. # otherwise, the user must have set it - just use it
  15539. if test X"$mandir" = X'${prefix}/man' ; then
  15540. mandir='$(datadir)/man'
  15541. fi
  15542. # Shared paths for all layouts
  15543. # relative to sysconfdir
  15544. configdir=/$PACKAGE_NAME/config
  15545. # relative to sysconfdir
  15546. schemadir=/$PACKAGE_NAME/schema
  15547. # default user, group
  15548. defaultuser=nobody
  15549. defaultgroup=nobody
  15550. if test -z "$with_tmpfiles_d" ; then
  15551. if test -d $sysconfdir/tmpfiles.d ; then
  15552. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15553. fi
  15554. fi
  15555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15556. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15557. # Check whether --with-tmpfiles-d was given.
  15558. if test "${with_tmpfiles_d+set}" = set; then :
  15559. withval=$with_tmpfiles_d;
  15560. fi
  15561. if test "$with_tmpfiles_d" = yes ; then
  15562. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15563. elif test "$with_tmpfiles_d" = no ; then
  15564. with_tmpfiles_d=
  15565. else
  15566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15567. $as_echo "$with_tmpfiles_d" >&6; }
  15568. fi
  15569. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15570. if test -n "$ac_tool_prefix"; then
  15571. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15572. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15574. $as_echo_n "checking for $ac_word... " >&6; }
  15575. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15576. $as_echo_n "(cached) " >&6
  15577. else
  15578. case $PKG_CONFIG in
  15579. [\\/]* | ?:[\\/]*)
  15580. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15581. ;;
  15582. *)
  15583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15584. for as_dir in $PATH
  15585. do
  15586. IFS=$as_save_IFS
  15587. test -z "$as_dir" && as_dir=.
  15588. for ac_exec_ext in '' $ac_executable_extensions; do
  15589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15590. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15592. break 2
  15593. fi
  15594. done
  15595. done
  15596. IFS=$as_save_IFS
  15597. ;;
  15598. esac
  15599. fi
  15600. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15601. if test -n "$PKG_CONFIG"; then
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15603. $as_echo "$PKG_CONFIG" >&6; }
  15604. else
  15605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15606. $as_echo "no" >&6; }
  15607. fi
  15608. fi
  15609. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15610. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15611. # Extract the first word of "pkg-config", so it can be a program name with args.
  15612. set dummy pkg-config; ac_word=$2
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15614. $as_echo_n "checking for $ac_word... " >&6; }
  15615. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15616. $as_echo_n "(cached) " >&6
  15617. else
  15618. case $ac_pt_PKG_CONFIG in
  15619. [\\/]* | ?:[\\/]*)
  15620. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15621. ;;
  15622. *)
  15623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15624. for as_dir in $PATH
  15625. do
  15626. IFS=$as_save_IFS
  15627. test -z "$as_dir" && as_dir=.
  15628. for ac_exec_ext in '' $ac_executable_extensions; do
  15629. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15630. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15632. break 2
  15633. fi
  15634. done
  15635. done
  15636. IFS=$as_save_IFS
  15637. ;;
  15638. esac
  15639. fi
  15640. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15641. if test -n "$ac_pt_PKG_CONFIG"; then
  15642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15643. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15644. else
  15645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15646. $as_echo "no" >&6; }
  15647. fi
  15648. if test "x$ac_pt_PKG_CONFIG" = x; then
  15649. PKG_CONFIG=""
  15650. else
  15651. case $cross_compiling:$ac_tool_warned in
  15652. yes:)
  15653. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15654. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15655. ac_tool_warned=yes ;;
  15656. esac
  15657. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15658. fi
  15659. else
  15660. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15661. fi
  15662. fi
  15663. if test -n "$PKG_CONFIG"; then
  15664. _pkg_min_version=0.9.0
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15666. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15667. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15669. $as_echo "yes" >&6; }
  15670. else
  15671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15672. $as_echo "no" >&6; }
  15673. PKG_CONFIG=""
  15674. fi
  15675. fi
  15676. if test -n "$PKG_CONFIG" ; then
  15677. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15678. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15679. fi
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-perldir" >&5
  15681. $as_echo_n "checking for --with-perldir... " >&6; }
  15682. # Check whether --with-perldir was given.
  15683. if test "${with_perldir+set}" = set; then :
  15684. withval=$with_perldir;
  15685. fi
  15686. if test -n "$with_perldir"; then
  15687. if test "$with_perldir" = yes ; then
  15688. as_fn_error $? "You must specify --with-perldir=/full/path/to/perl" "$LINENO" 5
  15689. elif test "$with_perldir" = no ; then
  15690. with_perldir=
  15691. else
  15692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perldir" >&5
  15693. $as_echo "$with_perldir" >&6; }
  15694. fi
  15695. else
  15696. with_perldir=
  15697. fi
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15699. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15700. # Check whether --with-systemdsystemunitdir was given.
  15701. if test "${with_systemdsystemunitdir+set}" = set; then :
  15702. withval=$with_systemdsystemunitdir;
  15703. fi
  15704. if test "$with_systemdsystemunitdir" = yes ; then
  15705. if test -n "$default_systemdsystemunitdir" ; then
  15706. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15708. $as_echo "$with_systemdsystemunitdir" >&6; }
  15709. else
  15710. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15711. fi
  15712. elif test "$with_systemdsystemunitdir" = no ; then
  15713. with_systemdsystemunitdir=
  15714. else
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15716. $as_echo "$with_systemdsystemunitdir" >&6; }
  15717. fi
  15718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15719. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15720. # Check whether --with-systemdsystemconfdir was given.
  15721. if test "${with_systemdsystemconfdir+set}" = set; then :
  15722. withval=$with_systemdsystemconfdir;
  15723. fi
  15724. if test "$with_systemdsystemconfdir" = yes ; then
  15725. if test -n "$default_systemdsystemconfdir" ; then
  15726. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15728. $as_echo "$with_systemdsystemconfdir" >&6; }
  15729. else
  15730. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15731. fi
  15732. elif test "$with_systemdsystemconfdir" = no ; then
  15733. with_systemdsystemconfdir=
  15734. else
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15736. $as_echo "$with_systemdsystemconfdir" >&6; }
  15737. fi
  15738. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15739. if test -z "$with_systemdgroupname" ; then
  15740. with_systemdgroupname=$PACKAGE_NAME.target
  15741. fi
  15742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15743. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15744. # Check whether --with-systemdgroupname was given.
  15745. if test "${with_systemdgroupname+set}" = set; then :
  15746. withval=$with_systemdgroupname;
  15747. fi
  15748. if test "$with_systemdgroupname" = yes ; then
  15749. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15750. elif test "$with_systemdgroupname" = no ; then
  15751. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15752. else
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15754. $as_echo "$with_systemdgroupname" >&6; }
  15755. fi
  15756. fi
  15757. # check for --with-instconfigdir
  15758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15759. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15760. # Check whether --with-instconfigdir was given.
  15761. if test "${with_instconfigdir+set}" = set; then :
  15762. withval=$with_instconfigdir;
  15763. if test $withval = yes ; then
  15764. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15765. fi
  15766. instconfigdir="$withval"
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15768. $as_echo "$withval" >&6; }
  15769. else
  15770. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15772. $as_echo "no" >&6; }
  15773. fi
  15774. # WINNT should be true if building on Windows system not using
  15775. # cygnus, mingw, or the like and using cmd.exe as the shell
  15776. if false; then
  15777. WINNT_TRUE=
  15778. WINNT_FALSE='#'
  15779. else
  15780. WINNT_TRUE='#'
  15781. WINNT_FALSE=
  15782. fi
  15783. # Deal with platform dependent defines
  15784. # initdir is the location for the SysV init scripts - very heavily platform
  15785. # dependent and not specified in fhs or lsb
  15786. # and not used if systemd is used
  15787. initdir='$(sysconfdir)/rc.d'
  15788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15789. $as_echo_n "checking for --with-initddir... " >&6; }
  15790. # Check whether --with-initddir was given.
  15791. if test "${with_initddir+set}" = set; then :
  15792. withval=$with_initddir;
  15793. if test "$withval" = yes -o "$withval" = no ; then
  15794. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15795. fi
  15796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15797. $as_echo "$withval" >&6; }
  15798. else
  15799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15800. $as_echo "no" >&6; }
  15801. fi
  15802. # on most platforms, we will just use perl from PATH
  15803. # On some platforms, we cannot. Why not just use any old
  15804. # perl? Because of perldap. We use a perldap that is
  15805. # compiled to either 32bit or 64bit, so we must use a native
  15806. # perl binary compiled with the same bitsize. On Solaris
  15807. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15808. # those with our 64 bit compiled product.
  15809. if test -n "$with_perldir"; then
  15810. perlexec="$with_perldir/perl"
  15811. else
  15812. perlexec='/usr/bin/env perl'
  15813. fi
  15814. # we use stty in perl scripts to disable password echo
  15815. # this doesn't work unless the full absolute path of the
  15816. # stty command is used e.g. system("stty -echo") does not
  15817. # work but system("/bin/stty -echo") does work
  15818. # since the path of stty may not be the same on all
  15819. # platforms, we set the default here to /bin/stty and
  15820. # allow that value to be overridden in the platform
  15821. # specific section below
  15822. sttyexec=/bin/stty
  15823. case $host in
  15824. *-*-linux*)
  15825. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15826. $as_echo "#define Linux 1" >>confdefs.h
  15827. $as_echo "#define LINUX 1" >>confdefs.h
  15828. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15829. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15830. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15831. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15832. platform="linux"
  15833. initdir='$(sysconfdir)/rc.d/init.d'
  15834. # do arch specific linux stuff here
  15835. case $host in
  15836. i*86-*-linux*)
  15837. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15838. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15839. ;;
  15840. x86_64-*-linux*)
  15841. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15842. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15843. ;;
  15844. aarch64-*-linux*)
  15845. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15846. ;;
  15847. arm*-linux*)
  15848. $as_echo "#define CPU_arm /**/" >>confdefs.h
  15849. ;;
  15850. esac
  15851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15852. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15854. /* end confdefs.h. */
  15855. int
  15856. main ()
  15857. {
  15858. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15859. ;
  15860. return 0;
  15861. }
  15862. _ACEOF
  15863. if ac_fn_c_try_link "$LINENO"; then :
  15864. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15866. $as_echo "yes" >&6; }
  15867. else
  15868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15869. $as_echo "no" >&6; }
  15870. fi
  15871. rm -f core conftest.err conftest.$ac_objext \
  15872. conftest$ac_exeext conftest.$ac_ext
  15873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15874. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15876. /* end confdefs.h. */
  15877. int
  15878. main ()
  15879. {
  15880. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15881. ;
  15882. return 0;
  15883. }
  15884. _ACEOF
  15885. if ac_fn_c_try_link "$LINENO"; then :
  15886. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15888. $as_echo "yes" >&6; }
  15889. else
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15891. $as_echo "no" >&6; }
  15892. fi
  15893. rm -f core conftest.err conftest.$ac_objext \
  15894. conftest$ac_exeext conftest.$ac_ext
  15895. # some programs use the native thread library directly
  15896. THREADLIB=-lpthread
  15897. THREADLIB=$THREADLIB
  15898. LIBCRYPT=-lcrypt
  15899. LIBCRYPT=$LIBCRYPT
  15900. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15901. ;;
  15902. ia64-hp-hpux*)
  15903. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15904. $as_echo "#define hpux 1" >>confdefs.h
  15905. $as_echo "#define HPUX 1" >>confdefs.h
  15906. $as_echo "#define HPUX11 1" >>confdefs.h
  15907. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15908. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15909. $as_echo "#define OS_hpux 1" >>confdefs.h
  15910. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15911. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15912. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15913. # assume 64 bit
  15914. perlexec='/opt/perl_64/bin/perl'
  15915. platform="hpux"
  15916. initconfigdir="/$PACKAGE_NAME/config"
  15917. # HPUX doesn't use /etc for this
  15918. initdir=/init.d
  15919. ;;
  15920. hppa*-hp-hpux*)
  15921. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15922. $as_echo "#define hpux 1" >>confdefs.h
  15923. $as_echo "#define HPUX 1" >>confdefs.h
  15924. $as_echo "#define HPUX11 1" >>confdefs.h
  15925. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15926. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15927. $as_echo "#define OS_hpux 1" >>confdefs.h
  15928. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15929. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15930. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15931. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15932. # assume 64 bit
  15933. initconfigdir="/$PACKAGE_NAME/config"
  15934. perlexec='/opt/perl_64/bin/perl'
  15935. platform="hpux"
  15936. # HPUX doesn't use /etc for this
  15937. initdir=/init.d
  15938. ;;
  15939. *-*-solaris*)
  15940. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15941. $as_echo "#define SVR4 1" >>confdefs.h
  15942. $as_echo "#define __svr4 1" >>confdefs.h
  15943. $as_echo "#define __svr4__ 1" >>confdefs.h
  15944. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15945. $as_echo "#define SOLARIS 1" >>confdefs.h
  15946. $as_echo "#define OS_solaris 1" >>confdefs.h
  15947. $as_echo "#define sunos5 1" >>confdefs.h
  15948. $as_echo "#define OSVERSION 509" >>confdefs.h
  15949. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15950. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15951. LIBSOCKET=-lsocket
  15952. LIBSOCKET=$LIBSOCKET
  15953. LIBNSL=-lnsl
  15954. LIBNSL=$LIBNSL
  15955. LIBDL=-ldl
  15956. LIBDL=$LIBDL
  15957. LIBCSTD=-lCstd
  15958. LIBCSTD=$LIBCSTD
  15959. LIBCRUN=-lCrun
  15960. LIBCRUN=$LIBCRUN
  15961. platform="solaris"
  15962. initdir='$(sysconfdir)/init.d'
  15963. case $host in
  15964. i?86-*-solaris2.1[0-9]*)
  15965. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  15966. ;;
  15967. sparc-*-solaris*)
  15968. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15969. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  15970. TARGET='SPARC'
  15971. ;;
  15972. esac
  15973. ;;
  15974. *)
  15975. platform=""
  15976. ;;
  15977. esac
  15978. # cmd line overrides default setting above
  15979. if test -n "$with_initddir" ; then
  15980. initdir="$with_initddir"
  15981. fi
  15982. # sysv init scripts not used when systemd is used
  15983. # set default initconfigdir if not already set
  15984. # value will be set so as to be relative to $(sysconfdir)
  15985. if test -z "$initconfigdir" ; then
  15986. if test -d /etc/sysconfig ; then
  15987. initconfigdir=/sysconfig
  15988. elif test -d /etc/default ; then
  15989. initconfigdir=/default
  15990. else
  15991. initconfigdir="/$PACKAGE_NAME/config"
  15992. fi
  15993. fi
  15994. if test "$platform" = "hpux"; then
  15995. HPUX_TRUE=
  15996. HPUX_FALSE='#'
  15997. else
  15998. HPUX_TRUE='#'
  15999. HPUX_FALSE=
  16000. fi
  16001. if test "$platform" = "solaris"; then
  16002. SOLARIS_TRUE=
  16003. SOLARIS_FALSE='#'
  16004. else
  16005. SOLARIS_TRUE='#'
  16006. SOLARIS_FALSE=
  16007. fi
  16008. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  16009. SYSTEMD_TRUE=
  16010. SYSTEMD_FALSE='#'
  16011. else
  16012. SYSTEMD_TRUE='#'
  16013. SYSTEMD_FALSE=
  16014. fi
  16015. # Check for library dependencies
  16016. # BEGIN COPYRIGHT BLOCK
  16017. # Copyright (C) 2007 Red Hat, Inc.
  16018. # All rights reserved.
  16019. #
  16020. # This program is free software; you can redistribute it and/or
  16021. # modify it under the terms of the GNU General Public License
  16022. # as published by the Free Software Foundation; either version 2
  16023. # of the License, or (at your option) any later version.
  16024. #
  16025. # This program is distributed in the hope that it will be useful,
  16026. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16027. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16028. # GNU General Public License for more details.
  16029. #
  16030. # You should have received a copy of the GNU General Public License
  16031. # along with this program; if not, write to the Free Software
  16032. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16033. #
  16034. # END COPYRIGHT BLOCK
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  16036. $as_echo "$as_me: checking for NSPR..." >&6;}
  16037. # check for --with-nspr
  16038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  16039. $as_echo_n "checking for --with-nspr... " >&6; }
  16040. # Check whether --with-nspr was given.
  16041. if test "${with_nspr+set}" = set; then :
  16042. withval=$with_nspr;
  16043. if test "$withval" = "yes"
  16044. then
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16046. $as_echo "yes" >&6; }
  16047. elif test "$withval" = "no"
  16048. then
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16050. $as_echo "no" >&6; }
  16051. as_fn_error $? "NSPR is required." "$LINENO" 5
  16052. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  16053. then
  16054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16055. $as_echo "using $withval" >&6; }
  16056. NSPRDIR=$withval
  16057. nspr_inc="-I$NSPRDIR/include"
  16058. nspr_lib="-L$NSPRDIR/lib"
  16059. nspr_libdir="$NSPRDIR/lib"
  16060. else
  16061. echo
  16062. as_fn_error $? "$withval not found" "$LINENO" 5
  16063. fi
  16064. else
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16066. $as_echo "yes" >&6; }
  16067. fi
  16068. # check for --with-nspr-inc
  16069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  16070. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  16071. # Check whether --with-nspr-inc was given.
  16072. if test "${with_nspr_inc+set}" = set; then :
  16073. withval=$with_nspr_inc;
  16074. if test -e "$withval"/nspr.h
  16075. then
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16077. $as_echo "using $withval" >&6; }
  16078. nspr_inc="-I$withval"
  16079. else
  16080. echo
  16081. as_fn_error $? "$withval not found" "$LINENO" 5
  16082. fi
  16083. else
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16085. $as_echo "no" >&6; }
  16086. fi
  16087. # check for --with-nspr-lib
  16088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  16089. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  16090. # Check whether --with-nspr-lib was given.
  16091. if test "${with_nspr_lib+set}" = set; then :
  16092. withval=$with_nspr_lib;
  16093. if test -d "$withval"
  16094. then
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16096. $as_echo "using $withval" >&6; }
  16097. nspr_lib="-L$withval"
  16098. nspr_libdir="$withval"
  16099. else
  16100. echo
  16101. as_fn_error $? "$withval not found" "$LINENO" 5
  16102. fi
  16103. else
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16105. $as_echo "no" >&6; }
  16106. fi
  16107. # if NSPR is not found yet, try pkg-config
  16108. # last resort
  16109. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  16110. # Extract the first word of "pkg-config", so it can be a program name with args.
  16111. set dummy pkg-config; ac_word=$2
  16112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16113. $as_echo_n "checking for $ac_word... " >&6; }
  16114. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16115. $as_echo_n "(cached) " >&6
  16116. else
  16117. case $PKG_CONFIG in
  16118. [\\/]* | ?:[\\/]*)
  16119. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16120. ;;
  16121. *)
  16122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16123. for as_dir in $PATH
  16124. do
  16125. IFS=$as_save_IFS
  16126. test -z "$as_dir" && as_dir=.
  16127. for ac_exec_ext in '' $ac_executable_extensions; do
  16128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16129. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16131. break 2
  16132. fi
  16133. done
  16134. done
  16135. IFS=$as_save_IFS
  16136. ;;
  16137. esac
  16138. fi
  16139. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16140. if test -n "$PKG_CONFIG"; then
  16141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16142. $as_echo "$PKG_CONFIG" >&6; }
  16143. else
  16144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16145. $as_echo "no" >&6; }
  16146. fi
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  16148. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  16149. if test -n "$PKG_CONFIG"; then
  16150. if $PKG_CONFIG --exists nspr; then
  16151. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  16152. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  16153. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  16155. $as_echo "using system NSPR" >&6; }
  16156. elif $PKG_CONFIG --exists dirsec-nspr; then
  16157. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  16158. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  16159. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  16161. $as_echo "using system dirsec NSPR" >&6; }
  16162. else
  16163. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  16164. fi
  16165. fi
  16166. fi
  16167. # BEGIN COPYRIGHT BLOCK
  16168. # Copyright (C) 2007 Red Hat, Inc.
  16169. # All rights reserved.
  16170. #
  16171. # This program is free software; you can redistribute it and/or
  16172. # modify it under the terms of the GNU General Public License
  16173. # as published by the Free Software Foundation; either version 2
  16174. # of the License, or (at your option) any later version.
  16175. #
  16176. # This program is distributed in the hope that it will be useful,
  16177. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16178. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16179. # GNU General Public License for more details.
  16180. #
  16181. # You should have received a copy of the GNU General Public License
  16182. # along with this program; if not, write to the Free Software
  16183. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16184. #
  16185. # END COPYRIGHT BLOCK
  16186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  16187. $as_echo "$as_me: checking for NSS..." >&6;}
  16188. # check for --with-nss
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  16190. $as_echo_n "checking for --with-nss... " >&6; }
  16191. # Check whether --with-nss was given.
  16192. if test "${with_nss+set}" = set; then :
  16193. withval=$with_nss;
  16194. if test "$withval" = "yes"
  16195. then
  16196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16197. $as_echo "yes" >&6; }
  16198. elif test "$withval" = "no"
  16199. then
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16201. $as_echo "no" >&6; }
  16202. as_fn_error $? "NSS is required." "$LINENO" 5
  16203. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  16204. then
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16206. $as_echo "using $withval" >&6; }
  16207. NSSDIR=$withval
  16208. nss_inc="-I$NSSDIR/include"
  16209. nss_lib="-L$NSSDIR/lib"
  16210. nss_libdir="$NSSDIR/lib"
  16211. else
  16212. echo
  16213. as_fn_error $? "$withval not found" "$LINENO" 5
  16214. fi
  16215. else
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16217. $as_echo "yes" >&6; }
  16218. fi
  16219. # check for --with-nss-inc
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16221. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16222. # Check whether --with-nss-inc was given.
  16223. if test "${with_nss_inc+set}" = set; then :
  16224. withval=$with_nss_inc;
  16225. if test -e "$withval"/nss.h
  16226. then
  16227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16228. $as_echo "using $withval" >&6; }
  16229. nss_inc="-I$withval"
  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: no" >&5
  16236. $as_echo "no" >&6; }
  16237. fi
  16238. # check for --with-nss-lib
  16239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16240. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16241. # Check whether --with-nss-lib was given.
  16242. if test "${with_nss_lib+set}" = set; then :
  16243. withval=$with_nss_lib;
  16244. if test -d "$withval"
  16245. then
  16246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16247. $as_echo "using $withval" >&6; }
  16248. nss_lib="-L$withval"
  16249. nss_libdir="$withval"
  16250. else
  16251. echo
  16252. as_fn_error $? "$withval not found" "$LINENO" 5
  16253. fi
  16254. else
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16256. $as_echo "no" >&6; }
  16257. fi
  16258. # if NSS is not found yet, try pkg-config
  16259. # last resort
  16260. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16261. # Extract the first word of "pkg-config", so it can be a program name with args.
  16262. set dummy pkg-config; ac_word=$2
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16264. $as_echo_n "checking for $ac_word... " >&6; }
  16265. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16266. $as_echo_n "(cached) " >&6
  16267. else
  16268. case $PKG_CONFIG in
  16269. [\\/]* | ?:[\\/]*)
  16270. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16271. ;;
  16272. *)
  16273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16274. for as_dir in $PATH
  16275. do
  16276. IFS=$as_save_IFS
  16277. test -z "$as_dir" && as_dir=.
  16278. for ac_exec_ext in '' $ac_executable_extensions; do
  16279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16280. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16282. break 2
  16283. fi
  16284. done
  16285. done
  16286. IFS=$as_save_IFS
  16287. ;;
  16288. esac
  16289. fi
  16290. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16291. if test -n "$PKG_CONFIG"; then
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16293. $as_echo "$PKG_CONFIG" >&6; }
  16294. else
  16295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16296. $as_echo "no" >&6; }
  16297. fi
  16298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16299. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16300. if test -n "$PKG_CONFIG"; then
  16301. if $PKG_CONFIG --exists nss; then
  16302. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16303. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16304. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16306. $as_echo "using system NSS" >&6; }
  16307. elif $PKG_CONFIG --exists dirsec-nss; then
  16308. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16309. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16310. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16312. $as_echo "using system dirsec NSS" >&6; }
  16313. else
  16314. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16315. fi
  16316. fi
  16317. fi
  16318. # BEGIN COPYRIGHT BLOCK
  16319. # Copyright (C) 2009 Red Hat, Inc.
  16320. # All rights reserved.
  16321. #
  16322. # This program is free software; you can redistribute it and/or
  16323. # modify it under the terms of the GNU General Public License
  16324. # as published by the Free Software Foundation; either version 2
  16325. # of the License, or (at your option) any later version.
  16326. #
  16327. # This program is distributed in the hope that it will be useful,
  16328. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16329. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16330. # GNU General Public License for more details.
  16331. #
  16332. # You should have received a copy of the GNU General Public License
  16333. # along with this program; if not, write to the Free Software
  16334. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16335. #
  16336. # END COPYRIGHT BLOCK
  16337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16338. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16339. # check for --with-openldap
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16341. $as_echo_n "checking for --with-openldap... " >&6; }
  16342. # Check whether --with-openldap was given.
  16343. if test "${with_openldap+set}" = set; then :
  16344. withval=$with_openldap;
  16345. if test "$withval" = yes
  16346. then
  16347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16348. $as_echo "using system OpenLDAP" >&6; }
  16349. elif test "$withval" = no
  16350. then
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16352. $as_echo "no" >&6; }
  16353. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16354. then
  16355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16356. $as_echo "using $withval" >&6; }
  16357. OPENLDAPDIR=$withval
  16358. openldap_incdir="$OPENLDAPDIR/include"
  16359. openldap_inc="-I$openldap_incdir"
  16360. openldap_lib="-L$OPENLDAPDIR/lib"
  16361. openldap_libdir="$OPENLDAPDIR/lib"
  16362. openldap_bindir="$OPENLDAPDIR/bin"
  16363. with_openldap=yes
  16364. else
  16365. echo
  16366. as_fn_error $? "$withval not found" "$LINENO" 5
  16367. fi
  16368. else
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16370. $as_echo "no" >&6; }
  16371. fi
  16372. # check for --with-openldap-inc
  16373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16374. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16375. # Check whether --with-openldap-inc was given.
  16376. if test "${with_openldap_inc+set}" = set; then :
  16377. withval=$with_openldap_inc;
  16378. if test -e "$withval"/ldap.h
  16379. then
  16380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16381. $as_echo "using $withval" >&6; }
  16382. openldap_incdir="$withval"
  16383. openldap_inc="-I$withval"
  16384. with_openldap=yes
  16385. else
  16386. echo
  16387. as_fn_error $? "$withval not found" "$LINENO" 5
  16388. fi
  16389. else
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16391. $as_echo "no" >&6; }
  16392. fi
  16393. # check for --with-openldap-lib
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16395. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16396. # Check whether --with-openldap-lib was given.
  16397. if test "${with_openldap_lib+set}" = set; then :
  16398. withval=$with_openldap_lib;
  16399. if test -d "$withval"
  16400. then
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16402. $as_echo "using $withval" >&6; }
  16403. openldap_lib="-L$withval"
  16404. openldap_libdir="$withval"
  16405. with_openldap=yes
  16406. else
  16407. echo
  16408. as_fn_error $? "$withval not found" "$LINENO" 5
  16409. fi
  16410. else
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16412. $as_echo "no" >&6; }
  16413. fi
  16414. # check for --with-openldap-bin
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16416. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16417. # Check whether --with-openldap-bin was given.
  16418. if test "${with_openldap_bin+set}" = set; then :
  16419. withval=$with_openldap_bin;
  16420. if test -d "$withval"
  16421. then
  16422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16423. $as_echo "using $withval" >&6; }
  16424. openldap_bindir="$withval"
  16425. with_openldap=yes
  16426. else
  16427. echo
  16428. as_fn_error $? "$withval not found" "$LINENO" 5
  16429. fi
  16430. else
  16431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16432. $as_echo "no" >&6; }
  16433. fi
  16434. # if OPENLDAP is not found yet, try pkg-config
  16435. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16436. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16437. # Extract the first word of "pkg-config", so it can be a program name with args.
  16438. set dummy pkg-config; ac_word=$2
  16439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16440. $as_echo_n "checking for $ac_word... " >&6; }
  16441. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16442. $as_echo_n "(cached) " >&6
  16443. else
  16444. case $PKG_CONFIG in
  16445. [\\/]* | ?:[\\/]*)
  16446. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16447. ;;
  16448. *)
  16449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16450. for as_dir in $PATH
  16451. do
  16452. IFS=$as_save_IFS
  16453. test -z "$as_dir" && as_dir=.
  16454. for ac_exec_ext in '' $ac_executable_extensions; do
  16455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16456. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16458. break 2
  16459. fi
  16460. done
  16461. done
  16462. IFS=$as_save_IFS
  16463. ;;
  16464. esac
  16465. fi
  16466. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16467. if test -n "$PKG_CONFIG"; then
  16468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16469. $as_echo "$PKG_CONFIG" >&6; }
  16470. else
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16472. $as_echo "no" >&6; }
  16473. fi
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16475. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16476. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16477. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16478. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16479. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16480. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16481. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16483. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16484. else
  16485. openldap_incdir="/usr/include"
  16486. openldap_inc="-I$openldap_incdir"
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16488. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16489. fi
  16490. fi
  16491. fi
  16492. if test "$with_openldap" = yes ; then
  16493. save_cppflags="$CPPFLAGS"
  16494. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16495. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16496. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16497. else
  16498. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16499. fi
  16500. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16501. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16502. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16503. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16504. save_ldflags="$LDFLAGS"
  16505. LDFLAGS="$openldap_lib $LDFLAGS"
  16506. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16508. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16509. if eval \${$as_ac_Lib+:} false; then :
  16510. $as_echo_n "(cached) " >&6
  16511. else
  16512. ac_check_lib_save_LIBS=$LIBS
  16513. LIBS="-lldap$ol_libver $LIBS"
  16514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16515. /* end confdefs.h. */
  16516. /* Override any GCC internal prototype to avoid an error.
  16517. Use char because int might match the return type of a GCC
  16518. builtin and then its argument prototype would still apply. */
  16519. #ifdef __cplusplus
  16520. extern "C"
  16521. #endif
  16522. char ldap_initialize ();
  16523. int
  16524. main ()
  16525. {
  16526. return ldap_initialize ();
  16527. ;
  16528. return 0;
  16529. }
  16530. _ACEOF
  16531. if ac_fn_c_try_link "$LINENO"; then :
  16532. eval "$as_ac_Lib=yes"
  16533. else
  16534. eval "$as_ac_Lib=no"
  16535. fi
  16536. rm -f core conftest.err conftest.$ac_objext \
  16537. conftest$ac_exeext conftest.$ac_ext
  16538. LIBS=$ac_check_lib_save_LIBS
  16539. fi
  16540. eval ac_res=\$$as_ac_Lib
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16542. $as_echo "$ac_res" >&6; }
  16543. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16544. have_ldap_lib=1
  16545. fi
  16546. if test -z "$have_ldap_lib" ; then
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16548. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16549. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16550. $as_echo_n "(cached) " >&6
  16551. else
  16552. ac_check_lib_save_LIBS=$LIBS
  16553. LIBS="-lldap $LIBS"
  16554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16555. /* end confdefs.h. */
  16556. /* Override any GCC internal prototype to avoid an error.
  16557. Use char because int might match the return type of a GCC
  16558. builtin and then its argument prototype would still apply. */
  16559. #ifdef __cplusplus
  16560. extern "C"
  16561. #endif
  16562. char ldap_initialize ();
  16563. int
  16564. main ()
  16565. {
  16566. return ldap_initialize ();
  16567. ;
  16568. return 0;
  16569. }
  16570. _ACEOF
  16571. if ac_fn_c_try_link "$LINENO"; then :
  16572. ac_cv_lib_ldap_ldap_initialize=yes
  16573. else
  16574. ac_cv_lib_ldap_ldap_initialize=no
  16575. fi
  16576. rm -f core conftest.err conftest.$ac_objext \
  16577. conftest$ac_exeext conftest.$ac_ext
  16578. LIBS=$ac_check_lib_save_LIBS
  16579. fi
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16581. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16582. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16583. unset ol_libver
  16584. else
  16585. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16586. fi
  16587. fi
  16588. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16590. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16591. if eval \${$as_ac_Lib+:} false; then :
  16592. $as_echo_n "(cached) " >&6
  16593. else
  16594. ac_check_lib_save_LIBS=$LIBS
  16595. LIBS="-lldap$ol_libver $LIBS"
  16596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16597. /* end confdefs.h. */
  16598. /* Override any GCC internal prototype to avoid an error.
  16599. Use char because int might match the return type of a GCC
  16600. builtin and then its argument prototype would still apply. */
  16601. #ifdef __cplusplus
  16602. extern "C"
  16603. #endif
  16604. char ldap_url_parse_ext ();
  16605. int
  16606. main ()
  16607. {
  16608. return ldap_url_parse_ext ();
  16609. ;
  16610. return 0;
  16611. }
  16612. _ACEOF
  16613. if ac_fn_c_try_link "$LINENO"; then :
  16614. eval "$as_ac_Lib=yes"
  16615. else
  16616. eval "$as_ac_Lib=no"
  16617. fi
  16618. rm -f core conftest.err conftest.$ac_objext \
  16619. conftest$ac_exeext conftest.$ac_ext
  16620. LIBS=$ac_check_lib_save_LIBS
  16621. fi
  16622. eval ac_res=\$$as_ac_Lib
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16624. $as_echo "$ac_res" >&6; }
  16625. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16626. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16627. fi
  16628. ldap_lib_ldif=""
  16629. LDFLAGS="$LDFLAGS"
  16630. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldif_open" | $as_tr_sh`
  16631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldif_open in -lldap$ol_libver" >&5
  16632. $as_echo_n "checking for ldif_open in -lldap$ol_libver... " >&6; }
  16633. if eval \${$as_ac_Lib+:} false; then :
  16634. $as_echo_n "(cached) " >&6
  16635. else
  16636. ac_check_lib_save_LIBS=$LIBS
  16637. LIBS="-lldap$ol_libver $LIBS"
  16638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16639. /* end confdefs.h. */
  16640. /* Override any GCC internal prototype to avoid an error.
  16641. Use char because int might match the return type of a GCC
  16642. builtin and then its argument prototype would still apply. */
  16643. #ifdef __cplusplus
  16644. extern "C"
  16645. #endif
  16646. char ldif_open ();
  16647. int
  16648. main ()
  16649. {
  16650. return ldif_open ();
  16651. ;
  16652. return 0;
  16653. }
  16654. _ACEOF
  16655. if ac_fn_c_try_link "$LINENO"; then :
  16656. eval "$as_ac_Lib=yes"
  16657. else
  16658. eval "$as_ac_Lib=no"
  16659. fi
  16660. rm -f core conftest.err conftest.$ac_objext \
  16661. conftest$ac_exeext conftest.$ac_ext
  16662. LIBS=$ac_check_lib_save_LIBS
  16663. fi
  16664. eval ac_res=\$$as_ac_Lib
  16665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16666. $as_echo "$ac_res" >&6; }
  16667. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16668. ldap_lib_ldif=
  16669. else
  16670. ldap_lib_ldif=-lldif$ol_libver
  16671. fi
  16672. LDFLAGS="$save_ldflags"
  16673. CPPFLAGS="$save_cppflags"
  16674. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16675. # where to find ldapsearch, et. al.
  16676. ldaptool_bindir=$openldap_bindir
  16677. # default options to pass to the tools
  16678. # use -x because all of our scripts use simple bind
  16679. ldaptool_opts=-x
  16680. # get plain output from ldapsearch - no version, no comments
  16681. plainldif_opts=-LLL
  16682. fi
  16683. # BEGIN COPYRIGHT BLOCK
  16684. # Copyright (C) 2007 Red Hat, Inc.
  16685. # All rights reserved.
  16686. #
  16687. # This program is free software; you can redistribute it and/or
  16688. # modify it under the terms of the GNU General Public License
  16689. # as published by the Free Software Foundation; either version 2
  16690. # of the License, or (at your option) any later version.
  16691. #
  16692. # This program is distributed in the hope that it will be useful,
  16693. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16694. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16695. # GNU General Public License for more details.
  16696. #
  16697. # You should have received a copy of the GNU General Public License
  16698. # along with this program; if not, write to the Free Software
  16699. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16700. #
  16701. # END COPYRIGHT BLOCK
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16703. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16704. # check for --with-ldapsdk
  16705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16706. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16707. # Check whether --with-ldapsdk was given.
  16708. if test "${with_ldapsdk+set}" = set; then :
  16709. withval=$with_ldapsdk;
  16710. if test "$withval" = yes
  16711. then
  16712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16713. $as_echo "yes" >&6; }
  16714. elif test "$withval" = no
  16715. then
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16717. $as_echo "no" >&6; }
  16718. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16719. then
  16720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16721. $as_echo "using $withval" >&6; }
  16722. LDAPSDKDIR=$withval
  16723. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16724. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16725. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16726. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16727. with_ldapsdk=yes
  16728. else
  16729. echo
  16730. as_fn_error $? "$withval not found" "$LINENO" 5
  16731. fi
  16732. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16733. then
  16734. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16735. fi
  16736. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16737. then
  16738. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16739. fi
  16740. else
  16741. if test "$with_openldap" = yes
  16742. then
  16743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16744. $as_echo "no" >&6; }
  16745. else
  16746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16747. $as_echo "yes" >&6; }
  16748. with_ldapsdk=yes
  16749. fi
  16750. fi
  16751. # check for --with-ldapsdk-inc
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16753. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16754. # Check whether --with-ldapsdk-inc was given.
  16755. if test "${with_ldapsdk_inc+set}" = set; then :
  16756. withval=$with_ldapsdk_inc;
  16757. if test -e "$withval"/ldap.h
  16758. then
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16760. $as_echo "using $withval" >&6; }
  16761. ldapsdk_inc="-I$withval"
  16762. with_ldapsdk=yes
  16763. else
  16764. echo
  16765. as_fn_error $? "$withval not found" "$LINENO" 5
  16766. fi
  16767. else
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16769. $as_echo "no" >&6; }
  16770. fi
  16771. # check for --with-ldapsdk-lib
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16773. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16774. # Check whether --with-ldapsdk-lib was given.
  16775. if test "${with_ldapsdk_lib+set}" = set; then :
  16776. withval=$with_ldapsdk_lib;
  16777. if test -d "$withval"
  16778. then
  16779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16780. $as_echo "using $withval" >&6; }
  16781. ldapsdk_lib="-L$withval"
  16782. ldapsdk_libdir="$withval"
  16783. with_ldapsdk=yes
  16784. else
  16785. echo
  16786. as_fn_error $? "$withval not found" "$LINENO" 5
  16787. fi
  16788. else
  16789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16790. $as_echo "no" >&6; }
  16791. fi
  16792. # check for --with-ldapsdk-bin
  16793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16794. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16795. # Check whether --with-ldapsdk-bin was given.
  16796. if test "${with_ldapsdk_bin+set}" = set; then :
  16797. withval=$with_ldapsdk_bin;
  16798. if test -d "$withval"
  16799. then
  16800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16801. $as_echo "using $withval" >&6; }
  16802. ldapsdk_bindir="$withval"
  16803. with_ldapsdk=yes
  16804. else
  16805. echo
  16806. as_fn_error $? "$withval not found" "$LINENO" 5
  16807. fi
  16808. else
  16809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16810. $as_echo "no" >&6; }
  16811. fi
  16812. # if LDAPSDK is not found yet, try pkg-config
  16813. # last resort
  16814. if test "$with_ldapsdk" = yes ; then
  16815. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16816. # Extract the first word of "pkg-config", so it can be a program name with args.
  16817. set dummy pkg-config; ac_word=$2
  16818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16819. $as_echo_n "checking for $ac_word... " >&6; }
  16820. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16821. $as_echo_n "(cached) " >&6
  16822. else
  16823. case $PKG_CONFIG in
  16824. [\\/]* | ?:[\\/]*)
  16825. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16826. ;;
  16827. *)
  16828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16829. for as_dir in $PATH
  16830. do
  16831. IFS=$as_save_IFS
  16832. test -z "$as_dir" && as_dir=.
  16833. for ac_exec_ext in '' $ac_executable_extensions; do
  16834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16835. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16837. break 2
  16838. fi
  16839. done
  16840. done
  16841. IFS=$as_save_IFS
  16842. ;;
  16843. esac
  16844. fi
  16845. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16846. if test -n "$PKG_CONFIG"; then
  16847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16848. $as_echo "$PKG_CONFIG" >&6; }
  16849. else
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16851. $as_echo "no" >&6; }
  16852. fi
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16854. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16855. if test -n "$PKG_CONFIG"; then
  16856. if $PKG_CONFIG --exists mozldap6; then
  16857. mozldappkg=mozldap6
  16858. elif $PKG_CONFIG --exists mozldap; then
  16859. mozldappkg=mozldap
  16860. else
  16861. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16862. fi
  16863. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16864. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16865. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16866. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16868. $as_echo "using system $mozldappkg" >&6; }
  16869. fi
  16870. fi
  16871. fi
  16872. if test "$with_ldapsdk" = yes ; then
  16873. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16874. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16875. fi
  16876. if test -z "$ldapsdk_bindir" ; then
  16877. if -d $libdir/mozldap6 ; then
  16878. ldapsdk_bindir=$libdir/mozldap6
  16879. else
  16880. ldapsdk_bindir=$libdir/mozldap
  16881. fi
  16882. fi
  16883. save_cppflags="$CPPFLAGS"
  16884. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16885. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16886. #if LDAP_VENDOR_VERSION < 600
  16887. #error The LDAP C SDK version is not supported
  16888. #endif
  16889. "
  16890. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16891. isversion6=1
  16892. else
  16893. isversion6=
  16894. fi
  16895. CPPFLAGS="$save_cppflags"
  16896. if test -z "$isversion6" ; then
  16897. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16898. fi
  16899. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16900. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16901. # where to find ldapsearch, et. al.
  16902. ldaptool_bindir=$ldapsdk_bindir
  16903. # default options to pass to the tools
  16904. ldaptool_opts=
  16905. # get plain output from ldapsearch - no version
  16906. plainldif_opts=-1
  16907. fi
  16908. # BEGIN COPYRIGHT BLOCK
  16909. # Copyright (C) 2007 Red Hat, Inc.
  16910. # All rights reserved.
  16911. #
  16912. # This program is free software; you can redistribute it and/or
  16913. # modify it under the terms of the GNU General Public License
  16914. # as published by the Free Software Foundation; either version 2
  16915. # of the License, or (at your option) any later version.
  16916. #
  16917. # This program is distributed in the hope that it will be useful,
  16918. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16919. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16920. # GNU General Public License for more details.
  16921. #
  16922. # You should have received a copy of the GNU General Public License
  16923. # along with this program; if not, write to the Free Software
  16924. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16925. #
  16926. # END COPYRIGHT BLOCK
  16927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16928. $as_echo "$as_me: checking for db..." >&6;}
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16930. $as_echo_n "checking for --with-db... " >&6; }
  16931. # Check whether --with-db was given.
  16932. if test "${with_db+set}" = set; then :
  16933. withval=$with_db;
  16934. if test "$withval" = "yes"; then
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16936. $as_echo "yes" >&6; }
  16937. elif test "$withval" = "no"; then
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16939. $as_echo "no" >&6; }
  16940. as_fn_error $? "db is required." "$LINENO" 5
  16941. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16943. $as_echo "using $withval" >&6; }
  16944. DBDIR=$withval
  16945. db_lib="-L$DBDIR/lib"
  16946. db_libdir="$DBDIR/lib"
  16947. db_incdir="$DBDIR/include"
  16948. if ! test -e "$db_incdir/db.h" ; then
  16949. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16950. fi
  16951. db_inc="-I$db_incdir"
  16952. else
  16953. echo
  16954. as_fn_error $? "$withval not found" "$LINENO" 5
  16955. fi
  16956. else
  16957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16958. $as_echo "yes" >&6; }
  16959. fi
  16960. # check for --with-db-inc
  16961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16962. $as_echo_n "checking for --with-db-inc... " >&6; }
  16963. # Check whether --with-db-inc was given.
  16964. if test "${with_db_inc+set}" = set; then :
  16965. withval=$with_db_inc;
  16966. if test -e "$withval"/db.h
  16967. then
  16968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16969. $as_echo "using $withval" >&6; }
  16970. db_incdir="$withval"
  16971. db_inc="-I$withval"
  16972. else
  16973. echo
  16974. as_fn_error $? "$withval not found" "$LINENO" 5
  16975. fi
  16976. else
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16978. $as_echo "no" >&6; }
  16979. fi
  16980. # check for --with-db-lib
  16981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  16982. $as_echo_n "checking for --with-db-lib... " >&6; }
  16983. # Check whether --with-db-lib was given.
  16984. if test "${with_db_lib+set}" = set; then :
  16985. withval=$with_db_lib;
  16986. if test -d "$withval"
  16987. then
  16988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16989. $as_echo "using $withval" >&6; }
  16990. db_lib="-L$withval"
  16991. db_libdir="$withval"
  16992. else
  16993. echo
  16994. as_fn_error $? "$withval not found" "$LINENO" 5
  16995. fi
  16996. else
  16997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16998. $as_echo "no" >&6; }
  16999. fi
  17000. if test -z "$db_inc"; then
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  17002. $as_echo_n "checking for db.h... " >&6; }
  17003. if test -f "/usr/include/db4/db.h"; then
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  17005. $as_echo "using /usr/include/db4/db.h" >&6; }
  17006. db_incdir="/usr/include/db4"
  17007. db_inc="-I/usr/include/db4"
  17008. db_lib='-L$(libdir)'
  17009. db_libdir='$(libdir)'
  17010. elif test -f "/usr/include/libdb/db.h"; then
  17011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  17012. $as_echo "using /usr/include/libdb/db.h" >&6; }
  17013. db_incdir="/usr/include/libdb"
  17014. db_inc="-I/usr/include/libdb"
  17015. db_lib='-L$(libdir)'
  17016. db_libdir='$(libdir)'
  17017. elif test -f "/usr/include/db.h"; then
  17018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  17019. $as_echo "using /usr/include/db.h" >&6; }
  17020. db_incdir="/usr/include"
  17021. db_inc="-I/usr/include"
  17022. db_lib='-L$(libdir)'
  17023. db_libdir='$(libdir)'
  17024. else
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17026. $as_echo "no" >&6; }
  17027. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  17028. fi
  17029. fi
  17030. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  17031. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  17032. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  17033. db_libver=${db_ver_maj}.${db_ver_min}
  17034. save_ldflags="$LDFLAGS"
  17035. LDFLAGS="$db_lib $LDFLAGS"
  17036. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  17038. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  17039. if eval \${$as_ac_Lib+:} false; then :
  17040. $as_echo_n "(cached) " >&6
  17041. else
  17042. ac_check_lib_save_LIBS=$LIBS
  17043. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  17044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17045. /* end confdefs.h. */
  17046. /* Override any GCC internal prototype to avoid an error.
  17047. Use char because int might match the return type of a GCC
  17048. builtin and then its argument prototype would still apply. */
  17049. #ifdef __cplusplus
  17050. extern "C"
  17051. #endif
  17052. char db_create ();
  17053. int
  17054. main ()
  17055. {
  17056. return db_create ();
  17057. ;
  17058. return 0;
  17059. }
  17060. _ACEOF
  17061. if ac_fn_c_try_link "$LINENO"; then :
  17062. eval "$as_ac_Lib=yes"
  17063. else
  17064. eval "$as_ac_Lib=no"
  17065. fi
  17066. rm -f core conftest.err conftest.$ac_objext \
  17067. conftest$ac_exeext conftest.$ac_ext
  17068. LIBS=$ac_check_lib_save_LIBS
  17069. fi
  17070. eval ac_res=\$$as_ac_Lib
  17071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17072. $as_echo "$ac_res" >&6; }
  17073. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17074. true
  17075. else
  17076. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  17077. fi
  17078. LDFLAGS="$save_ldflags"
  17079. # if DB is not found yet, try pkg-config
  17080. # last resort
  17081. # Although the other db_* variables are correctly assigned at this point,
  17082. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  17083. if test -n "$PKG_CONFIG"; then
  17084. if $PKG_CONFIG --exists db; then
  17085. db_bindir=`$PKG_CONFIG --variable=bindir db`
  17086. else
  17087. db_bindir=/usr/bin
  17088. fi
  17089. else
  17090. db_bindir=/usr/bin
  17091. fi
  17092. # BEGIN COPYRIGHT BLOCK
  17093. # Copyright (C) 2007 Red Hat, Inc.
  17094. # All rights reserved.
  17095. #
  17096. # This program is free software; you can redistribute it and/or
  17097. # modify it under the terms of the GNU General Public License
  17098. # as published by the Free Software Foundation; either version 2
  17099. # of the License, or (at your option) any later version.
  17100. #
  17101. # This program is distributed in the hope that it will be useful,
  17102. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17103. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17104. # GNU General Public License for more details.
  17105. #
  17106. # You should have received a copy of the GNU General Public License
  17107. # along with this program; if not, write to the Free Software
  17108. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17109. #
  17110. # END COPYRIGHT BLOCK
  17111. # -*- tab-width: 4; -*-
  17112. # Configure paths for SASL
  17113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  17114. $as_echo "$as_me: checking for SASL..." >&6;}
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  17116. $as_echo_n "checking for --with-sasl... " >&6; }
  17117. # Check whether --with-sasl was given.
  17118. if test "${with_sasl+set}" = set; then :
  17119. withval=$with_sasl;
  17120. if test "$withval" = "yes"; then
  17121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17122. $as_echo "yes" >&6; }
  17123. elif test "$withval" = "no"; then
  17124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17125. $as_echo "no" >&6; }
  17126. as_fn_error $? "SASL is required." "$LINENO" 5
  17127. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17129. $as_echo "using $withval" >&6; }
  17130. if test -f "$withval/include/sasl/sasl.h"; then
  17131. sasl_inc="-I$withval/include/sasl"
  17132. elif test -f "$withval/include/sasl.h"; then
  17133. sasl_inc="-I$withval/include"
  17134. else
  17135. as_fn_error $? "sasl.h not found" "$LINENO" 5
  17136. fi
  17137. sasl_lib="-L$withval/lib"
  17138. sasl_libdir="$withval/lib"
  17139. else
  17140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17141. $as_echo "yes" >&6; }
  17142. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  17143. fi
  17144. else
  17145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17146. $as_echo "yes" >&6; }
  17147. fi
  17148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  17149. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  17150. # Check whether --with-sasl-inc was given.
  17151. if test "${with_sasl_inc+set}" = set; then :
  17152. withval=$with_sasl_inc;
  17153. if test -f "$withval"/sasl.h; then
  17154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17155. $as_echo "using $withval" >&6; }
  17156. sasl_inc="-I$withval"
  17157. else
  17158. echo
  17159. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  17160. fi
  17161. else
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17163. $as_echo "no" >&6; }
  17164. fi
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  17166. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  17167. # Check whether --with-sasl-lib was given.
  17168. if test "${with_sasl_lib+set}" = set; then :
  17169. withval=$with_sasl_lib;
  17170. if test -d "$withval"; then
  17171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17172. $as_echo "using $withval" >&6; }
  17173. sasl_lib="-L$withval"
  17174. sasl_libdir="$withval"
  17175. else
  17176. echo
  17177. as_fn_error $? "$withval not found" "$LINENO" 5
  17178. fi
  17179. else
  17180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17181. $as_echo "no" >&6; }
  17182. fi
  17183. if test -z "$sasl_inc"; then
  17184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  17185. $as_echo_n "checking for sasl.h... " >&6; }
  17186. if test -f /usr/include/sasl/sasl.h; then
  17187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  17188. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  17189. sasl_inc="-I/usr/include/sasl"
  17190. elif test -f /usr/include/sasl.h; then
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  17192. $as_echo "using /usr/include/sasl.h" >&6; }
  17193. sasl_inc="-I/usr/include"
  17194. else
  17195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17196. $as_echo "no" >&6; }
  17197. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  17198. fi
  17199. fi
  17200. # BEGIN COPYRIGHT BLOCK
  17201. # Copyright (C) 2007 Red Hat, Inc.
  17202. # All rights reserved.
  17203. #
  17204. # This program is free software; you can redistribute it and/or
  17205. # modify it under the terms of the GNU General Public License
  17206. # as published by the Free Software Foundation; either version 2
  17207. # of the License, or (at your option) any later version.
  17208. #
  17209. # This program is distributed in the hope that it will be useful,
  17210. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17211. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17212. # GNU General Public License for more details.
  17213. #
  17214. # You should have received a copy of the GNU General Public License
  17215. # along with this program; if not, write to the Free Software
  17216. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17217. #
  17218. # END COPYRIGHT BLOCK
  17219. #
  17220. # Configure paths for SVRCORE
  17221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17222. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17224. $as_echo_n "checking for --with-svrcore... " >&6; }
  17225. # Check whether --with-svrcore was given.
  17226. if test "${with_svrcore+set}" = set; then :
  17227. withval=$with_svrcore;
  17228. if test "$withval" = "yes"; then
  17229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17230. $as_echo "yes" >&6; }
  17231. elif test "$withval" = "no"; then
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17233. $as_echo "no" >&6; }
  17234. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17235. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17237. $as_echo "using $withval" >&6; }
  17238. if test -f "$withval/include/svrcore.h"; then
  17239. svrcore_inc="-I$withval/include"
  17240. else
  17241. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17242. fi
  17243. svrcore_lib="-L$withval/lib"
  17244. else
  17245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17246. $as_echo "yes" >&6; }
  17247. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17248. fi
  17249. else
  17250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17251. $as_echo "yes" >&6; }
  17252. fi
  17253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17254. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17255. # Check whether --with-svrcore-inc was given.
  17256. if test "${with_svrcore_inc+set}" = set; then :
  17257. withval=$with_svrcore_inc;
  17258. if test -f "$withval"/svrcore.h; then
  17259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17260. $as_echo "using $withval" >&6; }
  17261. svrcore_inc="-I$withval"
  17262. else
  17263. echo
  17264. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17265. fi
  17266. else
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17268. $as_echo "no" >&6; }
  17269. fi
  17270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17271. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17272. # Check whether --with-svrcore-lib was given.
  17273. if test "${with_svrcore_lib+set}" = set; then :
  17274. withval=$with_svrcore_lib;
  17275. if test -d "$withval"; then
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17277. $as_echo "using $withval" >&6; }
  17278. svrcore_lib="-L$withval"
  17279. else
  17280. echo
  17281. as_fn_error $? "$withval not found" "$LINENO" 5
  17282. fi
  17283. else
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17285. $as_echo "no" >&6; }
  17286. fi
  17287. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17288. # Extract the first word of "pkg-config", so it can be a program name with args.
  17289. set dummy pkg-config; ac_word=$2
  17290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17291. $as_echo_n "checking for $ac_word... " >&6; }
  17292. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17293. $as_echo_n "(cached) " >&6
  17294. else
  17295. case $PKG_CONFIG in
  17296. [\\/]* | ?:[\\/]*)
  17297. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17298. ;;
  17299. *)
  17300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17301. for as_dir in $PATH
  17302. do
  17303. IFS=$as_save_IFS
  17304. test -z "$as_dir" && as_dir=.
  17305. for ac_exec_ext in '' $ac_executable_extensions; do
  17306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17307. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17309. break 2
  17310. fi
  17311. done
  17312. done
  17313. IFS=$as_save_IFS
  17314. ;;
  17315. esac
  17316. fi
  17317. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17318. if test -n "$PKG_CONFIG"; then
  17319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17320. $as_echo "$PKG_CONFIG" >&6; }
  17321. else
  17322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17323. $as_echo "no" >&6; }
  17324. fi
  17325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17326. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17327. if test -n "$PKG_CONFIG"; then
  17328. if $PKG_CONFIG --exists svrcore; then
  17329. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17330. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17332. $as_echo "using system svrcore" >&6; }
  17333. fi
  17334. fi
  17335. fi
  17336. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17338. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17339. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17340. $as_echo_n "(cached) " >&6
  17341. else
  17342. ac_check_lib_save_LIBS=$LIBS
  17343. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17345. /* end confdefs.h. */
  17346. /* Override any GCC internal prototype to avoid an error.
  17347. Use char because int might match the return type of a GCC
  17348. builtin and then its argument prototype would still apply. */
  17349. #ifdef __cplusplus
  17350. extern "C"
  17351. #endif
  17352. char SVRCORE_GetRegisteredPinObj ();
  17353. int
  17354. main ()
  17355. {
  17356. return SVRCORE_GetRegisteredPinObj ();
  17357. ;
  17358. return 0;
  17359. }
  17360. _ACEOF
  17361. if ac_fn_c_try_link "$LINENO"; then :
  17362. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17363. else
  17364. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17365. fi
  17366. rm -f core conftest.err conftest.$ac_objext \
  17367. conftest$ac_exeext conftest.$ac_ext
  17368. LIBS=$ac_check_lib_save_LIBS
  17369. fi
  17370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17371. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17372. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17373. havesvrcore=1
  17374. fi
  17375. if test -n "$havesvrcore" ; then
  17376. save_cppflags="$CPPFLAGS"
  17377. CPPFLAGS="$nss_inc $nspr_inc"
  17378. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17379. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17380. havesvrcore=1
  17381. else
  17382. havesvrcore=
  17383. fi
  17384. CPPFLAGS="$save_cppflags"
  17385. fi
  17386. if test -z "$havesvrcore" ; then
  17387. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17388. fi
  17389. fi
  17390. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17391. if test -f /usr/include/svrcore.h; then
  17392. svrcore_inc="-I/usr/include"
  17393. svrcore_lib="-L/usr/lib"
  17394. else
  17395. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17396. fi
  17397. fi
  17398. # BEGIN COPYRIGHT BLOCK
  17399. # Copyright (C) 2006 Red Hat, Inc.
  17400. # All rights reserved.
  17401. #
  17402. # This program is free software; you can redistribute it and/or
  17403. # modify it under the terms of the GNU General Public License
  17404. # as published by the Free Software Foundation; either version 2
  17405. # of the License, or (at your option) any later version.
  17406. #
  17407. # This program is distributed in the hope that it will be useful,
  17408. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17409. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17410. # GNU General Public License for more details.
  17411. #
  17412. # You should have received a copy of the GNU General Public License
  17413. # along with this program; if not, write to the Free Software
  17414. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17415. #
  17416. # END COPYRIGHT BLOCK
  17417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17418. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17419. # check for --with-icu
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17421. $as_echo_n "checking for --with-icu... " >&6; }
  17422. # Check whether --with-icu was given.
  17423. if test "${with_icu+set}" = set; then :
  17424. withval=$with_icu;
  17425. if test "$withval" = "yes"
  17426. then
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17428. $as_echo "yes" >&6; }
  17429. elif test "$withval" = "no"
  17430. then
  17431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17432. $as_echo "no" >&6; }
  17433. as_fn_error $? "ICU is required." "$LINENO" 5
  17434. elif test -d "$withval"/lib
  17435. then
  17436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17437. $as_echo "using $withval" >&6; }
  17438. ICUDIR=$withval
  17439. icu_lib="-L$ICUDIR/lib"
  17440. icu_inc="-I$withval/include"
  17441. icu_bin="$withval/bin"
  17442. else
  17443. echo
  17444. as_fn_error $? "$withval not found" "$LINENO" 5
  17445. fi
  17446. else
  17447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17448. $as_echo "yes" >&6; }
  17449. fi
  17450. # check for --with-icu-inc
  17451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17452. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17453. # Check whether --with-icu-inc was given.
  17454. if test "${with_icu_inc+set}" = set; then :
  17455. withval=$with_icu_inc;
  17456. if test -d "$withval"
  17457. then
  17458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17459. $as_echo "using $withval" >&6; }
  17460. icu_inc="-I$withval"
  17461. else
  17462. echo
  17463. as_fn_error $? "$withval not found" "$LINENO" 5
  17464. fi
  17465. else
  17466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17467. $as_echo "no" >&6; }
  17468. fi
  17469. # check for --with-icu-lib
  17470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17471. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17472. # Check whether --with-icu-lib was given.
  17473. if test "${with_icu_lib+set}" = set; then :
  17474. withval=$with_icu_lib;
  17475. if test -d "$withval"
  17476. then
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17478. $as_echo "using $withval" >&6; }
  17479. icu_lib="-L$withval"
  17480. else
  17481. echo
  17482. as_fn_error $? "$withval not found" "$LINENO" 5
  17483. fi
  17484. else
  17485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17486. $as_echo "no" >&6; }
  17487. fi
  17488. # check for --with-icu-bin
  17489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17490. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17491. # Check whether --with-icu-bin was given.
  17492. if test "${with_icu_bin+set}" = set; then :
  17493. withval=$with_icu_bin;
  17494. if test -d "$withval"
  17495. then
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17497. $as_echo "using $withval" >&6; }
  17498. icu_bin="$withval"
  17499. else
  17500. echo
  17501. as_fn_error $? "$withval not found" "$LINENO" 5
  17502. fi
  17503. else
  17504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17505. $as_echo "no" >&6; }
  17506. fi
  17507. # if ICU is not found yet, try pkg-config
  17508. # last resort
  17509. if test -z "$icu_lib"; then
  17510. # Extract the first word of "icu-config", so it can be a program name with args.
  17511. set dummy icu-config; ac_word=$2
  17512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17513. $as_echo_n "checking for $ac_word... " >&6; }
  17514. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17515. $as_echo_n "(cached) " >&6
  17516. else
  17517. case $ICU_CONFIG in
  17518. [\\/]* | ?:[\\/]*)
  17519. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17520. ;;
  17521. *)
  17522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17523. for as_dir in $PATH
  17524. do
  17525. IFS=$as_save_IFS
  17526. test -z "$as_dir" && as_dir=.
  17527. for ac_exec_ext in '' $ac_executable_extensions; do
  17528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17529. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17531. break 2
  17532. fi
  17533. done
  17534. done
  17535. IFS=$as_save_IFS
  17536. ;;
  17537. esac
  17538. fi
  17539. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17540. if test -n "$ICU_CONFIG"; then
  17541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17542. $as_echo "$ICU_CONFIG" >&6; }
  17543. else
  17544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17545. $as_echo "no" >&6; }
  17546. fi
  17547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17548. $as_echo_n "checking for icu with icu-config... " >&6; }
  17549. if test -n "$ICU_CONFIG"; then
  17550. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17551. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17552. icu_bin=`$ICU_CONFIG --bindir`
  17553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17554. $as_echo "using system ICU" >&6; }
  17555. else
  17556. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17557. fi
  17558. fi
  17559. # BEGIN COPYRIGHT BLOCK
  17560. # Copyright (C) 2006 Red Hat, Inc.
  17561. # All rights reserved.
  17562. #
  17563. # This program is free software; you can redistribute it and/or
  17564. # modify it under the terms of the GNU General Public License
  17565. # as published by the Free Software Foundation; either version 2
  17566. # of the License, or (at your option) any later version.
  17567. #
  17568. # This program is distributed in the hope that it will be useful,
  17569. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17570. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17571. # GNU General Public License for more details.
  17572. #
  17573. # You should have received a copy of the GNU General Public License
  17574. # along with this program; if not, write to the Free Software
  17575. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17576. #
  17577. # END COPYRIGHT BLOCK
  17578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17579. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17581. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17582. # Check whether --with-netsnmp was given.
  17583. if test "${with_netsnmp+set}" = set; then :
  17584. withval=$with_netsnmp;
  17585. if test "$withval" = "yes"; then
  17586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17587. $as_echo "yes" >&6; }
  17588. elif test "$withval" = "no"; then
  17589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17590. $as_echo "no" >&6; }
  17591. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17592. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17594. $as_echo "using $withval" >&6; }
  17595. NETSNMPDIR=$withval
  17596. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17597. netsnmp_inc="-I$withval/include"
  17598. else
  17599. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17600. fi
  17601. netsnmp_lib="-L$withval/lib"
  17602. netsnmp_libdir="$withval/lib"
  17603. else
  17604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17605. $as_echo "yes" >&6; }
  17606. as_fn_error $? "$withval not found" "$LINENO" 5
  17607. fi
  17608. else
  17609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17610. $as_echo "yes" >&6; }
  17611. fi
  17612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17613. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17614. # Check whether --with-netsnmp-inc was given.
  17615. if test "${with_netsnmp_inc+set}" = set; then :
  17616. withval=$with_netsnmp_inc;
  17617. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17619. $as_echo "using $withval" >&6; }
  17620. netsnmp_inc="-I$withval"
  17621. else
  17622. echo
  17623. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17624. fi
  17625. else
  17626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17627. $as_echo "no" >&6; }
  17628. fi
  17629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17630. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17631. # Check whether --with-netsnmp-lib was given.
  17632. if test "${with_netsnmp_lib+set}" = set; then :
  17633. withval=$with_netsnmp_lib;
  17634. if test -d "$withval"
  17635. then
  17636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17637. $as_echo "using $withval" >&6; }
  17638. netsnmp_lib="-L$withval"
  17639. netsnmp_libdir="$withval"
  17640. else
  17641. echo
  17642. as_fn_error $? "$withval not found" "$LINENO" 5
  17643. fi
  17644. else
  17645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17646. $as_echo "no" >&6; }
  17647. fi
  17648. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17650. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17651. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17653. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17654. netsnmp_inc="-I/usr/include"
  17655. else
  17656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17657. $as_echo "no" >&6; }
  17658. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17659. fi
  17660. fi
  17661. if test -n "$netsnmp_inc"; then
  17662. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17663. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17664. else
  17665. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17666. set dummy net-snmp-config; ac_word=$2
  17667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17668. $as_echo_n "checking for $ac_word... " >&6; }
  17669. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17670. $as_echo_n "(cached) " >&6
  17671. else
  17672. case $NETSNMP_CONFIG in
  17673. [\\/]* | ?:[\\/]*)
  17674. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17675. ;;
  17676. *)
  17677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17678. for as_dir in $PATH
  17679. do
  17680. IFS=$as_save_IFS
  17681. test -z "$as_dir" && as_dir=.
  17682. for ac_exec_ext in '' $ac_executable_extensions; do
  17683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17684. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17686. break 2
  17687. fi
  17688. done
  17689. done
  17690. IFS=$as_save_IFS
  17691. ;;
  17692. esac
  17693. fi
  17694. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17695. if test -n "$NETSNMP_CONFIG"; then
  17696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17697. $as_echo "$NETSNMP_CONFIG" >&6; }
  17698. else
  17699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17700. $as_echo "no" >&6; }
  17701. fi
  17702. fi
  17703. if test -n "$NETSNMP_CONFIG"; then
  17704. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17705. else
  17706. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17707. fi
  17708. else
  17709. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17710. fi
  17711. # BEGIN COPYRIGHT BLOCK
  17712. # Copyright (C) 2008 Red Hat, Inc.
  17713. # All rights reserved.
  17714. #
  17715. # This program is free software; you can redistribute it and/or
  17716. # modify it under the terms of the GNU General Public License
  17717. # as published by the Free Software Foundation; either version 2
  17718. # of the License, or (at your option) any later version.
  17719. #
  17720. # This program is distributed in the hope that it will be useful,
  17721. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17722. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17723. # GNU General Public License for more details.
  17724. #
  17725. # You should have received a copy of the GNU General Public License
  17726. # along with this program; if not, write to the Free Software
  17727. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17728. #
  17729. # END COPYRIGHT BLOCK
  17730. # -*- tab-width: 4; -*-
  17731. # Configure paths for Kerberos
  17732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17733. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17734. if test -z "$with_kerberos" ; then
  17735. with_kerberos=yes # if not set on cmdline, set default
  17736. fi
  17737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17738. $as_echo_n "checking for --with-kerberos... " >&6; }
  17739. # Check whether --with-kerberos was given.
  17740. if test "${with_kerberos+set}" = set; then :
  17741. withval=$with_kerberos;
  17742. if test "x$withval" = "xyes"; then
  17743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17744. $as_echo "yes" >&6; }
  17745. elif test "x$withval" = "xno"; then
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17747. $as_echo "no" >&6; }
  17748. with_kerberos=
  17749. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17751. $as_echo "using $withval" >&6; }
  17752. kerberos_incdir="$withval/include"
  17753. kerberos_libdir="$withval/lib"
  17754. else
  17755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17756. $as_echo "yes" >&6; }
  17757. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17758. fi
  17759. else
  17760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17761. $as_echo "no" >&6; }
  17762. with_kerberos=
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17765. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17766. # Check whether --with-kerberos-inc was given.
  17767. if test "${with_kerberos_inc+set}" = set; then :
  17768. withval=$with_kerberos_inc;
  17769. if test -f "$withval"/krb5.h; then
  17770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17771. $as_echo "using $withval" >&6; }
  17772. kerberos_incdir="$withval"
  17773. with_kerberos=yes # implies use of kerberos
  17774. else
  17775. echo
  17776. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17777. fi
  17778. else
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17780. $as_echo "no" >&6; }
  17781. fi
  17782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17783. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17784. # Check whether --with-kerberos-lib was given.
  17785. if test "${with_kerberos_lib+set}" = set; then :
  17786. withval=$with_kerberos_lib;
  17787. if test -d "$withval"; then
  17788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17789. $as_echo "using $withval" >&6; }
  17790. kerberos_libdir="$withval"
  17791. with_kerberos=yes # implies use of kerberos
  17792. else
  17793. echo
  17794. as_fn_error $? "$withval not found" "$LINENO" 5
  17795. fi
  17796. else
  17797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17798. $as_echo "no" >&6; }
  17799. fi
  17800. if test -n "$with_kerberos" ; then
  17801. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17802. if test -z "$KRB5_CONFIG_BIN" ; then
  17803. # Extract the first word of "krb5-config", so it can be a program name with args.
  17804. set dummy krb5-config; ac_word=$2
  17805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17806. $as_echo_n "checking for $ac_word... " >&6; }
  17807. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17808. $as_echo_n "(cached) " >&6
  17809. else
  17810. case $KRB5_CONFIG_BIN in
  17811. [\\/]* | ?:[\\/]*)
  17812. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17813. ;;
  17814. *)
  17815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17816. for as_dir in $PATH
  17817. do
  17818. IFS=$as_save_IFS
  17819. test -z "$as_dir" && as_dir=.
  17820. for ac_exec_ext in '' $ac_executable_extensions; do
  17821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17822. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17824. break 2
  17825. fi
  17826. done
  17827. done
  17828. IFS=$as_save_IFS
  17829. ;;
  17830. esac
  17831. fi
  17832. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17833. if test -n "$KRB5_CONFIG_BIN"; then
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17835. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17836. else
  17837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17838. $as_echo "no" >&6; }
  17839. fi
  17840. fi
  17841. if test -n "$KRB5_CONFIG_BIN" ; then
  17842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17843. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17844. if test -z "$kerberos_libdir" ; then
  17845. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17846. fi
  17847. if test -z "$kerberos_incdir" ; then
  17848. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17849. fi
  17850. if test -n "$kerberos_lib" ; then
  17851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17852. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17853. have_krb5=yes
  17854. fi
  17855. fi
  17856. fi
  17857. fi
  17858. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17859. # save these in order to set them to use the check macros below
  17860. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17861. save_CPPFLAGS="$CPPFLAGS"
  17862. if test -n "$kerberos_incdir" ; then
  17863. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17864. fi
  17865. save_LDFLAGS="$LDFLAGS"
  17866. if test -n "$kerberos_libdir" ; then
  17867. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17868. fi
  17869. krb5_impl=mit
  17870. for ac_header in heim_err.h
  17871. do :
  17872. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17873. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17874. cat >>confdefs.h <<_ACEOF
  17875. #define HAVE_HEIM_ERR_H 1
  17876. _ACEOF
  17877. fi
  17878. done
  17879. if test $ac_cv_header_heim_err_h = yes ; then
  17880. krb5_impl=heimdal
  17881. fi
  17882. if test "x$krb5_impl" = "xmit"; then
  17883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17884. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17885. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17886. $as_echo_n "(cached) " >&6
  17887. else
  17888. ac_check_lib_save_LIBS=$LIBS
  17889. LIBS="-lk5crypto $LIBS"
  17890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17891. /* end confdefs.h. */
  17892. int
  17893. main ()
  17894. {
  17895. return main ();
  17896. ;
  17897. return 0;
  17898. }
  17899. _ACEOF
  17900. if ac_fn_c_try_link "$LINENO"; then :
  17901. ac_cv_lib_k5crypto_main=yes
  17902. else
  17903. ac_cv_lib_k5crypto_main=no
  17904. fi
  17905. rm -f core conftest.err conftest.$ac_objext \
  17906. conftest$ac_exeext conftest.$ac_ext
  17907. LIBS=$ac_check_lib_save_LIBS
  17908. fi
  17909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17910. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17911. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17912. krb5crypto=k5crypto
  17913. else
  17914. krb5crypto=crypto
  17915. fi
  17916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17917. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17918. if ${ac_cv_lib_krb5_main+:} false; then :
  17919. $as_echo_n "(cached) " >&6
  17920. else
  17921. ac_check_lib_save_LIBS=$LIBS
  17922. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17924. /* end confdefs.h. */
  17925. int
  17926. main ()
  17927. {
  17928. return main ();
  17929. ;
  17930. return 0;
  17931. }
  17932. _ACEOF
  17933. if ac_fn_c_try_link "$LINENO"; then :
  17934. ac_cv_lib_krb5_main=yes
  17935. else
  17936. ac_cv_lib_krb5_main=no
  17937. fi
  17938. rm -f core conftest.err conftest.$ac_objext \
  17939. conftest$ac_exeext conftest.$ac_ext
  17940. LIBS=$ac_check_lib_save_LIBS
  17941. fi
  17942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17943. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17944. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17945. have_krb5=yes
  17946. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17947. else
  17948. have_krb5=no
  17949. fi
  17950. elif test "x$krb5_impl" = "xheimdal"; then
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17952. $as_echo_n "checking for main in -ldes... " >&6; }
  17953. if ${ac_cv_lib_des_main+:} false; then :
  17954. $as_echo_n "(cached) " >&6
  17955. else
  17956. ac_check_lib_save_LIBS=$LIBS
  17957. LIBS="-ldes $LIBS"
  17958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17959. /* end confdefs.h. */
  17960. int
  17961. main ()
  17962. {
  17963. return main ();
  17964. ;
  17965. return 0;
  17966. }
  17967. _ACEOF
  17968. if ac_fn_c_try_link "$LINENO"; then :
  17969. ac_cv_lib_des_main=yes
  17970. else
  17971. ac_cv_lib_des_main=no
  17972. fi
  17973. rm -f core conftest.err conftest.$ac_objext \
  17974. conftest$ac_exeext conftest.$ac_ext
  17975. LIBS=$ac_check_lib_save_LIBS
  17976. fi
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17978. $as_echo "$ac_cv_lib_des_main" >&6; }
  17979. if test "x$ac_cv_lib_des_main" = xyes; then :
  17980. krb5crypto=des
  17981. else
  17982. krb5crypto=crypto
  17983. fi
  17984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17985. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17986. if ${ac_cv_lib_krb5_main+:} false; then :
  17987. $as_echo_n "(cached) " >&6
  17988. else
  17989. ac_check_lib_save_LIBS=$LIBS
  17990. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17992. /* end confdefs.h. */
  17993. int
  17994. main ()
  17995. {
  17996. return main ();
  17997. ;
  17998. return 0;
  17999. }
  18000. _ACEOF
  18001. if ac_fn_c_try_link "$LINENO"; then :
  18002. ac_cv_lib_krb5_main=yes
  18003. else
  18004. ac_cv_lib_krb5_main=no
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext \
  18007. conftest$ac_exeext conftest.$ac_ext
  18008. LIBS=$ac_check_lib_save_LIBS
  18009. fi
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  18011. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  18012. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  18013. have_krb5=yes
  18014. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  18015. else
  18016. have_krb5=no
  18017. fi
  18018. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  18019. else
  18020. have_krb5=no
  18021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  18022. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  18023. fi
  18024. # reset to original values
  18025. CPPFLAGS="$save_CPPFLAGS"
  18026. LDFLAGS="$save_LDFLAGS"
  18027. if test -n "$kerberos_incdir" ; then
  18028. kerberos_inc="-I$kerberos_incdir"
  18029. fi
  18030. if test -n "$kerberos_libdir" ; then
  18031. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  18032. fi
  18033. fi
  18034. if test -n "$with_kerberos" ; then
  18035. if test "x$have_krb5" = "xyes" ; then
  18036. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  18037. else
  18038. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  18039. fi
  18040. save_LIBS="$LIBS"
  18041. LIBS="$kerberos_lib"
  18042. save_CPPFLAGS="$CPPFLAGS"
  18043. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  18044. for ac_func in krb5_cc_new_unique
  18045. do :
  18046. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  18047. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  18048. cat >>confdefs.h <<_ACEOF
  18049. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  18050. _ACEOF
  18051. fi
  18052. done
  18053. LIBS="$save_LIBS"
  18054. CPPFLAGS="$save_CPPFLAGS"
  18055. fi
  18056. # BEGIN COPYRIGHT BLOCK
  18057. # Copyright (C) 2007 Red Hat, Inc.
  18058. # All rights reserved.
  18059. #
  18060. # This program is free software; you can redistribute it and/or
  18061. # modify it under the terms of the GNU General Public License
  18062. # as published by the Free Software Foundation; either version 2
  18063. # of the License, or (at your option) any later version.
  18064. #
  18065. # This program is distributed in the hope that it will be useful,
  18066. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18067. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18068. # GNU General Public License for more details.
  18069. #
  18070. # You should have received a copy of the GNU General Public License
  18071. # along with this program; if not, write to the Free Software
  18072. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18073. #
  18074. # END COPYRIGHT BLOCK
  18075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  18076. $as_echo "$as_me: checking for PCRE..." >&6;}
  18077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  18078. $as_echo_n "checking for --with-pcre... " >&6; }
  18079. # Check whether --with-pcre was given.
  18080. if test "${with_pcre+set}" = set; then :
  18081. withval=$with_pcre;
  18082. if test "$withval" = "yes"; then
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18084. $as_echo "yes" >&6; }
  18085. elif test "$withval" = "no"; then
  18086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18087. $as_echo "no" >&6; }
  18088. as_fn_error $? "PCRE is required." "$LINENO" 5
  18089. elif test -d "$withval"/include -a -d "$withval"/lib; then
  18090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  18091. $as_echo "using $withval" >&6; }
  18092. PCREDIR=$withval
  18093. pcre_lib="-L$PCREDIR/lib"
  18094. pcre_libdir="$PCREDIR/lib"
  18095. pcre_incdir="$PCREDIR/include"
  18096. if ! test -e "$pcre_incdir/pcre.h" ; then
  18097. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  18098. fi
  18099. pcre_inc="-I$pcre_incdir"
  18100. else
  18101. echo
  18102. as_fn_error $? "$withval not found" "$LINENO" 5
  18103. fi
  18104. else
  18105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18106. $as_echo "yes" >&6; }
  18107. fi
  18108. #
  18109. # if PCRE is not found yet, try pkg-config
  18110. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  18111. # Extract the first word of "pkg-config", so it can be a program name with args.
  18112. set dummy pkg-config; ac_word=$2
  18113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18114. $as_echo_n "checking for $ac_word... " >&6; }
  18115. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18116. $as_echo_n "(cached) " >&6
  18117. else
  18118. case $PKG_CONFIG in
  18119. [\\/]* | ?:[\\/]*)
  18120. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18121. ;;
  18122. *)
  18123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18124. for as_dir in $PATH
  18125. do
  18126. IFS=$as_save_IFS
  18127. test -z "$as_dir" && as_dir=.
  18128. for ac_exec_ext in '' $ac_executable_extensions; do
  18129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18130. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18132. break 2
  18133. fi
  18134. done
  18135. done
  18136. IFS=$as_save_IFS
  18137. ;;
  18138. esac
  18139. fi
  18140. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18141. if test -n "$PKG_CONFIG"; then
  18142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18143. $as_echo "$PKG_CONFIG" >&6; }
  18144. else
  18145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18146. $as_echo "no" >&6; }
  18147. fi
  18148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  18149. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  18150. if test -n "$PKG_CONFIG"; then
  18151. if $PKG_CONFIG --exists pcre; then
  18152. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  18153. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  18154. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18156. $as_echo "using system PCRE" >&6; }
  18157. elif $PKG_CONFIG --exists libpcre; then
  18158. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  18159. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  18160. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  18162. $as_echo "using system PCRE" >&6; }
  18163. else
  18164. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18165. fi
  18166. fi
  18167. fi
  18168. if test -z "$pcre_inc"; then
  18169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  18170. $as_echo_n "checking for pcre.h... " >&6; }
  18171. if test -f "/usr/include/pcre/pcre.h"; then
  18172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  18173. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  18174. pcre_incdir="/usr/include/pcre"
  18175. pcre_inc="-I/usr/include/pcre"
  18176. pcre_lib='-L$(libdir)'
  18177. pcre_libdir='$(libdir)'
  18178. elif test -f "/usr/include/pcre.h"; then
  18179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  18180. $as_echo "using /usr/include/pcre.h" >&6; }
  18181. pcre_incdir="/usr/include"
  18182. pcre_inc="-I/usr/include"
  18183. pcre_lib='-L$(libdir)'
  18184. pcre_libdir='$(libdir)'
  18185. else
  18186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18187. $as_echo "no" >&6; }
  18188. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  18189. fi
  18190. fi
  18191. # BEGIN COPYRIGHT BLOCK
  18192. # Copyright (C) 2009 Red Hat, Inc.
  18193. # All rights reserved.
  18194. #
  18195. # This program is free software; you can redistribute it and/or
  18196. # modify it under the terms of the GNU General Public License
  18197. # as published by the Free Software Foundation; either version 2
  18198. # of the License, or (at your option) any later version.
  18199. #
  18200. # This program is distributed in the hope that it will be useful,
  18201. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18202. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18203. # GNU General Public License for more details.
  18204. #
  18205. # You should have received a copy of the GNU General Public License
  18206. # along with this program; if not, write to the Free Software
  18207. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18208. #
  18209. # END COPYRIGHT BLOCK
  18210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18211. $as_echo "$as_me: checking for SELinux..." >&6;}
  18212. # check for --with-selinux
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18214. $as_echo_n "checking for --with-selinux... " >&6; }
  18215. # Check whether --with-selinux was given.
  18216. if test "${with_selinux+set}" = set; then :
  18217. withval=$with_selinux;
  18218. if test "$withval" = "no"; then
  18219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18220. $as_echo "no" >&6; }
  18221. else
  18222. with_selinux=yes
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18224. $as_echo "yes" >&6; }
  18225. fi
  18226. else
  18227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18228. $as_echo "no" >&6; }
  18229. fi
  18230. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18231. # set sasl_path for wrapper scripts
  18232. if test -z "$sasl_libdir" ; then
  18233. sasl_path="$libdir/sasl2"
  18234. else
  18235. sasl_path="$sasl_libdir/sasl2"
  18236. fi
  18237. if test "$with_selinux" = "yes"; then
  18238. SELINUX_TRUE=
  18239. SELINUX_FALSE='#'
  18240. else
  18241. SELINUX_TRUE='#'
  18242. SELINUX_FALSE=
  18243. fi
  18244. if test "$with_openldap" = "yes"; then
  18245. OPENLDAP_TRUE=
  18246. OPENLDAP_FALSE='#'
  18247. else
  18248. OPENLDAP_TRUE='#'
  18249. OPENLDAP_FALSE=
  18250. fi
  18251. if test "$platform" = "solaris"; then
  18252. SOLARIS_TRUE=
  18253. SOLARIS_FALSE='#'
  18254. else
  18255. SOLARIS_TRUE='#'
  18256. SOLARIS_FALSE=
  18257. fi
  18258. if test "x$TARGET" = xSPARC; then
  18259. SPARC_TRUE=
  18260. SPARC_FALSE='#'
  18261. else
  18262. SPARC_TRUE='#'
  18263. SPARC_FALSE=
  18264. fi
  18265. # write out paths for binary components
  18266. # AC_DEFINE([USE_OLD_UNHASHED], [], [Use old unhashed code])
  18267. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18268. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18269. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18270. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18271. # we remove them here
  18272. if test "$GCC" != yes ; then
  18273. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18274. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18275. cp -p libtool libtool.orig
  18276. cp -p libtool libtool.tmp
  18277. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18278. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18279. # perl produced write-only code . . .
  18280. sed -e '/^gcc_dir/ d' \
  18281. -e '/^gcc_ver/ d' \
  18282. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18283. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18284. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18285. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18286. libtool > libtool.tmp
  18287. cp -p libtool.tmp libtool
  18288. rm -f libtool.tmp
  18289. fi
  18290. ac_config_files="$ac_config_files Makefile"
  18291. cat >confcache <<\_ACEOF
  18292. # This file is a shell script that caches the results of configure
  18293. # tests run on this system so they can be shared between configure
  18294. # scripts and configure runs, see configure's option --config-cache.
  18295. # It is not useful on other systems. If it contains results you don't
  18296. # want to keep, you may remove or edit it.
  18297. #
  18298. # config.status only pays attention to the cache file if you give it
  18299. # the --recheck option to rerun configure.
  18300. #
  18301. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18302. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18303. # following values.
  18304. _ACEOF
  18305. # The following way of writing the cache mishandles newlines in values,
  18306. # but we know of no workaround that is simple, portable, and efficient.
  18307. # So, we kill variables containing newlines.
  18308. # Ultrix sh set writes to stderr and can't be redirected directly,
  18309. # and sets the high bit in the cache file unless we assign to the vars.
  18310. (
  18311. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18312. eval ac_val=\$$ac_var
  18313. case $ac_val in #(
  18314. *${as_nl}*)
  18315. case $ac_var in #(
  18316. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18317. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18318. esac
  18319. case $ac_var in #(
  18320. _ | IFS | as_nl) ;; #(
  18321. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18322. *) { eval $ac_var=; unset $ac_var;} ;;
  18323. esac ;;
  18324. esac
  18325. done
  18326. (set) 2>&1 |
  18327. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18328. *${as_nl}ac_space=\ *)
  18329. # `set' does not quote correctly, so add quotes: double-quote
  18330. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18331. sed -n \
  18332. "s/'/'\\\\''/g;
  18333. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18334. ;; #(
  18335. *)
  18336. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18337. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18338. ;;
  18339. esac |
  18340. sort
  18341. ) |
  18342. sed '
  18343. /^ac_cv_env_/b end
  18344. t clear
  18345. :clear
  18346. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18347. t end
  18348. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18349. :end' >>confcache
  18350. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18351. if test -w "$cache_file"; then
  18352. if test "x$cache_file" != "x/dev/null"; then
  18353. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18354. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18355. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18356. cat confcache >"$cache_file"
  18357. else
  18358. case $cache_file in #(
  18359. */* | ?:*)
  18360. mv -f confcache "$cache_file"$$ &&
  18361. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18362. *)
  18363. mv -f confcache "$cache_file" ;;
  18364. esac
  18365. fi
  18366. fi
  18367. else
  18368. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18369. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18370. fi
  18371. fi
  18372. rm -f confcache
  18373. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18374. # Let make expand exec_prefix.
  18375. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18376. DEFS=-DHAVE_CONFIG_H
  18377. ac_libobjs=
  18378. ac_ltlibobjs=
  18379. U=
  18380. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18381. # 1. Remove the extension, and $U if already installed.
  18382. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18383. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18384. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18385. # will be set to the directory where LIBOBJS objects are built.
  18386. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18387. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18388. done
  18389. LIBOBJS=$ac_libobjs
  18390. LTLIBOBJS=$ac_ltlibobjs
  18391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18392. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18393. if test -n "$am_sleep_pid"; then
  18394. # Hide warnings about reused PIDs.
  18395. wait $am_sleep_pid 2>/dev/null
  18396. fi
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18398. $as_echo "done" >&6; }
  18399. if test -n "$EXEEXT"; then
  18400. am__EXEEXT_TRUE=
  18401. am__EXEEXT_FALSE='#'
  18402. else
  18403. am__EXEEXT_TRUE='#'
  18404. am__EXEEXT_FALSE=
  18405. fi
  18406. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18407. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18408. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18409. fi
  18410. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18411. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18412. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18413. fi
  18414. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18415. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18416. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18417. fi
  18418. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18419. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18420. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18421. fi
  18422. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18423. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18424. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18425. fi
  18426. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18427. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18428. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18429. fi
  18430. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18431. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18432. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18433. fi
  18434. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18435. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18436. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18437. fi
  18438. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18439. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18440. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18441. fi
  18442. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18443. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18444. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18445. fi
  18446. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18447. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18448. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18449. fi
  18450. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18451. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18452. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18453. fi
  18454. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18455. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18456. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18457. fi
  18458. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18459. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18460. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18461. fi
  18462. if test -z "${enable_posix_winsync_TRUE}" && test -z "${enable_posix_winsync_FALSE}"; then
  18463. as_fn_error $? "conditional \"enable_posix_winsync\" was never defined.
  18464. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18465. fi
  18466. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18467. as_fn_error $? "conditional \"WINNT\" was never defined.
  18468. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18469. fi
  18470. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18471. as_fn_error $? "conditional \"HPUX\" was never defined.
  18472. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18473. fi
  18474. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18475. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18476. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18477. fi
  18478. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18479. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18480. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18481. fi
  18482. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18483. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18484. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18485. fi
  18486. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18487. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18488. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18489. fi
  18490. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18491. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18492. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18493. fi
  18494. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18495. as_fn_error $? "conditional \"SPARC\" was never defined.
  18496. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18497. fi
  18498. : "${CONFIG_STATUS=./config.status}"
  18499. ac_write_fail=0
  18500. ac_clean_files_save=$ac_clean_files
  18501. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18502. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18503. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18504. as_write_fail=0
  18505. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18506. #! $SHELL
  18507. # Generated by $as_me.
  18508. # Run this file to recreate the current configuration.
  18509. # Compiler output produced by configure, useful for debugging
  18510. # configure, is in config.log if it exists.
  18511. debug=false
  18512. ac_cs_recheck=false
  18513. ac_cs_silent=false
  18514. SHELL=\${CONFIG_SHELL-$SHELL}
  18515. export SHELL
  18516. _ASEOF
  18517. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18518. ## -------------------- ##
  18519. ## M4sh Initialization. ##
  18520. ## -------------------- ##
  18521. # Be more Bourne compatible
  18522. DUALCASE=1; export DUALCASE # for MKS sh
  18523. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18524. emulate sh
  18525. NULLCMD=:
  18526. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18527. # is contrary to our usage. Disable this feature.
  18528. alias -g '${1+"$@"}'='"$@"'
  18529. setopt NO_GLOB_SUBST
  18530. else
  18531. case `(set -o) 2>/dev/null` in #(
  18532. *posix*) :
  18533. set -o posix ;; #(
  18534. *) :
  18535. ;;
  18536. esac
  18537. fi
  18538. as_nl='
  18539. '
  18540. export as_nl
  18541. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18542. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18543. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18544. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18545. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18546. # but without wasting forks for bash or zsh.
  18547. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18548. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18549. as_echo='print -r --'
  18550. as_echo_n='print -rn --'
  18551. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18552. as_echo='printf %s\n'
  18553. as_echo_n='printf %s'
  18554. else
  18555. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18556. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18557. as_echo_n='/usr/ucb/echo -n'
  18558. else
  18559. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18560. as_echo_n_body='eval
  18561. arg=$1;
  18562. case $arg in #(
  18563. *"$as_nl"*)
  18564. expr "X$arg" : "X\\(.*\\)$as_nl";
  18565. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18566. esac;
  18567. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18568. '
  18569. export as_echo_n_body
  18570. as_echo_n='sh -c $as_echo_n_body as_echo'
  18571. fi
  18572. export as_echo_body
  18573. as_echo='sh -c $as_echo_body as_echo'
  18574. fi
  18575. # The user is always right.
  18576. if test "${PATH_SEPARATOR+set}" != set; then
  18577. PATH_SEPARATOR=:
  18578. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18579. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18580. PATH_SEPARATOR=';'
  18581. }
  18582. fi
  18583. # IFS
  18584. # We need space, tab and new line, in precisely that order. Quoting is
  18585. # there to prevent editors from complaining about space-tab.
  18586. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18587. # splitting by setting IFS to empty value.)
  18588. IFS=" "" $as_nl"
  18589. # Find who we are. Look in the path if we contain no directory separator.
  18590. as_myself=
  18591. case $0 in #((
  18592. *[\\/]* ) as_myself=$0 ;;
  18593. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18594. for as_dir in $PATH
  18595. do
  18596. IFS=$as_save_IFS
  18597. test -z "$as_dir" && as_dir=.
  18598. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18599. done
  18600. IFS=$as_save_IFS
  18601. ;;
  18602. esac
  18603. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18604. # in which case we are not to be found in the path.
  18605. if test "x$as_myself" = x; then
  18606. as_myself=$0
  18607. fi
  18608. if test ! -f "$as_myself"; then
  18609. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18610. exit 1
  18611. fi
  18612. # Unset variables that we do not need and which cause bugs (e.g. in
  18613. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18614. # suppresses any "Segmentation fault" message there. '((' could
  18615. # trigger a bug in pdksh 5.2.14.
  18616. for as_var in BASH_ENV ENV MAIL MAILPATH
  18617. do eval test x\${$as_var+set} = xset \
  18618. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18619. done
  18620. PS1='$ '
  18621. PS2='> '
  18622. PS4='+ '
  18623. # NLS nuisances.
  18624. LC_ALL=C
  18625. export LC_ALL
  18626. LANGUAGE=C
  18627. export LANGUAGE
  18628. # CDPATH.
  18629. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18630. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18631. # ----------------------------------------
  18632. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18633. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18634. # script with STATUS, using 1 if that was 0.
  18635. as_fn_error ()
  18636. {
  18637. as_status=$1; test $as_status -eq 0 && as_status=1
  18638. if test "$4"; then
  18639. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18640. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18641. fi
  18642. $as_echo "$as_me: error: $2" >&2
  18643. as_fn_exit $as_status
  18644. } # as_fn_error
  18645. # as_fn_set_status STATUS
  18646. # -----------------------
  18647. # Set $? to STATUS, without forking.
  18648. as_fn_set_status ()
  18649. {
  18650. return $1
  18651. } # as_fn_set_status
  18652. # as_fn_exit STATUS
  18653. # -----------------
  18654. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18655. as_fn_exit ()
  18656. {
  18657. set +e
  18658. as_fn_set_status $1
  18659. exit $1
  18660. } # as_fn_exit
  18661. # as_fn_unset VAR
  18662. # ---------------
  18663. # Portably unset VAR.
  18664. as_fn_unset ()
  18665. {
  18666. { eval $1=; unset $1;}
  18667. }
  18668. as_unset=as_fn_unset
  18669. # as_fn_append VAR VALUE
  18670. # ----------------------
  18671. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18672. # advantage of any shell optimizations that allow amortized linear growth over
  18673. # repeated appends, instead of the typical quadratic growth present in naive
  18674. # implementations.
  18675. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18676. eval 'as_fn_append ()
  18677. {
  18678. eval $1+=\$2
  18679. }'
  18680. else
  18681. as_fn_append ()
  18682. {
  18683. eval $1=\$$1\$2
  18684. }
  18685. fi # as_fn_append
  18686. # as_fn_arith ARG...
  18687. # ------------------
  18688. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18689. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18690. # must be portable across $(()) and expr.
  18691. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18692. eval 'as_fn_arith ()
  18693. {
  18694. as_val=$(( $* ))
  18695. }'
  18696. else
  18697. as_fn_arith ()
  18698. {
  18699. as_val=`expr "$@" || test $? -eq 1`
  18700. }
  18701. fi # as_fn_arith
  18702. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18703. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18704. as_expr=expr
  18705. else
  18706. as_expr=false
  18707. fi
  18708. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18709. as_basename=basename
  18710. else
  18711. as_basename=false
  18712. fi
  18713. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18714. as_dirname=dirname
  18715. else
  18716. as_dirname=false
  18717. fi
  18718. as_me=`$as_basename -- "$0" ||
  18719. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18720. X"$0" : 'X\(//\)$' \| \
  18721. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18722. $as_echo X/"$0" |
  18723. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18724. s//\1/
  18725. q
  18726. }
  18727. /^X\/\(\/\/\)$/{
  18728. s//\1/
  18729. q
  18730. }
  18731. /^X\/\(\/\).*/{
  18732. s//\1/
  18733. q
  18734. }
  18735. s/.*/./; q'`
  18736. # Avoid depending upon Character Ranges.
  18737. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18738. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18739. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18740. as_cr_digits='0123456789'
  18741. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18742. ECHO_C= ECHO_N= ECHO_T=
  18743. case `echo -n x` in #(((((
  18744. -n*)
  18745. case `echo 'xy\c'` in
  18746. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18747. xy) ECHO_C='\c';;
  18748. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18749. ECHO_T=' ';;
  18750. esac;;
  18751. *)
  18752. ECHO_N='-n';;
  18753. esac
  18754. rm -f conf$$ conf$$.exe conf$$.file
  18755. if test -d conf$$.dir; then
  18756. rm -f conf$$.dir/conf$$.file
  18757. else
  18758. rm -f conf$$.dir
  18759. mkdir conf$$.dir 2>/dev/null
  18760. fi
  18761. if (echo >conf$$.file) 2>/dev/null; then
  18762. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18763. as_ln_s='ln -s'
  18764. # ... but there are two gotchas:
  18765. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18766. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18767. # In both cases, we have to default to `cp -pR'.
  18768. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18769. as_ln_s='cp -pR'
  18770. elif ln conf$$.file conf$$ 2>/dev/null; then
  18771. as_ln_s=ln
  18772. else
  18773. as_ln_s='cp -pR'
  18774. fi
  18775. else
  18776. as_ln_s='cp -pR'
  18777. fi
  18778. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18779. rmdir conf$$.dir 2>/dev/null
  18780. # as_fn_mkdir_p
  18781. # -------------
  18782. # Create "$as_dir" as a directory, including parents if necessary.
  18783. as_fn_mkdir_p ()
  18784. {
  18785. case $as_dir in #(
  18786. -*) as_dir=./$as_dir;;
  18787. esac
  18788. test -d "$as_dir" || eval $as_mkdir_p || {
  18789. as_dirs=
  18790. while :; do
  18791. case $as_dir in #(
  18792. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18793. *) as_qdir=$as_dir;;
  18794. esac
  18795. as_dirs="'$as_qdir' $as_dirs"
  18796. as_dir=`$as_dirname -- "$as_dir" ||
  18797. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18798. X"$as_dir" : 'X\(//\)[^/]' \| \
  18799. X"$as_dir" : 'X\(//\)$' \| \
  18800. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18801. $as_echo X"$as_dir" |
  18802. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18803. s//\1/
  18804. q
  18805. }
  18806. /^X\(\/\/\)[^/].*/{
  18807. s//\1/
  18808. q
  18809. }
  18810. /^X\(\/\/\)$/{
  18811. s//\1/
  18812. q
  18813. }
  18814. /^X\(\/\).*/{
  18815. s//\1/
  18816. q
  18817. }
  18818. s/.*/./; q'`
  18819. test -d "$as_dir" && break
  18820. done
  18821. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18822. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18823. } # as_fn_mkdir_p
  18824. if mkdir -p . 2>/dev/null; then
  18825. as_mkdir_p='mkdir -p "$as_dir"'
  18826. else
  18827. test -d ./-p && rmdir ./-p
  18828. as_mkdir_p=false
  18829. fi
  18830. # as_fn_executable_p FILE
  18831. # -----------------------
  18832. # Test if FILE is an executable regular file.
  18833. as_fn_executable_p ()
  18834. {
  18835. test -f "$1" && test -x "$1"
  18836. } # as_fn_executable_p
  18837. as_test_x='test -x'
  18838. as_executable_p=as_fn_executable_p
  18839. # Sed expression to map a string onto a valid CPP name.
  18840. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18841. # Sed expression to map a string onto a valid variable name.
  18842. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18843. exec 6>&1
  18844. ## ----------------------------------- ##
  18845. ## Main body of $CONFIG_STATUS script. ##
  18846. ## ----------------------------------- ##
  18847. _ASEOF
  18848. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18849. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18850. # Save the log message, to keep $0 and so on meaningful, and to
  18851. # report actual input values of CONFIG_FILES etc. instead of their
  18852. # values after options handling.
  18853. ac_log="
  18854. This file was extended by dirsrv $as_me 1.0, which was
  18855. generated by GNU Autoconf 2.69. Invocation command line was
  18856. CONFIG_FILES = $CONFIG_FILES
  18857. CONFIG_HEADERS = $CONFIG_HEADERS
  18858. CONFIG_LINKS = $CONFIG_LINKS
  18859. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18860. $ $0 $@
  18861. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18862. "
  18863. _ACEOF
  18864. case $ac_config_files in *"
  18865. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18866. esac
  18867. case $ac_config_headers in *"
  18868. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18869. esac
  18870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18871. # Files that config.status was made for.
  18872. config_files="$ac_config_files"
  18873. config_headers="$ac_config_headers"
  18874. config_commands="$ac_config_commands"
  18875. _ACEOF
  18876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18877. ac_cs_usage="\
  18878. \`$as_me' instantiates files and other configuration actions
  18879. from templates according to the current configuration. Unless the files
  18880. and actions are specified as TAGs, all are instantiated by default.
  18881. Usage: $0 [OPTION]... [TAG]...
  18882. -h, --help print this help, then exit
  18883. -V, --version print version number and configuration settings, then exit
  18884. --config print configuration, then exit
  18885. -q, --quiet, --silent
  18886. do not print progress messages
  18887. -d, --debug don't remove temporary files
  18888. --recheck update $as_me by reconfiguring in the same conditions
  18889. --file=FILE[:TEMPLATE]
  18890. instantiate the configuration file FILE
  18891. --header=FILE[:TEMPLATE]
  18892. instantiate the configuration header FILE
  18893. Configuration files:
  18894. $config_files
  18895. Configuration headers:
  18896. $config_headers
  18897. Configuration commands:
  18898. $config_commands
  18899. Report bugs to <http://bugzilla.redhat.com/>."
  18900. _ACEOF
  18901. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18902. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18903. ac_cs_version="\\
  18904. dirsrv config.status 1.0
  18905. configured by $0, generated by GNU Autoconf 2.69,
  18906. with options \\"\$ac_cs_config\\"
  18907. Copyright (C) 2012 Free Software Foundation, Inc.
  18908. This config.status script is free software; the Free Software Foundation
  18909. gives unlimited permission to copy, distribute and modify it."
  18910. ac_pwd='$ac_pwd'
  18911. srcdir='$srcdir'
  18912. INSTALL='$INSTALL'
  18913. MKDIR_P='$MKDIR_P'
  18914. AWK='$AWK'
  18915. test -n "\$AWK" || AWK=awk
  18916. _ACEOF
  18917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18918. # The default lists apply if the user does not specify any file.
  18919. ac_need_defaults=:
  18920. while test $# != 0
  18921. do
  18922. case $1 in
  18923. --*=?*)
  18924. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18925. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18926. ac_shift=:
  18927. ;;
  18928. --*=)
  18929. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18930. ac_optarg=
  18931. ac_shift=:
  18932. ;;
  18933. *)
  18934. ac_option=$1
  18935. ac_optarg=$2
  18936. ac_shift=shift
  18937. ;;
  18938. esac
  18939. case $ac_option in
  18940. # Handling of the options.
  18941. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18942. ac_cs_recheck=: ;;
  18943. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18944. $as_echo "$ac_cs_version"; exit ;;
  18945. --config | --confi | --conf | --con | --co | --c )
  18946. $as_echo "$ac_cs_config"; exit ;;
  18947. --debug | --debu | --deb | --de | --d | -d )
  18948. debug=: ;;
  18949. --file | --fil | --fi | --f )
  18950. $ac_shift
  18951. case $ac_optarg in
  18952. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18953. '') as_fn_error $? "missing file argument" ;;
  18954. esac
  18955. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18956. ac_need_defaults=false;;
  18957. --header | --heade | --head | --hea )
  18958. $ac_shift
  18959. case $ac_optarg in
  18960. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18961. esac
  18962. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18963. ac_need_defaults=false;;
  18964. --he | --h)
  18965. # Conflict between --help and --header
  18966. as_fn_error $? "ambiguous option: \`$1'
  18967. Try \`$0 --help' for more information.";;
  18968. --help | --hel | -h )
  18969. $as_echo "$ac_cs_usage"; exit ;;
  18970. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18971. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18972. ac_cs_silent=: ;;
  18973. # This is an error.
  18974. -*) as_fn_error $? "unrecognized option: \`$1'
  18975. Try \`$0 --help' for more information." ;;
  18976. *) as_fn_append ac_config_targets " $1"
  18977. ac_need_defaults=false ;;
  18978. esac
  18979. shift
  18980. done
  18981. ac_configure_extra_args=
  18982. if $ac_cs_silent; then
  18983. exec 6>/dev/null
  18984. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18985. fi
  18986. _ACEOF
  18987. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18988. if \$ac_cs_recheck; then
  18989. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18990. shift
  18991. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18992. CONFIG_SHELL='$SHELL'
  18993. export CONFIG_SHELL
  18994. exec "\$@"
  18995. fi
  18996. _ACEOF
  18997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18998. exec 5>>config.log
  18999. {
  19000. echo
  19001. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19002. ## Running $as_me. ##
  19003. _ASBOX
  19004. $as_echo "$ac_log"
  19005. } >&5
  19006. _ACEOF
  19007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19008. #
  19009. # INIT-COMMANDS
  19010. #
  19011. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19012. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19013. # if CDPATH is set.
  19014. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19015. sed_quote_subst='$sed_quote_subst'
  19016. double_quote_subst='$double_quote_subst'
  19017. delay_variable_subst='$delay_variable_subst'
  19018. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19019. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19020. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19021. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19022. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19023. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19024. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19025. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19026. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19027. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19028. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19029. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19030. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19031. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19032. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19033. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19034. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19035. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19036. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19037. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19038. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19039. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19040. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19041. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19042. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19043. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19044. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19045. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19046. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19047. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19048. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19049. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19050. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19051. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19052. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19053. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19054. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19055. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19056. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19057. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19058. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19059. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19060. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19061. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19062. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19063. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19064. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19065. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19066. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19067. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19068. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19069. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19070. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19071. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19072. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19073. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19074. 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"`'
  19075. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19076. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19077. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19078. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19079. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19080. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19081. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19082. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19083. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19084. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19085. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19086. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19087. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19088. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19089. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19090. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19091. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19092. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19093. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19094. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19095. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19096. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19097. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19098. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19099. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19100. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19101. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19102. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19103. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19104. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19105. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19106. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19107. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19108. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19109. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19110. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19111. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19112. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19113. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19114. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19115. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19116. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19117. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19118. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19119. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19120. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19121. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19122. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19123. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19124. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19125. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19126. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19127. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19128. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19129. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19130. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19131. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19132. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19133. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19134. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19135. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19136. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19137. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19138. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19139. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19140. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19141. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19142. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19143. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19144. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19145. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19146. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19147. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19148. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19149. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19150. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19151. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19152. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19153. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19154. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19155. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19156. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19157. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19158. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19159. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19160. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19161. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19162. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19163. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19164. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19165. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19166. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19167. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19168. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19169. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19170. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19171. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19172. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19173. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19174. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19175. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19176. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19177. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19178. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19179. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19180. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19181. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19182. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19183. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19184. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19185. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19186. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19187. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19188. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19189. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19190. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19191. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19192. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19193. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19194. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19195. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19196. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19197. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19198. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19199. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19200. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19201. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19202. LTCC='$LTCC'
  19203. LTCFLAGS='$LTCFLAGS'
  19204. compiler='$compiler_DEFAULT'
  19205. # A function that is used when there is no print builtin or printf.
  19206. func_fallback_echo ()
  19207. {
  19208. eval 'cat <<_LTECHO_EOF
  19209. \$1
  19210. _LTECHO_EOF'
  19211. }
  19212. # Quote evaled strings.
  19213. for var in SHELL \
  19214. ECHO \
  19215. PATH_SEPARATOR \
  19216. SED \
  19217. GREP \
  19218. EGREP \
  19219. FGREP \
  19220. LD \
  19221. NM \
  19222. LN_S \
  19223. lt_SP2NL \
  19224. lt_NL2SP \
  19225. reload_flag \
  19226. OBJDUMP \
  19227. deplibs_check_method \
  19228. file_magic_cmd \
  19229. file_magic_glob \
  19230. want_nocaseglob \
  19231. DLLTOOL \
  19232. sharedlib_from_linklib_cmd \
  19233. AR \
  19234. AR_FLAGS \
  19235. archiver_list_spec \
  19236. STRIP \
  19237. RANLIB \
  19238. CC \
  19239. CFLAGS \
  19240. compiler \
  19241. lt_cv_sys_global_symbol_pipe \
  19242. lt_cv_sys_global_symbol_to_cdecl \
  19243. lt_cv_sys_global_symbol_to_c_name_address \
  19244. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19245. nm_file_list_spec \
  19246. lt_prog_compiler_no_builtin_flag \
  19247. lt_prog_compiler_pic \
  19248. lt_prog_compiler_wl \
  19249. lt_prog_compiler_static \
  19250. lt_cv_prog_compiler_c_o \
  19251. need_locks \
  19252. MANIFEST_TOOL \
  19253. DSYMUTIL \
  19254. NMEDIT \
  19255. LIPO \
  19256. OTOOL \
  19257. OTOOL64 \
  19258. shrext_cmds \
  19259. export_dynamic_flag_spec \
  19260. whole_archive_flag_spec \
  19261. compiler_needs_object \
  19262. with_gnu_ld \
  19263. allow_undefined_flag \
  19264. no_undefined_flag \
  19265. hardcode_libdir_flag_spec \
  19266. hardcode_libdir_separator \
  19267. exclude_expsyms \
  19268. include_expsyms \
  19269. file_list_spec \
  19270. variables_saved_for_relink \
  19271. libname_spec \
  19272. library_names_spec \
  19273. soname_spec \
  19274. install_override_mode \
  19275. finish_eval \
  19276. old_striplib \
  19277. striplib \
  19278. compiler_lib_search_dirs \
  19279. predep_objects \
  19280. postdep_objects \
  19281. predeps \
  19282. postdeps \
  19283. compiler_lib_search_path \
  19284. LD_CXX \
  19285. reload_flag_CXX \
  19286. compiler_CXX \
  19287. lt_prog_compiler_no_builtin_flag_CXX \
  19288. lt_prog_compiler_pic_CXX \
  19289. lt_prog_compiler_wl_CXX \
  19290. lt_prog_compiler_static_CXX \
  19291. lt_cv_prog_compiler_c_o_CXX \
  19292. export_dynamic_flag_spec_CXX \
  19293. whole_archive_flag_spec_CXX \
  19294. compiler_needs_object_CXX \
  19295. with_gnu_ld_CXX \
  19296. allow_undefined_flag_CXX \
  19297. no_undefined_flag_CXX \
  19298. hardcode_libdir_flag_spec_CXX \
  19299. hardcode_libdir_separator_CXX \
  19300. exclude_expsyms_CXX \
  19301. include_expsyms_CXX \
  19302. file_list_spec_CXX \
  19303. compiler_lib_search_dirs_CXX \
  19304. predep_objects_CXX \
  19305. postdep_objects_CXX \
  19306. predeps_CXX \
  19307. postdeps_CXX \
  19308. compiler_lib_search_path_CXX; do
  19309. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19310. *[\\\\\\\`\\"\\\$]*)
  19311. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19312. ;;
  19313. *)
  19314. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19315. ;;
  19316. esac
  19317. done
  19318. # Double-quote double-evaled strings.
  19319. for var in reload_cmds \
  19320. old_postinstall_cmds \
  19321. old_postuninstall_cmds \
  19322. old_archive_cmds \
  19323. extract_expsyms_cmds \
  19324. old_archive_from_new_cmds \
  19325. old_archive_from_expsyms_cmds \
  19326. archive_cmds \
  19327. archive_expsym_cmds \
  19328. module_cmds \
  19329. module_expsym_cmds \
  19330. export_symbols_cmds \
  19331. prelink_cmds \
  19332. postlink_cmds \
  19333. postinstall_cmds \
  19334. postuninstall_cmds \
  19335. finish_cmds \
  19336. sys_lib_search_path_spec \
  19337. sys_lib_dlsearch_path_spec \
  19338. reload_cmds_CXX \
  19339. old_archive_cmds_CXX \
  19340. old_archive_from_new_cmds_CXX \
  19341. old_archive_from_expsyms_cmds_CXX \
  19342. archive_cmds_CXX \
  19343. archive_expsym_cmds_CXX \
  19344. module_cmds_CXX \
  19345. module_expsym_cmds_CXX \
  19346. export_symbols_cmds_CXX \
  19347. prelink_cmds_CXX \
  19348. postlink_cmds_CXX; do
  19349. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19350. *[\\\\\\\`\\"\\\$]*)
  19351. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19352. ;;
  19353. *)
  19354. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19355. ;;
  19356. esac
  19357. done
  19358. ac_aux_dir='$ac_aux_dir'
  19359. xsi_shell='$xsi_shell'
  19360. lt_shell_append='$lt_shell_append'
  19361. # See if we are running on zsh, and set the options which allow our
  19362. # commands through without removal of \ escapes INIT.
  19363. if test -n "\${ZSH_VERSION+set}" ; then
  19364. setopt NO_GLOB_SUBST
  19365. fi
  19366. PACKAGE='$PACKAGE'
  19367. VERSION='$VERSION'
  19368. TIMESTAMP='$TIMESTAMP'
  19369. RM='$RM'
  19370. ofile='$ofile'
  19371. _ACEOF
  19372. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19373. # Handling of arguments.
  19374. for ac_config_target in $ac_config_targets
  19375. do
  19376. case $ac_config_target in
  19377. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19378. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19379. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19380. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19381. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19382. esac
  19383. done
  19384. # If the user did not use the arguments to specify the items to instantiate,
  19385. # then the envvar interface is used. Set only those that are not.
  19386. # We use the long form for the default assignment because of an extremely
  19387. # bizarre bug on SunOS 4.1.3.
  19388. if $ac_need_defaults; then
  19389. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19390. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19391. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19392. fi
  19393. # Have a temporary directory for convenience. Make it in the build tree
  19394. # simply because there is no reason against having it here, and in addition,
  19395. # creating and moving files from /tmp can sometimes cause problems.
  19396. # Hook for its removal unless debugging.
  19397. # Note that there is a small window in which the directory will not be cleaned:
  19398. # after its creation but before its name has been assigned to `$tmp'.
  19399. $debug ||
  19400. {
  19401. tmp= ac_tmp=
  19402. trap 'exit_status=$?
  19403. : "${ac_tmp:=$tmp}"
  19404. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19405. ' 0
  19406. trap 'as_fn_exit 1' 1 2 13 15
  19407. }
  19408. # Create a (secure) tmp directory for tmp files.
  19409. {
  19410. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19411. test -d "$tmp"
  19412. } ||
  19413. {
  19414. tmp=./conf$$-$RANDOM
  19415. (umask 077 && mkdir "$tmp")
  19416. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19417. ac_tmp=$tmp
  19418. # Set up the scripts for CONFIG_FILES section.
  19419. # No need to generate them if there are no CONFIG_FILES.
  19420. # This happens for instance with `./config.status config.h'.
  19421. if test -n "$CONFIG_FILES"; then
  19422. ac_cr=`echo X | tr X '\015'`
  19423. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19424. # But we know of no other shell where ac_cr would be empty at this
  19425. # point, so we can use a bashism as a fallback.
  19426. if test "x$ac_cr" = x; then
  19427. eval ac_cr=\$\'\\r\'
  19428. fi
  19429. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19430. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19431. ac_cs_awk_cr='\\r'
  19432. else
  19433. ac_cs_awk_cr=$ac_cr
  19434. fi
  19435. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19436. _ACEOF
  19437. {
  19438. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19439. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19440. echo "_ACEOF"
  19441. } >conf$$subs.sh ||
  19442. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19443. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19444. ac_delim='%!_!# '
  19445. for ac_last_try in false false false false false :; do
  19446. . ./conf$$subs.sh ||
  19447. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19448. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19449. if test $ac_delim_n = $ac_delim_num; then
  19450. break
  19451. elif $ac_last_try; then
  19452. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19453. else
  19454. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19455. fi
  19456. done
  19457. rm -f conf$$subs.sh
  19458. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19459. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19460. _ACEOF
  19461. sed -n '
  19462. h
  19463. s/^/S["/; s/!.*/"]=/
  19464. p
  19465. g
  19466. s/^[^!]*!//
  19467. :repl
  19468. t repl
  19469. s/'"$ac_delim"'$//
  19470. t delim
  19471. :nl
  19472. h
  19473. s/\(.\{148\}\)..*/\1/
  19474. t more1
  19475. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19476. p
  19477. n
  19478. b repl
  19479. :more1
  19480. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19481. p
  19482. g
  19483. s/.\{148\}//
  19484. t nl
  19485. :delim
  19486. h
  19487. s/\(.\{148\}\)..*/\1/
  19488. t more2
  19489. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19490. p
  19491. b
  19492. :more2
  19493. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19494. p
  19495. g
  19496. s/.\{148\}//
  19497. t delim
  19498. ' <conf$$subs.awk | sed '
  19499. /^[^""]/{
  19500. N
  19501. s/\n//
  19502. }
  19503. ' >>$CONFIG_STATUS || ac_write_fail=1
  19504. rm -f conf$$subs.awk
  19505. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19506. _ACAWK
  19507. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19508. for (key in S) S_is_set[key] = 1
  19509. FS = ""
  19510. }
  19511. {
  19512. line = $ 0
  19513. nfields = split(line, field, "@")
  19514. substed = 0
  19515. len = length(field[1])
  19516. for (i = 2; i < nfields; i++) {
  19517. key = field[i]
  19518. keylen = length(key)
  19519. if (S_is_set[key]) {
  19520. value = S[key]
  19521. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19522. len += length(value) + length(field[++i])
  19523. substed = 1
  19524. } else
  19525. len += 1 + keylen
  19526. }
  19527. print line
  19528. }
  19529. _ACAWK
  19530. _ACEOF
  19531. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19532. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19533. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19534. else
  19535. cat
  19536. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19537. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19538. _ACEOF
  19539. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19540. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19541. # trailing colons and then remove the whole line if VPATH becomes empty
  19542. # (actually we leave an empty line to preserve line numbers).
  19543. if test "x$srcdir" = x.; then
  19544. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19545. h
  19546. s///
  19547. s/^/:/
  19548. s/[ ]*$/:/
  19549. s/:\$(srcdir):/:/g
  19550. s/:\${srcdir}:/:/g
  19551. s/:@srcdir@:/:/g
  19552. s/^:*//
  19553. s/:*$//
  19554. x
  19555. s/\(=[ ]*\).*/\1/
  19556. G
  19557. s/\n//
  19558. s/^[^=]*=[ ]*$//
  19559. }'
  19560. fi
  19561. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19562. fi # test -n "$CONFIG_FILES"
  19563. # Set up the scripts for CONFIG_HEADERS section.
  19564. # No need to generate them if there are no CONFIG_HEADERS.
  19565. # This happens for instance with `./config.status Makefile'.
  19566. if test -n "$CONFIG_HEADERS"; then
  19567. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19568. BEGIN {
  19569. _ACEOF
  19570. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19571. # here-document in config.status, that substitutes the proper values into
  19572. # config.h.in to produce config.h.
  19573. # Create a delimiter string that does not exist in confdefs.h, to ease
  19574. # handling of long lines.
  19575. ac_delim='%!_!# '
  19576. for ac_last_try in false false :; do
  19577. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19578. if test -z "$ac_tt"; then
  19579. break
  19580. elif $ac_last_try; then
  19581. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19582. else
  19583. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19584. fi
  19585. done
  19586. # For the awk script, D is an array of macro values keyed by name,
  19587. # likewise P contains macro parameters if any. Preserve backslash
  19588. # newline sequences.
  19589. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19590. sed -n '
  19591. s/.\{148\}/&'"$ac_delim"'/g
  19592. t rset
  19593. :rset
  19594. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19595. t def
  19596. d
  19597. :def
  19598. s/\\$//
  19599. t bsnl
  19600. s/["\\]/\\&/g
  19601. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19602. D["\1"]=" \3"/p
  19603. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19604. d
  19605. :bsnl
  19606. s/["\\]/\\&/g
  19607. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19608. D["\1"]=" \3\\\\\\n"\\/p
  19609. t cont
  19610. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19611. t cont
  19612. d
  19613. :cont
  19614. n
  19615. s/.\{148\}/&'"$ac_delim"'/g
  19616. t clear
  19617. :clear
  19618. s/\\$//
  19619. t bsnlc
  19620. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19621. d
  19622. :bsnlc
  19623. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19624. b cont
  19625. ' <confdefs.h | sed '
  19626. s/'"$ac_delim"'/"\\\
  19627. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19628. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19629. for (key in D) D_is_set[key] = 1
  19630. FS = ""
  19631. }
  19632. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19633. line = \$ 0
  19634. split(line, arg, " ")
  19635. if (arg[1] == "#") {
  19636. defundef = arg[2]
  19637. mac1 = arg[3]
  19638. } else {
  19639. defundef = substr(arg[1], 2)
  19640. mac1 = arg[2]
  19641. }
  19642. split(mac1, mac2, "(") #)
  19643. macro = mac2[1]
  19644. prefix = substr(line, 1, index(line, defundef) - 1)
  19645. if (D_is_set[macro]) {
  19646. # Preserve the white space surrounding the "#".
  19647. print prefix "define", macro P[macro] D[macro]
  19648. next
  19649. } else {
  19650. # Replace #undef with comments. This is necessary, for example,
  19651. # in the case of _POSIX_SOURCE, which is predefined and required
  19652. # on some systems where configure will not decide to define it.
  19653. if (defundef == "undef") {
  19654. print "/*", prefix defundef, macro, "*/"
  19655. next
  19656. }
  19657. }
  19658. }
  19659. { print }
  19660. _ACAWK
  19661. _ACEOF
  19662. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19663. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19664. fi # test -n "$CONFIG_HEADERS"
  19665. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19666. shift
  19667. for ac_tag
  19668. do
  19669. case $ac_tag in
  19670. :[FHLC]) ac_mode=$ac_tag; continue;;
  19671. esac
  19672. case $ac_mode$ac_tag in
  19673. :[FHL]*:*);;
  19674. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19675. :[FH]-) ac_tag=-:-;;
  19676. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19677. esac
  19678. ac_save_IFS=$IFS
  19679. IFS=:
  19680. set x $ac_tag
  19681. IFS=$ac_save_IFS
  19682. shift
  19683. ac_file=$1
  19684. shift
  19685. case $ac_mode in
  19686. :L) ac_source=$1;;
  19687. :[FH])
  19688. ac_file_inputs=
  19689. for ac_f
  19690. do
  19691. case $ac_f in
  19692. -) ac_f="$ac_tmp/stdin";;
  19693. *) # Look for the file first in the build tree, then in the source tree
  19694. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19695. # because $ac_f cannot contain `:'.
  19696. test -f "$ac_f" ||
  19697. case $ac_f in
  19698. [\\/$]*) false;;
  19699. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19700. esac ||
  19701. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19702. esac
  19703. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19704. as_fn_append ac_file_inputs " '$ac_f'"
  19705. done
  19706. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19707. # use $as_me), people would be surprised to read:
  19708. # /* config.h. Generated by config.status. */
  19709. configure_input='Generated from '`
  19710. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19711. `' by configure.'
  19712. if test x"$ac_file" != x-; then
  19713. configure_input="$ac_file. $configure_input"
  19714. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19715. $as_echo "$as_me: creating $ac_file" >&6;}
  19716. fi
  19717. # Neutralize special characters interpreted by sed in replacement strings.
  19718. case $configure_input in #(
  19719. *\&* | *\|* | *\\* )
  19720. ac_sed_conf_input=`$as_echo "$configure_input" |
  19721. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19722. *) ac_sed_conf_input=$configure_input;;
  19723. esac
  19724. case $ac_tag in
  19725. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19726. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19727. esac
  19728. ;;
  19729. esac
  19730. ac_dir=`$as_dirname -- "$ac_file" ||
  19731. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19732. X"$ac_file" : 'X\(//\)[^/]' \| \
  19733. X"$ac_file" : 'X\(//\)$' \| \
  19734. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19735. $as_echo X"$ac_file" |
  19736. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19737. s//\1/
  19738. q
  19739. }
  19740. /^X\(\/\/\)[^/].*/{
  19741. s//\1/
  19742. q
  19743. }
  19744. /^X\(\/\/\)$/{
  19745. s//\1/
  19746. q
  19747. }
  19748. /^X\(\/\).*/{
  19749. s//\1/
  19750. q
  19751. }
  19752. s/.*/./; q'`
  19753. as_dir="$ac_dir"; as_fn_mkdir_p
  19754. ac_builddir=.
  19755. case "$ac_dir" in
  19756. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19757. *)
  19758. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19759. # A ".." for each directory in $ac_dir_suffix.
  19760. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19761. case $ac_top_builddir_sub in
  19762. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19763. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19764. esac ;;
  19765. esac
  19766. ac_abs_top_builddir=$ac_pwd
  19767. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19768. # for backward compatibility:
  19769. ac_top_builddir=$ac_top_build_prefix
  19770. case $srcdir in
  19771. .) # We are building in place.
  19772. ac_srcdir=.
  19773. ac_top_srcdir=$ac_top_builddir_sub
  19774. ac_abs_top_srcdir=$ac_pwd ;;
  19775. [\\/]* | ?:[\\/]* ) # Absolute name.
  19776. ac_srcdir=$srcdir$ac_dir_suffix;
  19777. ac_top_srcdir=$srcdir
  19778. ac_abs_top_srcdir=$srcdir ;;
  19779. *) # Relative name.
  19780. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19781. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19782. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19783. esac
  19784. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19785. case $ac_mode in
  19786. :F)
  19787. #
  19788. # CONFIG_FILE
  19789. #
  19790. case $INSTALL in
  19791. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19792. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19793. esac
  19794. ac_MKDIR_P=$MKDIR_P
  19795. case $MKDIR_P in
  19796. [\\/$]* | ?:[\\/]* ) ;;
  19797. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19798. esac
  19799. _ACEOF
  19800. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19801. # If the template does not know about datarootdir, expand it.
  19802. # FIXME: This hack should be removed a few years after 2.60.
  19803. ac_datarootdir_hack=; ac_datarootdir_seen=
  19804. ac_sed_dataroot='
  19805. /datarootdir/ {
  19806. p
  19807. q
  19808. }
  19809. /@datadir@/p
  19810. /@docdir@/p
  19811. /@infodir@/p
  19812. /@localedir@/p
  19813. /@mandir@/p'
  19814. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19815. *datarootdir*) ac_datarootdir_seen=yes;;
  19816. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19818. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19819. _ACEOF
  19820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19821. ac_datarootdir_hack='
  19822. s&@datadir@&$datadir&g
  19823. s&@docdir@&$docdir&g
  19824. s&@infodir@&$infodir&g
  19825. s&@localedir@&$localedir&g
  19826. s&@mandir@&$mandir&g
  19827. s&\\\${datarootdir}&$datarootdir&g' ;;
  19828. esac
  19829. _ACEOF
  19830. # Neutralize VPATH when `$srcdir' = `.'.
  19831. # Shell code in configure.ac might set extrasub.
  19832. # FIXME: do we really want to maintain this feature?
  19833. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19834. ac_sed_extra="$ac_vpsub
  19835. $extrasub
  19836. _ACEOF
  19837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19838. :t
  19839. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19840. s|@configure_input@|$ac_sed_conf_input|;t t
  19841. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19842. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19843. s&@srcdir@&$ac_srcdir&;t t
  19844. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19845. s&@top_srcdir@&$ac_top_srcdir&;t t
  19846. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19847. s&@builddir@&$ac_builddir&;t t
  19848. s&@abs_builddir@&$ac_abs_builddir&;t t
  19849. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19850. s&@INSTALL@&$ac_INSTALL&;t t
  19851. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19852. $ac_datarootdir_hack
  19853. "
  19854. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19855. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19856. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19857. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19858. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19859. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19861. which seems to be undefined. Please make sure it is defined" >&5
  19862. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19863. which seems to be undefined. Please make sure it is defined" >&2;}
  19864. rm -f "$ac_tmp/stdin"
  19865. case $ac_file in
  19866. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19867. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19868. esac \
  19869. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19870. ;;
  19871. :H)
  19872. #
  19873. # CONFIG_HEADER
  19874. #
  19875. if test x"$ac_file" != x-; then
  19876. {
  19877. $as_echo "/* $configure_input */" \
  19878. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19879. } >"$ac_tmp/config.h" \
  19880. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19881. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19882. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19883. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19884. else
  19885. rm -f "$ac_file"
  19886. mv "$ac_tmp/config.h" "$ac_file" \
  19887. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19888. fi
  19889. else
  19890. $as_echo "/* $configure_input */" \
  19891. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19892. || as_fn_error $? "could not create -" "$LINENO" 5
  19893. fi
  19894. # Compute "$ac_file"'s index in $config_headers.
  19895. _am_arg="$ac_file"
  19896. _am_stamp_count=1
  19897. for _am_header in $config_headers :; do
  19898. case $_am_header in
  19899. $_am_arg | $_am_arg:* )
  19900. break ;;
  19901. * )
  19902. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19903. esac
  19904. done
  19905. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19906. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19907. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19908. X"$_am_arg" : 'X\(//\)$' \| \
  19909. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19910. $as_echo X"$_am_arg" |
  19911. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19912. s//\1/
  19913. q
  19914. }
  19915. /^X\(\/\/\)[^/].*/{
  19916. s//\1/
  19917. q
  19918. }
  19919. /^X\(\/\/\)$/{
  19920. s//\1/
  19921. q
  19922. }
  19923. /^X\(\/\).*/{
  19924. s//\1/
  19925. q
  19926. }
  19927. s/.*/./; q'`/stamp-h$_am_stamp_count
  19928. ;;
  19929. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19930. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19931. ;;
  19932. esac
  19933. case $ac_file$ac_mode in
  19934. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19935. # Older Autoconf quotes --file arguments for eval, but not when files
  19936. # are listed without --file. Let's play safe and only enable the eval
  19937. # if we detect the quoting.
  19938. case $CONFIG_FILES in
  19939. *\'*) eval set x "$CONFIG_FILES" ;;
  19940. *) set x $CONFIG_FILES ;;
  19941. esac
  19942. shift
  19943. for mf
  19944. do
  19945. # Strip MF so we end up with the name of the file.
  19946. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19947. # Check whether this is an Automake generated Makefile or not.
  19948. # We used to match only the files named 'Makefile.in', but
  19949. # some people rename them; so instead we look at the file content.
  19950. # Grep'ing the first line is not enough: some people post-process
  19951. # each Makefile.in and add a new line on top of each file to say so.
  19952. # Grep'ing the whole file is not good either: AIX grep has a line
  19953. # limit of 2048, but all sed's we know have understand at least 4000.
  19954. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19955. dirpart=`$as_dirname -- "$mf" ||
  19956. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19957. X"$mf" : 'X\(//\)[^/]' \| \
  19958. X"$mf" : 'X\(//\)$' \| \
  19959. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19960. $as_echo X"$mf" |
  19961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19962. s//\1/
  19963. q
  19964. }
  19965. /^X\(\/\/\)[^/].*/{
  19966. s//\1/
  19967. q
  19968. }
  19969. /^X\(\/\/\)$/{
  19970. s//\1/
  19971. q
  19972. }
  19973. /^X\(\/\).*/{
  19974. s//\1/
  19975. q
  19976. }
  19977. s/.*/./; q'`
  19978. else
  19979. continue
  19980. fi
  19981. # Extract the definition of DEPDIR, am__include, and am__quote
  19982. # from the Makefile without running 'make'.
  19983. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19984. test -z "$DEPDIR" && continue
  19985. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19986. test -z "$am__include" && continue
  19987. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19988. # Find all dependency output files, they are included files with
  19989. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19990. # simplest approach to changing $(DEPDIR) to its actual value in the
  19991. # expansion.
  19992. for file in `sed -n "
  19993. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19994. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19995. # Make sure the directory exists.
  19996. test -f "$dirpart/$file" && continue
  19997. fdir=`$as_dirname -- "$file" ||
  19998. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19999. X"$file" : 'X\(//\)[^/]' \| \
  20000. X"$file" : 'X\(//\)$' \| \
  20001. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20002. $as_echo X"$file" |
  20003. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20004. s//\1/
  20005. q
  20006. }
  20007. /^X\(\/\/\)[^/].*/{
  20008. s//\1/
  20009. q
  20010. }
  20011. /^X\(\/\/\)$/{
  20012. s//\1/
  20013. q
  20014. }
  20015. /^X\(\/\).*/{
  20016. s//\1/
  20017. q
  20018. }
  20019. s/.*/./; q'`
  20020. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20021. # echo "creating $dirpart/$file"
  20022. echo '# dummy' > "$dirpart/$file"
  20023. done
  20024. done
  20025. }
  20026. ;;
  20027. "libtool":C)
  20028. # See if we are running on zsh, and set the options which allow our
  20029. # commands through without removal of \ escapes.
  20030. if test -n "${ZSH_VERSION+set}" ; then
  20031. setopt NO_GLOB_SUBST
  20032. fi
  20033. cfgfile="${ofile}T"
  20034. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20035. $RM "$cfgfile"
  20036. cat <<_LT_EOF >> "$cfgfile"
  20037. #! $SHELL
  20038. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20039. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20040. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20041. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20042. #
  20043. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20044. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  20045. # Foundation, Inc.
  20046. # Written by Gordon Matzigkeit, 1996
  20047. #
  20048. # This file is part of GNU Libtool.
  20049. #
  20050. # GNU Libtool is free software; you can redistribute it and/or
  20051. # modify it under the terms of the GNU General Public License as
  20052. # published by the Free Software Foundation; either version 2 of
  20053. # the License, or (at your option) any later version.
  20054. #
  20055. # As a special exception to the GNU General Public License,
  20056. # if you distribute this file as part of a program or library that
  20057. # is built using GNU Libtool, you may include this file under the
  20058. # same distribution terms that you use for the rest of that program.
  20059. #
  20060. # GNU Libtool is distributed in the hope that it will be useful,
  20061. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20062. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20063. # GNU General Public License for more details.
  20064. #
  20065. # You should have received a copy of the GNU General Public License
  20066. # along with GNU Libtool; see the file COPYING. If not, a copy
  20067. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20068. # obtained by writing to the Free Software Foundation, Inc.,
  20069. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20070. # The names of the tagged configurations supported by this script.
  20071. available_tags="CXX "
  20072. # ### BEGIN LIBTOOL CONFIG
  20073. # Whether or not to build static libraries.
  20074. build_old_libs=$enable_static
  20075. # Which release of libtool.m4 was used?
  20076. macro_version=$macro_version
  20077. macro_revision=$macro_revision
  20078. # Whether or not to build shared libraries.
  20079. build_libtool_libs=$enable_shared
  20080. # What type of objects to build.
  20081. pic_mode=$pic_mode
  20082. # Whether or not to optimize for fast installation.
  20083. fast_install=$enable_fast_install
  20084. # Shell to use when invoking shell scripts.
  20085. SHELL=$lt_SHELL
  20086. # An echo program that protects backslashes.
  20087. ECHO=$lt_ECHO
  20088. # The PATH separator for the build system.
  20089. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20090. # The host system.
  20091. host_alias=$host_alias
  20092. host=$host
  20093. host_os=$host_os
  20094. # The build system.
  20095. build_alias=$build_alias
  20096. build=$build
  20097. build_os=$build_os
  20098. # A sed program that does not truncate output.
  20099. SED=$lt_SED
  20100. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20101. Xsed="\$SED -e 1s/^X//"
  20102. # A grep program that handles long lines.
  20103. GREP=$lt_GREP
  20104. # An ERE matcher.
  20105. EGREP=$lt_EGREP
  20106. # A literal string matcher.
  20107. FGREP=$lt_FGREP
  20108. # A BSD- or MS-compatible name lister.
  20109. NM=$lt_NM
  20110. # Whether we need soft or hard links.
  20111. LN_S=$lt_LN_S
  20112. # What is the maximum length of a command?
  20113. max_cmd_len=$max_cmd_len
  20114. # Object file suffix (normally "o").
  20115. objext=$ac_objext
  20116. # Executable file suffix (normally "").
  20117. exeext=$exeext
  20118. # whether the shell understands "unset".
  20119. lt_unset=$lt_unset
  20120. # turn spaces into newlines.
  20121. SP2NL=$lt_lt_SP2NL
  20122. # turn newlines into spaces.
  20123. NL2SP=$lt_lt_NL2SP
  20124. # convert \$build file names to \$host format.
  20125. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20126. # convert \$build files to toolchain format.
  20127. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20128. # An object symbol dumper.
  20129. OBJDUMP=$lt_OBJDUMP
  20130. # Method to check whether dependent libraries are shared objects.
  20131. deplibs_check_method=$lt_deplibs_check_method
  20132. # Command to use when deplibs_check_method = "file_magic".
  20133. file_magic_cmd=$lt_file_magic_cmd
  20134. # How to find potential files when deplibs_check_method = "file_magic".
  20135. file_magic_glob=$lt_file_magic_glob
  20136. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20137. want_nocaseglob=$lt_want_nocaseglob
  20138. # DLL creation program.
  20139. DLLTOOL=$lt_DLLTOOL
  20140. # Command to associate shared and link libraries.
  20141. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20142. # The archiver.
  20143. AR=$lt_AR
  20144. # Flags to create an archive.
  20145. AR_FLAGS=$lt_AR_FLAGS
  20146. # How to feed a file listing to the archiver.
  20147. archiver_list_spec=$lt_archiver_list_spec
  20148. # A symbol stripping program.
  20149. STRIP=$lt_STRIP
  20150. # Commands used to install an old-style archive.
  20151. RANLIB=$lt_RANLIB
  20152. old_postinstall_cmds=$lt_old_postinstall_cmds
  20153. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20154. # Whether to use a lock for old archive extraction.
  20155. lock_old_archive_extraction=$lock_old_archive_extraction
  20156. # A C compiler.
  20157. LTCC=$lt_CC
  20158. # LTCC compiler flags.
  20159. LTCFLAGS=$lt_CFLAGS
  20160. # Take the output of nm and produce a listing of raw symbols and C names.
  20161. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20162. # Transform the output of nm in a proper C declaration.
  20163. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20164. # Transform the output of nm in a C name address pair.
  20165. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20166. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20167. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20168. # Specify filename containing input files for \$NM.
  20169. nm_file_list_spec=$lt_nm_file_list_spec
  20170. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20171. lt_sysroot=$lt_sysroot
  20172. # The name of the directory that contains temporary libtool files.
  20173. objdir=$objdir
  20174. # Used to examine libraries when file_magic_cmd begins with "file".
  20175. MAGIC_CMD=$MAGIC_CMD
  20176. # Must we lock files when doing compilation?
  20177. need_locks=$lt_need_locks
  20178. # Manifest tool.
  20179. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20180. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20181. DSYMUTIL=$lt_DSYMUTIL
  20182. # Tool to change global to local symbols on Mac OS X.
  20183. NMEDIT=$lt_NMEDIT
  20184. # Tool to manipulate fat objects and archives on Mac OS X.
  20185. LIPO=$lt_LIPO
  20186. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20187. OTOOL=$lt_OTOOL
  20188. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20189. OTOOL64=$lt_OTOOL64
  20190. # Old archive suffix (normally "a").
  20191. libext=$libext
  20192. # Shared library suffix (normally ".so").
  20193. shrext_cmds=$lt_shrext_cmds
  20194. # The commands to extract the exported symbol list from a shared archive.
  20195. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20196. # Variables whose values should be saved in libtool wrapper scripts and
  20197. # restored at link time.
  20198. variables_saved_for_relink=$lt_variables_saved_for_relink
  20199. # Do we need the "lib" prefix for modules?
  20200. need_lib_prefix=$need_lib_prefix
  20201. # Do we need a version for libraries?
  20202. need_version=$need_version
  20203. # Library versioning type.
  20204. version_type=$version_type
  20205. # Shared library runtime path variable.
  20206. runpath_var=$runpath_var
  20207. # Shared library path variable.
  20208. shlibpath_var=$shlibpath_var
  20209. # Is shlibpath searched before the hard-coded library search path?
  20210. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20211. # Format of library name prefix.
  20212. libname_spec=$lt_libname_spec
  20213. # List of archive names. First name is the real one, the rest are links.
  20214. # The last name is the one that the linker finds with -lNAME
  20215. library_names_spec=$lt_library_names_spec
  20216. # The coded name of the library, if different from the real name.
  20217. soname_spec=$lt_soname_spec
  20218. # Permission mode override for installation of shared libraries.
  20219. install_override_mode=$lt_install_override_mode
  20220. # Command to use after installation of a shared archive.
  20221. postinstall_cmds=$lt_postinstall_cmds
  20222. # Command to use after uninstallation of a shared archive.
  20223. postuninstall_cmds=$lt_postuninstall_cmds
  20224. # Commands used to finish a libtool library installation in a directory.
  20225. finish_cmds=$lt_finish_cmds
  20226. # As "finish_cmds", except a single script fragment to be evaled but
  20227. # not shown.
  20228. finish_eval=$lt_finish_eval
  20229. # Whether we should hardcode library paths into libraries.
  20230. hardcode_into_libs=$hardcode_into_libs
  20231. # Compile-time system search path for libraries.
  20232. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20233. # Run-time system search path for libraries.
  20234. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20235. # Whether dlopen is supported.
  20236. dlopen_support=$enable_dlopen
  20237. # Whether dlopen of programs is supported.
  20238. dlopen_self=$enable_dlopen_self
  20239. # Whether dlopen of statically linked programs is supported.
  20240. dlopen_self_static=$enable_dlopen_self_static
  20241. # Commands to strip libraries.
  20242. old_striplib=$lt_old_striplib
  20243. striplib=$lt_striplib
  20244. # The linker used to build libraries.
  20245. LD=$lt_LD
  20246. # How to create reloadable object files.
  20247. reload_flag=$lt_reload_flag
  20248. reload_cmds=$lt_reload_cmds
  20249. # Commands used to build an old-style archive.
  20250. old_archive_cmds=$lt_old_archive_cmds
  20251. # A language specific compiler.
  20252. CC=$lt_compiler
  20253. # Is the compiler the GNU compiler?
  20254. with_gcc=$GCC
  20255. # Compiler flag to turn off builtin functions.
  20256. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20257. # Additional compiler flags for building library objects.
  20258. pic_flag=$lt_lt_prog_compiler_pic
  20259. # How to pass a linker flag through the compiler.
  20260. wl=$lt_lt_prog_compiler_wl
  20261. # Compiler flag to prevent dynamic linking.
  20262. link_static_flag=$lt_lt_prog_compiler_static
  20263. # Does compiler simultaneously support -c and -o options?
  20264. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20265. # Whether or not to add -lc for building shared libraries.
  20266. build_libtool_need_lc=$archive_cmds_need_lc
  20267. # Whether or not to disallow shared libs when runtime libs are static.
  20268. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20269. # Compiler flag to allow reflexive dlopens.
  20270. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20271. # Compiler flag to generate shared objects directly from archives.
  20272. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20273. # Whether the compiler copes with passing no objects directly.
  20274. compiler_needs_object=$lt_compiler_needs_object
  20275. # Create an old-style archive from a shared archive.
  20276. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20277. # Create a temporary old-style archive to link instead of a shared archive.
  20278. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20279. # Commands used to build a shared archive.
  20280. archive_cmds=$lt_archive_cmds
  20281. archive_expsym_cmds=$lt_archive_expsym_cmds
  20282. # Commands used to build a loadable module if different from building
  20283. # a shared archive.
  20284. module_cmds=$lt_module_cmds
  20285. module_expsym_cmds=$lt_module_expsym_cmds
  20286. # Whether we are building with GNU ld or not.
  20287. with_gnu_ld=$lt_with_gnu_ld
  20288. # Flag that allows shared libraries with undefined symbols to be built.
  20289. allow_undefined_flag=$lt_allow_undefined_flag
  20290. # Flag that enforces no undefined symbols.
  20291. no_undefined_flag=$lt_no_undefined_flag
  20292. # Flag to hardcode \$libdir into a binary during linking.
  20293. # This must work even if \$libdir does not exist
  20294. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20295. # Whether we need a single "-rpath" flag with a separated argument.
  20296. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20297. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20298. # DIR into the resulting binary.
  20299. hardcode_direct=$hardcode_direct
  20300. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20301. # DIR into the resulting binary and the resulting library dependency is
  20302. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20303. # library is relocated.
  20304. hardcode_direct_absolute=$hardcode_direct_absolute
  20305. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20306. # into the resulting binary.
  20307. hardcode_minus_L=$hardcode_minus_L
  20308. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20309. # into the resulting binary.
  20310. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20311. # Set to "yes" if building a shared library automatically hardcodes DIR
  20312. # into the library and all subsequent libraries and executables linked
  20313. # against it.
  20314. hardcode_automatic=$hardcode_automatic
  20315. # Set to yes if linker adds runtime paths of dependent libraries
  20316. # to runtime path list.
  20317. inherit_rpath=$inherit_rpath
  20318. # Whether libtool must link a program against all its dependency libraries.
  20319. link_all_deplibs=$link_all_deplibs
  20320. # Set to "yes" if exported symbols are required.
  20321. always_export_symbols=$always_export_symbols
  20322. # The commands to list exported symbols.
  20323. export_symbols_cmds=$lt_export_symbols_cmds
  20324. # Symbols that should not be listed in the preloaded symbols.
  20325. exclude_expsyms=$lt_exclude_expsyms
  20326. # Symbols that must always be exported.
  20327. include_expsyms=$lt_include_expsyms
  20328. # Commands necessary for linking programs (against libraries) with templates.
  20329. prelink_cmds=$lt_prelink_cmds
  20330. # Commands necessary for finishing linking programs.
  20331. postlink_cmds=$lt_postlink_cmds
  20332. # Specify filename containing input files.
  20333. file_list_spec=$lt_file_list_spec
  20334. # How to hardcode a shared library path into an executable.
  20335. hardcode_action=$hardcode_action
  20336. # The directories searched by this compiler when creating a shared library.
  20337. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20338. # Dependencies to place before and after the objects being linked to
  20339. # create a shared library.
  20340. predep_objects=$lt_predep_objects
  20341. postdep_objects=$lt_postdep_objects
  20342. predeps=$lt_predeps
  20343. postdeps=$lt_postdeps
  20344. # The library search path used internally by the compiler when linking
  20345. # a shared library.
  20346. compiler_lib_search_path=$lt_compiler_lib_search_path
  20347. # ### END LIBTOOL CONFIG
  20348. _LT_EOF
  20349. case $host_os in
  20350. aix3*)
  20351. cat <<\_LT_EOF >> "$cfgfile"
  20352. # AIX sometimes has problems with the GCC collect2 program. For some
  20353. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20354. # vanish in a puff of smoke.
  20355. if test "X${COLLECT_NAMES+set}" != Xset; then
  20356. COLLECT_NAMES=
  20357. export COLLECT_NAMES
  20358. fi
  20359. _LT_EOF
  20360. ;;
  20361. esac
  20362. ltmain="$ac_aux_dir/ltmain.sh"
  20363. # We use sed instead of cat because bash on DJGPP gets confused if
  20364. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20365. # text mode, it properly converts lines to CR/LF. This bash problem
  20366. # is reportedly fixed, but why not run on old versions too?
  20367. sed '$q' "$ltmain" >> "$cfgfile" \
  20368. || (rm -f "$cfgfile"; exit 1)
  20369. if test x"$xsi_shell" = xyes; then
  20370. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20371. func_dirname ()\
  20372. {\
  20373. \ case ${1} in\
  20374. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20375. \ * ) func_dirname_result="${3}" ;;\
  20376. \ esac\
  20377. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20378. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20379. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20380. test 0 -eq $? || _lt_function_replace_fail=:
  20381. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20382. func_basename ()\
  20383. {\
  20384. \ func_basename_result="${1##*/}"\
  20385. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20386. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20387. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20388. test 0 -eq $? || _lt_function_replace_fail=:
  20389. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20390. func_dirname_and_basename ()\
  20391. {\
  20392. \ case ${1} in\
  20393. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20394. \ * ) func_dirname_result="${3}" ;;\
  20395. \ esac\
  20396. \ func_basename_result="${1##*/}"\
  20397. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20398. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20399. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20400. test 0 -eq $? || _lt_function_replace_fail=:
  20401. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20402. func_stripname ()\
  20403. {\
  20404. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20405. \ # positional parameters, so assign one to ordinary parameter first.\
  20406. \ func_stripname_result=${3}\
  20407. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20408. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20409. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20410. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20411. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20412. test 0 -eq $? || _lt_function_replace_fail=:
  20413. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20414. func_split_long_opt ()\
  20415. {\
  20416. \ func_split_long_opt_name=${1%%=*}\
  20417. \ func_split_long_opt_arg=${1#*=}\
  20418. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20419. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20420. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20421. test 0 -eq $? || _lt_function_replace_fail=:
  20422. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20423. func_split_short_opt ()\
  20424. {\
  20425. \ func_split_short_opt_arg=${1#??}\
  20426. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20427. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20428. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20429. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20430. test 0 -eq $? || _lt_function_replace_fail=:
  20431. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20432. func_lo2o ()\
  20433. {\
  20434. \ case ${1} in\
  20435. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20436. \ *) func_lo2o_result=${1} ;;\
  20437. \ esac\
  20438. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20439. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20440. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20441. test 0 -eq $? || _lt_function_replace_fail=:
  20442. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20443. func_xform ()\
  20444. {\
  20445. func_xform_result=${1%.*}.lo\
  20446. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20447. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20448. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20449. test 0 -eq $? || _lt_function_replace_fail=:
  20450. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20451. func_arith ()\
  20452. {\
  20453. func_arith_result=$(( $* ))\
  20454. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20455. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20456. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20457. test 0 -eq $? || _lt_function_replace_fail=:
  20458. sed -e '/^func_len ()$/,/^} # func_len /c\
  20459. func_len ()\
  20460. {\
  20461. func_len_result=${#1}\
  20462. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20463. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20464. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20465. test 0 -eq $? || _lt_function_replace_fail=:
  20466. fi
  20467. if test x"$lt_shell_append" = xyes; then
  20468. sed -e '/^func_append ()$/,/^} # func_append /c\
  20469. func_append ()\
  20470. {\
  20471. eval "${1}+=\\${2}"\
  20472. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20473. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20474. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20475. test 0 -eq $? || _lt_function_replace_fail=:
  20476. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20477. func_append_quoted ()\
  20478. {\
  20479. \ func_quote_for_eval "${2}"\
  20480. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20481. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20482. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20483. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20484. test 0 -eq $? || _lt_function_replace_fail=:
  20485. # Save a `func_append' function call where possible by direct use of '+='
  20486. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20487. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20488. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20489. test 0 -eq $? || _lt_function_replace_fail=:
  20490. else
  20491. # Save a `func_append' function call even when '+=' is not available
  20492. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20493. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20494. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20495. test 0 -eq $? || _lt_function_replace_fail=:
  20496. fi
  20497. if test x"$_lt_function_replace_fail" = x":"; then
  20498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20499. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20500. fi
  20501. mv -f "$cfgfile" "$ofile" ||
  20502. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20503. chmod +x "$ofile"
  20504. cat <<_LT_EOF >> "$ofile"
  20505. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20506. # The linker used to build libraries.
  20507. LD=$lt_LD_CXX
  20508. # How to create reloadable object files.
  20509. reload_flag=$lt_reload_flag_CXX
  20510. reload_cmds=$lt_reload_cmds_CXX
  20511. # Commands used to build an old-style archive.
  20512. old_archive_cmds=$lt_old_archive_cmds_CXX
  20513. # A language specific compiler.
  20514. CC=$lt_compiler_CXX
  20515. # Is the compiler the GNU compiler?
  20516. with_gcc=$GCC_CXX
  20517. # Compiler flag to turn off builtin functions.
  20518. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20519. # Additional compiler flags for building library objects.
  20520. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20521. # How to pass a linker flag through the compiler.
  20522. wl=$lt_lt_prog_compiler_wl_CXX
  20523. # Compiler flag to prevent dynamic linking.
  20524. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20525. # Does compiler simultaneously support -c and -o options?
  20526. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20527. # Whether or not to add -lc for building shared libraries.
  20528. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20529. # Whether or not to disallow shared libs when runtime libs are static.
  20530. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20531. # Compiler flag to allow reflexive dlopens.
  20532. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20533. # Compiler flag to generate shared objects directly from archives.
  20534. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20535. # Whether the compiler copes with passing no objects directly.
  20536. compiler_needs_object=$lt_compiler_needs_object_CXX
  20537. # Create an old-style archive from a shared archive.
  20538. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20539. # Create a temporary old-style archive to link instead of a shared archive.
  20540. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20541. # Commands used to build a shared archive.
  20542. archive_cmds=$lt_archive_cmds_CXX
  20543. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20544. # Commands used to build a loadable module if different from building
  20545. # a shared archive.
  20546. module_cmds=$lt_module_cmds_CXX
  20547. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20548. # Whether we are building with GNU ld or not.
  20549. with_gnu_ld=$lt_with_gnu_ld_CXX
  20550. # Flag that allows shared libraries with undefined symbols to be built.
  20551. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20552. # Flag that enforces no undefined symbols.
  20553. no_undefined_flag=$lt_no_undefined_flag_CXX
  20554. # Flag to hardcode \$libdir into a binary during linking.
  20555. # This must work even if \$libdir does not exist
  20556. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20557. # Whether we need a single "-rpath" flag with a separated argument.
  20558. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20559. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20560. # DIR into the resulting binary.
  20561. hardcode_direct=$hardcode_direct_CXX
  20562. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20563. # DIR into the resulting binary and the resulting library dependency is
  20564. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20565. # library is relocated.
  20566. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20567. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20568. # into the resulting binary.
  20569. hardcode_minus_L=$hardcode_minus_L_CXX
  20570. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20571. # into the resulting binary.
  20572. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20573. # Set to "yes" if building a shared library automatically hardcodes DIR
  20574. # into the library and all subsequent libraries and executables linked
  20575. # against it.
  20576. hardcode_automatic=$hardcode_automatic_CXX
  20577. # Set to yes if linker adds runtime paths of dependent libraries
  20578. # to runtime path list.
  20579. inherit_rpath=$inherit_rpath_CXX
  20580. # Whether libtool must link a program against all its dependency libraries.
  20581. link_all_deplibs=$link_all_deplibs_CXX
  20582. # Set to "yes" if exported symbols are required.
  20583. always_export_symbols=$always_export_symbols_CXX
  20584. # The commands to list exported symbols.
  20585. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20586. # Symbols that should not be listed in the preloaded symbols.
  20587. exclude_expsyms=$lt_exclude_expsyms_CXX
  20588. # Symbols that must always be exported.
  20589. include_expsyms=$lt_include_expsyms_CXX
  20590. # Commands necessary for linking programs (against libraries) with templates.
  20591. prelink_cmds=$lt_prelink_cmds_CXX
  20592. # Commands necessary for finishing linking programs.
  20593. postlink_cmds=$lt_postlink_cmds_CXX
  20594. # Specify filename containing input files.
  20595. file_list_spec=$lt_file_list_spec_CXX
  20596. # How to hardcode a shared library path into an executable.
  20597. hardcode_action=$hardcode_action_CXX
  20598. # The directories searched by this compiler when creating a shared library.
  20599. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20600. # Dependencies to place before and after the objects being linked to
  20601. # create a shared library.
  20602. predep_objects=$lt_predep_objects_CXX
  20603. postdep_objects=$lt_postdep_objects_CXX
  20604. predeps=$lt_predeps_CXX
  20605. postdeps=$lt_postdeps_CXX
  20606. # The library search path used internally by the compiler when linking
  20607. # a shared library.
  20608. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20609. # ### END LIBTOOL TAG CONFIG: CXX
  20610. _LT_EOF
  20611. ;;
  20612. esac
  20613. done # for ac_tag
  20614. as_fn_exit 0
  20615. _ACEOF
  20616. ac_clean_files=$ac_clean_files_save
  20617. test $ac_write_fail = 0 ||
  20618. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20619. # configure is writing to config.log, and then calls config.status.
  20620. # config.status does its own redirection, appending to config.log.
  20621. # Unfortunately, on DOS this fails, as config.log is still kept open
  20622. # by configure, so config.status won't be able to write to it; its
  20623. # output is simply discarded. So we exec the FD to /dev/null,
  20624. # effectively closing config.log, so it can be properly (re)opened and
  20625. # appended to by config.status. When coming back to configure, we
  20626. # need to make the FD available again.
  20627. if test "$no_create" != yes; then
  20628. ac_cs_success=:
  20629. ac_config_status_args=
  20630. test "$silent" = yes &&
  20631. ac_config_status_args="$ac_config_status_args --quiet"
  20632. exec 5>/dev/null
  20633. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20634. exec 5>>config.log
  20635. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20636. # would make configure fail if this is the last instruction.
  20637. $ac_cs_success || as_fn_exit 1
  20638. fi
  20639. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20641. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20642. fi