configure 670 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell [email protected] and
  216. $0: http://bugzilla.redhat.com/ about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. # Check that we are running under the correct shell.
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. case X$lt_ECHO in
  491. X*--fallback-echo)
  492. # Remove one level of quotation (which was required for Make).
  493. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  494. ;;
  495. esac
  496. ECHO=${lt_ECHO-echo}
  497. if test "X$1" = X--no-reexec; then
  498. # Discard the --no-reexec flag, and continue.
  499. shift
  500. elif test "X$1" = X--fallback-echo; then
  501. # Avoid inline document here, it may be left over
  502. :
  503. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  504. # Yippee, $ECHO works!
  505. :
  506. else
  507. # Restart under the correct shell.
  508. exec $SHELL "$0" --no-reexec ${1+"$@"}
  509. fi
  510. if test "X$1" = X--fallback-echo; then
  511. # used as fallback echo
  512. shift
  513. cat <<_LT_EOF
  514. $*
  515. _LT_EOF
  516. exit 0
  517. fi
  518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  519. # if CDPATH is set.
  520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  521. if test -z "$lt_ECHO"; then
  522. if test "X${echo_test_string+set}" != Xset; then
  523. # find a string as large as possible, as long as the shell can cope with it
  524. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  525. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  526. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  527. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  528. then
  529. break
  530. fi
  531. done
  532. fi
  533. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. :
  537. else
  538. # The Solaris, AIX, and Digital Unix default echo programs unquote
  539. # backslashes. This makes it impossible to quote backslashes using
  540. # echo "$something" | sed 's/\\/\\\\/g'
  541. #
  542. # So, first we look for a working echo in the user's PATH.
  543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  544. for dir in $PATH /usr/ucb; do
  545. IFS="$lt_save_ifs"
  546. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  547. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  548. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  549. test "X$echo_testing_string" = "X$echo_test_string"; then
  550. ECHO="$dir/echo"
  551. break
  552. fi
  553. done
  554. IFS="$lt_save_ifs"
  555. if test "X$ECHO" = Xecho; then
  556. # We didn't find a better echo, so look for alternatives.
  557. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. # This shell has a builtin print -r that does the trick.
  561. ECHO='print -r'
  562. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  563. test "X$CONFIG_SHELL" != X/bin/ksh; then
  564. # If we have ksh, try running configure again with it.
  565. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  566. export ORIGINAL_CONFIG_SHELL
  567. CONFIG_SHELL=/bin/ksh
  568. export CONFIG_SHELL
  569. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  570. else
  571. # Try using printf.
  572. ECHO='printf %s\n'
  573. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  574. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  575. test "X$echo_testing_string" = "X$echo_test_string"; then
  576. # Cool, printf works
  577. :
  578. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  579. test "X$echo_testing_string" = 'X\t' &&
  580. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  583. export CONFIG_SHELL
  584. SHELL="$CONFIG_SHELL"
  585. export SHELL
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  592. else
  593. # maybe with a smaller string...
  594. prev=:
  595. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  596. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  597. then
  598. break
  599. fi
  600. prev="$cmd"
  601. done
  602. if test "$prev" != 'sed 50q "$0"'; then
  603. echo_test_string=`eval $prev`
  604. export echo_test_string
  605. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  606. else
  607. # Oops. We lost completely, so just stick with echo.
  608. ECHO=echo
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. fi
  615. # Copy echo and quote the copy suitably for passing to libtool from
  616. # the Makefile, instead of quoting the original, which is used later.
  617. lt_ECHO=$ECHO
  618. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  619. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  620. fi
  621. test -n "$DJDIR" || exec 7<&0 </dev/null
  622. exec 6>&1
  623. # Name of the host.
  624. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  625. # so uname gets run too.
  626. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  627. #
  628. # Initializations.
  629. #
  630. ac_default_prefix=/usr/local
  631. ac_clean_files=
  632. ac_config_libobj_dir=.
  633. LIBOBJS=
  634. cross_compiling=no
  635. subdirs=
  636. MFLAGS=
  637. MAKEFLAGS=
  638. # Identity of this package.
  639. PACKAGE_NAME='dirsrv'
  640. PACKAGE_TARNAME='dirsrv'
  641. PACKAGE_VERSION='1.0'
  642. PACKAGE_STRING='dirsrv 1.0'
  643. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  644. PACKAGE_URL=''
  645. # Factoring default headers for most tests.
  646. ac_includes_default="\
  647. #include <stdio.h>
  648. #ifdef HAVE_SYS_TYPES_H
  649. # include <sys/types.h>
  650. #endif
  651. #ifdef HAVE_SYS_STAT_H
  652. # include <sys/stat.h>
  653. #endif
  654. #ifdef STDC_HEADERS
  655. # include <stdlib.h>
  656. # include <stddef.h>
  657. #else
  658. # ifdef HAVE_STDLIB_H
  659. # include <stdlib.h>
  660. # endif
  661. #endif
  662. #ifdef HAVE_STRING_H
  663. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  664. # include <memory.h>
  665. # endif
  666. # include <string.h>
  667. #endif
  668. #ifdef HAVE_STRINGS_H
  669. # include <strings.h>
  670. #endif
  671. #ifdef HAVE_INTTYPES_H
  672. # include <inttypes.h>
  673. #endif
  674. #ifdef HAVE_STDINT_H
  675. # include <stdint.h>
  676. #endif
  677. #ifdef HAVE_UNISTD_H
  678. # include <unistd.h>
  679. #endif"
  680. ac_header_list=
  681. ac_default_prefix=/opt/$PACKAGE_NAME
  682. ac_subst_vars='am__EXEEXT_FALSE
  683. am__EXEEXT_TRUE
  684. LTLIBOBJS
  685. vendor
  686. capbrand
  687. brand
  688. pcre_libdir
  689. pcre_lib
  690. pcre_inc
  691. netsnmp_link
  692. netsnmp_libdir
  693. netsnmp_lib
  694. netsnmp_inc
  695. icu_bin
  696. icu_inc
  697. icu_lib
  698. svrcore_lib
  699. svrcore_inc
  700. sasl_path
  701. sasl_libdir
  702. sasl_lib
  703. sasl_inc
  704. db_libver
  705. db_bindir
  706. db_libdir
  707. db_lib
  708. db_incdir
  709. db_inc
  710. ol_libver
  711. plainldif_opts
  712. ldaptool_opts
  713. ldaptool_bindir
  714. openldap_bindir
  715. openldap_libdir
  716. openldap_lib
  717. openldap_inc
  718. ldapsdk_bindir
  719. ldapsdk_libdir
  720. ldapsdk_lib
  721. ldapsdk_inc
  722. nss_libdir
  723. nss_lib
  724. nss_inc
  725. nspr_libdir
  726. nspr_lib
  727. nspr_inc
  728. OPENLDAP_FALSE
  729. OPENLDAP_TRUE
  730. SELINUX_FALSE
  731. SELINUX_TRUE
  732. PACKAGE_BASE_VERSION
  733. with_selinux
  734. kerberos_libdir
  735. kerberos_lib
  736. kerberos_inc
  737. KRB5_CONFIG_BIN
  738. NETSNMP_CONFIG
  739. ICU_CONFIG
  740. PKG_CONFIG
  741. SOLARIS_FALSE
  742. SOLARIS_TRUE
  743. HPUX_FALSE
  744. HPUX_TRUE
  745. initconfigdir
  746. perlexec
  747. initdir
  748. LIBCRUN
  749. LIBCSTD
  750. LIBDL
  751. LIBNSL
  752. LIBSOCKET
  753. LIBCRYPT
  754. THREADLIB
  755. WINNT_FALSE
  756. WINNT_TRUE
  757. instconfigdir
  758. defaultgroup
  759. defaultuser
  760. updatedir
  761. mibdir
  762. infdir
  763. perldir
  764. scripttemplatedir
  765. serverplugindir
  766. serverdir
  767. schemadir
  768. propertydir
  769. sampledatadir
  770. configdir
  771. with_fhs_opt
  772. enable_presence_FALSE
  773. enable_presence_TRUE
  774. enable_bitwise_FALSE
  775. enable_bitwise_TRUE
  776. enable_auto_dn_suffix_FALSE
  777. enable_auto_dn_suffix_TRUE
  778. enable_autobind_FALSE
  779. enable_autobind_TRUE
  780. enable_ldapi_FALSE
  781. enable_ldapi_TRUE
  782. enable_dna_FALSE
  783. enable_dna_TRUE
  784. enable_pam_passthru_FALSE
  785. enable_pam_passthru_TRUE
  786. BUNDLE_FALSE
  787. BUNDLE_TRUE
  788. debug_defs
  789. LIBOBJS
  790. CXXCPP
  791. CPP
  792. OTOOL64
  793. OTOOL
  794. LIPO
  795. NMEDIT
  796. DSYMUTIL
  797. lt_ECHO
  798. RANLIB
  799. AR
  800. OBJDUMP
  801. LN_S
  802. NM
  803. ac_ct_DUMPBIN
  804. DUMPBIN
  805. LD
  806. FGREP
  807. EGREP
  808. GREP
  809. SED
  810. LIBTOOL
  811. am__fastdepCCAS_FALSE
  812. am__fastdepCCAS_TRUE
  813. CCASDEPMODE
  814. CCASFLAGS
  815. CCAS
  816. am__fastdepCC_FALSE
  817. am__fastdepCC_TRUE
  818. CCDEPMODE
  819. ac_ct_CC
  820. CFLAGS
  821. CC
  822. am__fastdepCXX_FALSE
  823. am__fastdepCXX_TRUE
  824. CXXDEPMODE
  825. AMDEPBACKSLASH
  826. AMDEP_FALSE
  827. AMDEP_TRUE
  828. am__quote
  829. am__include
  830. DEPDIR
  831. OBJEXT
  832. EXEEXT
  833. ac_ct_CXX
  834. CPPFLAGS
  835. LDFLAGS
  836. CXXFLAGS
  837. CXX
  838. host_os
  839. host_vendor
  840. host_cpu
  841. host
  842. build_os
  843. build_vendor
  844. build_cpu
  845. build
  846. MAINT
  847. MAINTAINER_MODE_FALSE
  848. MAINTAINER_MODE_TRUE
  849. CONSOLE_VERSION
  850. am__untar
  851. am__tar
  852. AMTAR
  853. am__leading_dot
  854. SET_MAKE
  855. AWK
  856. mkdir_p
  857. MKDIR_P
  858. INSTALL_STRIP_PROGRAM
  859. STRIP
  860. install_sh
  861. MAKEINFO
  862. AUTOHEADER
  863. AUTOMAKE
  864. AUTOCONF
  865. ACLOCAL
  866. VERSION
  867. PACKAGE
  868. CYGPATH_W
  869. am__isrc
  870. INSTALL_DATA
  871. INSTALL_SCRIPT
  872. INSTALL_PROGRAM
  873. target_alias
  874. host_alias
  875. build_alias
  876. LIBS
  877. ECHO_T
  878. ECHO_N
  879. ECHO_C
  880. DEFS
  881. mandir
  882. localedir
  883. libdir
  884. psdir
  885. pdfdir
  886. dvidir
  887. htmldir
  888. infodir
  889. docdir
  890. oldincludedir
  891. includedir
  892. localstatedir
  893. sharedstatedir
  894. sysconfdir
  895. datadir
  896. datarootdir
  897. libexecdir
  898. sbindir
  899. bindir
  900. program_transform_name
  901. prefix
  902. exec_prefix
  903. PACKAGE_URL
  904. PACKAGE_BUGREPORT
  905. PACKAGE_STRING
  906. PACKAGE_VERSION
  907. PACKAGE_TARNAME
  908. PACKAGE_NAME
  909. PATH_SEPARATOR
  910. SHELL'
  911. ac_subst_files=''
  912. ac_user_opts='
  913. enable_option_checking
  914. enable_maintainer_mode
  915. enable_dependency_tracking
  916. enable_static
  917. enable_shared
  918. with_pic
  919. enable_fast_install
  920. with_gnu_ld
  921. enable_libtool_lock
  922. enable_debug
  923. enable_bundle
  924. enable_pam_passthru
  925. enable_dna
  926. enable_ldapi
  927. enable_autobind
  928. enable_bitwise
  929. enable_presence
  930. with_fhs
  931. with_fhs_opt
  932. with_instconfigdir
  933. with_initddir
  934. with_nspr
  935. with_nspr_inc
  936. with_nspr_lib
  937. with_nss
  938. with_nss_inc
  939. with_nss_lib
  940. with_openldap
  941. with_openldap_inc
  942. with_openldap_lib
  943. with_openldap_bin
  944. with_ldapsdk
  945. with_ldapsdk_inc
  946. with_ldapsdk_lib
  947. with_ldapsdk_bin
  948. with_db
  949. with_db_inc
  950. with_db_lib
  951. with_sasl
  952. with_sasl_inc
  953. with_sasl_lib
  954. with_svrcore
  955. with_svrcore_inc
  956. with_svrcore_lib
  957. with_icu
  958. with_icu_inc
  959. with_icu_lib
  960. with_icu_bin
  961. with_netsnmp
  962. with_netsnmp_inc
  963. with_netsnmp_lib
  964. with_kerberos
  965. with_kerberos_inc
  966. with_kerberos_lib
  967. with_pcre
  968. with_selinux
  969. '
  970. ac_precious_vars='build_alias
  971. host_alias
  972. target_alias
  973. CXX
  974. CXXFLAGS
  975. LDFLAGS
  976. LIBS
  977. CPPFLAGS
  978. CCC
  979. CC
  980. CFLAGS
  981. CCAS
  982. CCASFLAGS
  983. CPP
  984. CXXCPP'
  985. # Initialize some variables set by options.
  986. ac_init_help=
  987. ac_init_version=false
  988. ac_unrecognized_opts=
  989. ac_unrecognized_sep=
  990. # The variables have the same names as the options, with
  991. # dashes changed to underlines.
  992. cache_file=/dev/null
  993. exec_prefix=NONE
  994. no_create=
  995. no_recursion=
  996. prefix=NONE
  997. program_prefix=NONE
  998. program_suffix=NONE
  999. program_transform_name=s,x,x,
  1000. silent=
  1001. site=
  1002. srcdir=
  1003. verbose=
  1004. x_includes=NONE
  1005. x_libraries=NONE
  1006. # Installation directory options.
  1007. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1008. # and all the variables that are supposed to be based on exec_prefix
  1009. # by default will actually change.
  1010. # Use braces instead of parens because sh, perl, etc. also accept them.
  1011. # (The list follows the same order as the GNU Coding Standards.)
  1012. bindir='${exec_prefix}/bin'
  1013. sbindir='${exec_prefix}/sbin'
  1014. libexecdir='${exec_prefix}/libexec'
  1015. datarootdir='${prefix}/share'
  1016. datadir='${datarootdir}'
  1017. sysconfdir='${prefix}/etc'
  1018. sharedstatedir='${prefix}/com'
  1019. localstatedir='${prefix}/var'
  1020. includedir='${prefix}/include'
  1021. oldincludedir='/usr/include'
  1022. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1023. infodir='${datarootdir}/info'
  1024. htmldir='${docdir}'
  1025. dvidir='${docdir}'
  1026. pdfdir='${docdir}'
  1027. psdir='${docdir}'
  1028. libdir='${exec_prefix}/lib'
  1029. localedir='${datarootdir}/locale'
  1030. mandir='${datarootdir}/man'
  1031. ac_prev=
  1032. ac_dashdash=
  1033. for ac_option
  1034. do
  1035. # If the previous option needs an argument, assign it.
  1036. if test -n "$ac_prev"; then
  1037. eval $ac_prev=\$ac_option
  1038. ac_prev=
  1039. continue
  1040. fi
  1041. case $ac_option in
  1042. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1043. *) ac_optarg=yes ;;
  1044. esac
  1045. # Accept the important Cygnus configure options, so we can diagnose typos.
  1046. case $ac_dashdash$ac_option in
  1047. --)
  1048. ac_dashdash=yes ;;
  1049. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1050. ac_prev=bindir ;;
  1051. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1052. bindir=$ac_optarg ;;
  1053. -build | --build | --buil | --bui | --bu)
  1054. ac_prev=build_alias ;;
  1055. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1056. build_alias=$ac_optarg ;;
  1057. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1058. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1059. ac_prev=cache_file ;;
  1060. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1061. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1062. cache_file=$ac_optarg ;;
  1063. --config-cache | -C)
  1064. cache_file=config.cache ;;
  1065. -datadir | --datadir | --datadi | --datad)
  1066. ac_prev=datadir ;;
  1067. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1068. datadir=$ac_optarg ;;
  1069. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1070. | --dataroo | --dataro | --datar)
  1071. ac_prev=datarootdir ;;
  1072. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1073. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1074. datarootdir=$ac_optarg ;;
  1075. -disable-* | --disable-*)
  1076. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1077. # Reject names that are not valid shell variable names.
  1078. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1079. as_fn_error "invalid feature name: $ac_useropt"
  1080. ac_useropt_orig=$ac_useropt
  1081. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1082. case $ac_user_opts in
  1083. *"
  1084. "enable_$ac_useropt"
  1085. "*) ;;
  1086. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1087. ac_unrecognized_sep=', ';;
  1088. esac
  1089. eval enable_$ac_useropt=no ;;
  1090. -docdir | --docdir | --docdi | --doc | --do)
  1091. ac_prev=docdir ;;
  1092. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1093. docdir=$ac_optarg ;;
  1094. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1095. ac_prev=dvidir ;;
  1096. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1097. dvidir=$ac_optarg ;;
  1098. -enable-* | --enable-*)
  1099. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1102. as_fn_error "invalid feature name: $ac_useropt"
  1103. ac_useropt_orig=$ac_useropt
  1104. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1105. case $ac_user_opts in
  1106. *"
  1107. "enable_$ac_useropt"
  1108. "*) ;;
  1109. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1110. ac_unrecognized_sep=', ';;
  1111. esac
  1112. eval enable_$ac_useropt=\$ac_optarg ;;
  1113. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1114. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1115. | --exec | --exe | --ex)
  1116. ac_prev=exec_prefix ;;
  1117. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1118. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1119. | --exec=* | --exe=* | --ex=*)
  1120. exec_prefix=$ac_optarg ;;
  1121. -gas | --gas | --ga | --g)
  1122. # Obsolete; use --with-gas.
  1123. with_gas=yes ;;
  1124. -help | --help | --hel | --he | -h)
  1125. ac_init_help=long ;;
  1126. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1127. ac_init_help=recursive ;;
  1128. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1129. ac_init_help=short ;;
  1130. -host | --host | --hos | --ho)
  1131. ac_prev=host_alias ;;
  1132. -host=* | --host=* | --hos=* | --ho=*)
  1133. host_alias=$ac_optarg ;;
  1134. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1135. ac_prev=htmldir ;;
  1136. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1137. | --ht=*)
  1138. htmldir=$ac_optarg ;;
  1139. -includedir | --includedir | --includedi | --included | --include \
  1140. | --includ | --inclu | --incl | --inc)
  1141. ac_prev=includedir ;;
  1142. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1143. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1144. includedir=$ac_optarg ;;
  1145. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1146. ac_prev=infodir ;;
  1147. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1148. infodir=$ac_optarg ;;
  1149. -libdir | --libdir | --libdi | --libd)
  1150. ac_prev=libdir ;;
  1151. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1152. libdir=$ac_optarg ;;
  1153. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1154. | --libexe | --libex | --libe)
  1155. ac_prev=libexecdir ;;
  1156. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1157. | --libexe=* | --libex=* | --libe=*)
  1158. libexecdir=$ac_optarg ;;
  1159. -localedir | --localedir | --localedi | --localed | --locale)
  1160. ac_prev=localedir ;;
  1161. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1162. localedir=$ac_optarg ;;
  1163. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1164. | --localstate | --localstat | --localsta | --localst | --locals)
  1165. ac_prev=localstatedir ;;
  1166. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1167. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1168. localstatedir=$ac_optarg ;;
  1169. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1170. ac_prev=mandir ;;
  1171. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1172. mandir=$ac_optarg ;;
  1173. -nfp | --nfp | --nf)
  1174. # Obsolete; use --without-fp.
  1175. with_fp=no ;;
  1176. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1177. | --no-cr | --no-c | -n)
  1178. no_create=yes ;;
  1179. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1180. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1181. no_recursion=yes ;;
  1182. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1183. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1184. | --oldin | --oldi | --old | --ol | --o)
  1185. ac_prev=oldincludedir ;;
  1186. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1187. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1188. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1189. oldincludedir=$ac_optarg ;;
  1190. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1191. ac_prev=prefix ;;
  1192. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1193. prefix=$ac_optarg ;;
  1194. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1195. | --program-pre | --program-pr | --program-p)
  1196. ac_prev=program_prefix ;;
  1197. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1198. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1199. program_prefix=$ac_optarg ;;
  1200. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1201. | --program-suf | --program-su | --program-s)
  1202. ac_prev=program_suffix ;;
  1203. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1204. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1205. program_suffix=$ac_optarg ;;
  1206. -program-transform-name | --program-transform-name \
  1207. | --program-transform-nam | --program-transform-na \
  1208. | --program-transform-n | --program-transform- \
  1209. | --program-transform | --program-transfor \
  1210. | --program-transfo | --program-transf \
  1211. | --program-trans | --program-tran \
  1212. | --progr-tra | --program-tr | --program-t)
  1213. ac_prev=program_transform_name ;;
  1214. -program-transform-name=* | --program-transform-name=* \
  1215. | --program-transform-nam=* | --program-transform-na=* \
  1216. | --program-transform-n=* | --program-transform-=* \
  1217. | --program-transform=* | --program-transfor=* \
  1218. | --program-transfo=* | --program-transf=* \
  1219. | --program-trans=* | --program-tran=* \
  1220. | --progr-tra=* | --program-tr=* | --program-t=*)
  1221. program_transform_name=$ac_optarg ;;
  1222. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1223. ac_prev=pdfdir ;;
  1224. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1225. pdfdir=$ac_optarg ;;
  1226. -psdir | --psdir | --psdi | --psd | --ps)
  1227. ac_prev=psdir ;;
  1228. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1229. psdir=$ac_optarg ;;
  1230. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1231. | -silent | --silent | --silen | --sile | --sil)
  1232. silent=yes ;;
  1233. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1234. ac_prev=sbindir ;;
  1235. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1236. | --sbi=* | --sb=*)
  1237. sbindir=$ac_optarg ;;
  1238. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1239. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1240. | --sharedst | --shareds | --shared | --share | --shar \
  1241. | --sha | --sh)
  1242. ac_prev=sharedstatedir ;;
  1243. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1244. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1245. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1246. | --sha=* | --sh=*)
  1247. sharedstatedir=$ac_optarg ;;
  1248. -site | --site | --sit)
  1249. ac_prev=site ;;
  1250. -site=* | --site=* | --sit=*)
  1251. site=$ac_optarg ;;
  1252. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1253. ac_prev=srcdir ;;
  1254. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1255. srcdir=$ac_optarg ;;
  1256. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1257. | --syscon | --sysco | --sysc | --sys | --sy)
  1258. ac_prev=sysconfdir ;;
  1259. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1260. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1261. sysconfdir=$ac_optarg ;;
  1262. -target | --target | --targe | --targ | --tar | --ta | --t)
  1263. ac_prev=target_alias ;;
  1264. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1265. target_alias=$ac_optarg ;;
  1266. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1267. verbose=yes ;;
  1268. -version | --version | --versio | --versi | --vers | -V)
  1269. ac_init_version=: ;;
  1270. -with-* | --with-*)
  1271. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1272. # Reject names that are not valid shell variable names.
  1273. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1274. as_fn_error "invalid package name: $ac_useropt"
  1275. ac_useropt_orig=$ac_useropt
  1276. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1277. case $ac_user_opts in
  1278. *"
  1279. "with_$ac_useropt"
  1280. "*) ;;
  1281. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1282. ac_unrecognized_sep=', ';;
  1283. esac
  1284. eval with_$ac_useropt=\$ac_optarg ;;
  1285. -without-* | --without-*)
  1286. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1287. # Reject names that are not valid shell variable names.
  1288. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1289. as_fn_error "invalid package name: $ac_useropt"
  1290. ac_useropt_orig=$ac_useropt
  1291. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1292. case $ac_user_opts in
  1293. *"
  1294. "with_$ac_useropt"
  1295. "*) ;;
  1296. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1297. ac_unrecognized_sep=', ';;
  1298. esac
  1299. eval with_$ac_useropt=no ;;
  1300. --x)
  1301. # Obsolete; use --with-x.
  1302. with_x=yes ;;
  1303. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1304. | --x-incl | --x-inc | --x-in | --x-i)
  1305. ac_prev=x_includes ;;
  1306. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1307. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1308. x_includes=$ac_optarg ;;
  1309. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1310. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1311. ac_prev=x_libraries ;;
  1312. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1313. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1314. x_libraries=$ac_optarg ;;
  1315. -*) as_fn_error "unrecognized option: \`$ac_option'
  1316. Try \`$0 --help' for more information."
  1317. ;;
  1318. *=*)
  1319. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1320. # Reject names that are not valid shell variable names.
  1321. case $ac_envvar in #(
  1322. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1323. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1324. esac
  1325. eval $ac_envvar=\$ac_optarg
  1326. export $ac_envvar ;;
  1327. *)
  1328. # FIXME: should be removed in autoconf 3.0.
  1329. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1330. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1331. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1332. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1333. ;;
  1334. esac
  1335. done
  1336. if test -n "$ac_prev"; then
  1337. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1338. as_fn_error "missing argument to $ac_option"
  1339. fi
  1340. if test -n "$ac_unrecognized_opts"; then
  1341. case $enable_option_checking in
  1342. no) ;;
  1343. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1344. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1345. esac
  1346. fi
  1347. # Check all directory arguments for consistency.
  1348. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1349. datadir sysconfdir sharedstatedir localstatedir includedir \
  1350. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1351. libdir localedir mandir
  1352. do
  1353. eval ac_val=\$$ac_var
  1354. # Remove trailing slashes.
  1355. case $ac_val in
  1356. */ )
  1357. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1358. eval $ac_var=\$ac_val;;
  1359. esac
  1360. # Be sure to have absolute directory names.
  1361. case $ac_val in
  1362. [\\/$]* | ?:[\\/]* ) continue;;
  1363. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1364. esac
  1365. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1366. done
  1367. # There might be people who depend on the old broken behavior: `$host'
  1368. # used to hold the argument of --host etc.
  1369. # FIXME: To remove some day.
  1370. build=$build_alias
  1371. host=$host_alias
  1372. target=$target_alias
  1373. # FIXME: To remove some day.
  1374. if test "x$host_alias" != x; then
  1375. if test "x$build_alias" = x; then
  1376. cross_compiling=maybe
  1377. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1378. If a cross compiler is detected then cross compile mode will be used." >&2
  1379. elif test "x$build_alias" != "x$host_alias"; then
  1380. cross_compiling=yes
  1381. fi
  1382. fi
  1383. ac_tool_prefix=
  1384. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1385. test "$silent" = yes && exec 6>/dev/null
  1386. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1387. ac_ls_di=`ls -di .` &&
  1388. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1389. as_fn_error "working directory cannot be determined"
  1390. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1391. as_fn_error "pwd does not report name of working directory"
  1392. # Find the source files, if location was not specified.
  1393. if test -z "$srcdir"; then
  1394. ac_srcdir_defaulted=yes
  1395. # Try the directory containing this script, then the parent directory.
  1396. ac_confdir=`$as_dirname -- "$as_myself" ||
  1397. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1398. X"$as_myself" : 'X\(//\)[^/]' \| \
  1399. X"$as_myself" : 'X\(//\)$' \| \
  1400. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1401. $as_echo X"$as_myself" |
  1402. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1403. s//\1/
  1404. q
  1405. }
  1406. /^X\(\/\/\)[^/].*/{
  1407. s//\1/
  1408. q
  1409. }
  1410. /^X\(\/\/\)$/{
  1411. s//\1/
  1412. q
  1413. }
  1414. /^X\(\/\).*/{
  1415. s//\1/
  1416. q
  1417. }
  1418. s/.*/./; q'`
  1419. srcdir=$ac_confdir
  1420. if test ! -r "$srcdir/$ac_unique_file"; then
  1421. srcdir=..
  1422. fi
  1423. else
  1424. ac_srcdir_defaulted=no
  1425. fi
  1426. if test ! -r "$srcdir/$ac_unique_file"; then
  1427. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1428. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1429. fi
  1430. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1431. ac_abs_confdir=`(
  1432. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1433. pwd)`
  1434. # When building in place, set srcdir=.
  1435. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1436. srcdir=.
  1437. fi
  1438. # Remove unnecessary trailing slashes from srcdir.
  1439. # Double slashes in file names in object file debugging info
  1440. # mess up M-x gdb in Emacs.
  1441. case $srcdir in
  1442. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1443. esac
  1444. for ac_var in $ac_precious_vars; do
  1445. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1446. eval ac_env_${ac_var}_value=\$${ac_var}
  1447. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1448. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1449. done
  1450. #
  1451. # Report the --help message.
  1452. #
  1453. if test "$ac_init_help" = "long"; then
  1454. # Omit some internal or obsolete options to make the list less imposing.
  1455. # This message is too long to be a string in the A/UX 3.1 sh.
  1456. cat <<_ACEOF
  1457. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1458. Usage: $0 [OPTION]... [VAR=VALUE]...
  1459. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1460. VAR=VALUE. See below for descriptions of some of the useful variables.
  1461. Defaults for the options are specified in brackets.
  1462. Configuration:
  1463. -h, --help display this help and exit
  1464. --help=short display options specific to this package
  1465. --help=recursive display the short help of all the included packages
  1466. -V, --version display version information and exit
  1467. -q, --quiet, --silent do not print \`checking...' messages
  1468. --cache-file=FILE cache test results in FILE [disabled]
  1469. -C, --config-cache alias for \`--cache-file=config.cache'
  1470. -n, --no-create do not create output files
  1471. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1472. Installation directories:
  1473. --prefix=PREFIX install architecture-independent files in PREFIX
  1474. [$ac_default_prefix]
  1475. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1476. [PREFIX]
  1477. By default, \`make install' will install all the files in
  1478. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1479. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1480. for instance \`--prefix=\$HOME'.
  1481. For better control, use the options below.
  1482. Fine tuning of the installation directories:
  1483. --bindir=DIR user executables [EPREFIX/bin]
  1484. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1485. --libexecdir=DIR program executables [EPREFIX/libexec]
  1486. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1487. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1488. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1489. --libdir=DIR object code libraries [EPREFIX/lib]
  1490. --includedir=DIR C header files [PREFIX/include]
  1491. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1492. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1493. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1494. --infodir=DIR info documentation [DATAROOTDIR/info]
  1495. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1496. --mandir=DIR man documentation [DATAROOTDIR/man]
  1497. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1498. --htmldir=DIR html documentation [DOCDIR]
  1499. --dvidir=DIR dvi documentation [DOCDIR]
  1500. --pdfdir=DIR pdf documentation [DOCDIR]
  1501. --psdir=DIR ps documentation [DOCDIR]
  1502. _ACEOF
  1503. cat <<\_ACEOF
  1504. Program names:
  1505. --program-prefix=PREFIX prepend PREFIX to installed program names
  1506. --program-suffix=SUFFIX append SUFFIX to installed program names
  1507. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1508. System types:
  1509. --build=BUILD configure for building on BUILD [guessed]
  1510. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1511. _ACEOF
  1512. fi
  1513. if test -n "$ac_init_help"; then
  1514. case $ac_init_help in
  1515. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1516. esac
  1517. cat <<\_ACEOF
  1518. Optional Features:
  1519. --disable-option-checking ignore unrecognized --enable/--with options
  1520. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1521. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1522. --enable-maintainer-mode enable make rules and dependencies not useful
  1523. (and sometimes confusing) to the casual installer
  1524. --disable-dependency-tracking speeds up one-time build
  1525. --enable-dependency-tracking do not reject slow dependency extractors
  1526. --enable-static[=PKGS] build static libraries [default=no]
  1527. --enable-shared[=PKGS] build shared libraries [default=yes]
  1528. --enable-fast-install[=PKGS]
  1529. optimize for fast installation [default=yes]
  1530. --disable-libtool-lock avoid locking (might break parallel builds)
  1531. --enable-debug Enable debug features (default: no)
  1532. --enable-bundle Enable bundled dependencies (default: no)
  1533. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1534. yes)
  1535. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1536. plugin (default: yes)
  1537. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1538. (default: yes)
  1539. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1540. support (default: no)
  1541. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1542. domain socket (LDAPI) support (default: no)
  1543. --enable-bitwise enable the bitwise matching rule plugin (default:
  1544. yes)
  1545. --enable-presence enable the presence plugin (default: no)
  1546. Optional Packages:
  1547. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1548. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1549. --with-pic try to use only PIC/non-PIC objects [default=use
  1550. both]
  1551. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1552. --with-fhs Use FHS layout
  1553. --with-fhs-opt Use FHS optional layout
  1554. --with-instconfigdir=/path
  1555. Base directory for instance specific writable
  1556. configuration directories (default
  1557. $sysconfdir/$PACKAGE_NAME)
  1558. --with-initddir=/path Absolute path (not relative like some of the other
  1559. options) that should contain the SysV init scripts
  1560. (default '$(sysconfdir)/rc.d')
  1561. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1562. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1563. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1564. --with-nss[=PATH] Network Security Services (NSS) directory
  1565. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1566. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1567. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1568. --with-openldap-inc=PATH
  1569. OpenLDAP SDK include directory
  1570. --with-openldap-lib=PATH
  1571. OpenLDAP SDK library directory
  1572. --with-openldap-bin=PATH
  1573. OpenLDAP SDK binary directory
  1574. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1575. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1576. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1577. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1578. --with-db[=PATH] Berkeley DB directory
  1579. --with-db-inc=PATH Berkeley DB include file directory
  1580. --with-db-lib=PATH Berkeley DB library directory
  1581. --with-sasl[=PATH] Use SASL from supplied path
  1582. --with-sasl-inc=PATH SASL include file directory
  1583. --with-sasl-lib=PATH SASL library directory
  1584. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1585. SVRCORE
  1586. --with-svrcore-inc=PATH SVRCORE include file directory
  1587. --with-svrcore-lib=PATH SVRCORE library directory
  1588. --with-icu[=PATH] ICU directory
  1589. --with-icu-inc=PATH ICU include directory
  1590. --with-icu-lib=PATH ICU library directory
  1591. --with-icu-bin=PATH ICU binary directory
  1592. --with-netsnmp[=PATH] Net-SNMP directory
  1593. --with-netsnmp-inc=PATH Net-SNMP include directory
  1594. --with-netsnmp-lib=PATH Net-SNMP library directory
  1595. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1596. the server to authenticate directly with a keytab -
  1597. otherwise, SASL/GSSAPI auth depends on underlying
  1598. SASL libraries and external kinit with a keytab - if
  1599. PATH is not specified, look for kerberos in the
  1600. system locations. This will attempt to use
  1601. krb5-config from the PATH to find the libs and
  1602. include dirs - you can specify KRB5_CONFIG_BIN to
  1603. specify a different filename or absolute path. If
  1604. krb5-config does not work, this will attempt to look
  1605. in various system directories
  1606. --with-kerberos-inc=PATH
  1607. Allows you to explicitly set the directory
  1608. containing the kerberos include files - implies use
  1609. of kerberos
  1610. --with-kerberos-lib=PATH
  1611. Allows you to explicitly set the directory
  1612. containing the kerberos libraries - implies use of
  1613. kerberos
  1614. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1615. --with-selinux Build SELinux policy
  1616. Some influential environment variables:
  1617. CXX C++ compiler command
  1618. CXXFLAGS C++ compiler flags
  1619. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1620. nonstandard directory <lib dir>
  1621. LIBS libraries to pass to the linker, e.g. -l<library>
  1622. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1623. you have headers in a nonstandard directory <include dir>
  1624. CC C compiler command
  1625. CFLAGS C compiler flags
  1626. CCAS assembler compiler command (defaults to CC)
  1627. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1628. CPP C preprocessor
  1629. CXXCPP C++ preprocessor
  1630. Use these variables to override the choices made by `configure' or to help
  1631. it to find libraries and programs with nonstandard names/locations.
  1632. Report bugs to <http://bugzilla.redhat.com/>.
  1633. _ACEOF
  1634. ac_status=$?
  1635. fi
  1636. if test "$ac_init_help" = "recursive"; then
  1637. # If there are subdirs, report their specific --help.
  1638. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1639. test -d "$ac_dir" ||
  1640. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1641. continue
  1642. ac_builddir=.
  1643. case "$ac_dir" in
  1644. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1645. *)
  1646. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1647. # A ".." for each directory in $ac_dir_suffix.
  1648. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1649. case $ac_top_builddir_sub in
  1650. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1651. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1652. esac ;;
  1653. esac
  1654. ac_abs_top_builddir=$ac_pwd
  1655. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1656. # for backward compatibility:
  1657. ac_top_builddir=$ac_top_build_prefix
  1658. case $srcdir in
  1659. .) # We are building in place.
  1660. ac_srcdir=.
  1661. ac_top_srcdir=$ac_top_builddir_sub
  1662. ac_abs_top_srcdir=$ac_pwd ;;
  1663. [\\/]* | ?:[\\/]* ) # Absolute name.
  1664. ac_srcdir=$srcdir$ac_dir_suffix;
  1665. ac_top_srcdir=$srcdir
  1666. ac_abs_top_srcdir=$srcdir ;;
  1667. *) # Relative name.
  1668. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1669. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1670. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1671. esac
  1672. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1673. cd "$ac_dir" || { ac_status=$?; continue; }
  1674. # Check for guested configure.
  1675. if test -f "$ac_srcdir/configure.gnu"; then
  1676. echo &&
  1677. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1678. elif test -f "$ac_srcdir/configure"; then
  1679. echo &&
  1680. $SHELL "$ac_srcdir/configure" --help=recursive
  1681. else
  1682. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1683. fi || ac_status=$?
  1684. cd "$ac_pwd" || { ac_status=$?; break; }
  1685. done
  1686. fi
  1687. test -n "$ac_init_help" && exit $ac_status
  1688. if $ac_init_version; then
  1689. cat <<\_ACEOF
  1690. dirsrv configure 1.0
  1691. generated by GNU Autoconf 2.65
  1692. Copyright (C) 2009 Free Software Foundation, Inc.
  1693. This configure script is free software; the Free Software Foundation
  1694. gives unlimited permission to copy, distribute and modify it.
  1695. _ACEOF
  1696. exit
  1697. fi
  1698. ## ------------------------ ##
  1699. ## Autoconf initialization. ##
  1700. ## ------------------------ ##
  1701. # ac_fn_cxx_try_compile LINENO
  1702. # ----------------------------
  1703. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1704. ac_fn_cxx_try_compile ()
  1705. {
  1706. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1707. rm -f conftest.$ac_objext
  1708. if { { ac_try="$ac_compile"
  1709. case "(($ac_try" in
  1710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1711. *) ac_try_echo=$ac_try;;
  1712. esac
  1713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1714. $as_echo "$ac_try_echo"; } >&5
  1715. (eval "$ac_compile") 2>conftest.err
  1716. ac_status=$?
  1717. if test -s conftest.err; then
  1718. grep -v '^ *+' conftest.err >conftest.er1
  1719. cat conftest.er1 >&5
  1720. mv -f conftest.er1 conftest.err
  1721. fi
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; } && {
  1724. test -z "$ac_cxx_werror_flag" ||
  1725. test ! -s conftest.err
  1726. } && test -s conftest.$ac_objext; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: failed program was:" >&5
  1730. sed 's/^/| /' conftest.$ac_ext >&5
  1731. ac_retval=1
  1732. fi
  1733. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_cxx_try_compile
  1736. # ac_fn_c_try_compile LINENO
  1737. # --------------------------
  1738. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1739. ac_fn_c_try_compile ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. rm -f conftest.$ac_objext
  1743. if { { ac_try="$ac_compile"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_compile") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } && {
  1759. test -z "$ac_c_werror_flag" ||
  1760. test ! -s conftest.err
  1761. } && test -s conftest.$ac_objext; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1769. as_fn_set_status $ac_retval
  1770. } # ac_fn_c_try_compile
  1771. # ac_fn_c_try_link LINENO
  1772. # -----------------------
  1773. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1774. ac_fn_c_try_link ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. rm -f conftest.$ac_objext conftest$ac_exeext
  1778. if { { ac_try="$ac_link"
  1779. case "(($ac_try" in
  1780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1781. *) ac_try_echo=$ac_try;;
  1782. esac
  1783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1784. $as_echo "$ac_try_echo"; } >&5
  1785. (eval "$ac_link") 2>conftest.err
  1786. ac_status=$?
  1787. if test -s conftest.err; then
  1788. grep -v '^ *+' conftest.err >conftest.er1
  1789. cat conftest.er1 >&5
  1790. mv -f conftest.er1 conftest.err
  1791. fi
  1792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1793. test $ac_status = 0; } && {
  1794. test -z "$ac_c_werror_flag" ||
  1795. test ! -s conftest.err
  1796. } && test -s conftest$ac_exeext && {
  1797. test "$cross_compiling" = yes ||
  1798. $as_test_x conftest$ac_exeext
  1799. }; then :
  1800. ac_retval=0
  1801. else
  1802. $as_echo "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1807. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1808. # interfere with the next link command; also delete a directory that is
  1809. # left behind by Apple's compiler. We do this before executing the actions.
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_c_try_link
  1814. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1815. # -------------------------------------------------------
  1816. # Tests whether HEADER exists and can be compiled using the include files in
  1817. # INCLUDES, setting the cache variable VAR accordingly.
  1818. ac_fn_c_check_header_compile ()
  1819. {
  1820. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1822. $as_echo_n "checking for $2... " >&6; }
  1823. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1824. $as_echo_n "(cached) " >&6
  1825. else
  1826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1827. /* end confdefs.h. */
  1828. $4
  1829. #include <$2>
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"; then :
  1832. eval "$3=yes"
  1833. else
  1834. eval "$3=no"
  1835. fi
  1836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1837. fi
  1838. eval ac_res=\$$3
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1840. $as_echo "$ac_res" >&6; }
  1841. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1842. } # ac_fn_c_check_header_compile
  1843. # ac_fn_c_try_cpp LINENO
  1844. # ----------------------
  1845. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1846. ac_fn_c_try_cpp ()
  1847. {
  1848. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1849. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1855. $as_echo "$ac_try_echo"; } >&5
  1856. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1857. ac_status=$?
  1858. if test -s conftest.err; then
  1859. grep -v '^ *+' conftest.err >conftest.er1
  1860. cat conftest.er1 >&5
  1861. mv -f conftest.er1 conftest.err
  1862. fi
  1863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1864. test $ac_status = 0; } >/dev/null && {
  1865. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1866. test ! -s conftest.err
  1867. }; then :
  1868. ac_retval=0
  1869. else
  1870. $as_echo "$as_me: failed program was:" >&5
  1871. sed 's/^/| /' conftest.$ac_ext >&5
  1872. ac_retval=1
  1873. fi
  1874. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_c_try_cpp
  1877. # ac_fn_c_try_run LINENO
  1878. # ----------------------
  1879. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1880. # that executables *can* be run.
  1881. ac_fn_c_try_run ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. if { { ac_try="$ac_link"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. $as_echo "$ac_try_echo"; } >&5
  1891. (eval "$ac_link") 2>&5
  1892. ac_status=$?
  1893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1894. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1895. { { case "(($ac_try" in
  1896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1897. *) ac_try_echo=$ac_try;;
  1898. esac
  1899. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1900. $as_echo "$ac_try_echo"; } >&5
  1901. (eval "$ac_try") 2>&5
  1902. ac_status=$?
  1903. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1904. test $ac_status = 0; }; }; then :
  1905. ac_retval=0
  1906. else
  1907. $as_echo "$as_me: program exited with status $ac_status" >&5
  1908. $as_echo "$as_me: failed program was:" >&5
  1909. sed 's/^/| /' conftest.$ac_ext >&5
  1910. ac_retval=$ac_status
  1911. fi
  1912. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1913. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1914. as_fn_set_status $ac_retval
  1915. } # ac_fn_c_try_run
  1916. # ac_fn_c_check_func LINENO FUNC VAR
  1917. # ----------------------------------
  1918. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1919. ac_fn_c_check_func ()
  1920. {
  1921. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1923. $as_echo_n "checking for $2... " >&6; }
  1924. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1925. $as_echo_n "(cached) " >&6
  1926. else
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1930. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1931. #define $2 innocuous_$2
  1932. /* System header to define __stub macros and hopefully few prototypes,
  1933. which can conflict with char $2 (); below.
  1934. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1935. <limits.h> exists even on freestanding compilers. */
  1936. #ifdef __STDC__
  1937. # include <limits.h>
  1938. #else
  1939. # include <assert.h>
  1940. #endif
  1941. #undef $2
  1942. /* Override any GCC internal prototype to avoid an error.
  1943. Use char because int might match the return type of a GCC
  1944. builtin and then its argument prototype would still apply. */
  1945. #ifdef __cplusplus
  1946. extern "C"
  1947. #endif
  1948. char $2 ();
  1949. /* The GNU C library defines this for functions which it implements
  1950. to always fail with ENOSYS. Some functions are actually named
  1951. something starting with __ and the normal name is an alias. */
  1952. #if defined __stub_$2 || defined __stub___$2
  1953. choke me
  1954. #endif
  1955. int
  1956. main ()
  1957. {
  1958. return $2 ();
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. if ac_fn_c_try_link "$LINENO"; then :
  1964. eval "$3=yes"
  1965. else
  1966. eval "$3=no"
  1967. fi
  1968. rm -f core conftest.err conftest.$ac_objext \
  1969. conftest$ac_exeext conftest.$ac_ext
  1970. fi
  1971. eval ac_res=\$$3
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1973. $as_echo "$ac_res" >&6; }
  1974. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1975. } # ac_fn_c_check_func
  1976. # ac_fn_cxx_try_cpp LINENO
  1977. # ------------------------
  1978. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1979. ac_fn_cxx_try_cpp ()
  1980. {
  1981. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1982. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1983. case "(($ac_try" in
  1984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1985. *) ac_try_echo=$ac_try;;
  1986. esac
  1987. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1988. $as_echo "$ac_try_echo"; } >&5
  1989. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1990. ac_status=$?
  1991. if test -s conftest.err; then
  1992. grep -v '^ *+' conftest.err >conftest.er1
  1993. cat conftest.er1 >&5
  1994. mv -f conftest.er1 conftest.err
  1995. fi
  1996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1997. test $ac_status = 0; } >/dev/null && {
  1998. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1999. test ! -s conftest.err
  2000. }; then :
  2001. ac_retval=0
  2002. else
  2003. $as_echo "$as_me: failed program was:" >&5
  2004. sed 's/^/| /' conftest.$ac_ext >&5
  2005. ac_retval=1
  2006. fi
  2007. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2008. as_fn_set_status $ac_retval
  2009. } # ac_fn_cxx_try_cpp
  2010. # ac_fn_cxx_try_link LINENO
  2011. # -------------------------
  2012. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2013. ac_fn_cxx_try_link ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. rm -f conftest.$ac_objext conftest$ac_exeext
  2017. if { { ac_try="$ac_link"
  2018. case "(($ac_try" in
  2019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2020. *) ac_try_echo=$ac_try;;
  2021. esac
  2022. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2023. $as_echo "$ac_try_echo"; } >&5
  2024. (eval "$ac_link") 2>conftest.err
  2025. ac_status=$?
  2026. if test -s conftest.err; then
  2027. grep -v '^ *+' conftest.err >conftest.er1
  2028. cat conftest.er1 >&5
  2029. mv -f conftest.er1 conftest.err
  2030. fi
  2031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2032. test $ac_status = 0; } && {
  2033. test -z "$ac_cxx_werror_flag" ||
  2034. test ! -s conftest.err
  2035. } && test -s conftest$ac_exeext && {
  2036. test "$cross_compiling" = yes ||
  2037. $as_test_x conftest$ac_exeext
  2038. }; then :
  2039. ac_retval=0
  2040. else
  2041. $as_echo "$as_me: failed program was:" >&5
  2042. sed 's/^/| /' conftest.$ac_ext >&5
  2043. ac_retval=1
  2044. fi
  2045. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2046. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2047. # interfere with the next link command; also delete a directory that is
  2048. # left behind by Apple's compiler. We do this before executing the actions.
  2049. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2050. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2051. as_fn_set_status $ac_retval
  2052. } # ac_fn_cxx_try_link
  2053. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2054. # -------------------------------------------------------
  2055. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2056. # the include files in INCLUDES and setting the cache variable VAR
  2057. # accordingly.
  2058. ac_fn_c_check_header_mongrel ()
  2059. {
  2060. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2061. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2063. $as_echo_n "checking for $2... " >&6; }
  2064. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2065. $as_echo_n "(cached) " >&6
  2066. fi
  2067. eval ac_res=\$$3
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2069. $as_echo "$ac_res" >&6; }
  2070. else
  2071. # Is the header compilable?
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2073. $as_echo_n "checking $2 usability... " >&6; }
  2074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2075. /* end confdefs.h. */
  2076. $4
  2077. #include <$2>
  2078. _ACEOF
  2079. if ac_fn_c_try_compile "$LINENO"; then :
  2080. ac_header_compiler=yes
  2081. else
  2082. ac_header_compiler=no
  2083. fi
  2084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2086. $as_echo "$ac_header_compiler" >&6; }
  2087. # Is the header present?
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2089. $as_echo_n "checking $2 presence... " >&6; }
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. #include <$2>
  2093. _ACEOF
  2094. if ac_fn_c_try_cpp "$LINENO"; then :
  2095. ac_header_preproc=yes
  2096. else
  2097. ac_header_preproc=no
  2098. fi
  2099. rm -f conftest.err conftest.$ac_ext
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2101. $as_echo "$ac_header_preproc" >&6; }
  2102. # So? What about this header?
  2103. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2104. yes:no: )
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2106. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2108. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2109. ;;
  2110. no:yes:* )
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2112. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2114. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2116. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2118. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2120. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2121. ( cat <<\_ASBOX
  2122. ## ------------------------------------------ ##
  2123. ## Report this to http://bugzilla.redhat.com/ ##
  2124. ## ------------------------------------------ ##
  2125. _ASBOX
  2126. ) | sed "s/^/$as_me: WARNING: /" >&2
  2127. ;;
  2128. esac
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2130. $as_echo_n "checking for $2... " >&6; }
  2131. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2132. $as_echo_n "(cached) " >&6
  2133. else
  2134. eval "$3=\$ac_header_compiler"
  2135. fi
  2136. eval ac_res=\$$3
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2138. $as_echo "$ac_res" >&6; }
  2139. fi
  2140. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2141. } # ac_fn_c_check_header_mongrel
  2142. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2143. # -------------------------------------------
  2144. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2145. # variable VAR accordingly.
  2146. ac_fn_c_check_type ()
  2147. {
  2148. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2150. $as_echo_n "checking for $2... " >&6; }
  2151. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2152. $as_echo_n "(cached) " >&6
  2153. else
  2154. eval "$3=no"
  2155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2156. /* end confdefs.h. */
  2157. $4
  2158. int
  2159. main ()
  2160. {
  2161. if (sizeof ($2))
  2162. return 0;
  2163. ;
  2164. return 0;
  2165. }
  2166. _ACEOF
  2167. if ac_fn_c_try_compile "$LINENO"; then :
  2168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2169. /* end confdefs.h. */
  2170. $4
  2171. int
  2172. main ()
  2173. {
  2174. if (sizeof (($2)))
  2175. return 0;
  2176. ;
  2177. return 0;
  2178. }
  2179. _ACEOF
  2180. if ac_fn_c_try_compile "$LINENO"; then :
  2181. else
  2182. eval "$3=yes"
  2183. fi
  2184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2185. fi
  2186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2187. fi
  2188. eval ac_res=\$$3
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2190. $as_echo "$ac_res" >&6; }
  2191. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2192. } # ac_fn_c_check_type
  2193. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2194. # ------------------------------------
  2195. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2196. ac_fn_c_check_decl ()
  2197. {
  2198. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  2200. $as_echo_n "checking whether $2 is declared... " >&6; }
  2201. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2202. $as_echo_n "(cached) " >&6
  2203. else
  2204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2205. /* end confdefs.h. */
  2206. $4
  2207. int
  2208. main ()
  2209. {
  2210. #ifndef $2
  2211. (void) $2;
  2212. #endif
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. if ac_fn_c_try_compile "$LINENO"; then :
  2218. eval "$3=yes"
  2219. else
  2220. eval "$3=no"
  2221. fi
  2222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2223. fi
  2224. eval ac_res=\$$3
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2226. $as_echo "$ac_res" >&6; }
  2227. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2228. } # ac_fn_c_check_decl
  2229. cat >config.log <<_ACEOF
  2230. This file contains any messages produced by compilers while
  2231. running configure, to aid debugging if configure makes a mistake.
  2232. It was created by dirsrv $as_me 1.0, which was
  2233. generated by GNU Autoconf 2.65. Invocation command line was
  2234. $ $0 $@
  2235. _ACEOF
  2236. exec 5>>config.log
  2237. {
  2238. cat <<_ASUNAME
  2239. ## --------- ##
  2240. ## Platform. ##
  2241. ## --------- ##
  2242. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2243. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2244. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2245. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2246. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2247. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2248. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2249. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2250. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2251. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2252. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2253. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2254. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2255. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2256. _ASUNAME
  2257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2258. for as_dir in $PATH
  2259. do
  2260. IFS=$as_save_IFS
  2261. test -z "$as_dir" && as_dir=.
  2262. $as_echo "PATH: $as_dir"
  2263. done
  2264. IFS=$as_save_IFS
  2265. } >&5
  2266. cat >&5 <<_ACEOF
  2267. ## ----------- ##
  2268. ## Core tests. ##
  2269. ## ----------- ##
  2270. _ACEOF
  2271. # Keep a trace of the command line.
  2272. # Strip out --no-create and --no-recursion so they do not pile up.
  2273. # Strip out --silent because we don't want to record it for future runs.
  2274. # Also quote any args containing shell meta-characters.
  2275. # Make two passes to allow for proper duplicate-argument suppression.
  2276. ac_configure_args=
  2277. ac_configure_args0=
  2278. ac_configure_args1=
  2279. ac_must_keep_next=false
  2280. for ac_pass in 1 2
  2281. do
  2282. for ac_arg
  2283. do
  2284. case $ac_arg in
  2285. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2286. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2287. | -silent | --silent | --silen | --sile | --sil)
  2288. continue ;;
  2289. *\'*)
  2290. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2291. esac
  2292. case $ac_pass in
  2293. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2294. 2)
  2295. as_fn_append ac_configure_args1 " '$ac_arg'"
  2296. if test $ac_must_keep_next = true; then
  2297. ac_must_keep_next=false # Got value, back to normal.
  2298. else
  2299. case $ac_arg in
  2300. *=* | --config-cache | -C | -disable-* | --disable-* \
  2301. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2302. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2303. | -with-* | --with-* | -without-* | --without-* | --x)
  2304. case "$ac_configure_args0 " in
  2305. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2306. esac
  2307. ;;
  2308. -* ) ac_must_keep_next=true ;;
  2309. esac
  2310. fi
  2311. as_fn_append ac_configure_args " '$ac_arg'"
  2312. ;;
  2313. esac
  2314. done
  2315. done
  2316. { ac_configure_args0=; unset ac_configure_args0;}
  2317. { ac_configure_args1=; unset ac_configure_args1;}
  2318. # When interrupted or exit'd, cleanup temporary files, and complete
  2319. # config.log. We remove comments because anyway the quotes in there
  2320. # would cause problems or look ugly.
  2321. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2322. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2323. trap 'exit_status=$?
  2324. # Save into config.log some information that might help in debugging.
  2325. {
  2326. echo
  2327. cat <<\_ASBOX
  2328. ## ---------------- ##
  2329. ## Cache variables. ##
  2330. ## ---------------- ##
  2331. _ASBOX
  2332. echo
  2333. # The following way of writing the cache mishandles newlines in values,
  2334. (
  2335. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2336. eval ac_val=\$$ac_var
  2337. case $ac_val in #(
  2338. *${as_nl}*)
  2339. case $ac_var in #(
  2340. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2341. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2342. esac
  2343. case $ac_var in #(
  2344. _ | IFS | as_nl) ;; #(
  2345. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2346. *) { eval $ac_var=; unset $ac_var;} ;;
  2347. esac ;;
  2348. esac
  2349. done
  2350. (set) 2>&1 |
  2351. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2352. *${as_nl}ac_space=\ *)
  2353. sed -n \
  2354. "s/'\''/'\''\\\\'\'''\''/g;
  2355. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2356. ;; #(
  2357. *)
  2358. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2359. ;;
  2360. esac |
  2361. sort
  2362. )
  2363. echo
  2364. cat <<\_ASBOX
  2365. ## ----------------- ##
  2366. ## Output variables. ##
  2367. ## ----------------- ##
  2368. _ASBOX
  2369. echo
  2370. for ac_var in $ac_subst_vars
  2371. do
  2372. eval ac_val=\$$ac_var
  2373. case $ac_val in
  2374. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2375. esac
  2376. $as_echo "$ac_var='\''$ac_val'\''"
  2377. done | sort
  2378. echo
  2379. if test -n "$ac_subst_files"; then
  2380. cat <<\_ASBOX
  2381. ## ------------------- ##
  2382. ## File substitutions. ##
  2383. ## ------------------- ##
  2384. _ASBOX
  2385. echo
  2386. for ac_var in $ac_subst_files
  2387. do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in
  2390. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2391. esac
  2392. $as_echo "$ac_var='\''$ac_val'\''"
  2393. done | sort
  2394. echo
  2395. fi
  2396. if test -s confdefs.h; then
  2397. cat <<\_ASBOX
  2398. ## ----------- ##
  2399. ## confdefs.h. ##
  2400. ## ----------- ##
  2401. _ASBOX
  2402. echo
  2403. cat confdefs.h
  2404. echo
  2405. fi
  2406. test "$ac_signal" != 0 &&
  2407. $as_echo "$as_me: caught signal $ac_signal"
  2408. $as_echo "$as_me: exit $exit_status"
  2409. } >&5
  2410. rm -f core *.core core.conftest.* &&
  2411. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2412. exit $exit_status
  2413. ' 0
  2414. for ac_signal in 1 2 13 15; do
  2415. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2416. done
  2417. ac_signal=0
  2418. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2419. rm -f -r conftest* confdefs.h
  2420. $as_echo "/* confdefs.h */" > confdefs.h
  2421. # Predefined preprocessor variables.
  2422. cat >>confdefs.h <<_ACEOF
  2423. #define PACKAGE_NAME "$PACKAGE_NAME"
  2424. _ACEOF
  2425. cat >>confdefs.h <<_ACEOF
  2426. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2427. _ACEOF
  2428. cat >>confdefs.h <<_ACEOF
  2429. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2430. _ACEOF
  2431. cat >>confdefs.h <<_ACEOF
  2432. #define PACKAGE_STRING "$PACKAGE_STRING"
  2433. _ACEOF
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2436. _ACEOF
  2437. cat >>confdefs.h <<_ACEOF
  2438. #define PACKAGE_URL "$PACKAGE_URL"
  2439. _ACEOF
  2440. # Let the site file select an alternate cache file if it wants to.
  2441. # Prefer an explicitly selected file to automatically selected ones.
  2442. ac_site_file1=NONE
  2443. ac_site_file2=NONE
  2444. if test -n "$CONFIG_SITE"; then
  2445. ac_site_file1=$CONFIG_SITE
  2446. elif test "x$prefix" != xNONE; then
  2447. ac_site_file1=$prefix/share/config.site
  2448. ac_site_file2=$prefix/etc/config.site
  2449. else
  2450. ac_site_file1=$ac_default_prefix/share/config.site
  2451. ac_site_file2=$ac_default_prefix/etc/config.site
  2452. fi
  2453. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2454. do
  2455. test "x$ac_site_file" = xNONE && continue
  2456. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2458. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2459. sed 's/^/| /' "$ac_site_file" >&5
  2460. . "$ac_site_file"
  2461. fi
  2462. done
  2463. if test -r "$cache_file"; then
  2464. # Some versions of bash will fail to source /dev/null (special files
  2465. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2466. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2468. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2469. case $cache_file in
  2470. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2471. *) . "./$cache_file";;
  2472. esac
  2473. fi
  2474. else
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2476. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2477. >$cache_file
  2478. fi
  2479. as_fn_append ac_header_list " stdlib.h"
  2480. as_fn_append ac_header_list " unistd.h"
  2481. as_fn_append ac_header_list " sys/param.h"
  2482. # Check that the precious variables saved in the cache have kept the same
  2483. # value.
  2484. ac_cache_corrupted=false
  2485. for ac_var in $ac_precious_vars; do
  2486. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2487. eval ac_new_set=\$ac_env_${ac_var}_set
  2488. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2489. eval ac_new_val=\$ac_env_${ac_var}_value
  2490. case $ac_old_set,$ac_new_set in
  2491. set,)
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2493. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2494. ac_cache_corrupted=: ;;
  2495. ,set)
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2497. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2498. ac_cache_corrupted=: ;;
  2499. ,);;
  2500. *)
  2501. if test "x$ac_old_val" != "x$ac_new_val"; then
  2502. # differences in whitespace do not lead to failure.
  2503. ac_old_val_w=`echo x $ac_old_val`
  2504. ac_new_val_w=`echo x $ac_new_val`
  2505. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2507. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2508. ac_cache_corrupted=:
  2509. else
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2511. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2512. eval $ac_var=\$ac_old_val
  2513. fi
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2515. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2517. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2518. fi;;
  2519. esac
  2520. # Pass precious variables to config.status.
  2521. if test "$ac_new_set" = set; then
  2522. case $ac_new_val in
  2523. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2524. *) ac_arg=$ac_var=$ac_new_val ;;
  2525. esac
  2526. case " $ac_configure_args " in
  2527. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2528. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2529. esac
  2530. fi
  2531. done
  2532. if $ac_cache_corrupted; then
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2534. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2536. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2537. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2538. fi
  2539. ## -------------------- ##
  2540. ## Main body of script. ##
  2541. ## -------------------- ##
  2542. ac_ext=c
  2543. ac_cpp='$CPP $CPPFLAGS'
  2544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2547. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2548. ac_config_headers="$ac_config_headers config.h"
  2549. # include the version information
  2550. . $srcdir/VERSION.sh
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2552. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2553. cat >>confdefs.h <<_ACEOF
  2554. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2555. _ACEOF
  2556. cat >>confdefs.h <<_ACEOF
  2557. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2558. _ACEOF
  2559. cat >>confdefs.h <<_ACEOF
  2560. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2561. _ACEOF
  2562. cat >>confdefs.h <<_ACEOF
  2563. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2564. _ACEOF
  2565. am__api_version='1.11'
  2566. ac_aux_dir=
  2567. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2568. for ac_t in install-sh install.sh shtool; do
  2569. if test -f "$ac_dir/$ac_t"; then
  2570. ac_aux_dir=$ac_dir
  2571. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2572. break 2
  2573. fi
  2574. done
  2575. done
  2576. if test -z "$ac_aux_dir"; then
  2577. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2578. fi
  2579. # These three variables are undocumented and unsupported,
  2580. # and are intended to be withdrawn in a future Autoconf release.
  2581. # They can cause serious problems if a builder's source tree is in a directory
  2582. # whose full name contains unusual characters.
  2583. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2584. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2585. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2586. # Find a good install program. We prefer a C program (faster),
  2587. # so one script is as good as another. But avoid the broken or
  2588. # incompatible versions:
  2589. # SysV /etc/install, /usr/sbin/install
  2590. # SunOS /usr/etc/install
  2591. # IRIX /sbin/install
  2592. # AIX /bin/install
  2593. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2594. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2595. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2596. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2597. # OS/2's system install, which has a completely different semantic
  2598. # ./install, which can be erroneously created by make from ./install.sh.
  2599. # Reject install programs that cannot install multiple files.
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2601. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2602. if test -z "$INSTALL"; then
  2603. if test "${ac_cv_path_install+set}" = set; then :
  2604. $as_echo_n "(cached) " >&6
  2605. else
  2606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2607. for as_dir in $PATH
  2608. do
  2609. IFS=$as_save_IFS
  2610. test -z "$as_dir" && as_dir=.
  2611. # Account for people who put trailing slashes in PATH elements.
  2612. case $as_dir/ in #((
  2613. ./ | .// | /[cC]/* | \
  2614. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2615. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2616. /usr/ucb/* ) ;;
  2617. *)
  2618. # OSF1 and SCO ODT 3.0 have their own names for install.
  2619. # Don't use installbsd from OSF since it installs stuff as root
  2620. # by default.
  2621. for ac_prog in ginstall scoinst install; do
  2622. for ac_exec_ext in '' $ac_executable_extensions; do
  2623. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2624. if test $ac_prog = install &&
  2625. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2626. # AIX install. It has an incompatible calling convention.
  2627. :
  2628. elif test $ac_prog = install &&
  2629. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2630. # program-specific install script used by HP pwplus--don't use.
  2631. :
  2632. else
  2633. rm -rf conftest.one conftest.two conftest.dir
  2634. echo one > conftest.one
  2635. echo two > conftest.two
  2636. mkdir conftest.dir
  2637. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2638. test -s conftest.one && test -s conftest.two &&
  2639. test -s conftest.dir/conftest.one &&
  2640. test -s conftest.dir/conftest.two
  2641. then
  2642. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2643. break 3
  2644. fi
  2645. fi
  2646. fi
  2647. done
  2648. done
  2649. ;;
  2650. esac
  2651. done
  2652. IFS=$as_save_IFS
  2653. rm -rf conftest.one conftest.two conftest.dir
  2654. fi
  2655. if test "${ac_cv_path_install+set}" = set; then
  2656. INSTALL=$ac_cv_path_install
  2657. else
  2658. # As a last resort, use the slow shell script. Don't cache a
  2659. # value for INSTALL within a source directory, because that will
  2660. # break other packages using the cache if that directory is
  2661. # removed, or if the value is a relative name.
  2662. INSTALL=$ac_install_sh
  2663. fi
  2664. fi
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2666. $as_echo "$INSTALL" >&6; }
  2667. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2668. # It thinks the first close brace ends the variable substitution.
  2669. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2670. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2671. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2673. $as_echo_n "checking whether build environment is sane... " >&6; }
  2674. # Just in case
  2675. sleep 1
  2676. echo timestamp > conftest.file
  2677. # Reject unsafe characters in $srcdir or the absolute working directory
  2678. # name. Accept space and tab only in the latter.
  2679. am_lf='
  2680. '
  2681. case `pwd` in
  2682. *[\\\"\#\$\&\'\`$am_lf]*)
  2683. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2684. esac
  2685. case $srcdir in
  2686. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2687. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2688. esac
  2689. # Do `set' in a subshell so we don't clobber the current shell's
  2690. # arguments. Must try -L first in case configure is actually a
  2691. # symlink; some systems play weird games with the mod time of symlinks
  2692. # (eg FreeBSD returns the mod time of the symlink's containing
  2693. # directory).
  2694. if (
  2695. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2696. if test "$*" = "X"; then
  2697. # -L didn't work.
  2698. set X `ls -t "$srcdir/configure" conftest.file`
  2699. fi
  2700. rm -f conftest.file
  2701. if test "$*" != "X $srcdir/configure conftest.file" \
  2702. && test "$*" != "X conftest.file $srcdir/configure"; then
  2703. # If neither matched, then we have a broken ls. This can happen
  2704. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2705. # broken ls alias from the environment. This has actually
  2706. # happened. Such a system could not be considered "sane".
  2707. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2708. alias in your environment" "$LINENO" 5
  2709. fi
  2710. test "$2" = conftest.file
  2711. )
  2712. then
  2713. # Ok.
  2714. :
  2715. else
  2716. as_fn_error "newly created file is older than distributed files!
  2717. Check your system clock" "$LINENO" 5
  2718. fi
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2720. $as_echo "yes" >&6; }
  2721. test "$program_prefix" != NONE &&
  2722. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2723. # Use a double $ so make ignores it.
  2724. test "$program_suffix" != NONE &&
  2725. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2726. # Double any \ or $.
  2727. # By default was `s,x,x', remove it if useless.
  2728. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2729. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2730. # expand $ac_aux_dir to an absolute path
  2731. am_aux_dir=`cd $ac_aux_dir && pwd`
  2732. if test x"${MISSING+set}" != xset; then
  2733. case $am_aux_dir in
  2734. *\ * | *\ *)
  2735. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2736. *)
  2737. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2738. esac
  2739. fi
  2740. # Use eval to expand $SHELL
  2741. if eval "$MISSING --run true"; then
  2742. am_missing_run="$MISSING --run "
  2743. else
  2744. am_missing_run=
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2746. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2747. fi
  2748. if test x"${install_sh}" != xset; then
  2749. case $am_aux_dir in
  2750. *\ * | *\ *)
  2751. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2752. *)
  2753. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2754. esac
  2755. fi
  2756. # Installed binaries are usually stripped using `strip' when the user
  2757. # run `make install-strip'. However `strip' might not be the right
  2758. # tool to use in cross-compilation environments, therefore Automake
  2759. # will honor the `STRIP' environment variable to overrule this program.
  2760. if test "$cross_compiling" != no; then
  2761. if test -n "$ac_tool_prefix"; then
  2762. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2763. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2765. $as_echo_n "checking for $ac_word... " >&6; }
  2766. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. if test -n "$STRIP"; then
  2770. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2771. else
  2772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2773. for as_dir in $PATH
  2774. do
  2775. IFS=$as_save_IFS
  2776. test -z "$as_dir" && as_dir=.
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2779. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. STRIP=$ac_cv_prog_STRIP
  2789. if test -n "$STRIP"; then
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2791. $as_echo "$STRIP" >&6; }
  2792. else
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. fi
  2796. fi
  2797. if test -z "$ac_cv_prog_STRIP"; then
  2798. ac_ct_STRIP=$STRIP
  2799. # Extract the first word of "strip", so it can be a program name with args.
  2800. set dummy strip; ac_word=$2
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2802. $as_echo_n "checking for $ac_word... " >&6; }
  2803. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. if test -n "$ac_ct_STRIP"; then
  2807. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2808. else
  2809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2810. for as_dir in $PATH
  2811. do
  2812. IFS=$as_save_IFS
  2813. test -z "$as_dir" && as_dir=.
  2814. for ac_exec_ext in '' $ac_executable_extensions; do
  2815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2816. ac_cv_prog_ac_ct_STRIP="strip"
  2817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2818. break 2
  2819. fi
  2820. done
  2821. done
  2822. IFS=$as_save_IFS
  2823. fi
  2824. fi
  2825. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2826. if test -n "$ac_ct_STRIP"; then
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2828. $as_echo "$ac_ct_STRIP" >&6; }
  2829. else
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2831. $as_echo "no" >&6; }
  2832. fi
  2833. if test "x$ac_ct_STRIP" = x; then
  2834. STRIP=":"
  2835. else
  2836. case $cross_compiling:$ac_tool_warned in
  2837. yes:)
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2840. ac_tool_warned=yes ;;
  2841. esac
  2842. STRIP=$ac_ct_STRIP
  2843. fi
  2844. else
  2845. STRIP="$ac_cv_prog_STRIP"
  2846. fi
  2847. fi
  2848. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2850. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2851. if test -z "$MKDIR_P"; then
  2852. if test "${ac_cv_path_mkdir+set}" = set; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2856. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2857. do
  2858. IFS=$as_save_IFS
  2859. test -z "$as_dir" && as_dir=.
  2860. for ac_prog in mkdir gmkdir; do
  2861. for ac_exec_ext in '' $ac_executable_extensions; do
  2862. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2863. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2864. 'mkdir (GNU coreutils) '* | \
  2865. 'mkdir (coreutils) '* | \
  2866. 'mkdir (fileutils) '4.1*)
  2867. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2868. break 3;;
  2869. esac
  2870. done
  2871. done
  2872. done
  2873. IFS=$as_save_IFS
  2874. fi
  2875. test -d ./--version && rmdir ./--version
  2876. if test "${ac_cv_path_mkdir+set}" = set; then
  2877. MKDIR_P="$ac_cv_path_mkdir -p"
  2878. else
  2879. # As a last resort, use the slow shell script. Don't cache a
  2880. # value for MKDIR_P within a source directory, because that will
  2881. # break other packages using the cache if that directory is
  2882. # removed, or if the value is a relative name.
  2883. MKDIR_P="$ac_install_sh -d"
  2884. fi
  2885. fi
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2887. $as_echo "$MKDIR_P" >&6; }
  2888. mkdir_p="$MKDIR_P"
  2889. case $mkdir_p in
  2890. [\\/$]* | ?:[\\/]*) ;;
  2891. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2892. esac
  2893. for ac_prog in gawk mawk nawk awk
  2894. do
  2895. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2896. set dummy $ac_prog; ac_word=$2
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2898. $as_echo_n "checking for $ac_word... " >&6; }
  2899. if test "${ac_cv_prog_AWK+set}" = set; then :
  2900. $as_echo_n "(cached) " >&6
  2901. else
  2902. if test -n "$AWK"; then
  2903. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2904. else
  2905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2906. for as_dir in $PATH
  2907. do
  2908. IFS=$as_save_IFS
  2909. test -z "$as_dir" && as_dir=.
  2910. for ac_exec_ext in '' $ac_executable_extensions; do
  2911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2912. ac_cv_prog_AWK="$ac_prog"
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2914. break 2
  2915. fi
  2916. done
  2917. done
  2918. IFS=$as_save_IFS
  2919. fi
  2920. fi
  2921. AWK=$ac_cv_prog_AWK
  2922. if test -n "$AWK"; then
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2924. $as_echo "$AWK" >&6; }
  2925. else
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2927. $as_echo "no" >&6; }
  2928. fi
  2929. test -n "$AWK" && break
  2930. done
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2932. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2933. set x ${MAKE-make}
  2934. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2935. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. cat >conftest.make <<\_ACEOF
  2939. SHELL = /bin/sh
  2940. all:
  2941. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2942. _ACEOF
  2943. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2944. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2945. *@@@%%%=?*=@@@%%%*)
  2946. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2947. *)
  2948. eval ac_cv_prog_make_${ac_make}_set=no;;
  2949. esac
  2950. rm -f conftest.make
  2951. fi
  2952. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2954. $as_echo "yes" >&6; }
  2955. SET_MAKE=
  2956. else
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2958. $as_echo "no" >&6; }
  2959. SET_MAKE="MAKE=${MAKE-make}"
  2960. fi
  2961. rm -rf .tst 2>/dev/null
  2962. mkdir .tst 2>/dev/null
  2963. if test -d .tst; then
  2964. am__leading_dot=.
  2965. else
  2966. am__leading_dot=_
  2967. fi
  2968. rmdir .tst 2>/dev/null
  2969. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2970. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2971. # is not polluted with repeated "-I."
  2972. am__isrc=' -I$(srcdir)'
  2973. # test to see if srcdir already configured
  2974. if test -f $srcdir/config.status; then
  2975. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2976. fi
  2977. fi
  2978. # test whether we have cygpath
  2979. if test -z "$CYGPATH_W"; then
  2980. if (cygpath --version) >/dev/null 2>/dev/null; then
  2981. CYGPATH_W='cygpath -w'
  2982. else
  2983. CYGPATH_W=echo
  2984. fi
  2985. fi
  2986. # Define the identity of the package.
  2987. PACKAGE='dirsrv'
  2988. VERSION='1.0'
  2989. # Some tools Automake needs.
  2990. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2991. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2992. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2993. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2994. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2995. # We need awk for the "check" target. The system "awk" is bad on
  2996. # some platforms.
  2997. # Always define AMTAR for backward compatibility.
  2998. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2999. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3000. # define these for automake distdir
  3001. VERSION=$PACKAGE_VERSION
  3002. PACKAGE=$PACKAGE_TARNAME
  3003. cat >>confdefs.h <<_ACEOF
  3004. #define VERSION "$VERSION"
  3005. _ACEOF
  3006. cat >>confdefs.h <<_ACEOF
  3007. #define PACKAGE "$PACKAGE"
  3008. _ACEOF
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3010. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3011. # Check whether --enable-maintainer-mode was given.
  3012. if test "${enable_maintainer_mode+set}" = set; then :
  3013. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3014. else
  3015. USE_MAINTAINER_MODE=no
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3018. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  3019. if test $USE_MAINTAINER_MODE = yes; then
  3020. MAINTAINER_MODE_TRUE=
  3021. MAINTAINER_MODE_FALSE='#'
  3022. else
  3023. MAINTAINER_MODE_TRUE='#'
  3024. MAINTAINER_MODE_FALSE=
  3025. fi
  3026. MAINT=$MAINTAINER_MODE_TRUE
  3027. # Make sure we can run config.sub.
  3028. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3029. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3031. $as_echo_n "checking build system type... " >&6; }
  3032. if test "${ac_cv_build+set}" = set; then :
  3033. $as_echo_n "(cached) " >&6
  3034. else
  3035. ac_build_alias=$build_alias
  3036. test "x$ac_build_alias" = x &&
  3037. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3038. test "x$ac_build_alias" = x &&
  3039. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3040. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3041. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3042. fi
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3044. $as_echo "$ac_cv_build" >&6; }
  3045. case $ac_cv_build in
  3046. *-*-*) ;;
  3047. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3048. esac
  3049. build=$ac_cv_build
  3050. ac_save_IFS=$IFS; IFS='-'
  3051. set x $ac_cv_build
  3052. shift
  3053. build_cpu=$1
  3054. build_vendor=$2
  3055. shift; shift
  3056. # Remember, the first character of IFS is used to create $*,
  3057. # except with old shells:
  3058. build_os=$*
  3059. IFS=$ac_save_IFS
  3060. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3062. $as_echo_n "checking host system type... " >&6; }
  3063. if test "${ac_cv_host+set}" = set; then :
  3064. $as_echo_n "(cached) " >&6
  3065. else
  3066. if test "x$host_alias" = x; then
  3067. ac_cv_host=$ac_cv_build
  3068. else
  3069. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3070. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3071. fi
  3072. fi
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3074. $as_echo "$ac_cv_host" >&6; }
  3075. case $ac_cv_host in
  3076. *-*-*) ;;
  3077. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3078. esac
  3079. host=$ac_cv_host
  3080. ac_save_IFS=$IFS; IFS='-'
  3081. set x $ac_cv_host
  3082. shift
  3083. host_cpu=$1
  3084. host_vendor=$2
  3085. shift; shift
  3086. # Remember, the first character of IFS is used to create $*,
  3087. # except with old shells:
  3088. host_os=$*
  3089. IFS=$ac_save_IFS
  3090. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3091. # Checks for programs.
  3092. ac_ext=cpp
  3093. ac_cpp='$CXXCPP $CPPFLAGS'
  3094. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3095. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3096. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3097. if test -z "$CXX"; then
  3098. if test -n "$CCC"; then
  3099. CXX=$CCC
  3100. else
  3101. if test -n "$ac_tool_prefix"; then
  3102. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3103. do
  3104. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3105. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3107. $as_echo_n "checking for $ac_word... " >&6; }
  3108. if test "${ac_cv_prog_CXX+set}" = set; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. if test -n "$CXX"; then
  3112. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3113. else
  3114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3115. for as_dir in $PATH
  3116. do
  3117. IFS=$as_save_IFS
  3118. test -z "$as_dir" && as_dir=.
  3119. for ac_exec_ext in '' $ac_executable_extensions; do
  3120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3121. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3123. break 2
  3124. fi
  3125. done
  3126. done
  3127. IFS=$as_save_IFS
  3128. fi
  3129. fi
  3130. CXX=$ac_cv_prog_CXX
  3131. if test -n "$CXX"; then
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3133. $as_echo "$CXX" >&6; }
  3134. else
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3136. $as_echo "no" >&6; }
  3137. fi
  3138. test -n "$CXX" && break
  3139. done
  3140. fi
  3141. if test -z "$CXX"; then
  3142. ac_ct_CXX=$CXX
  3143. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3144. do
  3145. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3146. set dummy $ac_prog; ac_word=$2
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3148. $as_echo_n "checking for $ac_word... " >&6; }
  3149. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3150. $as_echo_n "(cached) " >&6
  3151. else
  3152. if test -n "$ac_ct_CXX"; then
  3153. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3154. else
  3155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3156. for as_dir in $PATH
  3157. do
  3158. IFS=$as_save_IFS
  3159. test -z "$as_dir" && as_dir=.
  3160. for ac_exec_ext in '' $ac_executable_extensions; do
  3161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3162. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3164. break 2
  3165. fi
  3166. done
  3167. done
  3168. IFS=$as_save_IFS
  3169. fi
  3170. fi
  3171. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3172. if test -n "$ac_ct_CXX"; then
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3174. $as_echo "$ac_ct_CXX" >&6; }
  3175. else
  3176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3177. $as_echo "no" >&6; }
  3178. fi
  3179. test -n "$ac_ct_CXX" && break
  3180. done
  3181. if test "x$ac_ct_CXX" = x; then
  3182. CXX="g++"
  3183. else
  3184. case $cross_compiling:$ac_tool_warned in
  3185. yes:)
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3187. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3188. ac_tool_warned=yes ;;
  3189. esac
  3190. CXX=$ac_ct_CXX
  3191. fi
  3192. fi
  3193. fi
  3194. fi
  3195. # Provide some information about the compiler.
  3196. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3197. set X $ac_compile
  3198. ac_compiler=$2
  3199. for ac_option in --version -v -V -qversion; do
  3200. { { ac_try="$ac_compiler $ac_option >&5"
  3201. case "(($ac_try" in
  3202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3203. *) ac_try_echo=$ac_try;;
  3204. esac
  3205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3206. $as_echo "$ac_try_echo"; } >&5
  3207. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3208. ac_status=$?
  3209. if test -s conftest.err; then
  3210. sed '10a\
  3211. ... rest of stderr output deleted ...
  3212. 10q' conftest.err >conftest.er1
  3213. cat conftest.er1 >&5
  3214. fi
  3215. rm -f conftest.er1 conftest.err
  3216. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3217. test $ac_status = 0; }
  3218. done
  3219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3220. /* end confdefs.h. */
  3221. int
  3222. main ()
  3223. {
  3224. ;
  3225. return 0;
  3226. }
  3227. _ACEOF
  3228. ac_clean_files_save=$ac_clean_files
  3229. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3230. # Try to create an executable without -o first, disregard a.out.
  3231. # It will help us diagnose broken compilers, and finding out an intuition
  3232. # of exeext.
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3234. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3235. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3236. # The possible output files:
  3237. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3238. ac_rmfiles=
  3239. for ac_file in $ac_files
  3240. do
  3241. case $ac_file in
  3242. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3243. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3244. esac
  3245. done
  3246. rm -f $ac_rmfiles
  3247. if { { ac_try="$ac_link_default"
  3248. case "(($ac_try" in
  3249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3250. *) ac_try_echo=$ac_try;;
  3251. esac
  3252. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3253. $as_echo "$ac_try_echo"; } >&5
  3254. (eval "$ac_link_default") 2>&5
  3255. ac_status=$?
  3256. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3257. test $ac_status = 0; }; then :
  3258. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3259. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3260. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3261. # so that the user can short-circuit this test for compilers unknown to
  3262. # Autoconf.
  3263. for ac_file in $ac_files ''
  3264. do
  3265. test -f "$ac_file" || continue
  3266. case $ac_file in
  3267. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3268. ;;
  3269. [ab].out )
  3270. # We found the default executable, but exeext='' is most
  3271. # certainly right.
  3272. break;;
  3273. *.* )
  3274. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3275. then :; else
  3276. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3277. fi
  3278. # We set ac_cv_exeext here because the later test for it is not
  3279. # safe: cross compilers may not add the suffix if given an `-o'
  3280. # argument, so we may need to know it at that point already.
  3281. # Even if this section looks crufty: it has the advantage of
  3282. # actually working.
  3283. break;;
  3284. * )
  3285. break;;
  3286. esac
  3287. done
  3288. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3289. else
  3290. ac_file=''
  3291. fi
  3292. if test -z "$ac_file"; then :
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3294. $as_echo "no" >&6; }
  3295. $as_echo "$as_me: failed program was:" >&5
  3296. sed 's/^/| /' conftest.$ac_ext >&5
  3297. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3298. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3299. { as_fn_set_status 77
  3300. as_fn_error "C++ compiler cannot create executables
  3301. See \`config.log' for more details." "$LINENO" 5; }; }
  3302. else
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3304. $as_echo "yes" >&6; }
  3305. fi
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3307. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3309. $as_echo "$ac_file" >&6; }
  3310. ac_exeext=$ac_cv_exeext
  3311. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3312. ac_clean_files=$ac_clean_files_save
  3313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3314. $as_echo_n "checking for suffix of executables... " >&6; }
  3315. if { { ac_try="$ac_link"
  3316. case "(($ac_try" in
  3317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3318. *) ac_try_echo=$ac_try;;
  3319. esac
  3320. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3321. $as_echo "$ac_try_echo"; } >&5
  3322. (eval "$ac_link") 2>&5
  3323. ac_status=$?
  3324. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3325. test $ac_status = 0; }; then :
  3326. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3327. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3328. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3329. # `rm'.
  3330. for ac_file in conftest.exe conftest conftest.*; do
  3331. test -f "$ac_file" || continue
  3332. case $ac_file in
  3333. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3334. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3335. break;;
  3336. * ) break;;
  3337. esac
  3338. done
  3339. else
  3340. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3341. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3342. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3343. See \`config.log' for more details." "$LINENO" 5; }
  3344. fi
  3345. rm -f conftest conftest$ac_cv_exeext
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3347. $as_echo "$ac_cv_exeext" >&6; }
  3348. rm -f conftest.$ac_ext
  3349. EXEEXT=$ac_cv_exeext
  3350. ac_exeext=$EXEEXT
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. #include <stdio.h>
  3354. int
  3355. main ()
  3356. {
  3357. FILE *f = fopen ("conftest.out", "w");
  3358. return ferror (f) || fclose (f) != 0;
  3359. ;
  3360. return 0;
  3361. }
  3362. _ACEOF
  3363. ac_clean_files="$ac_clean_files conftest.out"
  3364. # Check that the compiler produces executables we can run. If not, either
  3365. # the compiler is broken, or we cross compile.
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3367. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3368. if test "$cross_compiling" != yes; then
  3369. { { ac_try="$ac_link"
  3370. case "(($ac_try" in
  3371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3372. *) ac_try_echo=$ac_try;;
  3373. esac
  3374. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3375. $as_echo "$ac_try_echo"; } >&5
  3376. (eval "$ac_link") 2>&5
  3377. ac_status=$?
  3378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3379. test $ac_status = 0; }
  3380. if { ac_try='./conftest$ac_cv_exeext'
  3381. { { case "(($ac_try" in
  3382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3383. *) ac_try_echo=$ac_try;;
  3384. esac
  3385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3386. $as_echo "$ac_try_echo"; } >&5
  3387. (eval "$ac_try") 2>&5
  3388. ac_status=$?
  3389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3390. test $ac_status = 0; }; }; then
  3391. cross_compiling=no
  3392. else
  3393. if test "$cross_compiling" = maybe; then
  3394. cross_compiling=yes
  3395. else
  3396. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3398. as_fn_error "cannot run C++ compiled programs.
  3399. If you meant to cross compile, use \`--host'.
  3400. See \`config.log' for more details." "$LINENO" 5; }
  3401. fi
  3402. fi
  3403. fi
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3405. $as_echo "$cross_compiling" >&6; }
  3406. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3407. ac_clean_files=$ac_clean_files_save
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3409. $as_echo_n "checking for suffix of object files... " >&6; }
  3410. if test "${ac_cv_objext+set}" = set; then :
  3411. $as_echo_n "(cached) " >&6
  3412. else
  3413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. /* end confdefs.h. */
  3415. int
  3416. main ()
  3417. {
  3418. ;
  3419. return 0;
  3420. }
  3421. _ACEOF
  3422. rm -f conftest.o conftest.obj
  3423. if { { ac_try="$ac_compile"
  3424. case "(($ac_try" in
  3425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3426. *) ac_try_echo=$ac_try;;
  3427. esac
  3428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3429. $as_echo "$ac_try_echo"; } >&5
  3430. (eval "$ac_compile") 2>&5
  3431. ac_status=$?
  3432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3433. test $ac_status = 0; }; then :
  3434. for ac_file in conftest.o conftest.obj conftest.*; do
  3435. test -f "$ac_file" || continue;
  3436. case $ac_file in
  3437. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3438. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3439. break;;
  3440. esac
  3441. done
  3442. else
  3443. $as_echo "$as_me: failed program was:" >&5
  3444. sed 's/^/| /' conftest.$ac_ext >&5
  3445. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3446. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3447. as_fn_error "cannot compute suffix of object files: cannot compile
  3448. See \`config.log' for more details." "$LINENO" 5; }
  3449. fi
  3450. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3451. fi
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3453. $as_echo "$ac_cv_objext" >&6; }
  3454. OBJEXT=$ac_cv_objext
  3455. ac_objext=$OBJEXT
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3457. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3458. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3462. /* end confdefs.h. */
  3463. int
  3464. main ()
  3465. {
  3466. #ifndef __GNUC__
  3467. choke me
  3468. #endif
  3469. ;
  3470. return 0;
  3471. }
  3472. _ACEOF
  3473. if ac_fn_cxx_try_compile "$LINENO"; then :
  3474. ac_compiler_gnu=yes
  3475. else
  3476. ac_compiler_gnu=no
  3477. fi
  3478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3479. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3480. fi
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3482. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3483. if test $ac_compiler_gnu = yes; then
  3484. GXX=yes
  3485. else
  3486. GXX=
  3487. fi
  3488. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3489. ac_save_CXXFLAGS=$CXXFLAGS
  3490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3491. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3492. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3493. $as_echo_n "(cached) " >&6
  3494. else
  3495. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3496. ac_cxx_werror_flag=yes
  3497. ac_cv_prog_cxx_g=no
  3498. CXXFLAGS="-g"
  3499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3500. /* end confdefs.h. */
  3501. int
  3502. main ()
  3503. {
  3504. ;
  3505. return 0;
  3506. }
  3507. _ACEOF
  3508. if ac_fn_cxx_try_compile "$LINENO"; then :
  3509. ac_cv_prog_cxx_g=yes
  3510. else
  3511. CXXFLAGS=""
  3512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3513. /* end confdefs.h. */
  3514. int
  3515. main ()
  3516. {
  3517. ;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. if ac_fn_cxx_try_compile "$LINENO"; then :
  3522. else
  3523. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3524. CXXFLAGS="-g"
  3525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3526. /* end confdefs.h. */
  3527. int
  3528. main ()
  3529. {
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. if ac_fn_cxx_try_compile "$LINENO"; then :
  3535. ac_cv_prog_cxx_g=yes
  3536. fi
  3537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3538. fi
  3539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3540. fi
  3541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3542. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3543. fi
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3545. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3546. if test "$ac_test_CXXFLAGS" = set; then
  3547. CXXFLAGS=$ac_save_CXXFLAGS
  3548. elif test $ac_cv_prog_cxx_g = yes; then
  3549. if test "$GXX" = yes; then
  3550. CXXFLAGS="-g -O2"
  3551. else
  3552. CXXFLAGS="-g"
  3553. fi
  3554. else
  3555. if test "$GXX" = yes; then
  3556. CXXFLAGS="-O2"
  3557. else
  3558. CXXFLAGS=
  3559. fi
  3560. fi
  3561. ac_ext=c
  3562. ac_cpp='$CPP $CPPFLAGS'
  3563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3566. DEPDIR="${am__leading_dot}deps"
  3567. ac_config_commands="$ac_config_commands depfiles"
  3568. am_make=${MAKE-make}
  3569. cat > confinc << 'END'
  3570. am__doit:
  3571. @echo this is the am__doit target
  3572. .PHONY: am__doit
  3573. END
  3574. # If we don't find an include directive, just comment out the code.
  3575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3576. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3577. am__include="#"
  3578. am__quote=
  3579. _am_result=none
  3580. # First try GNU make style include.
  3581. echo "include confinc" > confmf
  3582. # Ignore all kinds of additional output from `make'.
  3583. case `$am_make -s -f confmf 2> /dev/null` in #(
  3584. *the\ am__doit\ target*)
  3585. am__include=include
  3586. am__quote=
  3587. _am_result=GNU
  3588. ;;
  3589. esac
  3590. # Now try BSD make style include.
  3591. if test "$am__include" = "#"; then
  3592. echo '.include "confinc"' > confmf
  3593. case `$am_make -s -f confmf 2> /dev/null` in #(
  3594. *the\ am__doit\ target*)
  3595. am__include=.include
  3596. am__quote="\""
  3597. _am_result=BSD
  3598. ;;
  3599. esac
  3600. fi
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3602. $as_echo "$_am_result" >&6; }
  3603. rm -f confinc confmf
  3604. # Check whether --enable-dependency-tracking was given.
  3605. if test "${enable_dependency_tracking+set}" = set; then :
  3606. enableval=$enable_dependency_tracking;
  3607. fi
  3608. if test "x$enable_dependency_tracking" != xno; then
  3609. am_depcomp="$ac_aux_dir/depcomp"
  3610. AMDEPBACKSLASH='\'
  3611. fi
  3612. if test "x$enable_dependency_tracking" != xno; then
  3613. AMDEP_TRUE=
  3614. AMDEP_FALSE='#'
  3615. else
  3616. AMDEP_TRUE='#'
  3617. AMDEP_FALSE=
  3618. fi
  3619. depcc="$CXX" am_compiler_list=
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3621. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3622. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3626. # We make a subdir and do the tests there. Otherwise we can end up
  3627. # making bogus files that we don't know about and never remove. For
  3628. # instance it was reported that on HP-UX the gcc test will end up
  3629. # making a dummy file named `D' -- because `-MD' means `put the output
  3630. # in D'.
  3631. mkdir conftest.dir
  3632. # Copy depcomp to subdir because otherwise we won't find it if we're
  3633. # using a relative directory.
  3634. cp "$am_depcomp" conftest.dir
  3635. cd conftest.dir
  3636. # We will build objects and dependencies in a subdirectory because
  3637. # it helps to detect inapplicable dependency modes. For instance
  3638. # both Tru64's cc and ICC support -MD to output dependencies as a
  3639. # side effect of compilation, but ICC will put the dependencies in
  3640. # the current directory while Tru64 will put them in the object
  3641. # directory.
  3642. mkdir sub
  3643. am_cv_CXX_dependencies_compiler_type=none
  3644. if test "$am_compiler_list" = ""; then
  3645. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3646. fi
  3647. am__universal=false
  3648. case " $depcc " in #(
  3649. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3650. esac
  3651. for depmode in $am_compiler_list; do
  3652. # Setup a source with many dependencies, because some compilers
  3653. # like to wrap large dependency lists on column 80 (with \), and
  3654. # we should not choose a depcomp mode which is confused by this.
  3655. #
  3656. # We need to recreate these files for each test, as the compiler may
  3657. # overwrite some of them when testing with obscure command lines.
  3658. # This happens at least with the AIX C compiler.
  3659. : > sub/conftest.c
  3660. for i in 1 2 3 4 5 6; do
  3661. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3662. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3663. # Solaris 8's {/usr,}/bin/sh.
  3664. touch sub/conftst$i.h
  3665. done
  3666. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3667. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3668. # mode. It turns out that the SunPro C++ compiler does not properly
  3669. # handle `-M -o', and we need to detect this. Also, some Intel
  3670. # versions had trouble with output in subdirs
  3671. am__obj=sub/conftest.${OBJEXT-o}
  3672. am__minus_obj="-o $am__obj"
  3673. case $depmode in
  3674. gcc)
  3675. # This depmode causes a compiler race in universal mode.
  3676. test "$am__universal" = false || continue
  3677. ;;
  3678. nosideeffect)
  3679. # after this tag, mechanisms are not by side-effect, so they'll
  3680. # only be used when explicitly requested
  3681. if test "x$enable_dependency_tracking" = xyes; then
  3682. continue
  3683. else
  3684. break
  3685. fi
  3686. ;;
  3687. msvisualcpp | msvcmsys)
  3688. # This compiler won't grok `-c -o', but also, the minuso test has
  3689. # not run yet. These depmodes are late enough in the game, and
  3690. # so weak that their functioning should not be impacted.
  3691. am__obj=conftest.${OBJEXT-o}
  3692. am__minus_obj=
  3693. ;;
  3694. none) break ;;
  3695. esac
  3696. if depmode=$depmode \
  3697. source=sub/conftest.c object=$am__obj \
  3698. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3699. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3700. >/dev/null 2>conftest.err &&
  3701. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3702. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3703. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3704. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3705. # icc doesn't choke on unknown options, it will just issue warnings
  3706. # or remarks (even with -Werror). So we grep stderr for any message
  3707. # that says an option was ignored or not supported.
  3708. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3709. # icc: Command line warning: ignoring option '-M'; no argument required
  3710. # The diagnosis changed in icc 8.0:
  3711. # icc: Command line remark: option '-MP' not supported
  3712. if (grep 'ignoring option' conftest.err ||
  3713. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3714. am_cv_CXX_dependencies_compiler_type=$depmode
  3715. break
  3716. fi
  3717. fi
  3718. done
  3719. cd ..
  3720. rm -rf conftest.dir
  3721. else
  3722. am_cv_CXX_dependencies_compiler_type=none
  3723. fi
  3724. fi
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3726. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3727. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3728. if
  3729. test "x$enable_dependency_tracking" != xno \
  3730. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3731. am__fastdepCXX_TRUE=
  3732. am__fastdepCXX_FALSE='#'
  3733. else
  3734. am__fastdepCXX_TRUE='#'
  3735. am__fastdepCXX_FALSE=
  3736. fi
  3737. ac_ext=c
  3738. ac_cpp='$CPP $CPPFLAGS'
  3739. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3740. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3741. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3742. if test -n "$ac_tool_prefix"; then
  3743. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3744. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3746. $as_echo_n "checking for $ac_word... " >&6; }
  3747. if test "${ac_cv_prog_CC+set}" = set; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. if test -n "$CC"; then
  3751. ac_cv_prog_CC="$CC" # Let the user override the test.
  3752. else
  3753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3754. for as_dir in $PATH
  3755. do
  3756. IFS=$as_save_IFS
  3757. test -z "$as_dir" && as_dir=.
  3758. for ac_exec_ext in '' $ac_executable_extensions; do
  3759. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3760. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3762. break 2
  3763. fi
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. fi
  3768. fi
  3769. CC=$ac_cv_prog_CC
  3770. if test -n "$CC"; then
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3772. $as_echo "$CC" >&6; }
  3773. else
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3775. $as_echo "no" >&6; }
  3776. fi
  3777. fi
  3778. if test -z "$ac_cv_prog_CC"; then
  3779. ac_ct_CC=$CC
  3780. # Extract the first word of "gcc", so it can be a program name with args.
  3781. set dummy gcc; ac_word=$2
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3783. $as_echo_n "checking for $ac_word... " >&6; }
  3784. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. if test -n "$ac_ct_CC"; then
  3788. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3789. else
  3790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3791. for as_dir in $PATH
  3792. do
  3793. IFS=$as_save_IFS
  3794. test -z "$as_dir" && as_dir=.
  3795. for ac_exec_ext in '' $ac_executable_extensions; do
  3796. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3797. ac_cv_prog_ac_ct_CC="gcc"
  3798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3799. break 2
  3800. fi
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. fi
  3805. fi
  3806. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3807. if test -n "$ac_ct_CC"; then
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3809. $as_echo "$ac_ct_CC" >&6; }
  3810. else
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. if test "x$ac_ct_CC" = x; then
  3815. CC=""
  3816. else
  3817. case $cross_compiling:$ac_tool_warned in
  3818. yes:)
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3820. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3821. ac_tool_warned=yes ;;
  3822. esac
  3823. CC=$ac_ct_CC
  3824. fi
  3825. else
  3826. CC="$ac_cv_prog_CC"
  3827. fi
  3828. if test -z "$CC"; then
  3829. if test -n "$ac_tool_prefix"; then
  3830. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3831. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3833. $as_echo_n "checking for $ac_word... " >&6; }
  3834. if test "${ac_cv_prog_CC+set}" = set; then :
  3835. $as_echo_n "(cached) " >&6
  3836. else
  3837. if test -n "$CC"; then
  3838. ac_cv_prog_CC="$CC" # Let the user override the test.
  3839. else
  3840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3841. for as_dir in $PATH
  3842. do
  3843. IFS=$as_save_IFS
  3844. test -z "$as_dir" && as_dir=.
  3845. for ac_exec_ext in '' $ac_executable_extensions; do
  3846. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3847. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3849. break 2
  3850. fi
  3851. done
  3852. done
  3853. IFS=$as_save_IFS
  3854. fi
  3855. fi
  3856. CC=$ac_cv_prog_CC
  3857. if test -n "$CC"; then
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3859. $as_echo "$CC" >&6; }
  3860. else
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3862. $as_echo "no" >&6; }
  3863. fi
  3864. fi
  3865. fi
  3866. if test -z "$CC"; then
  3867. # Extract the first word of "cc", so it can be a program name with args.
  3868. set dummy cc; ac_word=$2
  3869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3870. $as_echo_n "checking for $ac_word... " >&6; }
  3871. if test "${ac_cv_prog_CC+set}" = set; then :
  3872. $as_echo_n "(cached) " >&6
  3873. else
  3874. if test -n "$CC"; then
  3875. ac_cv_prog_CC="$CC" # Let the user override the test.
  3876. else
  3877. ac_prog_rejected=no
  3878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881. IFS=$as_save_IFS
  3882. test -z "$as_dir" && as_dir=.
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3885. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3886. ac_prog_rejected=yes
  3887. continue
  3888. fi
  3889. ac_cv_prog_CC="cc"
  3890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3891. break 2
  3892. fi
  3893. done
  3894. done
  3895. IFS=$as_save_IFS
  3896. if test $ac_prog_rejected = yes; then
  3897. # We found a bogon in the path, so make sure we never use it.
  3898. set dummy $ac_cv_prog_CC
  3899. shift
  3900. if test $# != 0; then
  3901. # We chose a different compiler from the bogus one.
  3902. # However, it has the same basename, so the bogon will be chosen
  3903. # first if we set CC to just the basename; use the full file name.
  3904. shift
  3905. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3906. fi
  3907. fi
  3908. fi
  3909. fi
  3910. CC=$ac_cv_prog_CC
  3911. if test -n "$CC"; then
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3913. $as_echo "$CC" >&6; }
  3914. else
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3916. $as_echo "no" >&6; }
  3917. fi
  3918. fi
  3919. if test -z "$CC"; then
  3920. if test -n "$ac_tool_prefix"; then
  3921. for ac_prog in cl.exe
  3922. do
  3923. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3924. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3926. $as_echo_n "checking for $ac_word... " >&6; }
  3927. if test "${ac_cv_prog_CC+set}" = set; then :
  3928. $as_echo_n "(cached) " >&6
  3929. else
  3930. if test -n "$CC"; then
  3931. ac_cv_prog_CC="$CC" # Let the user override the test.
  3932. else
  3933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3934. for as_dir in $PATH
  3935. do
  3936. IFS=$as_save_IFS
  3937. test -z "$as_dir" && as_dir=.
  3938. for ac_exec_ext in '' $ac_executable_extensions; do
  3939. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3940. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3942. break 2
  3943. fi
  3944. done
  3945. done
  3946. IFS=$as_save_IFS
  3947. fi
  3948. fi
  3949. CC=$ac_cv_prog_CC
  3950. if test -n "$CC"; then
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3952. $as_echo "$CC" >&6; }
  3953. else
  3954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3955. $as_echo "no" >&6; }
  3956. fi
  3957. test -n "$CC" && break
  3958. done
  3959. fi
  3960. if test -z "$CC"; then
  3961. ac_ct_CC=$CC
  3962. for ac_prog in cl.exe
  3963. do
  3964. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3965. set dummy $ac_prog; ac_word=$2
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3967. $as_echo_n "checking for $ac_word... " >&6; }
  3968. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3969. $as_echo_n "(cached) " >&6
  3970. else
  3971. if test -n "$ac_ct_CC"; then
  3972. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3973. else
  3974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3975. for as_dir in $PATH
  3976. do
  3977. IFS=$as_save_IFS
  3978. test -z "$as_dir" && as_dir=.
  3979. for ac_exec_ext in '' $ac_executable_extensions; do
  3980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3981. ac_cv_prog_ac_ct_CC="$ac_prog"
  3982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3983. break 2
  3984. fi
  3985. done
  3986. done
  3987. IFS=$as_save_IFS
  3988. fi
  3989. fi
  3990. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3991. if test -n "$ac_ct_CC"; then
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3993. $as_echo "$ac_ct_CC" >&6; }
  3994. else
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3996. $as_echo "no" >&6; }
  3997. fi
  3998. test -n "$ac_ct_CC" && break
  3999. done
  4000. if test "x$ac_ct_CC" = x; then
  4001. CC=""
  4002. else
  4003. case $cross_compiling:$ac_tool_warned in
  4004. yes:)
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4007. ac_tool_warned=yes ;;
  4008. esac
  4009. CC=$ac_ct_CC
  4010. fi
  4011. fi
  4012. fi
  4013. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4014. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4015. as_fn_error "no acceptable C compiler found in \$PATH
  4016. See \`config.log' for more details." "$LINENO" 5; }
  4017. # Provide some information about the compiler.
  4018. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4019. set X $ac_compile
  4020. ac_compiler=$2
  4021. for ac_option in --version -v -V -qversion; do
  4022. { { ac_try="$ac_compiler $ac_option >&5"
  4023. case "(($ac_try" in
  4024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4025. *) ac_try_echo=$ac_try;;
  4026. esac
  4027. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4028. $as_echo "$ac_try_echo"; } >&5
  4029. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4030. ac_status=$?
  4031. if test -s conftest.err; then
  4032. sed '10a\
  4033. ... rest of stderr output deleted ...
  4034. 10q' conftest.err >conftest.er1
  4035. cat conftest.er1 >&5
  4036. fi
  4037. rm -f conftest.er1 conftest.err
  4038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4039. test $ac_status = 0; }
  4040. done
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4042. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4043. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4044. $as_echo_n "(cached) " >&6
  4045. else
  4046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4047. /* end confdefs.h. */
  4048. int
  4049. main ()
  4050. {
  4051. #ifndef __GNUC__
  4052. choke me
  4053. #endif
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. if ac_fn_c_try_compile "$LINENO"; then :
  4059. ac_compiler_gnu=yes
  4060. else
  4061. ac_compiler_gnu=no
  4062. fi
  4063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4064. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4065. fi
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4067. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4068. if test $ac_compiler_gnu = yes; then
  4069. GCC=yes
  4070. else
  4071. GCC=
  4072. fi
  4073. ac_test_CFLAGS=${CFLAGS+set}
  4074. ac_save_CFLAGS=$CFLAGS
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4076. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4077. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4078. $as_echo_n "(cached) " >&6
  4079. else
  4080. ac_save_c_werror_flag=$ac_c_werror_flag
  4081. ac_c_werror_flag=yes
  4082. ac_cv_prog_cc_g=no
  4083. CFLAGS="-g"
  4084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4085. /* end confdefs.h. */
  4086. int
  4087. main ()
  4088. {
  4089. ;
  4090. return 0;
  4091. }
  4092. _ACEOF
  4093. if ac_fn_c_try_compile "$LINENO"; then :
  4094. ac_cv_prog_cc_g=yes
  4095. else
  4096. CFLAGS=""
  4097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4098. /* end confdefs.h. */
  4099. int
  4100. main ()
  4101. {
  4102. ;
  4103. return 0;
  4104. }
  4105. _ACEOF
  4106. if ac_fn_c_try_compile "$LINENO"; then :
  4107. else
  4108. ac_c_werror_flag=$ac_save_c_werror_flag
  4109. CFLAGS="-g"
  4110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4111. /* end confdefs.h. */
  4112. int
  4113. main ()
  4114. {
  4115. ;
  4116. return 0;
  4117. }
  4118. _ACEOF
  4119. if ac_fn_c_try_compile "$LINENO"; then :
  4120. ac_cv_prog_cc_g=yes
  4121. fi
  4122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4123. fi
  4124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4125. fi
  4126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4127. ac_c_werror_flag=$ac_save_c_werror_flag
  4128. fi
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4130. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4131. if test "$ac_test_CFLAGS" = set; then
  4132. CFLAGS=$ac_save_CFLAGS
  4133. elif test $ac_cv_prog_cc_g = yes; then
  4134. if test "$GCC" = yes; then
  4135. CFLAGS="-g -O2"
  4136. else
  4137. CFLAGS="-g"
  4138. fi
  4139. else
  4140. if test "$GCC" = yes; then
  4141. CFLAGS="-O2"
  4142. else
  4143. CFLAGS=
  4144. fi
  4145. fi
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4147. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4148. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. ac_cv_prog_cc_c89=no
  4152. ac_save_CC=$CC
  4153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4154. /* end confdefs.h. */
  4155. #include <stdarg.h>
  4156. #include <stdio.h>
  4157. #include <sys/types.h>
  4158. #include <sys/stat.h>
  4159. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4160. struct buf { int x; };
  4161. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4162. static char *e (p, i)
  4163. char **p;
  4164. int i;
  4165. {
  4166. return p[i];
  4167. }
  4168. static char *f (char * (*g) (char **, int), char **p, ...)
  4169. {
  4170. char *s;
  4171. va_list v;
  4172. va_start (v,p);
  4173. s = g (p, va_arg (v,int));
  4174. va_end (v);
  4175. return s;
  4176. }
  4177. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4178. function prototypes and stuff, but not '\xHH' hex character constants.
  4179. These don't provoke an error unfortunately, instead are silently treated
  4180. as 'x'. The following induces an error, until -std is added to get
  4181. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4182. array size at least. It's necessary to write '\x00'==0 to get something
  4183. that's true only with -std. */
  4184. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4185. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4186. inside strings and character constants. */
  4187. #define FOO(x) 'x'
  4188. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4189. int test (int i, double x);
  4190. struct s1 {int (*f) (int a);};
  4191. struct s2 {int (*f) (double a);};
  4192. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4193. int argc;
  4194. char **argv;
  4195. int
  4196. main ()
  4197. {
  4198. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4199. ;
  4200. return 0;
  4201. }
  4202. _ACEOF
  4203. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4204. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4205. do
  4206. CC="$ac_save_CC $ac_arg"
  4207. if ac_fn_c_try_compile "$LINENO"; then :
  4208. ac_cv_prog_cc_c89=$ac_arg
  4209. fi
  4210. rm -f core conftest.err conftest.$ac_objext
  4211. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4212. done
  4213. rm -f conftest.$ac_ext
  4214. CC=$ac_save_CC
  4215. fi
  4216. # AC_CACHE_VAL
  4217. case "x$ac_cv_prog_cc_c89" in
  4218. x)
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4220. $as_echo "none needed" >&6; } ;;
  4221. xno)
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4223. $as_echo "unsupported" >&6; } ;;
  4224. *)
  4225. CC="$CC $ac_cv_prog_cc_c89"
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4227. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4228. esac
  4229. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4230. fi
  4231. ac_ext=c
  4232. ac_cpp='$CPP $CPPFLAGS'
  4233. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4234. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4235. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4236. depcc="$CC" am_compiler_list=
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4238. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4239. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4243. # We make a subdir and do the tests there. Otherwise we can end up
  4244. # making bogus files that we don't know about and never remove. For
  4245. # instance it was reported that on HP-UX the gcc test will end up
  4246. # making a dummy file named `D' -- because `-MD' means `put the output
  4247. # in D'.
  4248. mkdir conftest.dir
  4249. # Copy depcomp to subdir because otherwise we won't find it if we're
  4250. # using a relative directory.
  4251. cp "$am_depcomp" conftest.dir
  4252. cd conftest.dir
  4253. # We will build objects and dependencies in a subdirectory because
  4254. # it helps to detect inapplicable dependency modes. For instance
  4255. # both Tru64's cc and ICC support -MD to output dependencies as a
  4256. # side effect of compilation, but ICC will put the dependencies in
  4257. # the current directory while Tru64 will put them in the object
  4258. # directory.
  4259. mkdir sub
  4260. am_cv_CC_dependencies_compiler_type=none
  4261. if test "$am_compiler_list" = ""; then
  4262. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4263. fi
  4264. am__universal=false
  4265. case " $depcc " in #(
  4266. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4267. esac
  4268. for depmode in $am_compiler_list; do
  4269. # Setup a source with many dependencies, because some compilers
  4270. # like to wrap large dependency lists on column 80 (with \), and
  4271. # we should not choose a depcomp mode which is confused by this.
  4272. #
  4273. # We need to recreate these files for each test, as the compiler may
  4274. # overwrite some of them when testing with obscure command lines.
  4275. # This happens at least with the AIX C compiler.
  4276. : > sub/conftest.c
  4277. for i in 1 2 3 4 5 6; do
  4278. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4279. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4280. # Solaris 8's {/usr,}/bin/sh.
  4281. touch sub/conftst$i.h
  4282. done
  4283. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4284. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4285. # mode. It turns out that the SunPro C++ compiler does not properly
  4286. # handle `-M -o', and we need to detect this. Also, some Intel
  4287. # versions had trouble with output in subdirs
  4288. am__obj=sub/conftest.${OBJEXT-o}
  4289. am__minus_obj="-o $am__obj"
  4290. case $depmode in
  4291. gcc)
  4292. # This depmode causes a compiler race in universal mode.
  4293. test "$am__universal" = false || continue
  4294. ;;
  4295. nosideeffect)
  4296. # after this tag, mechanisms are not by side-effect, so they'll
  4297. # only be used when explicitly requested
  4298. if test "x$enable_dependency_tracking" = xyes; then
  4299. continue
  4300. else
  4301. break
  4302. fi
  4303. ;;
  4304. msvisualcpp | msvcmsys)
  4305. # This compiler won't grok `-c -o', but also, the minuso test has
  4306. # not run yet. These depmodes are late enough in the game, and
  4307. # so weak that their functioning should not be impacted.
  4308. am__obj=conftest.${OBJEXT-o}
  4309. am__minus_obj=
  4310. ;;
  4311. none) break ;;
  4312. esac
  4313. if depmode=$depmode \
  4314. source=sub/conftest.c object=$am__obj \
  4315. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4316. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4317. >/dev/null 2>conftest.err &&
  4318. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4319. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4320. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4321. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4322. # icc doesn't choke on unknown options, it will just issue warnings
  4323. # or remarks (even with -Werror). So we grep stderr for any message
  4324. # that says an option was ignored or not supported.
  4325. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4326. # icc: Command line warning: ignoring option '-M'; no argument required
  4327. # The diagnosis changed in icc 8.0:
  4328. # icc: Command line remark: option '-MP' not supported
  4329. if (grep 'ignoring option' conftest.err ||
  4330. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4331. am_cv_CC_dependencies_compiler_type=$depmode
  4332. break
  4333. fi
  4334. fi
  4335. done
  4336. cd ..
  4337. rm -rf conftest.dir
  4338. else
  4339. am_cv_CC_dependencies_compiler_type=none
  4340. fi
  4341. fi
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4343. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4344. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4345. if
  4346. test "x$enable_dependency_tracking" != xno \
  4347. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4348. am__fastdepCC_TRUE=
  4349. am__fastdepCC_FALSE='#'
  4350. else
  4351. am__fastdepCC_TRUE='#'
  4352. am__fastdepCC_FALSE=
  4353. fi
  4354. if test "x$CC" != xcc; then
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4356. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4357. else
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4359. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4360. fi
  4361. set dummy $CC; ac_cc=`$as_echo "$2" |
  4362. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4363. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  4364. $as_echo_n "(cached) " >&6
  4365. else
  4366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4367. /* end confdefs.h. */
  4368. int
  4369. main ()
  4370. {
  4371. ;
  4372. return 0;
  4373. }
  4374. _ACEOF
  4375. # Make sure it works both with $CC and with simple cc.
  4376. # We do the test twice because some compilers refuse to overwrite an
  4377. # existing .o file with -o, though they will create one.
  4378. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4379. rm -f conftest2.*
  4380. if { { case "(($ac_try" in
  4381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4382. *) ac_try_echo=$ac_try;;
  4383. esac
  4384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4385. $as_echo "$ac_try_echo"; } >&5
  4386. (eval "$ac_try") 2>&5
  4387. ac_status=$?
  4388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4389. test $ac_status = 0; } &&
  4390. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4392. *) ac_try_echo=$ac_try;;
  4393. esac
  4394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4395. $as_echo "$ac_try_echo"; } >&5
  4396. (eval "$ac_try") 2>&5
  4397. ac_status=$?
  4398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4399. test $ac_status = 0; };
  4400. then
  4401. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4402. if test "x$CC" != xcc; then
  4403. # Test first that cc exists at all.
  4404. if { ac_try='cc -c conftest.$ac_ext >&5'
  4405. { { case "(($ac_try" in
  4406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4407. *) ac_try_echo=$ac_try;;
  4408. esac
  4409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4410. $as_echo "$ac_try_echo"; } >&5
  4411. (eval "$ac_try") 2>&5
  4412. ac_status=$?
  4413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4414. test $ac_status = 0; }; }; then
  4415. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4416. rm -f conftest2.*
  4417. if { { case "(($ac_try" in
  4418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4419. *) ac_try_echo=$ac_try;;
  4420. esac
  4421. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4422. $as_echo "$ac_try_echo"; } >&5
  4423. (eval "$ac_try") 2>&5
  4424. ac_status=$?
  4425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4426. test $ac_status = 0; } &&
  4427. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4429. *) ac_try_echo=$ac_try;;
  4430. esac
  4431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4432. $as_echo "$ac_try_echo"; } >&5
  4433. (eval "$ac_try") 2>&5
  4434. ac_status=$?
  4435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4436. test $ac_status = 0; };
  4437. then
  4438. # cc works too.
  4439. :
  4440. else
  4441. # cc exists but doesn't like -o.
  4442. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4443. fi
  4444. fi
  4445. fi
  4446. else
  4447. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4448. fi
  4449. rm -f core conftest*
  4450. fi
  4451. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4453. $as_echo "yes" >&6; }
  4454. else
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4456. $as_echo "no" >&6; }
  4457. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4458. fi
  4459. # FIXME: we rely on the cache variable name because
  4460. # there is no other way.
  4461. set dummy $CC
  4462. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4463. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4464. if test "$am_t" != yes; then
  4465. # Losing compiler, so override with the script.
  4466. # FIXME: It is wrong to rewrite CC.
  4467. # But if we don't then we get into trouble of one sort or another.
  4468. # A longer-term fix would be to have automake use am__CC in this case,
  4469. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4470. CC="$am_aux_dir/compile $CC"
  4471. fi
  4472. # By default we simply use the C compiler to build assembly code.
  4473. test "${CCAS+set}" = set || CCAS=$CC
  4474. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4475. depcc="$CCAS" am_compiler_list=
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4477. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4478. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  4479. $as_echo_n "(cached) " >&6
  4480. else
  4481. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4482. # We make a subdir and do the tests there. Otherwise we can end up
  4483. # making bogus files that we don't know about and never remove. For
  4484. # instance it was reported that on HP-UX the gcc test will end up
  4485. # making a dummy file named `D' -- because `-MD' means `put the output
  4486. # in D'.
  4487. mkdir conftest.dir
  4488. # Copy depcomp to subdir because otherwise we won't find it if we're
  4489. # using a relative directory.
  4490. cp "$am_depcomp" conftest.dir
  4491. cd conftest.dir
  4492. # We will build objects and dependencies in a subdirectory because
  4493. # it helps to detect inapplicable dependency modes. For instance
  4494. # both Tru64's cc and ICC support -MD to output dependencies as a
  4495. # side effect of compilation, but ICC will put the dependencies in
  4496. # the current directory while Tru64 will put them in the object
  4497. # directory.
  4498. mkdir sub
  4499. am_cv_CCAS_dependencies_compiler_type=none
  4500. if test "$am_compiler_list" = ""; then
  4501. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4502. fi
  4503. am__universal=false
  4504. for depmode in $am_compiler_list; do
  4505. # Setup a source with many dependencies, because some compilers
  4506. # like to wrap large dependency lists on column 80 (with \), and
  4507. # we should not choose a depcomp mode which is confused by this.
  4508. #
  4509. # We need to recreate these files for each test, as the compiler may
  4510. # overwrite some of them when testing with obscure command lines.
  4511. # This happens at least with the AIX C compiler.
  4512. : > sub/conftest.c
  4513. for i in 1 2 3 4 5 6; do
  4514. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4515. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4516. # Solaris 8's {/usr,}/bin/sh.
  4517. touch sub/conftst$i.h
  4518. done
  4519. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4520. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4521. # mode. It turns out that the SunPro C++ compiler does not properly
  4522. # handle `-M -o', and we need to detect this. Also, some Intel
  4523. # versions had trouble with output in subdirs
  4524. am__obj=sub/conftest.${OBJEXT-o}
  4525. am__minus_obj="-o $am__obj"
  4526. case $depmode in
  4527. gcc)
  4528. # This depmode causes a compiler race in universal mode.
  4529. test "$am__universal" = false || continue
  4530. ;;
  4531. nosideeffect)
  4532. # after this tag, mechanisms are not by side-effect, so they'll
  4533. # only be used when explicitly requested
  4534. if test "x$enable_dependency_tracking" = xyes; then
  4535. continue
  4536. else
  4537. break
  4538. fi
  4539. ;;
  4540. msvisualcpp | msvcmsys)
  4541. # This compiler won't grok `-c -o', but also, the minuso test has
  4542. # not run yet. These depmodes are late enough in the game, and
  4543. # so weak that their functioning should not be impacted.
  4544. am__obj=conftest.${OBJEXT-o}
  4545. am__minus_obj=
  4546. ;;
  4547. none) break ;;
  4548. esac
  4549. if depmode=$depmode \
  4550. source=sub/conftest.c object=$am__obj \
  4551. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4552. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4553. >/dev/null 2>conftest.err &&
  4554. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4555. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4556. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4557. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4558. # icc doesn't choke on unknown options, it will just issue warnings
  4559. # or remarks (even with -Werror). So we grep stderr for any message
  4560. # that says an option was ignored or not supported.
  4561. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4562. # icc: Command line warning: ignoring option '-M'; no argument required
  4563. # The diagnosis changed in icc 8.0:
  4564. # icc: Command line remark: option '-MP' not supported
  4565. if (grep 'ignoring option' conftest.err ||
  4566. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4567. am_cv_CCAS_dependencies_compiler_type=$depmode
  4568. break
  4569. fi
  4570. fi
  4571. done
  4572. cd ..
  4573. rm -rf conftest.dir
  4574. else
  4575. am_cv_CCAS_dependencies_compiler_type=none
  4576. fi
  4577. fi
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4579. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4580. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4581. if
  4582. test "x$enable_dependency_tracking" != xno \
  4583. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4584. am__fastdepCCAS_TRUE=
  4585. am__fastdepCCAS_FALSE='#'
  4586. else
  4587. am__fastdepCCAS_TRUE='#'
  4588. am__fastdepCCAS_FALSE=
  4589. fi
  4590. # disable static libs by default - we only use a couple
  4591. # Check whether --enable-static was given.
  4592. if test "${enable_static+set}" = set; then :
  4593. enableval=$enable_static; p=${PACKAGE-default}
  4594. case $enableval in
  4595. yes) enable_static=yes ;;
  4596. no) enable_static=no ;;
  4597. *)
  4598. enable_static=no
  4599. # Look at the argument we got. We use all the common list separators.
  4600. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4601. for pkg in $enableval; do
  4602. IFS="$lt_save_ifs"
  4603. if test "X$pkg" = "X$p"; then
  4604. enable_static=yes
  4605. fi
  4606. done
  4607. IFS="$lt_save_ifs"
  4608. ;;
  4609. esac
  4610. else
  4611. enable_static=no
  4612. fi
  4613. case `pwd` in
  4614. *\ * | *\ *)
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4616. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4617. esac
  4618. macro_version='2.2.6b'
  4619. macro_revision='1.3017'
  4620. ltmain="$ac_aux_dir/ltmain.sh"
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4622. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4623. if test "${ac_cv_path_SED+set}" = set; then :
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4627. for ac_i in 1 2 3 4 5 6 7; do
  4628. ac_script="$ac_script$as_nl$ac_script"
  4629. done
  4630. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4631. { ac_script=; unset ac_script;}
  4632. if test -z "$SED"; then
  4633. ac_path_SED_found=false
  4634. # Loop through the user's path and test for each of PROGNAME-LIST
  4635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4636. for as_dir in $PATH
  4637. do
  4638. IFS=$as_save_IFS
  4639. test -z "$as_dir" && as_dir=.
  4640. for ac_prog in sed gsed; do
  4641. for ac_exec_ext in '' $ac_executable_extensions; do
  4642. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4643. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4644. # Check for GNU ac_path_SED and select it if it is found.
  4645. # Check for GNU $ac_path_SED
  4646. case `"$ac_path_SED" --version 2>&1` in
  4647. *GNU*)
  4648. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4649. *)
  4650. ac_count=0
  4651. $as_echo_n 0123456789 >"conftest.in"
  4652. while :
  4653. do
  4654. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4655. mv "conftest.tmp" "conftest.in"
  4656. cp "conftest.in" "conftest.nl"
  4657. $as_echo '' >> "conftest.nl"
  4658. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4659. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4660. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4661. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4662. # Best one so far, save it but keep looking for a better one
  4663. ac_cv_path_SED="$ac_path_SED"
  4664. ac_path_SED_max=$ac_count
  4665. fi
  4666. # 10*(2^10) chars as input seems more than enough
  4667. test $ac_count -gt 10 && break
  4668. done
  4669. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4670. esac
  4671. $ac_path_SED_found && break 3
  4672. done
  4673. done
  4674. done
  4675. IFS=$as_save_IFS
  4676. if test -z "$ac_cv_path_SED"; then
  4677. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4678. fi
  4679. else
  4680. ac_cv_path_SED=$SED
  4681. fi
  4682. fi
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4684. $as_echo "$ac_cv_path_SED" >&6; }
  4685. SED="$ac_cv_path_SED"
  4686. rm -f conftest.sed
  4687. test -z "$SED" && SED=sed
  4688. Xsed="$SED -e 1s/^X//"
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4690. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4691. if test "${ac_cv_path_GREP+set}" = set; then :
  4692. $as_echo_n "(cached) " >&6
  4693. else
  4694. if test -z "$GREP"; then
  4695. ac_path_GREP_found=false
  4696. # Loop through the user's path and test for each of PROGNAME-LIST
  4697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4698. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4699. do
  4700. IFS=$as_save_IFS
  4701. test -z "$as_dir" && as_dir=.
  4702. for ac_prog in grep ggrep; do
  4703. for ac_exec_ext in '' $ac_executable_extensions; do
  4704. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4705. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4706. # Check for GNU ac_path_GREP and select it if it is found.
  4707. # Check for GNU $ac_path_GREP
  4708. case `"$ac_path_GREP" --version 2>&1` in
  4709. *GNU*)
  4710. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4711. *)
  4712. ac_count=0
  4713. $as_echo_n 0123456789 >"conftest.in"
  4714. while :
  4715. do
  4716. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4717. mv "conftest.tmp" "conftest.in"
  4718. cp "conftest.in" "conftest.nl"
  4719. $as_echo 'GREP' >> "conftest.nl"
  4720. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4721. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4722. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4723. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4724. # Best one so far, save it but keep looking for a better one
  4725. ac_cv_path_GREP="$ac_path_GREP"
  4726. ac_path_GREP_max=$ac_count
  4727. fi
  4728. # 10*(2^10) chars as input seems more than enough
  4729. test $ac_count -gt 10 && break
  4730. done
  4731. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4732. esac
  4733. $ac_path_GREP_found && break 3
  4734. done
  4735. done
  4736. done
  4737. IFS=$as_save_IFS
  4738. if test -z "$ac_cv_path_GREP"; then
  4739. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4740. fi
  4741. else
  4742. ac_cv_path_GREP=$GREP
  4743. fi
  4744. fi
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4746. $as_echo "$ac_cv_path_GREP" >&6; }
  4747. GREP="$ac_cv_path_GREP"
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4749. $as_echo_n "checking for egrep... " >&6; }
  4750. if test "${ac_cv_path_EGREP+set}" = set; then :
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4754. then ac_cv_path_EGREP="$GREP -E"
  4755. else
  4756. if test -z "$EGREP"; then
  4757. ac_path_EGREP_found=false
  4758. # Loop through the user's path and test for each of PROGNAME-LIST
  4759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4760. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4761. do
  4762. IFS=$as_save_IFS
  4763. test -z "$as_dir" && as_dir=.
  4764. for ac_prog in egrep; do
  4765. for ac_exec_ext in '' $ac_executable_extensions; do
  4766. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4767. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4768. # Check for GNU ac_path_EGREP and select it if it is found.
  4769. # Check for GNU $ac_path_EGREP
  4770. case `"$ac_path_EGREP" --version 2>&1` in
  4771. *GNU*)
  4772. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4773. *)
  4774. ac_count=0
  4775. $as_echo_n 0123456789 >"conftest.in"
  4776. while :
  4777. do
  4778. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4779. mv "conftest.tmp" "conftest.in"
  4780. cp "conftest.in" "conftest.nl"
  4781. $as_echo 'EGREP' >> "conftest.nl"
  4782. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4783. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4784. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4785. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4786. # Best one so far, save it but keep looking for a better one
  4787. ac_cv_path_EGREP="$ac_path_EGREP"
  4788. ac_path_EGREP_max=$ac_count
  4789. fi
  4790. # 10*(2^10) chars as input seems more than enough
  4791. test $ac_count -gt 10 && break
  4792. done
  4793. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4794. esac
  4795. $ac_path_EGREP_found && break 3
  4796. done
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. if test -z "$ac_cv_path_EGREP"; then
  4801. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4802. fi
  4803. else
  4804. ac_cv_path_EGREP=$EGREP
  4805. fi
  4806. fi
  4807. fi
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4809. $as_echo "$ac_cv_path_EGREP" >&6; }
  4810. EGREP="$ac_cv_path_EGREP"
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4812. $as_echo_n "checking for fgrep... " >&6; }
  4813. if test "${ac_cv_path_FGREP+set}" = set; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4817. then ac_cv_path_FGREP="$GREP -F"
  4818. else
  4819. if test -z "$FGREP"; then
  4820. ac_path_FGREP_found=false
  4821. # Loop through the user's path and test for each of PROGNAME-LIST
  4822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4823. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4824. do
  4825. IFS=$as_save_IFS
  4826. test -z "$as_dir" && as_dir=.
  4827. for ac_prog in fgrep; do
  4828. for ac_exec_ext in '' $ac_executable_extensions; do
  4829. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4830. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4831. # Check for GNU ac_path_FGREP and select it if it is found.
  4832. # Check for GNU $ac_path_FGREP
  4833. case `"$ac_path_FGREP" --version 2>&1` in
  4834. *GNU*)
  4835. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4836. *)
  4837. ac_count=0
  4838. $as_echo_n 0123456789 >"conftest.in"
  4839. while :
  4840. do
  4841. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4842. mv "conftest.tmp" "conftest.in"
  4843. cp "conftest.in" "conftest.nl"
  4844. $as_echo 'FGREP' >> "conftest.nl"
  4845. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4846. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4847. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4848. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4849. # Best one so far, save it but keep looking for a better one
  4850. ac_cv_path_FGREP="$ac_path_FGREP"
  4851. ac_path_FGREP_max=$ac_count
  4852. fi
  4853. # 10*(2^10) chars as input seems more than enough
  4854. test $ac_count -gt 10 && break
  4855. done
  4856. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4857. esac
  4858. $ac_path_FGREP_found && break 3
  4859. done
  4860. done
  4861. done
  4862. IFS=$as_save_IFS
  4863. if test -z "$ac_cv_path_FGREP"; then
  4864. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4865. fi
  4866. else
  4867. ac_cv_path_FGREP=$FGREP
  4868. fi
  4869. fi
  4870. fi
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4872. $as_echo "$ac_cv_path_FGREP" >&6; }
  4873. FGREP="$ac_cv_path_FGREP"
  4874. test -z "$GREP" && GREP=grep
  4875. # Check whether --with-gnu-ld was given.
  4876. if test "${with_gnu_ld+set}" = set; then :
  4877. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4878. else
  4879. with_gnu_ld=no
  4880. fi
  4881. ac_prog=ld
  4882. if test "$GCC" = yes; then
  4883. # Check if gcc -print-prog-name=ld gives a path.
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4885. $as_echo_n "checking for ld used by $CC... " >&6; }
  4886. case $host in
  4887. *-*-mingw*)
  4888. # gcc leaves a trailing carriage return which upsets mingw
  4889. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4890. *)
  4891. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4892. esac
  4893. case $ac_prog in
  4894. # Accept absolute paths.
  4895. [\\/]* | ?:[\\/]*)
  4896. re_direlt='/[^/][^/]*/\.\./'
  4897. # Canonicalize the pathname of ld
  4898. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4899. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4900. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4901. done
  4902. test -z "$LD" && LD="$ac_prog"
  4903. ;;
  4904. "")
  4905. # If it fails, then pretend we aren't using GCC.
  4906. ac_prog=ld
  4907. ;;
  4908. *)
  4909. # If it is relative, then search for the first ld in PATH.
  4910. with_gnu_ld=unknown
  4911. ;;
  4912. esac
  4913. elif test "$with_gnu_ld" = yes; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4915. $as_echo_n "checking for GNU ld... " >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4918. $as_echo_n "checking for non-GNU ld... " >&6; }
  4919. fi
  4920. if test "${lt_cv_path_LD+set}" = set; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. if test -z "$LD"; then
  4924. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4925. for ac_dir in $PATH; do
  4926. IFS="$lt_save_ifs"
  4927. test -z "$ac_dir" && ac_dir=.
  4928. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4929. lt_cv_path_LD="$ac_dir/$ac_prog"
  4930. # Check to see if the program is GNU ld. I'd rather use --version,
  4931. # but apparently some variants of GNU ld only accept -v.
  4932. # Break only if it was the GNU/non-GNU ld that we prefer.
  4933. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4934. *GNU* | *'with BFD'*)
  4935. test "$with_gnu_ld" != no && break
  4936. ;;
  4937. *)
  4938. test "$with_gnu_ld" != yes && break
  4939. ;;
  4940. esac
  4941. fi
  4942. done
  4943. IFS="$lt_save_ifs"
  4944. else
  4945. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4946. fi
  4947. fi
  4948. LD="$lt_cv_path_LD"
  4949. if test -n "$LD"; then
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4951. $as_echo "$LD" >&6; }
  4952. else
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4954. $as_echo "no" >&6; }
  4955. fi
  4956. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4958. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4959. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4963. case `$LD -v 2>&1 </dev/null` in
  4964. *GNU* | *'with BFD'*)
  4965. lt_cv_prog_gnu_ld=yes
  4966. ;;
  4967. *)
  4968. lt_cv_prog_gnu_ld=no
  4969. ;;
  4970. esac
  4971. fi
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4973. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4974. with_gnu_ld=$lt_cv_prog_gnu_ld
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4976. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4977. if test "${lt_cv_path_NM+set}" = set; then :
  4978. $as_echo_n "(cached) " >&6
  4979. else
  4980. if test -n "$NM"; then
  4981. # Let the user override the test.
  4982. lt_cv_path_NM="$NM"
  4983. else
  4984. lt_nm_to_check="${ac_tool_prefix}nm"
  4985. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4986. lt_nm_to_check="$lt_nm_to_check nm"
  4987. fi
  4988. for lt_tmp_nm in $lt_nm_to_check; do
  4989. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4990. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4991. IFS="$lt_save_ifs"
  4992. test -z "$ac_dir" && ac_dir=.
  4993. tmp_nm="$ac_dir/$lt_tmp_nm"
  4994. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4995. # Check to see if the nm accepts a BSD-compat flag.
  4996. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4997. # nm: unknown option "B" ignored
  4998. # Tru64's nm complains that /dev/null is an invalid object file
  4999. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5000. */dev/null* | *'Invalid file or object type'*)
  5001. lt_cv_path_NM="$tmp_nm -B"
  5002. break
  5003. ;;
  5004. *)
  5005. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5006. */dev/null*)
  5007. lt_cv_path_NM="$tmp_nm -p"
  5008. break
  5009. ;;
  5010. *)
  5011. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5012. continue # so that we can try to find one that supports BSD flags
  5013. ;;
  5014. esac
  5015. ;;
  5016. esac
  5017. fi
  5018. done
  5019. IFS="$lt_save_ifs"
  5020. done
  5021. : ${lt_cv_path_NM=no}
  5022. fi
  5023. fi
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5025. $as_echo "$lt_cv_path_NM" >&6; }
  5026. if test "$lt_cv_path_NM" != "no"; then
  5027. NM="$lt_cv_path_NM"
  5028. else
  5029. # Didn't find any BSD compatible name lister, look for dumpbin.
  5030. if test -n "$ac_tool_prefix"; then
  5031. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5032. do
  5033. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5034. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5036. $as_echo_n "checking for $ac_word... " >&6; }
  5037. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5038. $as_echo_n "(cached) " >&6
  5039. else
  5040. if test -n "$DUMPBIN"; then
  5041. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5042. else
  5043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5044. for as_dir in $PATH
  5045. do
  5046. IFS=$as_save_IFS
  5047. test -z "$as_dir" && as_dir=.
  5048. for ac_exec_ext in '' $ac_executable_extensions; do
  5049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5050. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5052. break 2
  5053. fi
  5054. done
  5055. done
  5056. IFS=$as_save_IFS
  5057. fi
  5058. fi
  5059. DUMPBIN=$ac_cv_prog_DUMPBIN
  5060. if test -n "$DUMPBIN"; then
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5062. $as_echo "$DUMPBIN" >&6; }
  5063. else
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5065. $as_echo "no" >&6; }
  5066. fi
  5067. test -n "$DUMPBIN" && break
  5068. done
  5069. fi
  5070. if test -z "$DUMPBIN"; then
  5071. ac_ct_DUMPBIN=$DUMPBIN
  5072. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5073. do
  5074. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5075. set dummy $ac_prog; ac_word=$2
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5077. $as_echo_n "checking for $ac_word... " >&6; }
  5078. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. if test -n "$ac_ct_DUMPBIN"; then
  5082. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5083. else
  5084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5085. for as_dir in $PATH
  5086. do
  5087. IFS=$as_save_IFS
  5088. test -z "$as_dir" && as_dir=.
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5091. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5093. break 2
  5094. fi
  5095. done
  5096. done
  5097. IFS=$as_save_IFS
  5098. fi
  5099. fi
  5100. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5101. if test -n "$ac_ct_DUMPBIN"; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5103. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5106. $as_echo "no" >&6; }
  5107. fi
  5108. test -n "$ac_ct_DUMPBIN" && break
  5109. done
  5110. if test "x$ac_ct_DUMPBIN" = x; then
  5111. DUMPBIN=":"
  5112. else
  5113. case $cross_compiling:$ac_tool_warned in
  5114. yes:)
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5117. ac_tool_warned=yes ;;
  5118. esac
  5119. DUMPBIN=$ac_ct_DUMPBIN
  5120. fi
  5121. fi
  5122. if test "$DUMPBIN" != ":"; then
  5123. NM="$DUMPBIN"
  5124. fi
  5125. fi
  5126. test -z "$NM" && NM=nm
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5128. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5129. if test "${lt_cv_nm_interface+set}" = set; then :
  5130. $as_echo_n "(cached) " >&6
  5131. else
  5132. lt_cv_nm_interface="BSD nm"
  5133. echo "int some_variable = 0;" > conftest.$ac_ext
  5134. (eval echo "\"\$as_me:5673: $ac_compile\"" >&5)
  5135. (eval "$ac_compile" 2>conftest.err)
  5136. cat conftest.err >&5
  5137. (eval echo "\"\$as_me:5676: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5138. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5139. cat conftest.err >&5
  5140. (eval echo "\"\$as_me:5679: output\"" >&5)
  5141. cat conftest.out >&5
  5142. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5143. lt_cv_nm_interface="MS dumpbin"
  5144. fi
  5145. rm -f conftest*
  5146. fi
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5148. $as_echo "$lt_cv_nm_interface" >&6; }
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5150. $as_echo_n "checking whether ln -s works... " >&6; }
  5151. LN_S=$as_ln_s
  5152. if test "$LN_S" = "ln -s"; then
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5154. $as_echo "yes" >&6; }
  5155. else
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5157. $as_echo "no, using $LN_S" >&6; }
  5158. fi
  5159. # find the maximum length of command line arguments
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5161. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5162. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5163. $as_echo_n "(cached) " >&6
  5164. else
  5165. i=0
  5166. teststring="ABCD"
  5167. case $build_os in
  5168. msdosdjgpp*)
  5169. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5170. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5171. # during glob expansion). Even if it were fixed, the result of this
  5172. # check would be larger than it should be.
  5173. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5174. ;;
  5175. gnu*)
  5176. # Under GNU Hurd, this test is not required because there is
  5177. # no limit to the length of command line arguments.
  5178. # Libtool will interpret -1 as no limit whatsoever
  5179. lt_cv_sys_max_cmd_len=-1;
  5180. ;;
  5181. cygwin* | mingw* | cegcc*)
  5182. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5183. # about 5 minutes as the teststring grows exponentially.
  5184. # Worse, since 9x/ME are not pre-emptively multitasking,
  5185. # you end up with a "frozen" computer, even though with patience
  5186. # the test eventually succeeds (with a max line length of 256k).
  5187. # Instead, let's just punt: use the minimum linelength reported by
  5188. # all of the supported platforms: 8192 (on NT/2K/XP).
  5189. lt_cv_sys_max_cmd_len=8192;
  5190. ;;
  5191. amigaos*)
  5192. # On AmigaOS with pdksh, this test takes hours, literally.
  5193. # So we just punt and use a minimum line length of 8192.
  5194. lt_cv_sys_max_cmd_len=8192;
  5195. ;;
  5196. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5197. # This has been around since 386BSD, at least. Likely further.
  5198. if test -x /sbin/sysctl; then
  5199. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5200. elif test -x /usr/sbin/sysctl; then
  5201. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5202. else
  5203. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5204. fi
  5205. # And add a safety zone
  5206. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5207. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5208. ;;
  5209. interix*)
  5210. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5211. lt_cv_sys_max_cmd_len=196608
  5212. ;;
  5213. osf*)
  5214. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5215. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5216. # nice to cause kernel panics so lets avoid the loop below.
  5217. # First set a reasonable default.
  5218. lt_cv_sys_max_cmd_len=16384
  5219. #
  5220. if test -x /sbin/sysconfig; then
  5221. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5222. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5223. esac
  5224. fi
  5225. ;;
  5226. sco3.2v5*)
  5227. lt_cv_sys_max_cmd_len=102400
  5228. ;;
  5229. sysv5* | sco5v6* | sysv4.2uw2*)
  5230. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5231. if test -n "$kargmax"; then
  5232. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5233. else
  5234. lt_cv_sys_max_cmd_len=32768
  5235. fi
  5236. ;;
  5237. *)
  5238. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5239. if test -n "$lt_cv_sys_max_cmd_len"; then
  5240. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5241. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5242. else
  5243. # Make teststring a little bigger before we do anything with it.
  5244. # a 1K string should be a reasonable start.
  5245. for i in 1 2 3 4 5 6 7 8 ; do
  5246. teststring=$teststring$teststring
  5247. done
  5248. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5249. # If test is not a shell built-in, we'll probably end up computing a
  5250. # maximum length that is only half of the actual maximum length, but
  5251. # we can't tell.
  5252. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5253. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5254. test $i != 17 # 1/2 MB should be enough
  5255. do
  5256. i=`expr $i + 1`
  5257. teststring=$teststring$teststring
  5258. done
  5259. # Only check the string length outside the loop.
  5260. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5261. teststring=
  5262. # Add a significant safety factor because C++ compilers can tack on
  5263. # massive amounts of additional arguments before passing them to the
  5264. # linker. It appears as though 1/2 is a usable value.
  5265. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5266. fi
  5267. ;;
  5268. esac
  5269. fi
  5270. if test -n $lt_cv_sys_max_cmd_len ; then
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5272. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5273. else
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5275. $as_echo "none" >&6; }
  5276. fi
  5277. max_cmd_len=$lt_cv_sys_max_cmd_len
  5278. : ${CP="cp -f"}
  5279. : ${MV="mv -f"}
  5280. : ${RM="rm -f"}
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5282. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5283. # Try some XSI features
  5284. xsi_shell=no
  5285. ( _lt_dummy="a/b/c"
  5286. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5287. = c,a/b,, \
  5288. && eval 'test $(( 1 + 1 )) -eq 2 \
  5289. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5290. && xsi_shell=yes
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5292. $as_echo "$xsi_shell" >&6; }
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5294. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5295. lt_shell_append=no
  5296. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5297. >/dev/null 2>&1 \
  5298. && lt_shell_append=yes
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5300. $as_echo "$lt_shell_append" >&6; }
  5301. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5302. lt_unset=unset
  5303. else
  5304. lt_unset=false
  5305. fi
  5306. # test EBCDIC or ASCII
  5307. case `echo X|tr X '\101'` in
  5308. A) # ASCII based system
  5309. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5310. lt_SP2NL='tr \040 \012'
  5311. lt_NL2SP='tr \015\012 \040\040'
  5312. ;;
  5313. *) # EBCDIC based system
  5314. lt_SP2NL='tr \100 \n'
  5315. lt_NL2SP='tr \r\n \100\100'
  5316. ;;
  5317. esac
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5319. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5320. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5321. $as_echo_n "(cached) " >&6
  5322. else
  5323. lt_cv_ld_reload_flag='-r'
  5324. fi
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5326. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5327. reload_flag=$lt_cv_ld_reload_flag
  5328. case $reload_flag in
  5329. "" | " "*) ;;
  5330. *) reload_flag=" $reload_flag" ;;
  5331. esac
  5332. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5333. case $host_os in
  5334. darwin*)
  5335. if test "$GCC" = yes; then
  5336. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5337. else
  5338. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5339. fi
  5340. ;;
  5341. esac
  5342. if test -n "$ac_tool_prefix"; then
  5343. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5344. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5346. $as_echo_n "checking for $ac_word... " >&6; }
  5347. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. if test -n "$OBJDUMP"; then
  5351. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5352. else
  5353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5354. for as_dir in $PATH
  5355. do
  5356. IFS=$as_save_IFS
  5357. test -z "$as_dir" && as_dir=.
  5358. for ac_exec_ext in '' $ac_executable_extensions; do
  5359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5360. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5362. break 2
  5363. fi
  5364. done
  5365. done
  5366. IFS=$as_save_IFS
  5367. fi
  5368. fi
  5369. OBJDUMP=$ac_cv_prog_OBJDUMP
  5370. if test -n "$OBJDUMP"; then
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5372. $as_echo "$OBJDUMP" >&6; }
  5373. else
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5375. $as_echo "no" >&6; }
  5376. fi
  5377. fi
  5378. if test -z "$ac_cv_prog_OBJDUMP"; then
  5379. ac_ct_OBJDUMP=$OBJDUMP
  5380. # Extract the first word of "objdump", so it can be a program name with args.
  5381. set dummy objdump; ac_word=$2
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5383. $as_echo_n "checking for $ac_word... " >&6; }
  5384. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. if test -n "$ac_ct_OBJDUMP"; then
  5388. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. test -z "$as_dir" && as_dir=.
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5397. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404. fi
  5405. fi
  5406. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5407. if test -n "$ac_ct_OBJDUMP"; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5409. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5410. else
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. $as_echo "no" >&6; }
  5413. fi
  5414. if test "x$ac_ct_OBJDUMP" = x; then
  5415. OBJDUMP="false"
  5416. else
  5417. case $cross_compiling:$ac_tool_warned in
  5418. yes:)
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5420. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5421. ac_tool_warned=yes ;;
  5422. esac
  5423. OBJDUMP=$ac_ct_OBJDUMP
  5424. fi
  5425. else
  5426. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5427. fi
  5428. test -z "$OBJDUMP" && OBJDUMP=objdump
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5430. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5431. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5435. lt_cv_file_magic_test_file=
  5436. lt_cv_deplibs_check_method='unknown'
  5437. # Need to set the preceding variable on all platforms that support
  5438. # interlibrary dependencies.
  5439. # 'none' -- dependencies not supported.
  5440. # `unknown' -- same as none, but documents that we really don't know.
  5441. # 'pass_all' -- all dependencies passed with no checks.
  5442. # 'test_compile' -- check by making test program.
  5443. # 'file_magic [[regex]]' -- check by looking for files in library path
  5444. # which responds to the $file_magic_cmd with a given extended regex.
  5445. # If you have `file' or equivalent on your system and you're not sure
  5446. # whether `pass_all' will *always* work, you probably want this one.
  5447. case $host_os in
  5448. aix[4-9]*)
  5449. lt_cv_deplibs_check_method=pass_all
  5450. ;;
  5451. beos*)
  5452. lt_cv_deplibs_check_method=pass_all
  5453. ;;
  5454. bsdi[45]*)
  5455. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5456. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5457. lt_cv_file_magic_test_file=/shlib/libc.so
  5458. ;;
  5459. cygwin*)
  5460. # func_win32_libid is a shell function defined in ltmain.sh
  5461. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5462. lt_cv_file_magic_cmd='func_win32_libid'
  5463. ;;
  5464. mingw* | pw32*)
  5465. # Base MSYS/MinGW do not provide the 'file' command needed by
  5466. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5467. # unless we find 'file', for example because we are cross-compiling.
  5468. if ( file / ) >/dev/null 2>&1; then
  5469. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5470. lt_cv_file_magic_cmd='func_win32_libid'
  5471. else
  5472. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5473. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5474. fi
  5475. ;;
  5476. cegcc)
  5477. # use the weaker test based on 'objdump'. See mingw*.
  5478. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5479. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5480. ;;
  5481. darwin* | rhapsody*)
  5482. lt_cv_deplibs_check_method=pass_all
  5483. ;;
  5484. freebsd* | dragonfly*)
  5485. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5486. case $host_cpu in
  5487. i*86 )
  5488. # Not sure whether the presence of OpenBSD here was a mistake.
  5489. # Let's accept both of them until this is cleared up.
  5490. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5491. lt_cv_file_magic_cmd=/usr/bin/file
  5492. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5493. ;;
  5494. esac
  5495. else
  5496. lt_cv_deplibs_check_method=pass_all
  5497. fi
  5498. ;;
  5499. gnu*)
  5500. lt_cv_deplibs_check_method=pass_all
  5501. ;;
  5502. hpux10.20* | hpux11*)
  5503. lt_cv_file_magic_cmd=/usr/bin/file
  5504. case $host_cpu in
  5505. ia64*)
  5506. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5507. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5508. ;;
  5509. hppa*64*)
  5510. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5511. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5512. ;;
  5513. *)
  5514. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5515. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5516. ;;
  5517. esac
  5518. ;;
  5519. interix[3-9]*)
  5520. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5521. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5522. ;;
  5523. irix5* | irix6* | nonstopux*)
  5524. case $LD in
  5525. *-32|*"-32 ") libmagic=32-bit;;
  5526. *-n32|*"-n32 ") libmagic=N32;;
  5527. *-64|*"-64 ") libmagic=64-bit;;
  5528. *) libmagic=never-match;;
  5529. esac
  5530. lt_cv_deplibs_check_method=pass_all
  5531. ;;
  5532. # This must be Linux ELF.
  5533. linux* | k*bsd*-gnu)
  5534. lt_cv_deplibs_check_method=pass_all
  5535. ;;
  5536. netbsd*)
  5537. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5538. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5539. else
  5540. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5541. fi
  5542. ;;
  5543. newos6*)
  5544. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5545. lt_cv_file_magic_cmd=/usr/bin/file
  5546. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5547. ;;
  5548. *nto* | *qnx*)
  5549. lt_cv_deplibs_check_method=pass_all
  5550. ;;
  5551. openbsd*)
  5552. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5553. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5554. else
  5555. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5556. fi
  5557. ;;
  5558. osf3* | osf4* | osf5*)
  5559. lt_cv_deplibs_check_method=pass_all
  5560. ;;
  5561. rdos*)
  5562. lt_cv_deplibs_check_method=pass_all
  5563. ;;
  5564. solaris*)
  5565. lt_cv_deplibs_check_method=pass_all
  5566. ;;
  5567. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5568. lt_cv_deplibs_check_method=pass_all
  5569. ;;
  5570. sysv4 | sysv4.3*)
  5571. case $host_vendor in
  5572. motorola)
  5573. 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]'
  5574. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5575. ;;
  5576. ncr)
  5577. lt_cv_deplibs_check_method=pass_all
  5578. ;;
  5579. sequent)
  5580. lt_cv_file_magic_cmd='/bin/file'
  5581. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5582. ;;
  5583. sni)
  5584. lt_cv_file_magic_cmd='/bin/file'
  5585. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5586. lt_cv_file_magic_test_file=/lib/libc.so
  5587. ;;
  5588. siemens)
  5589. lt_cv_deplibs_check_method=pass_all
  5590. ;;
  5591. pc)
  5592. lt_cv_deplibs_check_method=pass_all
  5593. ;;
  5594. esac
  5595. ;;
  5596. tpf*)
  5597. lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. esac
  5600. fi
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5602. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5603. file_magic_cmd=$lt_cv_file_magic_cmd
  5604. deplibs_check_method=$lt_cv_deplibs_check_method
  5605. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5606. if test -n "$ac_tool_prefix"; then
  5607. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5608. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5610. $as_echo_n "checking for $ac_word... " >&6; }
  5611. if test "${ac_cv_prog_AR+set}" = set; then :
  5612. $as_echo_n "(cached) " >&6
  5613. else
  5614. if test -n "$AR"; then
  5615. ac_cv_prog_AR="$AR" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. test -z "$as_dir" && as_dir=.
  5622. for ac_exec_ext in '' $ac_executable_extensions; do
  5623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5624. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5626. break 2
  5627. fi
  5628. done
  5629. done
  5630. IFS=$as_save_IFS
  5631. fi
  5632. fi
  5633. AR=$ac_cv_prog_AR
  5634. if test -n "$AR"; then
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5636. $as_echo "$AR" >&6; }
  5637. else
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5639. $as_echo "no" >&6; }
  5640. fi
  5641. fi
  5642. if test -z "$ac_cv_prog_AR"; then
  5643. ac_ct_AR=$AR
  5644. # Extract the first word of "ar", so it can be a program name with args.
  5645. set dummy ar; ac_word=$2
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5647. $as_echo_n "checking for $ac_word... " >&6; }
  5648. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5649. $as_echo_n "(cached) " >&6
  5650. else
  5651. if test -n "$ac_ct_AR"; then
  5652. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5653. else
  5654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5655. for as_dir in $PATH
  5656. do
  5657. IFS=$as_save_IFS
  5658. test -z "$as_dir" && as_dir=.
  5659. for ac_exec_ext in '' $ac_executable_extensions; do
  5660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5661. ac_cv_prog_ac_ct_AR="ar"
  5662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5663. break 2
  5664. fi
  5665. done
  5666. done
  5667. IFS=$as_save_IFS
  5668. fi
  5669. fi
  5670. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5671. if test -n "$ac_ct_AR"; then
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5673. $as_echo "$ac_ct_AR" >&6; }
  5674. else
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5676. $as_echo "no" >&6; }
  5677. fi
  5678. if test "x$ac_ct_AR" = x; then
  5679. AR="false"
  5680. else
  5681. case $cross_compiling:$ac_tool_warned in
  5682. yes:)
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5685. ac_tool_warned=yes ;;
  5686. esac
  5687. AR=$ac_ct_AR
  5688. fi
  5689. else
  5690. AR="$ac_cv_prog_AR"
  5691. fi
  5692. test -z "$AR" && AR=ar
  5693. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5694. if test -n "$ac_tool_prefix"; then
  5695. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5696. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. $as_echo_n "checking for $ac_word... " >&6; }
  5699. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5700. $as_echo_n "(cached) " >&6
  5701. else
  5702. if test -n "$STRIP"; then
  5703. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5704. else
  5705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5706. for as_dir in $PATH
  5707. do
  5708. IFS=$as_save_IFS
  5709. test -z "$as_dir" && as_dir=.
  5710. for ac_exec_ext in '' $ac_executable_extensions; do
  5711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5712. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5714. break 2
  5715. fi
  5716. done
  5717. done
  5718. IFS=$as_save_IFS
  5719. fi
  5720. fi
  5721. STRIP=$ac_cv_prog_STRIP
  5722. if test -n "$STRIP"; then
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5724. $as_echo "$STRIP" >&6; }
  5725. else
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5727. $as_echo "no" >&6; }
  5728. fi
  5729. fi
  5730. if test -z "$ac_cv_prog_STRIP"; then
  5731. ac_ct_STRIP=$STRIP
  5732. # Extract the first word of "strip", so it can be a program name with args.
  5733. set dummy strip; ac_word=$2
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5735. $as_echo_n "checking for $ac_word... " >&6; }
  5736. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. if test -n "$ac_ct_STRIP"; then
  5740. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5741. else
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. for ac_exec_ext in '' $ac_executable_extensions; do
  5748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5749. ac_cv_prog_ac_ct_STRIP="strip"
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5751. break 2
  5752. fi
  5753. done
  5754. done
  5755. IFS=$as_save_IFS
  5756. fi
  5757. fi
  5758. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5759. if test -n "$ac_ct_STRIP"; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5761. $as_echo "$ac_ct_STRIP" >&6; }
  5762. else
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5764. $as_echo "no" >&6; }
  5765. fi
  5766. if test "x$ac_ct_STRIP" = x; then
  5767. STRIP=":"
  5768. else
  5769. case $cross_compiling:$ac_tool_warned in
  5770. yes:)
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5773. ac_tool_warned=yes ;;
  5774. esac
  5775. STRIP=$ac_ct_STRIP
  5776. fi
  5777. else
  5778. STRIP="$ac_cv_prog_STRIP"
  5779. fi
  5780. test -z "$STRIP" && STRIP=:
  5781. if test -n "$ac_tool_prefix"; then
  5782. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5783. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5785. $as_echo_n "checking for $ac_word... " >&6; }
  5786. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5787. $as_echo_n "(cached) " >&6
  5788. else
  5789. if test -n "$RANLIB"; then
  5790. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5791. else
  5792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5793. for as_dir in $PATH
  5794. do
  5795. IFS=$as_save_IFS
  5796. test -z "$as_dir" && as_dir=.
  5797. for ac_exec_ext in '' $ac_executable_extensions; do
  5798. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5799. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5801. break 2
  5802. fi
  5803. done
  5804. done
  5805. IFS=$as_save_IFS
  5806. fi
  5807. fi
  5808. RANLIB=$ac_cv_prog_RANLIB
  5809. if test -n "$RANLIB"; then
  5810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5811. $as_echo "$RANLIB" >&6; }
  5812. else
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5814. $as_echo "no" >&6; }
  5815. fi
  5816. fi
  5817. if test -z "$ac_cv_prog_RANLIB"; then
  5818. ac_ct_RANLIB=$RANLIB
  5819. # Extract the first word of "ranlib", so it can be a program name with args.
  5820. set dummy ranlib; ac_word=$2
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5822. $as_echo_n "checking for $ac_word... " >&6; }
  5823. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. if test -n "$ac_ct_RANLIB"; then
  5827. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5828. else
  5829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5830. for as_dir in $PATH
  5831. do
  5832. IFS=$as_save_IFS
  5833. test -z "$as_dir" && as_dir=.
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5836. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5846. if test -n "$ac_ct_RANLIB"; then
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5848. $as_echo "$ac_ct_RANLIB" >&6; }
  5849. else
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. $as_echo "no" >&6; }
  5852. fi
  5853. if test "x$ac_ct_RANLIB" = x; then
  5854. RANLIB=":"
  5855. else
  5856. case $cross_compiling:$ac_tool_warned in
  5857. yes:)
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5859. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5860. ac_tool_warned=yes ;;
  5861. esac
  5862. RANLIB=$ac_ct_RANLIB
  5863. fi
  5864. else
  5865. RANLIB="$ac_cv_prog_RANLIB"
  5866. fi
  5867. test -z "$RANLIB" && RANLIB=:
  5868. # Determine commands to create old-style static archives.
  5869. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5870. old_postinstall_cmds='chmod 644 $oldlib'
  5871. old_postuninstall_cmds=
  5872. if test -n "$RANLIB"; then
  5873. case $host_os in
  5874. openbsd*)
  5875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5876. ;;
  5877. *)
  5878. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5879. ;;
  5880. esac
  5881. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5882. fi
  5883. # If no C compiler was specified, use CC.
  5884. LTCC=${LTCC-"$CC"}
  5885. # If no C compiler flags were specified, use CFLAGS.
  5886. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5887. # Allow CC to be a program name with arguments.
  5888. compiler=$CC
  5889. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5891. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5892. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5893. $as_echo_n "(cached) " >&6
  5894. else
  5895. # These are sane defaults that work on at least a few old systems.
  5896. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5897. # Character class describing NM global symbol codes.
  5898. symcode='[BCDEGRST]'
  5899. # Regexp to match symbols that can be accessed directly from C.
  5900. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5901. # Define system-specific variables.
  5902. case $host_os in
  5903. aix*)
  5904. symcode='[BCDT]'
  5905. ;;
  5906. cygwin* | mingw* | pw32* | cegcc*)
  5907. symcode='[ABCDGISTW]'
  5908. ;;
  5909. hpux*)
  5910. if test "$host_cpu" = ia64; then
  5911. symcode='[ABCDEGRST]'
  5912. fi
  5913. ;;
  5914. irix* | nonstopux*)
  5915. symcode='[BCDEGRST]'
  5916. ;;
  5917. osf*)
  5918. symcode='[BCDEGQRST]'
  5919. ;;
  5920. solaris*)
  5921. symcode='[BDRT]'
  5922. ;;
  5923. sco3.2v5*)
  5924. symcode='[DT]'
  5925. ;;
  5926. sysv4.2uw2*)
  5927. symcode='[DT]'
  5928. ;;
  5929. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5930. symcode='[ABDT]'
  5931. ;;
  5932. sysv4)
  5933. symcode='[DFNSTU]'
  5934. ;;
  5935. esac
  5936. # If we're using GNU nm, then use its standard symbol codes.
  5937. case `$NM -V 2>&1` in
  5938. *GNU* | *'with BFD'*)
  5939. symcode='[ABCDGIRSTW]' ;;
  5940. esac
  5941. # Transform an extracted symbol line into a proper C declaration.
  5942. # Some systems (esp. on ia64) link data and code symbols differently,
  5943. # so use this general approach.
  5944. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5945. # Transform an extracted symbol line into symbol name and symbol address
  5946. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5947. 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'"
  5948. # Handle CRLF in mingw tool chain
  5949. opt_cr=
  5950. case $build_os in
  5951. mingw*)
  5952. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5953. ;;
  5954. esac
  5955. # Try without a prefix underscore, then with it.
  5956. for ac_symprfx in "" "_"; do
  5957. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5958. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5959. # Write the raw and C identifiers.
  5960. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5961. # Fake it for dumpbin and say T for any non-static function
  5962. # and D for any global variable.
  5963. # Also find C++ and __fastcall symbols from MSVC++,
  5964. # which start with @ or ?.
  5965. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5966. " {last_section=section; section=\$ 3};"\
  5967. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5968. " \$ 0!~/External *\|/{next};"\
  5969. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5970. " {if(hide[section]) next};"\
  5971. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5972. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5973. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5974. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5975. " ' prfx=^$ac_symprfx"
  5976. else
  5977. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5978. fi
  5979. # Check to see that the pipe works correctly.
  5980. pipe_works=no
  5981. rm -f conftest*
  5982. cat > conftest.$ac_ext <<_LT_EOF
  5983. #ifdef __cplusplus
  5984. extern "C" {
  5985. #endif
  5986. char nm_test_var;
  5987. void nm_test_func(void);
  5988. void nm_test_func(void){}
  5989. #ifdef __cplusplus
  5990. }
  5991. #endif
  5992. int main(){nm_test_var='a';nm_test_func();return(0);}
  5993. _LT_EOF
  5994. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5995. (eval $ac_compile) 2>&5
  5996. ac_status=$?
  5997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5998. test $ac_status = 0; }; then
  5999. # Now try to grab the symbols.
  6000. nlist=conftest.nm
  6001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  6002. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6003. ac_status=$?
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6005. test $ac_status = 0; } && test -s "$nlist"; then
  6006. # Try sorting and uniquifying the output.
  6007. if sort "$nlist" | uniq > "$nlist"T; then
  6008. mv -f "$nlist"T "$nlist"
  6009. else
  6010. rm -f "$nlist"T
  6011. fi
  6012. # Make sure that we snagged all the symbols we need.
  6013. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6014. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6015. cat <<_LT_EOF > conftest.$ac_ext
  6016. #ifdef __cplusplus
  6017. extern "C" {
  6018. #endif
  6019. _LT_EOF
  6020. # Now generate the symbol file.
  6021. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6022. cat <<_LT_EOF >> conftest.$ac_ext
  6023. /* The mapping between symbol names and symbols. */
  6024. const struct {
  6025. const char *name;
  6026. void *address;
  6027. }
  6028. lt__PROGRAM__LTX_preloaded_symbols[] =
  6029. {
  6030. { "@PROGRAM@", (void *) 0 },
  6031. _LT_EOF
  6032. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6033. cat <<\_LT_EOF >> conftest.$ac_ext
  6034. {0, (void *) 0}
  6035. };
  6036. /* This works around a problem in FreeBSD linker */
  6037. #ifdef FREEBSD_WORKAROUND
  6038. static const void *lt_preloaded_setup() {
  6039. return lt__PROGRAM__LTX_preloaded_symbols;
  6040. }
  6041. #endif
  6042. #ifdef __cplusplus
  6043. }
  6044. #endif
  6045. _LT_EOF
  6046. # Now try linking the two files.
  6047. mv conftest.$ac_objext conftstm.$ac_objext
  6048. lt_save_LIBS="$LIBS"
  6049. lt_save_CFLAGS="$CFLAGS"
  6050. LIBS="conftstm.$ac_objext"
  6051. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6052. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6053. (eval $ac_link) 2>&5
  6054. ac_status=$?
  6055. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6056. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6057. pipe_works=yes
  6058. fi
  6059. LIBS="$lt_save_LIBS"
  6060. CFLAGS="$lt_save_CFLAGS"
  6061. else
  6062. echo "cannot find nm_test_func in $nlist" >&5
  6063. fi
  6064. else
  6065. echo "cannot find nm_test_var in $nlist" >&5
  6066. fi
  6067. else
  6068. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6069. fi
  6070. else
  6071. echo "$progname: failed program was:" >&5
  6072. cat conftest.$ac_ext >&5
  6073. fi
  6074. rm -rf conftest* conftst*
  6075. # Do not use the global_symbol_pipe unless it works.
  6076. if test "$pipe_works" = yes; then
  6077. break
  6078. else
  6079. lt_cv_sys_global_symbol_pipe=
  6080. fi
  6081. done
  6082. fi
  6083. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6084. lt_cv_sys_global_symbol_to_cdecl=
  6085. fi
  6086. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6088. $as_echo "failed" >&6; }
  6089. else
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6091. $as_echo "ok" >&6; }
  6092. fi
  6093. # Check whether --enable-libtool-lock was given.
  6094. if test "${enable_libtool_lock+set}" = set; then :
  6095. enableval=$enable_libtool_lock;
  6096. fi
  6097. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6098. # Some flags need to be propagated to the compiler or linker for good
  6099. # libtool support.
  6100. case $host in
  6101. ia64-*-hpux*)
  6102. # Find out which ABI we are using.
  6103. echo 'int i;' > conftest.$ac_ext
  6104. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6105. (eval $ac_compile) 2>&5
  6106. ac_status=$?
  6107. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6108. test $ac_status = 0; }; then
  6109. case `/usr/bin/file conftest.$ac_objext` in
  6110. *ELF-32*)
  6111. HPUX_IA64_MODE="32"
  6112. ;;
  6113. *ELF-64*)
  6114. HPUX_IA64_MODE="64"
  6115. ;;
  6116. esac
  6117. fi
  6118. rm -rf conftest*
  6119. ;;
  6120. *-*-irix6*)
  6121. # Find out which ABI we are using.
  6122. echo '#line 6885 "configure"' > conftest.$ac_ext
  6123. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6124. (eval $ac_compile) 2>&5
  6125. ac_status=$?
  6126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6127. test $ac_status = 0; }; then
  6128. if test "$lt_cv_prog_gnu_ld" = yes; then
  6129. case `/usr/bin/file conftest.$ac_objext` in
  6130. *32-bit*)
  6131. LD="${LD-ld} -melf32bsmip"
  6132. ;;
  6133. *N32*)
  6134. LD="${LD-ld} -melf32bmipn32"
  6135. ;;
  6136. *64-bit*)
  6137. LD="${LD-ld} -melf64bmip"
  6138. ;;
  6139. esac
  6140. else
  6141. case `/usr/bin/file conftest.$ac_objext` in
  6142. *32-bit*)
  6143. LD="${LD-ld} -32"
  6144. ;;
  6145. *N32*)
  6146. LD="${LD-ld} -n32"
  6147. ;;
  6148. *64-bit*)
  6149. LD="${LD-ld} -64"
  6150. ;;
  6151. esac
  6152. fi
  6153. fi
  6154. rm -rf conftest*
  6155. ;;
  6156. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6157. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6158. # Find out which ABI we are using.
  6159. echo 'int i;' > conftest.$ac_ext
  6160. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6161. (eval $ac_compile) 2>&5
  6162. ac_status=$?
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6164. test $ac_status = 0; }; then
  6165. case `/usr/bin/file conftest.o` in
  6166. *32-bit*)
  6167. case $host in
  6168. x86_64-*kfreebsd*-gnu)
  6169. LD="${LD-ld} -m elf_i386_fbsd"
  6170. ;;
  6171. x86_64-*linux*)
  6172. LD="${LD-ld} -m elf_i386"
  6173. ;;
  6174. ppc64-*linux*|powerpc64-*linux*)
  6175. LD="${LD-ld} -m elf32ppclinux"
  6176. ;;
  6177. s390x-*linux*)
  6178. LD="${LD-ld} -m elf_s390"
  6179. ;;
  6180. sparc64-*linux*)
  6181. LD="${LD-ld} -m elf32_sparc"
  6182. ;;
  6183. esac
  6184. ;;
  6185. *64-bit*)
  6186. case $host in
  6187. x86_64-*kfreebsd*-gnu)
  6188. LD="${LD-ld} -m elf_x86_64_fbsd"
  6189. ;;
  6190. x86_64-*linux*)
  6191. LD="${LD-ld} -m elf_x86_64"
  6192. ;;
  6193. ppc*-*linux*|powerpc*-*linux*)
  6194. LD="${LD-ld} -m elf64ppc"
  6195. ;;
  6196. s390*-*linux*|s390*-*tpf*)
  6197. LD="${LD-ld} -m elf64_s390"
  6198. ;;
  6199. sparc*-*linux*)
  6200. LD="${LD-ld} -m elf64_sparc"
  6201. ;;
  6202. esac
  6203. ;;
  6204. esac
  6205. fi
  6206. rm -rf conftest*
  6207. ;;
  6208. *-*-sco3.2v5*)
  6209. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6210. SAVE_CFLAGS="$CFLAGS"
  6211. CFLAGS="$CFLAGS -belf"
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6213. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6214. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6215. $as_echo_n "(cached) " >&6
  6216. else
  6217. ac_ext=c
  6218. ac_cpp='$CPP $CPPFLAGS'
  6219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6223. /* end confdefs.h. */
  6224. int
  6225. main ()
  6226. {
  6227. ;
  6228. return 0;
  6229. }
  6230. _ACEOF
  6231. if ac_fn_c_try_link "$LINENO"; then :
  6232. lt_cv_cc_needs_belf=yes
  6233. else
  6234. lt_cv_cc_needs_belf=no
  6235. fi
  6236. rm -f core conftest.err conftest.$ac_objext \
  6237. conftest$ac_exeext conftest.$ac_ext
  6238. ac_ext=c
  6239. ac_cpp='$CPP $CPPFLAGS'
  6240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6243. fi
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6245. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6246. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6247. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6248. CFLAGS="$SAVE_CFLAGS"
  6249. fi
  6250. ;;
  6251. sparc*-*solaris*)
  6252. # Find out which ABI we are using.
  6253. echo 'int i;' > conftest.$ac_ext
  6254. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6255. (eval $ac_compile) 2>&5
  6256. ac_status=$?
  6257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6258. test $ac_status = 0; }; then
  6259. case `/usr/bin/file conftest.o` in
  6260. *64-bit*)
  6261. case $lt_cv_prog_gnu_ld in
  6262. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6263. *)
  6264. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6265. LD="${LD-ld} -64"
  6266. fi
  6267. ;;
  6268. esac
  6269. ;;
  6270. esac
  6271. fi
  6272. rm -rf conftest*
  6273. ;;
  6274. esac
  6275. need_locks="$enable_libtool_lock"
  6276. case $host_os in
  6277. rhapsody* | darwin*)
  6278. if test -n "$ac_tool_prefix"; then
  6279. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6280. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6282. $as_echo_n "checking for $ac_word... " >&6; }
  6283. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6284. $as_echo_n "(cached) " >&6
  6285. else
  6286. if test -n "$DSYMUTIL"; then
  6287. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6288. else
  6289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6290. for as_dir in $PATH
  6291. do
  6292. IFS=$as_save_IFS
  6293. test -z "$as_dir" && as_dir=.
  6294. for ac_exec_ext in '' $ac_executable_extensions; do
  6295. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6296. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6298. break 2
  6299. fi
  6300. done
  6301. done
  6302. IFS=$as_save_IFS
  6303. fi
  6304. fi
  6305. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6306. if test -n "$DSYMUTIL"; then
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6308. $as_echo "$DSYMUTIL" >&6; }
  6309. else
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6311. $as_echo "no" >&6; }
  6312. fi
  6313. fi
  6314. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6315. ac_ct_DSYMUTIL=$DSYMUTIL
  6316. # Extract the first word of "dsymutil", so it can be a program name with args.
  6317. set dummy dsymutil; ac_word=$2
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6319. $as_echo_n "checking for $ac_word... " >&6; }
  6320. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6321. $as_echo_n "(cached) " >&6
  6322. else
  6323. if test -n "$ac_ct_DSYMUTIL"; then
  6324. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6325. else
  6326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6327. for as_dir in $PATH
  6328. do
  6329. IFS=$as_save_IFS
  6330. test -z "$as_dir" && as_dir=.
  6331. for ac_exec_ext in '' $ac_executable_extensions; do
  6332. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6333. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6335. break 2
  6336. fi
  6337. done
  6338. done
  6339. IFS=$as_save_IFS
  6340. fi
  6341. fi
  6342. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6343. if test -n "$ac_ct_DSYMUTIL"; then
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6345. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6346. else
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6348. $as_echo "no" >&6; }
  6349. fi
  6350. if test "x$ac_ct_DSYMUTIL" = x; then
  6351. DSYMUTIL=":"
  6352. else
  6353. case $cross_compiling:$ac_tool_warned in
  6354. yes:)
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6357. ac_tool_warned=yes ;;
  6358. esac
  6359. DSYMUTIL=$ac_ct_DSYMUTIL
  6360. fi
  6361. else
  6362. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6363. fi
  6364. if test -n "$ac_tool_prefix"; then
  6365. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6366. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6368. $as_echo_n "checking for $ac_word... " >&6; }
  6369. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6370. $as_echo_n "(cached) " >&6
  6371. else
  6372. if test -n "$NMEDIT"; then
  6373. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6374. else
  6375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6376. for as_dir in $PATH
  6377. do
  6378. IFS=$as_save_IFS
  6379. test -z "$as_dir" && as_dir=.
  6380. for ac_exec_ext in '' $ac_executable_extensions; do
  6381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6382. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6384. break 2
  6385. fi
  6386. done
  6387. done
  6388. IFS=$as_save_IFS
  6389. fi
  6390. fi
  6391. NMEDIT=$ac_cv_prog_NMEDIT
  6392. if test -n "$NMEDIT"; then
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6394. $as_echo "$NMEDIT" >&6; }
  6395. else
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6397. $as_echo "no" >&6; }
  6398. fi
  6399. fi
  6400. if test -z "$ac_cv_prog_NMEDIT"; then
  6401. ac_ct_NMEDIT=$NMEDIT
  6402. # Extract the first word of "nmedit", so it can be a program name with args.
  6403. set dummy nmedit; ac_word=$2
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6405. $as_echo_n "checking for $ac_word... " >&6; }
  6406. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6407. $as_echo_n "(cached) " >&6
  6408. else
  6409. if test -n "$ac_ct_NMEDIT"; then
  6410. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6411. else
  6412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6413. for as_dir in $PATH
  6414. do
  6415. IFS=$as_save_IFS
  6416. test -z "$as_dir" && as_dir=.
  6417. for ac_exec_ext in '' $ac_executable_extensions; do
  6418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6419. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6420. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6421. break 2
  6422. fi
  6423. done
  6424. done
  6425. IFS=$as_save_IFS
  6426. fi
  6427. fi
  6428. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6429. if test -n "$ac_ct_NMEDIT"; then
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6431. $as_echo "$ac_ct_NMEDIT" >&6; }
  6432. else
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6434. $as_echo "no" >&6; }
  6435. fi
  6436. if test "x$ac_ct_NMEDIT" = x; then
  6437. NMEDIT=":"
  6438. else
  6439. case $cross_compiling:$ac_tool_warned in
  6440. yes:)
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6442. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6443. ac_tool_warned=yes ;;
  6444. esac
  6445. NMEDIT=$ac_ct_NMEDIT
  6446. fi
  6447. else
  6448. NMEDIT="$ac_cv_prog_NMEDIT"
  6449. fi
  6450. if test -n "$ac_tool_prefix"; then
  6451. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6452. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6454. $as_echo_n "checking for $ac_word... " >&6; }
  6455. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6456. $as_echo_n "(cached) " >&6
  6457. else
  6458. if test -n "$LIPO"; then
  6459. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6460. else
  6461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6462. for as_dir in $PATH
  6463. do
  6464. IFS=$as_save_IFS
  6465. test -z "$as_dir" && as_dir=.
  6466. for ac_exec_ext in '' $ac_executable_extensions; do
  6467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6468. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6470. break 2
  6471. fi
  6472. done
  6473. done
  6474. IFS=$as_save_IFS
  6475. fi
  6476. fi
  6477. LIPO=$ac_cv_prog_LIPO
  6478. if test -n "$LIPO"; then
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6480. $as_echo "$LIPO" >&6; }
  6481. else
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6483. $as_echo "no" >&6; }
  6484. fi
  6485. fi
  6486. if test -z "$ac_cv_prog_LIPO"; then
  6487. ac_ct_LIPO=$LIPO
  6488. # Extract the first word of "lipo", so it can be a program name with args.
  6489. set dummy lipo; ac_word=$2
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6491. $as_echo_n "checking for $ac_word... " >&6; }
  6492. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6493. $as_echo_n "(cached) " >&6
  6494. else
  6495. if test -n "$ac_ct_LIPO"; then
  6496. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6497. else
  6498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6499. for as_dir in $PATH
  6500. do
  6501. IFS=$as_save_IFS
  6502. test -z "$as_dir" && as_dir=.
  6503. for ac_exec_ext in '' $ac_executable_extensions; do
  6504. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6505. ac_cv_prog_ac_ct_LIPO="lipo"
  6506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6507. break 2
  6508. fi
  6509. done
  6510. done
  6511. IFS=$as_save_IFS
  6512. fi
  6513. fi
  6514. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6515. if test -n "$ac_ct_LIPO"; then
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6517. $as_echo "$ac_ct_LIPO" >&6; }
  6518. else
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6520. $as_echo "no" >&6; }
  6521. fi
  6522. if test "x$ac_ct_LIPO" = x; then
  6523. LIPO=":"
  6524. else
  6525. case $cross_compiling:$ac_tool_warned in
  6526. yes:)
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6528. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6529. ac_tool_warned=yes ;;
  6530. esac
  6531. LIPO=$ac_ct_LIPO
  6532. fi
  6533. else
  6534. LIPO="$ac_cv_prog_LIPO"
  6535. fi
  6536. if test -n "$ac_tool_prefix"; then
  6537. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6538. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6540. $as_echo_n "checking for $ac_word... " >&6; }
  6541. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6542. $as_echo_n "(cached) " >&6
  6543. else
  6544. if test -n "$OTOOL"; then
  6545. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6546. else
  6547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6548. for as_dir in $PATH
  6549. do
  6550. IFS=$as_save_IFS
  6551. test -z "$as_dir" && as_dir=.
  6552. for ac_exec_ext in '' $ac_executable_extensions; do
  6553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6554. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6556. break 2
  6557. fi
  6558. done
  6559. done
  6560. IFS=$as_save_IFS
  6561. fi
  6562. fi
  6563. OTOOL=$ac_cv_prog_OTOOL
  6564. if test -n "$OTOOL"; then
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6566. $as_echo "$OTOOL" >&6; }
  6567. else
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6569. $as_echo "no" >&6; }
  6570. fi
  6571. fi
  6572. if test -z "$ac_cv_prog_OTOOL"; then
  6573. ac_ct_OTOOL=$OTOOL
  6574. # Extract the first word of "otool", so it can be a program name with args.
  6575. set dummy otool; ac_word=$2
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6577. $as_echo_n "checking for $ac_word... " >&6; }
  6578. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6579. $as_echo_n "(cached) " >&6
  6580. else
  6581. if test -n "$ac_ct_OTOOL"; then
  6582. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6583. else
  6584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6585. for as_dir in $PATH
  6586. do
  6587. IFS=$as_save_IFS
  6588. test -z "$as_dir" && as_dir=.
  6589. for ac_exec_ext in '' $ac_executable_extensions; do
  6590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6591. ac_cv_prog_ac_ct_OTOOL="otool"
  6592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6593. break 2
  6594. fi
  6595. done
  6596. done
  6597. IFS=$as_save_IFS
  6598. fi
  6599. fi
  6600. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6601. if test -n "$ac_ct_OTOOL"; then
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6603. $as_echo "$ac_ct_OTOOL" >&6; }
  6604. else
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6606. $as_echo "no" >&6; }
  6607. fi
  6608. if test "x$ac_ct_OTOOL" = x; then
  6609. OTOOL=":"
  6610. else
  6611. case $cross_compiling:$ac_tool_warned in
  6612. yes:)
  6613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6614. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6615. ac_tool_warned=yes ;;
  6616. esac
  6617. OTOOL=$ac_ct_OTOOL
  6618. fi
  6619. else
  6620. OTOOL="$ac_cv_prog_OTOOL"
  6621. fi
  6622. if test -n "$ac_tool_prefix"; then
  6623. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6624. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6626. $as_echo_n "checking for $ac_word... " >&6; }
  6627. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6628. $as_echo_n "(cached) " >&6
  6629. else
  6630. if test -n "$OTOOL64"; then
  6631. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6632. else
  6633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6634. for as_dir in $PATH
  6635. do
  6636. IFS=$as_save_IFS
  6637. test -z "$as_dir" && as_dir=.
  6638. for ac_exec_ext in '' $ac_executable_extensions; do
  6639. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6640. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6642. break 2
  6643. fi
  6644. done
  6645. done
  6646. IFS=$as_save_IFS
  6647. fi
  6648. fi
  6649. OTOOL64=$ac_cv_prog_OTOOL64
  6650. if test -n "$OTOOL64"; then
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6652. $as_echo "$OTOOL64" >&6; }
  6653. else
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6655. $as_echo "no" >&6; }
  6656. fi
  6657. fi
  6658. if test -z "$ac_cv_prog_OTOOL64"; then
  6659. ac_ct_OTOOL64=$OTOOL64
  6660. # Extract the first word of "otool64", so it can be a program name with args.
  6661. set dummy otool64; ac_word=$2
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6663. $as_echo_n "checking for $ac_word... " >&6; }
  6664. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. if test -n "$ac_ct_OTOOL64"; then
  6668. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6669. else
  6670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6671. for as_dir in $PATH
  6672. do
  6673. IFS=$as_save_IFS
  6674. test -z "$as_dir" && as_dir=.
  6675. for ac_exec_ext in '' $ac_executable_extensions; do
  6676. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6677. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6679. break 2
  6680. fi
  6681. done
  6682. done
  6683. IFS=$as_save_IFS
  6684. fi
  6685. fi
  6686. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6687. if test -n "$ac_ct_OTOOL64"; then
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6689. $as_echo "$ac_ct_OTOOL64" >&6; }
  6690. else
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6692. $as_echo "no" >&6; }
  6693. fi
  6694. if test "x$ac_ct_OTOOL64" = x; then
  6695. OTOOL64=":"
  6696. else
  6697. case $cross_compiling:$ac_tool_warned in
  6698. yes:)
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6701. ac_tool_warned=yes ;;
  6702. esac
  6703. OTOOL64=$ac_ct_OTOOL64
  6704. fi
  6705. else
  6706. OTOOL64="$ac_cv_prog_OTOOL64"
  6707. fi
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6709. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6710. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. lt_cv_apple_cc_single_mod=no
  6714. if test -z "${LT_MULTI_MODULE}"; then
  6715. # By default we will add the -single_module flag. You can override
  6716. # by either setting the environment variable LT_MULTI_MODULE
  6717. # non-empty at configure time, or by adding -multi_module to the
  6718. # link flags.
  6719. rm -rf libconftest.dylib*
  6720. echo "int foo(void){return 1;}" > conftest.c
  6721. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6722. -dynamiclib -Wl,-single_module conftest.c" >&5
  6723. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6724. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6725. _lt_result=$?
  6726. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6727. lt_cv_apple_cc_single_mod=yes
  6728. else
  6729. cat conftest.err >&5
  6730. fi
  6731. rm -rf libconftest.dylib*
  6732. rm -f conftest.*
  6733. fi
  6734. fi
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6736. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6738. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6739. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6740. $as_echo_n "(cached) " >&6
  6741. else
  6742. lt_cv_ld_exported_symbols_list=no
  6743. save_LDFLAGS=$LDFLAGS
  6744. echo "_main" > conftest.sym
  6745. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. int
  6749. main ()
  6750. {
  6751. ;
  6752. return 0;
  6753. }
  6754. _ACEOF
  6755. if ac_fn_c_try_link "$LINENO"; then :
  6756. lt_cv_ld_exported_symbols_list=yes
  6757. else
  6758. lt_cv_ld_exported_symbols_list=no
  6759. fi
  6760. rm -f core conftest.err conftest.$ac_objext \
  6761. conftest$ac_exeext conftest.$ac_ext
  6762. LDFLAGS="$save_LDFLAGS"
  6763. fi
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6765. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6766. case $host_os in
  6767. rhapsody* | darwin1.[012])
  6768. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6769. darwin1.*)
  6770. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6771. darwin*) # darwin 5.x on
  6772. # if running on 10.5 or later, the deployment target defaults
  6773. # to the OS version, if on x86, and 10.4, the deployment
  6774. # target defaults to 10.4. Don't you love it?
  6775. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6776. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6777. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6778. 10.[012]*)
  6779. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6780. 10.*)
  6781. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6782. esac
  6783. ;;
  6784. esac
  6785. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6786. _lt_dar_single_mod='$single_module'
  6787. fi
  6788. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6789. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6790. else
  6791. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6792. fi
  6793. if test "$DSYMUTIL" != ":"; then
  6794. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6795. else
  6796. _lt_dsymutil=
  6797. fi
  6798. ;;
  6799. esac
  6800. ac_ext=c
  6801. ac_cpp='$CPP $CPPFLAGS'
  6802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6806. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6807. # On Suns, sometimes $CPP names a directory.
  6808. if test -n "$CPP" && test -d "$CPP"; then
  6809. CPP=
  6810. fi
  6811. if test -z "$CPP"; then
  6812. if test "${ac_cv_prog_CPP+set}" = set; then :
  6813. $as_echo_n "(cached) " >&6
  6814. else
  6815. # Double quotes because CPP needs to be expanded
  6816. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6817. do
  6818. ac_preproc_ok=false
  6819. for ac_c_preproc_warn_flag in '' yes
  6820. do
  6821. # Use a header file that comes with gcc, so configuring glibc
  6822. # with a fresh cross-compiler works.
  6823. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6824. # <limits.h> exists even on freestanding compilers.
  6825. # On the NeXT, cc -E runs the code through the compiler's parser,
  6826. # not just through cpp. "Syntax error" is here to catch this case.
  6827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6828. /* end confdefs.h. */
  6829. #ifdef __STDC__
  6830. # include <limits.h>
  6831. #else
  6832. # include <assert.h>
  6833. #endif
  6834. Syntax error
  6835. _ACEOF
  6836. if ac_fn_c_try_cpp "$LINENO"; then :
  6837. else
  6838. # Broken: fails on valid input.
  6839. continue
  6840. fi
  6841. rm -f conftest.err conftest.$ac_ext
  6842. # OK, works on sane cases. Now check whether nonexistent headers
  6843. # can be detected and how.
  6844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6845. /* end confdefs.h. */
  6846. #include <ac_nonexistent.h>
  6847. _ACEOF
  6848. if ac_fn_c_try_cpp "$LINENO"; then :
  6849. # Broken: success on invalid input.
  6850. continue
  6851. else
  6852. # Passes both tests.
  6853. ac_preproc_ok=:
  6854. break
  6855. fi
  6856. rm -f conftest.err conftest.$ac_ext
  6857. done
  6858. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6859. rm -f conftest.err conftest.$ac_ext
  6860. if $ac_preproc_ok; then :
  6861. break
  6862. fi
  6863. done
  6864. ac_cv_prog_CPP=$CPP
  6865. fi
  6866. CPP=$ac_cv_prog_CPP
  6867. else
  6868. ac_cv_prog_CPP=$CPP
  6869. fi
  6870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6871. $as_echo "$CPP" >&6; }
  6872. ac_preproc_ok=false
  6873. for ac_c_preproc_warn_flag in '' yes
  6874. do
  6875. # Use a header file that comes with gcc, so configuring glibc
  6876. # with a fresh cross-compiler works.
  6877. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6878. # <limits.h> exists even on freestanding compilers.
  6879. # On the NeXT, cc -E runs the code through the compiler's parser,
  6880. # not just through cpp. "Syntax error" is here to catch this case.
  6881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6882. /* end confdefs.h. */
  6883. #ifdef __STDC__
  6884. # include <limits.h>
  6885. #else
  6886. # include <assert.h>
  6887. #endif
  6888. Syntax error
  6889. _ACEOF
  6890. if ac_fn_c_try_cpp "$LINENO"; then :
  6891. else
  6892. # Broken: fails on valid input.
  6893. continue
  6894. fi
  6895. rm -f conftest.err conftest.$ac_ext
  6896. # OK, works on sane cases. Now check whether nonexistent headers
  6897. # can be detected and how.
  6898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6899. /* end confdefs.h. */
  6900. #include <ac_nonexistent.h>
  6901. _ACEOF
  6902. if ac_fn_c_try_cpp "$LINENO"; then :
  6903. # Broken: success on invalid input.
  6904. continue
  6905. else
  6906. # Passes both tests.
  6907. ac_preproc_ok=:
  6908. break
  6909. fi
  6910. rm -f conftest.err conftest.$ac_ext
  6911. done
  6912. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6913. rm -f conftest.err conftest.$ac_ext
  6914. if $ac_preproc_ok; then :
  6915. else
  6916. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6917. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6918. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6919. See \`config.log' for more details." "$LINENO" 5; }
  6920. fi
  6921. ac_ext=c
  6922. ac_cpp='$CPP $CPPFLAGS'
  6923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6927. $as_echo_n "checking for ANSI C header files... " >&6; }
  6928. if test "${ac_cv_header_stdc+set}" = set; then :
  6929. $as_echo_n "(cached) " >&6
  6930. else
  6931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6932. /* end confdefs.h. */
  6933. #include <stdlib.h>
  6934. #include <stdarg.h>
  6935. #include <string.h>
  6936. #include <float.h>
  6937. int
  6938. main ()
  6939. {
  6940. ;
  6941. return 0;
  6942. }
  6943. _ACEOF
  6944. if ac_fn_c_try_compile "$LINENO"; then :
  6945. ac_cv_header_stdc=yes
  6946. else
  6947. ac_cv_header_stdc=no
  6948. fi
  6949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6950. if test $ac_cv_header_stdc = yes; then
  6951. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6953. /* end confdefs.h. */
  6954. #include <string.h>
  6955. _ACEOF
  6956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6957. $EGREP "memchr" >/dev/null 2>&1; then :
  6958. else
  6959. ac_cv_header_stdc=no
  6960. fi
  6961. rm -f conftest*
  6962. fi
  6963. if test $ac_cv_header_stdc = yes; then
  6964. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6966. /* end confdefs.h. */
  6967. #include <stdlib.h>
  6968. _ACEOF
  6969. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6970. $EGREP "free" >/dev/null 2>&1; then :
  6971. else
  6972. ac_cv_header_stdc=no
  6973. fi
  6974. rm -f conftest*
  6975. fi
  6976. if test $ac_cv_header_stdc = yes; then
  6977. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6978. if test "$cross_compiling" = yes; then :
  6979. :
  6980. else
  6981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6982. /* end confdefs.h. */
  6983. #include <ctype.h>
  6984. #include <stdlib.h>
  6985. #if ((' ' & 0x0FF) == 0x020)
  6986. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6987. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6988. #else
  6989. # define ISLOWER(c) \
  6990. (('a' <= (c) && (c) <= 'i') \
  6991. || ('j' <= (c) && (c) <= 'r') \
  6992. || ('s' <= (c) && (c) <= 'z'))
  6993. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6994. #endif
  6995. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6996. int
  6997. main ()
  6998. {
  6999. int i;
  7000. for (i = 0; i < 256; i++)
  7001. if (XOR (islower (i), ISLOWER (i))
  7002. || toupper (i) != TOUPPER (i))
  7003. return 2;
  7004. return 0;
  7005. }
  7006. _ACEOF
  7007. if ac_fn_c_try_run "$LINENO"; then :
  7008. else
  7009. ac_cv_header_stdc=no
  7010. fi
  7011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7012. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7013. fi
  7014. fi
  7015. fi
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7017. $as_echo "$ac_cv_header_stdc" >&6; }
  7018. if test $ac_cv_header_stdc = yes; then
  7019. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7020. fi
  7021. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7022. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7023. inttypes.h stdint.h unistd.h
  7024. do :
  7025. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7026. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7027. "
  7028. eval as_val=\$$as_ac_Header
  7029. if test "x$as_val" = x""yes; then :
  7030. cat >>confdefs.h <<_ACEOF
  7031. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7032. _ACEOF
  7033. fi
  7034. done
  7035. for ac_header in dlfcn.h
  7036. do :
  7037. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7038. "
  7039. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7040. cat >>confdefs.h <<_ACEOF
  7041. #define HAVE_DLFCN_H 1
  7042. _ACEOF
  7043. fi
  7044. done
  7045. ac_ext=cpp
  7046. ac_cpp='$CXXCPP $CPPFLAGS'
  7047. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7048. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7049. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7050. if test -z "$CXX"; then
  7051. if test -n "$CCC"; then
  7052. CXX=$CCC
  7053. else
  7054. if test -n "$ac_tool_prefix"; then
  7055. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7056. do
  7057. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7058. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7060. $as_echo_n "checking for $ac_word... " >&6; }
  7061. if test "${ac_cv_prog_CXX+set}" = set; then :
  7062. $as_echo_n "(cached) " >&6
  7063. else
  7064. if test -n "$CXX"; then
  7065. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7066. else
  7067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7068. for as_dir in $PATH
  7069. do
  7070. IFS=$as_save_IFS
  7071. test -z "$as_dir" && as_dir=.
  7072. for ac_exec_ext in '' $ac_executable_extensions; do
  7073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7074. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7076. break 2
  7077. fi
  7078. done
  7079. done
  7080. IFS=$as_save_IFS
  7081. fi
  7082. fi
  7083. CXX=$ac_cv_prog_CXX
  7084. if test -n "$CXX"; then
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  7086. $as_echo "$CXX" >&6; }
  7087. else
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7089. $as_echo "no" >&6; }
  7090. fi
  7091. test -n "$CXX" && break
  7092. done
  7093. fi
  7094. if test -z "$CXX"; then
  7095. ac_ct_CXX=$CXX
  7096. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7097. do
  7098. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7099. set dummy $ac_prog; ac_word=$2
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7101. $as_echo_n "checking for $ac_word... " >&6; }
  7102. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. if test -n "$ac_ct_CXX"; then
  7106. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7107. else
  7108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7109. for as_dir in $PATH
  7110. do
  7111. IFS=$as_save_IFS
  7112. test -z "$as_dir" && as_dir=.
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7115. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7125. if test -n "$ac_ct_CXX"; then
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  7127. $as_echo "$ac_ct_CXX" >&6; }
  7128. else
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. $as_echo "no" >&6; }
  7131. fi
  7132. test -n "$ac_ct_CXX" && break
  7133. done
  7134. if test "x$ac_ct_CXX" = x; then
  7135. CXX="g++"
  7136. else
  7137. case $cross_compiling:$ac_tool_warned in
  7138. yes:)
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7140. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7141. ac_tool_warned=yes ;;
  7142. esac
  7143. CXX=$ac_ct_CXX
  7144. fi
  7145. fi
  7146. fi
  7147. fi
  7148. # Provide some information about the compiler.
  7149. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  7150. set X $ac_compile
  7151. ac_compiler=$2
  7152. for ac_option in --version -v -V -qversion; do
  7153. { { ac_try="$ac_compiler $ac_option >&5"
  7154. case "(($ac_try" in
  7155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7156. *) ac_try_echo=$ac_try;;
  7157. esac
  7158. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7159. $as_echo "$ac_try_echo"; } >&5
  7160. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7161. ac_status=$?
  7162. if test -s conftest.err; then
  7163. sed '10a\
  7164. ... rest of stderr output deleted ...
  7165. 10q' conftest.err >conftest.er1
  7166. cat conftest.er1 >&5
  7167. fi
  7168. rm -f conftest.er1 conftest.err
  7169. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7170. test $ac_status = 0; }
  7171. done
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  7173. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7174. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7178. /* end confdefs.h. */
  7179. int
  7180. main ()
  7181. {
  7182. #ifndef __GNUC__
  7183. choke me
  7184. #endif
  7185. ;
  7186. return 0;
  7187. }
  7188. _ACEOF
  7189. if ac_fn_cxx_try_compile "$LINENO"; then :
  7190. ac_compiler_gnu=yes
  7191. else
  7192. ac_compiler_gnu=no
  7193. fi
  7194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7195. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7196. fi
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7198. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7199. if test $ac_compiler_gnu = yes; then
  7200. GXX=yes
  7201. else
  7202. GXX=
  7203. fi
  7204. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7205. ac_save_CXXFLAGS=$CXXFLAGS
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7207. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7208. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  7209. $as_echo_n "(cached) " >&6
  7210. else
  7211. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7212. ac_cxx_werror_flag=yes
  7213. ac_cv_prog_cxx_g=no
  7214. CXXFLAGS="-g"
  7215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7216. /* end confdefs.h. */
  7217. int
  7218. main ()
  7219. {
  7220. ;
  7221. return 0;
  7222. }
  7223. _ACEOF
  7224. if ac_fn_cxx_try_compile "$LINENO"; then :
  7225. ac_cv_prog_cxx_g=yes
  7226. else
  7227. CXXFLAGS=""
  7228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7229. /* end confdefs.h. */
  7230. int
  7231. main ()
  7232. {
  7233. ;
  7234. return 0;
  7235. }
  7236. _ACEOF
  7237. if ac_fn_cxx_try_compile "$LINENO"; then :
  7238. else
  7239. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7240. CXXFLAGS="-g"
  7241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7242. /* end confdefs.h. */
  7243. int
  7244. main ()
  7245. {
  7246. ;
  7247. return 0;
  7248. }
  7249. _ACEOF
  7250. if ac_fn_cxx_try_compile "$LINENO"; then :
  7251. ac_cv_prog_cxx_g=yes
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7256. fi
  7257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7258. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7259. fi
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7261. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7262. if test "$ac_test_CXXFLAGS" = set; then
  7263. CXXFLAGS=$ac_save_CXXFLAGS
  7264. elif test $ac_cv_prog_cxx_g = yes; then
  7265. if test "$GXX" = yes; then
  7266. CXXFLAGS="-g -O2"
  7267. else
  7268. CXXFLAGS="-g"
  7269. fi
  7270. else
  7271. if test "$GXX" = yes; then
  7272. CXXFLAGS="-O2"
  7273. else
  7274. CXXFLAGS=
  7275. fi
  7276. fi
  7277. ac_ext=c
  7278. ac_cpp='$CPP $CPPFLAGS'
  7279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7282. depcc="$CXX" am_compiler_list=
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7284. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7285. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  7286. $as_echo_n "(cached) " >&6
  7287. else
  7288. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7289. # We make a subdir and do the tests there. Otherwise we can end up
  7290. # making bogus files that we don't know about and never remove. For
  7291. # instance it was reported that on HP-UX the gcc test will end up
  7292. # making a dummy file named `D' -- because `-MD' means `put the output
  7293. # in D'.
  7294. mkdir conftest.dir
  7295. # Copy depcomp to subdir because otherwise we won't find it if we're
  7296. # using a relative directory.
  7297. cp "$am_depcomp" conftest.dir
  7298. cd conftest.dir
  7299. # We will build objects and dependencies in a subdirectory because
  7300. # it helps to detect inapplicable dependency modes. For instance
  7301. # both Tru64's cc and ICC support -MD to output dependencies as a
  7302. # side effect of compilation, but ICC will put the dependencies in
  7303. # the current directory while Tru64 will put them in the object
  7304. # directory.
  7305. mkdir sub
  7306. am_cv_CXX_dependencies_compiler_type=none
  7307. if test "$am_compiler_list" = ""; then
  7308. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7309. fi
  7310. am__universal=false
  7311. case " $depcc " in #(
  7312. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7313. esac
  7314. for depmode in $am_compiler_list; do
  7315. # Setup a source with many dependencies, because some compilers
  7316. # like to wrap large dependency lists on column 80 (with \), and
  7317. # we should not choose a depcomp mode which is confused by this.
  7318. #
  7319. # We need to recreate these files for each test, as the compiler may
  7320. # overwrite some of them when testing with obscure command lines.
  7321. # This happens at least with the AIX C compiler.
  7322. : > sub/conftest.c
  7323. for i in 1 2 3 4 5 6; do
  7324. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7325. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7326. # Solaris 8's {/usr,}/bin/sh.
  7327. touch sub/conftst$i.h
  7328. done
  7329. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7330. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7331. # mode. It turns out that the SunPro C++ compiler does not properly
  7332. # handle `-M -o', and we need to detect this. Also, some Intel
  7333. # versions had trouble with output in subdirs
  7334. am__obj=sub/conftest.${OBJEXT-o}
  7335. am__minus_obj="-o $am__obj"
  7336. case $depmode in
  7337. gcc)
  7338. # This depmode causes a compiler race in universal mode.
  7339. test "$am__universal" = false || continue
  7340. ;;
  7341. nosideeffect)
  7342. # after this tag, mechanisms are not by side-effect, so they'll
  7343. # only be used when explicitly requested
  7344. if test "x$enable_dependency_tracking" = xyes; then
  7345. continue
  7346. else
  7347. break
  7348. fi
  7349. ;;
  7350. msvisualcpp | msvcmsys)
  7351. # This compiler won't grok `-c -o', but also, the minuso test has
  7352. # not run yet. These depmodes are late enough in the game, and
  7353. # so weak that their functioning should not be impacted.
  7354. am__obj=conftest.${OBJEXT-o}
  7355. am__minus_obj=
  7356. ;;
  7357. none) break ;;
  7358. esac
  7359. if depmode=$depmode \
  7360. source=sub/conftest.c object=$am__obj \
  7361. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7362. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7363. >/dev/null 2>conftest.err &&
  7364. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7365. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7366. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7367. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7368. # icc doesn't choke on unknown options, it will just issue warnings
  7369. # or remarks (even with -Werror). So we grep stderr for any message
  7370. # that says an option was ignored or not supported.
  7371. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7372. # icc: Command line warning: ignoring option '-M'; no argument required
  7373. # The diagnosis changed in icc 8.0:
  7374. # icc: Command line remark: option '-MP' not supported
  7375. if (grep 'ignoring option' conftest.err ||
  7376. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7377. am_cv_CXX_dependencies_compiler_type=$depmode
  7378. break
  7379. fi
  7380. fi
  7381. done
  7382. cd ..
  7383. rm -rf conftest.dir
  7384. else
  7385. am_cv_CXX_dependencies_compiler_type=none
  7386. fi
  7387. fi
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7389. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7390. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7391. if
  7392. test "x$enable_dependency_tracking" != xno \
  7393. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7394. am__fastdepCXX_TRUE=
  7395. am__fastdepCXX_FALSE='#'
  7396. else
  7397. am__fastdepCXX_TRUE='#'
  7398. am__fastdepCXX_FALSE=
  7399. fi
  7400. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7401. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7402. (test "X$CXX" != "Xg++"))) ; then
  7403. ac_ext=cpp
  7404. ac_cpp='$CXXCPP $CPPFLAGS'
  7405. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7406. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7407. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  7409. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7410. if test -z "$CXXCPP"; then
  7411. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  7412. $as_echo_n "(cached) " >&6
  7413. else
  7414. # Double quotes because CXXCPP needs to be expanded
  7415. for CXXCPP in "$CXX -E" "/lib/cpp"
  7416. do
  7417. ac_preproc_ok=false
  7418. for ac_cxx_preproc_warn_flag in '' yes
  7419. do
  7420. # Use a header file that comes with gcc, so configuring glibc
  7421. # with a fresh cross-compiler works.
  7422. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7423. # <limits.h> exists even on freestanding compilers.
  7424. # On the NeXT, cc -E runs the code through the compiler's parser,
  7425. # not just through cpp. "Syntax error" is here to catch this case.
  7426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7427. /* end confdefs.h. */
  7428. #ifdef __STDC__
  7429. # include <limits.h>
  7430. #else
  7431. # include <assert.h>
  7432. #endif
  7433. Syntax error
  7434. _ACEOF
  7435. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7436. else
  7437. # Broken: fails on valid input.
  7438. continue
  7439. fi
  7440. rm -f conftest.err conftest.$ac_ext
  7441. # OK, works on sane cases. Now check whether nonexistent headers
  7442. # can be detected and how.
  7443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7444. /* end confdefs.h. */
  7445. #include <ac_nonexistent.h>
  7446. _ACEOF
  7447. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7448. # Broken: success on invalid input.
  7449. continue
  7450. else
  7451. # Passes both tests.
  7452. ac_preproc_ok=:
  7453. break
  7454. fi
  7455. rm -f conftest.err conftest.$ac_ext
  7456. done
  7457. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7458. rm -f conftest.err conftest.$ac_ext
  7459. if $ac_preproc_ok; then :
  7460. break
  7461. fi
  7462. done
  7463. ac_cv_prog_CXXCPP=$CXXCPP
  7464. fi
  7465. CXXCPP=$ac_cv_prog_CXXCPP
  7466. else
  7467. ac_cv_prog_CXXCPP=$CXXCPP
  7468. fi
  7469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7470. $as_echo "$CXXCPP" >&6; }
  7471. ac_preproc_ok=false
  7472. for ac_cxx_preproc_warn_flag in '' yes
  7473. do
  7474. # Use a header file that comes with gcc, so configuring glibc
  7475. # with a fresh cross-compiler works.
  7476. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7477. # <limits.h> exists even on freestanding compilers.
  7478. # On the NeXT, cc -E runs the code through the compiler's parser,
  7479. # not just through cpp. "Syntax error" is here to catch this case.
  7480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7481. /* end confdefs.h. */
  7482. #ifdef __STDC__
  7483. # include <limits.h>
  7484. #else
  7485. # include <assert.h>
  7486. #endif
  7487. Syntax error
  7488. _ACEOF
  7489. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7490. else
  7491. # Broken: fails on valid input.
  7492. continue
  7493. fi
  7494. rm -f conftest.err conftest.$ac_ext
  7495. # OK, works on sane cases. Now check whether nonexistent headers
  7496. # can be detected and how.
  7497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7498. /* end confdefs.h. */
  7499. #include <ac_nonexistent.h>
  7500. _ACEOF
  7501. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7502. # Broken: success on invalid input.
  7503. continue
  7504. else
  7505. # Passes both tests.
  7506. ac_preproc_ok=:
  7507. break
  7508. fi
  7509. rm -f conftest.err conftest.$ac_ext
  7510. done
  7511. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7512. rm -f conftest.err conftest.$ac_ext
  7513. if $ac_preproc_ok; then :
  7514. else
  7515. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7516. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7517. _lt_caught_CXX_error=yes; }
  7518. fi
  7519. ac_ext=c
  7520. ac_cpp='$CPP $CPPFLAGS'
  7521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7524. else
  7525. _lt_caught_CXX_error=yes
  7526. fi
  7527. # Set options
  7528. enable_dlopen=no
  7529. enable_win32_dll=no
  7530. # Check whether --enable-shared was given.
  7531. if test "${enable_shared+set}" = set; then :
  7532. enableval=$enable_shared; p=${PACKAGE-default}
  7533. case $enableval in
  7534. yes) enable_shared=yes ;;
  7535. no) enable_shared=no ;;
  7536. *)
  7537. enable_shared=no
  7538. # Look at the argument we got. We use all the common list separators.
  7539. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7540. for pkg in $enableval; do
  7541. IFS="$lt_save_ifs"
  7542. if test "X$pkg" = "X$p"; then
  7543. enable_shared=yes
  7544. fi
  7545. done
  7546. IFS="$lt_save_ifs"
  7547. ;;
  7548. esac
  7549. else
  7550. enable_shared=yes
  7551. fi
  7552. # Check whether --with-pic was given.
  7553. if test "${with_pic+set}" = set; then :
  7554. withval=$with_pic; pic_mode="$withval"
  7555. else
  7556. pic_mode=default
  7557. fi
  7558. test -z "$pic_mode" && pic_mode=default
  7559. # Check whether --enable-fast-install was given.
  7560. if test "${enable_fast_install+set}" = set; then :
  7561. enableval=$enable_fast_install; p=${PACKAGE-default}
  7562. case $enableval in
  7563. yes) enable_fast_install=yes ;;
  7564. no) enable_fast_install=no ;;
  7565. *)
  7566. enable_fast_install=no
  7567. # Look at the argument we got. We use all the common list separators.
  7568. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7569. for pkg in $enableval; do
  7570. IFS="$lt_save_ifs"
  7571. if test "X$pkg" = "X$p"; then
  7572. enable_fast_install=yes
  7573. fi
  7574. done
  7575. IFS="$lt_save_ifs"
  7576. ;;
  7577. esac
  7578. else
  7579. enable_fast_install=yes
  7580. fi
  7581. # This can be used to rebuild libtool when needed
  7582. LIBTOOL_DEPS="$ltmain"
  7583. # Always use our own libtool.
  7584. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7585. test -z "$LN_S" && LN_S="ln -s"
  7586. if test -n "${ZSH_VERSION+set}" ; then
  7587. setopt NO_GLOB_SUBST
  7588. fi
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7590. $as_echo_n "checking for objdir... " >&6; }
  7591. if test "${lt_cv_objdir+set}" = set; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. rm -f .libs 2>/dev/null
  7595. mkdir .libs 2>/dev/null
  7596. if test -d .libs; then
  7597. lt_cv_objdir=.libs
  7598. else
  7599. # MS-DOS does not allow filenames that begin with a dot.
  7600. lt_cv_objdir=_libs
  7601. fi
  7602. rmdir .libs 2>/dev/null
  7603. fi
  7604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7605. $as_echo "$lt_cv_objdir" >&6; }
  7606. objdir=$lt_cv_objdir
  7607. cat >>confdefs.h <<_ACEOF
  7608. #define LT_OBJDIR "$lt_cv_objdir/"
  7609. _ACEOF
  7610. case $host_os in
  7611. aix3*)
  7612. # AIX sometimes has problems with the GCC collect2 program. For some
  7613. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7614. # vanish in a puff of smoke.
  7615. if test "X${COLLECT_NAMES+set}" != Xset; then
  7616. COLLECT_NAMES=
  7617. export COLLECT_NAMES
  7618. fi
  7619. ;;
  7620. esac
  7621. # Sed substitution that helps us do robust quoting. It backslashifies
  7622. # metacharacters that are still active within double-quoted strings.
  7623. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7624. # Same as above, but do not quote variable references.
  7625. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7626. # Sed substitution to delay expansion of an escaped shell variable in a
  7627. # double_quote_subst'ed string.
  7628. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7629. # Sed substitution to delay expansion of an escaped single quote.
  7630. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7631. # Sed substitution to avoid accidental globbing in evaled expressions
  7632. no_glob_subst='s/\*/\\\*/g'
  7633. # Global variables:
  7634. ofile=libtool
  7635. can_build_shared=yes
  7636. # All known linkers require a `.a' archive for static linking (except MSVC,
  7637. # which needs '.lib').
  7638. libext=a
  7639. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7640. old_CC="$CC"
  7641. old_CFLAGS="$CFLAGS"
  7642. # Set sane defaults for various variables
  7643. test -z "$CC" && CC=cc
  7644. test -z "$LTCC" && LTCC=$CC
  7645. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7646. test -z "$LD" && LD=ld
  7647. test -z "$ac_objext" && ac_objext=o
  7648. for cc_temp in $compiler""; do
  7649. case $cc_temp in
  7650. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7651. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7652. \-*) ;;
  7653. *) break;;
  7654. esac
  7655. done
  7656. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7657. # Only perform the check for file, if the check method requires it
  7658. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7659. case $deplibs_check_method in
  7660. file_magic*)
  7661. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7663. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7664. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7665. $as_echo_n "(cached) " >&6
  7666. else
  7667. case $MAGIC_CMD in
  7668. [\\/*] | ?:[\\/]*)
  7669. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7670. ;;
  7671. *)
  7672. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7673. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7674. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7675. for ac_dir in $ac_dummy; do
  7676. IFS="$lt_save_ifs"
  7677. test -z "$ac_dir" && ac_dir=.
  7678. if test -f $ac_dir/${ac_tool_prefix}file; then
  7679. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7680. if test -n "$file_magic_test_file"; then
  7681. case $deplibs_check_method in
  7682. "file_magic "*)
  7683. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7684. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7685. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7686. $EGREP "$file_magic_regex" > /dev/null; then
  7687. :
  7688. else
  7689. cat <<_LT_EOF 1>&2
  7690. *** Warning: the command libtool uses to detect shared libraries,
  7691. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7692. *** The result is that libtool may fail to recognize shared libraries
  7693. *** as such. This will affect the creation of libtool libraries that
  7694. *** depend on shared libraries, but programs linked with such libtool
  7695. *** libraries will work regardless of this problem. Nevertheless, you
  7696. *** may want to report the problem to your system manager and/or to
  7697. *** [email protected]
  7698. _LT_EOF
  7699. fi ;;
  7700. esac
  7701. fi
  7702. break
  7703. fi
  7704. done
  7705. IFS="$lt_save_ifs"
  7706. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7707. ;;
  7708. esac
  7709. fi
  7710. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7711. if test -n "$MAGIC_CMD"; then
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7713. $as_echo "$MAGIC_CMD" >&6; }
  7714. else
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7716. $as_echo "no" >&6; }
  7717. fi
  7718. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7719. if test -n "$ac_tool_prefix"; then
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7721. $as_echo_n "checking for file... " >&6; }
  7722. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7723. $as_echo_n "(cached) " >&6
  7724. else
  7725. case $MAGIC_CMD in
  7726. [\\/*] | ?:[\\/]*)
  7727. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7728. ;;
  7729. *)
  7730. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7731. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7732. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7733. for ac_dir in $ac_dummy; do
  7734. IFS="$lt_save_ifs"
  7735. test -z "$ac_dir" && ac_dir=.
  7736. if test -f $ac_dir/file; then
  7737. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7738. if test -n "$file_magic_test_file"; then
  7739. case $deplibs_check_method in
  7740. "file_magic "*)
  7741. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7742. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7743. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7744. $EGREP "$file_magic_regex" > /dev/null; then
  7745. :
  7746. else
  7747. cat <<_LT_EOF 1>&2
  7748. *** Warning: the command libtool uses to detect shared libraries,
  7749. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7750. *** The result is that libtool may fail to recognize shared libraries
  7751. *** as such. This will affect the creation of libtool libraries that
  7752. *** depend on shared libraries, but programs linked with such libtool
  7753. *** libraries will work regardless of this problem. Nevertheless, you
  7754. *** may want to report the problem to your system manager and/or to
  7755. *** [email protected]
  7756. _LT_EOF
  7757. fi ;;
  7758. esac
  7759. fi
  7760. break
  7761. fi
  7762. done
  7763. IFS="$lt_save_ifs"
  7764. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7765. ;;
  7766. esac
  7767. fi
  7768. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7769. if test -n "$MAGIC_CMD"; then
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7771. $as_echo "$MAGIC_CMD" >&6; }
  7772. else
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7774. $as_echo "no" >&6; }
  7775. fi
  7776. else
  7777. MAGIC_CMD=:
  7778. fi
  7779. fi
  7780. fi
  7781. ;;
  7782. esac
  7783. # Use C for the default configuration in the libtool script
  7784. lt_save_CC="$CC"
  7785. ac_ext=c
  7786. ac_cpp='$CPP $CPPFLAGS'
  7787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7790. # Source file extension for C test sources.
  7791. ac_ext=c
  7792. # Object file extension for compiled C test sources.
  7793. objext=o
  7794. objext=$objext
  7795. # Code to be used in simple compile tests
  7796. lt_simple_compile_test_code="int some_variable = 0;"
  7797. # Code to be used in simple link tests
  7798. lt_simple_link_test_code='int main(){return(0);}'
  7799. # If no C compiler was specified, use CC.
  7800. LTCC=${LTCC-"$CC"}
  7801. # If no C compiler flags were specified, use CFLAGS.
  7802. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7803. # Allow CC to be a program name with arguments.
  7804. compiler=$CC
  7805. # Save the default compiler, since it gets overwritten when the other
  7806. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7807. compiler_DEFAULT=$CC
  7808. # save warnings/boilerplate of simple test code
  7809. ac_outfile=conftest.$ac_objext
  7810. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7811. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7812. _lt_compiler_boilerplate=`cat conftest.err`
  7813. $RM conftest*
  7814. ac_outfile=conftest.$ac_objext
  7815. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7816. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7817. _lt_linker_boilerplate=`cat conftest.err`
  7818. $RM -r conftest*
  7819. ## CAVEAT EMPTOR:
  7820. ## There is no encapsulation within the following macros, do not change
  7821. ## the running order or otherwise move them around unless you know exactly
  7822. ## what you are doing...
  7823. if test -n "$compiler"; then
  7824. lt_prog_compiler_no_builtin_flag=
  7825. if test "$GCC" = yes; then
  7826. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7828. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7829. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7830. $as_echo_n "(cached) " >&6
  7831. else
  7832. lt_cv_prog_compiler_rtti_exceptions=no
  7833. ac_outfile=conftest.$ac_objext
  7834. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7835. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7836. # Insert the option either (1) after the last *FLAGS variable, or
  7837. # (2) before a word containing "conftest.", or (3) at the end.
  7838. # Note that $ac_compile itself does not contain backslashes and begins
  7839. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7840. # The option is referenced via a variable to avoid confusing sed.
  7841. lt_compile=`echo "$ac_compile" | $SED \
  7842. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7843. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7844. -e 's:$: $lt_compiler_flag:'`
  7845. (eval echo "\"\$as_me:8912: $lt_compile\"" >&5)
  7846. (eval "$lt_compile" 2>conftest.err)
  7847. ac_status=$?
  7848. cat conftest.err >&5
  7849. echo "$as_me:8916: \$? = $ac_status" >&5
  7850. if (exit $ac_status) && test -s "$ac_outfile"; then
  7851. # The compiler can only warn and ignore the option if not recognized
  7852. # So say no if there are warnings other than the usual output.
  7853. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7854. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7855. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7856. lt_cv_prog_compiler_rtti_exceptions=yes
  7857. fi
  7858. fi
  7859. $RM conftest*
  7860. fi
  7861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7862. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7863. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7864. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7865. else
  7866. :
  7867. fi
  7868. fi
  7869. lt_prog_compiler_wl=
  7870. lt_prog_compiler_pic=
  7871. lt_prog_compiler_static=
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7873. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7874. if test "$GCC" = yes; then
  7875. lt_prog_compiler_wl='-Wl,'
  7876. lt_prog_compiler_static='-static'
  7877. case $host_os in
  7878. aix*)
  7879. # All AIX code is PIC.
  7880. if test "$host_cpu" = ia64; then
  7881. # AIX 5 now supports IA64 processor
  7882. lt_prog_compiler_static='-Bstatic'
  7883. fi
  7884. ;;
  7885. amigaos*)
  7886. case $host_cpu in
  7887. powerpc)
  7888. # see comment about AmigaOS4 .so support
  7889. lt_prog_compiler_pic='-fPIC'
  7890. ;;
  7891. m68k)
  7892. # FIXME: we need at least 68020 code to build shared libraries, but
  7893. # adding the `-m68020' flag to GCC prevents building anything better,
  7894. # like `-m68040'.
  7895. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7896. ;;
  7897. esac
  7898. ;;
  7899. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7900. # PIC is the default for these OSes.
  7901. ;;
  7902. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7903. # This hack is so that the source file can tell whether it is being
  7904. # built for inclusion in a dll (and should export symbols for example).
  7905. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7906. # (--disable-auto-import) libraries
  7907. lt_prog_compiler_pic='-DDLL_EXPORT'
  7908. ;;
  7909. darwin* | rhapsody*)
  7910. # PIC is the default on this platform
  7911. # Common symbols not allowed in MH_DYLIB files
  7912. lt_prog_compiler_pic='-fno-common'
  7913. ;;
  7914. hpux*)
  7915. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7916. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7917. # sets the default TLS model and affects inlining.
  7918. case $host_cpu in
  7919. hppa*64*)
  7920. # +Z the default
  7921. ;;
  7922. *)
  7923. lt_prog_compiler_pic='-fPIC'
  7924. ;;
  7925. esac
  7926. ;;
  7927. interix[3-9]*)
  7928. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7929. # Instead, we relocate shared libraries at runtime.
  7930. ;;
  7931. msdosdjgpp*)
  7932. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7933. # on systems that don't support them.
  7934. lt_prog_compiler_can_build_shared=no
  7935. enable_shared=no
  7936. ;;
  7937. *nto* | *qnx*)
  7938. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7939. # it will coredump.
  7940. lt_prog_compiler_pic='-fPIC -shared'
  7941. ;;
  7942. sysv4*MP*)
  7943. if test -d /usr/nec; then
  7944. lt_prog_compiler_pic=-Kconform_pic
  7945. fi
  7946. ;;
  7947. *)
  7948. lt_prog_compiler_pic='-fPIC'
  7949. ;;
  7950. esac
  7951. else
  7952. # PORTME Check for flag to pass linker flags through the system compiler.
  7953. case $host_os in
  7954. aix*)
  7955. lt_prog_compiler_wl='-Wl,'
  7956. if test "$host_cpu" = ia64; then
  7957. # AIX 5 now supports IA64 processor
  7958. lt_prog_compiler_static='-Bstatic'
  7959. else
  7960. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7961. fi
  7962. ;;
  7963. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7964. # This hack is so that the source file can tell whether it is being
  7965. # built for inclusion in a dll (and should export symbols for example).
  7966. lt_prog_compiler_pic='-DDLL_EXPORT'
  7967. ;;
  7968. hpux9* | hpux10* | hpux11*)
  7969. lt_prog_compiler_wl='-Wl,'
  7970. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7971. # not for PA HP-UX.
  7972. case $host_cpu in
  7973. hppa*64*|ia64*)
  7974. # +Z the default
  7975. ;;
  7976. *)
  7977. lt_prog_compiler_pic='+Z'
  7978. ;;
  7979. esac
  7980. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7981. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7982. ;;
  7983. irix5* | irix6* | nonstopux*)
  7984. lt_prog_compiler_wl='-Wl,'
  7985. # PIC (with -KPIC) is the default.
  7986. lt_prog_compiler_static='-non_shared'
  7987. ;;
  7988. linux* | k*bsd*-gnu)
  7989. case $cc_basename in
  7990. # old Intel for x86_64 which still supported -KPIC.
  7991. ecc*)
  7992. lt_prog_compiler_wl='-Wl,'
  7993. lt_prog_compiler_pic='-KPIC'
  7994. lt_prog_compiler_static='-static'
  7995. ;;
  7996. # icc used to be incompatible with GCC.
  7997. # ICC 10 doesn't accept -KPIC any more.
  7998. icc* | ifort*)
  7999. lt_prog_compiler_wl='-Wl,'
  8000. lt_prog_compiler_pic='-fPIC'
  8001. lt_prog_compiler_static='-static'
  8002. ;;
  8003. # Lahey Fortran 8.1.
  8004. lf95*)
  8005. lt_prog_compiler_wl='-Wl,'
  8006. lt_prog_compiler_pic='--shared'
  8007. lt_prog_compiler_static='--static'
  8008. ;;
  8009. pgcc* | pgf77* | pgf90* | pgf95*)
  8010. # Portland Group compilers (*not* the Pentium gcc compiler,
  8011. # which looks to be a dead project)
  8012. lt_prog_compiler_wl='-Wl,'
  8013. lt_prog_compiler_pic='-fpic'
  8014. lt_prog_compiler_static='-Bstatic'
  8015. ;;
  8016. ccc*)
  8017. lt_prog_compiler_wl='-Wl,'
  8018. # All Alpha code is PIC.
  8019. lt_prog_compiler_static='-non_shared'
  8020. ;;
  8021. xl*)
  8022. # IBM XL C 8.0/Fortran 10.1 on PPC
  8023. lt_prog_compiler_wl='-Wl,'
  8024. lt_prog_compiler_pic='-qpic'
  8025. lt_prog_compiler_static='-qstaticlink'
  8026. ;;
  8027. *)
  8028. case `$CC -V 2>&1 | sed 5q` in
  8029. *Sun\ C*)
  8030. # Sun C 5.9
  8031. lt_prog_compiler_pic='-KPIC'
  8032. lt_prog_compiler_static='-Bstatic'
  8033. lt_prog_compiler_wl='-Wl,'
  8034. ;;
  8035. *Sun\ F*)
  8036. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8037. lt_prog_compiler_pic='-KPIC'
  8038. lt_prog_compiler_static='-Bstatic'
  8039. lt_prog_compiler_wl=''
  8040. ;;
  8041. esac
  8042. ;;
  8043. esac
  8044. ;;
  8045. newsos6)
  8046. lt_prog_compiler_pic='-KPIC'
  8047. lt_prog_compiler_static='-Bstatic'
  8048. ;;
  8049. *nto* | *qnx*)
  8050. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8051. # it will coredump.
  8052. lt_prog_compiler_pic='-fPIC -shared'
  8053. ;;
  8054. osf3* | osf4* | osf5*)
  8055. lt_prog_compiler_wl='-Wl,'
  8056. # All OSF/1 code is PIC.
  8057. lt_prog_compiler_static='-non_shared'
  8058. ;;
  8059. rdos*)
  8060. lt_prog_compiler_static='-non_shared'
  8061. ;;
  8062. solaris*)
  8063. lt_prog_compiler_pic='-KPIC'
  8064. lt_prog_compiler_static='-Bstatic'
  8065. case $cc_basename in
  8066. f77* | f90* | f95*)
  8067. lt_prog_compiler_wl='-Qoption ld ';;
  8068. *)
  8069. lt_prog_compiler_wl='-Wl,';;
  8070. esac
  8071. ;;
  8072. sunos4*)
  8073. lt_prog_compiler_wl='-Qoption ld '
  8074. lt_prog_compiler_pic='-PIC'
  8075. lt_prog_compiler_static='-Bstatic'
  8076. ;;
  8077. sysv4 | sysv4.2uw2* | sysv4.3*)
  8078. lt_prog_compiler_wl='-Wl,'
  8079. lt_prog_compiler_pic='-KPIC'
  8080. lt_prog_compiler_static='-Bstatic'
  8081. ;;
  8082. sysv4*MP*)
  8083. if test -d /usr/nec ;then
  8084. lt_prog_compiler_pic='-Kconform_pic'
  8085. lt_prog_compiler_static='-Bstatic'
  8086. fi
  8087. ;;
  8088. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. lt_prog_compiler_pic='-KPIC'
  8091. lt_prog_compiler_static='-Bstatic'
  8092. ;;
  8093. unicos*)
  8094. lt_prog_compiler_wl='-Wl,'
  8095. lt_prog_compiler_can_build_shared=no
  8096. ;;
  8097. uts4*)
  8098. lt_prog_compiler_pic='-pic'
  8099. lt_prog_compiler_static='-Bstatic'
  8100. ;;
  8101. *)
  8102. lt_prog_compiler_can_build_shared=no
  8103. ;;
  8104. esac
  8105. fi
  8106. case $host_os in
  8107. # For platforms which do not support PIC, -DPIC is meaningless:
  8108. *djgpp*)
  8109. lt_prog_compiler_pic=
  8110. ;;
  8111. *)
  8112. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8113. ;;
  8114. esac
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8116. $as_echo "$lt_prog_compiler_pic" >&6; }
  8117. #
  8118. # Check to make sure the PIC flag actually works.
  8119. #
  8120. if test -n "$lt_prog_compiler_pic"; then
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8122. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8123. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  8124. $as_echo_n "(cached) " >&6
  8125. else
  8126. lt_cv_prog_compiler_pic_works=no
  8127. ac_outfile=conftest.$ac_objext
  8128. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8129. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8130. # Insert the option either (1) after the last *FLAGS variable, or
  8131. # (2) before a word containing "conftest.", or (3) at the end.
  8132. # Note that $ac_compile itself does not contain backslashes and begins
  8133. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8134. # The option is referenced via a variable to avoid confusing sed.
  8135. lt_compile=`echo "$ac_compile" | $SED \
  8136. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8137. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8138. -e 's:$: $lt_compiler_flag:'`
  8139. (eval echo "\"\$as_me:9251: $lt_compile\"" >&5)
  8140. (eval "$lt_compile" 2>conftest.err)
  8141. ac_status=$?
  8142. cat conftest.err >&5
  8143. echo "$as_me:9255: \$? = $ac_status" >&5
  8144. if (exit $ac_status) && test -s "$ac_outfile"; then
  8145. # The compiler can only warn and ignore the option if not recognized
  8146. # So say no if there are warnings other than the usual output.
  8147. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8148. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8149. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8150. lt_cv_prog_compiler_pic_works=yes
  8151. fi
  8152. fi
  8153. $RM conftest*
  8154. fi
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8156. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8157. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8158. case $lt_prog_compiler_pic in
  8159. "" | " "*) ;;
  8160. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8161. esac
  8162. else
  8163. lt_prog_compiler_pic=
  8164. lt_prog_compiler_can_build_shared=no
  8165. fi
  8166. fi
  8167. #
  8168. # Check to make sure the static flag actually works.
  8169. #
  8170. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8172. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8173. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  8174. $as_echo_n "(cached) " >&6
  8175. else
  8176. lt_cv_prog_compiler_static_works=no
  8177. save_LDFLAGS="$LDFLAGS"
  8178. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8179. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8180. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8181. # The linker can only warn and ignore the option if not recognized
  8182. # So say no if there are warnings
  8183. if test -s conftest.err; then
  8184. # Append any errors to the config.log.
  8185. cat conftest.err 1>&5
  8186. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8188. if diff conftest.exp conftest.er2 >/dev/null; then
  8189. lt_cv_prog_compiler_static_works=yes
  8190. fi
  8191. else
  8192. lt_cv_prog_compiler_static_works=yes
  8193. fi
  8194. fi
  8195. $RM -r conftest*
  8196. LDFLAGS="$save_LDFLAGS"
  8197. fi
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8199. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8200. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8201. :
  8202. else
  8203. lt_prog_compiler_static=
  8204. fi
  8205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8206. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8207. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8208. $as_echo_n "(cached) " >&6
  8209. else
  8210. lt_cv_prog_compiler_c_o=no
  8211. $RM -r conftest 2>/dev/null
  8212. mkdir conftest
  8213. cd conftest
  8214. mkdir out
  8215. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8216. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8217. # Insert the option either (1) after the last *FLAGS variable, or
  8218. # (2) before a word containing "conftest.", or (3) at the end.
  8219. # Note that $ac_compile itself does not contain backslashes and begins
  8220. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8221. lt_compile=`echo "$ac_compile" | $SED \
  8222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8224. -e 's:$: $lt_compiler_flag:'`
  8225. (eval echo "\"\$as_me:9356: $lt_compile\"" >&5)
  8226. (eval "$lt_compile" 2>out/conftest.err)
  8227. ac_status=$?
  8228. cat out/conftest.err >&5
  8229. echo "$as_me:9360: \$? = $ac_status" >&5
  8230. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8231. then
  8232. # The compiler can only warn and ignore the option if not recognized
  8233. # So say no if there are warnings
  8234. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8235. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8236. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8237. lt_cv_prog_compiler_c_o=yes
  8238. fi
  8239. fi
  8240. chmod u+w . 2>&5
  8241. $RM conftest*
  8242. # SGI C++ compiler will create directory out/ii_files/ for
  8243. # template instantiation
  8244. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8245. $RM out/* && rmdir out
  8246. cd ..
  8247. $RM -r conftest
  8248. $RM conftest*
  8249. fi
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8251. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8253. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8254. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8255. $as_echo_n "(cached) " >&6
  8256. else
  8257. lt_cv_prog_compiler_c_o=no
  8258. $RM -r conftest 2>/dev/null
  8259. mkdir conftest
  8260. cd conftest
  8261. mkdir out
  8262. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8263. lt_compiler_flag="-o out/conftest2.$ac_objext"
  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. lt_compile=`echo "$ac_compile" | $SED \
  8269. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8270. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8271. -e 's:$: $lt_compiler_flag:'`
  8272. (eval echo "\"\$as_me:9411: $lt_compile\"" >&5)
  8273. (eval "$lt_compile" 2>out/conftest.err)
  8274. ac_status=$?
  8275. cat out/conftest.err >&5
  8276. echo "$as_me:9415: \$? = $ac_status" >&5
  8277. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8278. then
  8279. # The compiler can only warn and ignore the option if not recognized
  8280. # So say no if there are warnings
  8281. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8282. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8283. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8284. lt_cv_prog_compiler_c_o=yes
  8285. fi
  8286. fi
  8287. chmod u+w . 2>&5
  8288. $RM conftest*
  8289. # SGI C++ compiler will create directory out/ii_files/ for
  8290. # template instantiation
  8291. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8292. $RM out/* && rmdir out
  8293. cd ..
  8294. $RM -r conftest
  8295. $RM conftest*
  8296. fi
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8298. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8299. hard_links="nottested"
  8300. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8301. # do not overwrite the value of need_locks provided by the user
  8302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8303. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8304. hard_links=yes
  8305. $RM conftest*
  8306. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8307. touch conftest.a
  8308. ln conftest.a conftest.b 2>&5 || hard_links=no
  8309. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8311. $as_echo "$hard_links" >&6; }
  8312. if test "$hard_links" = no; then
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8314. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8315. need_locks=warn
  8316. fi
  8317. else
  8318. need_locks=no
  8319. fi
  8320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8321. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8322. runpath_var=
  8323. allow_undefined_flag=
  8324. always_export_symbols=no
  8325. archive_cmds=
  8326. archive_expsym_cmds=
  8327. compiler_needs_object=no
  8328. enable_shared_with_static_runtimes=no
  8329. export_dynamic_flag_spec=
  8330. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8331. hardcode_automatic=no
  8332. hardcode_direct=no
  8333. hardcode_direct_absolute=no
  8334. hardcode_libdir_flag_spec=
  8335. hardcode_libdir_flag_spec_ld=
  8336. hardcode_libdir_separator=
  8337. hardcode_minus_L=no
  8338. hardcode_shlibpath_var=unsupported
  8339. inherit_rpath=no
  8340. link_all_deplibs=unknown
  8341. module_cmds=
  8342. module_expsym_cmds=
  8343. old_archive_from_new_cmds=
  8344. old_archive_from_expsyms_cmds=
  8345. thread_safe_flag_spec=
  8346. whole_archive_flag_spec=
  8347. # include_expsyms should be a list of space-separated symbols to be *always*
  8348. # included in the symbol list
  8349. include_expsyms=
  8350. # exclude_expsyms can be an extended regexp of symbols to exclude
  8351. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8352. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8353. # as well as any symbol that contains `d'.
  8354. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8355. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8356. # platforms (ab)use it in PIC code, but their linkers get confused if
  8357. # the symbol is explicitly referenced. Since portable code cannot
  8358. # rely on this symbol name, it's probably fine to never include it in
  8359. # preloaded symbol tables.
  8360. # Exclude shared library initialization/finalization symbols.
  8361. extract_expsyms_cmds=
  8362. case $host_os in
  8363. cygwin* | mingw* | pw32* | cegcc*)
  8364. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8365. # When not using gcc, we currently assume that we are using
  8366. # Microsoft Visual C++.
  8367. if test "$GCC" != yes; then
  8368. with_gnu_ld=no
  8369. fi
  8370. ;;
  8371. interix*)
  8372. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8373. with_gnu_ld=yes
  8374. ;;
  8375. openbsd*)
  8376. with_gnu_ld=no
  8377. ;;
  8378. esac
  8379. ld_shlibs=yes
  8380. if test "$with_gnu_ld" = yes; then
  8381. # If archive_cmds runs LD, not CC, wlarc should be empty
  8382. wlarc='${wl}'
  8383. # Set some defaults for GNU ld with shared library support. These
  8384. # are reset later if shared libraries are not supported. Putting them
  8385. # here allows them to be overridden if necessary.
  8386. runpath_var=LD_RUN_PATH
  8387. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8388. export_dynamic_flag_spec='${wl}--export-dynamic'
  8389. # ancient GNU ld didn't support --whole-archive et. al.
  8390. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8391. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8392. else
  8393. whole_archive_flag_spec=
  8394. fi
  8395. supports_anon_versioning=no
  8396. case `$LD -v 2>&1` in
  8397. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8398. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8399. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8400. *\ 2.11.*) ;; # other 2.11 versions
  8401. *) supports_anon_versioning=yes ;;
  8402. esac
  8403. # See if GNU ld supports shared libraries.
  8404. case $host_os in
  8405. aix[3-9]*)
  8406. # On AIX/PPC, the GNU linker is very broken
  8407. if test "$host_cpu" != ia64; then
  8408. ld_shlibs=no
  8409. cat <<_LT_EOF 1>&2
  8410. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8411. *** to be unable to reliably create shared libraries on AIX.
  8412. *** Therefore, libtool is disabling shared libraries support. If you
  8413. *** really care for shared libraries, you may want to modify your PATH
  8414. *** so that a non-GNU linker is found, and then restart.
  8415. _LT_EOF
  8416. fi
  8417. ;;
  8418. amigaos*)
  8419. case $host_cpu in
  8420. powerpc)
  8421. # see comment about AmigaOS4 .so support
  8422. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8423. archive_expsym_cmds=''
  8424. ;;
  8425. m68k)
  8426. 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)'
  8427. hardcode_libdir_flag_spec='-L$libdir'
  8428. hardcode_minus_L=yes
  8429. ;;
  8430. esac
  8431. ;;
  8432. beos*)
  8433. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8434. allow_undefined_flag=unsupported
  8435. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8436. # support --undefined. This deserves some investigation. FIXME
  8437. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8438. else
  8439. ld_shlibs=no
  8440. fi
  8441. ;;
  8442. cygwin* | mingw* | pw32* | cegcc*)
  8443. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8444. # as there is no search path for DLLs.
  8445. hardcode_libdir_flag_spec='-L$libdir'
  8446. allow_undefined_flag=unsupported
  8447. always_export_symbols=no
  8448. enable_shared_with_static_runtimes=yes
  8449. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8450. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8451. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8452. # If the export-symbols file already is a .def file (1st line
  8453. # is EXPORTS), use it as is; otherwise, prepend...
  8454. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8455. cp $export_symbols $output_objdir/$soname.def;
  8456. else
  8457. echo EXPORTS > $output_objdir/$soname.def;
  8458. cat $export_symbols >> $output_objdir/$soname.def;
  8459. fi~
  8460. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8461. else
  8462. ld_shlibs=no
  8463. fi
  8464. ;;
  8465. interix[3-9]*)
  8466. hardcode_direct=no
  8467. hardcode_shlibpath_var=no
  8468. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8469. export_dynamic_flag_spec='${wl}-E'
  8470. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8471. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8472. # default) and relocated if they conflict, which is a slow very memory
  8473. # consuming and fragmenting process. To avoid this, we pick a random,
  8474. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8475. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8476. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8477. 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'
  8478. ;;
  8479. gnu* | linux* | tpf* | k*bsd*-gnu)
  8480. tmp_diet=no
  8481. if test "$host_os" = linux-dietlibc; then
  8482. case $cc_basename in
  8483. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8484. esac
  8485. fi
  8486. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8487. && test "$tmp_diet" = no
  8488. then
  8489. tmp_addflag=
  8490. tmp_sharedflag='-shared'
  8491. case $cc_basename,$host_cpu in
  8492. pgcc*) # Portland Group C compiler
  8493. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8494. tmp_addflag=' $pic_flag'
  8495. ;;
  8496. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8497. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8498. tmp_addflag=' $pic_flag -Mnomain' ;;
  8499. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8500. tmp_addflag=' -i_dynamic' ;;
  8501. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8502. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8503. ifc* | ifort*) # Intel Fortran compiler
  8504. tmp_addflag=' -nofor_main' ;;
  8505. lf95*) # Lahey Fortran 8.1
  8506. whole_archive_flag_spec=
  8507. tmp_sharedflag='--shared' ;;
  8508. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8509. tmp_sharedflag='-qmkshrobj'
  8510. tmp_addflag= ;;
  8511. esac
  8512. case `$CC -V 2>&1 | sed 5q` in
  8513. *Sun\ C*) # Sun C 5.9
  8514. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8515. compiler_needs_object=yes
  8516. tmp_sharedflag='-G' ;;
  8517. *Sun\ F*) # Sun Fortran 8.3
  8518. tmp_sharedflag='-G' ;;
  8519. esac
  8520. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8521. if test "x$supports_anon_versioning" = xyes; then
  8522. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8523. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8524. echo "local: *; };" >> $output_objdir/$libname.ver~
  8525. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8526. fi
  8527. case $cc_basename in
  8528. xlf*)
  8529. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8530. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8531. hardcode_libdir_flag_spec=
  8532. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8533. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8534. if test "x$supports_anon_versioning" = xyes; then
  8535. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8536. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8537. echo "local: *; };" >> $output_objdir/$libname.ver~
  8538. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8539. fi
  8540. ;;
  8541. esac
  8542. else
  8543. ld_shlibs=no
  8544. fi
  8545. ;;
  8546. netbsd*)
  8547. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8548. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8549. wlarc=
  8550. else
  8551. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8552. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8553. fi
  8554. ;;
  8555. solaris*)
  8556. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8557. ld_shlibs=no
  8558. cat <<_LT_EOF 1>&2
  8559. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8560. *** create shared libraries on Solaris systems. Therefore, libtool
  8561. *** is disabling shared libraries support. We urge you to upgrade GNU
  8562. *** binutils to release 2.9.1 or newer. Another option is to modify
  8563. *** your PATH or compiler configuration so that the native linker is
  8564. *** used, and then restart.
  8565. _LT_EOF
  8566. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8567. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8568. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8569. else
  8570. ld_shlibs=no
  8571. fi
  8572. ;;
  8573. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8574. case `$LD -v 2>&1` in
  8575. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8576. ld_shlibs=no
  8577. cat <<_LT_EOF 1>&2
  8578. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8579. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8580. *** is disabling shared libraries support. We urge you to upgrade GNU
  8581. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8582. *** your PATH or compiler configuration so that the native linker is
  8583. *** used, and then restart.
  8584. _LT_EOF
  8585. ;;
  8586. *)
  8587. # For security reasons, it is highly recommended that you always
  8588. # use absolute paths for naming shared libraries, and exclude the
  8589. # DT_RUNPATH tag from executables and libraries. But doing so
  8590. # requires that you compile everything twice, which is a pain.
  8591. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8592. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8593. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8594. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8595. else
  8596. ld_shlibs=no
  8597. fi
  8598. ;;
  8599. esac
  8600. ;;
  8601. sunos4*)
  8602. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8603. wlarc=
  8604. hardcode_direct=yes
  8605. hardcode_shlibpath_var=no
  8606. ;;
  8607. *)
  8608. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8609. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8610. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8611. else
  8612. ld_shlibs=no
  8613. fi
  8614. ;;
  8615. esac
  8616. if test "$ld_shlibs" = no; then
  8617. runpath_var=
  8618. hardcode_libdir_flag_spec=
  8619. export_dynamic_flag_spec=
  8620. whole_archive_flag_spec=
  8621. fi
  8622. else
  8623. # PORTME fill in a description of your system's linker (not GNU ld)
  8624. case $host_os in
  8625. aix3*)
  8626. allow_undefined_flag=unsupported
  8627. always_export_symbols=yes
  8628. 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'
  8629. # Note: this linker hardcodes the directories in LIBPATH if there
  8630. # are no directories specified by -L.
  8631. hardcode_minus_L=yes
  8632. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8633. # Neither direct hardcoding nor static linking is supported with a
  8634. # broken collect2.
  8635. hardcode_direct=unsupported
  8636. fi
  8637. ;;
  8638. aix[4-9]*)
  8639. if test "$host_cpu" = ia64; then
  8640. # On IA64, the linker does run time linking by default, so we don't
  8641. # have to do anything special.
  8642. aix_use_runtimelinking=no
  8643. exp_sym_flag='-Bexport'
  8644. no_entry_flag=""
  8645. else
  8646. # If we're using GNU nm, then we don't want the "-C" option.
  8647. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8648. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8649. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8650. else
  8651. 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'
  8652. fi
  8653. aix_use_runtimelinking=no
  8654. # Test if we are trying to use run time linking or normal
  8655. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8656. # need to do runtime linking.
  8657. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8658. for ld_flag in $LDFLAGS; do
  8659. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8660. aix_use_runtimelinking=yes
  8661. break
  8662. fi
  8663. done
  8664. ;;
  8665. esac
  8666. exp_sym_flag='-bexport'
  8667. no_entry_flag='-bnoentry'
  8668. fi
  8669. # When large executables or shared objects are built, AIX ld can
  8670. # have problems creating the table of contents. If linking a library
  8671. # or program results in "error TOC overflow" add -mminimal-toc to
  8672. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8673. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8674. archive_cmds=''
  8675. hardcode_direct=yes
  8676. hardcode_direct_absolute=yes
  8677. hardcode_libdir_separator=':'
  8678. link_all_deplibs=yes
  8679. file_list_spec='${wl}-f,'
  8680. if test "$GCC" = yes; then
  8681. case $host_os in aix4.[012]|aix4.[012].*)
  8682. # We only want to do this on AIX 4.2 and lower, the check
  8683. # below for broken collect2 doesn't work under 4.3+
  8684. collect2name=`${CC} -print-prog-name=collect2`
  8685. if test -f "$collect2name" &&
  8686. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8687. then
  8688. # We have reworked collect2
  8689. :
  8690. else
  8691. # We have old collect2
  8692. hardcode_direct=unsupported
  8693. # It fails to find uninstalled libraries when the uninstalled
  8694. # path is not listed in the libpath. Setting hardcode_minus_L
  8695. # to unsupported forces relinking
  8696. hardcode_minus_L=yes
  8697. hardcode_libdir_flag_spec='-L$libdir'
  8698. hardcode_libdir_separator=
  8699. fi
  8700. ;;
  8701. esac
  8702. shared_flag='-shared'
  8703. if test "$aix_use_runtimelinking" = yes; then
  8704. shared_flag="$shared_flag "'${wl}-G'
  8705. fi
  8706. else
  8707. # not using gcc
  8708. if test "$host_cpu" = ia64; then
  8709. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8710. # chokes on -Wl,-G. The following line is correct:
  8711. shared_flag='-G'
  8712. else
  8713. if test "$aix_use_runtimelinking" = yes; then
  8714. shared_flag='${wl}-G'
  8715. else
  8716. shared_flag='${wl}-bM:SRE'
  8717. fi
  8718. fi
  8719. fi
  8720. export_dynamic_flag_spec='${wl}-bexpall'
  8721. # It seems that -bexpall does not export symbols beginning with
  8722. # underscore (_), so it is better to generate a list of symbols to export.
  8723. always_export_symbols=yes
  8724. if test "$aix_use_runtimelinking" = yes; then
  8725. # Warning - without using the other runtime loading flags (-brtl),
  8726. # -berok will link without error, but may produce a broken library.
  8727. allow_undefined_flag='-berok'
  8728. # Determine the default libpath from the value encoded in an
  8729. # empty executable.
  8730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8731. /* end confdefs.h. */
  8732. int
  8733. main ()
  8734. {
  8735. ;
  8736. return 0;
  8737. }
  8738. _ACEOF
  8739. if ac_fn_c_try_link "$LINENO"; then :
  8740. lt_aix_libpath_sed='
  8741. /Import File Strings/,/^$/ {
  8742. /^0/ {
  8743. s/^0 *\(.*\)$/\1/
  8744. p
  8745. }
  8746. }'
  8747. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8748. # Check for a 64-bit object if we didn't find anything.
  8749. if test -z "$aix_libpath"; then
  8750. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8751. fi
  8752. fi
  8753. rm -f core conftest.err conftest.$ac_objext \
  8754. conftest$ac_exeext conftest.$ac_ext
  8755. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8756. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8757. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8758. else
  8759. if test "$host_cpu" = ia64; then
  8760. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8761. allow_undefined_flag="-z nodefs"
  8762. 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"
  8763. else
  8764. # Determine the default libpath from the value encoded in an
  8765. # empty executable.
  8766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8767. /* end confdefs.h. */
  8768. int
  8769. main ()
  8770. {
  8771. ;
  8772. return 0;
  8773. }
  8774. _ACEOF
  8775. if ac_fn_c_try_link "$LINENO"; then :
  8776. lt_aix_libpath_sed='
  8777. /Import File Strings/,/^$/ {
  8778. /^0/ {
  8779. s/^0 *\(.*\)$/\1/
  8780. p
  8781. }
  8782. }'
  8783. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8784. # Check for a 64-bit object if we didn't find anything.
  8785. if test -z "$aix_libpath"; then
  8786. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8787. fi
  8788. fi
  8789. rm -f core conftest.err conftest.$ac_objext \
  8790. conftest$ac_exeext conftest.$ac_ext
  8791. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8792. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8793. # Warning - without using the other run time loading flags,
  8794. # -berok will link without error, but may produce a broken library.
  8795. no_undefined_flag=' ${wl}-bernotok'
  8796. allow_undefined_flag=' ${wl}-berok'
  8797. # Exported symbols can be pulled into shared objects from archives
  8798. whole_archive_flag_spec='$convenience'
  8799. archive_cmds_need_lc=yes
  8800. # This is similar to how AIX traditionally builds its shared libraries.
  8801. 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'
  8802. fi
  8803. fi
  8804. ;;
  8805. amigaos*)
  8806. case $host_cpu in
  8807. powerpc)
  8808. # see comment about AmigaOS4 .so support
  8809. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8810. archive_expsym_cmds=''
  8811. ;;
  8812. m68k)
  8813. 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)'
  8814. hardcode_libdir_flag_spec='-L$libdir'
  8815. hardcode_minus_L=yes
  8816. ;;
  8817. esac
  8818. ;;
  8819. bsdi[45]*)
  8820. export_dynamic_flag_spec=-rdynamic
  8821. ;;
  8822. cygwin* | mingw* | pw32* | cegcc*)
  8823. # When not using gcc, we currently assume that we are using
  8824. # Microsoft Visual C++.
  8825. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8826. # no search path for DLLs.
  8827. hardcode_libdir_flag_spec=' '
  8828. allow_undefined_flag=unsupported
  8829. # Tell ltmain to make .lib files, not .a files.
  8830. libext=lib
  8831. # Tell ltmain to make .dll files, not .so files.
  8832. shrext_cmds=".dll"
  8833. # FIXME: Setting linknames here is a bad hack.
  8834. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8835. # The linker will automatically build a .lib file if we build a DLL.
  8836. old_archive_from_new_cmds='true'
  8837. # FIXME: Should let the user specify the lib program.
  8838. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8839. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8840. enable_shared_with_static_runtimes=yes
  8841. ;;
  8842. darwin* | rhapsody*)
  8843. archive_cmds_need_lc=no
  8844. hardcode_direct=no
  8845. hardcode_automatic=yes
  8846. hardcode_shlibpath_var=unsupported
  8847. whole_archive_flag_spec=''
  8848. link_all_deplibs=yes
  8849. allow_undefined_flag="$_lt_dar_allow_undefined"
  8850. case $cc_basename in
  8851. ifort*) _lt_dar_can_shared=yes ;;
  8852. *) _lt_dar_can_shared=$GCC ;;
  8853. esac
  8854. if test "$_lt_dar_can_shared" = "yes"; then
  8855. output_verbose_link_cmd=echo
  8856. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8857. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8858. 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}"
  8859. 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}"
  8860. else
  8861. ld_shlibs=no
  8862. fi
  8863. ;;
  8864. dgux*)
  8865. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8866. hardcode_libdir_flag_spec='-L$libdir'
  8867. hardcode_shlibpath_var=no
  8868. ;;
  8869. freebsd1*)
  8870. ld_shlibs=no
  8871. ;;
  8872. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8873. # support. Future versions do this automatically, but an explicit c++rt0.o
  8874. # does not break anything, and helps significantly (at the cost of a little
  8875. # extra space).
  8876. freebsd2.2*)
  8877. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8878. hardcode_libdir_flag_spec='-R$libdir'
  8879. hardcode_direct=yes
  8880. hardcode_shlibpath_var=no
  8881. ;;
  8882. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8883. freebsd2*)
  8884. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8885. hardcode_direct=yes
  8886. hardcode_minus_L=yes
  8887. hardcode_shlibpath_var=no
  8888. ;;
  8889. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8890. freebsd* | dragonfly*)
  8891. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8892. hardcode_libdir_flag_spec='-R$libdir'
  8893. hardcode_direct=yes
  8894. hardcode_shlibpath_var=no
  8895. ;;
  8896. hpux9*)
  8897. if test "$GCC" = yes; then
  8898. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8899. else
  8900. 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'
  8901. fi
  8902. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8903. hardcode_libdir_separator=:
  8904. hardcode_direct=yes
  8905. # hardcode_minus_L: Not really in the search PATH,
  8906. # but as the default location of the library.
  8907. hardcode_minus_L=yes
  8908. export_dynamic_flag_spec='${wl}-E'
  8909. ;;
  8910. hpux10*)
  8911. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8912. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8913. else
  8914. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8915. fi
  8916. if test "$with_gnu_ld" = no; then
  8917. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8918. hardcode_libdir_flag_spec_ld='+b $libdir'
  8919. hardcode_libdir_separator=:
  8920. hardcode_direct=yes
  8921. hardcode_direct_absolute=yes
  8922. export_dynamic_flag_spec='${wl}-E'
  8923. # hardcode_minus_L: Not really in the search PATH,
  8924. # but as the default location of the library.
  8925. hardcode_minus_L=yes
  8926. fi
  8927. ;;
  8928. hpux11*)
  8929. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8930. case $host_cpu in
  8931. hppa*64*)
  8932. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8933. ;;
  8934. ia64*)
  8935. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8936. ;;
  8937. *)
  8938. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8939. ;;
  8940. esac
  8941. else
  8942. case $host_cpu in
  8943. hppa*64*)
  8944. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. ;;
  8946. ia64*)
  8947. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8948. ;;
  8949. *)
  8950. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8951. ;;
  8952. esac
  8953. fi
  8954. if test "$with_gnu_ld" = no; then
  8955. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8956. hardcode_libdir_separator=:
  8957. case $host_cpu in
  8958. hppa*64*|ia64*)
  8959. hardcode_direct=no
  8960. hardcode_shlibpath_var=no
  8961. ;;
  8962. *)
  8963. hardcode_direct=yes
  8964. hardcode_direct_absolute=yes
  8965. export_dynamic_flag_spec='${wl}-E'
  8966. # hardcode_minus_L: Not really in the search PATH,
  8967. # but as the default location of the library.
  8968. hardcode_minus_L=yes
  8969. ;;
  8970. esac
  8971. fi
  8972. ;;
  8973. irix5* | irix6* | nonstopux*)
  8974. if test "$GCC" = yes; then
  8975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8976. # Try to use the -exported_symbol ld option, if it does not
  8977. # work, assume that -exports_file does not work either and
  8978. # implicitly export all symbols.
  8979. save_LDFLAGS="$LDFLAGS"
  8980. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8982. /* end confdefs.h. */
  8983. int foo(void) {}
  8984. _ACEOF
  8985. if ac_fn_c_try_link "$LINENO"; then :
  8986. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8987. fi
  8988. rm -f core conftest.err conftest.$ac_objext \
  8989. conftest$ac_exeext conftest.$ac_ext
  8990. LDFLAGS="$save_LDFLAGS"
  8991. else
  8992. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8993. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8994. fi
  8995. archive_cmds_need_lc='no'
  8996. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8997. hardcode_libdir_separator=:
  8998. inherit_rpath=yes
  8999. link_all_deplibs=yes
  9000. ;;
  9001. netbsd*)
  9002. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9003. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9004. else
  9005. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9006. fi
  9007. hardcode_libdir_flag_spec='-R$libdir'
  9008. hardcode_direct=yes
  9009. hardcode_shlibpath_var=no
  9010. ;;
  9011. newsos6)
  9012. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9013. hardcode_direct=yes
  9014. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9015. hardcode_libdir_separator=:
  9016. hardcode_shlibpath_var=no
  9017. ;;
  9018. *nto* | *qnx*)
  9019. ;;
  9020. openbsd*)
  9021. if test -f /usr/libexec/ld.so; then
  9022. hardcode_direct=yes
  9023. hardcode_shlibpath_var=no
  9024. hardcode_direct_absolute=yes
  9025. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9026. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9027. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9028. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9029. export_dynamic_flag_spec='${wl}-E'
  9030. else
  9031. case $host_os in
  9032. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9033. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9034. hardcode_libdir_flag_spec='-R$libdir'
  9035. ;;
  9036. *)
  9037. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9038. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9039. ;;
  9040. esac
  9041. fi
  9042. else
  9043. ld_shlibs=no
  9044. fi
  9045. ;;
  9046. os2*)
  9047. hardcode_libdir_flag_spec='-L$libdir'
  9048. hardcode_minus_L=yes
  9049. allow_undefined_flag=unsupported
  9050. 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'
  9051. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9052. ;;
  9053. osf3*)
  9054. if test "$GCC" = yes; then
  9055. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9056. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9057. else
  9058. allow_undefined_flag=' -expect_unresolved \*'
  9059. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9060. fi
  9061. archive_cmds_need_lc='no'
  9062. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9063. hardcode_libdir_separator=:
  9064. ;;
  9065. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9066. if test "$GCC" = yes; then
  9067. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9068. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9069. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9070. else
  9071. allow_undefined_flag=' -expect_unresolved \*'
  9072. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9073. 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~
  9074. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9075. # Both c and cxx compiler support -rpath directly
  9076. hardcode_libdir_flag_spec='-rpath $libdir'
  9077. fi
  9078. archive_cmds_need_lc='no'
  9079. hardcode_libdir_separator=:
  9080. ;;
  9081. solaris*)
  9082. no_undefined_flag=' -z defs'
  9083. if test "$GCC" = yes; then
  9084. wlarc='${wl}'
  9085. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9086. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9087. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9088. else
  9089. case `$CC -V 2>&1` in
  9090. *"Compilers 5.0"*)
  9091. wlarc=''
  9092. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9093. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9094. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9095. ;;
  9096. *)
  9097. wlarc='${wl}'
  9098. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9099. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9100. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9101. ;;
  9102. esac
  9103. fi
  9104. hardcode_libdir_flag_spec='-R$libdir'
  9105. hardcode_shlibpath_var=no
  9106. case $host_os in
  9107. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9108. *)
  9109. # The compiler driver will combine and reorder linker options,
  9110. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9111. # but is careful enough not to reorder.
  9112. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9113. if test "$GCC" = yes; then
  9114. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9115. else
  9116. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9117. fi
  9118. ;;
  9119. esac
  9120. link_all_deplibs=yes
  9121. ;;
  9122. sunos4*)
  9123. if test "x$host_vendor" = xsequent; then
  9124. # Use $CC to link under sequent, because it throws in some extra .o
  9125. # files that make .init and .fini sections work.
  9126. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9127. else
  9128. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9129. fi
  9130. hardcode_libdir_flag_spec='-L$libdir'
  9131. hardcode_direct=yes
  9132. hardcode_minus_L=yes
  9133. hardcode_shlibpath_var=no
  9134. ;;
  9135. sysv4)
  9136. case $host_vendor in
  9137. sni)
  9138. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9139. hardcode_direct=yes # is this really true???
  9140. ;;
  9141. siemens)
  9142. ## LD is ld it makes a PLAMLIB
  9143. ## CC just makes a GrossModule.
  9144. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9145. reload_cmds='$CC -r -o $output$reload_objs'
  9146. hardcode_direct=no
  9147. ;;
  9148. motorola)
  9149. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9150. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9151. ;;
  9152. esac
  9153. runpath_var='LD_RUN_PATH'
  9154. hardcode_shlibpath_var=no
  9155. ;;
  9156. sysv4.3*)
  9157. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9158. hardcode_shlibpath_var=no
  9159. export_dynamic_flag_spec='-Bexport'
  9160. ;;
  9161. sysv4*MP*)
  9162. if test -d /usr/nec; then
  9163. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9164. hardcode_shlibpath_var=no
  9165. runpath_var=LD_RUN_PATH
  9166. hardcode_runpath_var=yes
  9167. ld_shlibs=yes
  9168. fi
  9169. ;;
  9170. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9171. no_undefined_flag='${wl}-z,text'
  9172. archive_cmds_need_lc=no
  9173. hardcode_shlibpath_var=no
  9174. runpath_var='LD_RUN_PATH'
  9175. if test "$GCC" = yes; then
  9176. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9177. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9178. else
  9179. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9180. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9181. fi
  9182. ;;
  9183. sysv5* | sco3.2v5* | sco5v6*)
  9184. # Note: We can NOT use -z defs as we might desire, because we do not
  9185. # link with -lc, and that would cause any symbols used from libc to
  9186. # always be unresolved, which means just about no library would
  9187. # ever link correctly. If we're not using GNU ld we use -z text
  9188. # though, which does catch some bad symbols but isn't as heavy-handed
  9189. # as -z defs.
  9190. no_undefined_flag='${wl}-z,text'
  9191. allow_undefined_flag='${wl}-z,nodefs'
  9192. archive_cmds_need_lc=no
  9193. hardcode_shlibpath_var=no
  9194. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9195. hardcode_libdir_separator=':'
  9196. link_all_deplibs=yes
  9197. export_dynamic_flag_spec='${wl}-Bexport'
  9198. runpath_var='LD_RUN_PATH'
  9199. if test "$GCC" = yes; then
  9200. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9201. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9202. else
  9203. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9204. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9205. fi
  9206. ;;
  9207. uts4*)
  9208. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9209. hardcode_libdir_flag_spec='-L$libdir'
  9210. hardcode_shlibpath_var=no
  9211. ;;
  9212. *)
  9213. ld_shlibs=no
  9214. ;;
  9215. esac
  9216. if test x$host_vendor = xsni; then
  9217. case $host in
  9218. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9219. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9220. ;;
  9221. esac
  9222. fi
  9223. fi
  9224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9225. $as_echo "$ld_shlibs" >&6; }
  9226. test "$ld_shlibs" = no && can_build_shared=no
  9227. with_gnu_ld=$with_gnu_ld
  9228. #
  9229. # Do we need to explicitly link libc?
  9230. #
  9231. case "x$archive_cmds_need_lc" in
  9232. x|xyes)
  9233. # Assume -lc should be added
  9234. archive_cmds_need_lc=yes
  9235. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9236. case $archive_cmds in
  9237. *'~'*)
  9238. # FIXME: we may have to deal with multi-command sequences.
  9239. ;;
  9240. '$CC '*)
  9241. # Test whether the compiler implicitly links with -lc since on some
  9242. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9243. # to ld, don't add -lc before -lgcc.
  9244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9245. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9246. $RM conftest*
  9247. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9248. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9249. (eval $ac_compile) 2>&5
  9250. ac_status=$?
  9251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9252. test $ac_status = 0; } 2>conftest.err; then
  9253. soname=conftest
  9254. lib=conftest
  9255. libobjs=conftest.$ac_objext
  9256. deplibs=
  9257. wl=$lt_prog_compiler_wl
  9258. pic_flag=$lt_prog_compiler_pic
  9259. compiler_flags=-v
  9260. linker_flags=-v
  9261. verstring=
  9262. output_objdir=.
  9263. libname=conftest
  9264. lt_save_allow_undefined_flag=$allow_undefined_flag
  9265. allow_undefined_flag=
  9266. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9267. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9268. ac_status=$?
  9269. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9270. test $ac_status = 0; }
  9271. then
  9272. archive_cmds_need_lc=no
  9273. else
  9274. archive_cmds_need_lc=yes
  9275. fi
  9276. allow_undefined_flag=$lt_save_allow_undefined_flag
  9277. else
  9278. cat conftest.err 1>&5
  9279. fi
  9280. $RM conftest*
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  9282. $as_echo "$archive_cmds_need_lc" >&6; }
  9283. ;;
  9284. esac
  9285. fi
  9286. ;;
  9287. esac
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9289. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9290. if test "$GCC" = yes; then
  9291. case $host_os in
  9292. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9293. *) lt_awk_arg="/^libraries:/" ;;
  9294. esac
  9295. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9296. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9297. # if the path contains ";" then we assume it to be the separator
  9298. # otherwise default to the standard path separator (i.e. ":") - it is
  9299. # assumed that no part of a normal pathname contains ";" but that should
  9300. # okay in the real world where ";" in dirpaths is itself problematic.
  9301. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9302. else
  9303. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9304. fi
  9305. # Ok, now we have the path, separated by spaces, we can step through it
  9306. # and add multilib dir if necessary.
  9307. lt_tmp_lt_search_path_spec=
  9308. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9309. for lt_sys_path in $lt_search_path_spec; do
  9310. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9311. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9312. else
  9313. test -d "$lt_sys_path" && \
  9314. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9315. fi
  9316. done
  9317. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9318. BEGIN {RS=" "; FS="/|\n";} {
  9319. lt_foo="";
  9320. lt_count=0;
  9321. for (lt_i = NF; lt_i > 0; lt_i--) {
  9322. if ($lt_i != "" && $lt_i != ".") {
  9323. if ($lt_i == "..") {
  9324. lt_count++;
  9325. } else {
  9326. if (lt_count == 0) {
  9327. lt_foo="/" $lt_i lt_foo;
  9328. } else {
  9329. lt_count--;
  9330. }
  9331. }
  9332. }
  9333. }
  9334. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9335. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9336. }'`
  9337. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9338. else
  9339. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9340. fi
  9341. library_names_spec=
  9342. libname_spec='lib$name'
  9343. soname_spec=
  9344. shrext_cmds=".so"
  9345. postinstall_cmds=
  9346. postuninstall_cmds=
  9347. finish_cmds=
  9348. finish_eval=
  9349. shlibpath_var=
  9350. shlibpath_overrides_runpath=unknown
  9351. version_type=none
  9352. dynamic_linker="$host_os ld.so"
  9353. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9354. need_lib_prefix=unknown
  9355. hardcode_into_libs=no
  9356. # when you set need_version to no, make sure it does not cause -set_version
  9357. # flags to be left without arguments
  9358. need_version=unknown
  9359. case $host_os in
  9360. aix3*)
  9361. version_type=linux
  9362. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9363. shlibpath_var=LIBPATH
  9364. # AIX 3 has no versioning support, so we append a major version to the name.
  9365. soname_spec='${libname}${release}${shared_ext}$major'
  9366. ;;
  9367. aix[4-9]*)
  9368. version_type=linux
  9369. need_lib_prefix=no
  9370. need_version=no
  9371. hardcode_into_libs=yes
  9372. if test "$host_cpu" = ia64; then
  9373. # AIX 5 supports IA64
  9374. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9375. shlibpath_var=LD_LIBRARY_PATH
  9376. else
  9377. # With GCC up to 2.95.x, collect2 would create an import file
  9378. # for dependence libraries. The import file would start with
  9379. # the line `#! .'. This would cause the generated library to
  9380. # depend on `.', always an invalid library. This was fixed in
  9381. # development snapshots of GCC prior to 3.0.
  9382. case $host_os in
  9383. aix4 | aix4.[01] | aix4.[01].*)
  9384. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9385. echo ' yes '
  9386. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9387. :
  9388. else
  9389. can_build_shared=no
  9390. fi
  9391. ;;
  9392. esac
  9393. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9394. # soname into executable. Probably we can add versioning support to
  9395. # collect2, so additional links can be useful in future.
  9396. if test "$aix_use_runtimelinking" = yes; then
  9397. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9398. # instead of lib<name>.a to let people know that these are not
  9399. # typical AIX shared libraries.
  9400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9401. else
  9402. # We preserve .a as extension for shared libraries through AIX4.2
  9403. # and later when we are not doing run time linking.
  9404. library_names_spec='${libname}${release}.a $libname.a'
  9405. soname_spec='${libname}${release}${shared_ext}$major'
  9406. fi
  9407. shlibpath_var=LIBPATH
  9408. fi
  9409. ;;
  9410. amigaos*)
  9411. case $host_cpu in
  9412. powerpc)
  9413. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9414. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9416. ;;
  9417. m68k)
  9418. library_names_spec='$libname.ixlibrary $libname.a'
  9419. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9420. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  9421. ;;
  9422. esac
  9423. ;;
  9424. beos*)
  9425. library_names_spec='${libname}${shared_ext}'
  9426. dynamic_linker="$host_os ld.so"
  9427. shlibpath_var=LIBRARY_PATH
  9428. ;;
  9429. bsdi[45]*)
  9430. version_type=linux
  9431. need_version=no
  9432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9433. soname_spec='${libname}${release}${shared_ext}$major'
  9434. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9435. shlibpath_var=LD_LIBRARY_PATH
  9436. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9437. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9438. # the default ld.so.conf also contains /usr/contrib/lib and
  9439. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9440. # libtool to hard-code these into programs
  9441. ;;
  9442. cygwin* | mingw* | pw32* | cegcc*)
  9443. version_type=windows
  9444. shrext_cmds=".dll"
  9445. need_version=no
  9446. need_lib_prefix=no
  9447. case $GCC,$host_os in
  9448. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9449. library_names_spec='$libname.dll.a'
  9450. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9451. postinstall_cmds='base_file=`basename \${file}`~
  9452. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9453. dldir=$destdir/`dirname \$dlpath`~
  9454. test -d \$dldir || mkdir -p \$dldir~
  9455. $install_prog $dir/$dlname \$dldir/$dlname~
  9456. chmod a+x \$dldir/$dlname~
  9457. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9458. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9459. fi'
  9460. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9461. dlpath=$dir/\$dldll~
  9462. $RM \$dlpath'
  9463. shlibpath_overrides_runpath=yes
  9464. case $host_os in
  9465. cygwin*)
  9466. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9467. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9468. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9469. ;;
  9470. mingw* | cegcc*)
  9471. # MinGW DLLs use traditional 'lib' prefix
  9472. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9473. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9474. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9475. # It is most probably a Windows format PATH printed by
  9476. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9477. # path with ; separators, and with drive letters. We can handle the
  9478. # drive letters (cygwin fileutils understands them), so leave them,
  9479. # especially as we might pass files found there to a mingw objdump,
  9480. # which wouldn't understand a cygwinified path. Ahh.
  9481. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9482. else
  9483. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9484. fi
  9485. ;;
  9486. pw32*)
  9487. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9488. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9489. ;;
  9490. esac
  9491. ;;
  9492. *)
  9493. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9494. ;;
  9495. esac
  9496. dynamic_linker='Win32 ld.exe'
  9497. # FIXME: first we should search . and the directory the executable is in
  9498. shlibpath_var=PATH
  9499. ;;
  9500. darwin* | rhapsody*)
  9501. dynamic_linker="$host_os dyld"
  9502. version_type=darwin
  9503. need_lib_prefix=no
  9504. need_version=no
  9505. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9506. soname_spec='${libname}${release}${major}$shared_ext'
  9507. shlibpath_overrides_runpath=yes
  9508. shlibpath_var=DYLD_LIBRARY_PATH
  9509. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9510. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9511. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9512. ;;
  9513. dgux*)
  9514. version_type=linux
  9515. need_lib_prefix=no
  9516. need_version=no
  9517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9518. soname_spec='${libname}${release}${shared_ext}$major'
  9519. shlibpath_var=LD_LIBRARY_PATH
  9520. ;;
  9521. freebsd1*)
  9522. dynamic_linker=no
  9523. ;;
  9524. freebsd* | dragonfly*)
  9525. # DragonFly does not have aout. When/if they implement a new
  9526. # versioning mechanism, adjust this.
  9527. if test -x /usr/bin/objformat; then
  9528. objformat=`/usr/bin/objformat`
  9529. else
  9530. case $host_os in
  9531. freebsd[123]*) objformat=aout ;;
  9532. *) objformat=elf ;;
  9533. esac
  9534. fi
  9535. version_type=freebsd-$objformat
  9536. case $version_type in
  9537. freebsd-elf*)
  9538. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9539. need_version=no
  9540. need_lib_prefix=no
  9541. ;;
  9542. freebsd-*)
  9543. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9544. need_version=yes
  9545. ;;
  9546. esac
  9547. shlibpath_var=LD_LIBRARY_PATH
  9548. case $host_os in
  9549. freebsd2*)
  9550. shlibpath_overrides_runpath=yes
  9551. ;;
  9552. freebsd3.[01]* | freebsdelf3.[01]*)
  9553. shlibpath_overrides_runpath=yes
  9554. hardcode_into_libs=yes
  9555. ;;
  9556. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9557. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9558. shlibpath_overrides_runpath=no
  9559. hardcode_into_libs=yes
  9560. ;;
  9561. *) # from 4.6 on, and DragonFly
  9562. shlibpath_overrides_runpath=yes
  9563. hardcode_into_libs=yes
  9564. ;;
  9565. esac
  9566. ;;
  9567. gnu*)
  9568. version_type=linux
  9569. need_lib_prefix=no
  9570. need_version=no
  9571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9572. soname_spec='${libname}${release}${shared_ext}$major'
  9573. shlibpath_var=LD_LIBRARY_PATH
  9574. hardcode_into_libs=yes
  9575. ;;
  9576. hpux9* | hpux10* | hpux11*)
  9577. # Give a soname corresponding to the major version so that dld.sl refuses to
  9578. # link against other versions.
  9579. version_type=sunos
  9580. need_lib_prefix=no
  9581. need_version=no
  9582. case $host_cpu in
  9583. ia64*)
  9584. shrext_cmds='.so'
  9585. hardcode_into_libs=yes
  9586. dynamic_linker="$host_os dld.so"
  9587. shlibpath_var=LD_LIBRARY_PATH
  9588. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9590. soname_spec='${libname}${release}${shared_ext}$major'
  9591. if test "X$HPUX_IA64_MODE" = X32; then
  9592. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9593. else
  9594. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9595. fi
  9596. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9597. ;;
  9598. hppa*64*)
  9599. shrext_cmds='.sl'
  9600. hardcode_into_libs=yes
  9601. dynamic_linker="$host_os dld.sl"
  9602. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9603. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9605. soname_spec='${libname}${release}${shared_ext}$major'
  9606. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9607. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9608. ;;
  9609. *)
  9610. shrext_cmds='.sl'
  9611. dynamic_linker="$host_os dld.sl"
  9612. shlibpath_var=SHLIB_PATH
  9613. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9614. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9615. soname_spec='${libname}${release}${shared_ext}$major'
  9616. ;;
  9617. esac
  9618. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9619. postinstall_cmds='chmod 555 $lib'
  9620. ;;
  9621. interix[3-9]*)
  9622. version_type=linux
  9623. need_lib_prefix=no
  9624. need_version=no
  9625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9626. soname_spec='${libname}${release}${shared_ext}$major'
  9627. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9628. shlibpath_var=LD_LIBRARY_PATH
  9629. shlibpath_overrides_runpath=no
  9630. hardcode_into_libs=yes
  9631. ;;
  9632. irix5* | irix6* | nonstopux*)
  9633. case $host_os in
  9634. nonstopux*) version_type=nonstopux ;;
  9635. *)
  9636. if test "$lt_cv_prog_gnu_ld" = yes; then
  9637. version_type=linux
  9638. else
  9639. version_type=irix
  9640. fi ;;
  9641. esac
  9642. need_lib_prefix=no
  9643. need_version=no
  9644. soname_spec='${libname}${release}${shared_ext}$major'
  9645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9646. case $host_os in
  9647. irix5* | nonstopux*)
  9648. libsuff= shlibsuff=
  9649. ;;
  9650. *)
  9651. case $LD in # libtool.m4 will add one of these switches to LD
  9652. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9653. libsuff= shlibsuff= libmagic=32-bit;;
  9654. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9655. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9656. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9657. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9658. *) libsuff= shlibsuff= libmagic=never-match;;
  9659. esac
  9660. ;;
  9661. esac
  9662. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9663. shlibpath_overrides_runpath=no
  9664. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9665. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9666. hardcode_into_libs=yes
  9667. ;;
  9668. # No shared lib support for Linux oldld, aout, or coff.
  9669. linux*oldld* | linux*aout* | linux*coff*)
  9670. dynamic_linker=no
  9671. ;;
  9672. # This must be Linux ELF.
  9673. linux* | k*bsd*-gnu)
  9674. version_type=linux
  9675. need_lib_prefix=no
  9676. need_version=no
  9677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9678. soname_spec='${libname}${release}${shared_ext}$major'
  9679. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9680. shlibpath_var=LD_LIBRARY_PATH
  9681. shlibpath_overrides_runpath=no
  9682. # Some binutils ld are patched to set DT_RUNPATH
  9683. save_LDFLAGS=$LDFLAGS
  9684. save_libdir=$libdir
  9685. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9686. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9688. /* end confdefs.h. */
  9689. int
  9690. main ()
  9691. {
  9692. ;
  9693. return 0;
  9694. }
  9695. _ACEOF
  9696. if ac_fn_c_try_link "$LINENO"; then :
  9697. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9698. shlibpath_overrides_runpath=yes
  9699. fi
  9700. fi
  9701. rm -f core conftest.err conftest.$ac_objext \
  9702. conftest$ac_exeext conftest.$ac_ext
  9703. LDFLAGS=$save_LDFLAGS
  9704. libdir=$save_libdir
  9705. # This implies no fast_install, which is unacceptable.
  9706. # Some rework will be needed to allow for fast_install
  9707. # before this can be enabled.
  9708. hardcode_into_libs=yes
  9709. # Add ABI-specific directories to the system library path.
  9710. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9711. # Append ld.so.conf contents to the search path
  9712. if test -f /etc/ld.so.conf; then
  9713. 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;/^$/d' | tr '\n' ' '`
  9714. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9715. fi
  9716. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9717. # powerpc, because MkLinux only supported shared libraries with the
  9718. # GNU dynamic linker. Since this was broken with cross compilers,
  9719. # most powerpc-linux boxes support dynamic linking these days and
  9720. # people can always --disable-shared, the test was removed, and we
  9721. # assume the GNU/Linux dynamic linker is in use.
  9722. dynamic_linker='GNU/Linux ld.so'
  9723. ;;
  9724. netbsd*)
  9725. version_type=sunos
  9726. need_lib_prefix=no
  9727. need_version=no
  9728. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9730. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9731. dynamic_linker='NetBSD (a.out) ld.so'
  9732. else
  9733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9734. soname_spec='${libname}${release}${shared_ext}$major'
  9735. dynamic_linker='NetBSD ld.elf_so'
  9736. fi
  9737. shlibpath_var=LD_LIBRARY_PATH
  9738. shlibpath_overrides_runpath=yes
  9739. hardcode_into_libs=yes
  9740. ;;
  9741. newsos6)
  9742. version_type=linux
  9743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9744. shlibpath_var=LD_LIBRARY_PATH
  9745. shlibpath_overrides_runpath=yes
  9746. ;;
  9747. *nto* | *qnx*)
  9748. version_type=qnx
  9749. need_lib_prefix=no
  9750. need_version=no
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9752. soname_spec='${libname}${release}${shared_ext}$major'
  9753. shlibpath_var=LD_LIBRARY_PATH
  9754. shlibpath_overrides_runpath=no
  9755. hardcode_into_libs=yes
  9756. dynamic_linker='ldqnx.so'
  9757. ;;
  9758. openbsd*)
  9759. version_type=sunos
  9760. sys_lib_dlsearch_path_spec="/usr/lib"
  9761. need_lib_prefix=no
  9762. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9763. case $host_os in
  9764. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9765. *) need_version=no ;;
  9766. esac
  9767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9768. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9769. shlibpath_var=LD_LIBRARY_PATH
  9770. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9771. case $host_os in
  9772. openbsd2.[89] | openbsd2.[89].*)
  9773. shlibpath_overrides_runpath=no
  9774. ;;
  9775. *)
  9776. shlibpath_overrides_runpath=yes
  9777. ;;
  9778. esac
  9779. else
  9780. shlibpath_overrides_runpath=yes
  9781. fi
  9782. ;;
  9783. os2*)
  9784. libname_spec='$name'
  9785. shrext_cmds=".dll"
  9786. need_lib_prefix=no
  9787. library_names_spec='$libname${shared_ext} $libname.a'
  9788. dynamic_linker='OS/2 ld.exe'
  9789. shlibpath_var=LIBPATH
  9790. ;;
  9791. osf3* | osf4* | osf5*)
  9792. version_type=osf
  9793. need_lib_prefix=no
  9794. need_version=no
  9795. soname_spec='${libname}${release}${shared_ext}$major'
  9796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9799. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9800. ;;
  9801. rdos*)
  9802. dynamic_linker=no
  9803. ;;
  9804. solaris*)
  9805. version_type=linux
  9806. need_lib_prefix=no
  9807. need_version=no
  9808. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9809. soname_spec='${libname}${release}${shared_ext}$major'
  9810. shlibpath_var=LD_LIBRARY_PATH
  9811. shlibpath_overrides_runpath=yes
  9812. hardcode_into_libs=yes
  9813. # ldd complains unless libraries are executable
  9814. postinstall_cmds='chmod +x $lib'
  9815. ;;
  9816. sunos4*)
  9817. version_type=sunos
  9818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9819. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9820. shlibpath_var=LD_LIBRARY_PATH
  9821. shlibpath_overrides_runpath=yes
  9822. if test "$with_gnu_ld" = yes; then
  9823. need_lib_prefix=no
  9824. fi
  9825. need_version=yes
  9826. ;;
  9827. sysv4 | sysv4.3*)
  9828. version_type=linux
  9829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9830. soname_spec='${libname}${release}${shared_ext}$major'
  9831. shlibpath_var=LD_LIBRARY_PATH
  9832. case $host_vendor in
  9833. sni)
  9834. shlibpath_overrides_runpath=no
  9835. need_lib_prefix=no
  9836. runpath_var=LD_RUN_PATH
  9837. ;;
  9838. siemens)
  9839. need_lib_prefix=no
  9840. ;;
  9841. motorola)
  9842. need_lib_prefix=no
  9843. need_version=no
  9844. shlibpath_overrides_runpath=no
  9845. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9846. ;;
  9847. esac
  9848. ;;
  9849. sysv4*MP*)
  9850. if test -d /usr/nec ;then
  9851. version_type=linux
  9852. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9853. soname_spec='$libname${shared_ext}.$major'
  9854. shlibpath_var=LD_LIBRARY_PATH
  9855. fi
  9856. ;;
  9857. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9858. version_type=freebsd-elf
  9859. need_lib_prefix=no
  9860. need_version=no
  9861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9862. soname_spec='${libname}${release}${shared_ext}$major'
  9863. shlibpath_var=LD_LIBRARY_PATH
  9864. shlibpath_overrides_runpath=yes
  9865. hardcode_into_libs=yes
  9866. if test "$with_gnu_ld" = yes; then
  9867. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9868. else
  9869. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9870. case $host_os in
  9871. sco3.2v5*)
  9872. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9873. ;;
  9874. esac
  9875. fi
  9876. sys_lib_dlsearch_path_spec='/usr/lib'
  9877. ;;
  9878. tpf*)
  9879. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9880. version_type=linux
  9881. need_lib_prefix=no
  9882. need_version=no
  9883. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9884. shlibpath_var=LD_LIBRARY_PATH
  9885. shlibpath_overrides_runpath=no
  9886. hardcode_into_libs=yes
  9887. ;;
  9888. uts4*)
  9889. version_type=linux
  9890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9891. soname_spec='${libname}${release}${shared_ext}$major'
  9892. shlibpath_var=LD_LIBRARY_PATH
  9893. ;;
  9894. *)
  9895. dynamic_linker=no
  9896. ;;
  9897. esac
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9899. $as_echo "$dynamic_linker" >&6; }
  9900. test "$dynamic_linker" = no && can_build_shared=no
  9901. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9902. if test "$GCC" = yes; then
  9903. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9904. fi
  9905. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9906. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9907. fi
  9908. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9909. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9910. fi
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9912. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9913. hardcode_action=
  9914. if test -n "$hardcode_libdir_flag_spec" ||
  9915. test -n "$runpath_var" ||
  9916. test "X$hardcode_automatic" = "Xyes" ; then
  9917. # We can hardcode non-existent directories.
  9918. if test "$hardcode_direct" != no &&
  9919. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9920. # have to relink, otherwise we might link with an installed library
  9921. # when we should be linking with a yet-to-be-installed one
  9922. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9923. test "$hardcode_minus_L" != no; then
  9924. # Linking always hardcodes the temporary library directory.
  9925. hardcode_action=relink
  9926. else
  9927. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9928. hardcode_action=immediate
  9929. fi
  9930. else
  9931. # We cannot hardcode anything, or else we can only hardcode existing
  9932. # directories.
  9933. hardcode_action=unsupported
  9934. fi
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9936. $as_echo "$hardcode_action" >&6; }
  9937. if test "$hardcode_action" = relink ||
  9938. test "$inherit_rpath" = yes; then
  9939. # Fast installation is not supported
  9940. enable_fast_install=no
  9941. elif test "$shlibpath_overrides_runpath" = yes ||
  9942. test "$enable_shared" = no; then
  9943. # Fast installation is not necessary
  9944. enable_fast_install=needless
  9945. fi
  9946. if test "x$enable_dlopen" != xyes; then
  9947. enable_dlopen=unknown
  9948. enable_dlopen_self=unknown
  9949. enable_dlopen_self_static=unknown
  9950. else
  9951. lt_cv_dlopen=no
  9952. lt_cv_dlopen_libs=
  9953. case $host_os in
  9954. beos*)
  9955. lt_cv_dlopen="load_add_on"
  9956. lt_cv_dlopen_libs=
  9957. lt_cv_dlopen_self=yes
  9958. ;;
  9959. mingw* | pw32* | cegcc*)
  9960. lt_cv_dlopen="LoadLibrary"
  9961. lt_cv_dlopen_libs=
  9962. ;;
  9963. cygwin*)
  9964. lt_cv_dlopen="dlopen"
  9965. lt_cv_dlopen_libs=
  9966. ;;
  9967. darwin*)
  9968. # if libdl is installed we need to link against it
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9970. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9971. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9972. $as_echo_n "(cached) " >&6
  9973. else
  9974. ac_check_lib_save_LIBS=$LIBS
  9975. LIBS="-ldl $LIBS"
  9976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9977. /* end confdefs.h. */
  9978. /* Override any GCC internal prototype to avoid an error.
  9979. Use char because int might match the return type of a GCC
  9980. builtin and then its argument prototype would still apply. */
  9981. #ifdef __cplusplus
  9982. extern "C"
  9983. #endif
  9984. char dlopen ();
  9985. int
  9986. main ()
  9987. {
  9988. return dlopen ();
  9989. ;
  9990. return 0;
  9991. }
  9992. _ACEOF
  9993. if ac_fn_c_try_link "$LINENO"; then :
  9994. ac_cv_lib_dl_dlopen=yes
  9995. else
  9996. ac_cv_lib_dl_dlopen=no
  9997. fi
  9998. rm -f core conftest.err conftest.$ac_objext \
  9999. conftest$ac_exeext conftest.$ac_ext
  10000. LIBS=$ac_check_lib_save_LIBS
  10001. fi
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10003. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10004. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10005. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10006. else
  10007. lt_cv_dlopen="dyld"
  10008. lt_cv_dlopen_libs=
  10009. lt_cv_dlopen_self=yes
  10010. fi
  10011. ;;
  10012. *)
  10013. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10014. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10015. lt_cv_dlopen="shl_load"
  10016. else
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10018. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10019. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10020. $as_echo_n "(cached) " >&6
  10021. else
  10022. ac_check_lib_save_LIBS=$LIBS
  10023. LIBS="-ldld $LIBS"
  10024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10025. /* end confdefs.h. */
  10026. /* Override any GCC internal prototype to avoid an error.
  10027. Use char because int might match the return type of a GCC
  10028. builtin and then its argument prototype would still apply. */
  10029. #ifdef __cplusplus
  10030. extern "C"
  10031. #endif
  10032. char shl_load ();
  10033. int
  10034. main ()
  10035. {
  10036. return shl_load ();
  10037. ;
  10038. return 0;
  10039. }
  10040. _ACEOF
  10041. if ac_fn_c_try_link "$LINENO"; then :
  10042. ac_cv_lib_dld_shl_load=yes
  10043. else
  10044. ac_cv_lib_dld_shl_load=no
  10045. fi
  10046. rm -f core conftest.err conftest.$ac_objext \
  10047. conftest$ac_exeext conftest.$ac_ext
  10048. LIBS=$ac_check_lib_save_LIBS
  10049. fi
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10051. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10052. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10053. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10054. else
  10055. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10056. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10057. lt_cv_dlopen="dlopen"
  10058. else
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10060. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10061. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. ac_check_lib_save_LIBS=$LIBS
  10065. LIBS="-ldl $LIBS"
  10066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10067. /* end confdefs.h. */
  10068. /* Override any GCC internal prototype to avoid an error.
  10069. Use char because int might match the return type of a GCC
  10070. builtin and then its argument prototype would still apply. */
  10071. #ifdef __cplusplus
  10072. extern "C"
  10073. #endif
  10074. char dlopen ();
  10075. int
  10076. main ()
  10077. {
  10078. return dlopen ();
  10079. ;
  10080. return 0;
  10081. }
  10082. _ACEOF
  10083. if ac_fn_c_try_link "$LINENO"; then :
  10084. ac_cv_lib_dl_dlopen=yes
  10085. else
  10086. ac_cv_lib_dl_dlopen=no
  10087. fi
  10088. rm -f core conftest.err conftest.$ac_objext \
  10089. conftest$ac_exeext conftest.$ac_ext
  10090. LIBS=$ac_check_lib_save_LIBS
  10091. fi
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10093. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10094. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10095. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10096. else
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10098. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10099. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10100. $as_echo_n "(cached) " >&6
  10101. else
  10102. ac_check_lib_save_LIBS=$LIBS
  10103. LIBS="-lsvld $LIBS"
  10104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10105. /* end confdefs.h. */
  10106. /* Override any GCC internal prototype to avoid an error.
  10107. Use char because int might match the return type of a GCC
  10108. builtin and then its argument prototype would still apply. */
  10109. #ifdef __cplusplus
  10110. extern "C"
  10111. #endif
  10112. char dlopen ();
  10113. int
  10114. main ()
  10115. {
  10116. return dlopen ();
  10117. ;
  10118. return 0;
  10119. }
  10120. _ACEOF
  10121. if ac_fn_c_try_link "$LINENO"; then :
  10122. ac_cv_lib_svld_dlopen=yes
  10123. else
  10124. ac_cv_lib_svld_dlopen=no
  10125. fi
  10126. rm -f core conftest.err conftest.$ac_objext \
  10127. conftest$ac_exeext conftest.$ac_ext
  10128. LIBS=$ac_check_lib_save_LIBS
  10129. fi
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10131. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10132. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10133. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10134. else
  10135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10136. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10137. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10138. $as_echo_n "(cached) " >&6
  10139. else
  10140. ac_check_lib_save_LIBS=$LIBS
  10141. LIBS="-ldld $LIBS"
  10142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10143. /* end confdefs.h. */
  10144. /* Override any GCC internal prototype to avoid an error.
  10145. Use char because int might match the return type of a GCC
  10146. builtin and then its argument prototype would still apply. */
  10147. #ifdef __cplusplus
  10148. extern "C"
  10149. #endif
  10150. char dld_link ();
  10151. int
  10152. main ()
  10153. {
  10154. return dld_link ();
  10155. ;
  10156. return 0;
  10157. }
  10158. _ACEOF
  10159. if ac_fn_c_try_link "$LINENO"; then :
  10160. ac_cv_lib_dld_dld_link=yes
  10161. else
  10162. ac_cv_lib_dld_dld_link=no
  10163. fi
  10164. rm -f core conftest.err conftest.$ac_objext \
  10165. conftest$ac_exeext conftest.$ac_ext
  10166. LIBS=$ac_check_lib_save_LIBS
  10167. fi
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10169. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10170. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10171. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10172. fi
  10173. fi
  10174. fi
  10175. fi
  10176. fi
  10177. fi
  10178. ;;
  10179. esac
  10180. if test "x$lt_cv_dlopen" != xno; then
  10181. enable_dlopen=yes
  10182. else
  10183. enable_dlopen=no
  10184. fi
  10185. case $lt_cv_dlopen in
  10186. dlopen)
  10187. save_CPPFLAGS="$CPPFLAGS"
  10188. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10189. save_LDFLAGS="$LDFLAGS"
  10190. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10191. save_LIBS="$LIBS"
  10192. LIBS="$lt_cv_dlopen_libs $LIBS"
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10194. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10195. if test "${lt_cv_dlopen_self+set}" = set; then :
  10196. $as_echo_n "(cached) " >&6
  10197. else
  10198. if test "$cross_compiling" = yes; then :
  10199. lt_cv_dlopen_self=cross
  10200. else
  10201. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10202. lt_status=$lt_dlunknown
  10203. cat > conftest.$ac_ext <<_LT_EOF
  10204. #line 11781 "configure"
  10205. #include "confdefs.h"
  10206. #if HAVE_DLFCN_H
  10207. #include <dlfcn.h>
  10208. #endif
  10209. #include <stdio.h>
  10210. #ifdef RTLD_GLOBAL
  10211. # define LT_DLGLOBAL RTLD_GLOBAL
  10212. #else
  10213. # ifdef DL_GLOBAL
  10214. # define LT_DLGLOBAL DL_GLOBAL
  10215. # else
  10216. # define LT_DLGLOBAL 0
  10217. # endif
  10218. #endif
  10219. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10220. find out it does not work in some platform. */
  10221. #ifndef LT_DLLAZY_OR_NOW
  10222. # ifdef RTLD_LAZY
  10223. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10224. # else
  10225. # ifdef DL_LAZY
  10226. # define LT_DLLAZY_OR_NOW DL_LAZY
  10227. # else
  10228. # ifdef RTLD_NOW
  10229. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10230. # else
  10231. # ifdef DL_NOW
  10232. # define LT_DLLAZY_OR_NOW DL_NOW
  10233. # else
  10234. # define LT_DLLAZY_OR_NOW 0
  10235. # endif
  10236. # endif
  10237. # endif
  10238. # endif
  10239. #endif
  10240. void fnord() { int i=42;}
  10241. int main ()
  10242. {
  10243. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10244. int status = $lt_dlunknown;
  10245. if (self)
  10246. {
  10247. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10248. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10249. /* dlclose (self); */
  10250. }
  10251. else
  10252. puts (dlerror ());
  10253. return status;
  10254. }
  10255. _LT_EOF
  10256. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10257. (eval $ac_link) 2>&5
  10258. ac_status=$?
  10259. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10260. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10261. (./conftest; exit; ) >&5 2>/dev/null
  10262. lt_status=$?
  10263. case x$lt_status in
  10264. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10265. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10266. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10267. esac
  10268. else :
  10269. # compilation failed
  10270. lt_cv_dlopen_self=no
  10271. fi
  10272. fi
  10273. rm -fr conftest*
  10274. fi
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10276. $as_echo "$lt_cv_dlopen_self" >&6; }
  10277. if test "x$lt_cv_dlopen_self" = xyes; then
  10278. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10280. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10281. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10282. $as_echo_n "(cached) " >&6
  10283. else
  10284. if test "$cross_compiling" = yes; then :
  10285. lt_cv_dlopen_self_static=cross
  10286. else
  10287. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10288. lt_status=$lt_dlunknown
  10289. cat > conftest.$ac_ext <<_LT_EOF
  10290. #line 11877 "configure"
  10291. #include "confdefs.h"
  10292. #if HAVE_DLFCN_H
  10293. #include <dlfcn.h>
  10294. #endif
  10295. #include <stdio.h>
  10296. #ifdef RTLD_GLOBAL
  10297. # define LT_DLGLOBAL RTLD_GLOBAL
  10298. #else
  10299. # ifdef DL_GLOBAL
  10300. # define LT_DLGLOBAL DL_GLOBAL
  10301. # else
  10302. # define LT_DLGLOBAL 0
  10303. # endif
  10304. #endif
  10305. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10306. find out it does not work in some platform. */
  10307. #ifndef LT_DLLAZY_OR_NOW
  10308. # ifdef RTLD_LAZY
  10309. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10310. # else
  10311. # ifdef DL_LAZY
  10312. # define LT_DLLAZY_OR_NOW DL_LAZY
  10313. # else
  10314. # ifdef RTLD_NOW
  10315. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10316. # else
  10317. # ifdef DL_NOW
  10318. # define LT_DLLAZY_OR_NOW DL_NOW
  10319. # else
  10320. # define LT_DLLAZY_OR_NOW 0
  10321. # endif
  10322. # endif
  10323. # endif
  10324. # endif
  10325. #endif
  10326. void fnord() { int i=42;}
  10327. int main ()
  10328. {
  10329. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10330. int status = $lt_dlunknown;
  10331. if (self)
  10332. {
  10333. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10334. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10335. /* dlclose (self); */
  10336. }
  10337. else
  10338. puts (dlerror ());
  10339. return status;
  10340. }
  10341. _LT_EOF
  10342. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10343. (eval $ac_link) 2>&5
  10344. ac_status=$?
  10345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10346. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10347. (./conftest; exit; ) >&5 2>/dev/null
  10348. lt_status=$?
  10349. case x$lt_status in
  10350. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10351. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10352. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10353. esac
  10354. else :
  10355. # compilation failed
  10356. lt_cv_dlopen_self_static=no
  10357. fi
  10358. fi
  10359. rm -fr conftest*
  10360. fi
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10362. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10363. fi
  10364. CPPFLAGS="$save_CPPFLAGS"
  10365. LDFLAGS="$save_LDFLAGS"
  10366. LIBS="$save_LIBS"
  10367. ;;
  10368. esac
  10369. case $lt_cv_dlopen_self in
  10370. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10371. *) enable_dlopen_self=unknown ;;
  10372. esac
  10373. case $lt_cv_dlopen_self_static in
  10374. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10375. *) enable_dlopen_self_static=unknown ;;
  10376. esac
  10377. fi
  10378. striplib=
  10379. old_striplib=
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10381. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10382. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10383. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10384. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10386. $as_echo "yes" >&6; }
  10387. else
  10388. # FIXME - insert some real tests, host_os isn't really good enough
  10389. case $host_os in
  10390. darwin*)
  10391. if test -n "$STRIP" ; then
  10392. striplib="$STRIP -x"
  10393. old_striplib="$STRIP -S"
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10395. $as_echo "yes" >&6; }
  10396. else
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10398. $as_echo "no" >&6; }
  10399. fi
  10400. ;;
  10401. *)
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10403. $as_echo "no" >&6; }
  10404. ;;
  10405. esac
  10406. fi
  10407. # Report which library types will actually be built
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10409. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10411. $as_echo "$can_build_shared" >&6; }
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10413. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10414. test "$can_build_shared" = "no" && enable_shared=no
  10415. # On AIX, shared libraries and static libraries use the same namespace, and
  10416. # are all built from PIC.
  10417. case $host_os in
  10418. aix3*)
  10419. test "$enable_shared" = yes && enable_static=no
  10420. if test -n "$RANLIB"; then
  10421. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10422. postinstall_cmds='$RANLIB $lib'
  10423. fi
  10424. ;;
  10425. aix[4-9]*)
  10426. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10427. test "$enable_shared" = yes && enable_static=no
  10428. fi
  10429. ;;
  10430. esac
  10431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10432. $as_echo "$enable_shared" >&6; }
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10434. $as_echo_n "checking whether to build static libraries... " >&6; }
  10435. # Make sure either enable_shared or enable_static is yes.
  10436. test "$enable_shared" = yes || enable_static=yes
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10438. $as_echo "$enable_static" >&6; }
  10439. fi
  10440. ac_ext=c
  10441. ac_cpp='$CPP $CPPFLAGS'
  10442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10445. CC="$lt_save_CC"
  10446. ac_ext=cpp
  10447. ac_cpp='$CXXCPP $CPPFLAGS'
  10448. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10449. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10450. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10451. archive_cmds_need_lc_CXX=no
  10452. allow_undefined_flag_CXX=
  10453. always_export_symbols_CXX=no
  10454. archive_expsym_cmds_CXX=
  10455. compiler_needs_object_CXX=no
  10456. export_dynamic_flag_spec_CXX=
  10457. hardcode_direct_CXX=no
  10458. hardcode_direct_absolute_CXX=no
  10459. hardcode_libdir_flag_spec_CXX=
  10460. hardcode_libdir_flag_spec_ld_CXX=
  10461. hardcode_libdir_separator_CXX=
  10462. hardcode_minus_L_CXX=no
  10463. hardcode_shlibpath_var_CXX=unsupported
  10464. hardcode_automatic_CXX=no
  10465. inherit_rpath_CXX=no
  10466. module_cmds_CXX=
  10467. module_expsym_cmds_CXX=
  10468. link_all_deplibs_CXX=unknown
  10469. old_archive_cmds_CXX=$old_archive_cmds
  10470. no_undefined_flag_CXX=
  10471. whole_archive_flag_spec_CXX=
  10472. enable_shared_with_static_runtimes_CXX=no
  10473. # Source file extension for C++ test sources.
  10474. ac_ext=cpp
  10475. # Object file extension for compiled C++ test sources.
  10476. objext=o
  10477. objext_CXX=$objext
  10478. # No sense in running all these tests if we already determined that
  10479. # the CXX compiler isn't working. Some variables (like enable_shared)
  10480. # are currently assumed to apply to all compilers on this platform,
  10481. # and will be corrupted by setting them based on a non-working compiler.
  10482. if test "$_lt_caught_CXX_error" != yes; then
  10483. # Code to be used in simple compile tests
  10484. lt_simple_compile_test_code="int some_variable = 0;"
  10485. # Code to be used in simple link tests
  10486. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10487. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10488. # If no C compiler was specified, use CC.
  10489. LTCC=${LTCC-"$CC"}
  10490. # If no C compiler flags were specified, use CFLAGS.
  10491. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10492. # Allow CC to be a program name with arguments.
  10493. compiler=$CC
  10494. # save warnings/boilerplate of simple test code
  10495. ac_outfile=conftest.$ac_objext
  10496. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10497. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10498. _lt_compiler_boilerplate=`cat conftest.err`
  10499. $RM conftest*
  10500. ac_outfile=conftest.$ac_objext
  10501. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10502. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10503. _lt_linker_boilerplate=`cat conftest.err`
  10504. $RM -r conftest*
  10505. # Allow CC to be a program name with arguments.
  10506. lt_save_CC=$CC
  10507. lt_save_LD=$LD
  10508. lt_save_GCC=$GCC
  10509. GCC=$GXX
  10510. lt_save_with_gnu_ld=$with_gnu_ld
  10511. lt_save_path_LD=$lt_cv_path_LD
  10512. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10513. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10514. else
  10515. $as_unset lt_cv_prog_gnu_ld
  10516. fi
  10517. if test -n "${lt_cv_path_LDCXX+set}"; then
  10518. lt_cv_path_LD=$lt_cv_path_LDCXX
  10519. else
  10520. $as_unset lt_cv_path_LD
  10521. fi
  10522. test -z "${LDCXX+set}" || LD=$LDCXX
  10523. CC=${CXX-"c++"}
  10524. compiler=$CC
  10525. compiler_CXX=$CC
  10526. for cc_temp in $compiler""; do
  10527. case $cc_temp in
  10528. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10529. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10530. \-*) ;;
  10531. *) break;;
  10532. esac
  10533. done
  10534. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10535. if test -n "$compiler"; then
  10536. # We don't want -fno-exception when compiling C++ code, so set the
  10537. # no_builtin_flag separately
  10538. if test "$GXX" = yes; then
  10539. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10540. else
  10541. lt_prog_compiler_no_builtin_flag_CXX=
  10542. fi
  10543. if test "$GXX" = yes; then
  10544. # Set up default GNU C++ configuration
  10545. # Check whether --with-gnu-ld was given.
  10546. if test "${with_gnu_ld+set}" = set; then :
  10547. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10548. else
  10549. with_gnu_ld=no
  10550. fi
  10551. ac_prog=ld
  10552. if test "$GCC" = yes; then
  10553. # Check if gcc -print-prog-name=ld gives a path.
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10555. $as_echo_n "checking for ld used by $CC... " >&6; }
  10556. case $host in
  10557. *-*-mingw*)
  10558. # gcc leaves a trailing carriage return which upsets mingw
  10559. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10560. *)
  10561. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10562. esac
  10563. case $ac_prog in
  10564. # Accept absolute paths.
  10565. [\\/]* | ?:[\\/]*)
  10566. re_direlt='/[^/][^/]*/\.\./'
  10567. # Canonicalize the pathname of ld
  10568. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10569. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10570. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10571. done
  10572. test -z "$LD" && LD="$ac_prog"
  10573. ;;
  10574. "")
  10575. # If it fails, then pretend we aren't using GCC.
  10576. ac_prog=ld
  10577. ;;
  10578. *)
  10579. # If it is relative, then search for the first ld in PATH.
  10580. with_gnu_ld=unknown
  10581. ;;
  10582. esac
  10583. elif test "$with_gnu_ld" = yes; then
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10585. $as_echo_n "checking for GNU ld... " >&6; }
  10586. else
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10588. $as_echo_n "checking for non-GNU ld... " >&6; }
  10589. fi
  10590. if test "${lt_cv_path_LD+set}" = set; then :
  10591. $as_echo_n "(cached) " >&6
  10592. else
  10593. if test -z "$LD"; then
  10594. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10595. for ac_dir in $PATH; do
  10596. IFS="$lt_save_ifs"
  10597. test -z "$ac_dir" && ac_dir=.
  10598. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10599. lt_cv_path_LD="$ac_dir/$ac_prog"
  10600. # Check to see if the program is GNU ld. I'd rather use --version,
  10601. # but apparently some variants of GNU ld only accept -v.
  10602. # Break only if it was the GNU/non-GNU ld that we prefer.
  10603. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10604. *GNU* | *'with BFD'*)
  10605. test "$with_gnu_ld" != no && break
  10606. ;;
  10607. *)
  10608. test "$with_gnu_ld" != yes && break
  10609. ;;
  10610. esac
  10611. fi
  10612. done
  10613. IFS="$lt_save_ifs"
  10614. else
  10615. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10616. fi
  10617. fi
  10618. LD="$lt_cv_path_LD"
  10619. if test -n "$LD"; then
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10621. $as_echo "$LD" >&6; }
  10622. else
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10624. $as_echo "no" >&6; }
  10625. fi
  10626. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10628. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10629. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10630. $as_echo_n "(cached) " >&6
  10631. else
  10632. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10633. case `$LD -v 2>&1 </dev/null` in
  10634. *GNU* | *'with BFD'*)
  10635. lt_cv_prog_gnu_ld=yes
  10636. ;;
  10637. *)
  10638. lt_cv_prog_gnu_ld=no
  10639. ;;
  10640. esac
  10641. fi
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10643. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10644. with_gnu_ld=$lt_cv_prog_gnu_ld
  10645. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10646. # archiving commands below assume that GNU ld is being used.
  10647. if test "$with_gnu_ld" = yes; then
  10648. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10649. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10650. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10651. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10652. # If archive_cmds runs LD, not CC, wlarc should be empty
  10653. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10654. # investigate it a little bit more. (MM)
  10655. wlarc='${wl}'
  10656. # ancient GNU ld didn't support --whole-archive et. al.
  10657. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10658. $GREP 'no-whole-archive' > /dev/null; then
  10659. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10660. else
  10661. whole_archive_flag_spec_CXX=
  10662. fi
  10663. else
  10664. with_gnu_ld=no
  10665. wlarc=
  10666. # A generic and very simple default shared library creation
  10667. # command for GNU C++ for the case where it uses the native
  10668. # linker, instead of GNU ld. If possible, this setting should
  10669. # overridden to take advantage of the native linker features on
  10670. # the platform it is being used on.
  10671. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10672. fi
  10673. # Commands to make compiler produce verbose output that lists
  10674. # what "hidden" libraries, object files and flags are used when
  10675. # linking a shared library.
  10676. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10677. else
  10678. GXX=no
  10679. with_gnu_ld=no
  10680. wlarc=
  10681. fi
  10682. # PORTME: fill in a description of your system's C++ link characteristics
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10684. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10685. ld_shlibs_CXX=yes
  10686. case $host_os in
  10687. aix3*)
  10688. # FIXME: insert proper C++ library support
  10689. ld_shlibs_CXX=no
  10690. ;;
  10691. aix[4-9]*)
  10692. if test "$host_cpu" = ia64; then
  10693. # On IA64, the linker does run time linking by default, so we don't
  10694. # have to do anything special.
  10695. aix_use_runtimelinking=no
  10696. exp_sym_flag='-Bexport'
  10697. no_entry_flag=""
  10698. else
  10699. aix_use_runtimelinking=no
  10700. # Test if we are trying to use run time linking or normal
  10701. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10702. # need to do runtime linking.
  10703. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10704. for ld_flag in $LDFLAGS; do
  10705. case $ld_flag in
  10706. *-brtl*)
  10707. aix_use_runtimelinking=yes
  10708. break
  10709. ;;
  10710. esac
  10711. done
  10712. ;;
  10713. esac
  10714. exp_sym_flag='-bexport'
  10715. no_entry_flag='-bnoentry'
  10716. fi
  10717. # When large executables or shared objects are built, AIX ld can
  10718. # have problems creating the table of contents. If linking a library
  10719. # or program results in "error TOC overflow" add -mminimal-toc to
  10720. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10721. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10722. archive_cmds_CXX=''
  10723. hardcode_direct_CXX=yes
  10724. hardcode_direct_absolute_CXX=yes
  10725. hardcode_libdir_separator_CXX=':'
  10726. link_all_deplibs_CXX=yes
  10727. file_list_spec_CXX='${wl}-f,'
  10728. if test "$GXX" = yes; then
  10729. case $host_os in aix4.[012]|aix4.[012].*)
  10730. # We only want to do this on AIX 4.2 and lower, the check
  10731. # below for broken collect2 doesn't work under 4.3+
  10732. collect2name=`${CC} -print-prog-name=collect2`
  10733. if test -f "$collect2name" &&
  10734. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10735. then
  10736. # We have reworked collect2
  10737. :
  10738. else
  10739. # We have old collect2
  10740. hardcode_direct_CXX=unsupported
  10741. # It fails to find uninstalled libraries when the uninstalled
  10742. # path is not listed in the libpath. Setting hardcode_minus_L
  10743. # to unsupported forces relinking
  10744. hardcode_minus_L_CXX=yes
  10745. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10746. hardcode_libdir_separator_CXX=
  10747. fi
  10748. esac
  10749. shared_flag='-shared'
  10750. if test "$aix_use_runtimelinking" = yes; then
  10751. shared_flag="$shared_flag "'${wl}-G'
  10752. fi
  10753. else
  10754. # not using gcc
  10755. if test "$host_cpu" = ia64; then
  10756. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10757. # chokes on -Wl,-G. The following line is correct:
  10758. shared_flag='-G'
  10759. else
  10760. if test "$aix_use_runtimelinking" = yes; then
  10761. shared_flag='${wl}-G'
  10762. else
  10763. shared_flag='${wl}-bM:SRE'
  10764. fi
  10765. fi
  10766. fi
  10767. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10768. # It seems that -bexpall does not export symbols beginning with
  10769. # underscore (_), so it is better to generate a list of symbols to
  10770. # export.
  10771. always_export_symbols_CXX=yes
  10772. if test "$aix_use_runtimelinking" = yes; then
  10773. # Warning - without using the other runtime loading flags (-brtl),
  10774. # -berok will link without error, but may produce a broken library.
  10775. allow_undefined_flag_CXX='-berok'
  10776. # Determine the default libpath from the value encoded in an empty
  10777. # executable.
  10778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10779. /* end confdefs.h. */
  10780. int
  10781. main ()
  10782. {
  10783. ;
  10784. return 0;
  10785. }
  10786. _ACEOF
  10787. if ac_fn_cxx_try_link "$LINENO"; then :
  10788. lt_aix_libpath_sed='
  10789. /Import File Strings/,/^$/ {
  10790. /^0/ {
  10791. s/^0 *\(.*\)$/\1/
  10792. p
  10793. }
  10794. }'
  10795. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10796. # Check for a 64-bit object if we didn't find anything.
  10797. if test -z "$aix_libpath"; then
  10798. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10799. fi
  10800. fi
  10801. rm -f core conftest.err conftest.$ac_objext \
  10802. conftest$ac_exeext conftest.$ac_ext
  10803. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10804. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10805. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10806. else
  10807. if test "$host_cpu" = ia64; then
  10808. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10809. allow_undefined_flag_CXX="-z nodefs"
  10810. 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"
  10811. else
  10812. # Determine the default libpath from the value encoded in an
  10813. # empty executable.
  10814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10815. /* end confdefs.h. */
  10816. int
  10817. main ()
  10818. {
  10819. ;
  10820. return 0;
  10821. }
  10822. _ACEOF
  10823. if ac_fn_cxx_try_link "$LINENO"; then :
  10824. lt_aix_libpath_sed='
  10825. /Import File Strings/,/^$/ {
  10826. /^0/ {
  10827. s/^0 *\(.*\)$/\1/
  10828. p
  10829. }
  10830. }'
  10831. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10832. # Check for a 64-bit object if we didn't find anything.
  10833. if test -z "$aix_libpath"; then
  10834. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10835. fi
  10836. fi
  10837. rm -f core conftest.err conftest.$ac_objext \
  10838. conftest$ac_exeext conftest.$ac_ext
  10839. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10840. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10841. # Warning - without using the other run time loading flags,
  10842. # -berok will link without error, but may produce a broken library.
  10843. no_undefined_flag_CXX=' ${wl}-bernotok'
  10844. allow_undefined_flag_CXX=' ${wl}-berok'
  10845. # Exported symbols can be pulled into shared objects from archives
  10846. whole_archive_flag_spec_CXX='$convenience'
  10847. archive_cmds_need_lc_CXX=yes
  10848. # This is similar to how AIX traditionally builds its shared
  10849. # libraries.
  10850. 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'
  10851. fi
  10852. fi
  10853. ;;
  10854. beos*)
  10855. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10856. allow_undefined_flag_CXX=unsupported
  10857. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10858. # support --undefined. This deserves some investigation. FIXME
  10859. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10860. else
  10861. ld_shlibs_CXX=no
  10862. fi
  10863. ;;
  10864. chorus*)
  10865. case $cc_basename in
  10866. *)
  10867. # FIXME: insert proper C++ library support
  10868. ld_shlibs_CXX=no
  10869. ;;
  10870. esac
  10871. ;;
  10872. cygwin* | mingw* | pw32* | cegcc*)
  10873. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10874. # as there is no search path for DLLs.
  10875. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10876. allow_undefined_flag_CXX=unsupported
  10877. always_export_symbols_CXX=no
  10878. enable_shared_with_static_runtimes_CXX=yes
  10879. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10880. 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'
  10881. # If the export-symbols file already is a .def file (1st line
  10882. # is EXPORTS), use it as is; otherwise, prepend...
  10883. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10884. cp $export_symbols $output_objdir/$soname.def;
  10885. else
  10886. echo EXPORTS > $output_objdir/$soname.def;
  10887. cat $export_symbols >> $output_objdir/$soname.def;
  10888. fi~
  10889. $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'
  10890. else
  10891. ld_shlibs_CXX=no
  10892. fi
  10893. ;;
  10894. darwin* | rhapsody*)
  10895. archive_cmds_need_lc_CXX=no
  10896. hardcode_direct_CXX=no
  10897. hardcode_automatic_CXX=yes
  10898. hardcode_shlibpath_var_CXX=unsupported
  10899. whole_archive_flag_spec_CXX=''
  10900. link_all_deplibs_CXX=yes
  10901. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10902. case $cc_basename in
  10903. ifort*) _lt_dar_can_shared=yes ;;
  10904. *) _lt_dar_can_shared=$GCC ;;
  10905. esac
  10906. if test "$_lt_dar_can_shared" = "yes"; then
  10907. output_verbose_link_cmd=echo
  10908. 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}"
  10909. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10910. 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}"
  10911. 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}"
  10912. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10913. 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}"
  10914. 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}"
  10915. fi
  10916. else
  10917. ld_shlibs_CXX=no
  10918. fi
  10919. ;;
  10920. dgux*)
  10921. case $cc_basename in
  10922. ec++*)
  10923. # FIXME: insert proper C++ library support
  10924. ld_shlibs_CXX=no
  10925. ;;
  10926. ghcx*)
  10927. # Green Hills C++ Compiler
  10928. # FIXME: insert proper C++ library support
  10929. ld_shlibs_CXX=no
  10930. ;;
  10931. *)
  10932. # FIXME: insert proper C++ library support
  10933. ld_shlibs_CXX=no
  10934. ;;
  10935. esac
  10936. ;;
  10937. freebsd[12]*)
  10938. # C++ shared libraries reported to be fairly broken before
  10939. # switch to ELF
  10940. ld_shlibs_CXX=no
  10941. ;;
  10942. freebsd-elf*)
  10943. archive_cmds_need_lc_CXX=no
  10944. ;;
  10945. freebsd* | dragonfly*)
  10946. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10947. # conventions
  10948. ld_shlibs_CXX=yes
  10949. ;;
  10950. gnu*)
  10951. ;;
  10952. hpux9*)
  10953. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10954. hardcode_libdir_separator_CXX=:
  10955. export_dynamic_flag_spec_CXX='${wl}-E'
  10956. hardcode_direct_CXX=yes
  10957. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10958. # but as the default
  10959. # location of the library.
  10960. case $cc_basename in
  10961. CC*)
  10962. # FIXME: insert proper C++ library support
  10963. ld_shlibs_CXX=no
  10964. ;;
  10965. aCC*)
  10966. 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'
  10967. # Commands to make compiler produce verbose output that lists
  10968. # what "hidden" libraries, object files and flags are used when
  10969. # linking a shared library.
  10970. #
  10971. # There doesn't appear to be a way to prevent this compiler from
  10972. # explicitly linking system object files so we need to strip them
  10973. # from the output so that they don't get included in the library
  10974. # dependencies.
  10975. 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; $ECHO "X$list" | $Xsed'
  10976. ;;
  10977. *)
  10978. if test "$GXX" = yes; then
  10979. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  10980. else
  10981. # FIXME: insert proper C++ library support
  10982. ld_shlibs_CXX=no
  10983. fi
  10984. ;;
  10985. esac
  10986. ;;
  10987. hpux10*|hpux11*)
  10988. if test $with_gnu_ld = no; then
  10989. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10990. hardcode_libdir_separator_CXX=:
  10991. case $host_cpu in
  10992. hppa*64*|ia64*)
  10993. ;;
  10994. *)
  10995. export_dynamic_flag_spec_CXX='${wl}-E'
  10996. ;;
  10997. esac
  10998. fi
  10999. case $host_cpu in
  11000. hppa*64*|ia64*)
  11001. hardcode_direct_CXX=no
  11002. hardcode_shlibpath_var_CXX=no
  11003. ;;
  11004. *)
  11005. hardcode_direct_CXX=yes
  11006. hardcode_direct_absolute_CXX=yes
  11007. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11008. # but as the default
  11009. # location of the library.
  11010. ;;
  11011. esac
  11012. case $cc_basename in
  11013. CC*)
  11014. # FIXME: insert proper C++ library support
  11015. ld_shlibs_CXX=no
  11016. ;;
  11017. aCC*)
  11018. case $host_cpu in
  11019. hppa*64*)
  11020. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11021. ;;
  11022. ia64*)
  11023. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11024. ;;
  11025. *)
  11026. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11027. ;;
  11028. esac
  11029. # Commands to make compiler produce verbose output that lists
  11030. # what "hidden" libraries, object files and flags are used when
  11031. # linking a shared library.
  11032. #
  11033. # There doesn't appear to be a way to prevent this compiler from
  11034. # explicitly linking system object files so we need to strip them
  11035. # from the output so that they don't get included in the library
  11036. # dependencies.
  11037. 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; $ECHO "X$list" | $Xsed'
  11038. ;;
  11039. *)
  11040. if test "$GXX" = yes; then
  11041. if test $with_gnu_ld = no; then
  11042. case $host_cpu in
  11043. hppa*64*)
  11044. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11045. ;;
  11046. ia64*)
  11047. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11048. ;;
  11049. *)
  11050. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11051. ;;
  11052. esac
  11053. fi
  11054. else
  11055. # FIXME: insert proper C++ library support
  11056. ld_shlibs_CXX=no
  11057. fi
  11058. ;;
  11059. esac
  11060. ;;
  11061. interix[3-9]*)
  11062. hardcode_direct_CXX=no
  11063. hardcode_shlibpath_var_CXX=no
  11064. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11065. export_dynamic_flag_spec_CXX='${wl}-E'
  11066. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11067. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11068. # default) and relocated if they conflict, which is a slow very memory
  11069. # consuming and fragmenting process. To avoid this, we pick a random,
  11070. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11071. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11072. 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'
  11073. 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'
  11074. ;;
  11075. irix5* | irix6*)
  11076. case $cc_basename in
  11077. CC*)
  11078. # SGI C++
  11079. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11080. # Archives containing C++ object files must be created using
  11081. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11082. # necessary to make sure instantiated templates are included
  11083. # in the archive.
  11084. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11085. ;;
  11086. *)
  11087. if test "$GXX" = yes; then
  11088. if test "$with_gnu_ld" = no; then
  11089. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11090. else
  11091. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11092. fi
  11093. fi
  11094. link_all_deplibs_CXX=yes
  11095. ;;
  11096. esac
  11097. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11098. hardcode_libdir_separator_CXX=:
  11099. inherit_rpath_CXX=yes
  11100. ;;
  11101. linux* | k*bsd*-gnu)
  11102. case $cc_basename in
  11103. KCC*)
  11104. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11105. # KCC will only create a shared library if the output file
  11106. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11107. # to its proper name (with version) after linking.
  11108. 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'
  11109. 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'
  11110. # Commands to make compiler produce verbose output that lists
  11111. # what "hidden" libraries, object files and flags are used when
  11112. # linking a shared library.
  11113. #
  11114. # There doesn't appear to be a way to prevent this compiler from
  11115. # explicitly linking system object files so we need to strip them
  11116. # from the output so that they don't get included in the library
  11117. # dependencies.
  11118. 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; $ECHO "X$list" | $Xsed'
  11119. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11120. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11121. # Archives containing C++ object files must be created using
  11122. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11123. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11124. ;;
  11125. icpc* | ecpc* )
  11126. # Intel C++
  11127. with_gnu_ld=yes
  11128. # version 8.0 and above of icpc choke on multiply defined symbols
  11129. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11130. # earlier do not add the objects themselves.
  11131. case `$CC -V 2>&1` in
  11132. *"Version 7."*)
  11133. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11134. 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'
  11135. ;;
  11136. *) # Version 8.0 or newer
  11137. tmp_idyn=
  11138. case $host_cpu in
  11139. ia64*) tmp_idyn=' -i_dynamic';;
  11140. esac
  11141. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11142. 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'
  11143. ;;
  11144. esac
  11145. archive_cmds_need_lc_CXX=no
  11146. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11147. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11148. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11149. ;;
  11150. pgCC* | pgcpp*)
  11151. # Portland Group C++ compiler
  11152. case `$CC -V` in
  11153. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11154. prelink_cmds_CXX='tpldir=Template.dir~
  11155. rm -rf $tpldir~
  11156. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11157. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11158. old_archive_cmds_CXX='tpldir=Template.dir~
  11159. rm -rf $tpldir~
  11160. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11161. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11162. $RANLIB $oldlib'
  11163. archive_cmds_CXX='tpldir=Template.dir~
  11164. rm -rf $tpldir~
  11165. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11166. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11167. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11168. rm -rf $tpldir~
  11169. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11170. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11171. ;;
  11172. *) # Version 6 will use weak symbols
  11173. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11174. 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'
  11175. ;;
  11176. esac
  11177. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11178. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11179. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11180. ;;
  11181. cxx*)
  11182. # Compaq C++
  11183. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11184. 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'
  11185. runpath_var=LD_RUN_PATH
  11186. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11187. hardcode_libdir_separator_CXX=:
  11188. # Commands to make compiler produce verbose output that lists
  11189. # what "hidden" libraries, object files and flags are used when
  11190. # linking a shared library.
  11191. #
  11192. # There doesn't appear to be a way to prevent this compiler from
  11193. # explicitly linking system object files so we need to strip them
  11194. # from the output so that they don't get included in the library
  11195. # dependencies.
  11196. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11197. ;;
  11198. xl*)
  11199. # IBM XL 8.0 on PPC, with GNU ld
  11200. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11201. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11202. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11203. if test "x$supports_anon_versioning" = xyes; then
  11204. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11205. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11206. echo "local: *; };" >> $output_objdir/$libname.ver~
  11207. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11208. fi
  11209. ;;
  11210. *)
  11211. case `$CC -V 2>&1 | sed 5q` in
  11212. *Sun\ C*)
  11213. # Sun C++ 5.9
  11214. no_undefined_flag_CXX=' -zdefs'
  11215. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11216. 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'
  11217. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11218. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11219. compiler_needs_object_CXX=yes
  11220. # Not sure whether something based on
  11221. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11222. # would be better.
  11223. output_verbose_link_cmd='echo'
  11224. # Archives containing C++ object files must be created using
  11225. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11226. # necessary to make sure instantiated templates are included
  11227. # in the archive.
  11228. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11229. ;;
  11230. esac
  11231. ;;
  11232. esac
  11233. ;;
  11234. lynxos*)
  11235. # FIXME: insert proper C++ library support
  11236. ld_shlibs_CXX=no
  11237. ;;
  11238. m88k*)
  11239. # FIXME: insert proper C++ library support
  11240. ld_shlibs_CXX=no
  11241. ;;
  11242. mvs*)
  11243. case $cc_basename in
  11244. cxx*)
  11245. # FIXME: insert proper C++ library support
  11246. ld_shlibs_CXX=no
  11247. ;;
  11248. *)
  11249. # FIXME: insert proper C++ library support
  11250. ld_shlibs_CXX=no
  11251. ;;
  11252. esac
  11253. ;;
  11254. netbsd*)
  11255. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11256. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11257. wlarc=
  11258. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11259. hardcode_direct_CXX=yes
  11260. hardcode_shlibpath_var_CXX=no
  11261. fi
  11262. # Workaround some broken pre-1.5 toolchains
  11263. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11264. ;;
  11265. *nto* | *qnx*)
  11266. ld_shlibs_CXX=yes
  11267. ;;
  11268. openbsd2*)
  11269. # C++ shared libraries are fairly broken
  11270. ld_shlibs_CXX=no
  11271. ;;
  11272. openbsd*)
  11273. if test -f /usr/libexec/ld.so; then
  11274. hardcode_direct_CXX=yes
  11275. hardcode_shlibpath_var_CXX=no
  11276. hardcode_direct_absolute_CXX=yes
  11277. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11278. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11279. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11280. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11281. export_dynamic_flag_spec_CXX='${wl}-E'
  11282. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11283. fi
  11284. output_verbose_link_cmd=echo
  11285. else
  11286. ld_shlibs_CXX=no
  11287. fi
  11288. ;;
  11289. osf3* | osf4* | osf5*)
  11290. case $cc_basename in
  11291. KCC*)
  11292. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11293. # KCC will only create a shared library if the output file
  11294. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11295. # to its proper name (with version) after linking.
  11296. 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'
  11297. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11298. hardcode_libdir_separator_CXX=:
  11299. # Archives containing C++ object files must be created using
  11300. # the KAI C++ compiler.
  11301. case $host in
  11302. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11303. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11304. esac
  11305. ;;
  11306. RCC*)
  11307. # Rational C++ 2.4.1
  11308. # FIXME: insert proper C++ library support
  11309. ld_shlibs_CXX=no
  11310. ;;
  11311. cxx*)
  11312. case $host in
  11313. osf3*)
  11314. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11315. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11316. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11317. ;;
  11318. *)
  11319. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11320. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11321. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11322. echo "-hidden">> $lib.exp~
  11323. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  11324. $RM $lib.exp'
  11325. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11326. ;;
  11327. esac
  11328. hardcode_libdir_separator_CXX=:
  11329. # Commands to make compiler produce verbose output that lists
  11330. # what "hidden" libraries, object files and flags are used when
  11331. # linking a shared library.
  11332. #
  11333. # There doesn't appear to be a way to prevent this compiler from
  11334. # explicitly linking system object files so we need to strip them
  11335. # from the output so that they don't get included in the library
  11336. # dependencies.
  11337. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11338. ;;
  11339. *)
  11340. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11341. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11342. case $host in
  11343. osf3*)
  11344. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11345. ;;
  11346. *)
  11347. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11348. ;;
  11349. esac
  11350. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11351. hardcode_libdir_separator_CXX=:
  11352. # Commands to make compiler produce verbose output that lists
  11353. # what "hidden" libraries, object files and flags are used when
  11354. # linking a shared library.
  11355. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11356. else
  11357. # FIXME: insert proper C++ library support
  11358. ld_shlibs_CXX=no
  11359. fi
  11360. ;;
  11361. esac
  11362. ;;
  11363. psos*)
  11364. # FIXME: insert proper C++ library support
  11365. ld_shlibs_CXX=no
  11366. ;;
  11367. sunos4*)
  11368. case $cc_basename in
  11369. CC*)
  11370. # Sun C++ 4.x
  11371. # FIXME: insert proper C++ library support
  11372. ld_shlibs_CXX=no
  11373. ;;
  11374. lcc*)
  11375. # Lucid
  11376. # FIXME: insert proper C++ library support
  11377. ld_shlibs_CXX=no
  11378. ;;
  11379. *)
  11380. # FIXME: insert proper C++ library support
  11381. ld_shlibs_CXX=no
  11382. ;;
  11383. esac
  11384. ;;
  11385. solaris*)
  11386. case $cc_basename in
  11387. CC*)
  11388. # Sun C++ 4.2, 5.x and Centerline C++
  11389. archive_cmds_need_lc_CXX=yes
  11390. no_undefined_flag_CXX=' -zdefs'
  11391. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11392. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11393. $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'
  11394. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11395. hardcode_shlibpath_var_CXX=no
  11396. case $host_os in
  11397. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11398. *)
  11399. # The compiler driver will combine and reorder linker options,
  11400. # but understands `-z linker_flag'.
  11401. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11402. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11403. ;;
  11404. esac
  11405. link_all_deplibs_CXX=yes
  11406. output_verbose_link_cmd='echo'
  11407. # Archives containing C++ object files must be created using
  11408. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11409. # necessary to make sure instantiated templates are included
  11410. # in the archive.
  11411. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11412. ;;
  11413. gcx*)
  11414. # Green Hills C++ Compiler
  11415. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11416. # The C++ compiler must be used to create the archive.
  11417. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11418. ;;
  11419. *)
  11420. # GNU C++ compiler with Solaris linker
  11421. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11422. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11423. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11424. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11425. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11426. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11427. # Commands to make compiler produce verbose output that lists
  11428. # what "hidden" libraries, object files and flags are used when
  11429. # linking a shared library.
  11430. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11431. else
  11432. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11433. # platform.
  11434. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11435. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11436. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11437. # Commands to make compiler produce verbose output that lists
  11438. # what "hidden" libraries, object files and flags are used when
  11439. # linking a shared library.
  11440. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11441. fi
  11442. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11443. case $host_os in
  11444. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11445. *)
  11446. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11447. ;;
  11448. esac
  11449. fi
  11450. ;;
  11451. esac
  11452. ;;
  11453. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11454. no_undefined_flag_CXX='${wl}-z,text'
  11455. archive_cmds_need_lc_CXX=no
  11456. hardcode_shlibpath_var_CXX=no
  11457. runpath_var='LD_RUN_PATH'
  11458. case $cc_basename in
  11459. CC*)
  11460. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11461. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11462. ;;
  11463. *)
  11464. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11465. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11466. ;;
  11467. esac
  11468. ;;
  11469. sysv5* | sco3.2v5* | sco5v6*)
  11470. # Note: We can NOT use -z defs as we might desire, because we do not
  11471. # link with -lc, and that would cause any symbols used from libc to
  11472. # always be unresolved, which means just about no library would
  11473. # ever link correctly. If we're not using GNU ld we use -z text
  11474. # though, which does catch some bad symbols but isn't as heavy-handed
  11475. # as -z defs.
  11476. no_undefined_flag_CXX='${wl}-z,text'
  11477. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11478. archive_cmds_need_lc_CXX=no
  11479. hardcode_shlibpath_var_CXX=no
  11480. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11481. hardcode_libdir_separator_CXX=':'
  11482. link_all_deplibs_CXX=yes
  11483. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11484. runpath_var='LD_RUN_PATH'
  11485. case $cc_basename in
  11486. CC*)
  11487. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11488. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11489. ;;
  11490. *)
  11491. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11492. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11493. ;;
  11494. esac
  11495. ;;
  11496. tandem*)
  11497. case $cc_basename in
  11498. NCC*)
  11499. # NonStop-UX NCC 3.20
  11500. # FIXME: insert proper C++ library support
  11501. ld_shlibs_CXX=no
  11502. ;;
  11503. *)
  11504. # FIXME: insert proper C++ library support
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. esac
  11508. ;;
  11509. vxworks*)
  11510. # FIXME: insert proper C++ library support
  11511. ld_shlibs_CXX=no
  11512. ;;
  11513. *)
  11514. # FIXME: insert proper C++ library support
  11515. ld_shlibs_CXX=no
  11516. ;;
  11517. esac
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11519. $as_echo "$ld_shlibs_CXX" >&6; }
  11520. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11521. GCC_CXX="$GXX"
  11522. LD_CXX="$LD"
  11523. ## CAVEAT EMPTOR:
  11524. ## There is no encapsulation within the following macros, do not change
  11525. ## the running order or otherwise move them around unless you know exactly
  11526. ## what you are doing...
  11527. # Dependencies to place before and after the object being linked:
  11528. predep_objects_CXX=
  11529. postdep_objects_CXX=
  11530. predeps_CXX=
  11531. postdeps_CXX=
  11532. compiler_lib_search_path_CXX=
  11533. cat > conftest.$ac_ext <<_LT_EOF
  11534. class Foo
  11535. {
  11536. public:
  11537. Foo (void) { a = 0; }
  11538. private:
  11539. int a;
  11540. };
  11541. _LT_EOF
  11542. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11543. (eval $ac_compile) 2>&5
  11544. ac_status=$?
  11545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11546. test $ac_status = 0; }; then
  11547. # Parse the compiler output and extract the necessary
  11548. # objects, libraries and library flags.
  11549. # Sentinel used to keep track of whether or not we are before
  11550. # the conftest object file.
  11551. pre_test_object_deps_done=no
  11552. for p in `eval "$output_verbose_link_cmd"`; do
  11553. case $p in
  11554. -L* | -R* | -l*)
  11555. # Some compilers place space between "-{L,R}" and the path.
  11556. # Remove the space.
  11557. if test $p = "-L" ||
  11558. test $p = "-R"; then
  11559. prev=$p
  11560. continue
  11561. else
  11562. prev=
  11563. fi
  11564. if test "$pre_test_object_deps_done" = no; then
  11565. case $p in
  11566. -L* | -R*)
  11567. # Internal compiler library paths should come after those
  11568. # provided the user. The postdeps already come after the
  11569. # user supplied libs so there is no need to process them.
  11570. if test -z "$compiler_lib_search_path_CXX"; then
  11571. compiler_lib_search_path_CXX="${prev}${p}"
  11572. else
  11573. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11574. fi
  11575. ;;
  11576. # The "-l" case would never come before the object being
  11577. # linked, so don't bother handling this case.
  11578. esac
  11579. else
  11580. if test -z "$postdeps_CXX"; then
  11581. postdeps_CXX="${prev}${p}"
  11582. else
  11583. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11584. fi
  11585. fi
  11586. ;;
  11587. *.$objext)
  11588. # This assumes that the test object file only shows up
  11589. # once in the compiler output.
  11590. if test "$p" = "conftest.$objext"; then
  11591. pre_test_object_deps_done=yes
  11592. continue
  11593. fi
  11594. if test "$pre_test_object_deps_done" = no; then
  11595. if test -z "$predep_objects_CXX"; then
  11596. predep_objects_CXX="$p"
  11597. else
  11598. predep_objects_CXX="$predep_objects_CXX $p"
  11599. fi
  11600. else
  11601. if test -z "$postdep_objects_CXX"; then
  11602. postdep_objects_CXX="$p"
  11603. else
  11604. postdep_objects_CXX="$postdep_objects_CXX $p"
  11605. fi
  11606. fi
  11607. ;;
  11608. *) ;; # Ignore the rest.
  11609. esac
  11610. done
  11611. # Clean up.
  11612. rm -f a.out a.exe
  11613. else
  11614. echo "libtool.m4: error: problem compiling CXX test program"
  11615. fi
  11616. $RM -f confest.$objext
  11617. # PORTME: override above test on systems where it is broken
  11618. case $host_os in
  11619. interix[3-9]*)
  11620. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11621. # hack all around it, let's just trust "g++" to DTRT.
  11622. predep_objects_CXX=
  11623. postdep_objects_CXX=
  11624. postdeps_CXX=
  11625. ;;
  11626. linux*)
  11627. case `$CC -V 2>&1 | sed 5q` in
  11628. *Sun\ C*)
  11629. # Sun C++ 5.9
  11630. # The more standards-conforming stlport4 library is
  11631. # incompatible with the Cstd library. Avoid specifying
  11632. # it if it's in CXXFLAGS. Ignore libCrun as
  11633. # -library=stlport4 depends on it.
  11634. case " $CXX $CXXFLAGS " in
  11635. *" -library=stlport4 "*)
  11636. solaris_use_stlport4=yes
  11637. ;;
  11638. esac
  11639. if test "$solaris_use_stlport4" != yes; then
  11640. postdeps_CXX='-library=Cstd -library=Crun'
  11641. fi
  11642. ;;
  11643. esac
  11644. ;;
  11645. solaris*)
  11646. case $cc_basename in
  11647. CC*)
  11648. # The more standards-conforming stlport4 library is
  11649. # incompatible with the Cstd library. Avoid specifying
  11650. # it if it's in CXXFLAGS. Ignore libCrun as
  11651. # -library=stlport4 depends on it.
  11652. case " $CXX $CXXFLAGS " in
  11653. *" -library=stlport4 "*)
  11654. solaris_use_stlport4=yes
  11655. ;;
  11656. esac
  11657. # Adding this requires a known-good setup of shared libraries for
  11658. # Sun compiler versions before 5.6, else PIC objects from an old
  11659. # archive will be linked into the output, leading to subtle bugs.
  11660. if test "$solaris_use_stlport4" != yes; then
  11661. postdeps_CXX='-library=Cstd -library=Crun'
  11662. fi
  11663. ;;
  11664. esac
  11665. ;;
  11666. esac
  11667. case " $postdeps_CXX " in
  11668. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11669. esac
  11670. compiler_lib_search_dirs_CXX=
  11671. if test -n "${compiler_lib_search_path_CXX}"; then
  11672. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11673. fi
  11674. lt_prog_compiler_wl_CXX=
  11675. lt_prog_compiler_pic_CXX=
  11676. lt_prog_compiler_static_CXX=
  11677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11678. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11679. # C++ specific cases for pic, static, wl, etc.
  11680. if test "$GXX" = yes; then
  11681. lt_prog_compiler_wl_CXX='-Wl,'
  11682. lt_prog_compiler_static_CXX='-static'
  11683. case $host_os in
  11684. aix*)
  11685. # All AIX code is PIC.
  11686. if test "$host_cpu" = ia64; then
  11687. # AIX 5 now supports IA64 processor
  11688. lt_prog_compiler_static_CXX='-Bstatic'
  11689. fi
  11690. ;;
  11691. amigaos*)
  11692. case $host_cpu in
  11693. powerpc)
  11694. # see comment about AmigaOS4 .so support
  11695. lt_prog_compiler_pic_CXX='-fPIC'
  11696. ;;
  11697. m68k)
  11698. # FIXME: we need at least 68020 code to build shared libraries, but
  11699. # adding the `-m68020' flag to GCC prevents building anything better,
  11700. # like `-m68040'.
  11701. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11702. ;;
  11703. esac
  11704. ;;
  11705. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11706. # PIC is the default for these OSes.
  11707. ;;
  11708. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11709. # This hack is so that the source file can tell whether it is being
  11710. # built for inclusion in a dll (and should export symbols for example).
  11711. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11712. # (--disable-auto-import) libraries
  11713. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11714. ;;
  11715. darwin* | rhapsody*)
  11716. # PIC is the default on this platform
  11717. # Common symbols not allowed in MH_DYLIB files
  11718. lt_prog_compiler_pic_CXX='-fno-common'
  11719. ;;
  11720. *djgpp*)
  11721. # DJGPP does not support shared libraries at all
  11722. lt_prog_compiler_pic_CXX=
  11723. ;;
  11724. interix[3-9]*)
  11725. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11726. # Instead, we relocate shared libraries at runtime.
  11727. ;;
  11728. sysv4*MP*)
  11729. if test -d /usr/nec; then
  11730. lt_prog_compiler_pic_CXX=-Kconform_pic
  11731. fi
  11732. ;;
  11733. hpux*)
  11734. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11735. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11736. # sets the default TLS model and affects inlining.
  11737. case $host_cpu in
  11738. hppa*64*)
  11739. ;;
  11740. *)
  11741. lt_prog_compiler_pic_CXX='-fPIC'
  11742. ;;
  11743. esac
  11744. ;;
  11745. *qnx* | *nto*)
  11746. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11747. # it will coredump.
  11748. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11749. ;;
  11750. *)
  11751. lt_prog_compiler_pic_CXX='-fPIC'
  11752. ;;
  11753. esac
  11754. else
  11755. case $host_os in
  11756. aix[4-9]*)
  11757. # All AIX code is PIC.
  11758. if test "$host_cpu" = ia64; then
  11759. # AIX 5 now supports IA64 processor
  11760. lt_prog_compiler_static_CXX='-Bstatic'
  11761. else
  11762. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11763. fi
  11764. ;;
  11765. chorus*)
  11766. case $cc_basename in
  11767. cxch68*)
  11768. # Green Hills C++ Compiler
  11769. # _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"
  11770. ;;
  11771. esac
  11772. ;;
  11773. dgux*)
  11774. case $cc_basename in
  11775. ec++*)
  11776. lt_prog_compiler_pic_CXX='-KPIC'
  11777. ;;
  11778. ghcx*)
  11779. # Green Hills C++ Compiler
  11780. lt_prog_compiler_pic_CXX='-pic'
  11781. ;;
  11782. *)
  11783. ;;
  11784. esac
  11785. ;;
  11786. freebsd* | dragonfly*)
  11787. # FreeBSD uses GNU C++
  11788. ;;
  11789. hpux9* | hpux10* | hpux11*)
  11790. case $cc_basename in
  11791. CC*)
  11792. lt_prog_compiler_wl_CXX='-Wl,'
  11793. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11794. if test "$host_cpu" != ia64; then
  11795. lt_prog_compiler_pic_CXX='+Z'
  11796. fi
  11797. ;;
  11798. aCC*)
  11799. lt_prog_compiler_wl_CXX='-Wl,'
  11800. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11801. case $host_cpu in
  11802. hppa*64*|ia64*)
  11803. # +Z the default
  11804. ;;
  11805. *)
  11806. lt_prog_compiler_pic_CXX='+Z'
  11807. ;;
  11808. esac
  11809. ;;
  11810. *)
  11811. ;;
  11812. esac
  11813. ;;
  11814. interix*)
  11815. # This is c89, which is MS Visual C++ (no shared libs)
  11816. # Anyone wants to do a port?
  11817. ;;
  11818. irix5* | irix6* | nonstopux*)
  11819. case $cc_basename in
  11820. CC*)
  11821. lt_prog_compiler_wl_CXX='-Wl,'
  11822. lt_prog_compiler_static_CXX='-non_shared'
  11823. # CC pic flag -KPIC is the default.
  11824. ;;
  11825. *)
  11826. ;;
  11827. esac
  11828. ;;
  11829. linux* | k*bsd*-gnu)
  11830. case $cc_basename in
  11831. KCC*)
  11832. # KAI C++ Compiler
  11833. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11834. lt_prog_compiler_pic_CXX='-fPIC'
  11835. ;;
  11836. ecpc* )
  11837. # old Intel C++ for x86_64 which still supported -KPIC.
  11838. lt_prog_compiler_wl_CXX='-Wl,'
  11839. lt_prog_compiler_pic_CXX='-KPIC'
  11840. lt_prog_compiler_static_CXX='-static'
  11841. ;;
  11842. icpc* )
  11843. # Intel C++, used to be incompatible with GCC.
  11844. # ICC 10 doesn't accept -KPIC any more.
  11845. lt_prog_compiler_wl_CXX='-Wl,'
  11846. lt_prog_compiler_pic_CXX='-fPIC'
  11847. lt_prog_compiler_static_CXX='-static'
  11848. ;;
  11849. pgCC* | pgcpp*)
  11850. # Portland Group C++ compiler
  11851. lt_prog_compiler_wl_CXX='-Wl,'
  11852. lt_prog_compiler_pic_CXX='-fpic'
  11853. lt_prog_compiler_static_CXX='-Bstatic'
  11854. ;;
  11855. cxx*)
  11856. # Compaq C++
  11857. # Make sure the PIC flag is empty. It appears that all Alpha
  11858. # Linux and Compaq Tru64 Unix objects are PIC.
  11859. lt_prog_compiler_pic_CXX=
  11860. lt_prog_compiler_static_CXX='-non_shared'
  11861. ;;
  11862. xlc* | xlC*)
  11863. # IBM XL 8.0 on PPC
  11864. lt_prog_compiler_wl_CXX='-Wl,'
  11865. lt_prog_compiler_pic_CXX='-qpic'
  11866. lt_prog_compiler_static_CXX='-qstaticlink'
  11867. ;;
  11868. *)
  11869. case `$CC -V 2>&1 | sed 5q` in
  11870. *Sun\ C*)
  11871. # Sun C++ 5.9
  11872. lt_prog_compiler_pic_CXX='-KPIC'
  11873. lt_prog_compiler_static_CXX='-Bstatic'
  11874. lt_prog_compiler_wl_CXX='-Qoption ld '
  11875. ;;
  11876. esac
  11877. ;;
  11878. esac
  11879. ;;
  11880. lynxos*)
  11881. ;;
  11882. m88k*)
  11883. ;;
  11884. mvs*)
  11885. case $cc_basename in
  11886. cxx*)
  11887. lt_prog_compiler_pic_CXX='-W c,exportall'
  11888. ;;
  11889. *)
  11890. ;;
  11891. esac
  11892. ;;
  11893. netbsd*)
  11894. ;;
  11895. *qnx* | *nto*)
  11896. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11897. # it will coredump.
  11898. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11899. ;;
  11900. osf3* | osf4* | osf5*)
  11901. case $cc_basename in
  11902. KCC*)
  11903. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11904. ;;
  11905. RCC*)
  11906. # Rational C++ 2.4.1
  11907. lt_prog_compiler_pic_CXX='-pic'
  11908. ;;
  11909. cxx*)
  11910. # Digital/Compaq C++
  11911. lt_prog_compiler_wl_CXX='-Wl,'
  11912. # Make sure the PIC flag is empty. It appears that all Alpha
  11913. # Linux and Compaq Tru64 Unix objects are PIC.
  11914. lt_prog_compiler_pic_CXX=
  11915. lt_prog_compiler_static_CXX='-non_shared'
  11916. ;;
  11917. *)
  11918. ;;
  11919. esac
  11920. ;;
  11921. psos*)
  11922. ;;
  11923. solaris*)
  11924. case $cc_basename in
  11925. CC*)
  11926. # Sun C++ 4.2, 5.x and Centerline C++
  11927. lt_prog_compiler_pic_CXX='-KPIC'
  11928. lt_prog_compiler_static_CXX='-Bstatic'
  11929. lt_prog_compiler_wl_CXX='-Qoption ld '
  11930. ;;
  11931. gcx*)
  11932. # Green Hills C++ Compiler
  11933. lt_prog_compiler_pic_CXX='-PIC'
  11934. ;;
  11935. *)
  11936. ;;
  11937. esac
  11938. ;;
  11939. sunos4*)
  11940. case $cc_basename in
  11941. CC*)
  11942. # Sun C++ 4.x
  11943. lt_prog_compiler_pic_CXX='-pic'
  11944. lt_prog_compiler_static_CXX='-Bstatic'
  11945. ;;
  11946. lcc*)
  11947. # Lucid
  11948. lt_prog_compiler_pic_CXX='-pic'
  11949. ;;
  11950. *)
  11951. ;;
  11952. esac
  11953. ;;
  11954. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11955. case $cc_basename in
  11956. CC*)
  11957. lt_prog_compiler_wl_CXX='-Wl,'
  11958. lt_prog_compiler_pic_CXX='-KPIC'
  11959. lt_prog_compiler_static_CXX='-Bstatic'
  11960. ;;
  11961. esac
  11962. ;;
  11963. tandem*)
  11964. case $cc_basename in
  11965. NCC*)
  11966. # NonStop-UX NCC 3.20
  11967. lt_prog_compiler_pic_CXX='-KPIC'
  11968. ;;
  11969. *)
  11970. ;;
  11971. esac
  11972. ;;
  11973. vxworks*)
  11974. ;;
  11975. *)
  11976. lt_prog_compiler_can_build_shared_CXX=no
  11977. ;;
  11978. esac
  11979. fi
  11980. case $host_os in
  11981. # For platforms which do not support PIC, -DPIC is meaningless:
  11982. *djgpp*)
  11983. lt_prog_compiler_pic_CXX=
  11984. ;;
  11985. *)
  11986. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11987. ;;
  11988. esac
  11989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11990. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11991. #
  11992. # Check to make sure the PIC flag actually works.
  11993. #
  11994. if test -n "$lt_prog_compiler_pic_CXX"; then
  11995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11996. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11997. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11998. $as_echo_n "(cached) " >&6
  11999. else
  12000. lt_cv_prog_compiler_pic_works_CXX=no
  12001. ac_outfile=conftest.$ac_objext
  12002. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12003. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12004. # Insert the option either (1) after the last *FLAGS variable, or
  12005. # (2) before a word containing "conftest.", or (3) at the end.
  12006. # Note that $ac_compile itself does not contain backslashes and begins
  12007. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12008. # The option is referenced via a variable to avoid confusing sed.
  12009. lt_compile=`echo "$ac_compile" | $SED \
  12010. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12011. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12012. -e 's:$: $lt_compiler_flag:'`
  12013. (eval echo "\"\$as_me:13833: $lt_compile\"" >&5)
  12014. (eval "$lt_compile" 2>conftest.err)
  12015. ac_status=$?
  12016. cat conftest.err >&5
  12017. echo "$as_me:13837: \$? = $ac_status" >&5
  12018. if (exit $ac_status) && test -s "$ac_outfile"; then
  12019. # The compiler can only warn and ignore the option if not recognized
  12020. # So say no if there are warnings other than the usual output.
  12021. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12022. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12023. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12024. lt_cv_prog_compiler_pic_works_CXX=yes
  12025. fi
  12026. fi
  12027. $RM conftest*
  12028. fi
  12029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12030. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12031. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12032. case $lt_prog_compiler_pic_CXX in
  12033. "" | " "*) ;;
  12034. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12035. esac
  12036. else
  12037. lt_prog_compiler_pic_CXX=
  12038. lt_prog_compiler_can_build_shared_CXX=no
  12039. fi
  12040. fi
  12041. #
  12042. # Check to make sure the static flag actually works.
  12043. #
  12044. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12046. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12047. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  12048. $as_echo_n "(cached) " >&6
  12049. else
  12050. lt_cv_prog_compiler_static_works_CXX=no
  12051. save_LDFLAGS="$LDFLAGS"
  12052. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12053. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12054. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12055. # The linker can only warn and ignore the option if not recognized
  12056. # So say no if there are warnings
  12057. if test -s conftest.err; then
  12058. # Append any errors to the config.log.
  12059. cat conftest.err 1>&5
  12060. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12061. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12062. if diff conftest.exp conftest.er2 >/dev/null; then
  12063. lt_cv_prog_compiler_static_works_CXX=yes
  12064. fi
  12065. else
  12066. lt_cv_prog_compiler_static_works_CXX=yes
  12067. fi
  12068. fi
  12069. $RM -r conftest*
  12070. LDFLAGS="$save_LDFLAGS"
  12071. fi
  12072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12073. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12074. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12075. :
  12076. else
  12077. lt_prog_compiler_static_CXX=
  12078. fi
  12079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12080. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12081. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12082. $as_echo_n "(cached) " >&6
  12083. else
  12084. lt_cv_prog_compiler_c_o_CXX=no
  12085. $RM -r conftest 2>/dev/null
  12086. mkdir conftest
  12087. cd conftest
  12088. mkdir out
  12089. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12090. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12091. # Insert the option either (1) after the last *FLAGS variable, or
  12092. # (2) before a word containing "conftest.", or (3) at the end.
  12093. # Note that $ac_compile itself does not contain backslashes and begins
  12094. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12095. lt_compile=`echo "$ac_compile" | $SED \
  12096. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12097. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12098. -e 's:$: $lt_compiler_flag:'`
  12099. (eval echo "\"\$as_me:13932: $lt_compile\"" >&5)
  12100. (eval "$lt_compile" 2>out/conftest.err)
  12101. ac_status=$?
  12102. cat out/conftest.err >&5
  12103. echo "$as_me:13936: \$? = $ac_status" >&5
  12104. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12105. then
  12106. # The compiler can only warn and ignore the option if not recognized
  12107. # So say no if there are warnings
  12108. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12109. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12110. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12111. lt_cv_prog_compiler_c_o_CXX=yes
  12112. fi
  12113. fi
  12114. chmod u+w . 2>&5
  12115. $RM conftest*
  12116. # SGI C++ compiler will create directory out/ii_files/ for
  12117. # template instantiation
  12118. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12119. $RM out/* && rmdir out
  12120. cd ..
  12121. $RM -r conftest
  12122. $RM conftest*
  12123. fi
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12125. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12127. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12128. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12129. $as_echo_n "(cached) " >&6
  12130. else
  12131. lt_cv_prog_compiler_c_o_CXX=no
  12132. $RM -r conftest 2>/dev/null
  12133. mkdir conftest
  12134. cd conftest
  12135. mkdir out
  12136. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12137. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12138. # Insert the option either (1) after the last *FLAGS variable, or
  12139. # (2) before a word containing "conftest.", or (3) at the end.
  12140. # Note that $ac_compile itself does not contain backslashes and begins
  12141. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12142. lt_compile=`echo "$ac_compile" | $SED \
  12143. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12144. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12145. -e 's:$: $lt_compiler_flag:'`
  12146. (eval echo "\"\$as_me:13984: $lt_compile\"" >&5)
  12147. (eval "$lt_compile" 2>out/conftest.err)
  12148. ac_status=$?
  12149. cat out/conftest.err >&5
  12150. echo "$as_me:13988: \$? = $ac_status" >&5
  12151. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12152. then
  12153. # The compiler can only warn and ignore the option if not recognized
  12154. # So say no if there are warnings
  12155. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12156. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12157. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12158. lt_cv_prog_compiler_c_o_CXX=yes
  12159. fi
  12160. fi
  12161. chmod u+w . 2>&5
  12162. $RM conftest*
  12163. # SGI C++ compiler will create directory out/ii_files/ for
  12164. # template instantiation
  12165. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12166. $RM out/* && rmdir out
  12167. cd ..
  12168. $RM -r conftest
  12169. $RM conftest*
  12170. fi
  12171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12172. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12173. hard_links="nottested"
  12174. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12175. # do not overwrite the value of need_locks provided by the user
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12177. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12178. hard_links=yes
  12179. $RM conftest*
  12180. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12181. touch conftest.a
  12182. ln conftest.a conftest.b 2>&5 || hard_links=no
  12183. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12185. $as_echo "$hard_links" >&6; }
  12186. if test "$hard_links" = no; then
  12187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12188. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12189. need_locks=warn
  12190. fi
  12191. else
  12192. need_locks=no
  12193. fi
  12194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12195. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12196. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12197. case $host_os in
  12198. aix[4-9]*)
  12199. # If we're using GNU nm, then we don't want the "-C" option.
  12200. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12201. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12202. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12203. else
  12204. 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'
  12205. fi
  12206. ;;
  12207. pw32*)
  12208. export_symbols_cmds_CXX="$ltdll_cmds"
  12209. ;;
  12210. cygwin* | mingw* | cegcc*)
  12211. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12212. ;;
  12213. *)
  12214. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12215. ;;
  12216. esac
  12217. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12219. $as_echo "$ld_shlibs_CXX" >&6; }
  12220. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12221. with_gnu_ld_CXX=$with_gnu_ld
  12222. #
  12223. # Do we need to explicitly link libc?
  12224. #
  12225. case "x$archive_cmds_need_lc_CXX" in
  12226. x|xyes)
  12227. # Assume -lc should be added
  12228. archive_cmds_need_lc_CXX=yes
  12229. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12230. case $archive_cmds_CXX in
  12231. *'~'*)
  12232. # FIXME: we may have to deal with multi-command sequences.
  12233. ;;
  12234. '$CC '*)
  12235. # Test whether the compiler implicitly links with -lc since on some
  12236. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12237. # to ld, don't add -lc before -lgcc.
  12238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12239. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12240. $RM conftest*
  12241. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12242. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12243. (eval $ac_compile) 2>&5
  12244. ac_status=$?
  12245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12246. test $ac_status = 0; } 2>conftest.err; then
  12247. soname=conftest
  12248. lib=conftest
  12249. libobjs=conftest.$ac_objext
  12250. deplibs=
  12251. wl=$lt_prog_compiler_wl_CXX
  12252. pic_flag=$lt_prog_compiler_pic_CXX
  12253. compiler_flags=-v
  12254. linker_flags=-v
  12255. verstring=
  12256. output_objdir=.
  12257. libname=conftest
  12258. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12259. allow_undefined_flag_CXX=
  12260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12261. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12262. ac_status=$?
  12263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12264. test $ac_status = 0; }
  12265. then
  12266. archive_cmds_need_lc_CXX=no
  12267. else
  12268. archive_cmds_need_lc_CXX=yes
  12269. fi
  12270. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12271. else
  12272. cat conftest.err 1>&5
  12273. fi
  12274. $RM conftest*
  12275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  12276. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  12277. ;;
  12278. esac
  12279. fi
  12280. ;;
  12281. esac
  12282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12283. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12284. library_names_spec=
  12285. libname_spec='lib$name'
  12286. soname_spec=
  12287. shrext_cmds=".so"
  12288. postinstall_cmds=
  12289. postuninstall_cmds=
  12290. finish_cmds=
  12291. finish_eval=
  12292. shlibpath_var=
  12293. shlibpath_overrides_runpath=unknown
  12294. version_type=none
  12295. dynamic_linker="$host_os ld.so"
  12296. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12297. need_lib_prefix=unknown
  12298. hardcode_into_libs=no
  12299. # when you set need_version to no, make sure it does not cause -set_version
  12300. # flags to be left without arguments
  12301. need_version=unknown
  12302. case $host_os in
  12303. aix3*)
  12304. version_type=linux
  12305. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12306. shlibpath_var=LIBPATH
  12307. # AIX 3 has no versioning support, so we append a major version to the name.
  12308. soname_spec='${libname}${release}${shared_ext}$major'
  12309. ;;
  12310. aix[4-9]*)
  12311. version_type=linux
  12312. need_lib_prefix=no
  12313. need_version=no
  12314. hardcode_into_libs=yes
  12315. if test "$host_cpu" = ia64; then
  12316. # AIX 5 supports IA64
  12317. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12318. shlibpath_var=LD_LIBRARY_PATH
  12319. else
  12320. # With GCC up to 2.95.x, collect2 would create an import file
  12321. # for dependence libraries. The import file would start with
  12322. # the line `#! .'. This would cause the generated library to
  12323. # depend on `.', always an invalid library. This was fixed in
  12324. # development snapshots of GCC prior to 3.0.
  12325. case $host_os in
  12326. aix4 | aix4.[01] | aix4.[01].*)
  12327. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12328. echo ' yes '
  12329. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12330. :
  12331. else
  12332. can_build_shared=no
  12333. fi
  12334. ;;
  12335. esac
  12336. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12337. # soname into executable. Probably we can add versioning support to
  12338. # collect2, so additional links can be useful in future.
  12339. if test "$aix_use_runtimelinking" = yes; then
  12340. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12341. # instead of lib<name>.a to let people know that these are not
  12342. # typical AIX shared libraries.
  12343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12344. else
  12345. # We preserve .a as extension for shared libraries through AIX4.2
  12346. # and later when we are not doing run time linking.
  12347. library_names_spec='${libname}${release}.a $libname.a'
  12348. soname_spec='${libname}${release}${shared_ext}$major'
  12349. fi
  12350. shlibpath_var=LIBPATH
  12351. fi
  12352. ;;
  12353. amigaos*)
  12354. case $host_cpu in
  12355. powerpc)
  12356. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12357. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12359. ;;
  12360. m68k)
  12361. library_names_spec='$libname.ixlibrary $libname.a'
  12362. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12363. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  12364. ;;
  12365. esac
  12366. ;;
  12367. beos*)
  12368. library_names_spec='${libname}${shared_ext}'
  12369. dynamic_linker="$host_os ld.so"
  12370. shlibpath_var=LIBRARY_PATH
  12371. ;;
  12372. bsdi[45]*)
  12373. version_type=linux
  12374. need_version=no
  12375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12376. soname_spec='${libname}${release}${shared_ext}$major'
  12377. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12378. shlibpath_var=LD_LIBRARY_PATH
  12379. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12380. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12381. # the default ld.so.conf also contains /usr/contrib/lib and
  12382. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12383. # libtool to hard-code these into programs
  12384. ;;
  12385. cygwin* | mingw* | pw32* | cegcc*)
  12386. version_type=windows
  12387. shrext_cmds=".dll"
  12388. need_version=no
  12389. need_lib_prefix=no
  12390. case $GCC,$host_os in
  12391. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12392. library_names_spec='$libname.dll.a'
  12393. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12394. postinstall_cmds='base_file=`basename \${file}`~
  12395. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12396. dldir=$destdir/`dirname \$dlpath`~
  12397. test -d \$dldir || mkdir -p \$dldir~
  12398. $install_prog $dir/$dlname \$dldir/$dlname~
  12399. chmod a+x \$dldir/$dlname~
  12400. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12401. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12402. fi'
  12403. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12404. dlpath=$dir/\$dldll~
  12405. $RM \$dlpath'
  12406. shlibpath_overrides_runpath=yes
  12407. case $host_os in
  12408. cygwin*)
  12409. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12410. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12411. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12412. ;;
  12413. mingw* | cegcc*)
  12414. # MinGW DLLs use traditional 'lib' prefix
  12415. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12416. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12417. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12418. # It is most probably a Windows format PATH printed by
  12419. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12420. # path with ; separators, and with drive letters. We can handle the
  12421. # drive letters (cygwin fileutils understands them), so leave them,
  12422. # especially as we might pass files found there to a mingw objdump,
  12423. # which wouldn't understand a cygwinified path. Ahh.
  12424. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12425. else
  12426. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12427. fi
  12428. ;;
  12429. pw32*)
  12430. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12431. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12432. ;;
  12433. esac
  12434. ;;
  12435. *)
  12436. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12437. ;;
  12438. esac
  12439. dynamic_linker='Win32 ld.exe'
  12440. # FIXME: first we should search . and the directory the executable is in
  12441. shlibpath_var=PATH
  12442. ;;
  12443. darwin* | rhapsody*)
  12444. dynamic_linker="$host_os dyld"
  12445. version_type=darwin
  12446. need_lib_prefix=no
  12447. need_version=no
  12448. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12449. soname_spec='${libname}${release}${major}$shared_ext'
  12450. shlibpath_overrides_runpath=yes
  12451. shlibpath_var=DYLD_LIBRARY_PATH
  12452. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12453. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12454. ;;
  12455. dgux*)
  12456. version_type=linux
  12457. need_lib_prefix=no
  12458. need_version=no
  12459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12460. soname_spec='${libname}${release}${shared_ext}$major'
  12461. shlibpath_var=LD_LIBRARY_PATH
  12462. ;;
  12463. freebsd1*)
  12464. dynamic_linker=no
  12465. ;;
  12466. freebsd* | dragonfly*)
  12467. # DragonFly does not have aout. When/if they implement a new
  12468. # versioning mechanism, adjust this.
  12469. if test -x /usr/bin/objformat; then
  12470. objformat=`/usr/bin/objformat`
  12471. else
  12472. case $host_os in
  12473. freebsd[123]*) objformat=aout ;;
  12474. *) objformat=elf ;;
  12475. esac
  12476. fi
  12477. version_type=freebsd-$objformat
  12478. case $version_type in
  12479. freebsd-elf*)
  12480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12481. need_version=no
  12482. need_lib_prefix=no
  12483. ;;
  12484. freebsd-*)
  12485. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12486. need_version=yes
  12487. ;;
  12488. esac
  12489. shlibpath_var=LD_LIBRARY_PATH
  12490. case $host_os in
  12491. freebsd2*)
  12492. shlibpath_overrides_runpath=yes
  12493. ;;
  12494. freebsd3.[01]* | freebsdelf3.[01]*)
  12495. shlibpath_overrides_runpath=yes
  12496. hardcode_into_libs=yes
  12497. ;;
  12498. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12499. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12500. shlibpath_overrides_runpath=no
  12501. hardcode_into_libs=yes
  12502. ;;
  12503. *) # from 4.6 on, and DragonFly
  12504. shlibpath_overrides_runpath=yes
  12505. hardcode_into_libs=yes
  12506. ;;
  12507. esac
  12508. ;;
  12509. gnu*)
  12510. version_type=linux
  12511. need_lib_prefix=no
  12512. need_version=no
  12513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12514. soname_spec='${libname}${release}${shared_ext}$major'
  12515. shlibpath_var=LD_LIBRARY_PATH
  12516. hardcode_into_libs=yes
  12517. ;;
  12518. hpux9* | hpux10* | hpux11*)
  12519. # Give a soname corresponding to the major version so that dld.sl refuses to
  12520. # link against other versions.
  12521. version_type=sunos
  12522. need_lib_prefix=no
  12523. need_version=no
  12524. case $host_cpu in
  12525. ia64*)
  12526. shrext_cmds='.so'
  12527. hardcode_into_libs=yes
  12528. dynamic_linker="$host_os dld.so"
  12529. shlibpath_var=LD_LIBRARY_PATH
  12530. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12531. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12532. soname_spec='${libname}${release}${shared_ext}$major'
  12533. if test "X$HPUX_IA64_MODE" = X32; then
  12534. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12535. else
  12536. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12537. fi
  12538. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12539. ;;
  12540. hppa*64*)
  12541. shrext_cmds='.sl'
  12542. hardcode_into_libs=yes
  12543. dynamic_linker="$host_os dld.sl"
  12544. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12545. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12547. soname_spec='${libname}${release}${shared_ext}$major'
  12548. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12549. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12550. ;;
  12551. *)
  12552. shrext_cmds='.sl'
  12553. dynamic_linker="$host_os dld.sl"
  12554. shlibpath_var=SHLIB_PATH
  12555. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12557. soname_spec='${libname}${release}${shared_ext}$major'
  12558. ;;
  12559. esac
  12560. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12561. postinstall_cmds='chmod 555 $lib'
  12562. ;;
  12563. interix[3-9]*)
  12564. version_type=linux
  12565. need_lib_prefix=no
  12566. need_version=no
  12567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12568. soname_spec='${libname}${release}${shared_ext}$major'
  12569. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12570. shlibpath_var=LD_LIBRARY_PATH
  12571. shlibpath_overrides_runpath=no
  12572. hardcode_into_libs=yes
  12573. ;;
  12574. irix5* | irix6* | nonstopux*)
  12575. case $host_os in
  12576. nonstopux*) version_type=nonstopux ;;
  12577. *)
  12578. if test "$lt_cv_prog_gnu_ld" = yes; then
  12579. version_type=linux
  12580. else
  12581. version_type=irix
  12582. fi ;;
  12583. esac
  12584. need_lib_prefix=no
  12585. need_version=no
  12586. soname_spec='${libname}${release}${shared_ext}$major'
  12587. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12588. case $host_os in
  12589. irix5* | nonstopux*)
  12590. libsuff= shlibsuff=
  12591. ;;
  12592. *)
  12593. case $LD in # libtool.m4 will add one of these switches to LD
  12594. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12595. libsuff= shlibsuff= libmagic=32-bit;;
  12596. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12597. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12598. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12599. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12600. *) libsuff= shlibsuff= libmagic=never-match;;
  12601. esac
  12602. ;;
  12603. esac
  12604. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12605. shlibpath_overrides_runpath=no
  12606. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12607. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12608. hardcode_into_libs=yes
  12609. ;;
  12610. # No shared lib support for Linux oldld, aout, or coff.
  12611. linux*oldld* | linux*aout* | linux*coff*)
  12612. dynamic_linker=no
  12613. ;;
  12614. # This must be Linux ELF.
  12615. linux* | k*bsd*-gnu)
  12616. version_type=linux
  12617. need_lib_prefix=no
  12618. need_version=no
  12619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12620. soname_spec='${libname}${release}${shared_ext}$major'
  12621. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12622. shlibpath_var=LD_LIBRARY_PATH
  12623. shlibpath_overrides_runpath=no
  12624. # Some binutils ld are patched to set DT_RUNPATH
  12625. save_LDFLAGS=$LDFLAGS
  12626. save_libdir=$libdir
  12627. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12628. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12630. /* end confdefs.h. */
  12631. int
  12632. main ()
  12633. {
  12634. ;
  12635. return 0;
  12636. }
  12637. _ACEOF
  12638. if ac_fn_cxx_try_link "$LINENO"; then :
  12639. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12640. shlibpath_overrides_runpath=yes
  12641. fi
  12642. fi
  12643. rm -f core conftest.err conftest.$ac_objext \
  12644. conftest$ac_exeext conftest.$ac_ext
  12645. LDFLAGS=$save_LDFLAGS
  12646. libdir=$save_libdir
  12647. # This implies no fast_install, which is unacceptable.
  12648. # Some rework will be needed to allow for fast_install
  12649. # before this can be enabled.
  12650. hardcode_into_libs=yes
  12651. # Add ABI-specific directories to the system library path.
  12652. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  12653. # Append ld.so.conf contents to the search path
  12654. if test -f /etc/ld.so.conf; then
  12655. 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;/^$/d' | tr '\n' ' '`
  12656. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12657. fi
  12658. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12659. # powerpc, because MkLinux only supported shared libraries with the
  12660. # GNU dynamic linker. Since this was broken with cross compilers,
  12661. # most powerpc-linux boxes support dynamic linking these days and
  12662. # people can always --disable-shared, the test was removed, and we
  12663. # assume the GNU/Linux dynamic linker is in use.
  12664. dynamic_linker='GNU/Linux ld.so'
  12665. ;;
  12666. netbsd*)
  12667. version_type=sunos
  12668. need_lib_prefix=no
  12669. need_version=no
  12670. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12671. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12672. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12673. dynamic_linker='NetBSD (a.out) ld.so'
  12674. else
  12675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12676. soname_spec='${libname}${release}${shared_ext}$major'
  12677. dynamic_linker='NetBSD ld.elf_so'
  12678. fi
  12679. shlibpath_var=LD_LIBRARY_PATH
  12680. shlibpath_overrides_runpath=yes
  12681. hardcode_into_libs=yes
  12682. ;;
  12683. newsos6)
  12684. version_type=linux
  12685. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12686. shlibpath_var=LD_LIBRARY_PATH
  12687. shlibpath_overrides_runpath=yes
  12688. ;;
  12689. *nto* | *qnx*)
  12690. version_type=qnx
  12691. need_lib_prefix=no
  12692. need_version=no
  12693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12694. soname_spec='${libname}${release}${shared_ext}$major'
  12695. shlibpath_var=LD_LIBRARY_PATH
  12696. shlibpath_overrides_runpath=no
  12697. hardcode_into_libs=yes
  12698. dynamic_linker='ldqnx.so'
  12699. ;;
  12700. openbsd*)
  12701. version_type=sunos
  12702. sys_lib_dlsearch_path_spec="/usr/lib"
  12703. need_lib_prefix=no
  12704. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12705. case $host_os in
  12706. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12707. *) need_version=no ;;
  12708. esac
  12709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12710. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12711. shlibpath_var=LD_LIBRARY_PATH
  12712. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12713. case $host_os in
  12714. openbsd2.[89] | openbsd2.[89].*)
  12715. shlibpath_overrides_runpath=no
  12716. ;;
  12717. *)
  12718. shlibpath_overrides_runpath=yes
  12719. ;;
  12720. esac
  12721. else
  12722. shlibpath_overrides_runpath=yes
  12723. fi
  12724. ;;
  12725. os2*)
  12726. libname_spec='$name'
  12727. shrext_cmds=".dll"
  12728. need_lib_prefix=no
  12729. library_names_spec='$libname${shared_ext} $libname.a'
  12730. dynamic_linker='OS/2 ld.exe'
  12731. shlibpath_var=LIBPATH
  12732. ;;
  12733. osf3* | osf4* | osf5*)
  12734. version_type=osf
  12735. need_lib_prefix=no
  12736. need_version=no
  12737. soname_spec='${libname}${release}${shared_ext}$major'
  12738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12739. shlibpath_var=LD_LIBRARY_PATH
  12740. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12741. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12742. ;;
  12743. rdos*)
  12744. dynamic_linker=no
  12745. ;;
  12746. solaris*)
  12747. version_type=linux
  12748. need_lib_prefix=no
  12749. need_version=no
  12750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12751. soname_spec='${libname}${release}${shared_ext}$major'
  12752. shlibpath_var=LD_LIBRARY_PATH
  12753. shlibpath_overrides_runpath=yes
  12754. hardcode_into_libs=yes
  12755. # ldd complains unless libraries are executable
  12756. postinstall_cmds='chmod +x $lib'
  12757. ;;
  12758. sunos4*)
  12759. version_type=sunos
  12760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12761. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12762. shlibpath_var=LD_LIBRARY_PATH
  12763. shlibpath_overrides_runpath=yes
  12764. if test "$with_gnu_ld" = yes; then
  12765. need_lib_prefix=no
  12766. fi
  12767. need_version=yes
  12768. ;;
  12769. sysv4 | sysv4.3*)
  12770. version_type=linux
  12771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12772. soname_spec='${libname}${release}${shared_ext}$major'
  12773. shlibpath_var=LD_LIBRARY_PATH
  12774. case $host_vendor in
  12775. sni)
  12776. shlibpath_overrides_runpath=no
  12777. need_lib_prefix=no
  12778. runpath_var=LD_RUN_PATH
  12779. ;;
  12780. siemens)
  12781. need_lib_prefix=no
  12782. ;;
  12783. motorola)
  12784. need_lib_prefix=no
  12785. need_version=no
  12786. shlibpath_overrides_runpath=no
  12787. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12788. ;;
  12789. esac
  12790. ;;
  12791. sysv4*MP*)
  12792. if test -d /usr/nec ;then
  12793. version_type=linux
  12794. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12795. soname_spec='$libname${shared_ext}.$major'
  12796. shlibpath_var=LD_LIBRARY_PATH
  12797. fi
  12798. ;;
  12799. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12800. version_type=freebsd-elf
  12801. need_lib_prefix=no
  12802. need_version=no
  12803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12804. soname_spec='${libname}${release}${shared_ext}$major'
  12805. shlibpath_var=LD_LIBRARY_PATH
  12806. shlibpath_overrides_runpath=yes
  12807. hardcode_into_libs=yes
  12808. if test "$with_gnu_ld" = yes; then
  12809. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12810. else
  12811. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12812. case $host_os in
  12813. sco3.2v5*)
  12814. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12815. ;;
  12816. esac
  12817. fi
  12818. sys_lib_dlsearch_path_spec='/usr/lib'
  12819. ;;
  12820. tpf*)
  12821. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12822. version_type=linux
  12823. need_lib_prefix=no
  12824. need_version=no
  12825. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12826. shlibpath_var=LD_LIBRARY_PATH
  12827. shlibpath_overrides_runpath=no
  12828. hardcode_into_libs=yes
  12829. ;;
  12830. uts4*)
  12831. version_type=linux
  12832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12833. soname_spec='${libname}${release}${shared_ext}$major'
  12834. shlibpath_var=LD_LIBRARY_PATH
  12835. ;;
  12836. *)
  12837. dynamic_linker=no
  12838. ;;
  12839. esac
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12841. $as_echo "$dynamic_linker" >&6; }
  12842. test "$dynamic_linker" = no && can_build_shared=no
  12843. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12844. if test "$GCC" = yes; then
  12845. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12846. fi
  12847. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12848. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12849. fi
  12850. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12851. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12852. fi
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12854. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12855. hardcode_action_CXX=
  12856. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12857. test -n "$runpath_var_CXX" ||
  12858. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12859. # We can hardcode non-existent directories.
  12860. if test "$hardcode_direct_CXX" != no &&
  12861. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12862. # have to relink, otherwise we might link with an installed library
  12863. # when we should be linking with a yet-to-be-installed one
  12864. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12865. test "$hardcode_minus_L_CXX" != no; then
  12866. # Linking always hardcodes the temporary library directory.
  12867. hardcode_action_CXX=relink
  12868. else
  12869. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12870. hardcode_action_CXX=immediate
  12871. fi
  12872. else
  12873. # We cannot hardcode anything, or else we can only hardcode existing
  12874. # directories.
  12875. hardcode_action_CXX=unsupported
  12876. fi
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12878. $as_echo "$hardcode_action_CXX" >&6; }
  12879. if test "$hardcode_action_CXX" = relink ||
  12880. test "$inherit_rpath_CXX" = yes; then
  12881. # Fast installation is not supported
  12882. enable_fast_install=no
  12883. elif test "$shlibpath_overrides_runpath" = yes ||
  12884. test "$enable_shared" = no; then
  12885. # Fast installation is not necessary
  12886. enable_fast_install=needless
  12887. fi
  12888. fi # test -n "$compiler"
  12889. CC=$lt_save_CC
  12890. LDCXX=$LD
  12891. LD=$lt_save_LD
  12892. GCC=$lt_save_GCC
  12893. with_gnu_ld=$lt_save_with_gnu_ld
  12894. lt_cv_path_LDCXX=$lt_cv_path_LD
  12895. lt_cv_path_LD=$lt_save_path_LD
  12896. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12897. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12898. fi # test "$_lt_caught_CXX_error" != yes
  12899. ac_ext=c
  12900. ac_cpp='$CPP $CPPFLAGS'
  12901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12904. ac_config_commands="$ac_config_commands libtool"
  12905. # Only expand once:
  12906. # Checks for header files.
  12907. ac_header_dirent=no
  12908. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  12909. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  12910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  12911. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  12912. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  12913. $as_echo_n "(cached) " >&6
  12914. else
  12915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12916. /* end confdefs.h. */
  12917. #include <sys/types.h>
  12918. #include <$ac_hdr>
  12919. int
  12920. main ()
  12921. {
  12922. if ((DIR *) 0)
  12923. return 0;
  12924. ;
  12925. return 0;
  12926. }
  12927. _ACEOF
  12928. if ac_fn_c_try_compile "$LINENO"; then :
  12929. eval "$as_ac_Header=yes"
  12930. else
  12931. eval "$as_ac_Header=no"
  12932. fi
  12933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12934. fi
  12935. eval ac_res=\$$as_ac_Header
  12936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12937. $as_echo "$ac_res" >&6; }
  12938. eval as_val=\$$as_ac_Header
  12939. if test "x$as_val" = x""yes; then :
  12940. cat >>confdefs.h <<_ACEOF
  12941. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  12942. _ACEOF
  12943. ac_header_dirent=$ac_hdr; break
  12944. fi
  12945. done
  12946. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  12947. if test $ac_header_dirent = dirent.h; then
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12949. $as_echo_n "checking for library containing opendir... " >&6; }
  12950. if test "${ac_cv_search_opendir+set}" = set; then :
  12951. $as_echo_n "(cached) " >&6
  12952. else
  12953. ac_func_search_save_LIBS=$LIBS
  12954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12955. /* end confdefs.h. */
  12956. /* Override any GCC internal prototype to avoid an error.
  12957. Use char because int might match the return type of a GCC
  12958. builtin and then its argument prototype would still apply. */
  12959. #ifdef __cplusplus
  12960. extern "C"
  12961. #endif
  12962. char opendir ();
  12963. int
  12964. main ()
  12965. {
  12966. return opendir ();
  12967. ;
  12968. return 0;
  12969. }
  12970. _ACEOF
  12971. for ac_lib in '' dir; do
  12972. if test -z "$ac_lib"; then
  12973. ac_res="none required"
  12974. else
  12975. ac_res=-l$ac_lib
  12976. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12977. fi
  12978. if ac_fn_c_try_link "$LINENO"; then :
  12979. ac_cv_search_opendir=$ac_res
  12980. fi
  12981. rm -f core conftest.err conftest.$ac_objext \
  12982. conftest$ac_exeext
  12983. if test "${ac_cv_search_opendir+set}" = set; then :
  12984. break
  12985. fi
  12986. done
  12987. if test "${ac_cv_search_opendir+set}" = set; then :
  12988. else
  12989. ac_cv_search_opendir=no
  12990. fi
  12991. rm conftest.$ac_ext
  12992. LIBS=$ac_func_search_save_LIBS
  12993. fi
  12994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12995. $as_echo "$ac_cv_search_opendir" >&6; }
  12996. ac_res=$ac_cv_search_opendir
  12997. if test "$ac_res" != no; then :
  12998. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12999. fi
  13000. else
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13002. $as_echo_n "checking for library containing opendir... " >&6; }
  13003. if test "${ac_cv_search_opendir+set}" = set; then :
  13004. $as_echo_n "(cached) " >&6
  13005. else
  13006. ac_func_search_save_LIBS=$LIBS
  13007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13008. /* end confdefs.h. */
  13009. /* Override any GCC internal prototype to avoid an error.
  13010. Use char because int might match the return type of a GCC
  13011. builtin and then its argument prototype would still apply. */
  13012. #ifdef __cplusplus
  13013. extern "C"
  13014. #endif
  13015. char opendir ();
  13016. int
  13017. main ()
  13018. {
  13019. return opendir ();
  13020. ;
  13021. return 0;
  13022. }
  13023. _ACEOF
  13024. for ac_lib in '' x; do
  13025. if test -z "$ac_lib"; then
  13026. ac_res="none required"
  13027. else
  13028. ac_res=-l$ac_lib
  13029. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13030. fi
  13031. if ac_fn_c_try_link "$LINENO"; then :
  13032. ac_cv_search_opendir=$ac_res
  13033. fi
  13034. rm -f core conftest.err conftest.$ac_objext \
  13035. conftest$ac_exeext
  13036. if test "${ac_cv_search_opendir+set}" = set; then :
  13037. break
  13038. fi
  13039. done
  13040. if test "${ac_cv_search_opendir+set}" = set; then :
  13041. else
  13042. ac_cv_search_opendir=no
  13043. fi
  13044. rm conftest.$ac_ext
  13045. LIBS=$ac_func_search_save_LIBS
  13046. fi
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13048. $as_echo "$ac_cv_search_opendir" >&6; }
  13049. ac_res=$ac_cv_search_opendir
  13050. if test "$ac_res" != no; then :
  13051. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13052. fi
  13053. fi
  13054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13055. $as_echo_n "checking for ANSI C header files... " >&6; }
  13056. if test "${ac_cv_header_stdc+set}" = set; then :
  13057. $as_echo_n "(cached) " >&6
  13058. else
  13059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13060. /* end confdefs.h. */
  13061. #include <stdlib.h>
  13062. #include <stdarg.h>
  13063. #include <string.h>
  13064. #include <float.h>
  13065. int
  13066. main ()
  13067. {
  13068. ;
  13069. return 0;
  13070. }
  13071. _ACEOF
  13072. if ac_fn_c_try_compile "$LINENO"; then :
  13073. ac_cv_header_stdc=yes
  13074. else
  13075. ac_cv_header_stdc=no
  13076. fi
  13077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13078. if test $ac_cv_header_stdc = yes; then
  13079. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13081. /* end confdefs.h. */
  13082. #include <string.h>
  13083. _ACEOF
  13084. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13085. $EGREP "memchr" >/dev/null 2>&1; then :
  13086. else
  13087. ac_cv_header_stdc=no
  13088. fi
  13089. rm -f conftest*
  13090. fi
  13091. if test $ac_cv_header_stdc = yes; then
  13092. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13094. /* end confdefs.h. */
  13095. #include <stdlib.h>
  13096. _ACEOF
  13097. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13098. $EGREP "free" >/dev/null 2>&1; then :
  13099. else
  13100. ac_cv_header_stdc=no
  13101. fi
  13102. rm -f conftest*
  13103. fi
  13104. if test $ac_cv_header_stdc = yes; then
  13105. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13106. if test "$cross_compiling" = yes; then :
  13107. :
  13108. else
  13109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13110. /* end confdefs.h. */
  13111. #include <ctype.h>
  13112. #include <stdlib.h>
  13113. #if ((' ' & 0x0FF) == 0x020)
  13114. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13115. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13116. #else
  13117. # define ISLOWER(c) \
  13118. (('a' <= (c) && (c) <= 'i') \
  13119. || ('j' <= (c) && (c) <= 'r') \
  13120. || ('s' <= (c) && (c) <= 'z'))
  13121. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13122. #endif
  13123. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13124. int
  13125. main ()
  13126. {
  13127. int i;
  13128. for (i = 0; i < 256; i++)
  13129. if (XOR (islower (i), ISLOWER (i))
  13130. || toupper (i) != TOUPPER (i))
  13131. return 2;
  13132. return 0;
  13133. }
  13134. _ACEOF
  13135. if ac_fn_c_try_run "$LINENO"; then :
  13136. else
  13137. ac_cv_header_stdc=no
  13138. fi
  13139. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13140. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13141. fi
  13142. fi
  13143. fi
  13144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13145. $as_echo "$ac_cv_header_stdc" >&6; }
  13146. if test $ac_cv_header_stdc = yes; then
  13147. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13148. fi
  13149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13150. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13151. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  13152. $as_echo_n "(cached) " >&6
  13153. else
  13154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13155. /* end confdefs.h. */
  13156. #include <sys/types.h>
  13157. #include <sys/wait.h>
  13158. #ifndef WEXITSTATUS
  13159. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13160. #endif
  13161. #ifndef WIFEXITED
  13162. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13163. #endif
  13164. int
  13165. main ()
  13166. {
  13167. int s;
  13168. wait (&s);
  13169. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13170. ;
  13171. return 0;
  13172. }
  13173. _ACEOF
  13174. if ac_fn_c_try_compile "$LINENO"; then :
  13175. ac_cv_header_sys_wait_h=yes
  13176. else
  13177. ac_cv_header_sys_wait_h=no
  13178. fi
  13179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13180. fi
  13181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13182. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13183. if test $ac_cv_header_sys_wait_h = yes; then
  13184. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13185. fi
  13186. 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
  13187. do :
  13188. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13189. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13190. eval as_val=\$$as_ac_Header
  13191. if test "x$as_val" = x""yes; then :
  13192. cat >>confdefs.h <<_ACEOF
  13193. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13194. _ACEOF
  13195. fi
  13196. done
  13197. # Checks for typedefs, structures, and compiler characteristics.
  13198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13199. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13200. if test "${ac_cv_header_stat_broken+set}" = set; then :
  13201. $as_echo_n "(cached) " >&6
  13202. else
  13203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13204. /* end confdefs.h. */
  13205. #include <sys/types.h>
  13206. #include <sys/stat.h>
  13207. #if defined S_ISBLK && defined S_IFDIR
  13208. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13209. #endif
  13210. #if defined S_ISBLK && defined S_IFCHR
  13211. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13212. #endif
  13213. #if defined S_ISLNK && defined S_IFREG
  13214. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13215. #endif
  13216. #if defined S_ISSOCK && defined S_IFREG
  13217. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13218. #endif
  13219. _ACEOF
  13220. if ac_fn_c_try_compile "$LINENO"; then :
  13221. ac_cv_header_stat_broken=no
  13222. else
  13223. ac_cv_header_stat_broken=yes
  13224. fi
  13225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13226. fi
  13227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13228. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13229. if test $ac_cv_header_stat_broken = yes; then
  13230. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13231. fi
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13233. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13234. if test "${ac_cv_c_const+set}" = set; then :
  13235. $as_echo_n "(cached) " >&6
  13236. else
  13237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13238. /* end confdefs.h. */
  13239. int
  13240. main ()
  13241. {
  13242. /* FIXME: Include the comments suggested by Paul. */
  13243. #ifndef __cplusplus
  13244. /* Ultrix mips cc rejects this. */
  13245. typedef int charset[2];
  13246. const charset cs;
  13247. /* SunOS 4.1.1 cc rejects this. */
  13248. char const *const *pcpcc;
  13249. char **ppc;
  13250. /* NEC SVR4.0.2 mips cc rejects this. */
  13251. struct point {int x, y;};
  13252. static struct point const zero = {0,0};
  13253. /* AIX XL C 1.02.0.0 rejects this.
  13254. It does not let you subtract one const X* pointer from another in
  13255. an arm of an if-expression whose if-part is not a constant
  13256. expression */
  13257. const char *g = "string";
  13258. pcpcc = &g + (g ? g-g : 0);
  13259. /* HPUX 7.0 cc rejects these. */
  13260. ++pcpcc;
  13261. ppc = (char**) pcpcc;
  13262. pcpcc = (char const *const *) ppc;
  13263. { /* SCO 3.2v4 cc rejects this. */
  13264. char *t;
  13265. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13266. *t++ = 0;
  13267. if (s) return 0;
  13268. }
  13269. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13270. int x[] = {25, 17};
  13271. const int *foo = &x[0];
  13272. ++foo;
  13273. }
  13274. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13275. typedef const int *iptr;
  13276. iptr p = 0;
  13277. ++p;
  13278. }
  13279. { /* AIX XL C 1.02.0.0 rejects this saying
  13280. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13281. struct s { int j; const int *ap[3]; };
  13282. struct s *b; b->j = 5;
  13283. }
  13284. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13285. const int foo = 10;
  13286. if (!foo) return 0;
  13287. }
  13288. return !cs[0] && !zero.x;
  13289. #endif
  13290. ;
  13291. return 0;
  13292. }
  13293. _ACEOF
  13294. if ac_fn_c_try_compile "$LINENO"; then :
  13295. ac_cv_c_const=yes
  13296. else
  13297. ac_cv_c_const=no
  13298. fi
  13299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13300. fi
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13302. $as_echo "$ac_cv_c_const" >&6; }
  13303. if test $ac_cv_c_const = no; then
  13304. $as_echo "#define const /**/" >>confdefs.h
  13305. fi
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  13307. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  13308. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  13309. $as_echo_n "(cached) " >&6
  13310. else
  13311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13312. /* end confdefs.h. */
  13313. #include <stdbool.h>
  13314. #ifndef bool
  13315. "error: bool is not defined"
  13316. #endif
  13317. #ifndef false
  13318. "error: false is not defined"
  13319. #endif
  13320. #if false
  13321. "error: false is not 0"
  13322. #endif
  13323. #ifndef true
  13324. "error: true is not defined"
  13325. #endif
  13326. #if true != 1
  13327. "error: true is not 1"
  13328. #endif
  13329. #ifndef __bool_true_false_are_defined
  13330. "error: __bool_true_false_are_defined is not defined"
  13331. #endif
  13332. struct s { _Bool s: 1; _Bool t; } s;
  13333. char a[true == 1 ? 1 : -1];
  13334. char b[false == 0 ? 1 : -1];
  13335. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  13336. char d[(bool) 0.5 == true ? 1 : -1];
  13337. bool e = &s;
  13338. char f[(_Bool) 0.0 == false ? 1 : -1];
  13339. char g[true];
  13340. char h[sizeof (_Bool)];
  13341. char i[sizeof s.t];
  13342. enum { j = false, k = true, l = false * true, m = true * 256 };
  13343. /* The following fails for
  13344. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  13345. _Bool n[m];
  13346. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  13347. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  13348. # if defined __xlc__ || defined __GNUC__
  13349. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  13350. reported by James Lemley on 2005-10-05; see
  13351. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  13352. This test is not quite right, since xlc is allowed to
  13353. reject this program, as the initializer for xlcbug is
  13354. not one of the forms that C requires support for.
  13355. However, doing the test right would require a runtime
  13356. test, and that would make cross-compilation harder.
  13357. Let us hope that IBM fixes the xlc bug, and also adds
  13358. support for this kind of constant expression. In the
  13359. meantime, this test will reject xlc, which is OK, since
  13360. our stdbool.h substitute should suffice. We also test
  13361. this with GCC, where it should work, to detect more
  13362. quickly whether someone messes up the test in the
  13363. future. */
  13364. char digs[] = "0123456789";
  13365. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  13366. # endif
  13367. /* Catch a bug in an HP-UX C compiler. See
  13368. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  13369. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  13370. */
  13371. _Bool q = true;
  13372. _Bool *pq = &q;
  13373. int
  13374. main ()
  13375. {
  13376. *pq |= q;
  13377. *pq |= ! q;
  13378. /* Refer to every declared value, to avoid compiler optimizations. */
  13379. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  13380. + !m + !n + !o + !p + !q + !pq);
  13381. ;
  13382. return 0;
  13383. }
  13384. _ACEOF
  13385. if ac_fn_c_try_compile "$LINENO"; then :
  13386. ac_cv_header_stdbool_h=yes
  13387. else
  13388. ac_cv_header_stdbool_h=no
  13389. fi
  13390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13391. fi
  13392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  13393. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  13394. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  13395. if test "x$ac_cv_type__Bool" = x""yes; then :
  13396. cat >>confdefs.h <<_ACEOF
  13397. #define HAVE__BOOL 1
  13398. _ACEOF
  13399. fi
  13400. if test $ac_cv_header_stdbool_h = yes; then
  13401. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  13402. fi
  13403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  13404. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  13405. if test "${ac_cv_type_uid_t+set}" = set; then :
  13406. $as_echo_n "(cached) " >&6
  13407. else
  13408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13409. /* end confdefs.h. */
  13410. #include <sys/types.h>
  13411. _ACEOF
  13412. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13413. $EGREP "uid_t" >/dev/null 2>&1; then :
  13414. ac_cv_type_uid_t=yes
  13415. else
  13416. ac_cv_type_uid_t=no
  13417. fi
  13418. rm -f conftest*
  13419. fi
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  13421. $as_echo "$ac_cv_type_uid_t" >&6; }
  13422. if test $ac_cv_type_uid_t = no; then
  13423. $as_echo "#define uid_t int" >>confdefs.h
  13424. $as_echo "#define gid_t int" >>confdefs.h
  13425. fi
  13426. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  13427. if test "x$ac_cv_type_pid_t" = x""yes; then :
  13428. else
  13429. cat >>confdefs.h <<_ACEOF
  13430. #define pid_t int
  13431. _ACEOF
  13432. fi
  13433. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13434. if test "x$ac_cv_type_size_t" = x""yes; then :
  13435. else
  13436. cat >>confdefs.h <<_ACEOF
  13437. #define size_t unsigned int
  13438. _ACEOF
  13439. fi
  13440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13441. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13442. if test "${ac_cv_header_time+set}" = set; then :
  13443. $as_echo_n "(cached) " >&6
  13444. else
  13445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13446. /* end confdefs.h. */
  13447. #include <sys/types.h>
  13448. #include <sys/time.h>
  13449. #include <time.h>
  13450. int
  13451. main ()
  13452. {
  13453. if ((struct tm *) 0)
  13454. return 0;
  13455. ;
  13456. return 0;
  13457. }
  13458. _ACEOF
  13459. if ac_fn_c_try_compile "$LINENO"; then :
  13460. ac_cv_header_time=yes
  13461. else
  13462. ac_cv_header_time=no
  13463. fi
  13464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13465. fi
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13467. $as_echo "$ac_cv_header_time" >&6; }
  13468. if test $ac_cv_header_time = yes; then
  13469. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13470. fi
  13471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  13472. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  13473. if test "${ac_cv_struct_tm+set}" = set; then :
  13474. $as_echo_n "(cached) " >&6
  13475. else
  13476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13477. /* end confdefs.h. */
  13478. #include <sys/types.h>
  13479. #include <time.h>
  13480. int
  13481. main ()
  13482. {
  13483. struct tm tm;
  13484. int *p = &tm.tm_sec;
  13485. return !p;
  13486. ;
  13487. return 0;
  13488. }
  13489. _ACEOF
  13490. if ac_fn_c_try_compile "$LINENO"; then :
  13491. ac_cv_struct_tm=time.h
  13492. else
  13493. ac_cv_struct_tm=sys/time.h
  13494. fi
  13495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13496. fi
  13497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  13498. $as_echo "$ac_cv_struct_tm" >&6; }
  13499. if test $ac_cv_struct_tm = sys/time.h; then
  13500. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  13501. fi
  13502. # Checks for library functions.
  13503. for ac_header in unistd.h
  13504. do :
  13505. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  13506. if test "x$ac_cv_header_unistd_h" = x""yes; then :
  13507. cat >>confdefs.h <<_ACEOF
  13508. #define HAVE_UNISTD_H 1
  13509. _ACEOF
  13510. fi
  13511. done
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  13513. $as_echo_n "checking for working chown... " >&6; }
  13514. if test "${ac_cv_func_chown_works+set}" = set; then :
  13515. $as_echo_n "(cached) " >&6
  13516. else
  13517. if test "$cross_compiling" = yes; then :
  13518. ac_cv_func_chown_works=no
  13519. else
  13520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13521. /* end confdefs.h. */
  13522. $ac_includes_default
  13523. #include <fcntl.h>
  13524. int
  13525. main ()
  13526. {
  13527. char *f = "conftest.chown";
  13528. struct stat before, after;
  13529. if (creat (f, 0600) < 0)
  13530. return 1;
  13531. if (stat (f, &before) < 0)
  13532. return 1;
  13533. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  13534. return 1;
  13535. if (stat (f, &after) < 0)
  13536. return 1;
  13537. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  13538. ;
  13539. return 0;
  13540. }
  13541. _ACEOF
  13542. if ac_fn_c_try_run "$LINENO"; then :
  13543. ac_cv_func_chown_works=yes
  13544. else
  13545. ac_cv_func_chown_works=no
  13546. fi
  13547. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13548. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13549. fi
  13550. rm -f conftest.chown
  13551. fi
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  13553. $as_echo "$ac_cv_func_chown_works" >&6; }
  13554. if test $ac_cv_func_chown_works = yes; then
  13555. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  13556. fi
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  13558. $as_echo_n "checking whether closedir returns void... " >&6; }
  13559. if test "${ac_cv_func_closedir_void+set}" = set; then :
  13560. $as_echo_n "(cached) " >&6
  13561. else
  13562. if test "$cross_compiling" = yes; then :
  13563. ac_cv_func_closedir_void=yes
  13564. else
  13565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13566. /* end confdefs.h. */
  13567. $ac_includes_default
  13568. #include <$ac_header_dirent>
  13569. #ifndef __cplusplus
  13570. int closedir ();
  13571. #endif
  13572. int
  13573. main ()
  13574. {
  13575. return closedir (opendir (".")) != 0;
  13576. ;
  13577. return 0;
  13578. }
  13579. _ACEOF
  13580. if ac_fn_c_try_run "$LINENO"; then :
  13581. ac_cv_func_closedir_void=no
  13582. else
  13583. ac_cv_func_closedir_void=yes
  13584. fi
  13585. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13586. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13587. fi
  13588. fi
  13589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  13590. $as_echo "$ac_cv_func_closedir_void" >&6; }
  13591. if test $ac_cv_func_closedir_void = yes; then
  13592. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  13593. fi
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  13595. $as_echo_n "checking for error_at_line... " >&6; }
  13596. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  13597. $as_echo_n "(cached) " >&6
  13598. else
  13599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13600. /* end confdefs.h. */
  13601. #include <error.h>
  13602. int
  13603. main ()
  13604. {
  13605. error_at_line (0, 0, "", 0, "an error occurred");
  13606. ;
  13607. return 0;
  13608. }
  13609. _ACEOF
  13610. if ac_fn_c_try_link "$LINENO"; then :
  13611. ac_cv_lib_error_at_line=yes
  13612. else
  13613. ac_cv_lib_error_at_line=no
  13614. fi
  13615. rm -f core conftest.err conftest.$ac_objext \
  13616. conftest$ac_exeext conftest.$ac_ext
  13617. fi
  13618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  13619. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  13620. if test $ac_cv_lib_error_at_line = no; then
  13621. case " $LIBOBJS " in
  13622. *" error.$ac_objext "* ) ;;
  13623. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  13624. ;;
  13625. esac
  13626. fi
  13627. for ac_header in vfork.h
  13628. do :
  13629. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  13630. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  13631. cat >>confdefs.h <<_ACEOF
  13632. #define HAVE_VFORK_H 1
  13633. _ACEOF
  13634. fi
  13635. done
  13636. for ac_func in fork vfork
  13637. do :
  13638. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13639. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13640. eval as_val=\$$as_ac_var
  13641. if test "x$as_val" = x""yes; then :
  13642. cat >>confdefs.h <<_ACEOF
  13643. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13644. _ACEOF
  13645. fi
  13646. done
  13647. if test "x$ac_cv_func_fork" = xyes; then
  13648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  13649. $as_echo_n "checking for working fork... " >&6; }
  13650. if test "${ac_cv_func_fork_works+set}" = set; then :
  13651. $as_echo_n "(cached) " >&6
  13652. else
  13653. if test "$cross_compiling" = yes; then :
  13654. ac_cv_func_fork_works=cross
  13655. else
  13656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13657. /* end confdefs.h. */
  13658. $ac_includes_default
  13659. int
  13660. main ()
  13661. {
  13662. /* By Ruediger Kuhlmann. */
  13663. return fork () < 0;
  13664. ;
  13665. return 0;
  13666. }
  13667. _ACEOF
  13668. if ac_fn_c_try_run "$LINENO"; then :
  13669. ac_cv_func_fork_works=yes
  13670. else
  13671. ac_cv_func_fork_works=no
  13672. fi
  13673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13674. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13675. fi
  13676. fi
  13677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  13678. $as_echo "$ac_cv_func_fork_works" >&6; }
  13679. else
  13680. ac_cv_func_fork_works=$ac_cv_func_fork
  13681. fi
  13682. if test "x$ac_cv_func_fork_works" = xcross; then
  13683. case $host in
  13684. *-*-amigaos* | *-*-msdosdjgpp*)
  13685. # Override, as these systems have only a dummy fork() stub
  13686. ac_cv_func_fork_works=no
  13687. ;;
  13688. *)
  13689. ac_cv_func_fork_works=yes
  13690. ;;
  13691. esac
  13692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  13693. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  13694. fi
  13695. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13696. if test "x$ac_cv_func_vfork" = xyes; then
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  13698. $as_echo_n "checking for working vfork... " >&6; }
  13699. if test "${ac_cv_func_vfork_works+set}" = set; then :
  13700. $as_echo_n "(cached) " >&6
  13701. else
  13702. if test "$cross_compiling" = yes; then :
  13703. ac_cv_func_vfork_works=cross
  13704. else
  13705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13706. /* end confdefs.h. */
  13707. /* Thanks to Paul Eggert for this test. */
  13708. $ac_includes_default
  13709. #include <sys/wait.h>
  13710. #ifdef HAVE_VFORK_H
  13711. # include <vfork.h>
  13712. #endif
  13713. /* On some sparc systems, changes by the child to local and incoming
  13714. argument registers are propagated back to the parent. The compiler
  13715. is told about this with #include <vfork.h>, but some compilers
  13716. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  13717. static variable whose address is put into a register that is
  13718. clobbered by the vfork. */
  13719. static void
  13720. #ifdef __cplusplus
  13721. sparc_address_test (int arg)
  13722. # else
  13723. sparc_address_test (arg) int arg;
  13724. #endif
  13725. {
  13726. static pid_t child;
  13727. if (!child) {
  13728. child = vfork ();
  13729. if (child < 0) {
  13730. perror ("vfork");
  13731. _exit(2);
  13732. }
  13733. if (!child) {
  13734. arg = getpid();
  13735. write(-1, "", 0);
  13736. _exit (arg);
  13737. }
  13738. }
  13739. }
  13740. int
  13741. main ()
  13742. {
  13743. pid_t parent = getpid ();
  13744. pid_t child;
  13745. sparc_address_test (0);
  13746. child = vfork ();
  13747. if (child == 0) {
  13748. /* Here is another test for sparc vfork register problems. This
  13749. test uses lots of local variables, at least as many local
  13750. variables as main has allocated so far including compiler
  13751. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  13752. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  13753. reuse the register of parent for one of the local variables,
  13754. since it will think that parent can't possibly be used any more
  13755. in this routine. Assigning to the local variable will thus
  13756. munge parent in the parent process. */
  13757. pid_t
  13758. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  13759. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  13760. /* Convince the compiler that p..p7 are live; otherwise, it might
  13761. use the same hardware register for all 8 local variables. */
  13762. if (p != p1 || p != p2 || p != p3 || p != p4
  13763. || p != p5 || p != p6 || p != p7)
  13764. _exit(1);
  13765. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  13766. from child file descriptors. If the child closes a descriptor
  13767. before it execs or exits, this munges the parent's descriptor
  13768. as well. Test for this by closing stdout in the child. */
  13769. _exit(close(fileno(stdout)) != 0);
  13770. } else {
  13771. int status;
  13772. struct stat st;
  13773. while (wait(&status) != child)
  13774. ;
  13775. return (
  13776. /* Was there some problem with vforking? */
  13777. child < 0
  13778. /* Did the child fail? (This shouldn't happen.) */
  13779. || status
  13780. /* Did the vfork/compiler bug occur? */
  13781. || parent != getpid()
  13782. /* Did the file descriptor bug occur? */
  13783. || fstat(fileno(stdout), &st) != 0
  13784. );
  13785. }
  13786. }
  13787. _ACEOF
  13788. if ac_fn_c_try_run "$LINENO"; then :
  13789. ac_cv_func_vfork_works=yes
  13790. else
  13791. ac_cv_func_vfork_works=no
  13792. fi
  13793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13794. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13795. fi
  13796. fi
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  13798. $as_echo "$ac_cv_func_vfork_works" >&6; }
  13799. fi;
  13800. if test "x$ac_cv_func_fork_works" = xcross; then
  13801. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  13803. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  13804. fi
  13805. if test "x$ac_cv_func_vfork_works" = xyes; then
  13806. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  13807. else
  13808. $as_echo "#define vfork fork" >>confdefs.h
  13809. fi
  13810. if test "x$ac_cv_func_fork_works" = xyes; then
  13811. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  13812. fi
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  13814. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  13815. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  13816. $as_echo_n "(cached) " >&6
  13817. else
  13818. rm -f conftest.sym conftest.file
  13819. echo >conftest.file
  13820. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  13821. if test "$cross_compiling" = yes; then :
  13822. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13823. else
  13824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13825. /* end confdefs.h. */
  13826. $ac_includes_default
  13827. int
  13828. main ()
  13829. {
  13830. struct stat sbuf;
  13831. /* Linux will dereference the symlink and fail, as required by POSIX.
  13832. That is better in the sense that it means we will not
  13833. have to compile and use the lstat wrapper. */
  13834. return lstat ("conftest.sym/", &sbuf) == 0;
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. if ac_fn_c_try_run "$LINENO"; then :
  13840. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  13841. else
  13842. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13843. fi
  13844. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13845. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13846. fi
  13847. else
  13848. # If the `ln -s' command failed, then we probably don't even
  13849. # have an lstat function.
  13850. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13851. fi
  13852. rm -f conftest.sym conftest.file
  13853. fi
  13854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  13855. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  13856. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  13857. cat >>confdefs.h <<_ACEOF
  13858. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  13859. _ACEOF
  13860. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  13861. case " $LIBOBJS " in
  13862. *" lstat.$ac_objext "* ) ;;
  13863. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  13864. ;;
  13865. esac
  13866. fi
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  13868. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  13869. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
  13870. $as_echo_n "(cached) " >&6
  13871. else
  13872. if test "$cross_compiling" = yes; then :
  13873. ac_cv_func_lstat_empty_string_bug=yes
  13874. else
  13875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13876. /* end confdefs.h. */
  13877. $ac_includes_default
  13878. int
  13879. main ()
  13880. {
  13881. struct stat sbuf;
  13882. return lstat ("", &sbuf) == 0;
  13883. ;
  13884. return 0;
  13885. }
  13886. _ACEOF
  13887. if ac_fn_c_try_run "$LINENO"; then :
  13888. ac_cv_func_lstat_empty_string_bug=no
  13889. else
  13890. ac_cv_func_lstat_empty_string_bug=yes
  13891. fi
  13892. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13893. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13894. fi
  13895. fi
  13896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  13897. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  13898. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  13899. case " $LIBOBJS " in
  13900. *" lstat.$ac_objext "* ) ;;
  13901. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  13902. ;;
  13903. esac
  13904. cat >>confdefs.h <<_ACEOF
  13905. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  13906. _ACEOF
  13907. fi
  13908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  13909. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  13910. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  13911. $as_echo_n "(cached) " >&6
  13912. else
  13913. rm -f conftest.sym conftest.file
  13914. echo >conftest.file
  13915. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  13916. if test "$cross_compiling" = yes; then :
  13917. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13918. else
  13919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13920. /* end confdefs.h. */
  13921. $ac_includes_default
  13922. int
  13923. main ()
  13924. {
  13925. struct stat sbuf;
  13926. /* Linux will dereference the symlink and fail, as required by POSIX.
  13927. That is better in the sense that it means we will not
  13928. have to compile and use the lstat wrapper. */
  13929. return lstat ("conftest.sym/", &sbuf) == 0;
  13930. ;
  13931. return 0;
  13932. }
  13933. _ACEOF
  13934. if ac_fn_c_try_run "$LINENO"; then :
  13935. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  13936. else
  13937. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13938. fi
  13939. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13940. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13941. fi
  13942. else
  13943. # If the `ln -s' command failed, then we probably don't even
  13944. # have an lstat function.
  13945. ac_cv_func_lstat_dereferences_slashed_symlink=no
  13946. fi
  13947. rm -f conftest.sym conftest.file
  13948. fi
  13949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  13950. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  13951. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  13952. cat >>confdefs.h <<_ACEOF
  13953. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  13954. _ACEOF
  13955. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  13956. case " $LIBOBJS " in
  13957. *" lstat.$ac_objext "* ) ;;
  13958. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  13959. ;;
  13960. esac
  13961. fi
  13962. for ac_header in stdlib.h
  13963. do :
  13964. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  13965. if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  13966. cat >>confdefs.h <<_ACEOF
  13967. #define HAVE_STDLIB_H 1
  13968. _ACEOF
  13969. fi
  13970. done
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  13972. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  13973. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  13974. $as_echo_n "(cached) " >&6
  13975. else
  13976. if test "$cross_compiling" = yes; then :
  13977. ac_cv_func_malloc_0_nonnull=no
  13978. else
  13979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13980. /* end confdefs.h. */
  13981. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  13982. # include <stdlib.h>
  13983. #else
  13984. char *malloc ();
  13985. #endif
  13986. int
  13987. main ()
  13988. {
  13989. return ! malloc (0);
  13990. ;
  13991. return 0;
  13992. }
  13993. _ACEOF
  13994. if ac_fn_c_try_run "$LINENO"; then :
  13995. ac_cv_func_malloc_0_nonnull=yes
  13996. else
  13997. ac_cv_func_malloc_0_nonnull=no
  13998. fi
  13999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14000. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14001. fi
  14002. fi
  14003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14004. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14005. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14006. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14007. else
  14008. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14009. case " $LIBOBJS " in
  14010. *" malloc.$ac_objext "* ) ;;
  14011. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14012. ;;
  14013. esac
  14014. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14015. fi
  14016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14017. $as_echo_n "checking for working memcmp... " >&6; }
  14018. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  14019. $as_echo_n "(cached) " >&6
  14020. else
  14021. if test "$cross_compiling" = yes; then :
  14022. ac_cv_func_memcmp_working=no
  14023. else
  14024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14025. /* end confdefs.h. */
  14026. $ac_includes_default
  14027. int
  14028. main ()
  14029. {
  14030. /* Some versions of memcmp are not 8-bit clean. */
  14031. char c0 = '\100', c1 = '\200', c2 = '\201';
  14032. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14033. return 1;
  14034. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14035. or more and with at least one buffer not starting on a 4-byte boundary.
  14036. William Lewis provided this test program. */
  14037. {
  14038. char foo[21];
  14039. char bar[21];
  14040. int i;
  14041. for (i = 0; i < 4; i++)
  14042. {
  14043. char *a = foo + i;
  14044. char *b = bar + i;
  14045. strcpy (a, "--------01111111");
  14046. strcpy (b, "--------10000000");
  14047. if (memcmp (a, b, 16) >= 0)
  14048. return 1;
  14049. }
  14050. return 0;
  14051. }
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. if ac_fn_c_try_run "$LINENO"; then :
  14057. ac_cv_func_memcmp_working=yes
  14058. else
  14059. ac_cv_func_memcmp_working=no
  14060. fi
  14061. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14062. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14063. fi
  14064. fi
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14066. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14067. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14068. *" memcmp.$ac_objext "* ) ;;
  14069. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14070. ;;
  14071. esac
  14072. for ac_header in $ac_header_list
  14073. do :
  14074. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14075. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14076. "
  14077. eval as_val=\$$as_ac_Header
  14078. if test "x$as_val" = x""yes; then :
  14079. cat >>confdefs.h <<_ACEOF
  14080. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14081. _ACEOF
  14082. fi
  14083. done
  14084. for ac_func in getpagesize
  14085. do :
  14086. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14087. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  14088. cat >>confdefs.h <<_ACEOF
  14089. #define HAVE_GETPAGESIZE 1
  14090. _ACEOF
  14091. fi
  14092. done
  14093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14094. $as_echo_n "checking for working mmap... " >&6; }
  14095. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  14096. $as_echo_n "(cached) " >&6
  14097. else
  14098. if test "$cross_compiling" = yes; then :
  14099. ac_cv_func_mmap_fixed_mapped=no
  14100. else
  14101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14102. /* end confdefs.h. */
  14103. $ac_includes_default
  14104. /* malloc might have been renamed as rpl_malloc. */
  14105. #undef malloc
  14106. /* Thanks to Mike Haertel and Jim Avera for this test.
  14107. Here is a matrix of mmap possibilities:
  14108. mmap private not fixed
  14109. mmap private fixed at somewhere currently unmapped
  14110. mmap private fixed at somewhere already mapped
  14111. mmap shared not fixed
  14112. mmap shared fixed at somewhere currently unmapped
  14113. mmap shared fixed at somewhere already mapped
  14114. For private mappings, we should verify that changes cannot be read()
  14115. back from the file, nor mmap's back from the file at a different
  14116. address. (There have been systems where private was not correctly
  14117. implemented like the infamous i386 svr4.0, and systems where the
  14118. VM page cache was not coherent with the file system buffer cache
  14119. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14120. For shared mappings, we should conversely verify that changes get
  14121. propagated back to all the places they're supposed to be.
  14122. Grep wants private fixed already mapped.
  14123. The main things grep needs to know about mmap are:
  14124. * does it exist and is it safe to write into the mmap'd area
  14125. * how to use it (BSD variants) */
  14126. #include <fcntl.h>
  14127. #include <sys/mman.h>
  14128. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14129. char *malloc ();
  14130. #endif
  14131. /* This mess was copied from the GNU getpagesize.h. */
  14132. #ifndef HAVE_GETPAGESIZE
  14133. # ifdef _SC_PAGESIZE
  14134. # define getpagesize() sysconf(_SC_PAGESIZE)
  14135. # else /* no _SC_PAGESIZE */
  14136. # ifdef HAVE_SYS_PARAM_H
  14137. # include <sys/param.h>
  14138. # ifdef EXEC_PAGESIZE
  14139. # define getpagesize() EXEC_PAGESIZE
  14140. # else /* no EXEC_PAGESIZE */
  14141. # ifdef NBPG
  14142. # define getpagesize() NBPG * CLSIZE
  14143. # ifndef CLSIZE
  14144. # define CLSIZE 1
  14145. # endif /* no CLSIZE */
  14146. # else /* no NBPG */
  14147. # ifdef NBPC
  14148. # define getpagesize() NBPC
  14149. # else /* no NBPC */
  14150. # ifdef PAGESIZE
  14151. # define getpagesize() PAGESIZE
  14152. # endif /* PAGESIZE */
  14153. # endif /* no NBPC */
  14154. # endif /* no NBPG */
  14155. # endif /* no EXEC_PAGESIZE */
  14156. # else /* no HAVE_SYS_PARAM_H */
  14157. # define getpagesize() 8192 /* punt totally */
  14158. # endif /* no HAVE_SYS_PARAM_H */
  14159. # endif /* no _SC_PAGESIZE */
  14160. #endif /* no HAVE_GETPAGESIZE */
  14161. int
  14162. main ()
  14163. {
  14164. char *data, *data2, *data3;
  14165. const char *cdata2;
  14166. int i, pagesize;
  14167. int fd, fd2;
  14168. pagesize = getpagesize ();
  14169. /* First, make a file with some known garbage in it. */
  14170. data = (char *) malloc (pagesize);
  14171. if (!data)
  14172. return 1;
  14173. for (i = 0; i < pagesize; ++i)
  14174. *(data + i) = rand ();
  14175. umask (0);
  14176. fd = creat ("conftest.mmap", 0600);
  14177. if (fd < 0)
  14178. return 2;
  14179. if (write (fd, data, pagesize) != pagesize)
  14180. return 3;
  14181. close (fd);
  14182. /* Next, check that the tail of a page is zero-filled. File must have
  14183. non-zero length, otherwise we risk SIGBUS for entire page. */
  14184. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14185. if (fd2 < 0)
  14186. return 4;
  14187. cdata2 = "";
  14188. if (write (fd2, cdata2, 1) != 1)
  14189. return 5;
  14190. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14191. if (data2 == MAP_FAILED)
  14192. return 6;
  14193. for (i = 0; i < pagesize; ++i)
  14194. if (*(data2 + i))
  14195. return 7;
  14196. close (fd2);
  14197. if (munmap (data2, pagesize))
  14198. return 8;
  14199. /* Next, try to mmap the file at a fixed address which already has
  14200. something else allocated at it. If we can, also make sure that
  14201. we see the same garbage. */
  14202. fd = open ("conftest.mmap", O_RDWR);
  14203. if (fd < 0)
  14204. return 9;
  14205. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14206. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14207. return 10;
  14208. for (i = 0; i < pagesize; ++i)
  14209. if (*(data + i) != *(data2 + i))
  14210. return 11;
  14211. /* Finally, make sure that changes to the mapped area do not
  14212. percolate back to the file as seen by read(). (This is a bug on
  14213. some variants of i386 svr4.0.) */
  14214. for (i = 0; i < pagesize; ++i)
  14215. *(data2 + i) = *(data2 + i) + 1;
  14216. data3 = (char *) malloc (pagesize);
  14217. if (!data3)
  14218. return 12;
  14219. if (read (fd, data3, pagesize) != pagesize)
  14220. return 13;
  14221. for (i = 0; i < pagesize; ++i)
  14222. if (*(data + i) != *(data3 + i))
  14223. return 14;
  14224. close (fd);
  14225. return 0;
  14226. }
  14227. _ACEOF
  14228. if ac_fn_c_try_run "$LINENO"; then :
  14229. ac_cv_func_mmap_fixed_mapped=yes
  14230. else
  14231. ac_cv_func_mmap_fixed_mapped=no
  14232. fi
  14233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14234. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14235. fi
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14238. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14239. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14240. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14241. fi
  14242. rm -f conftest.mmap conftest.txt
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14244. $as_echo_n "checking return type of signal handlers... " >&6; }
  14245. if test "${ac_cv_type_signal+set}" = set; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14249. /* end confdefs.h. */
  14250. #include <sys/types.h>
  14251. #include <signal.h>
  14252. int
  14253. main ()
  14254. {
  14255. return *(signal (0, 0)) (0) == 1;
  14256. ;
  14257. return 0;
  14258. }
  14259. _ACEOF
  14260. if ac_fn_c_try_compile "$LINENO"; then :
  14261. ac_cv_type_signal=int
  14262. else
  14263. ac_cv_type_signal=void
  14264. fi
  14265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14266. fi
  14267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14268. $as_echo "$ac_cv_type_signal" >&6; }
  14269. cat >>confdefs.h <<_ACEOF
  14270. #define RETSIGTYPE $ac_cv_type_signal
  14271. _ACEOF
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14273. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14274. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  14275. $as_echo_n "(cached) " >&6
  14276. else
  14277. if test "$cross_compiling" = yes; then :
  14278. ac_cv_func_stat_empty_string_bug=yes
  14279. else
  14280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14281. /* end confdefs.h. */
  14282. $ac_includes_default
  14283. int
  14284. main ()
  14285. {
  14286. struct stat sbuf;
  14287. return stat ("", &sbuf) == 0;
  14288. ;
  14289. return 0;
  14290. }
  14291. _ACEOF
  14292. if ac_fn_c_try_run "$LINENO"; then :
  14293. ac_cv_func_stat_empty_string_bug=no
  14294. else
  14295. ac_cv_func_stat_empty_string_bug=yes
  14296. fi
  14297. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14298. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14299. fi
  14300. fi
  14301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  14302. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  14303. if test $ac_cv_func_stat_empty_string_bug = yes; then
  14304. case " $LIBOBJS " in
  14305. *" stat.$ac_objext "* ) ;;
  14306. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  14307. ;;
  14308. esac
  14309. cat >>confdefs.h <<_ACEOF
  14310. #define HAVE_STAT_EMPTY_STRING_BUG 1
  14311. _ACEOF
  14312. fi
  14313. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  14314. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
  14315. ac_have_decl=1
  14316. else
  14317. ac_have_decl=0
  14318. fi
  14319. cat >>confdefs.h <<_ACEOF
  14320. #define HAVE_DECL_STRERROR_R $ac_have_decl
  14321. _ACEOF
  14322. for ac_func in strerror_r
  14323. do :
  14324. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  14325. if test "x$ac_cv_func_strerror_r" = x""yes; then :
  14326. cat >>confdefs.h <<_ACEOF
  14327. #define HAVE_STRERROR_R 1
  14328. _ACEOF
  14329. fi
  14330. done
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  14332. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  14333. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
  14334. $as_echo_n "(cached) " >&6
  14335. else
  14336. ac_cv_func_strerror_r_char_p=no
  14337. if test $ac_cv_have_decl_strerror_r = yes; then
  14338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14339. /* end confdefs.h. */
  14340. $ac_includes_default
  14341. int
  14342. main ()
  14343. {
  14344. char buf[100];
  14345. char x = *strerror_r (0, buf, sizeof buf);
  14346. char *p = strerror_r (0, buf, sizeof buf);
  14347. return !p || x;
  14348. ;
  14349. return 0;
  14350. }
  14351. _ACEOF
  14352. if ac_fn_c_try_compile "$LINENO"; then :
  14353. ac_cv_func_strerror_r_char_p=yes
  14354. fi
  14355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14356. else
  14357. # strerror_r is not declared. Choose between
  14358. # systems that have relatively inaccessible declarations for the
  14359. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  14360. # former has a strerror_r that returns char*, while the latter
  14361. # has a strerror_r that returns `int'.
  14362. # This test should segfault on the DEC system.
  14363. if test "$cross_compiling" = yes; then :
  14364. :
  14365. else
  14366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14367. /* end confdefs.h. */
  14368. $ac_includes_default
  14369. extern char *strerror_r ();
  14370. int
  14371. main ()
  14372. {
  14373. char buf[100];
  14374. char x = *strerror_r (0, buf, sizeof buf);
  14375. return ! isalpha (x);
  14376. ;
  14377. return 0;
  14378. }
  14379. _ACEOF
  14380. if ac_fn_c_try_run "$LINENO"; then :
  14381. ac_cv_func_strerror_r_char_p=yes
  14382. fi
  14383. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14384. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14385. fi
  14386. fi
  14387. fi
  14388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  14389. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  14390. if test $ac_cv_func_strerror_r_char_p = yes; then
  14391. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  14392. fi
  14393. for ac_func in strftime
  14394. do :
  14395. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  14396. if test "x$ac_cv_func_strftime" = x""yes; then :
  14397. cat >>confdefs.h <<_ACEOF
  14398. #define HAVE_STRFTIME 1
  14399. _ACEOF
  14400. else
  14401. # strftime is in -lintl on SCO UNIX.
  14402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  14403. $as_echo_n "checking for strftime in -lintl... " >&6; }
  14404. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  14405. $as_echo_n "(cached) " >&6
  14406. else
  14407. ac_check_lib_save_LIBS=$LIBS
  14408. LIBS="-lintl $LIBS"
  14409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14410. /* end confdefs.h. */
  14411. /* Override any GCC internal prototype to avoid an error.
  14412. Use char because int might match the return type of a GCC
  14413. builtin and then its argument prototype would still apply. */
  14414. #ifdef __cplusplus
  14415. extern "C"
  14416. #endif
  14417. char strftime ();
  14418. int
  14419. main ()
  14420. {
  14421. return strftime ();
  14422. ;
  14423. return 0;
  14424. }
  14425. _ACEOF
  14426. if ac_fn_c_try_link "$LINENO"; then :
  14427. ac_cv_lib_intl_strftime=yes
  14428. else
  14429. ac_cv_lib_intl_strftime=no
  14430. fi
  14431. rm -f core conftest.err conftest.$ac_objext \
  14432. conftest$ac_exeext conftest.$ac_ext
  14433. LIBS=$ac_check_lib_save_LIBS
  14434. fi
  14435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  14436. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  14437. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  14438. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  14439. LIBS="-lintl $LIBS"
  14440. fi
  14441. fi
  14442. done
  14443. for ac_func in vprintf
  14444. do :
  14445. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  14446. if test "x$ac_cv_func_vprintf" = x""yes; then :
  14447. cat >>confdefs.h <<_ACEOF
  14448. #define HAVE_VPRINTF 1
  14449. _ACEOF
  14450. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  14451. if test "x$ac_cv_func__doprnt" = x""yes; then :
  14452. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  14453. fi
  14454. fi
  14455. done
  14456. 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
  14457. do :
  14458. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14459. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14460. eval as_val=\$$as_ac_var
  14461. if test "x$as_val" = x""yes; then :
  14462. cat >>confdefs.h <<_ACEOF
  14463. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14464. _ACEOF
  14465. fi
  14466. done
  14467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  14468. $as_echo_n "checking for --enable-debug... " >&6; }
  14469. # Check whether --enable-debug was given.
  14470. if test "${enable_debug+set}" = set; then :
  14471. enableval=$enable_debug;
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14473. $as_echo "yes" >&6; }
  14474. debug_defs="-DDEBUG -DMCC_DEBUG"
  14475. else
  14476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14477. $as_echo "no" >&6; }
  14478. debug_defs=""
  14479. fi
  14480. # Used for legacy style packaging where we bundle all of the dependencies.
  14481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  14482. $as_echo_n "checking for --enable-bundle... " >&6; }
  14483. # Check whether --enable-bundle was given.
  14484. if test "${enable_bundle+set}" = set; then :
  14485. enableval=$enable_bundle;
  14486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14487. $as_echo "yes" >&6; }
  14488. bundle="1";
  14489. else
  14490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14491. $as_echo "no" >&6; }
  14492. bundle="";
  14493. fi
  14494. if test "$bundle" = "1"; then
  14495. BUNDLE_TRUE=
  14496. BUNDLE_FALSE='#'
  14497. else
  14498. BUNDLE_TRUE='#'
  14499. BUNDLE_FALSE=
  14500. fi
  14501. # these enables are for optional or experimental features
  14502. if test -z "$enable_pam_passthru" ; then
  14503. enable_pam_passthru=yes # if not set on cmdline, set default
  14504. fi
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  14506. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  14507. # Check whether --enable-pam-passthru was given.
  14508. if test "${enable_pam_passthru+set}" = set; then :
  14509. enableval=$enable_pam_passthru;
  14510. fi
  14511. if test "$enable_pam_passthru" = yes ; then
  14512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14513. $as_echo "yes" >&6; }
  14514. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  14515. else
  14516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14517. $as_echo "no" >&6; }
  14518. fi
  14519. if test "$enable_pam_passthru" = "yes"; then
  14520. enable_pam_passthru_TRUE=
  14521. enable_pam_passthru_FALSE='#'
  14522. else
  14523. enable_pam_passthru_TRUE='#'
  14524. enable_pam_passthru_FALSE=
  14525. fi
  14526. if test -z "$enable_dna" ; then
  14527. enable_dna=yes # if not set on cmdline, set default
  14528. fi
  14529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  14530. $as_echo_n "checking for --enable-dna... " >&6; }
  14531. # Check whether --enable-dna was given.
  14532. if test "${enable_dna+set}" = set; then :
  14533. enableval=$enable_dna;
  14534. fi
  14535. if test "$enable_dna" = yes ; then
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14537. $as_echo "yes" >&6; }
  14538. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  14539. else
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14541. $as_echo "no" >&6; }
  14542. fi
  14543. if test "$enable_dna" = "yes"; then
  14544. enable_dna_TRUE=
  14545. enable_dna_FALSE='#'
  14546. else
  14547. enable_dna_TRUE='#'
  14548. enable_dna_FALSE=
  14549. fi
  14550. if test -z "$enable_ldapi" ; then
  14551. enable_ldapi=yes # if not set on cmdline, set default
  14552. fi
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  14554. $as_echo_n "checking for --enable-ldapi... " >&6; }
  14555. # Check whether --enable-ldapi was given.
  14556. if test "${enable_ldapi+set}" = set; then :
  14557. enableval=$enable_ldapi;
  14558. fi
  14559. if test "$enable_ldapi" = yes ; then
  14560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14561. $as_echo "yes" >&6; }
  14562. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  14563. else
  14564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14565. $as_echo "no" >&6; }
  14566. fi
  14567. if test "$enable_ldapi" = "yes"; then
  14568. enable_ldapi_TRUE=
  14569. enable_ldapi_FALSE='#'
  14570. else
  14571. enable_ldapi_TRUE='#'
  14572. enable_ldapi_FALSE=
  14573. fi
  14574. if test -z "$enable_autobind" ; then
  14575. enable_autobind=no # if not set on cmdline, set default
  14576. fi
  14577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  14578. $as_echo_n "checking for --enable-autobind... " >&6; }
  14579. # Check whether --enable-autobind was given.
  14580. if test "${enable_autobind+set}" = set; then :
  14581. enableval=$enable_autobind;
  14582. fi
  14583. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14585. $as_echo "yes" >&6; }
  14586. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  14587. else
  14588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14589. $as_echo "no" >&6; }
  14590. fi
  14591. if test "$enable_autobind" = "yes"; then
  14592. enable_autobind_TRUE=
  14593. enable_autobind_FALSE='#'
  14594. else
  14595. enable_autobind_TRUE='#'
  14596. enable_autobind_FALSE=
  14597. fi
  14598. if test -z "$enable_auto_dn_suffix" ; then
  14599. enable_auto_dn_suffix=no # if not set on cmdline, set default
  14600. fi
  14601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  14602. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  14603. # Check whether --enable-autobind was given.
  14604. if test "${enable_autobind+set}" = set; then :
  14605. enableval=$enable_autobind;
  14606. fi
  14607. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14609. $as_echo "yes" >&6; }
  14610. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  14611. else
  14612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14613. $as_echo "no" >&6; }
  14614. fi
  14615. if test "$enable_auto_dn_suffix" = "yes"; then
  14616. enable_auto_dn_suffix_TRUE=
  14617. enable_auto_dn_suffix_FALSE='#'
  14618. else
  14619. enable_auto_dn_suffix_TRUE='#'
  14620. enable_auto_dn_suffix_FALSE=
  14621. fi
  14622. if test -z "$enable_bitwise" ; then
  14623. enable_bitwise=yes # if not set on cmdline, set default
  14624. fi
  14625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  14626. $as_echo_n "checking for --enable-bitwise... " >&6; }
  14627. # Check whether --enable-bitwise was given.
  14628. if test "${enable_bitwise+set}" = set; then :
  14629. enableval=$enable_bitwise;
  14630. fi
  14631. if test "$enable_bitwise" = yes ; then
  14632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14633. $as_echo "yes" >&6; }
  14634. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  14635. else
  14636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14637. $as_echo "no" >&6; }
  14638. fi
  14639. if test "$enable_bitwise" = "yes"; then
  14640. enable_bitwise_TRUE=
  14641. enable_bitwise_FALSE='#'
  14642. else
  14643. enable_bitwise_TRUE='#'
  14644. enable_bitwise_FALSE=
  14645. fi
  14646. if test -z "$enable_presence" ; then
  14647. enable_presence=no # if not set on cmdline, set default
  14648. fi
  14649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  14650. $as_echo_n "checking for --enable-presence... " >&6; }
  14651. # Check whether --enable-presence was given.
  14652. if test "${enable_presence+set}" = set; then :
  14653. enableval=$enable_presence;
  14654. fi
  14655. if test "$enable_presence" = yes ; then
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14657. $as_echo "yes" >&6; }
  14658. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  14659. else
  14660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14661. $as_echo "no" >&6; }
  14662. fi
  14663. if test "$enable_presence" = "yes"; then
  14664. enable_presence_TRUE=
  14665. enable_presence_FALSE='#'
  14666. else
  14667. enable_presence_TRUE='#'
  14668. enable_presence_FALSE=
  14669. fi
  14670. # the default prefix - override with --prefix or --with-fhs
  14671. # BEGIN COPYRIGHT BLOCK
  14672. # Copyright (C) 2006 Red Hat, Inc.
  14673. # All rights reserved.
  14674. #
  14675. # This program is free software; you can redistribute it and/or
  14676. # modify it under the terms of the GNU General Public License
  14677. # as published by the Free Software Foundation; either version 2
  14678. # of the License, or (at your option) any later version.
  14679. #
  14680. # This program is distributed in the hope that it will be useful,
  14681. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14682. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14683. # GNU General Public License for more details.
  14684. #
  14685. # You should have received a copy of the GNU General Public License
  14686. # along with this program; if not, write to the Free Software
  14687. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14688. #
  14689. # END COPYRIGHT BLOCK
  14690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  14691. $as_echo "$as_me: checking for FHS..." >&6;}
  14692. # check for --with-fhs
  14693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  14694. $as_echo_n "checking for --with-fhs... " >&6; }
  14695. # Check whether --with-fhs was given.
  14696. if test "${with_fhs+set}" = set; then :
  14697. withval=$with_fhs;
  14698. with_fhs=yes
  14699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14700. $as_echo "yes" >&6; }
  14701. else
  14702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14703. $as_echo "no" >&6; }
  14704. fi
  14705. if test "$with_fhs" = "yes"; then
  14706. $as_echo "#define IS_FHS 1" >>confdefs.h
  14707. fi
  14708. # check for --with-fhs-opt
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  14710. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  14711. # Check whether --with-fhs-opt was given.
  14712. if test "${with_fhs_opt+set}" = set; then :
  14713. withval=$with_fhs_opt;
  14714. with_fhs_opt=yes
  14715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14716. $as_echo "yes" >&6; }
  14717. else
  14718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14719. $as_echo "no" >&6; }
  14720. fi
  14721. if test "$with_fhs_opt" = "yes"; then
  14722. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  14723. fi
  14724. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  14725. as_fn_error "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  14726. fi
  14727. # installation paths - by default, we store everything
  14728. # under the prefix. The with-fhs option will use /usr,
  14729. # /etc, and /var. The with-fhs-opt option will use the
  14730. # prefix, but it's sysconfdir and localstatedir will be
  14731. # /etc/opt, and /var/opt.
  14732. if test "$with_fhs_opt" = "yes"; then
  14733. # Override sysconfdir and localstatedir if FHS optional
  14734. # package was requested.
  14735. sysconfdir='/etc/opt'
  14736. localstatedir='/var/opt'
  14737. # relative to datadir
  14738. sampledatadir=/data
  14739. # relative to datadir
  14740. scripttemplatedir=/script-templates
  14741. # relative to datadir
  14742. updatedir=/updates
  14743. # relative to libdir
  14744. serverdir=
  14745. # relative to libdir
  14746. serverplugindir=/plugins
  14747. # relative to datadir
  14748. infdir=/inf
  14749. # relative to datadir
  14750. mibdir=/mibs
  14751. # location of property/resource files, relative to datadir
  14752. propertydir=/properties
  14753. # relative to libdir
  14754. perldir=/perl
  14755. else
  14756. if test "$with_fhs" = "yes"; then
  14757. ac_default_prefix=/usr
  14758. prefix=$ac_default_prefix
  14759. exec_prefix=$prefix
  14760. sysconfdir='/etc'
  14761. localstatedir='/var'
  14762. fi
  14763. # relative to datadir
  14764. sampledatadir=/$PACKAGE_NAME/data
  14765. # relative to datadir
  14766. scripttemplatedir=/$PACKAGE_NAME/script-templates
  14767. # relative to datadir
  14768. updatedir=/$PACKAGE_NAME/updates
  14769. # relative to libdir
  14770. serverdir=/$PACKAGE_NAME
  14771. # relative to libdir
  14772. serverplugindir=/$PACKAGE_NAME/plugins
  14773. # relative to datadir
  14774. infdir=/$PACKAGE_NAME/inf
  14775. # relative to datadir
  14776. mibdir=/$PACKAGE_NAME/mibs
  14777. # location of property/resource files, relative to datadir
  14778. propertydir=/$PACKAGE_NAME/properties
  14779. # relative to libdir
  14780. perldir=/$PACKAGE_NAME/perl
  14781. fi
  14782. # if mandir is the default value, override it
  14783. # otherwise, the user must have set it - just use it
  14784. if test X"$mandir" = X'${prefix}/man' ; then
  14785. mandir='$(datadir)/man'
  14786. fi
  14787. # Shared paths for all layouts
  14788. # relative to sysconfdir
  14789. configdir=/$PACKAGE_NAME/config
  14790. # relative to sysconfdir
  14791. schemadir=/$PACKAGE_NAME/schema
  14792. # default user, group
  14793. defaultuser=nobody
  14794. defaultgroup=nobody
  14795. # check for --with-instconfigdir
  14796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  14797. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  14798. # Check whether --with-instconfigdir was given.
  14799. if test "${with_instconfigdir+set}" = set; then :
  14800. withval=$with_instconfigdir;
  14801. if test $withval = yes ; then
  14802. as_fn_error "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  14803. fi
  14804. instconfigdir="$withval"
  14805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14806. $as_echo "$withval" >&6; }
  14807. else
  14808. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  14809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14810. $as_echo "no" >&6; }
  14811. fi
  14812. # WINNT should be true if building on Windows system not using
  14813. # cygnus, mingw, or the like and using cmd.exe as the shell
  14814. if false; then
  14815. WINNT_TRUE=
  14816. WINNT_FALSE='#'
  14817. else
  14818. WINNT_TRUE='#'
  14819. WINNT_FALSE=
  14820. fi
  14821. # Deal with platform dependent defines
  14822. # initdir is the location for the SysV init scripts - very heavily platform
  14823. # dependent and not specified in fhs or lsb
  14824. initdir='$(sysconfdir)/rc.d'
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  14826. $as_echo_n "checking for --with-initddir... " >&6; }
  14827. # Check whether --with-initddir was given.
  14828. if test "${with_initddir+set}" = set; then :
  14829. withval=$with_initddir;
  14830. if test "$withval" = yes -o "$withval" = no ; then
  14831. as_fn_error "Please specify a full path with --with-initddir" "$LINENO" 5
  14832. fi
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  14834. $as_echo "$withval" >&6; }
  14835. else
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14837. $as_echo "no" >&6; }
  14838. fi
  14839. # on most platforms, we will just use perl from PATH
  14840. # On some platforms, we cannot. Why not just use any old
  14841. # perl? Because of perldap. We use a perldap that is
  14842. # compiled to either 32bit or 64bit, so we must use a native
  14843. # perl binary compiled with the same bitsize. On Solaris
  14844. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  14845. # those with our 64 bit compiled product.
  14846. perlexec='/usr/bin/env perl'
  14847. case $host in
  14848. *-*-linux*)
  14849. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14850. $as_echo "#define Linux 1" >>confdefs.h
  14851. $as_echo "#define LINUX 1" >>confdefs.h
  14852. $as_echo "#define LINUX2_0 1" >>confdefs.h
  14853. $as_echo "#define LINUX2_2 1" >>confdefs.h
  14854. $as_echo "#define LINUX2_4 1" >>confdefs.h
  14855. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  14856. platform="linux"
  14857. initdir='$(sysconfdir)/rc.d/init.d'
  14858. # do arch specific linux stuff here
  14859. case $host in
  14860. i*86-*-linux*)
  14861. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  14862. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14863. ac_fn_c_check_decl "$LINENO" "__sync_add_and_fetch" "ac_cv_have_decl___sync_add_and_fetch" "$ac_includes_default"
  14864. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then :
  14865. ac_have_decl=1
  14866. else
  14867. ac_have_decl=0
  14868. fi
  14869. cat >>confdefs.h <<_ACEOF
  14870. #define HAVE_DECL___SYNC_ADD_AND_FETCH $ac_have_decl
  14871. _ACEOF
  14872. ;;
  14873. x86_64-*-linux*)
  14874. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  14875. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14876. ac_fn_c_check_decl "$LINENO" "__sync_add_and_fetch" "ac_cv_have_decl___sync_add_and_fetch" "$ac_includes_default"
  14877. if test "x$ac_cv_have_decl___sync_add_and_fetch" = x""yes; then :
  14878. ac_have_decl=1
  14879. else
  14880. ac_have_decl=0
  14881. fi
  14882. cat >>confdefs.h <<_ACEOF
  14883. #define HAVE_DECL___SYNC_ADD_AND_FETCH $ac_have_decl
  14884. _ACEOF
  14885. ;;
  14886. esac
  14887. # some programs use the native thread library directly
  14888. THREADLIB=-lpthread
  14889. THREADLIB=$THREADLIB
  14890. LIBCRYPT=-lcrypt
  14891. LIBCRYPT=$LIBCRYPT
  14892. ;;
  14893. ia64-hp-hpux*)
  14894. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14895. $as_echo "#define hpux 1" >>confdefs.h
  14896. $as_echo "#define HPUX 1" >>confdefs.h
  14897. $as_echo "#define HPUX11 1" >>confdefs.h
  14898. $as_echo "#define HPUX11_23 1" >>confdefs.h
  14899. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  14900. $as_echo "#define OS_hpux 1" >>confdefs.h
  14901. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  14902. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  14903. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  14904. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14905. # assume 64 bit
  14906. perlexec='/opt/perl_64/bin/perl'
  14907. platform="hpux"
  14908. initconfigdir="/$PACKAGE_NAME/config"
  14909. # HPUX doesn't use /etc for this
  14910. initdir=/init.d
  14911. ;;
  14912. hppa*-hp-hpux*)
  14913. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14914. $as_echo "#define hpux 1" >>confdefs.h
  14915. $as_echo "#define HPUX 1" >>confdefs.h
  14916. $as_echo "#define HPUX11 1" >>confdefs.h
  14917. $as_echo "#define HPUX11_11 1" >>confdefs.h
  14918. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  14919. $as_echo "#define OS_hpux 1" >>confdefs.h
  14920. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  14921. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  14922. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  14923. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14924. # assume 64 bit
  14925. initconfigdir="/$PACKAGE_NAME/config"
  14926. perlexec='/opt/perl_64/bin/perl'
  14927. platform="hpux"
  14928. # HPUX doesn't use /etc for this
  14929. initdir=/init.d
  14930. ;;
  14931. sparc-sun-solaris*)
  14932. $as_echo "#define XP_UNIX 1" >>confdefs.h
  14933. $as_echo "#define SVR4 1" >>confdefs.h
  14934. $as_echo "#define __svr4 1" >>confdefs.h
  14935. $as_echo "#define __svr4__ 1" >>confdefs.h
  14936. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  14937. $as_echo "#define SOLARIS 1" >>confdefs.h
  14938. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  14939. $as_echo "#define OS_solaris 1" >>confdefs.h
  14940. $as_echo "#define sunos5 1" >>confdefs.h
  14941. $as_echo "#define OSVERSION 509" >>confdefs.h
  14942. $as_echo "#define _REENTRANT 1" >>confdefs.h
  14943. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  14944. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  14945. LIBSOCKET=-lsocket
  14946. LIBSOCKET=$LIBSOCKET
  14947. LIBNSL=-lnsl
  14948. LIBNSL=$LIBNSL
  14949. LIBDL=-ldl
  14950. LIBDL=$LIBDL
  14951. LIBCSTD=-lCstd
  14952. LIBCSTD=$LIBCSTD
  14953. LIBCRUN=-lCrun
  14954. LIBCRUN=$LIBCRUN
  14955. platform="solaris"
  14956. # assume 64 bit
  14957. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  14958. initdir='$(sysconfdir)/init.d'
  14959. ;;
  14960. *)
  14961. platform=""
  14962. ;;
  14963. esac
  14964. # cmd line overrides default setting above
  14965. if test -n "$with_initddir" ; then
  14966. initdir="$with_initddir"
  14967. fi
  14968. # set default initconfigdir if not already set
  14969. # value will be set so as to be relative to $(sysconfdir)
  14970. if test -z "$initconfigdir" ; then
  14971. if test -d /etc/sysconfig ; then
  14972. initconfigdir=/sysconfig
  14973. elif test -d /etc/default ; then
  14974. initconfigdir=/default
  14975. else
  14976. initconfigdir="/$PACKAGE_NAME/config"
  14977. fi
  14978. fi
  14979. if test "$platform" = "hpux"; then
  14980. HPUX_TRUE=
  14981. HPUX_FALSE='#'
  14982. else
  14983. HPUX_TRUE='#'
  14984. HPUX_FALSE=
  14985. fi
  14986. if test "$platform" = "solaris"; then
  14987. SOLARIS_TRUE=
  14988. SOLARIS_FALSE='#'
  14989. else
  14990. SOLARIS_TRUE='#'
  14991. SOLARIS_FALSE=
  14992. fi
  14993. # Check for library dependencies
  14994. # BEGIN COPYRIGHT BLOCK
  14995. # Copyright (C) 2007 Red Hat, Inc.
  14996. # All rights reserved.
  14997. #
  14998. # This program is free software; you can redistribute it and/or
  14999. # modify it under the terms of the GNU General Public License
  15000. # as published by the Free Software Foundation; either version 2
  15001. # of the License, or (at your option) any later version.
  15002. #
  15003. # This program is distributed in the hope that it will be useful,
  15004. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15005. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15006. # GNU General Public License for more details.
  15007. #
  15008. # You should have received a copy of the GNU General Public License
  15009. # along with this program; if not, write to the Free Software
  15010. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15011. #
  15012. # END COPYRIGHT BLOCK
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  15014. $as_echo "$as_me: checking for NSPR..." >&6;}
  15015. # check for --with-nspr
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  15017. $as_echo_n "checking for --with-nspr... " >&6; }
  15018. # Check whether --with-nspr was given.
  15019. if test "${with_nspr+set}" = set; then :
  15020. withval=$with_nspr;
  15021. if test "$withval" = "yes"
  15022. then
  15023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15024. $as_echo "yes" >&6; }
  15025. elif test "$withval" = "no"
  15026. then
  15027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15028. $as_echo "no" >&6; }
  15029. as_fn_error "NSPR is required." "$LINENO" 5
  15030. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  15031. then
  15032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15033. $as_echo "using $withval" >&6; }
  15034. NSPRDIR=$withval
  15035. nspr_inc="-I$NSPRDIR/include"
  15036. nspr_lib="-L$NSPRDIR/lib"
  15037. nspr_libdir="$NSPRDIR/lib"
  15038. else
  15039. echo
  15040. as_fn_error "$withval not found" "$LINENO" 5
  15041. fi
  15042. else
  15043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15044. $as_echo "yes" >&6; }
  15045. fi
  15046. # check for --with-nspr-inc
  15047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  15048. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  15049. # Check whether --with-nspr-inc was given.
  15050. if test "${with_nspr_inc+set}" = set; then :
  15051. withval=$with_nspr_inc;
  15052. if test -e "$withval"/nspr.h
  15053. then
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15055. $as_echo "using $withval" >&6; }
  15056. nspr_inc="-I$withval"
  15057. else
  15058. echo
  15059. as_fn_error "$withval not found" "$LINENO" 5
  15060. fi
  15061. else
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15063. $as_echo "no" >&6; }
  15064. fi
  15065. # check for --with-nspr-lib
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  15067. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  15068. # Check whether --with-nspr-lib was given.
  15069. if test "${with_nspr_lib+set}" = set; then :
  15070. withval=$with_nspr_lib;
  15071. if test -d "$withval"
  15072. then
  15073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15074. $as_echo "using $withval" >&6; }
  15075. nspr_lib="-L$withval"
  15076. nspr_libdir="$withval"
  15077. else
  15078. echo
  15079. as_fn_error "$withval not found" "$LINENO" 5
  15080. fi
  15081. else
  15082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15083. $as_echo "no" >&6; }
  15084. fi
  15085. # if NSPR is not found yet, try pkg-config
  15086. # last resort
  15087. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  15088. # Extract the first word of "pkg-config", so it can be a program name with args.
  15089. set dummy pkg-config; ac_word=$2
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15091. $as_echo_n "checking for $ac_word... " >&6; }
  15092. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  15093. $as_echo_n "(cached) " >&6
  15094. else
  15095. case $PKG_CONFIG in
  15096. [\\/]* | ?:[\\/]*)
  15097. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15098. ;;
  15099. *)
  15100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15101. for as_dir in $PATH
  15102. do
  15103. IFS=$as_save_IFS
  15104. test -z "$as_dir" && as_dir=.
  15105. for ac_exec_ext in '' $ac_executable_extensions; do
  15106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15107. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15109. break 2
  15110. fi
  15111. done
  15112. done
  15113. IFS=$as_save_IFS
  15114. ;;
  15115. esac
  15116. fi
  15117. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15118. if test -n "$PKG_CONFIG"; then
  15119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15120. $as_echo "$PKG_CONFIG" >&6; }
  15121. else
  15122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15123. $as_echo "no" >&6; }
  15124. fi
  15125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  15126. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  15127. if test -n "$PKG_CONFIG"; then
  15128. if $PKG_CONFIG --exists nspr; then
  15129. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  15130. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  15131. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  15133. $as_echo "using system NSPR" >&6; }
  15134. elif $PKG_CONFIG --exists dirsec-nspr; then
  15135. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  15136. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  15137. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  15139. $as_echo "using system dirsec NSPR" >&6; }
  15140. else
  15141. as_fn_error "NSPR not found, specify with --with-nspr." "$LINENO" 5
  15142. fi
  15143. fi
  15144. fi
  15145. # BEGIN COPYRIGHT BLOCK
  15146. # Copyright (C) 2007 Red Hat, Inc.
  15147. # All rights reserved.
  15148. #
  15149. # This program is free software; you can redistribute it and/or
  15150. # modify it under the terms of the GNU General Public License
  15151. # as published by the Free Software Foundation; either version 2
  15152. # of the License, or (at your option) any later version.
  15153. #
  15154. # This program is distributed in the hope that it will be useful,
  15155. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15156. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15157. # GNU General Public License for more details.
  15158. #
  15159. # You should have received a copy of the GNU General Public License
  15160. # along with this program; if not, write to the Free Software
  15161. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15162. #
  15163. # END COPYRIGHT BLOCK
  15164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  15165. $as_echo "$as_me: checking for NSS..." >&6;}
  15166. # check for --with-nss
  15167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  15168. $as_echo_n "checking for --with-nss... " >&6; }
  15169. # Check whether --with-nss was given.
  15170. if test "${with_nss+set}" = set; then :
  15171. withval=$with_nss;
  15172. if test "$withval" = "yes"
  15173. then
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15175. $as_echo "yes" >&6; }
  15176. elif test "$withval" = "no"
  15177. then
  15178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15179. $as_echo "no" >&6; }
  15180. as_fn_error "NSS is required." "$LINENO" 5
  15181. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  15182. then
  15183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15184. $as_echo "using $withval" >&6; }
  15185. NSSDIR=$withval
  15186. nss_inc="-I$NSSDIR/include"
  15187. nss_lib="-L$NSSDIR/lib"
  15188. nss_libdir="$NSSDIR/lib"
  15189. else
  15190. echo
  15191. as_fn_error "$withval not found" "$LINENO" 5
  15192. fi
  15193. else
  15194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15195. $as_echo "yes" >&6; }
  15196. fi
  15197. # check for --with-nss-inc
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  15199. $as_echo_n "checking for --with-nss-inc... " >&6; }
  15200. # Check whether --with-nss-inc was given.
  15201. if test "${with_nss_inc+set}" = set; then :
  15202. withval=$with_nss_inc;
  15203. if test -e "$withval"/nss.h
  15204. then
  15205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15206. $as_echo "using $withval" >&6; }
  15207. nss_inc="-I$withval"
  15208. else
  15209. echo
  15210. as_fn_error "$withval not found" "$LINENO" 5
  15211. fi
  15212. else
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15214. $as_echo "no" >&6; }
  15215. fi
  15216. # check for --with-nss-lib
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  15218. $as_echo_n "checking for --with-nss-lib... " >&6; }
  15219. # Check whether --with-nss-lib was given.
  15220. if test "${with_nss_lib+set}" = set; then :
  15221. withval=$with_nss_lib;
  15222. if test -d "$withval"
  15223. then
  15224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15225. $as_echo "using $withval" >&6; }
  15226. nss_lib="-L$withval"
  15227. nss_libdir="$withval"
  15228. else
  15229. echo
  15230. as_fn_error "$withval not found" "$LINENO" 5
  15231. fi
  15232. else
  15233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15234. $as_echo "no" >&6; }
  15235. fi
  15236. # if NSS is not found yet, try pkg-config
  15237. # last resort
  15238. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  15239. # Extract the first word of "pkg-config", so it can be a program name with args.
  15240. set dummy pkg-config; ac_word=$2
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15242. $as_echo_n "checking for $ac_word... " >&6; }
  15243. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  15244. $as_echo_n "(cached) " >&6
  15245. else
  15246. case $PKG_CONFIG in
  15247. [\\/]* | ?:[\\/]*)
  15248. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15249. ;;
  15250. *)
  15251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15252. for as_dir in $PATH
  15253. do
  15254. IFS=$as_save_IFS
  15255. test -z "$as_dir" && as_dir=.
  15256. for ac_exec_ext in '' $ac_executable_extensions; do
  15257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15258. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15260. break 2
  15261. fi
  15262. done
  15263. done
  15264. IFS=$as_save_IFS
  15265. ;;
  15266. esac
  15267. fi
  15268. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15269. if test -n "$PKG_CONFIG"; then
  15270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15271. $as_echo "$PKG_CONFIG" >&6; }
  15272. else
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15274. $as_echo "no" >&6; }
  15275. fi
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  15277. $as_echo_n "checking for nss with pkg-config... " >&6; }
  15278. if test -n "$PKG_CONFIG"; then
  15279. if $PKG_CONFIG --exists nss; then
  15280. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  15281. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  15282. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  15284. $as_echo "using system NSS" >&6; }
  15285. elif $PKG_CONFIG --exists dirsec-nss; then
  15286. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  15287. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  15288. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  15289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  15290. $as_echo "using system dirsec NSS" >&6; }
  15291. else
  15292. as_fn_error "NSS not found, specify with --with-nss." "$LINENO" 5
  15293. fi
  15294. fi
  15295. fi
  15296. # BEGIN COPYRIGHT BLOCK
  15297. # Copyright (C) 2009 Red Hat, Inc.
  15298. # All rights reserved.
  15299. #
  15300. # This program is free software; you can redistribute it and/or
  15301. # modify it under the terms of the GNU General Public License
  15302. # as published by the Free Software Foundation; either version 2
  15303. # of the License, or (at your option) any later version.
  15304. #
  15305. # This program is distributed in the hope that it will be useful,
  15306. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15307. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15308. # GNU General Public License for more details.
  15309. #
  15310. # You should have received a copy of the GNU General Public License
  15311. # along with this program; if not, write to the Free Software
  15312. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15313. #
  15314. # END COPYRIGHT BLOCK
  15315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  15316. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  15317. # check for --with-openldap
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  15319. $as_echo_n "checking for --with-openldap... " >&6; }
  15320. # Check whether --with-openldap was given.
  15321. if test "${with_openldap+set}" = set; then :
  15322. withval=$with_openldap;
  15323. if test "$withval" = yes
  15324. then
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  15326. $as_echo "using system OpenLDAP" >&6; }
  15327. elif test "$withval" = no
  15328. then
  15329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15330. $as_echo "no" >&6; }
  15331. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  15332. then
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15334. $as_echo "using $withval" >&6; }
  15335. OPENLDAPDIR=$withval
  15336. openldap_incdir="$OPENLDAPDIR/include"
  15337. openldap_inc="-I$openldap_incdir"
  15338. openldap_lib="-L$OPENLDAPDIR/lib"
  15339. openldap_libdir="$OPENLDAPDIR/lib"
  15340. openldap_bindir="$OPENLDAPDIR/bin"
  15341. with_openldap=yes
  15342. else
  15343. echo
  15344. as_fn_error "$withval not found" "$LINENO" 5
  15345. fi
  15346. else
  15347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15348. $as_echo "no" >&6; }
  15349. fi
  15350. # check for --with-openldap-inc
  15351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  15352. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  15353. # Check whether --with-openldap-inc was given.
  15354. if test "${with_openldap_inc+set}" = set; then :
  15355. withval=$with_openldap_inc;
  15356. if test -e "$withval"/ldap.h
  15357. then
  15358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15359. $as_echo "using $withval" >&6; }
  15360. openldap_incdir="$withval"
  15361. openldap_inc="-I$withval"
  15362. with_openldap=yes
  15363. else
  15364. echo
  15365. as_fn_error "$withval not found" "$LINENO" 5
  15366. fi
  15367. else
  15368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15369. $as_echo "no" >&6; }
  15370. fi
  15371. # check for --with-openldap-lib
  15372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  15373. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  15374. # Check whether --with-openldap-lib was given.
  15375. if test "${with_openldap_lib+set}" = set; then :
  15376. withval=$with_openldap_lib;
  15377. if test -d "$withval"
  15378. then
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15380. $as_echo "using $withval" >&6; }
  15381. openldap_lib="-L$withval"
  15382. openldap_libdir="$withval"
  15383. with_openldap=yes
  15384. else
  15385. echo
  15386. as_fn_error "$withval not found" "$LINENO" 5
  15387. fi
  15388. else
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15390. $as_echo "no" >&6; }
  15391. fi
  15392. # check for --with-openldap-bin
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  15394. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  15395. # Check whether --with-openldap-bin was given.
  15396. if test "${with_openldap_bin+set}" = set; then :
  15397. withval=$with_openldap_bin;
  15398. if test -d "$withval"
  15399. then
  15400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15401. $as_echo "using $withval" >&6; }
  15402. openldap_bindir="$withval"
  15403. with_openldap=yes
  15404. else
  15405. echo
  15406. as_fn_error "$withval not found" "$LINENO" 5
  15407. fi
  15408. else
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15410. $as_echo "no" >&6; }
  15411. fi
  15412. # if OPENLDAP is not found yet, try pkg-config
  15413. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  15414. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  15415. # Extract the first word of "pkg-config", so it can be a program name with args.
  15416. set dummy pkg-config; ac_word=$2
  15417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15418. $as_echo_n "checking for $ac_word... " >&6; }
  15419. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  15420. $as_echo_n "(cached) " >&6
  15421. else
  15422. case $PKG_CONFIG in
  15423. [\\/]* | ?:[\\/]*)
  15424. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15425. ;;
  15426. *)
  15427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15428. for as_dir in $PATH
  15429. do
  15430. IFS=$as_save_IFS
  15431. test -z "$as_dir" && as_dir=.
  15432. for ac_exec_ext in '' $ac_executable_extensions; do
  15433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15434. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15436. break 2
  15437. fi
  15438. done
  15439. done
  15440. IFS=$as_save_IFS
  15441. ;;
  15442. esac
  15443. fi
  15444. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15445. if test -n "$PKG_CONFIG"; then
  15446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15447. $as_echo "$PKG_CONFIG" >&6; }
  15448. else
  15449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15450. $as_echo "no" >&6; }
  15451. fi
  15452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  15453. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  15454. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  15455. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  15456. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  15457. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  15458. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  15459. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  15461. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  15462. else
  15463. openldap_incdir="/usr/include"
  15464. openldap_inc="-I$openldap_incdir"
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  15466. $as_echo "no OpenLDAP pkg-config files" >&6; }
  15467. fi
  15468. fi
  15469. fi
  15470. if test "$with_openldap" = yes ; then
  15471. save_cppflags="$CPPFLAGS"
  15472. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  15473. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  15474. if test "x$ac_cv_header_ldap_features_h" = x""yes; then :
  15475. else
  15476. as_fn_error "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  15477. fi
  15478. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  15479. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  15480. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  15481. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  15482. save_ldflags="$LDFLAGS"
  15483. LDFLAGS="$openldap_lib $LDFLAGS"
  15484. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  15485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  15486. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  15487. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  15488. $as_echo_n "(cached) " >&6
  15489. else
  15490. ac_check_lib_save_LIBS=$LIBS
  15491. LIBS="-lldap$ol_libver $LIBS"
  15492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15493. /* end confdefs.h. */
  15494. /* Override any GCC internal prototype to avoid an error.
  15495. Use char because int might match the return type of a GCC
  15496. builtin and then its argument prototype would still apply. */
  15497. #ifdef __cplusplus
  15498. extern "C"
  15499. #endif
  15500. char ldap_initialize ();
  15501. int
  15502. main ()
  15503. {
  15504. return ldap_initialize ();
  15505. ;
  15506. return 0;
  15507. }
  15508. _ACEOF
  15509. if ac_fn_c_try_link "$LINENO"; then :
  15510. eval "$as_ac_Lib=yes"
  15511. else
  15512. eval "$as_ac_Lib=no"
  15513. fi
  15514. rm -f core conftest.err conftest.$ac_objext \
  15515. conftest$ac_exeext conftest.$ac_ext
  15516. LIBS=$ac_check_lib_save_LIBS
  15517. fi
  15518. eval ac_res=\$$as_ac_Lib
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15520. $as_echo "$ac_res" >&6; }
  15521. eval as_val=\$$as_ac_Lib
  15522. if test "x$as_val" = x""yes; then :
  15523. have_ldap_lib=1
  15524. fi
  15525. if test -z "$have_ldap_lib" ; then
  15526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  15527. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  15528. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then :
  15529. $as_echo_n "(cached) " >&6
  15530. else
  15531. ac_check_lib_save_LIBS=$LIBS
  15532. LIBS="-lldap $LIBS"
  15533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15534. /* end confdefs.h. */
  15535. /* Override any GCC internal prototype to avoid an error.
  15536. Use char because int might match the return type of a GCC
  15537. builtin and then its argument prototype would still apply. */
  15538. #ifdef __cplusplus
  15539. extern "C"
  15540. #endif
  15541. char ldap_initialize ();
  15542. int
  15543. main ()
  15544. {
  15545. return ldap_initialize ();
  15546. ;
  15547. return 0;
  15548. }
  15549. _ACEOF
  15550. if ac_fn_c_try_link "$LINENO"; then :
  15551. ac_cv_lib_ldap_ldap_initialize=yes
  15552. else
  15553. ac_cv_lib_ldap_ldap_initialize=no
  15554. fi
  15555. rm -f core conftest.err conftest.$ac_objext \
  15556. conftest$ac_exeext conftest.$ac_ext
  15557. LIBS=$ac_check_lib_save_LIBS
  15558. fi
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  15560. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  15561. if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then :
  15562. unset ol_libver
  15563. else
  15564. as_fn_error "specified with-openldap but libldap not found" "$LINENO" 5
  15565. fi
  15566. fi
  15567. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  15568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  15569. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  15570. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  15571. $as_echo_n "(cached) " >&6
  15572. else
  15573. ac_check_lib_save_LIBS=$LIBS
  15574. LIBS="-lldap$ol_libver $LIBS"
  15575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15576. /* end confdefs.h. */
  15577. /* Override any GCC internal prototype to avoid an error.
  15578. Use char because int might match the return type of a GCC
  15579. builtin and then its argument prototype would still apply. */
  15580. #ifdef __cplusplus
  15581. extern "C"
  15582. #endif
  15583. char ldap_url_parse_ext ();
  15584. int
  15585. main ()
  15586. {
  15587. return ldap_url_parse_ext ();
  15588. ;
  15589. return 0;
  15590. }
  15591. _ACEOF
  15592. if ac_fn_c_try_link "$LINENO"; then :
  15593. eval "$as_ac_Lib=yes"
  15594. else
  15595. eval "$as_ac_Lib=no"
  15596. fi
  15597. rm -f core conftest.err conftest.$ac_objext \
  15598. conftest$ac_exeext conftest.$ac_ext
  15599. LIBS=$ac_check_lib_save_LIBS
  15600. fi
  15601. eval ac_res=\$$as_ac_Lib
  15602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15603. $as_echo "$ac_res" >&6; }
  15604. eval as_val=\$$as_ac_Lib
  15605. if test "x$as_val" = x""yes; then :
  15606. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  15607. fi
  15608. LDFLAGS="$save_ldflags"
  15609. CPPFLAGS="$save_cppflags"
  15610. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  15611. # where to find ldapsearch, et. al.
  15612. ldaptool_bindir=$openldap_bindir
  15613. # default options to pass to the tools
  15614. # use -x because all of our scripts use simple bind
  15615. ldaptool_opts=-x
  15616. # get plain output from ldapsearch - no version, no comments
  15617. plainldif_opts=-LLL
  15618. fi
  15619. # BEGIN COPYRIGHT BLOCK
  15620. # Copyright (C) 2007 Red Hat, Inc.
  15621. # All rights reserved.
  15622. #
  15623. # This program is free software; you can redistribute it and/or
  15624. # modify it under the terms of the GNU General Public License
  15625. # as published by the Free Software Foundation; either version 2
  15626. # of the License, or (at your option) any later version.
  15627. #
  15628. # This program is distributed in the hope that it will be useful,
  15629. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15630. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15631. # GNU General Public License for more details.
  15632. #
  15633. # You should have received a copy of the GNU General Public License
  15634. # along with this program; if not, write to the Free Software
  15635. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15636. #
  15637. # END COPYRIGHT BLOCK
  15638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  15639. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  15640. # check for --with-ldapsdk
  15641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  15642. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  15643. # Check whether --with-ldapsdk was given.
  15644. if test "${with_ldapsdk+set}" = set; then :
  15645. withval=$with_ldapsdk;
  15646. if test "$withval" = yes
  15647. then
  15648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15649. $as_echo "yes" >&6; }
  15650. elif test "$withval" = no
  15651. then
  15652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15653. $as_echo "no" >&6; }
  15654. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  15655. then
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15657. $as_echo "using $withval" >&6; }
  15658. LDAPSDKDIR=$withval
  15659. ldapsdk_inc="-I$LDAPSDKDIR/include"
  15660. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  15661. ldapsdk_libdir="$LDAPSDKDIR/lib"
  15662. ldapsdk_bindir="$LDAPSDKDIR/bin"
  15663. with_ldapsdk=yes
  15664. else
  15665. echo
  15666. as_fn_error "$withval not found" "$LINENO" 5
  15667. fi
  15668. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  15669. then
  15670. as_fn_error "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  15671. fi
  15672. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  15673. then
  15674. as_fn_error "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  15675. fi
  15676. else
  15677. if test "$with_openldap" = yes
  15678. then
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15680. $as_echo "no" >&6; }
  15681. else
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15683. $as_echo "yes" >&6; }
  15684. with_ldapsdk=yes
  15685. fi
  15686. fi
  15687. # check for --with-ldapsdk-inc
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  15689. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  15690. # Check whether --with-ldapsdk-inc was given.
  15691. if test "${with_ldapsdk_inc+set}" = set; then :
  15692. withval=$with_ldapsdk_inc;
  15693. if test -e "$withval"/ldap.h
  15694. then
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15696. $as_echo "using $withval" >&6; }
  15697. ldapsdk_inc="-I$withval"
  15698. with_ldapsdk=yes
  15699. else
  15700. echo
  15701. as_fn_error "$withval not found" "$LINENO" 5
  15702. fi
  15703. else
  15704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15705. $as_echo "no" >&6; }
  15706. fi
  15707. # check for --with-ldapsdk-lib
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  15709. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  15710. # Check whether --with-ldapsdk-lib was given.
  15711. if test "${with_ldapsdk_lib+set}" = set; then :
  15712. withval=$with_ldapsdk_lib;
  15713. if test -d "$withval"
  15714. then
  15715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15716. $as_echo "using $withval" >&6; }
  15717. ldapsdk_lib="-L$withval"
  15718. ldapsdk_libdir="$withval"
  15719. with_ldapsdk=yes
  15720. else
  15721. echo
  15722. as_fn_error "$withval not found" "$LINENO" 5
  15723. fi
  15724. else
  15725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15726. $as_echo "no" >&6; }
  15727. fi
  15728. # check for --with-ldapsdk-bin
  15729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  15730. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  15731. # Check whether --with-ldapsdk-bin was given.
  15732. if test "${with_ldapsdk_bin+set}" = set; then :
  15733. withval=$with_ldapsdk_bin;
  15734. if test -d "$withval"
  15735. then
  15736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15737. $as_echo "using $withval" >&6; }
  15738. ldapsdk_bindir="$withval"
  15739. with_ldapsdk=yes
  15740. else
  15741. echo
  15742. as_fn_error "$withval not found" "$LINENO" 5
  15743. fi
  15744. else
  15745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15746. $as_echo "no" >&6; }
  15747. fi
  15748. # if LDAPSDK is not found yet, try pkg-config
  15749. # last resort
  15750. if test "$with_ldapsdk" = yes ; then
  15751. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  15752. # Extract the first word of "pkg-config", so it can be a program name with args.
  15753. set dummy pkg-config; ac_word=$2
  15754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15755. $as_echo_n "checking for $ac_word... " >&6; }
  15756. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  15757. $as_echo_n "(cached) " >&6
  15758. else
  15759. case $PKG_CONFIG in
  15760. [\\/]* | ?:[\\/]*)
  15761. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15762. ;;
  15763. *)
  15764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15765. for as_dir in $PATH
  15766. do
  15767. IFS=$as_save_IFS
  15768. test -z "$as_dir" && as_dir=.
  15769. for ac_exec_ext in '' $ac_executable_extensions; do
  15770. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15771. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15773. break 2
  15774. fi
  15775. done
  15776. done
  15777. IFS=$as_save_IFS
  15778. ;;
  15779. esac
  15780. fi
  15781. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15782. if test -n "$PKG_CONFIG"; then
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15784. $as_echo "$PKG_CONFIG" >&6; }
  15785. else
  15786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15787. $as_echo "no" >&6; }
  15788. fi
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  15790. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  15791. if test -n "$PKG_CONFIG"; then
  15792. if $PKG_CONFIG --exists mozldap6; then
  15793. mozldappkg=mozldap6
  15794. elif $PKG_CONFIG --exists mozldap; then
  15795. mozldappkg=mozldap
  15796. else
  15797. as_fn_error "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  15798. fi
  15799. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  15800. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  15801. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  15802. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  15803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  15804. $as_echo "using system $mozldappkg" >&6; }
  15805. fi
  15806. fi
  15807. fi
  15808. if test "$with_ldapsdk" = yes ; then
  15809. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  15810. as_fn_error "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  15811. fi
  15812. if test -z "$ldapsdk_bindir" ; then
  15813. if -d $libdir/mozldap6 ; then
  15814. ldapsdk_bindir=$libdir/mozldap6
  15815. else
  15816. ldapsdk_bindir=$libdir/mozldap
  15817. fi
  15818. fi
  15819. save_cppflags="$CPPFLAGS"
  15820. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  15821. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  15822. #if LDAP_VENDOR_VERSION < 600
  15823. #error The LDAP C SDK version is not supported
  15824. #endif
  15825. "
  15826. if test "x$ac_cv_header_ldap_h" = x""yes; then :
  15827. isversion6=1
  15828. else
  15829. isversion6=
  15830. fi
  15831. CPPFLAGS="$save_cppflags"
  15832. if test -z "$isversion6" ; then
  15833. as_fn_error "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  15834. fi
  15835. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  15836. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  15837. # where to find ldapsearch, et. al.
  15838. ldaptool_bindir=$ldapsdk_bindir
  15839. # default options to pass to the tools
  15840. ldaptool_opts=
  15841. # get plain output from ldapsearch - no version
  15842. plainldif_opts=-1
  15843. fi
  15844. # BEGIN COPYRIGHT BLOCK
  15845. # Copyright (C) 2007 Red Hat, Inc.
  15846. # All rights reserved.
  15847. #
  15848. # This program is free software; you can redistribute it and/or
  15849. # modify it under the terms of the GNU General Public License
  15850. # as published by the Free Software Foundation; either version 2
  15851. # of the License, or (at your option) any later version.
  15852. #
  15853. # This program is distributed in the hope that it will be useful,
  15854. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15855. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15856. # GNU General Public License for more details.
  15857. #
  15858. # You should have received a copy of the GNU General Public License
  15859. # along with this program; if not, write to the Free Software
  15860. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15861. #
  15862. # END COPYRIGHT BLOCK
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  15864. $as_echo "$as_me: checking for db..." >&6;}
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  15866. $as_echo_n "checking for --with-db... " >&6; }
  15867. # Check whether --with-db was given.
  15868. if test "${with_db+set}" = set; then :
  15869. withval=$with_db;
  15870. if test "$withval" = "yes"; then
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15872. $as_echo "yes" >&6; }
  15873. elif test "$withval" = "no"; then
  15874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15875. $as_echo "no" >&6; }
  15876. as_fn_error "db is required." "$LINENO" 5
  15877. elif test -d "$withval"/include -a -d "$withval"/lib; then
  15878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15879. $as_echo "using $withval" >&6; }
  15880. DBDIR=$withval
  15881. db_lib="-L$DBDIR/lib"
  15882. db_libdir="$DBDIR/lib"
  15883. db_incdir="$DBDIR/include"
  15884. if ! test -e "$db_incdir/db.h" ; then
  15885. as_fn_error "$withval include dir not found" "$LINENO" 5
  15886. fi
  15887. db_inc="-I$db_incdir"
  15888. else
  15889. echo
  15890. as_fn_error "$withval not found" "$LINENO" 5
  15891. fi
  15892. else
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15894. $as_echo "yes" >&6; }
  15895. fi
  15896. # check for --with-db-inc
  15897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  15898. $as_echo_n "checking for --with-db-inc... " >&6; }
  15899. # Check whether --with-db-inc was given.
  15900. if test "${with_db_inc+set}" = set; then :
  15901. withval=$with_db_inc;
  15902. if test -e "$withval"/db.h
  15903. then
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15905. $as_echo "using $withval" >&6; }
  15906. db_incdir="$withval"
  15907. db_inc="-I$withval"
  15908. else
  15909. echo
  15910. as_fn_error "$withval not found" "$LINENO" 5
  15911. fi
  15912. else
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15914. $as_echo "no" >&6; }
  15915. fi
  15916. # check for --with-db-lib
  15917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  15918. $as_echo_n "checking for --with-db-lib... " >&6; }
  15919. # Check whether --with-db-lib was given.
  15920. if test "${with_db_lib+set}" = set; then :
  15921. withval=$with_db_lib;
  15922. if test -d "$withval"
  15923. then
  15924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15925. $as_echo "using $withval" >&6; }
  15926. db_lib="-L$withval"
  15927. db_libdir="$withval"
  15928. else
  15929. echo
  15930. as_fn_error "$withval not found" "$LINENO" 5
  15931. fi
  15932. else
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15934. $as_echo "no" >&6; }
  15935. fi
  15936. if test -z "$db_inc"; then
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  15938. $as_echo_n "checking for db.h... " >&6; }
  15939. if test -f "/usr/include/db4/db.h"; then
  15940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  15941. $as_echo "using /usr/include/db4/db.h" >&6; }
  15942. db_incdir="/usr/include/db4"
  15943. db_inc="-I/usr/include/db4"
  15944. db_lib='-L$(libdir)'
  15945. db_libdir='$(libdir)'
  15946. elif test -f "/usr/include/db.h"; then
  15947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  15948. $as_echo "using /usr/include/db.h" >&6; }
  15949. db_incdir="/usr/include"
  15950. db_inc="-I/usr/include"
  15951. db_lib='-L$(libdir)'
  15952. db_libdir='$(libdir)'
  15953. else
  15954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15955. $as_echo "no" >&6; }
  15956. as_fn_error "db not found, specify with --with-db." "$LINENO" 5
  15957. fi
  15958. fi
  15959. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  15960. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  15961. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  15962. db_libver=${db_ver_maj}.${db_ver_min}
  15963. save_ldflags="$LDFLAGS"
  15964. LDFLAGS="$db_lib $LDFLAGS"
  15965. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  15967. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  15968. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  15969. $as_echo_n "(cached) " >&6
  15970. else
  15971. ac_check_lib_save_LIBS=$LIBS
  15972. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  15973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15974. /* end confdefs.h. */
  15975. /* Override any GCC internal prototype to avoid an error.
  15976. Use char because int might match the return type of a GCC
  15977. builtin and then its argument prototype would still apply. */
  15978. #ifdef __cplusplus
  15979. extern "C"
  15980. #endif
  15981. char db_create ();
  15982. int
  15983. main ()
  15984. {
  15985. return db_create ();
  15986. ;
  15987. return 0;
  15988. }
  15989. _ACEOF
  15990. if ac_fn_c_try_link "$LINENO"; then :
  15991. eval "$as_ac_Lib=yes"
  15992. else
  15993. eval "$as_ac_Lib=no"
  15994. fi
  15995. rm -f core conftest.err conftest.$ac_objext \
  15996. conftest$ac_exeext conftest.$ac_ext
  15997. LIBS=$ac_check_lib_save_LIBS
  15998. fi
  15999. eval ac_res=\$$as_ac_Lib
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16001. $as_echo "$ac_res" >&6; }
  16002. eval as_val=\$$as_ac_Lib
  16003. if test "x$as_val" = x""yes; then :
  16004. true
  16005. else
  16006. as_fn_error "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  16007. fi
  16008. LDFLAGS="$save_ldflags"
  16009. # if DB is not found yet, try pkg-config
  16010. # last resort
  16011. # Although the other db_* variables are correctly assigned at this point,
  16012. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  16013. if test -n "$PKG_CONFIG"; then
  16014. if $PKG_CONFIG --exists db; then
  16015. db_bindir=`$PKG_CONFIG --variable=bindir db`
  16016. else
  16017. db_bindir=/usr/bin
  16018. fi
  16019. else
  16020. db_bindir=/usr/bin
  16021. fi
  16022. # BEGIN COPYRIGHT BLOCK
  16023. # Copyright (C) 2007 Red Hat, Inc.
  16024. # All rights reserved.
  16025. #
  16026. # This program is free software; you can redistribute it and/or
  16027. # modify it under the terms of the GNU General Public License
  16028. # as published by the Free Software Foundation; either version 2
  16029. # of the License, or (at your option) any later version.
  16030. #
  16031. # This program is distributed in the hope that it will be useful,
  16032. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16033. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16034. # GNU General Public License for more details.
  16035. #
  16036. # You should have received a copy of the GNU General Public License
  16037. # along with this program; if not, write to the Free Software
  16038. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16039. #
  16040. # END COPYRIGHT BLOCK
  16041. # -*- tab-width: 4; -*-
  16042. # Configure paths for SASL
  16043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  16044. $as_echo "$as_me: checking for SASL..." >&6;}
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  16046. $as_echo_n "checking for --with-sasl... " >&6; }
  16047. # Check whether --with-sasl was given.
  16048. if test "${with_sasl+set}" = set; then :
  16049. withval=$with_sasl;
  16050. if test "$withval" = "yes"; then
  16051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16052. $as_echo "yes" >&6; }
  16053. elif test "$withval" = "no"; then
  16054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16055. $as_echo "no" >&6; }
  16056. as_fn_error "SASL is required." "$LINENO" 5
  16057. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16059. $as_echo "using $withval" >&6; }
  16060. if test -f "$withval/include/sasl/sasl.h"; then
  16061. sasl_inc="-I$withval/include/sasl"
  16062. elif test -f "$withval/include/sasl.h"; then
  16063. sasl_inc="-I$withval/include"
  16064. else
  16065. as_fn_error "sasl.h not found" "$LINENO" 5
  16066. fi
  16067. sasl_lib="-L$withval/lib"
  16068. sasl_libdir="$withval/lib"
  16069. else
  16070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16071. $as_echo "yes" >&6; }
  16072. as_fn_error "SASL not found in $withval" "$LINENO" 5
  16073. fi
  16074. else
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16076. $as_echo "yes" >&6; }
  16077. fi
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  16079. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  16080. # Check whether --with-sasl-inc was given.
  16081. if test "${with_sasl_inc+set}" = set; then :
  16082. withval=$with_sasl_inc;
  16083. if test -f "$withval"/sasl.h; then
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16085. $as_echo "using $withval" >&6; }
  16086. sasl_inc="-I$withval"
  16087. else
  16088. echo
  16089. as_fn_error "$withval/sasl.h not found" "$LINENO" 5
  16090. fi
  16091. else
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16093. $as_echo "no" >&6; }
  16094. fi
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  16096. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  16097. # Check whether --with-sasl-lib was given.
  16098. if test "${with_sasl_lib+set}" = set; then :
  16099. withval=$with_sasl_lib;
  16100. if test -d "$withval"; then
  16101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16102. $as_echo "using $withval" >&6; }
  16103. sasl_lib="-L$withval"
  16104. sasl_libdir="$withval"
  16105. else
  16106. echo
  16107. as_fn_error "$withval not found" "$LINENO" 5
  16108. fi
  16109. else
  16110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16111. $as_echo "no" >&6; }
  16112. fi
  16113. if test -z "$sasl_inc"; then
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  16115. $as_echo_n "checking for sasl.h... " >&6; }
  16116. if test -f /usr/include/sasl/sasl.h; then
  16117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  16118. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  16119. sasl_inc="-I/usr/include/sasl"
  16120. elif test -f /usr/include/sasl.h; then
  16121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  16122. $as_echo "using /usr/include/sasl.h" >&6; }
  16123. sasl_inc="-I/usr/include"
  16124. else
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16126. $as_echo "no" >&6; }
  16127. as_fn_error "SASL not found, specify with --with-sasl." "$LINENO" 5
  16128. fi
  16129. fi
  16130. # BEGIN COPYRIGHT BLOCK
  16131. # Copyright (C) 2007 Red Hat, Inc.
  16132. # All rights reserved.
  16133. #
  16134. # This program is free software; you can redistribute it and/or
  16135. # modify it under the terms of the GNU General Public License
  16136. # as published by the Free Software Foundation; either version 2
  16137. # of the License, or (at your option) any later version.
  16138. #
  16139. # This program is distributed in the hope that it will be useful,
  16140. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16141. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16142. # GNU General Public License for more details.
  16143. #
  16144. # You should have received a copy of the GNU General Public License
  16145. # along with this program; if not, write to the Free Software
  16146. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16147. #
  16148. # END COPYRIGHT BLOCK
  16149. #
  16150. # Configure paths for SVRCORE
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  16152. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  16153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  16154. $as_echo_n "checking for --with-svrcore... " >&6; }
  16155. # Check whether --with-svrcore was given.
  16156. if test "${with_svrcore+set}" = set; then :
  16157. withval=$with_svrcore;
  16158. if test "$withval" = "yes"; then
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16160. $as_echo "yes" >&6; }
  16161. elif test "$withval" = "no"; then
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16163. $as_echo "no" >&6; }
  16164. as_fn_error "SVRCORE is required." "$LINENO" 5
  16165. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16167. $as_echo "using $withval" >&6; }
  16168. if test -f "$withval/include/svrcore.h"; then
  16169. svrcore_inc="-I$withval/include"
  16170. else
  16171. as_fn_error "svrcore.h not found" "$LINENO" 5
  16172. fi
  16173. svrcore_lib="-L$withval/lib"
  16174. else
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16176. $as_echo "yes" >&6; }
  16177. as_fn_error "SVRCORE not found in $withval" "$LINENO" 5
  16178. fi
  16179. else
  16180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16181. $as_echo "yes" >&6; }
  16182. fi
  16183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  16184. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  16185. # Check whether --with-svrcore-inc was given.
  16186. if test "${with_svrcore_inc+set}" = set; then :
  16187. withval=$with_svrcore_inc;
  16188. if test -f "$withval"/svrcore.h; then
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16190. $as_echo "using $withval" >&6; }
  16191. svrcore_inc="-I$withval"
  16192. else
  16193. echo
  16194. as_fn_error "$withval/svrcore.h not found" "$LINENO" 5
  16195. fi
  16196. else
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16198. $as_echo "no" >&6; }
  16199. fi
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  16201. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  16202. # Check whether --with-svrcore-lib was given.
  16203. if test "${with_svrcore_lib+set}" = set; then :
  16204. withval=$with_svrcore_lib;
  16205. if test -d "$withval"; then
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16207. $as_echo "using $withval" >&6; }
  16208. svrcore_lib="-L$withval"
  16209. else
  16210. echo
  16211. as_fn_error "$withval not found" "$LINENO" 5
  16212. fi
  16213. else
  16214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16215. $as_echo "no" >&6; }
  16216. fi
  16217. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  16218. # Extract the first word of "pkg-config", so it can be a program name with args.
  16219. set dummy pkg-config; ac_word=$2
  16220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16221. $as_echo_n "checking for $ac_word... " >&6; }
  16222. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  16223. $as_echo_n "(cached) " >&6
  16224. else
  16225. case $PKG_CONFIG in
  16226. [\\/]* | ?:[\\/]*)
  16227. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16228. ;;
  16229. *)
  16230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16231. for as_dir in $PATH
  16232. do
  16233. IFS=$as_save_IFS
  16234. test -z "$as_dir" && as_dir=.
  16235. for ac_exec_ext in '' $ac_executable_extensions; do
  16236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16237. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16239. break 2
  16240. fi
  16241. done
  16242. done
  16243. IFS=$as_save_IFS
  16244. ;;
  16245. esac
  16246. fi
  16247. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16248. if test -n "$PKG_CONFIG"; then
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16250. $as_echo "$PKG_CONFIG" >&6; }
  16251. else
  16252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16253. $as_echo "no" >&6; }
  16254. fi
  16255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  16256. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  16257. if test -n "$PKG_CONFIG"; then
  16258. if $PKG_CONFIG --exists svrcore; then
  16259. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  16260. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  16261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  16262. $as_echo "using system svrcore" >&6; }
  16263. fi
  16264. fi
  16265. fi
  16266. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  16267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  16268. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  16269. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then :
  16270. $as_echo_n "(cached) " >&6
  16271. else
  16272. ac_check_lib_save_LIBS=$LIBS
  16273. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  16274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16275. /* end confdefs.h. */
  16276. /* Override any GCC internal prototype to avoid an error.
  16277. Use char because int might match the return type of a GCC
  16278. builtin and then its argument prototype would still apply. */
  16279. #ifdef __cplusplus
  16280. extern "C"
  16281. #endif
  16282. char SVRCORE_GetRegisteredPinObj ();
  16283. int
  16284. main ()
  16285. {
  16286. return SVRCORE_GetRegisteredPinObj ();
  16287. ;
  16288. return 0;
  16289. }
  16290. _ACEOF
  16291. if ac_fn_c_try_link "$LINENO"; then :
  16292. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  16293. else
  16294. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  16295. fi
  16296. rm -f core conftest.err conftest.$ac_objext \
  16297. conftest$ac_exeext conftest.$ac_ext
  16298. LIBS=$ac_check_lib_save_LIBS
  16299. fi
  16300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  16301. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  16302. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = x""yes; then :
  16303. havesvrcore=1
  16304. fi
  16305. if test -n "$havesvrcore" ; then
  16306. save_cppflags="$CPPFLAGS"
  16307. CPPFLAGS="$nss_inc $nspr_inc"
  16308. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  16309. if test "x$ac_cv_header_svrcore_h" = x""yes; then :
  16310. havesvrcore=1
  16311. else
  16312. havesvrcore=
  16313. fi
  16314. CPPFLAGS="$save_cppflags"
  16315. fi
  16316. if test -z "$havesvrcore" ; then
  16317. as_fn_error "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  16318. fi
  16319. fi
  16320. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  16321. if test -f /usr/include/svrcore.h; then
  16322. svrcore_inc="-I/usr/include"
  16323. svrcore_lib="-L/usr/lib"
  16324. else
  16325. as_fn_error "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  16326. fi
  16327. fi
  16328. # BEGIN COPYRIGHT BLOCK
  16329. # Copyright (C) 2006 Red Hat, Inc.
  16330. # All rights reserved.
  16331. #
  16332. # This program is free software; you can redistribute it and/or
  16333. # modify it under the terms of the GNU General Public License
  16334. # as published by the Free Software Foundation; either version 2
  16335. # of the License, or (at your option) any later version.
  16336. #
  16337. # This program is distributed in the hope that it will be useful,
  16338. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16339. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16340. # GNU General Public License for more details.
  16341. #
  16342. # You should have received a copy of the GNU General Public License
  16343. # along with this program; if not, write to the Free Software
  16344. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16345. #
  16346. # END COPYRIGHT BLOCK
  16347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  16348. $as_echo "$as_me: checking for LIBICU..." >&6;}
  16349. # check for --with-icu
  16350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  16351. $as_echo_n "checking for --with-icu... " >&6; }
  16352. # Check whether --with-icu was given.
  16353. if test "${with_icu+set}" = set; then :
  16354. withval=$with_icu;
  16355. if test "$withval" = "yes"
  16356. then
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16358. $as_echo "yes" >&6; }
  16359. elif test "$withval" = "no"
  16360. then
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16362. $as_echo "no" >&6; }
  16363. as_fn_error "ICU is required." "$LINENO" 5
  16364. elif test -d "$withval"/lib
  16365. then
  16366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16367. $as_echo "using $withval" >&6; }
  16368. ICUDIR=$withval
  16369. icu_lib="-L$ICUDIR/lib"
  16370. icu_inc="-I$withval/include"
  16371. icu_bin="$withval/bin"
  16372. else
  16373. echo
  16374. as_fn_error "$withval not found" "$LINENO" 5
  16375. fi
  16376. else
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16378. $as_echo "yes" >&6; }
  16379. fi
  16380. # check for --with-icu-inc
  16381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  16382. $as_echo_n "checking for --with-icu-inc... " >&6; }
  16383. # Check whether --with-icu-inc was given.
  16384. if test "${with_icu_inc+set}" = set; then :
  16385. withval=$with_icu_inc;
  16386. if test -d "$withval"
  16387. then
  16388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16389. $as_echo "using $withval" >&6; }
  16390. icu_inc="-I$withval"
  16391. else
  16392. echo
  16393. as_fn_error "$withval not found" "$LINENO" 5
  16394. fi
  16395. else
  16396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16397. $as_echo "no" >&6; }
  16398. fi
  16399. # check for --with-icu-lib
  16400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  16401. $as_echo_n "checking for --with-icu-lib... " >&6; }
  16402. # Check whether --with-icu-lib was given.
  16403. if test "${with_icu_lib+set}" = set; then :
  16404. withval=$with_icu_lib;
  16405. if test -d "$withval"
  16406. then
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16408. $as_echo "using $withval" >&6; }
  16409. icu_lib="-L$withval"
  16410. else
  16411. echo
  16412. as_fn_error "$withval not found" "$LINENO" 5
  16413. fi
  16414. else
  16415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16416. $as_echo "no" >&6; }
  16417. fi
  16418. # check for --with-icu-bin
  16419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  16420. $as_echo_n "checking for --with-icu-bin... " >&6; }
  16421. # Check whether --with-icu-bin was given.
  16422. if test "${with_icu_bin+set}" = set; then :
  16423. withval=$with_icu_bin;
  16424. if test -d "$withval"
  16425. then
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16427. $as_echo "using $withval" >&6; }
  16428. icu_bin="$withval"
  16429. else
  16430. echo
  16431. as_fn_error "$withval not found" "$LINENO" 5
  16432. fi
  16433. else
  16434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16435. $as_echo "no" >&6; }
  16436. fi
  16437. # if ICU is not found yet, try pkg-config
  16438. # last resort
  16439. if test -z "$icu_lib"; then
  16440. # Extract the first word of "icu-config", so it can be a program name with args.
  16441. set dummy icu-config; ac_word=$2
  16442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16443. $as_echo_n "checking for $ac_word... " >&6; }
  16444. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then :
  16445. $as_echo_n "(cached) " >&6
  16446. else
  16447. case $ICU_CONFIG in
  16448. [\\/]* | ?:[\\/]*)
  16449. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  16450. ;;
  16451. *)
  16452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16453. for as_dir in $PATH
  16454. do
  16455. IFS=$as_save_IFS
  16456. test -z "$as_dir" && as_dir=.
  16457. for ac_exec_ext in '' $ac_executable_extensions; do
  16458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16459. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16461. break 2
  16462. fi
  16463. done
  16464. done
  16465. IFS=$as_save_IFS
  16466. ;;
  16467. esac
  16468. fi
  16469. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  16470. if test -n "$ICU_CONFIG"; then
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  16472. $as_echo "$ICU_CONFIG" >&6; }
  16473. else
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16475. $as_echo "no" >&6; }
  16476. fi
  16477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  16478. $as_echo_n "checking for icu with icu-config... " >&6; }
  16479. if test -n "$ICU_CONFIG"; then
  16480. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  16481. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  16482. icu_bin=`$ICU_CONFIG --bindir`
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  16484. $as_echo "using system ICU" >&6; }
  16485. else
  16486. as_fn_error "ICU not found, specify with --with-icu." "$LINENO" 5
  16487. fi
  16488. fi
  16489. # BEGIN COPYRIGHT BLOCK
  16490. # Copyright (C) 2006 Red Hat, Inc.
  16491. # All rights reserved.
  16492. #
  16493. # This program is free software; you can redistribute it and/or
  16494. # modify it under the terms of the GNU General Public License
  16495. # as published by the Free Software Foundation; either version 2
  16496. # of the License, or (at your option) any later version.
  16497. #
  16498. # This program is distributed in the hope that it will be useful,
  16499. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16500. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16501. # GNU General Public License for more details.
  16502. #
  16503. # You should have received a copy of the GNU General Public License
  16504. # along with this program; if not, write to the Free Software
  16505. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16506. #
  16507. # END COPYRIGHT BLOCK
  16508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  16509. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  16510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  16511. $as_echo_n "checking for --with-netsnmp... " >&6; }
  16512. # Check whether --with-netsnmp was given.
  16513. if test "${with_netsnmp+set}" = set; then :
  16514. withval=$with_netsnmp;
  16515. if test "$withval" = "yes"; then
  16516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16517. $as_echo "yes" >&6; }
  16518. elif test "$withval" = "no"; then
  16519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16520. $as_echo "no" >&6; }
  16521. as_fn_error "Net-SNMP is required." "$LINENO" 5
  16522. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  16523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16524. $as_echo "using $withval" >&6; }
  16525. NETSNMPDIR=$withval
  16526. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  16527. netsnmp_inc="-I$withval/include"
  16528. else
  16529. as_fn_error "net-snmp-config.h not found" "$LINENO" 5
  16530. fi
  16531. netsnmp_lib="-L$withval/lib"
  16532. netsnmp_libdir="$withval/lib"
  16533. else
  16534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16535. $as_echo "yes" >&6; }
  16536. as_fn_error "$withval not found" "$LINENO" 5
  16537. fi
  16538. else
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16540. $as_echo "yes" >&6; }
  16541. fi
  16542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  16543. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  16544. # Check whether --with-netsnmp-inc was given.
  16545. if test "${with_netsnmp_inc+set}" = set; then :
  16546. withval=$with_netsnmp_inc;
  16547. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  16548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16549. $as_echo "using $withval" >&6; }
  16550. netsnmp_inc="-I$withval"
  16551. else
  16552. echo
  16553. as_fn_error "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  16554. fi
  16555. else
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16557. $as_echo "no" >&6; }
  16558. fi
  16559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  16560. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  16561. # Check whether --with-netsnmp-lib was given.
  16562. if test "${with_netsnmp_lib+set}" = set; then :
  16563. withval=$with_netsnmp_lib;
  16564. if test -d "$withval"
  16565. then
  16566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16567. $as_echo "using $withval" >&6; }
  16568. netsnmp_lib="-L$withval"
  16569. netsnmp_libdir="$withval"
  16570. else
  16571. echo
  16572. as_fn_error "$withval not found" "$LINENO" 5
  16573. fi
  16574. else
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16576. $as_echo "no" >&6; }
  16577. fi
  16578. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  16579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  16580. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  16581. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  16583. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  16584. netsnmp_inc="-I/usr/include"
  16585. else
  16586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16587. $as_echo "no" >&6; }
  16588. as_fn_error "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  16589. fi
  16590. fi
  16591. if test -n "$netsnmp_inc"; then
  16592. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  16593. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  16594. else
  16595. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  16596. set dummy net-snmp-config; ac_word=$2
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16598. $as_echo_n "checking for $ac_word... " >&6; }
  16599. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then :
  16600. $as_echo_n "(cached) " >&6
  16601. else
  16602. case $NETSNMP_CONFIG in
  16603. [\\/]* | ?:[\\/]*)
  16604. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  16605. ;;
  16606. *)
  16607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16608. for as_dir in $PATH
  16609. do
  16610. IFS=$as_save_IFS
  16611. test -z "$as_dir" && as_dir=.
  16612. for ac_exec_ext in '' $ac_executable_extensions; do
  16613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16614. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16616. break 2
  16617. fi
  16618. done
  16619. done
  16620. IFS=$as_save_IFS
  16621. ;;
  16622. esac
  16623. fi
  16624. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  16625. if test -n "$NETSNMP_CONFIG"; then
  16626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  16627. $as_echo "$NETSNMP_CONFIG" >&6; }
  16628. else
  16629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16630. $as_echo "no" >&6; }
  16631. fi
  16632. fi
  16633. if test -n "$NETSNMP_CONFIG"; then
  16634. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  16635. else
  16636. as_fn_error "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  16637. fi
  16638. else
  16639. as_fn_error "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  16640. fi
  16641. # BEGIN COPYRIGHT BLOCK
  16642. # Copyright (C) 2008 Red Hat, Inc.
  16643. # All rights reserved.
  16644. #
  16645. # This program is free software; you can redistribute it and/or
  16646. # modify it under the terms of the GNU General Public License
  16647. # as published by the Free Software Foundation; either version 2
  16648. # of the License, or (at your option) any later version.
  16649. #
  16650. # This program is distributed in the hope that it will be useful,
  16651. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16652. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16653. # GNU General Public License for more details.
  16654. #
  16655. # You should have received a copy of the GNU General Public License
  16656. # along with this program; if not, write to the Free Software
  16657. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16658. #
  16659. # END COPYRIGHT BLOCK
  16660. # -*- tab-width: 4; -*-
  16661. # Configure paths for Kerberos
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  16663. $as_echo "$as_me: checking for Kerberos..." >&6;}
  16664. if test -z "$with_kerberos" ; then
  16665. with_kerberos=yes # if not set on cmdline, set default
  16666. fi
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  16668. $as_echo_n "checking for --with-kerberos... " >&6; }
  16669. # Check whether --with-kerberos was given.
  16670. if test "${with_kerberos+set}" = set; then :
  16671. withval=$with_kerberos;
  16672. if test "x$withval" = "xyes"; then
  16673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16674. $as_echo "yes" >&6; }
  16675. elif test "x$withval" = "xno"; then
  16676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16677. $as_echo "no" >&6; }
  16678. with_kerberos=
  16679. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  16680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16681. $as_echo "using $withval" >&6; }
  16682. kerberos_incdir="$withval/include"
  16683. kerberos_libdir="$withval/lib"
  16684. else
  16685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16686. $as_echo "yes" >&6; }
  16687. as_fn_error "kerberos not found in $withval" "$LINENO" 5
  16688. fi
  16689. else
  16690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16691. $as_echo "no" >&6; }
  16692. with_kerberos=
  16693. fi
  16694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  16695. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  16696. # Check whether --with-kerberos-inc was given.
  16697. if test "${with_kerberos_inc+set}" = set; then :
  16698. withval=$with_kerberos_inc;
  16699. if test -f "$withval"/krb5.h; then
  16700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16701. $as_echo "using $withval" >&6; }
  16702. kerberos_incdir="$withval"
  16703. with_kerberos=yes # implies use of kerberos
  16704. else
  16705. echo
  16706. as_fn_error "$withval/krb5.h not found" "$LINENO" 5
  16707. fi
  16708. else
  16709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16710. $as_echo "no" >&6; }
  16711. fi
  16712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  16713. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  16714. # Check whether --with-kerberos-lib was given.
  16715. if test "${with_kerberos_lib+set}" = set; then :
  16716. withval=$with_kerberos_lib;
  16717. if test -d "$withval"; then
  16718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16719. $as_echo "using $withval" >&6; }
  16720. kerberos_libdir="$withval"
  16721. with_kerberos=yes # implies use of kerberos
  16722. else
  16723. echo
  16724. as_fn_error "$withval not found" "$LINENO" 5
  16725. fi
  16726. else
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16728. $as_echo "no" >&6; }
  16729. fi
  16730. if test -n "$with_kerberos" ; then
  16731. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  16732. if test -z "$KRB5_CONFIG_BIN" ; then
  16733. # Extract the first word of "krb5-config", so it can be a program name with args.
  16734. set dummy krb5-config; ac_word=$2
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16736. $as_echo_n "checking for $ac_word... " >&6; }
  16737. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then :
  16738. $as_echo_n "(cached) " >&6
  16739. else
  16740. case $KRB5_CONFIG_BIN in
  16741. [\\/]* | ?:[\\/]*)
  16742. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  16743. ;;
  16744. *)
  16745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16746. for as_dir in $PATH
  16747. do
  16748. IFS=$as_save_IFS
  16749. test -z "$as_dir" && as_dir=.
  16750. for ac_exec_ext in '' $ac_executable_extensions; do
  16751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16752. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  16753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16754. break 2
  16755. fi
  16756. done
  16757. done
  16758. IFS=$as_save_IFS
  16759. ;;
  16760. esac
  16761. fi
  16762. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  16763. if test -n "$KRB5_CONFIG_BIN"; then
  16764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  16765. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  16766. else
  16767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16768. $as_echo "no" >&6; }
  16769. fi
  16770. fi
  16771. if test -n "$KRB5_CONFIG_BIN" ; then
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  16773. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  16774. if test -z "$kerberos_libdir" ; then
  16775. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  16776. fi
  16777. if test -z "$kerberos_incdir" ; then
  16778. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  16779. fi
  16780. if test -n "$kerberos_lib" ; then
  16781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  16782. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  16783. have_krb5=yes
  16784. fi
  16785. fi
  16786. fi
  16787. fi
  16788. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  16789. # save these in order to set them to use the check macros below
  16790. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  16791. save_CPPFLAGS="$CPPFLAGS"
  16792. if test -n "$kerberos_incdir" ; then
  16793. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  16794. fi
  16795. save_LDFLAGS="$LDFLAGS"
  16796. if test -n "$kerberos_libdir" ; then
  16797. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  16798. fi
  16799. krb5_impl=mit
  16800. for ac_header in heim_err.h
  16801. do :
  16802. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  16803. if test "x$ac_cv_header_heim_err_h" = x""yes; then :
  16804. cat >>confdefs.h <<_ACEOF
  16805. #define HAVE_HEIM_ERR_H 1
  16806. _ACEOF
  16807. fi
  16808. done
  16809. if test $ac_cv_header_heim_err_h = yes ; then
  16810. krb5_impl=heimdal
  16811. fi
  16812. if test "x$krb5_impl" = "xmit"; then
  16813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  16814. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  16815. if test "${ac_cv_lib_k5crypto_main+set}" = set; then :
  16816. $as_echo_n "(cached) " >&6
  16817. else
  16818. ac_check_lib_save_LIBS=$LIBS
  16819. LIBS="-lk5crypto $LIBS"
  16820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16821. /* end confdefs.h. */
  16822. int
  16823. main ()
  16824. {
  16825. return main ();
  16826. ;
  16827. return 0;
  16828. }
  16829. _ACEOF
  16830. if ac_fn_c_try_link "$LINENO"; then :
  16831. ac_cv_lib_k5crypto_main=yes
  16832. else
  16833. ac_cv_lib_k5crypto_main=no
  16834. fi
  16835. rm -f core conftest.err conftest.$ac_objext \
  16836. conftest$ac_exeext conftest.$ac_ext
  16837. LIBS=$ac_check_lib_save_LIBS
  16838. fi
  16839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  16840. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  16841. if test "x$ac_cv_lib_k5crypto_main" = x""yes; then :
  16842. krb5crypto=k5crypto
  16843. else
  16844. krb5crypto=crypto
  16845. fi
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  16847. $as_echo_n "checking for main in -lkrb5... " >&6; }
  16848. if test "${ac_cv_lib_krb5_main+set}" = set; then :
  16849. $as_echo_n "(cached) " >&6
  16850. else
  16851. ac_check_lib_save_LIBS=$LIBS
  16852. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  16853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16854. /* end confdefs.h. */
  16855. int
  16856. main ()
  16857. {
  16858. return main ();
  16859. ;
  16860. return 0;
  16861. }
  16862. _ACEOF
  16863. if ac_fn_c_try_link "$LINENO"; then :
  16864. ac_cv_lib_krb5_main=yes
  16865. else
  16866. ac_cv_lib_krb5_main=no
  16867. fi
  16868. rm -f core conftest.err conftest.$ac_objext \
  16869. conftest$ac_exeext conftest.$ac_ext
  16870. LIBS=$ac_check_lib_save_LIBS
  16871. fi
  16872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  16873. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  16874. if test "x$ac_cv_lib_krb5_main" = x""yes; then :
  16875. have_krb5=yes
  16876. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  16877. else
  16878. have_krb5=no
  16879. fi
  16880. elif test "x$krb5_impl" = "xheimdal"; then
  16881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  16882. $as_echo_n "checking for main in -ldes... " >&6; }
  16883. if test "${ac_cv_lib_des_main+set}" = set; then :
  16884. $as_echo_n "(cached) " >&6
  16885. else
  16886. ac_check_lib_save_LIBS=$LIBS
  16887. LIBS="-ldes $LIBS"
  16888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16889. /* end confdefs.h. */
  16890. int
  16891. main ()
  16892. {
  16893. return main ();
  16894. ;
  16895. return 0;
  16896. }
  16897. _ACEOF
  16898. if ac_fn_c_try_link "$LINENO"; then :
  16899. ac_cv_lib_des_main=yes
  16900. else
  16901. ac_cv_lib_des_main=no
  16902. fi
  16903. rm -f core conftest.err conftest.$ac_objext \
  16904. conftest$ac_exeext conftest.$ac_ext
  16905. LIBS=$ac_check_lib_save_LIBS
  16906. fi
  16907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  16908. $as_echo "$ac_cv_lib_des_main" >&6; }
  16909. if test "x$ac_cv_lib_des_main" = x""yes; then :
  16910. krb5crypto=des
  16911. else
  16912. krb5crypto=crypto
  16913. fi
  16914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  16915. $as_echo_n "checking for main in -lkrb5... " >&6; }
  16916. if test "${ac_cv_lib_krb5_main+set}" = set; then :
  16917. $as_echo_n "(cached) " >&6
  16918. else
  16919. ac_check_lib_save_LIBS=$LIBS
  16920. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  16921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16922. /* end confdefs.h. */
  16923. int
  16924. main ()
  16925. {
  16926. return main ();
  16927. ;
  16928. return 0;
  16929. }
  16930. _ACEOF
  16931. if ac_fn_c_try_link "$LINENO"; then :
  16932. ac_cv_lib_krb5_main=yes
  16933. else
  16934. ac_cv_lib_krb5_main=no
  16935. fi
  16936. rm -f core conftest.err conftest.$ac_objext \
  16937. conftest$ac_exeext conftest.$ac_ext
  16938. LIBS=$ac_check_lib_save_LIBS
  16939. fi
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  16941. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  16942. if test "x$ac_cv_lib_krb5_main" = x""yes; then :
  16943. have_krb5=yes
  16944. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  16945. else
  16946. have_krb5=no
  16947. fi
  16948. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  16949. else
  16950. have_krb5=no
  16951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  16952. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  16953. fi
  16954. # reset to original values
  16955. CPPFLAGS="$save_CPPFLAGS"
  16956. LDFLAGS="$save_LDFLAGS"
  16957. if test -n "$kerberos_incdir" ; then
  16958. kerberos_inc="-I$kerberos_incdir"
  16959. fi
  16960. if test -n "$kerberos_libdir" ; then
  16961. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  16962. fi
  16963. fi
  16964. if test -n "$with_kerberos" ; then
  16965. if test "x$have_krb5" = "xyes" ; then
  16966. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  16967. else
  16968. as_fn_error "Required Kerberos 5 support not available" "$LINENO" 5
  16969. fi
  16970. save_LIBS="$LIBS"
  16971. LIBS="$kerberos_lib"
  16972. save_CPPFLAGS="$CPPFLAGS"
  16973. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  16974. for ac_func in krb5_cc_new_unique
  16975. do :
  16976. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  16977. if test "x$ac_cv_func_krb5_cc_new_unique" = x""yes; then :
  16978. cat >>confdefs.h <<_ACEOF
  16979. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  16980. _ACEOF
  16981. fi
  16982. done
  16983. LIBS="$save_LIBS"
  16984. CPPFLAGS="$save_CPPFLAGS"
  16985. fi
  16986. # BEGIN COPYRIGHT BLOCK
  16987. # Copyright (C) 2007 Red Hat, Inc.
  16988. # All rights reserved.
  16989. #
  16990. # This program is free software; you can redistribute it and/or
  16991. # modify it under the terms of the GNU General Public License
  16992. # as published by the Free Software Foundation; either version 2
  16993. # of the License, or (at your option) any later version.
  16994. #
  16995. # This program is distributed in the hope that it will be useful,
  16996. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16997. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16998. # GNU General Public License for more details.
  16999. #
  17000. # You should have received a copy of the GNU General Public License
  17001. # along with this program; if not, write to the Free Software
  17002. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17003. #
  17004. # END COPYRIGHT BLOCK
  17005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  17006. $as_echo "$as_me: checking for PCRE..." >&6;}
  17007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  17008. $as_echo_n "checking for --with-pcre... " >&6; }
  17009. # Check whether --with-pcre was given.
  17010. if test "${with_pcre+set}" = set; then :
  17011. withval=$with_pcre;
  17012. if test "$withval" = "yes"; then
  17013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17014. $as_echo "yes" >&6; }
  17015. elif test "$withval" = "no"; then
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17017. $as_echo "no" >&6; }
  17018. as_fn_error "PCRE is required." "$LINENO" 5
  17019. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17021. $as_echo "using $withval" >&6; }
  17022. PCREDIR=$withval
  17023. pcre_lib="-L$PCREDIR/lib"
  17024. pcre_libdir="$PCREDIR/lib"
  17025. pcre_incdir="$PCREDIR/include"
  17026. if ! test -e "$pcre_incdir/pcre.h" ; then
  17027. as_fn_error "$withval include dir not found" "$LINENO" 5
  17028. fi
  17029. pcre_inc="-I$pcre_incdir"
  17030. else
  17031. echo
  17032. as_fn_error "$withval not found" "$LINENO" 5
  17033. fi
  17034. else
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17036. $as_echo "yes" >&6; }
  17037. fi
  17038. #
  17039. # if PCRE is not found yet, try pkg-config
  17040. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  17041. # Extract the first word of "pkg-config", so it can be a program name with args.
  17042. set dummy pkg-config; ac_word=$2
  17043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17044. $as_echo_n "checking for $ac_word... " >&6; }
  17045. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  17046. $as_echo_n "(cached) " >&6
  17047. else
  17048. case $PKG_CONFIG in
  17049. [\\/]* | ?:[\\/]*)
  17050. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17051. ;;
  17052. *)
  17053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17054. for as_dir in $PATH
  17055. do
  17056. IFS=$as_save_IFS
  17057. test -z "$as_dir" && as_dir=.
  17058. for ac_exec_ext in '' $ac_executable_extensions; do
  17059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17060. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17062. break 2
  17063. fi
  17064. done
  17065. done
  17066. IFS=$as_save_IFS
  17067. ;;
  17068. esac
  17069. fi
  17070. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17071. if test -n "$PKG_CONFIG"; then
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17073. $as_echo "$PKG_CONFIG" >&6; }
  17074. else
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17076. $as_echo "no" >&6; }
  17077. fi
  17078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  17079. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  17080. if test -n "$PKG_CONFIG"; then
  17081. if $PKG_CONFIG --exists pcre; then
  17082. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  17083. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  17084. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  17086. $as_echo "using system PCRE" >&6; }
  17087. elif $PKG_CONFIG --exists libpcre; then
  17088. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  17089. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  17090. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  17091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  17092. $as_echo "using system PCRE" >&6; }
  17093. else
  17094. as_fn_error "PCRE not found, specify with --with-pcre." "$LINENO" 5
  17095. fi
  17096. fi
  17097. fi
  17098. if test -z "$pcre_inc"; then
  17099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  17100. $as_echo_n "checking for pcre.h... " >&6; }
  17101. if test -f "/usr/include/pcre/pcre.h"; then
  17102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  17103. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  17104. pcre_incdir="/usr/include/pcre"
  17105. pcre_inc="-I/usr/include/pcre"
  17106. pcre_lib='-L$(libdir)'
  17107. pcre_libdir='$(libdir)'
  17108. elif test -f "/usr/include/pcre.h"; then
  17109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  17110. $as_echo "using /usr/include/pcre.h" >&6; }
  17111. pcre_incdir="/usr/include"
  17112. pcre_inc="-I/usr/include"
  17113. pcre_lib='-L$(libdir)'
  17114. pcre_libdir='$(libdir)'
  17115. else
  17116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17117. $as_echo "no" >&6; }
  17118. as_fn_error "PCRE not found, specify with --with-pcre." "$LINENO" 5
  17119. fi
  17120. fi
  17121. # BEGIN COPYRIGHT BLOCK
  17122. # Copyright (C) 2009 Red Hat, Inc.
  17123. # All rights reserved.
  17124. #
  17125. # This program is free software; you can redistribute it and/or
  17126. # modify it under the terms of the GNU General Public License
  17127. # as published by the Free Software Foundation; either version 2
  17128. # of the License, or (at your option) any later version.
  17129. #
  17130. # This program is distributed in the hope that it will be useful,
  17131. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17132. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17133. # GNU General Public License for more details.
  17134. #
  17135. # You should have received a copy of the GNU General Public License
  17136. # along with this program; if not, write to the Free Software
  17137. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17138. #
  17139. # END COPYRIGHT BLOCK
  17140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  17141. $as_echo "$as_me: checking for SELinux..." >&6;}
  17142. # check for --with-selinux
  17143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  17144. $as_echo_n "checking for --with-selinux... " >&6; }
  17145. # Check whether --with-selinux was given.
  17146. if test "${with_selinux+set}" = set; then :
  17147. withval=$with_selinux;
  17148. if test "$withval" = "no"; then
  17149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17150. $as_echo "no" >&6; }
  17151. else
  17152. with_selinux=yes
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17154. $as_echo "yes" >&6; }
  17155. if test ! -f "/usr/share/selinux/devel/Makefile"; then
  17156. as_fn_error "SELinux development tools (selinux-policy) not found" "$LINENO" 5
  17157. fi
  17158. fi
  17159. else
  17160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17161. $as_echo "no" >&6; }
  17162. fi
  17163. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  17164. # set sasl_path for wrapper scripts
  17165. if test -z "$sasl_libdir" ; then
  17166. sasl_path="$libdir/sasl2"
  17167. else
  17168. sasl_path="$sasl_libdir/sasl2"
  17169. fi
  17170. if test "$with_selinux" = "yes"; then
  17171. SELINUX_TRUE=
  17172. SELINUX_FALSE='#'
  17173. else
  17174. SELINUX_TRUE='#'
  17175. SELINUX_FALSE=
  17176. fi
  17177. if test "$with_openldap" = "yes"; then
  17178. OPENLDAP_TRUE=
  17179. OPENLDAP_FALSE='#'
  17180. else
  17181. OPENLDAP_TRUE='#'
  17182. OPENLDAP_FALSE=
  17183. fi
  17184. # write out paths for binary components
  17185. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  17186. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  17187. # libtool on fedora/rhel contains some gcc-isms which cause problems
  17188. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  17189. # we remove them here
  17190. if test "$GCC" != yes ; then
  17191. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  17192. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  17193. cp -p libtool libtool.orig
  17194. cp -p libtool libtool.tmp
  17195. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  17196. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  17197. # perl produced write-only code . . .
  17198. sed -e '/^gcc_dir/ d' \
  17199. -e '/^gcc_ver/ d' \
  17200. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  17201. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  17202. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  17203. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  17204. libtool > libtool.tmp
  17205. cp -p libtool.tmp libtool
  17206. rm -f libtool.tmp
  17207. fi
  17208. ac_config_files="$ac_config_files Makefile"
  17209. cat >confcache <<\_ACEOF
  17210. # This file is a shell script that caches the results of configure
  17211. # tests run on this system so they can be shared between configure
  17212. # scripts and configure runs, see configure's option --config-cache.
  17213. # It is not useful on other systems. If it contains results you don't
  17214. # want to keep, you may remove or edit it.
  17215. #
  17216. # config.status only pays attention to the cache file if you give it
  17217. # the --recheck option to rerun configure.
  17218. #
  17219. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17220. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17221. # following values.
  17222. _ACEOF
  17223. # The following way of writing the cache mishandles newlines in values,
  17224. # but we know of no workaround that is simple, portable, and efficient.
  17225. # So, we kill variables containing newlines.
  17226. # Ultrix sh set writes to stderr and can't be redirected directly,
  17227. # and sets the high bit in the cache file unless we assign to the vars.
  17228. (
  17229. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17230. eval ac_val=\$$ac_var
  17231. case $ac_val in #(
  17232. *${as_nl}*)
  17233. case $ac_var in #(
  17234. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17235. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17236. esac
  17237. case $ac_var in #(
  17238. _ | IFS | as_nl) ;; #(
  17239. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17240. *) { eval $ac_var=; unset $ac_var;} ;;
  17241. esac ;;
  17242. esac
  17243. done
  17244. (set) 2>&1 |
  17245. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17246. *${as_nl}ac_space=\ *)
  17247. # `set' does not quote correctly, so add quotes: double-quote
  17248. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17249. sed -n \
  17250. "s/'/'\\\\''/g;
  17251. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17252. ;; #(
  17253. *)
  17254. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17255. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17256. ;;
  17257. esac |
  17258. sort
  17259. ) |
  17260. sed '
  17261. /^ac_cv_env_/b end
  17262. t clear
  17263. :clear
  17264. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17265. t end
  17266. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17267. :end' >>confcache
  17268. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17269. if test -w "$cache_file"; then
  17270. test "x$cache_file" != "x/dev/null" &&
  17271. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17272. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17273. cat confcache >$cache_file
  17274. else
  17275. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17276. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17277. fi
  17278. fi
  17279. rm -f confcache
  17280. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17281. # Let make expand exec_prefix.
  17282. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17283. DEFS=-DHAVE_CONFIG_H
  17284. ac_libobjs=
  17285. ac_ltlibobjs=
  17286. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17287. # 1. Remove the extension, and $U if already installed.
  17288. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17289. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17290. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17291. # will be set to the directory where LIBOBJS objects are built.
  17292. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17293. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17294. done
  17295. LIBOBJS=$ac_libobjs
  17296. LTLIBOBJS=$ac_ltlibobjs
  17297. if test -n "$EXEEXT"; then
  17298. am__EXEEXT_TRUE=
  17299. am__EXEEXT_FALSE='#'
  17300. else
  17301. am__EXEEXT_TRUE='#'
  17302. am__EXEEXT_FALSE=
  17303. fi
  17304. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  17305. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  17306. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17307. fi
  17308. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17309. as_fn_error "conditional \"AMDEP\" was never defined.
  17310. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17311. fi
  17312. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17313. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  17314. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17315. fi
  17316. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17317. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  17318. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17319. fi
  17320. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  17321. as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  17322. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17323. fi
  17324. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17325. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  17326. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17327. fi
  17328. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  17329. as_fn_error "conditional \"BUNDLE\" was never defined.
  17330. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17331. fi
  17332. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  17333. as_fn_error "conditional \"enable_pam_passthru\" was never defined.
  17334. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17335. fi
  17336. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  17337. as_fn_error "conditional \"enable_dna\" was never defined.
  17338. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17339. fi
  17340. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  17341. as_fn_error "conditional \"enable_ldapi\" was never defined.
  17342. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17343. fi
  17344. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  17345. as_fn_error "conditional \"enable_autobind\" was never defined.
  17346. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17347. fi
  17348. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  17349. as_fn_error "conditional \"enable_auto_dn_suffix\" was never defined.
  17350. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17351. fi
  17352. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  17353. as_fn_error "conditional \"enable_bitwise\" was never defined.
  17354. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17355. fi
  17356. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  17357. as_fn_error "conditional \"enable_presence\" was never defined.
  17358. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17359. fi
  17360. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  17361. as_fn_error "conditional \"WINNT\" was never defined.
  17362. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17363. fi
  17364. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  17365. as_fn_error "conditional \"HPUX\" was never defined.
  17366. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17367. fi
  17368. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  17369. as_fn_error "conditional \"SOLARIS\" was never defined.
  17370. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17371. fi
  17372. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  17373. as_fn_error "conditional \"SELINUX\" was never defined.
  17374. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17375. fi
  17376. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  17377. as_fn_error "conditional \"OPENLDAP\" was never defined.
  17378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17379. fi
  17380. : ${CONFIG_STATUS=./config.status}
  17381. ac_write_fail=0
  17382. ac_clean_files_save=$ac_clean_files
  17383. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17385. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17386. as_write_fail=0
  17387. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17388. #! $SHELL
  17389. # Generated by $as_me.
  17390. # Run this file to recreate the current configuration.
  17391. # Compiler output produced by configure, useful for debugging
  17392. # configure, is in config.log if it exists.
  17393. debug=false
  17394. ac_cs_recheck=false
  17395. ac_cs_silent=false
  17396. SHELL=\${CONFIG_SHELL-$SHELL}
  17397. export SHELL
  17398. _ASEOF
  17399. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17400. ## -------------------- ##
  17401. ## M4sh Initialization. ##
  17402. ## -------------------- ##
  17403. # Be more Bourne compatible
  17404. DUALCASE=1; export DUALCASE # for MKS sh
  17405. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17406. emulate sh
  17407. NULLCMD=:
  17408. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17409. # is contrary to our usage. Disable this feature.
  17410. alias -g '${1+"$@"}'='"$@"'
  17411. setopt NO_GLOB_SUBST
  17412. else
  17413. case `(set -o) 2>/dev/null` in #(
  17414. *posix*) :
  17415. set -o posix ;; #(
  17416. *) :
  17417. ;;
  17418. esac
  17419. fi
  17420. as_nl='
  17421. '
  17422. export as_nl
  17423. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17424. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17425. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17426. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17427. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17428. # but without wasting forks for bash or zsh.
  17429. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17430. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17431. as_echo='print -r --'
  17432. as_echo_n='print -rn --'
  17433. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17434. as_echo='printf %s\n'
  17435. as_echo_n='printf %s'
  17436. else
  17437. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17438. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17439. as_echo_n='/usr/ucb/echo -n'
  17440. else
  17441. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17442. as_echo_n_body='eval
  17443. arg=$1;
  17444. case $arg in #(
  17445. *"$as_nl"*)
  17446. expr "X$arg" : "X\\(.*\\)$as_nl";
  17447. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17448. esac;
  17449. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17450. '
  17451. export as_echo_n_body
  17452. as_echo_n='sh -c $as_echo_n_body as_echo'
  17453. fi
  17454. export as_echo_body
  17455. as_echo='sh -c $as_echo_body as_echo'
  17456. fi
  17457. # The user is always right.
  17458. if test "${PATH_SEPARATOR+set}" != set; then
  17459. PATH_SEPARATOR=:
  17460. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17461. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17462. PATH_SEPARATOR=';'
  17463. }
  17464. fi
  17465. # IFS
  17466. # We need space, tab and new line, in precisely that order. Quoting is
  17467. # there to prevent editors from complaining about space-tab.
  17468. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17469. # splitting by setting IFS to empty value.)
  17470. IFS=" "" $as_nl"
  17471. # Find who we are. Look in the path if we contain no directory separator.
  17472. case $0 in #((
  17473. *[\\/]* ) as_myself=$0 ;;
  17474. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17475. for as_dir in $PATH
  17476. do
  17477. IFS=$as_save_IFS
  17478. test -z "$as_dir" && as_dir=.
  17479. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17480. done
  17481. IFS=$as_save_IFS
  17482. ;;
  17483. esac
  17484. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17485. # in which case we are not to be found in the path.
  17486. if test "x$as_myself" = x; then
  17487. as_myself=$0
  17488. fi
  17489. if test ! -f "$as_myself"; then
  17490. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17491. exit 1
  17492. fi
  17493. # Unset variables that we do not need and which cause bugs (e.g. in
  17494. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17495. # suppresses any "Segmentation fault" message there. '((' could
  17496. # trigger a bug in pdksh 5.2.14.
  17497. for as_var in BASH_ENV ENV MAIL MAILPATH
  17498. do eval test x\${$as_var+set} = xset \
  17499. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17500. done
  17501. PS1='$ '
  17502. PS2='> '
  17503. PS4='+ '
  17504. # NLS nuisances.
  17505. LC_ALL=C
  17506. export LC_ALL
  17507. LANGUAGE=C
  17508. export LANGUAGE
  17509. # CDPATH.
  17510. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17511. # as_fn_error ERROR [LINENO LOG_FD]
  17512. # ---------------------------------
  17513. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17514. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17515. # script with status $?, using 1 if that was 0.
  17516. as_fn_error ()
  17517. {
  17518. as_status=$?; test $as_status -eq 0 && as_status=1
  17519. if test "$3"; then
  17520. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17521. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  17522. fi
  17523. $as_echo "$as_me: error: $1" >&2
  17524. as_fn_exit $as_status
  17525. } # as_fn_error
  17526. # as_fn_set_status STATUS
  17527. # -----------------------
  17528. # Set $? to STATUS, without forking.
  17529. as_fn_set_status ()
  17530. {
  17531. return $1
  17532. } # as_fn_set_status
  17533. # as_fn_exit STATUS
  17534. # -----------------
  17535. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17536. as_fn_exit ()
  17537. {
  17538. set +e
  17539. as_fn_set_status $1
  17540. exit $1
  17541. } # as_fn_exit
  17542. # as_fn_unset VAR
  17543. # ---------------
  17544. # Portably unset VAR.
  17545. as_fn_unset ()
  17546. {
  17547. { eval $1=; unset $1;}
  17548. }
  17549. as_unset=as_fn_unset
  17550. # as_fn_append VAR VALUE
  17551. # ----------------------
  17552. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17553. # advantage of any shell optimizations that allow amortized linear growth over
  17554. # repeated appends, instead of the typical quadratic growth present in naive
  17555. # implementations.
  17556. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17557. eval 'as_fn_append ()
  17558. {
  17559. eval $1+=\$2
  17560. }'
  17561. else
  17562. as_fn_append ()
  17563. {
  17564. eval $1=\$$1\$2
  17565. }
  17566. fi # as_fn_append
  17567. # as_fn_arith ARG...
  17568. # ------------------
  17569. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17570. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17571. # must be portable across $(()) and expr.
  17572. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17573. eval 'as_fn_arith ()
  17574. {
  17575. as_val=$(( $* ))
  17576. }'
  17577. else
  17578. as_fn_arith ()
  17579. {
  17580. as_val=`expr "$@" || test $? -eq 1`
  17581. }
  17582. fi # as_fn_arith
  17583. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17584. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17585. as_expr=expr
  17586. else
  17587. as_expr=false
  17588. fi
  17589. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17590. as_basename=basename
  17591. else
  17592. as_basename=false
  17593. fi
  17594. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17595. as_dirname=dirname
  17596. else
  17597. as_dirname=false
  17598. fi
  17599. as_me=`$as_basename -- "$0" ||
  17600. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17601. X"$0" : 'X\(//\)$' \| \
  17602. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17603. $as_echo X/"$0" |
  17604. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17605. s//\1/
  17606. q
  17607. }
  17608. /^X\/\(\/\/\)$/{
  17609. s//\1/
  17610. q
  17611. }
  17612. /^X\/\(\/\).*/{
  17613. s//\1/
  17614. q
  17615. }
  17616. s/.*/./; q'`
  17617. # Avoid depending upon Character Ranges.
  17618. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17619. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17620. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17621. as_cr_digits='0123456789'
  17622. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17623. ECHO_C= ECHO_N= ECHO_T=
  17624. case `echo -n x` in #(((((
  17625. -n*)
  17626. case `echo 'xy\c'` in
  17627. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17628. xy) ECHO_C='\c';;
  17629. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17630. ECHO_T=' ';;
  17631. esac;;
  17632. *)
  17633. ECHO_N='-n';;
  17634. esac
  17635. rm -f conf$$ conf$$.exe conf$$.file
  17636. if test -d conf$$.dir; then
  17637. rm -f conf$$.dir/conf$$.file
  17638. else
  17639. rm -f conf$$.dir
  17640. mkdir conf$$.dir 2>/dev/null
  17641. fi
  17642. if (echo >conf$$.file) 2>/dev/null; then
  17643. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17644. as_ln_s='ln -s'
  17645. # ... but there are two gotchas:
  17646. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17647. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17648. # In both cases, we have to default to `cp -p'.
  17649. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17650. as_ln_s='cp -p'
  17651. elif ln conf$$.file conf$$ 2>/dev/null; then
  17652. as_ln_s=ln
  17653. else
  17654. as_ln_s='cp -p'
  17655. fi
  17656. else
  17657. as_ln_s='cp -p'
  17658. fi
  17659. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17660. rmdir conf$$.dir 2>/dev/null
  17661. # as_fn_mkdir_p
  17662. # -------------
  17663. # Create "$as_dir" as a directory, including parents if necessary.
  17664. as_fn_mkdir_p ()
  17665. {
  17666. case $as_dir in #(
  17667. -*) as_dir=./$as_dir;;
  17668. esac
  17669. test -d "$as_dir" || eval $as_mkdir_p || {
  17670. as_dirs=
  17671. while :; do
  17672. case $as_dir in #(
  17673. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17674. *) as_qdir=$as_dir;;
  17675. esac
  17676. as_dirs="'$as_qdir' $as_dirs"
  17677. as_dir=`$as_dirname -- "$as_dir" ||
  17678. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17679. X"$as_dir" : 'X\(//\)[^/]' \| \
  17680. X"$as_dir" : 'X\(//\)$' \| \
  17681. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17682. $as_echo X"$as_dir" |
  17683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17684. s//\1/
  17685. q
  17686. }
  17687. /^X\(\/\/\)[^/].*/{
  17688. s//\1/
  17689. q
  17690. }
  17691. /^X\(\/\/\)$/{
  17692. s//\1/
  17693. q
  17694. }
  17695. /^X\(\/\).*/{
  17696. s//\1/
  17697. q
  17698. }
  17699. s/.*/./; q'`
  17700. test -d "$as_dir" && break
  17701. done
  17702. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17703. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  17704. } # as_fn_mkdir_p
  17705. if mkdir -p . 2>/dev/null; then
  17706. as_mkdir_p='mkdir -p "$as_dir"'
  17707. else
  17708. test -d ./-p && rmdir ./-p
  17709. as_mkdir_p=false
  17710. fi
  17711. if test -x / >/dev/null 2>&1; then
  17712. as_test_x='test -x'
  17713. else
  17714. if ls -dL / >/dev/null 2>&1; then
  17715. as_ls_L_option=L
  17716. else
  17717. as_ls_L_option=
  17718. fi
  17719. as_test_x='
  17720. eval sh -c '\''
  17721. if test -d "$1"; then
  17722. test -d "$1/.";
  17723. else
  17724. case $1 in #(
  17725. -*)set "./$1";;
  17726. esac;
  17727. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  17728. ???[sx]*):;;*)false;;esac;fi
  17729. '\'' sh
  17730. '
  17731. fi
  17732. as_executable_p=$as_test_x
  17733. # Sed expression to map a string onto a valid CPP name.
  17734. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17735. # Sed expression to map a string onto a valid variable name.
  17736. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17737. exec 6>&1
  17738. ## ----------------------------------- ##
  17739. ## Main body of $CONFIG_STATUS script. ##
  17740. ## ----------------------------------- ##
  17741. _ASEOF
  17742. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17744. # Save the log message, to keep $0 and so on meaningful, and to
  17745. # report actual input values of CONFIG_FILES etc. instead of their
  17746. # values after options handling.
  17747. ac_log="
  17748. This file was extended by dirsrv $as_me 1.0, which was
  17749. generated by GNU Autoconf 2.65. Invocation command line was
  17750. CONFIG_FILES = $CONFIG_FILES
  17751. CONFIG_HEADERS = $CONFIG_HEADERS
  17752. CONFIG_LINKS = $CONFIG_LINKS
  17753. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17754. $ $0 $@
  17755. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17756. "
  17757. _ACEOF
  17758. case $ac_config_files in *"
  17759. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17760. esac
  17761. case $ac_config_headers in *"
  17762. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17763. esac
  17764. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17765. # Files that config.status was made for.
  17766. config_files="$ac_config_files"
  17767. config_headers="$ac_config_headers"
  17768. config_commands="$ac_config_commands"
  17769. _ACEOF
  17770. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17771. ac_cs_usage="\
  17772. \`$as_me' instantiates files and other configuration actions
  17773. from templates according to the current configuration. Unless the files
  17774. and actions are specified as TAGs, all are instantiated by default.
  17775. Usage: $0 [OPTION]... [TAG]...
  17776. -h, --help print this help, then exit
  17777. -V, --version print version number and configuration settings, then exit
  17778. --config print configuration, then exit
  17779. -q, --quiet, --silent
  17780. do not print progress messages
  17781. -d, --debug don't remove temporary files
  17782. --recheck update $as_me by reconfiguring in the same conditions
  17783. --file=FILE[:TEMPLATE]
  17784. instantiate the configuration file FILE
  17785. --header=FILE[:TEMPLATE]
  17786. instantiate the configuration header FILE
  17787. Configuration files:
  17788. $config_files
  17789. Configuration headers:
  17790. $config_headers
  17791. Configuration commands:
  17792. $config_commands
  17793. Report bugs to <http://bugzilla.redhat.com/>."
  17794. _ACEOF
  17795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17796. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17797. ac_cs_version="\\
  17798. dirsrv config.status 1.0
  17799. configured by $0, generated by GNU Autoconf 2.65,
  17800. with options \\"\$ac_cs_config\\"
  17801. Copyright (C) 2009 Free Software Foundation, Inc.
  17802. This config.status script is free software; the Free Software Foundation
  17803. gives unlimited permission to copy, distribute and modify it."
  17804. ac_pwd='$ac_pwd'
  17805. srcdir='$srcdir'
  17806. INSTALL='$INSTALL'
  17807. MKDIR_P='$MKDIR_P'
  17808. AWK='$AWK'
  17809. test -n "\$AWK" || AWK=awk
  17810. _ACEOF
  17811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17812. # The default lists apply if the user does not specify any file.
  17813. ac_need_defaults=:
  17814. while test $# != 0
  17815. do
  17816. case $1 in
  17817. --*=*)
  17818. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17819. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17820. ac_shift=:
  17821. ;;
  17822. *)
  17823. ac_option=$1
  17824. ac_optarg=$2
  17825. ac_shift=shift
  17826. ;;
  17827. esac
  17828. case $ac_option in
  17829. # Handling of the options.
  17830. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17831. ac_cs_recheck=: ;;
  17832. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17833. $as_echo "$ac_cs_version"; exit ;;
  17834. --config | --confi | --conf | --con | --co | --c )
  17835. $as_echo "$ac_cs_config"; exit ;;
  17836. --debug | --debu | --deb | --de | --d | -d )
  17837. debug=: ;;
  17838. --file | --fil | --fi | --f )
  17839. $ac_shift
  17840. case $ac_optarg in
  17841. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17842. esac
  17843. as_fn_append CONFIG_FILES " '$ac_optarg'"
  17844. ac_need_defaults=false;;
  17845. --header | --heade | --head | --hea )
  17846. $ac_shift
  17847. case $ac_optarg in
  17848. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  17849. esac
  17850. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  17851. ac_need_defaults=false;;
  17852. --he | --h)
  17853. # Conflict between --help and --header
  17854. as_fn_error "ambiguous option: \`$1'
  17855. Try \`$0 --help' for more information.";;
  17856. --help | --hel | -h )
  17857. $as_echo "$ac_cs_usage"; exit ;;
  17858. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17859. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17860. ac_cs_silent=: ;;
  17861. # This is an error.
  17862. -*) as_fn_error "unrecognized option: \`$1'
  17863. Try \`$0 --help' for more information." ;;
  17864. *) as_fn_append ac_config_targets " $1"
  17865. ac_need_defaults=false ;;
  17866. esac
  17867. shift
  17868. done
  17869. ac_configure_extra_args=
  17870. if $ac_cs_silent; then
  17871. exec 6>/dev/null
  17872. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17873. fi
  17874. _ACEOF
  17875. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17876. if \$ac_cs_recheck; then
  17877. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17878. shift
  17879. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  17880. CONFIG_SHELL='$SHELL'
  17881. export CONFIG_SHELL
  17882. exec "\$@"
  17883. fi
  17884. _ACEOF
  17885. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17886. exec 5>>config.log
  17887. {
  17888. echo
  17889. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17890. ## Running $as_me. ##
  17891. _ASBOX
  17892. $as_echo "$ac_log"
  17893. } >&5
  17894. _ACEOF
  17895. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17896. #
  17897. # INIT-COMMANDS
  17898. #
  17899. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17900. # The HP-UX ksh and POSIX shell print the target directory to stdout
  17901. # if CDPATH is set.
  17902. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17903. sed_quote_subst='$sed_quote_subst'
  17904. double_quote_subst='$double_quote_subst'
  17905. delay_variable_subst='$delay_variable_subst'
  17906. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  17907. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  17908. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  17909. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  17910. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  17911. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  17912. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  17913. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  17914. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  17915. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  17916. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  17917. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  17918. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  17919. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  17920. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  17921. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  17922. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  17923. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  17924. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  17925. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  17926. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  17927. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  17928. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  17929. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  17930. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  17931. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  17932. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  17933. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17934. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  17935. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  17936. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  17937. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  17938. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  17939. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  17940. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  17941. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17942. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17943. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17944. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  17945. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  17946. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  17947. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  17948. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  17949. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  17950. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  17951. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  17952. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  17953. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  17954. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  17955. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  17956. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  17957. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  17958. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  17959. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  17960. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  17961. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  17962. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  17963. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  17964. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  17965. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  17966. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  17967. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  17968. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17969. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17970. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  17971. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  17972. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  17973. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  17974. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  17975. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17976. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17977. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17978. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17979. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17980. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17981. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  17982. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  17983. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  17984. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  17985. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  17986. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  17987. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  17988. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  17989. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  17990. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  17991. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  17992. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  17993. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  17994. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  17995. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  17996. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  17997. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  17998. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  17999. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18000. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18001. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  18002. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  18003. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  18004. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  18005. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18006. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  18007. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  18008. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18009. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18010. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18011. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18012. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18013. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  18014. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  18015. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  18016. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18017. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  18018. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  18019. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  18020. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  18021. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  18022. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  18023. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  18024. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  18025. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  18026. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  18027. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  18028. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  18029. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  18030. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18031. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18032. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18033. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18034. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18035. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18036. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18037. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18038. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18039. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18040. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18041. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18042. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18043. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18044. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18045. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18046. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18047. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18048. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18049. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18050. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18051. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18052. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18053. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18054. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18055. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18056. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18057. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18058. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18059. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18060. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18061. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18062. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18063. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18064. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18065. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18066. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18067. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18068. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18069. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18070. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18071. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18072. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18073. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18074. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18075. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18076. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  18077. LTCC='$LTCC'
  18078. LTCFLAGS='$LTCFLAGS'
  18079. compiler='$compiler_DEFAULT'
  18080. # Quote evaled strings.
  18081. for var in SED \
  18082. GREP \
  18083. EGREP \
  18084. FGREP \
  18085. LD \
  18086. NM \
  18087. LN_S \
  18088. lt_SP2NL \
  18089. lt_NL2SP \
  18090. reload_flag \
  18091. OBJDUMP \
  18092. deplibs_check_method \
  18093. file_magic_cmd \
  18094. AR \
  18095. AR_FLAGS \
  18096. STRIP \
  18097. RANLIB \
  18098. CC \
  18099. CFLAGS \
  18100. compiler \
  18101. lt_cv_sys_global_symbol_pipe \
  18102. lt_cv_sys_global_symbol_to_cdecl \
  18103. lt_cv_sys_global_symbol_to_c_name_address \
  18104. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18105. SHELL \
  18106. ECHO \
  18107. lt_prog_compiler_no_builtin_flag \
  18108. lt_prog_compiler_wl \
  18109. lt_prog_compiler_pic \
  18110. lt_prog_compiler_static \
  18111. lt_cv_prog_compiler_c_o \
  18112. need_locks \
  18113. DSYMUTIL \
  18114. NMEDIT \
  18115. LIPO \
  18116. OTOOL \
  18117. OTOOL64 \
  18118. shrext_cmds \
  18119. export_dynamic_flag_spec \
  18120. whole_archive_flag_spec \
  18121. compiler_needs_object \
  18122. with_gnu_ld \
  18123. allow_undefined_flag \
  18124. no_undefined_flag \
  18125. hardcode_libdir_flag_spec \
  18126. hardcode_libdir_flag_spec_ld \
  18127. hardcode_libdir_separator \
  18128. fix_srcfile_path \
  18129. exclude_expsyms \
  18130. include_expsyms \
  18131. file_list_spec \
  18132. variables_saved_for_relink \
  18133. libname_spec \
  18134. library_names_spec \
  18135. soname_spec \
  18136. finish_eval \
  18137. old_striplib \
  18138. striplib \
  18139. compiler_lib_search_dirs \
  18140. predep_objects \
  18141. postdep_objects \
  18142. predeps \
  18143. postdeps \
  18144. compiler_lib_search_path \
  18145. LD_CXX \
  18146. compiler_CXX \
  18147. lt_prog_compiler_no_builtin_flag_CXX \
  18148. lt_prog_compiler_wl_CXX \
  18149. lt_prog_compiler_pic_CXX \
  18150. lt_prog_compiler_static_CXX \
  18151. lt_cv_prog_compiler_c_o_CXX \
  18152. export_dynamic_flag_spec_CXX \
  18153. whole_archive_flag_spec_CXX \
  18154. compiler_needs_object_CXX \
  18155. with_gnu_ld_CXX \
  18156. allow_undefined_flag_CXX \
  18157. no_undefined_flag_CXX \
  18158. hardcode_libdir_flag_spec_CXX \
  18159. hardcode_libdir_flag_spec_ld_CXX \
  18160. hardcode_libdir_separator_CXX \
  18161. fix_srcfile_path_CXX \
  18162. exclude_expsyms_CXX \
  18163. include_expsyms_CXX \
  18164. file_list_spec_CXX \
  18165. compiler_lib_search_dirs_CXX \
  18166. predep_objects_CXX \
  18167. postdep_objects_CXX \
  18168. predeps_CXX \
  18169. postdeps_CXX \
  18170. compiler_lib_search_path_CXX; do
  18171. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  18172. *[\\\\\\\`\\"\\\$]*)
  18173. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  18174. ;;
  18175. *)
  18176. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18177. ;;
  18178. esac
  18179. done
  18180. # Double-quote double-evaled strings.
  18181. for var in reload_cmds \
  18182. old_postinstall_cmds \
  18183. old_postuninstall_cmds \
  18184. old_archive_cmds \
  18185. extract_expsyms_cmds \
  18186. old_archive_from_new_cmds \
  18187. old_archive_from_expsyms_cmds \
  18188. archive_cmds \
  18189. archive_expsym_cmds \
  18190. module_cmds \
  18191. module_expsym_cmds \
  18192. export_symbols_cmds \
  18193. prelink_cmds \
  18194. postinstall_cmds \
  18195. postuninstall_cmds \
  18196. finish_cmds \
  18197. sys_lib_search_path_spec \
  18198. sys_lib_dlsearch_path_spec \
  18199. old_archive_cmds_CXX \
  18200. old_archive_from_new_cmds_CXX \
  18201. old_archive_from_expsyms_cmds_CXX \
  18202. archive_cmds_CXX \
  18203. archive_expsym_cmds_CXX \
  18204. module_cmds_CXX \
  18205. module_expsym_cmds_CXX \
  18206. export_symbols_cmds_CXX \
  18207. prelink_cmds_CXX; do
  18208. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  18209. *[\\\\\\\`\\"\\\$]*)
  18210. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  18211. ;;
  18212. *)
  18213. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18214. ;;
  18215. esac
  18216. done
  18217. # Fix-up fallback echo if it was mangled by the above quoting rules.
  18218. case \$lt_ECHO in
  18219. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  18220. ;;
  18221. esac
  18222. ac_aux_dir='$ac_aux_dir'
  18223. xsi_shell='$xsi_shell'
  18224. lt_shell_append='$lt_shell_append'
  18225. # See if we are running on zsh, and set the options which allow our
  18226. # commands through without removal of \ escapes INIT.
  18227. if test -n "\${ZSH_VERSION+set}" ; then
  18228. setopt NO_GLOB_SUBST
  18229. fi
  18230. PACKAGE='$PACKAGE'
  18231. VERSION='$VERSION'
  18232. TIMESTAMP='$TIMESTAMP'
  18233. RM='$RM'
  18234. ofile='$ofile'
  18235. _ACEOF
  18236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18237. # Handling of arguments.
  18238. for ac_config_target in $ac_config_targets
  18239. do
  18240. case $ac_config_target in
  18241. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18242. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18243. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18244. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18245. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18246. esac
  18247. done
  18248. # If the user did not use the arguments to specify the items to instantiate,
  18249. # then the envvar interface is used. Set only those that are not.
  18250. # We use the long form for the default assignment because of an extremely
  18251. # bizarre bug on SunOS 4.1.3.
  18252. if $ac_need_defaults; then
  18253. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18254. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18255. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18256. fi
  18257. # Have a temporary directory for convenience. Make it in the build tree
  18258. # simply because there is no reason against having it here, and in addition,
  18259. # creating and moving files from /tmp can sometimes cause problems.
  18260. # Hook for its removal unless debugging.
  18261. # Note that there is a small window in which the directory will not be cleaned:
  18262. # after its creation but before its name has been assigned to `$tmp'.
  18263. $debug ||
  18264. {
  18265. tmp=
  18266. trap 'exit_status=$?
  18267. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  18268. ' 0
  18269. trap 'as_fn_exit 1' 1 2 13 15
  18270. }
  18271. # Create a (secure) tmp directory for tmp files.
  18272. {
  18273. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18274. test -n "$tmp" && test -d "$tmp"
  18275. } ||
  18276. {
  18277. tmp=./conf$$-$RANDOM
  18278. (umask 077 && mkdir "$tmp")
  18279. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  18280. # Set up the scripts for CONFIG_FILES section.
  18281. # No need to generate them if there are no CONFIG_FILES.
  18282. # This happens for instance with `./config.status config.h'.
  18283. if test -n "$CONFIG_FILES"; then
  18284. ac_cr=`echo X | tr X '\015'`
  18285. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18286. # But we know of no other shell where ac_cr would be empty at this
  18287. # point, so we can use a bashism as a fallback.
  18288. if test "x$ac_cr" = x; then
  18289. eval ac_cr=\$\'\\r\'
  18290. fi
  18291. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18292. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18293. ac_cs_awk_cr='\r'
  18294. else
  18295. ac_cs_awk_cr=$ac_cr
  18296. fi
  18297. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  18298. _ACEOF
  18299. {
  18300. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18301. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18302. echo "_ACEOF"
  18303. } >conf$$subs.sh ||
  18304. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18305. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  18306. ac_delim='%!_!# '
  18307. for ac_last_try in false false false false false :; do
  18308. . ./conf$$subs.sh ||
  18309. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18310. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18311. if test $ac_delim_n = $ac_delim_num; then
  18312. break
  18313. elif $ac_last_try; then
  18314. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  18315. else
  18316. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18317. fi
  18318. done
  18319. rm -f conf$$subs.sh
  18320. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18321. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  18322. _ACEOF
  18323. sed -n '
  18324. h
  18325. s/^/S["/; s/!.*/"]=/
  18326. p
  18327. g
  18328. s/^[^!]*!//
  18329. :repl
  18330. t repl
  18331. s/'"$ac_delim"'$//
  18332. t delim
  18333. :nl
  18334. h
  18335. s/\(.\{148\}\)..*/\1/
  18336. t more1
  18337. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18338. p
  18339. n
  18340. b repl
  18341. :more1
  18342. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18343. p
  18344. g
  18345. s/.\{148\}//
  18346. t nl
  18347. :delim
  18348. h
  18349. s/\(.\{148\}\)..*/\1/
  18350. t more2
  18351. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18352. p
  18353. b
  18354. :more2
  18355. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18356. p
  18357. g
  18358. s/.\{148\}//
  18359. t delim
  18360. ' <conf$$subs.awk | sed '
  18361. /^[^""]/{
  18362. N
  18363. s/\n//
  18364. }
  18365. ' >>$CONFIG_STATUS || ac_write_fail=1
  18366. rm -f conf$$subs.awk
  18367. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18368. _ACAWK
  18369. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  18370. for (key in S) S_is_set[key] = 1
  18371. FS = ""
  18372. }
  18373. {
  18374. line = $ 0
  18375. nfields = split(line, field, "@")
  18376. substed = 0
  18377. len = length(field[1])
  18378. for (i = 2; i < nfields; i++) {
  18379. key = field[i]
  18380. keylen = length(key)
  18381. if (S_is_set[key]) {
  18382. value = S[key]
  18383. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18384. len += length(value) + length(field[++i])
  18385. substed = 1
  18386. } else
  18387. len += 1 + keylen
  18388. }
  18389. print line
  18390. }
  18391. _ACAWK
  18392. _ACEOF
  18393. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18394. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18395. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18396. else
  18397. cat
  18398. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  18399. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  18400. _ACEOF
  18401. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  18402. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  18403. # trailing colons and then remove the whole line if VPATH becomes empty
  18404. # (actually we leave an empty line to preserve line numbers).
  18405. if test "x$srcdir" = x.; then
  18406. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  18407. s/:*\$(srcdir):*/:/
  18408. s/:*\${srcdir}:*/:/
  18409. s/:*@srcdir@:*/:/
  18410. s/^\([^=]*=[ ]*\):*/\1/
  18411. s/:*$//
  18412. s/^[^=]*=[ ]*$//
  18413. }'
  18414. fi
  18415. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18416. fi # test -n "$CONFIG_FILES"
  18417. # Set up the scripts for CONFIG_HEADERS section.
  18418. # No need to generate them if there are no CONFIG_HEADERS.
  18419. # This happens for instance with `./config.status Makefile'.
  18420. if test -n "$CONFIG_HEADERS"; then
  18421. cat >"$tmp/defines.awk" <<\_ACAWK ||
  18422. BEGIN {
  18423. _ACEOF
  18424. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18425. # here-document in config.status, that substitutes the proper values into
  18426. # config.h.in to produce config.h.
  18427. # Create a delimiter string that does not exist in confdefs.h, to ease
  18428. # handling of long lines.
  18429. ac_delim='%!_!# '
  18430. for ac_last_try in false false :; do
  18431. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  18432. if test -z "$ac_t"; then
  18433. break
  18434. elif $ac_last_try; then
  18435. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  18436. else
  18437. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18438. fi
  18439. done
  18440. # For the awk script, D is an array of macro values keyed by name,
  18441. # likewise P contains macro parameters if any. Preserve backslash
  18442. # newline sequences.
  18443. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18444. sed -n '
  18445. s/.\{148\}/&'"$ac_delim"'/g
  18446. t rset
  18447. :rset
  18448. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18449. t def
  18450. d
  18451. :def
  18452. s/\\$//
  18453. t bsnl
  18454. s/["\\]/\\&/g
  18455. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18456. D["\1"]=" \3"/p
  18457. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18458. d
  18459. :bsnl
  18460. s/["\\]/\\&/g
  18461. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18462. D["\1"]=" \3\\\\\\n"\\/p
  18463. t cont
  18464. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18465. t cont
  18466. d
  18467. :cont
  18468. n
  18469. s/.\{148\}/&'"$ac_delim"'/g
  18470. t clear
  18471. :clear
  18472. s/\\$//
  18473. t bsnlc
  18474. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18475. d
  18476. :bsnlc
  18477. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18478. b cont
  18479. ' <confdefs.h | sed '
  18480. s/'"$ac_delim"'/"\\\
  18481. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18482. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18483. for (key in D) D_is_set[key] = 1
  18484. FS = ""
  18485. }
  18486. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18487. line = \$ 0
  18488. split(line, arg, " ")
  18489. if (arg[1] == "#") {
  18490. defundef = arg[2]
  18491. mac1 = arg[3]
  18492. } else {
  18493. defundef = substr(arg[1], 2)
  18494. mac1 = arg[2]
  18495. }
  18496. split(mac1, mac2, "(") #)
  18497. macro = mac2[1]
  18498. prefix = substr(line, 1, index(line, defundef) - 1)
  18499. if (D_is_set[macro]) {
  18500. # Preserve the white space surrounding the "#".
  18501. print prefix "define", macro P[macro] D[macro]
  18502. next
  18503. } else {
  18504. # Replace #undef with comments. This is necessary, for example,
  18505. # in the case of _POSIX_SOURCE, which is predefined and required
  18506. # on some systems where configure will not decide to define it.
  18507. if (defundef == "undef") {
  18508. print "/*", prefix defundef, macro, "*/"
  18509. next
  18510. }
  18511. }
  18512. }
  18513. { print }
  18514. _ACAWK
  18515. _ACEOF
  18516. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18517. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  18518. fi # test -n "$CONFIG_HEADERS"
  18519. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18520. shift
  18521. for ac_tag
  18522. do
  18523. case $ac_tag in
  18524. :[FHLC]) ac_mode=$ac_tag; continue;;
  18525. esac
  18526. case $ac_mode$ac_tag in
  18527. :[FHL]*:*);;
  18528. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18529. :[FH]-) ac_tag=-:-;;
  18530. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18531. esac
  18532. ac_save_IFS=$IFS
  18533. IFS=:
  18534. set x $ac_tag
  18535. IFS=$ac_save_IFS
  18536. shift
  18537. ac_file=$1
  18538. shift
  18539. case $ac_mode in
  18540. :L) ac_source=$1;;
  18541. :[FH])
  18542. ac_file_inputs=
  18543. for ac_f
  18544. do
  18545. case $ac_f in
  18546. -) ac_f="$tmp/stdin";;
  18547. *) # Look for the file first in the build tree, then in the source tree
  18548. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18549. # because $ac_f cannot contain `:'.
  18550. test -f "$ac_f" ||
  18551. case $ac_f in
  18552. [\\/$]*) false;;
  18553. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18554. esac ||
  18555. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18556. esac
  18557. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18558. as_fn_append ac_file_inputs " '$ac_f'"
  18559. done
  18560. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18561. # use $as_me), people would be surprised to read:
  18562. # /* config.h. Generated by config.status. */
  18563. configure_input='Generated from '`
  18564. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18565. `' by configure.'
  18566. if test x"$ac_file" != x-; then
  18567. configure_input="$ac_file. $configure_input"
  18568. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18569. $as_echo "$as_me: creating $ac_file" >&6;}
  18570. fi
  18571. # Neutralize special characters interpreted by sed in replacement strings.
  18572. case $configure_input in #(
  18573. *\&* | *\|* | *\\* )
  18574. ac_sed_conf_input=`$as_echo "$configure_input" |
  18575. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18576. *) ac_sed_conf_input=$configure_input;;
  18577. esac
  18578. case $ac_tag in
  18579. *:-:* | *:-) cat >"$tmp/stdin" \
  18580. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  18581. esac
  18582. ;;
  18583. esac
  18584. ac_dir=`$as_dirname -- "$ac_file" ||
  18585. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18586. X"$ac_file" : 'X\(//\)[^/]' \| \
  18587. X"$ac_file" : 'X\(//\)$' \| \
  18588. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18589. $as_echo X"$ac_file" |
  18590. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18591. s//\1/
  18592. q
  18593. }
  18594. /^X\(\/\/\)[^/].*/{
  18595. s//\1/
  18596. q
  18597. }
  18598. /^X\(\/\/\)$/{
  18599. s//\1/
  18600. q
  18601. }
  18602. /^X\(\/\).*/{
  18603. s//\1/
  18604. q
  18605. }
  18606. s/.*/./; q'`
  18607. as_dir="$ac_dir"; as_fn_mkdir_p
  18608. ac_builddir=.
  18609. case "$ac_dir" in
  18610. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18611. *)
  18612. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18613. # A ".." for each directory in $ac_dir_suffix.
  18614. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18615. case $ac_top_builddir_sub in
  18616. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18617. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18618. esac ;;
  18619. esac
  18620. ac_abs_top_builddir=$ac_pwd
  18621. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18622. # for backward compatibility:
  18623. ac_top_builddir=$ac_top_build_prefix
  18624. case $srcdir in
  18625. .) # We are building in place.
  18626. ac_srcdir=.
  18627. ac_top_srcdir=$ac_top_builddir_sub
  18628. ac_abs_top_srcdir=$ac_pwd ;;
  18629. [\\/]* | ?:[\\/]* ) # Absolute name.
  18630. ac_srcdir=$srcdir$ac_dir_suffix;
  18631. ac_top_srcdir=$srcdir
  18632. ac_abs_top_srcdir=$srcdir ;;
  18633. *) # Relative name.
  18634. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18635. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18636. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18637. esac
  18638. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18639. case $ac_mode in
  18640. :F)
  18641. #
  18642. # CONFIG_FILE
  18643. #
  18644. case $INSTALL in
  18645. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18646. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18647. esac
  18648. ac_MKDIR_P=$MKDIR_P
  18649. case $MKDIR_P in
  18650. [\\/$]* | ?:[\\/]* ) ;;
  18651. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18652. esac
  18653. _ACEOF
  18654. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18655. # If the template does not know about datarootdir, expand it.
  18656. # FIXME: This hack should be removed a few years after 2.60.
  18657. ac_datarootdir_hack=; ac_datarootdir_seen=
  18658. ac_sed_dataroot='
  18659. /datarootdir/ {
  18660. p
  18661. q
  18662. }
  18663. /@datadir@/p
  18664. /@docdir@/p
  18665. /@infodir@/p
  18666. /@localedir@/p
  18667. /@mandir@/p'
  18668. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18669. *datarootdir*) ac_datarootdir_seen=yes;;
  18670. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18672. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18673. _ACEOF
  18674. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18675. ac_datarootdir_hack='
  18676. s&@datadir@&$datadir&g
  18677. s&@docdir@&$docdir&g
  18678. s&@infodir@&$infodir&g
  18679. s&@localedir@&$localedir&g
  18680. s&@mandir@&$mandir&g
  18681. s&\\\${datarootdir}&$datarootdir&g' ;;
  18682. esac
  18683. _ACEOF
  18684. # Neutralize VPATH when `$srcdir' = `.'.
  18685. # Shell code in configure.ac might set extrasub.
  18686. # FIXME: do we really want to maintain this feature?
  18687. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18688. ac_sed_extra="$ac_vpsub
  18689. $extrasub
  18690. _ACEOF
  18691. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18692. :t
  18693. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18694. s|@configure_input@|$ac_sed_conf_input|;t t
  18695. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18696. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18697. s&@srcdir@&$ac_srcdir&;t t
  18698. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18699. s&@top_srcdir@&$ac_top_srcdir&;t t
  18700. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18701. s&@builddir@&$ac_builddir&;t t
  18702. s&@abs_builddir@&$ac_abs_builddir&;t t
  18703. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18704. s&@INSTALL@&$ac_INSTALL&;t t
  18705. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18706. $ac_datarootdir_hack
  18707. "
  18708. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  18709. || as_fn_error "could not create $ac_file" "$LINENO" 5
  18710. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18711. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  18712. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  18713. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18714. which seems to be undefined. Please make sure it is defined." >&5
  18715. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18716. which seems to be undefined. Please make sure it is defined." >&2;}
  18717. rm -f "$tmp/stdin"
  18718. case $ac_file in
  18719. -) cat "$tmp/out" && rm -f "$tmp/out";;
  18720. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  18721. esac \
  18722. || as_fn_error "could not create $ac_file" "$LINENO" 5
  18723. ;;
  18724. :H)
  18725. #
  18726. # CONFIG_HEADER
  18727. #
  18728. if test x"$ac_file" != x-; then
  18729. {
  18730. $as_echo "/* $configure_input */" \
  18731. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  18732. } >"$tmp/config.h" \
  18733. || as_fn_error "could not create $ac_file" "$LINENO" 5
  18734. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  18735. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18736. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18737. else
  18738. rm -f "$ac_file"
  18739. mv "$tmp/config.h" "$ac_file" \
  18740. || as_fn_error "could not create $ac_file" "$LINENO" 5
  18741. fi
  18742. else
  18743. $as_echo "/* $configure_input */" \
  18744. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  18745. || as_fn_error "could not create -" "$LINENO" 5
  18746. fi
  18747. # Compute "$ac_file"'s index in $config_headers.
  18748. _am_arg="$ac_file"
  18749. _am_stamp_count=1
  18750. for _am_header in $config_headers :; do
  18751. case $_am_header in
  18752. $_am_arg | $_am_arg:* )
  18753. break ;;
  18754. * )
  18755. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18756. esac
  18757. done
  18758. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  18759. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18760. X"$_am_arg" : 'X\(//\)[^/]' \| \
  18761. X"$_am_arg" : 'X\(//\)$' \| \
  18762. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  18763. $as_echo X"$_am_arg" |
  18764. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18765. s//\1/
  18766. q
  18767. }
  18768. /^X\(\/\/\)[^/].*/{
  18769. s//\1/
  18770. q
  18771. }
  18772. /^X\(\/\/\)$/{
  18773. s//\1/
  18774. q
  18775. }
  18776. /^X\(\/\).*/{
  18777. s//\1/
  18778. q
  18779. }
  18780. s/.*/./; q'`/stamp-h$_am_stamp_count
  18781. ;;
  18782. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  18783. $as_echo "$as_me: executing $ac_file commands" >&6;}
  18784. ;;
  18785. esac
  18786. case $ac_file$ac_mode in
  18787. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  18788. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  18789. # are listed without --file. Let's play safe and only enable the eval
  18790. # if we detect the quoting.
  18791. case $CONFIG_FILES in
  18792. *\'*) eval set x "$CONFIG_FILES" ;;
  18793. *) set x $CONFIG_FILES ;;
  18794. esac
  18795. shift
  18796. for mf
  18797. do
  18798. # Strip MF so we end up with the name of the file.
  18799. mf=`echo "$mf" | sed -e 's/:.*$//'`
  18800. # Check whether this is an Automake generated Makefile or not.
  18801. # We used to match only the files named `Makefile.in', but
  18802. # some people rename them; so instead we look at the file content.
  18803. # Grep'ing the first line is not enough: some people post-process
  18804. # each Makefile.in and add a new line on top of each file to say so.
  18805. # Grep'ing the whole file is not good either: AIX grep has a line
  18806. # limit of 2048, but all sed's we know have understand at least 4000.
  18807. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  18808. dirpart=`$as_dirname -- "$mf" ||
  18809. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18810. X"$mf" : 'X\(//\)[^/]' \| \
  18811. X"$mf" : 'X\(//\)$' \| \
  18812. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  18813. $as_echo X"$mf" |
  18814. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18815. s//\1/
  18816. q
  18817. }
  18818. /^X\(\/\/\)[^/].*/{
  18819. s//\1/
  18820. q
  18821. }
  18822. /^X\(\/\/\)$/{
  18823. s//\1/
  18824. q
  18825. }
  18826. /^X\(\/\).*/{
  18827. s//\1/
  18828. q
  18829. }
  18830. s/.*/./; q'`
  18831. else
  18832. continue
  18833. fi
  18834. # Extract the definition of DEPDIR, am__include, and am__quote
  18835. # from the Makefile without running `make'.
  18836. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  18837. test -z "$DEPDIR" && continue
  18838. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  18839. test -z "am__include" && continue
  18840. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  18841. # When using ansi2knr, U may be empty or an underscore; expand it
  18842. U=`sed -n 's/^U = //p' < "$mf"`
  18843. # Find all dependency output files, they are included files with
  18844. # $(DEPDIR) in their names. We invoke sed twice because it is the
  18845. # simplest approach to changing $(DEPDIR) to its actual value in the
  18846. # expansion.
  18847. for file in `sed -n "
  18848. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  18849. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  18850. # Make sure the directory exists.
  18851. test -f "$dirpart/$file" && continue
  18852. fdir=`$as_dirname -- "$file" ||
  18853. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18854. X"$file" : 'X\(//\)[^/]' \| \
  18855. X"$file" : 'X\(//\)$' \| \
  18856. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  18857. $as_echo X"$file" |
  18858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18859. s//\1/
  18860. q
  18861. }
  18862. /^X\(\/\/\)[^/].*/{
  18863. s//\1/
  18864. q
  18865. }
  18866. /^X\(\/\/\)$/{
  18867. s//\1/
  18868. q
  18869. }
  18870. /^X\(\/\).*/{
  18871. s//\1/
  18872. q
  18873. }
  18874. s/.*/./; q'`
  18875. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  18876. # echo "creating $dirpart/$file"
  18877. echo '# dummy' > "$dirpart/$file"
  18878. done
  18879. done
  18880. }
  18881. ;;
  18882. "libtool":C)
  18883. # See if we are running on zsh, and set the options which allow our
  18884. # commands through without removal of \ escapes.
  18885. if test -n "${ZSH_VERSION+set}" ; then
  18886. setopt NO_GLOB_SUBST
  18887. fi
  18888. cfgfile="${ofile}T"
  18889. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  18890. $RM "$cfgfile"
  18891. cat <<_LT_EOF >> "$cfgfile"
  18892. #! $SHELL
  18893. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  18894. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  18895. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18896. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  18897. #
  18898. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  18899. # 2006, 2007, 2008 Free Software Foundation, Inc.
  18900. # Written by Gordon Matzigkeit, 1996
  18901. #
  18902. # This file is part of GNU Libtool.
  18903. #
  18904. # GNU Libtool is free software; you can redistribute it and/or
  18905. # modify it under the terms of the GNU General Public License as
  18906. # published by the Free Software Foundation; either version 2 of
  18907. # the License, or (at your option) any later version.
  18908. #
  18909. # As a special exception to the GNU General Public License,
  18910. # if you distribute this file as part of a program or library that
  18911. # is built using GNU Libtool, you may include this file under the
  18912. # same distribution terms that you use for the rest of that program.
  18913. #
  18914. # GNU Libtool is distributed in the hope that it will be useful,
  18915. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18916. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18917. # GNU General Public License for more details.
  18918. #
  18919. # You should have received a copy of the GNU General Public License
  18920. # along with GNU Libtool; see the file COPYING. If not, a copy
  18921. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  18922. # obtained by writing to the Free Software Foundation, Inc.,
  18923. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18924. # The names of the tagged configurations supported by this script.
  18925. available_tags="CXX "
  18926. # ### BEGIN LIBTOOL CONFIG
  18927. # Whether or not to build static libraries.
  18928. build_old_libs=$enable_static
  18929. # Which release of libtool.m4 was used?
  18930. macro_version=$macro_version
  18931. macro_revision=$macro_revision
  18932. # Whether or not to build shared libraries.
  18933. build_libtool_libs=$enable_shared
  18934. # What type of objects to build.
  18935. pic_mode=$pic_mode
  18936. # Whether or not to optimize for fast installation.
  18937. fast_install=$enable_fast_install
  18938. # The host system.
  18939. host_alias=$host_alias
  18940. host=$host
  18941. host_os=$host_os
  18942. # The build system.
  18943. build_alias=$build_alias
  18944. build=$build
  18945. build_os=$build_os
  18946. # A sed program that does not truncate output.
  18947. SED=$lt_SED
  18948. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  18949. Xsed="\$SED -e 1s/^X//"
  18950. # A grep program that handles long lines.
  18951. GREP=$lt_GREP
  18952. # An ERE matcher.
  18953. EGREP=$lt_EGREP
  18954. # A literal string matcher.
  18955. FGREP=$lt_FGREP
  18956. # A BSD- or MS-compatible name lister.
  18957. NM=$lt_NM
  18958. # Whether we need soft or hard links.
  18959. LN_S=$lt_LN_S
  18960. # What is the maximum length of a command?
  18961. max_cmd_len=$max_cmd_len
  18962. # Object file suffix (normally "o").
  18963. objext=$ac_objext
  18964. # Executable file suffix (normally "").
  18965. exeext=$exeext
  18966. # whether the shell understands "unset".
  18967. lt_unset=$lt_unset
  18968. # turn spaces into newlines.
  18969. SP2NL=$lt_lt_SP2NL
  18970. # turn newlines into spaces.
  18971. NL2SP=$lt_lt_NL2SP
  18972. # How to create reloadable object files.
  18973. reload_flag=$lt_reload_flag
  18974. reload_cmds=$lt_reload_cmds
  18975. # An object symbol dumper.
  18976. OBJDUMP=$lt_OBJDUMP
  18977. # Method to check whether dependent libraries are shared objects.
  18978. deplibs_check_method=$lt_deplibs_check_method
  18979. # Command to use when deplibs_check_method == "file_magic".
  18980. file_magic_cmd=$lt_file_magic_cmd
  18981. # The archiver.
  18982. AR=$lt_AR
  18983. AR_FLAGS=$lt_AR_FLAGS
  18984. # A symbol stripping program.
  18985. STRIP=$lt_STRIP
  18986. # Commands used to install an old-style archive.
  18987. RANLIB=$lt_RANLIB
  18988. old_postinstall_cmds=$lt_old_postinstall_cmds
  18989. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  18990. # A C compiler.
  18991. LTCC=$lt_CC
  18992. # LTCC compiler flags.
  18993. LTCFLAGS=$lt_CFLAGS
  18994. # Take the output of nm and produce a listing of raw symbols and C names.
  18995. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  18996. # Transform the output of nm in a proper C declaration.
  18997. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  18998. # Transform the output of nm in a C name address pair.
  18999. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19000. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19001. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19002. # The name of the directory that contains temporary libtool files.
  19003. objdir=$objdir
  19004. # Shell to use when invoking shell scripts.
  19005. SHELL=$lt_SHELL
  19006. # An echo program that does not interpret backslashes.
  19007. ECHO=$lt_ECHO
  19008. # Used to examine libraries when file_magic_cmd begins with "file".
  19009. MAGIC_CMD=$MAGIC_CMD
  19010. # Must we lock files when doing compilation?
  19011. need_locks=$lt_need_locks
  19012. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19013. DSYMUTIL=$lt_DSYMUTIL
  19014. # Tool to change global to local symbols on Mac OS X.
  19015. NMEDIT=$lt_NMEDIT
  19016. # Tool to manipulate fat objects and archives on Mac OS X.
  19017. LIPO=$lt_LIPO
  19018. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19019. OTOOL=$lt_OTOOL
  19020. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19021. OTOOL64=$lt_OTOOL64
  19022. # Old archive suffix (normally "a").
  19023. libext=$libext
  19024. # Shared library suffix (normally ".so").
  19025. shrext_cmds=$lt_shrext_cmds
  19026. # The commands to extract the exported symbol list from a shared archive.
  19027. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19028. # Variables whose values should be saved in libtool wrapper scripts and
  19029. # restored at link time.
  19030. variables_saved_for_relink=$lt_variables_saved_for_relink
  19031. # Do we need the "lib" prefix for modules?
  19032. need_lib_prefix=$need_lib_prefix
  19033. # Do we need a version for libraries?
  19034. need_version=$need_version
  19035. # Library versioning type.
  19036. version_type=$version_type
  19037. # Shared library runtime path variable.
  19038. runpath_var=$runpath_var
  19039. # Shared library path variable.
  19040. shlibpath_var=$shlibpath_var
  19041. # Is shlibpath searched before the hard-coded library search path?
  19042. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19043. # Format of library name prefix.
  19044. libname_spec=$lt_libname_spec
  19045. # List of archive names. First name is the real one, the rest are links.
  19046. # The last name is the one that the linker finds with -lNAME
  19047. library_names_spec=$lt_library_names_spec
  19048. # The coded name of the library, if different from the real name.
  19049. soname_spec=$lt_soname_spec
  19050. # Command to use after installation of a shared archive.
  19051. postinstall_cmds=$lt_postinstall_cmds
  19052. # Command to use after uninstallation of a shared archive.
  19053. postuninstall_cmds=$lt_postuninstall_cmds
  19054. # Commands used to finish a libtool library installation in a directory.
  19055. finish_cmds=$lt_finish_cmds
  19056. # As "finish_cmds", except a single script fragment to be evaled but
  19057. # not shown.
  19058. finish_eval=$lt_finish_eval
  19059. # Whether we should hardcode library paths into libraries.
  19060. hardcode_into_libs=$hardcode_into_libs
  19061. # Compile-time system search path for libraries.
  19062. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19063. # Run-time system search path for libraries.
  19064. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19065. # Whether dlopen is supported.
  19066. dlopen_support=$enable_dlopen
  19067. # Whether dlopen of programs is supported.
  19068. dlopen_self=$enable_dlopen_self
  19069. # Whether dlopen of statically linked programs is supported.
  19070. dlopen_self_static=$enable_dlopen_self_static
  19071. # Commands to strip libraries.
  19072. old_striplib=$lt_old_striplib
  19073. striplib=$lt_striplib
  19074. # The linker used to build libraries.
  19075. LD=$lt_LD
  19076. # Commands used to build an old-style archive.
  19077. old_archive_cmds=$lt_old_archive_cmds
  19078. # A language specific compiler.
  19079. CC=$lt_compiler
  19080. # Is the compiler the GNU compiler?
  19081. with_gcc=$GCC
  19082. # Compiler flag to turn off builtin functions.
  19083. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19084. # How to pass a linker flag through the compiler.
  19085. wl=$lt_lt_prog_compiler_wl
  19086. # Additional compiler flags for building library objects.
  19087. pic_flag=$lt_lt_prog_compiler_pic
  19088. # Compiler flag to prevent dynamic linking.
  19089. link_static_flag=$lt_lt_prog_compiler_static
  19090. # Does compiler simultaneously support -c and -o options?
  19091. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19092. # Whether or not to add -lc for building shared libraries.
  19093. build_libtool_need_lc=$archive_cmds_need_lc
  19094. # Whether or not to disallow shared libs when runtime libs are static.
  19095. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19096. # Compiler flag to allow reflexive dlopens.
  19097. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19098. # Compiler flag to generate shared objects directly from archives.
  19099. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19100. # Whether the compiler copes with passing no objects directly.
  19101. compiler_needs_object=$lt_compiler_needs_object
  19102. # Create an old-style archive from a shared archive.
  19103. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19104. # Create a temporary old-style archive to link instead of a shared archive.
  19105. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19106. # Commands used to build a shared archive.
  19107. archive_cmds=$lt_archive_cmds
  19108. archive_expsym_cmds=$lt_archive_expsym_cmds
  19109. # Commands used to build a loadable module if different from building
  19110. # a shared archive.
  19111. module_cmds=$lt_module_cmds
  19112. module_expsym_cmds=$lt_module_expsym_cmds
  19113. # Whether we are building with GNU ld or not.
  19114. with_gnu_ld=$lt_with_gnu_ld
  19115. # Flag that allows shared libraries with undefined symbols to be built.
  19116. allow_undefined_flag=$lt_allow_undefined_flag
  19117. # Flag that enforces no undefined symbols.
  19118. no_undefined_flag=$lt_no_undefined_flag
  19119. # Flag to hardcode \$libdir into a binary during linking.
  19120. # This must work even if \$libdir does not exist
  19121. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19122. # If ld is used when linking, flag to hardcode \$libdir into a binary
  19123. # during linking. This must work even if \$libdir does not exist.
  19124. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  19125. # Whether we need a single "-rpath" flag with a separated argument.
  19126. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19127. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19128. # DIR into the resulting binary.
  19129. hardcode_direct=$hardcode_direct
  19130. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19131. # DIR into the resulting binary and the resulting library dependency is
  19132. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  19133. # library is relocated.
  19134. hardcode_direct_absolute=$hardcode_direct_absolute
  19135. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19136. # into the resulting binary.
  19137. hardcode_minus_L=$hardcode_minus_L
  19138. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19139. # into the resulting binary.
  19140. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19141. # Set to "yes" if building a shared library automatically hardcodes DIR
  19142. # into the library and all subsequent libraries and executables linked
  19143. # against it.
  19144. hardcode_automatic=$hardcode_automatic
  19145. # Set to yes if linker adds runtime paths of dependent libraries
  19146. # to runtime path list.
  19147. inherit_rpath=$inherit_rpath
  19148. # Whether libtool must link a program against all its dependency libraries.
  19149. link_all_deplibs=$link_all_deplibs
  19150. # Fix the shell variable \$srcfile for the compiler.
  19151. fix_srcfile_path=$lt_fix_srcfile_path
  19152. # Set to "yes" if exported symbols are required.
  19153. always_export_symbols=$always_export_symbols
  19154. # The commands to list exported symbols.
  19155. export_symbols_cmds=$lt_export_symbols_cmds
  19156. # Symbols that should not be listed in the preloaded symbols.
  19157. exclude_expsyms=$lt_exclude_expsyms
  19158. # Symbols that must always be exported.
  19159. include_expsyms=$lt_include_expsyms
  19160. # Commands necessary for linking programs (against libraries) with templates.
  19161. prelink_cmds=$lt_prelink_cmds
  19162. # Specify filename containing input files.
  19163. file_list_spec=$lt_file_list_spec
  19164. # How to hardcode a shared library path into an executable.
  19165. hardcode_action=$hardcode_action
  19166. # The directories searched by this compiler when creating a shared library.
  19167. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19168. # Dependencies to place before and after the objects being linked to
  19169. # create a shared library.
  19170. predep_objects=$lt_predep_objects
  19171. postdep_objects=$lt_postdep_objects
  19172. predeps=$lt_predeps
  19173. postdeps=$lt_postdeps
  19174. # The library search path used internally by the compiler when linking
  19175. # a shared library.
  19176. compiler_lib_search_path=$lt_compiler_lib_search_path
  19177. # ### END LIBTOOL CONFIG
  19178. _LT_EOF
  19179. case $host_os in
  19180. aix3*)
  19181. cat <<\_LT_EOF >> "$cfgfile"
  19182. # AIX sometimes has problems with the GCC collect2 program. For some
  19183. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19184. # vanish in a puff of smoke.
  19185. if test "X${COLLECT_NAMES+set}" != Xset; then
  19186. COLLECT_NAMES=
  19187. export COLLECT_NAMES
  19188. fi
  19189. _LT_EOF
  19190. ;;
  19191. esac
  19192. ltmain="$ac_aux_dir/ltmain.sh"
  19193. # We use sed instead of cat because bash on DJGPP gets confused if
  19194. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19195. # text mode, it properly converts lines to CR/LF. This bash problem
  19196. # is reportedly fixed, but why not run on old versions too?
  19197. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  19198. || (rm -f "$cfgfile"; exit 1)
  19199. case $xsi_shell in
  19200. yes)
  19201. cat << \_LT_EOF >> "$cfgfile"
  19202. # func_dirname file append nondir_replacement
  19203. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19204. # otherwise set result to NONDIR_REPLACEMENT.
  19205. func_dirname ()
  19206. {
  19207. case ${1} in
  19208. */*) func_dirname_result="${1%/*}${2}" ;;
  19209. * ) func_dirname_result="${3}" ;;
  19210. esac
  19211. }
  19212. # func_basename file
  19213. func_basename ()
  19214. {
  19215. func_basename_result="${1##*/}"
  19216. }
  19217. # func_dirname_and_basename file append nondir_replacement
  19218. # perform func_basename and func_dirname in a single function
  19219. # call:
  19220. # dirname: Compute the dirname of FILE. If nonempty,
  19221. # add APPEND to the result, otherwise set result
  19222. # to NONDIR_REPLACEMENT.
  19223. # value returned in "$func_dirname_result"
  19224. # basename: Compute filename of FILE.
  19225. # value retuned in "$func_basename_result"
  19226. # Implementation must be kept synchronized with func_dirname
  19227. # and func_basename. For efficiency, we do not delegate to
  19228. # those functions but instead duplicate the functionality here.
  19229. func_dirname_and_basename ()
  19230. {
  19231. case ${1} in
  19232. */*) func_dirname_result="${1%/*}${2}" ;;
  19233. * ) func_dirname_result="${3}" ;;
  19234. esac
  19235. func_basename_result="${1##*/}"
  19236. }
  19237. # func_stripname prefix suffix name
  19238. # strip PREFIX and SUFFIX off of NAME.
  19239. # PREFIX and SUFFIX must not contain globbing or regex special
  19240. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19241. # dot (in which case that matches only a dot).
  19242. func_stripname ()
  19243. {
  19244. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  19245. # positional parameters, so assign one to ordinary parameter first.
  19246. func_stripname_result=${3}
  19247. func_stripname_result=${func_stripname_result#"${1}"}
  19248. func_stripname_result=${func_stripname_result%"${2}"}
  19249. }
  19250. # func_opt_split
  19251. func_opt_split ()
  19252. {
  19253. func_opt_split_opt=${1%%=*}
  19254. func_opt_split_arg=${1#*=}
  19255. }
  19256. # func_lo2o object
  19257. func_lo2o ()
  19258. {
  19259. case ${1} in
  19260. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  19261. *) func_lo2o_result=${1} ;;
  19262. esac
  19263. }
  19264. # func_xform libobj-or-source
  19265. func_xform ()
  19266. {
  19267. func_xform_result=${1%.*}.lo
  19268. }
  19269. # func_arith arithmetic-term...
  19270. func_arith ()
  19271. {
  19272. func_arith_result=$(( $* ))
  19273. }
  19274. # func_len string
  19275. # STRING may not start with a hyphen.
  19276. func_len ()
  19277. {
  19278. func_len_result=${#1}
  19279. }
  19280. _LT_EOF
  19281. ;;
  19282. *) # Bourne compatible functions.
  19283. cat << \_LT_EOF >> "$cfgfile"
  19284. # func_dirname file append nondir_replacement
  19285. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  19286. # otherwise set result to NONDIR_REPLACEMENT.
  19287. func_dirname ()
  19288. {
  19289. # Extract subdirectory from the argument.
  19290. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  19291. if test "X$func_dirname_result" = "X${1}"; then
  19292. func_dirname_result="${3}"
  19293. else
  19294. func_dirname_result="$func_dirname_result${2}"
  19295. fi
  19296. }
  19297. # func_basename file
  19298. func_basename ()
  19299. {
  19300. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  19301. }
  19302. # func_stripname prefix suffix name
  19303. # strip PREFIX and SUFFIX off of NAME.
  19304. # PREFIX and SUFFIX must not contain globbing or regex special
  19305. # characters, hashes, percent signs, but SUFFIX may contain a leading
  19306. # dot (in which case that matches only a dot).
  19307. # func_strip_suffix prefix name
  19308. func_stripname ()
  19309. {
  19310. case ${2} in
  19311. .*) func_stripname_result=`$ECHO "X${3}" \
  19312. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  19313. *) func_stripname_result=`$ECHO "X${3}" \
  19314. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  19315. esac
  19316. }
  19317. # sed scripts:
  19318. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  19319. my_sed_long_arg='1s/^-[^=]*=//'
  19320. # func_opt_split
  19321. func_opt_split ()
  19322. {
  19323. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  19324. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  19325. }
  19326. # func_lo2o object
  19327. func_lo2o ()
  19328. {
  19329. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  19330. }
  19331. # func_xform libobj-or-source
  19332. func_xform ()
  19333. {
  19334. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  19335. }
  19336. # func_arith arithmetic-term...
  19337. func_arith ()
  19338. {
  19339. func_arith_result=`expr "$@"`
  19340. }
  19341. # func_len string
  19342. # STRING may not start with a hyphen.
  19343. func_len ()
  19344. {
  19345. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  19346. }
  19347. _LT_EOF
  19348. esac
  19349. case $lt_shell_append in
  19350. yes)
  19351. cat << \_LT_EOF >> "$cfgfile"
  19352. # func_append var value
  19353. # Append VALUE to the end of shell variable VAR.
  19354. func_append ()
  19355. {
  19356. eval "$1+=\$2"
  19357. }
  19358. _LT_EOF
  19359. ;;
  19360. *)
  19361. cat << \_LT_EOF >> "$cfgfile"
  19362. # func_append var value
  19363. # Append VALUE to the end of shell variable VAR.
  19364. func_append ()
  19365. {
  19366. eval "$1=\$$1\$2"
  19367. }
  19368. _LT_EOF
  19369. ;;
  19370. esac
  19371. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  19372. || (rm -f "$cfgfile"; exit 1)
  19373. mv -f "$cfgfile" "$ofile" ||
  19374. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19375. chmod +x "$ofile"
  19376. cat <<_LT_EOF >> "$ofile"
  19377. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19378. # The linker used to build libraries.
  19379. LD=$lt_LD_CXX
  19380. # Commands used to build an old-style archive.
  19381. old_archive_cmds=$lt_old_archive_cmds_CXX
  19382. # A language specific compiler.
  19383. CC=$lt_compiler_CXX
  19384. # Is the compiler the GNU compiler?
  19385. with_gcc=$GCC_CXX
  19386. # Compiler flag to turn off builtin functions.
  19387. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19388. # How to pass a linker flag through the compiler.
  19389. wl=$lt_lt_prog_compiler_wl_CXX
  19390. # Additional compiler flags for building library objects.
  19391. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19392. # Compiler flag to prevent dynamic linking.
  19393. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19394. # Does compiler simultaneously support -c and -o options?
  19395. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19396. # Whether or not to add -lc for building shared libraries.
  19397. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19398. # Whether or not to disallow shared libs when runtime libs are static.
  19399. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19400. # Compiler flag to allow reflexive dlopens.
  19401. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19402. # Compiler flag to generate shared objects directly from archives.
  19403. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19404. # Whether the compiler copes with passing no objects directly.
  19405. compiler_needs_object=$lt_compiler_needs_object_CXX
  19406. # Create an old-style archive from a shared archive.
  19407. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19408. # Create a temporary old-style archive to link instead of a shared archive.
  19409. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19410. # Commands used to build a shared archive.
  19411. archive_cmds=$lt_archive_cmds_CXX
  19412. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19413. # Commands used to build a loadable module if different from building
  19414. # a shared archive.
  19415. module_cmds=$lt_module_cmds_CXX
  19416. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19417. # Whether we are building with GNU ld or not.
  19418. with_gnu_ld=$lt_with_gnu_ld_CXX
  19419. # Flag that allows shared libraries with undefined symbols to be built.
  19420. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19421. # Flag that enforces no undefined symbols.
  19422. no_undefined_flag=$lt_no_undefined_flag_CXX
  19423. # Flag to hardcode \$libdir into a binary during linking.
  19424. # This must work even if \$libdir does not exist
  19425. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19426. # If ld is used when linking, flag to hardcode \$libdir into a binary
  19427. # during linking. This must work even if \$libdir does not exist.
  19428. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  19429. # Whether we need a single "-rpath" flag with a separated argument.
  19430. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19431. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19432. # DIR into the resulting binary.
  19433. hardcode_direct=$hardcode_direct_CXX
  19434. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  19435. # DIR into the resulting binary and the resulting library dependency is
  19436. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  19437. # library is relocated.
  19438. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19439. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19440. # into the resulting binary.
  19441. hardcode_minus_L=$hardcode_minus_L_CXX
  19442. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19443. # into the resulting binary.
  19444. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19445. # Set to "yes" if building a shared library automatically hardcodes DIR
  19446. # into the library and all subsequent libraries and executables linked
  19447. # against it.
  19448. hardcode_automatic=$hardcode_automatic_CXX
  19449. # Set to yes if linker adds runtime paths of dependent libraries
  19450. # to runtime path list.
  19451. inherit_rpath=$inherit_rpath_CXX
  19452. # Whether libtool must link a program against all its dependency libraries.
  19453. link_all_deplibs=$link_all_deplibs_CXX
  19454. # Fix the shell variable \$srcfile for the compiler.
  19455. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  19456. # Set to "yes" if exported symbols are required.
  19457. always_export_symbols=$always_export_symbols_CXX
  19458. # The commands to list exported symbols.
  19459. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19460. # Symbols that should not be listed in the preloaded symbols.
  19461. exclude_expsyms=$lt_exclude_expsyms_CXX
  19462. # Symbols that must always be exported.
  19463. include_expsyms=$lt_include_expsyms_CXX
  19464. # Commands necessary for linking programs (against libraries) with templates.
  19465. prelink_cmds=$lt_prelink_cmds_CXX
  19466. # Specify filename containing input files.
  19467. file_list_spec=$lt_file_list_spec_CXX
  19468. # How to hardcode a shared library path into an executable.
  19469. hardcode_action=$hardcode_action_CXX
  19470. # The directories searched by this compiler when creating a shared library.
  19471. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19472. # Dependencies to place before and after the objects being linked to
  19473. # create a shared library.
  19474. predep_objects=$lt_predep_objects_CXX
  19475. postdep_objects=$lt_postdep_objects_CXX
  19476. predeps=$lt_predeps_CXX
  19477. postdeps=$lt_postdeps_CXX
  19478. # The library search path used internally by the compiler when linking
  19479. # a shared library.
  19480. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19481. # ### END LIBTOOL TAG CONFIG: CXX
  19482. _LT_EOF
  19483. ;;
  19484. esac
  19485. done # for ac_tag
  19486. as_fn_exit 0
  19487. _ACEOF
  19488. ac_clean_files=$ac_clean_files_save
  19489. test $ac_write_fail = 0 ||
  19490. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19491. # configure is writing to config.log, and then calls config.status.
  19492. # config.status does its own redirection, appending to config.log.
  19493. # Unfortunately, on DOS this fails, as config.log is still kept open
  19494. # by configure, so config.status won't be able to write to it; its
  19495. # output is simply discarded. So we exec the FD to /dev/null,
  19496. # effectively closing config.log, so it can be properly (re)opened and
  19497. # appended to by config.status. When coming back to configure, we
  19498. # need to make the FD available again.
  19499. if test "$no_create" != yes; then
  19500. ac_cs_success=:
  19501. ac_config_status_args=
  19502. test "$silent" = yes &&
  19503. ac_config_status_args="$ac_config_status_args --quiet"
  19504. exec 5>/dev/null
  19505. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19506. exec 5>>config.log
  19507. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19508. # would make configure fail if this is the last instruction.
  19509. $ac_cs_success || as_fn_exit $?
  19510. fi
  19511. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19513. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19514. fi