configure 705 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 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, 2010 Free Software
  10. # Foundation, 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. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell [email protected] and
  231. $0: http://bugzilla.redhat.com/ about your system,
  232. $0: including any error possibly output before this
  233. $0: message. Then install a modern shell, or manually run
  234. $0: the script under such a shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='dirsrv'
  523. PACKAGE_TARNAME='dirsrv'
  524. PACKAGE_VERSION='1.0'
  525. PACKAGE_STRING='dirsrv 1.0'
  526. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  527. PACKAGE_URL=''
  528. # Factoring default headers for most tests.
  529. ac_includes_default="\
  530. #include <stdio.h>
  531. #ifdef HAVE_SYS_TYPES_H
  532. # include <sys/types.h>
  533. #endif
  534. #ifdef HAVE_SYS_STAT_H
  535. # include <sys/stat.h>
  536. #endif
  537. #ifdef STDC_HEADERS
  538. # include <stdlib.h>
  539. # include <stddef.h>
  540. #else
  541. # ifdef HAVE_STDLIB_H
  542. # include <stdlib.h>
  543. # endif
  544. #endif
  545. #ifdef HAVE_STRING_H
  546. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  547. # include <memory.h>
  548. # endif
  549. # include <string.h>
  550. #endif
  551. #ifdef HAVE_STRINGS_H
  552. # include <strings.h>
  553. #endif
  554. #ifdef HAVE_INTTYPES_H
  555. # include <inttypes.h>
  556. #endif
  557. #ifdef HAVE_STDINT_H
  558. # include <stdint.h>
  559. #endif
  560. #ifdef HAVE_UNISTD_H
  561. # include <unistd.h>
  562. #endif"
  563. ac_header_list=
  564. ac_default_prefix=/opt/$PACKAGE_NAME
  565. ac_subst_vars='am__EXEEXT_FALSE
  566. am__EXEEXT_TRUE
  567. LTLIBOBJS
  568. vendor
  569. capbrand
  570. brand
  571. pcre_libdir
  572. pcre_lib
  573. pcre_inc
  574. netsnmp_link
  575. netsnmp_libdir
  576. netsnmp_lib
  577. netsnmp_inc
  578. icu_bin
  579. icu_inc
  580. icu_lib
  581. svrcore_lib
  582. svrcore_inc
  583. sasl_path
  584. sasl_libdir
  585. sasl_lib
  586. sasl_inc
  587. db_libver
  588. db_bindir
  589. db_libdir
  590. db_lib
  591. db_incdir
  592. db_inc
  593. ol_libver
  594. plainldif_opts
  595. ldaptool_opts
  596. ldaptool_bindir
  597. openldap_bindir
  598. openldap_libdir
  599. openldap_lib
  600. openldap_inc
  601. ldapsdk_bindir
  602. ldapsdk_libdir
  603. ldapsdk_lib
  604. ldapsdk_inc
  605. nss_libdir
  606. nss_lib
  607. nss_inc
  608. nspr_libdir
  609. nspr_lib
  610. nspr_inc
  611. SPARC_FALSE
  612. SPARC_TRUE
  613. OPENLDAP_FALSE
  614. OPENLDAP_TRUE
  615. SELINUX_FALSE
  616. SELINUX_TRUE
  617. PACKAGE_BASE_VERSION
  618. with_selinux
  619. kerberos_libdir
  620. kerberos_lib
  621. kerberos_inc
  622. KRB5_CONFIG_BIN
  623. NETSNMP_CONFIG
  624. ICU_CONFIG
  625. ldap_lib_ldif
  626. SYSTEMD_FALSE
  627. SYSTEMD_TRUE
  628. SOLARIS_FALSE
  629. SOLARIS_TRUE
  630. HPUX_FALSE
  631. HPUX_TRUE
  632. initconfigdir
  633. sttyexec
  634. perlexec
  635. initdir
  636. LIBCRUN
  637. LIBCSTD
  638. LIBDL
  639. LIBNSL
  640. LIBSOCKET
  641. LIBCRYPT
  642. THREADLIB
  643. WINNT_FALSE
  644. WINNT_TRUE
  645. instconfigdir
  646. defaultgroup
  647. defaultuser
  648. updatedir
  649. mibdir
  650. infdir
  651. perldir
  652. scripttemplatedir
  653. serverplugindir
  654. serverincdir
  655. serverdir
  656. schemadir
  657. propertydir
  658. sampledatadir
  659. configdir
  660. with_systemdgroupname
  661. with_systemdsystemconfdir
  662. with_systemdsystemunitdir
  663. PKG_CONFIG_LIBDIR
  664. PKG_CONFIG_PATH
  665. PKG_CONFIG
  666. with_tmpfiles_d
  667. with_fhs_opt
  668. enable_acctpolicy_FALSE
  669. enable_acctpolicy_TRUE
  670. enable_presence_FALSE
  671. enable_presence_TRUE
  672. enable_bitwise_FALSE
  673. enable_bitwise_TRUE
  674. enable_auto_dn_suffix_FALSE
  675. enable_auto_dn_suffix_TRUE
  676. enable_autobind_FALSE
  677. enable_autobind_TRUE
  678. enable_ldapi_FALSE
  679. enable_ldapi_TRUE
  680. enable_dna_FALSE
  681. enable_dna_TRUE
  682. enable_pam_passthru_FALSE
  683. enable_pam_passthru_TRUE
  684. BUNDLE_FALSE
  685. BUNDLE_TRUE
  686. debug_defs
  687. LIBOBJS
  688. CXXCPP
  689. CPP
  690. OTOOL64
  691. OTOOL
  692. LIPO
  693. NMEDIT
  694. DSYMUTIL
  695. MANIFEST_TOOL
  696. RANLIB
  697. ac_ct_AR
  698. AR
  699. DLLTOOL
  700. OBJDUMP
  701. LN_S
  702. NM
  703. ac_ct_DUMPBIN
  704. DUMPBIN
  705. LD
  706. FGREP
  707. EGREP
  708. GREP
  709. SED
  710. LIBTOOL
  711. am__fastdepCCAS_FALSE
  712. am__fastdepCCAS_TRUE
  713. CCASDEPMODE
  714. CCASFLAGS
  715. CCAS
  716. am__fastdepCC_FALSE
  717. am__fastdepCC_TRUE
  718. CCDEPMODE
  719. ac_ct_CC
  720. CFLAGS
  721. CC
  722. am__fastdepCXX_FALSE
  723. am__fastdepCXX_TRUE
  724. CXXDEPMODE
  725. AMDEPBACKSLASH
  726. AMDEP_FALSE
  727. AMDEP_TRUE
  728. am__quote
  729. am__include
  730. DEPDIR
  731. OBJEXT
  732. EXEEXT
  733. ac_ct_CXX
  734. CPPFLAGS
  735. LDFLAGS
  736. CXXFLAGS
  737. CXX
  738. host_os
  739. host_vendor
  740. host_cpu
  741. host
  742. build_os
  743. build_vendor
  744. build_cpu
  745. build
  746. MAINT
  747. MAINTAINER_MODE_FALSE
  748. MAINTAINER_MODE_TRUE
  749. CONSOLE_VERSION
  750. am__untar
  751. am__tar
  752. AMTAR
  753. am__leading_dot
  754. SET_MAKE
  755. AWK
  756. mkdir_p
  757. MKDIR_P
  758. INSTALL_STRIP_PROGRAM
  759. STRIP
  760. install_sh
  761. MAKEINFO
  762. AUTOHEADER
  763. AUTOMAKE
  764. AUTOCONF
  765. ACLOCAL
  766. VERSION
  767. PACKAGE
  768. CYGPATH_W
  769. am__isrc
  770. INSTALL_DATA
  771. INSTALL_SCRIPT
  772. INSTALL_PROGRAM
  773. target_alias
  774. host_alias
  775. build_alias
  776. LIBS
  777. ECHO_T
  778. ECHO_N
  779. ECHO_C
  780. DEFS
  781. mandir
  782. localedir
  783. libdir
  784. psdir
  785. pdfdir
  786. dvidir
  787. htmldir
  788. infodir
  789. docdir
  790. oldincludedir
  791. includedir
  792. localstatedir
  793. sharedstatedir
  794. sysconfdir
  795. datadir
  796. datarootdir
  797. libexecdir
  798. sbindir
  799. bindir
  800. program_transform_name
  801. prefix
  802. exec_prefix
  803. PACKAGE_URL
  804. PACKAGE_BUGREPORT
  805. PACKAGE_STRING
  806. PACKAGE_VERSION
  807. PACKAGE_TARNAME
  808. PACKAGE_NAME
  809. PATH_SEPARATOR
  810. SHELL'
  811. ac_subst_files=''
  812. ac_user_opts='
  813. enable_option_checking
  814. enable_maintainer_mode
  815. enable_dependency_tracking
  816. enable_static
  817. enable_shared
  818. with_pic
  819. enable_fast_install
  820. with_gnu_ld
  821. with_sysroot
  822. enable_libtool_lock
  823. enable_debug
  824. enable_bundle
  825. enable_pam_passthru
  826. enable_dna
  827. enable_ldapi
  828. enable_autobind
  829. enable_bitwise
  830. enable_presence
  831. enable_acctpolicy
  832. with_fhs
  833. with_fhs_opt
  834. with_tmpfiles_d
  835. with_systemdsystemunitdir
  836. with_systemdsystemconfdir
  837. with_systemdgroupname
  838. with_instconfigdir
  839. with_initddir
  840. with_nspr
  841. with_nspr_inc
  842. with_nspr_lib
  843. with_nss
  844. with_nss_inc
  845. with_nss_lib
  846. with_openldap
  847. with_openldap_inc
  848. with_openldap_lib
  849. with_openldap_bin
  850. with_ldapsdk
  851. with_ldapsdk_inc
  852. with_ldapsdk_lib
  853. with_ldapsdk_bin
  854. with_db
  855. with_db_inc
  856. with_db_lib
  857. with_sasl
  858. with_sasl_inc
  859. with_sasl_lib
  860. with_svrcore
  861. with_svrcore_inc
  862. with_svrcore_lib
  863. with_icu
  864. with_icu_inc
  865. with_icu_lib
  866. with_icu_bin
  867. with_netsnmp
  868. with_netsnmp_inc
  869. with_netsnmp_lib
  870. with_kerberos
  871. with_kerberos_inc
  872. with_kerberos_lib
  873. with_pcre
  874. with_selinux
  875. '
  876. ac_precious_vars='build_alias
  877. host_alias
  878. target_alias
  879. CXX
  880. CXXFLAGS
  881. LDFLAGS
  882. LIBS
  883. CPPFLAGS
  884. CCC
  885. CC
  886. CFLAGS
  887. CCAS
  888. CCASFLAGS
  889. CPP
  890. CXXCPP
  891. PKG_CONFIG
  892. PKG_CONFIG_PATH
  893. PKG_CONFIG_LIBDIR'
  894. # Initialize some variables set by options.
  895. ac_init_help=
  896. ac_init_version=false
  897. ac_unrecognized_opts=
  898. ac_unrecognized_sep=
  899. # The variables have the same names as the options, with
  900. # dashes changed to underlines.
  901. cache_file=/dev/null
  902. exec_prefix=NONE
  903. no_create=
  904. no_recursion=
  905. prefix=NONE
  906. program_prefix=NONE
  907. program_suffix=NONE
  908. program_transform_name=s,x,x,
  909. silent=
  910. site=
  911. srcdir=
  912. verbose=
  913. x_includes=NONE
  914. x_libraries=NONE
  915. # Installation directory options.
  916. # These are left unexpanded so users can "make install exec_prefix=/foo"
  917. # and all the variables that are supposed to be based on exec_prefix
  918. # by default will actually change.
  919. # Use braces instead of parens because sh, perl, etc. also accept them.
  920. # (The list follows the same order as the GNU Coding Standards.)
  921. bindir='${exec_prefix}/bin'
  922. sbindir='${exec_prefix}/sbin'
  923. libexecdir='${exec_prefix}/libexec'
  924. datarootdir='${prefix}/share'
  925. datadir='${datarootdir}'
  926. sysconfdir='${prefix}/etc'
  927. sharedstatedir='${prefix}/com'
  928. localstatedir='${prefix}/var'
  929. includedir='${prefix}/include'
  930. oldincludedir='/usr/include'
  931. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  932. infodir='${datarootdir}/info'
  933. htmldir='${docdir}'
  934. dvidir='${docdir}'
  935. pdfdir='${docdir}'
  936. psdir='${docdir}'
  937. libdir='${exec_prefix}/lib'
  938. localedir='${datarootdir}/locale'
  939. mandir='${datarootdir}/man'
  940. ac_prev=
  941. ac_dashdash=
  942. for ac_option
  943. do
  944. # If the previous option needs an argument, assign it.
  945. if test -n "$ac_prev"; then
  946. eval $ac_prev=\$ac_option
  947. ac_prev=
  948. continue
  949. fi
  950. case $ac_option in
  951. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  952. *=) ac_optarg= ;;
  953. *) ac_optarg=yes ;;
  954. esac
  955. # Accept the important Cygnus configure options, so we can diagnose typos.
  956. case $ac_dashdash$ac_option in
  957. --)
  958. ac_dashdash=yes ;;
  959. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  960. ac_prev=bindir ;;
  961. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  962. bindir=$ac_optarg ;;
  963. -build | --build | --buil | --bui | --bu)
  964. ac_prev=build_alias ;;
  965. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  966. build_alias=$ac_optarg ;;
  967. -cache-file | --cache-file | --cache-fil | --cache-fi \
  968. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  969. ac_prev=cache_file ;;
  970. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  971. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  972. cache_file=$ac_optarg ;;
  973. --config-cache | -C)
  974. cache_file=config.cache ;;
  975. -datadir | --datadir | --datadi | --datad)
  976. ac_prev=datadir ;;
  977. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  978. datadir=$ac_optarg ;;
  979. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  980. | --dataroo | --dataro | --datar)
  981. ac_prev=datarootdir ;;
  982. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  983. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  984. datarootdir=$ac_optarg ;;
  985. -disable-* | --disable-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid feature name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "enable_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval enable_$ac_useropt=no ;;
  1000. -docdir | --docdir | --docdi | --doc | --do)
  1001. ac_prev=docdir ;;
  1002. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1003. docdir=$ac_optarg ;;
  1004. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1005. ac_prev=dvidir ;;
  1006. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1007. dvidir=$ac_optarg ;;
  1008. -enable-* | --enable-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid feature name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "enable_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval enable_$ac_useropt=\$ac_optarg ;;
  1023. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1024. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1025. | --exec | --exe | --ex)
  1026. ac_prev=exec_prefix ;;
  1027. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1028. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1029. | --exec=* | --exe=* | --ex=*)
  1030. exec_prefix=$ac_optarg ;;
  1031. -gas | --gas | --ga | --g)
  1032. # Obsolete; use --with-gas.
  1033. with_gas=yes ;;
  1034. -help | --help | --hel | --he | -h)
  1035. ac_init_help=long ;;
  1036. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1037. ac_init_help=recursive ;;
  1038. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1039. ac_init_help=short ;;
  1040. -host | --host | --hos | --ho)
  1041. ac_prev=host_alias ;;
  1042. -host=* | --host=* | --hos=* | --ho=*)
  1043. host_alias=$ac_optarg ;;
  1044. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1045. ac_prev=htmldir ;;
  1046. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1047. | --ht=*)
  1048. htmldir=$ac_optarg ;;
  1049. -includedir | --includedir | --includedi | --included | --include \
  1050. | --includ | --inclu | --incl | --inc)
  1051. ac_prev=includedir ;;
  1052. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1053. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1054. includedir=$ac_optarg ;;
  1055. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1056. ac_prev=infodir ;;
  1057. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1058. infodir=$ac_optarg ;;
  1059. -libdir | --libdir | --libdi | --libd)
  1060. ac_prev=libdir ;;
  1061. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1062. libdir=$ac_optarg ;;
  1063. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1064. | --libexe | --libex | --libe)
  1065. ac_prev=libexecdir ;;
  1066. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1067. | --libexe=* | --libex=* | --libe=*)
  1068. libexecdir=$ac_optarg ;;
  1069. -localedir | --localedir | --localedi | --localed | --locale)
  1070. ac_prev=localedir ;;
  1071. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1072. localedir=$ac_optarg ;;
  1073. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1074. | --localstate | --localstat | --localsta | --localst | --locals)
  1075. ac_prev=localstatedir ;;
  1076. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1077. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1078. localstatedir=$ac_optarg ;;
  1079. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1080. ac_prev=mandir ;;
  1081. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1082. mandir=$ac_optarg ;;
  1083. -nfp | --nfp | --nf)
  1084. # Obsolete; use --without-fp.
  1085. with_fp=no ;;
  1086. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1087. | --no-cr | --no-c | -n)
  1088. no_create=yes ;;
  1089. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1090. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1091. no_recursion=yes ;;
  1092. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1093. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1094. | --oldin | --oldi | --old | --ol | --o)
  1095. ac_prev=oldincludedir ;;
  1096. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1097. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1098. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1099. oldincludedir=$ac_optarg ;;
  1100. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1101. ac_prev=prefix ;;
  1102. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1103. prefix=$ac_optarg ;;
  1104. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1105. | --program-pre | --program-pr | --program-p)
  1106. ac_prev=program_prefix ;;
  1107. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1108. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1109. program_prefix=$ac_optarg ;;
  1110. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1111. | --program-suf | --program-su | --program-s)
  1112. ac_prev=program_suffix ;;
  1113. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1114. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1115. program_suffix=$ac_optarg ;;
  1116. -program-transform-name | --program-transform-name \
  1117. | --program-transform-nam | --program-transform-na \
  1118. | --program-transform-n | --program-transform- \
  1119. | --program-transform | --program-transfor \
  1120. | --program-transfo | --program-transf \
  1121. | --program-trans | --program-tran \
  1122. | --progr-tra | --program-tr | --program-t)
  1123. ac_prev=program_transform_name ;;
  1124. -program-transform-name=* | --program-transform-name=* \
  1125. | --program-transform-nam=* | --program-transform-na=* \
  1126. | --program-transform-n=* | --program-transform-=* \
  1127. | --program-transform=* | --program-transfor=* \
  1128. | --program-transfo=* | --program-transf=* \
  1129. | --program-trans=* | --program-tran=* \
  1130. | --progr-tra=* | --program-tr=* | --program-t=*)
  1131. program_transform_name=$ac_optarg ;;
  1132. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1133. ac_prev=pdfdir ;;
  1134. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1135. pdfdir=$ac_optarg ;;
  1136. -psdir | --psdir | --psdi | --psd | --ps)
  1137. ac_prev=psdir ;;
  1138. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1139. psdir=$ac_optarg ;;
  1140. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1141. | -silent | --silent | --silen | --sile | --sil)
  1142. silent=yes ;;
  1143. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1144. ac_prev=sbindir ;;
  1145. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1146. | --sbi=* | --sb=*)
  1147. sbindir=$ac_optarg ;;
  1148. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1149. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1150. | --sharedst | --shareds | --shared | --share | --shar \
  1151. | --sha | --sh)
  1152. ac_prev=sharedstatedir ;;
  1153. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1154. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1155. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1156. | --sha=* | --sh=*)
  1157. sharedstatedir=$ac_optarg ;;
  1158. -site | --site | --sit)
  1159. ac_prev=site ;;
  1160. -site=* | --site=* | --sit=*)
  1161. site=$ac_optarg ;;
  1162. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1163. ac_prev=srcdir ;;
  1164. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1165. srcdir=$ac_optarg ;;
  1166. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1167. | --syscon | --sysco | --sysc | --sys | --sy)
  1168. ac_prev=sysconfdir ;;
  1169. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1170. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1171. sysconfdir=$ac_optarg ;;
  1172. -target | --target | --targe | --targ | --tar | --ta | --t)
  1173. ac_prev=target_alias ;;
  1174. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1175. target_alias=$ac_optarg ;;
  1176. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1177. verbose=yes ;;
  1178. -version | --version | --versio | --versi | --vers | -V)
  1179. ac_init_version=: ;;
  1180. -with-* | --with-*)
  1181. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1182. # Reject names that are not valid shell variable names.
  1183. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1184. as_fn_error $? "invalid package name: $ac_useropt"
  1185. ac_useropt_orig=$ac_useropt
  1186. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1187. case $ac_user_opts in
  1188. *"
  1189. "with_$ac_useropt"
  1190. "*) ;;
  1191. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1192. ac_unrecognized_sep=', ';;
  1193. esac
  1194. eval with_$ac_useropt=\$ac_optarg ;;
  1195. -without-* | --without-*)
  1196. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1197. # Reject names that are not valid shell variable names.
  1198. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1199. as_fn_error $? "invalid package name: $ac_useropt"
  1200. ac_useropt_orig=$ac_useropt
  1201. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1202. case $ac_user_opts in
  1203. *"
  1204. "with_$ac_useropt"
  1205. "*) ;;
  1206. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1207. ac_unrecognized_sep=', ';;
  1208. esac
  1209. eval with_$ac_useropt=no ;;
  1210. --x)
  1211. # Obsolete; use --with-x.
  1212. with_x=yes ;;
  1213. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1214. | --x-incl | --x-inc | --x-in | --x-i)
  1215. ac_prev=x_includes ;;
  1216. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1217. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1218. x_includes=$ac_optarg ;;
  1219. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1220. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1221. ac_prev=x_libraries ;;
  1222. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1223. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1224. x_libraries=$ac_optarg ;;
  1225. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1226. Try \`$0 --help' for more information"
  1227. ;;
  1228. *=*)
  1229. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1230. # Reject names that are not valid shell variable names.
  1231. case $ac_envvar in #(
  1232. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1233. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1234. esac
  1235. eval $ac_envvar=\$ac_optarg
  1236. export $ac_envvar ;;
  1237. *)
  1238. # FIXME: should be removed in autoconf 3.0.
  1239. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1240. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1241. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1242. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1243. ;;
  1244. esac
  1245. done
  1246. if test -n "$ac_prev"; then
  1247. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1248. as_fn_error $? "missing argument to $ac_option"
  1249. fi
  1250. if test -n "$ac_unrecognized_opts"; then
  1251. case $enable_option_checking in
  1252. no) ;;
  1253. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1254. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1255. esac
  1256. fi
  1257. # Check all directory arguments for consistency.
  1258. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1259. datadir sysconfdir sharedstatedir localstatedir includedir \
  1260. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1261. libdir localedir mandir
  1262. do
  1263. eval ac_val=\$$ac_var
  1264. # Remove trailing slashes.
  1265. case $ac_val in
  1266. */ )
  1267. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1268. eval $ac_var=\$ac_val;;
  1269. esac
  1270. # Be sure to have absolute directory names.
  1271. case $ac_val in
  1272. [\\/$]* | ?:[\\/]* ) continue;;
  1273. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1274. esac
  1275. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1276. done
  1277. # There might be people who depend on the old broken behavior: `$host'
  1278. # used to hold the argument of --host etc.
  1279. # FIXME: To remove some day.
  1280. build=$build_alias
  1281. host=$host_alias
  1282. target=$target_alias
  1283. # FIXME: To remove some day.
  1284. if test "x$host_alias" != x; then
  1285. if test "x$build_alias" = x; then
  1286. cross_compiling=maybe
  1287. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1288. If a cross compiler is detected then cross compile mode will be used" >&2
  1289. elif test "x$build_alias" != "x$host_alias"; then
  1290. cross_compiling=yes
  1291. fi
  1292. fi
  1293. ac_tool_prefix=
  1294. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1295. test "$silent" = yes && exec 6>/dev/null
  1296. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1297. ac_ls_di=`ls -di .` &&
  1298. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1299. as_fn_error $? "working directory cannot be determined"
  1300. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1301. as_fn_error $? "pwd does not report name of working directory"
  1302. # Find the source files, if location was not specified.
  1303. if test -z "$srcdir"; then
  1304. ac_srcdir_defaulted=yes
  1305. # Try the directory containing this script, then the parent directory.
  1306. ac_confdir=`$as_dirname -- "$as_myself" ||
  1307. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1308. X"$as_myself" : 'X\(//\)[^/]' \| \
  1309. X"$as_myself" : 'X\(//\)$' \| \
  1310. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1311. $as_echo X"$as_myself" |
  1312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1313. s//\1/
  1314. q
  1315. }
  1316. /^X\(\/\/\)[^/].*/{
  1317. s//\1/
  1318. q
  1319. }
  1320. /^X\(\/\/\)$/{
  1321. s//\1/
  1322. q
  1323. }
  1324. /^X\(\/\).*/{
  1325. s//\1/
  1326. q
  1327. }
  1328. s/.*/./; q'`
  1329. srcdir=$ac_confdir
  1330. if test ! -r "$srcdir/$ac_unique_file"; then
  1331. srcdir=..
  1332. fi
  1333. else
  1334. ac_srcdir_defaulted=no
  1335. fi
  1336. if test ! -r "$srcdir/$ac_unique_file"; then
  1337. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1338. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1339. fi
  1340. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1341. ac_abs_confdir=`(
  1342. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1343. pwd)`
  1344. # When building in place, set srcdir=.
  1345. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1346. srcdir=.
  1347. fi
  1348. # Remove unnecessary trailing slashes from srcdir.
  1349. # Double slashes in file names in object file debugging info
  1350. # mess up M-x gdb in Emacs.
  1351. case $srcdir in
  1352. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1353. esac
  1354. for ac_var in $ac_precious_vars; do
  1355. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1356. eval ac_env_${ac_var}_value=\$${ac_var}
  1357. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1358. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1359. done
  1360. #
  1361. # Report the --help message.
  1362. #
  1363. if test "$ac_init_help" = "long"; then
  1364. # Omit some internal or obsolete options to make the list less imposing.
  1365. # This message is too long to be a string in the A/UX 3.1 sh.
  1366. cat <<_ACEOF
  1367. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1368. Usage: $0 [OPTION]... [VAR=VALUE]...
  1369. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1370. VAR=VALUE. See below for descriptions of some of the useful variables.
  1371. Defaults for the options are specified in brackets.
  1372. Configuration:
  1373. -h, --help display this help and exit
  1374. --help=short display options specific to this package
  1375. --help=recursive display the short help of all the included packages
  1376. -V, --version display version information and exit
  1377. -q, --quiet, --silent do not print \`checking ...' messages
  1378. --cache-file=FILE cache test results in FILE [disabled]
  1379. -C, --config-cache alias for \`--cache-file=config.cache'
  1380. -n, --no-create do not create output files
  1381. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1382. Installation directories:
  1383. --prefix=PREFIX install architecture-independent files in PREFIX
  1384. [$ac_default_prefix]
  1385. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1386. [PREFIX]
  1387. By default, \`make install' will install all the files in
  1388. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1389. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1390. for instance \`--prefix=\$HOME'.
  1391. For better control, use the options below.
  1392. Fine tuning of the installation directories:
  1393. --bindir=DIR user executables [EPREFIX/bin]
  1394. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1395. --libexecdir=DIR program executables [EPREFIX/libexec]
  1396. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1397. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1398. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1399. --libdir=DIR object code libraries [EPREFIX/lib]
  1400. --includedir=DIR C header files [PREFIX/include]
  1401. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1402. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1403. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1404. --infodir=DIR info documentation [DATAROOTDIR/info]
  1405. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1406. --mandir=DIR man documentation [DATAROOTDIR/man]
  1407. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1408. --htmldir=DIR html documentation [DOCDIR]
  1409. --dvidir=DIR dvi documentation [DOCDIR]
  1410. --pdfdir=DIR pdf documentation [DOCDIR]
  1411. --psdir=DIR ps documentation [DOCDIR]
  1412. _ACEOF
  1413. cat <<\_ACEOF
  1414. Program names:
  1415. --program-prefix=PREFIX prepend PREFIX to installed program names
  1416. --program-suffix=SUFFIX append SUFFIX to installed program names
  1417. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1418. System types:
  1419. --build=BUILD configure for building on BUILD [guessed]
  1420. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1421. _ACEOF
  1422. fi
  1423. if test -n "$ac_init_help"; then
  1424. case $ac_init_help in
  1425. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1426. esac
  1427. cat <<\_ACEOF
  1428. Optional Features:
  1429. --disable-option-checking ignore unrecognized --enable/--with options
  1430. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1431. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1432. --enable-maintainer-mode enable make rules and dependencies not useful
  1433. (and sometimes confusing) to the casual installer
  1434. --disable-dependency-tracking speeds up one-time build
  1435. --enable-dependency-tracking do not reject slow dependency extractors
  1436. --enable-static[=PKGS] build static libraries [default=no]
  1437. --enable-shared[=PKGS] build shared libraries [default=yes]
  1438. --enable-fast-install[=PKGS]
  1439. optimize for fast installation [default=yes]
  1440. --disable-libtool-lock avoid locking (might break parallel builds)
  1441. --enable-debug Enable debug features (default: no)
  1442. --enable-bundle Enable bundled dependencies (default: no)
  1443. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1444. yes)
  1445. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1446. plugin (default: yes)
  1447. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1448. (default: yes)
  1449. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1450. support (default: no)
  1451. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1452. domain socket (LDAPI) support (default: no)
  1453. --enable-bitwise enable the bitwise matching rule plugin (default:
  1454. yes)
  1455. --enable-presence enable the presence plugin (default: no)
  1456. --enable-acctpolicy enable the account policy plugin (default: yes)
  1457. Optional Packages:
  1458. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1459. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1460. --with-pic try to use only PIC/non-PIC objects [default=use
  1461. both]
  1462. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1463. --with-sysroot=DIR Search for dependent libraries within DIR
  1464. (or the compiler's sysroot if not specified).
  1465. --with-fhs Use FHS layout
  1466. --with-fhs-opt Use FHS optional layout
  1467. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1468. (default: $with_tmpfiles_d)
  1469. --with-systemdsystemunitdir=PATH
  1470. Directory for systemd service files (default:
  1471. $with_systemdsystemunitdir)
  1472. --with-systemdsystemconfdir=PATH
  1473. Directory for systemd service files (default:
  1474. $with_systemdsystemconfdir)
  1475. --with-systemdgroupname=NAME
  1476. Name of group target for all instances (default:
  1477. $with_systemdgroupname)
  1478. --with-instconfigdir=/path
  1479. Base directory for instance specific writable
  1480. configuration directories (default
  1481. $sysconfdir/$PACKAGE_NAME)
  1482. --with-initddir=/path Absolute path (not relative like some of the other
  1483. options) that should contain the SysV init scripts
  1484. (default '$(sysconfdir)/rc.d')
  1485. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1486. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1487. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1488. --with-nss[=PATH] Network Security Services (NSS) directory
  1489. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1490. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1491. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1492. --with-openldap-inc=PATH
  1493. OpenLDAP SDK include directory
  1494. --with-openldap-lib=PATH
  1495. OpenLDAP SDK library directory
  1496. --with-openldap-bin=PATH
  1497. OpenLDAP SDK binary directory
  1498. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1499. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1500. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1501. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1502. --with-db[=PATH] Berkeley DB directory
  1503. --with-db-inc=PATH Berkeley DB include file directory
  1504. --with-db-lib=PATH Berkeley DB library directory
  1505. --with-sasl[=PATH] Use SASL from supplied path
  1506. --with-sasl-inc=PATH SASL include file directory
  1507. --with-sasl-lib=PATH SASL library directory
  1508. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1509. SVRCORE
  1510. --with-svrcore-inc=PATH SVRCORE include file directory
  1511. --with-svrcore-lib=PATH SVRCORE library directory
  1512. --with-icu[=PATH] ICU directory
  1513. --with-icu-inc=PATH ICU include directory
  1514. --with-icu-lib=PATH ICU library directory
  1515. --with-icu-bin=PATH ICU binary directory
  1516. --with-netsnmp[=PATH] Net-SNMP directory
  1517. --with-netsnmp-inc=PATH Net-SNMP include directory
  1518. --with-netsnmp-lib=PATH Net-SNMP library directory
  1519. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1520. the server to authenticate directly with a keytab -
  1521. otherwise, SASL/GSSAPI auth depends on underlying
  1522. SASL libraries and external kinit with a keytab - if
  1523. PATH is not specified, look for kerberos in the
  1524. system locations. This will attempt to use
  1525. krb5-config from the PATH to find the libs and
  1526. include dirs - you can specify KRB5_CONFIG_BIN to
  1527. specify a different filename or absolute path. If
  1528. krb5-config does not work, this will attempt to look
  1529. in various system directories
  1530. --with-kerberos-inc=PATH
  1531. Allows you to explicitly set the directory
  1532. containing the kerberos include files - implies use
  1533. of kerberos
  1534. --with-kerberos-lib=PATH
  1535. Allows you to explicitly set the directory
  1536. containing the kerberos libraries - implies use of
  1537. kerberos
  1538. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1539. --with-selinux Support SELinux policy
  1540. Some influential environment variables:
  1541. CXX C++ compiler command
  1542. CXXFLAGS C++ compiler flags
  1543. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1544. nonstandard directory <lib dir>
  1545. LIBS libraries to pass to the linker, e.g. -l<library>
  1546. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1547. you have headers in a nonstandard directory <include dir>
  1548. CC C compiler command
  1549. CFLAGS C compiler flags
  1550. CCAS assembler compiler command (defaults to CC)
  1551. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1552. CPP C preprocessor
  1553. CXXCPP C++ preprocessor
  1554. PKG_CONFIG path to pkg-config utility
  1555. PKG_CONFIG_PATH
  1556. directories to add to pkg-config's search path
  1557. PKG_CONFIG_LIBDIR
  1558. path overriding pkg-config's built-in search path
  1559. Use these variables to override the choices made by `configure' or to help
  1560. it to find libraries and programs with nonstandard names/locations.
  1561. Report bugs to <http://bugzilla.redhat.com/>.
  1562. _ACEOF
  1563. ac_status=$?
  1564. fi
  1565. if test "$ac_init_help" = "recursive"; then
  1566. # If there are subdirs, report their specific --help.
  1567. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1568. test -d "$ac_dir" ||
  1569. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1570. continue
  1571. ac_builddir=.
  1572. case "$ac_dir" in
  1573. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1574. *)
  1575. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1576. # A ".." for each directory in $ac_dir_suffix.
  1577. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1578. case $ac_top_builddir_sub in
  1579. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1580. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1581. esac ;;
  1582. esac
  1583. ac_abs_top_builddir=$ac_pwd
  1584. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1585. # for backward compatibility:
  1586. ac_top_builddir=$ac_top_build_prefix
  1587. case $srcdir in
  1588. .) # We are building in place.
  1589. ac_srcdir=.
  1590. ac_top_srcdir=$ac_top_builddir_sub
  1591. ac_abs_top_srcdir=$ac_pwd ;;
  1592. [\\/]* | ?:[\\/]* ) # Absolute name.
  1593. ac_srcdir=$srcdir$ac_dir_suffix;
  1594. ac_top_srcdir=$srcdir
  1595. ac_abs_top_srcdir=$srcdir ;;
  1596. *) # Relative name.
  1597. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1598. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1599. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1600. esac
  1601. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1602. cd "$ac_dir" || { ac_status=$?; continue; }
  1603. # Check for guested configure.
  1604. if test -f "$ac_srcdir/configure.gnu"; then
  1605. echo &&
  1606. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1607. elif test -f "$ac_srcdir/configure"; then
  1608. echo &&
  1609. $SHELL "$ac_srcdir/configure" --help=recursive
  1610. else
  1611. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1612. fi || ac_status=$?
  1613. cd "$ac_pwd" || { ac_status=$?; break; }
  1614. done
  1615. fi
  1616. test -n "$ac_init_help" && exit $ac_status
  1617. if $ac_init_version; then
  1618. cat <<\_ACEOF
  1619. dirsrv configure 1.0
  1620. generated by GNU Autoconf 2.68
  1621. Copyright (C) 2010 Free Software Foundation, Inc.
  1622. This configure script is free software; the Free Software Foundation
  1623. gives unlimited permission to copy, distribute and modify it.
  1624. _ACEOF
  1625. exit
  1626. fi
  1627. ## ------------------------ ##
  1628. ## Autoconf initialization. ##
  1629. ## ------------------------ ##
  1630. # ac_fn_cxx_try_compile LINENO
  1631. # ----------------------------
  1632. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1633. ac_fn_cxx_try_compile ()
  1634. {
  1635. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636. rm -f conftest.$ac_objext
  1637. if { { ac_try="$ac_compile"
  1638. case "(($ac_try" in
  1639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1640. *) ac_try_echo=$ac_try;;
  1641. esac
  1642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1643. $as_echo "$ac_try_echo"; } >&5
  1644. (eval "$ac_compile") 2>conftest.err
  1645. ac_status=$?
  1646. if test -s conftest.err; then
  1647. grep -v '^ *+' conftest.err >conftest.er1
  1648. cat conftest.er1 >&5
  1649. mv -f conftest.er1 conftest.err
  1650. fi
  1651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1652. test $ac_status = 0; } && {
  1653. test -z "$ac_cxx_werror_flag" ||
  1654. test ! -s conftest.err
  1655. } && test -s conftest.$ac_objext; then :
  1656. ac_retval=0
  1657. else
  1658. $as_echo "$as_me: failed program was:" >&5
  1659. sed 's/^/| /' conftest.$ac_ext >&5
  1660. ac_retval=1
  1661. fi
  1662. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1663. as_fn_set_status $ac_retval
  1664. } # ac_fn_cxx_try_compile
  1665. # ac_fn_c_try_compile LINENO
  1666. # --------------------------
  1667. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1668. ac_fn_c_try_compile ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. rm -f conftest.$ac_objext
  1672. if { { ac_try="$ac_compile"
  1673. case "(($ac_try" in
  1674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1675. *) ac_try_echo=$ac_try;;
  1676. esac
  1677. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1678. $as_echo "$ac_try_echo"; } >&5
  1679. (eval "$ac_compile") 2>conftest.err
  1680. ac_status=$?
  1681. if test -s conftest.err; then
  1682. grep -v '^ *+' conftest.err >conftest.er1
  1683. cat conftest.er1 >&5
  1684. mv -f conftest.er1 conftest.err
  1685. fi
  1686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1687. test $ac_status = 0; } && {
  1688. test -z "$ac_c_werror_flag" ||
  1689. test ! -s conftest.err
  1690. } && test -s conftest.$ac_objext; then :
  1691. ac_retval=0
  1692. else
  1693. $as_echo "$as_me: failed program was:" >&5
  1694. sed 's/^/| /' conftest.$ac_ext >&5
  1695. ac_retval=1
  1696. fi
  1697. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1698. as_fn_set_status $ac_retval
  1699. } # ac_fn_c_try_compile
  1700. # ac_fn_c_try_link LINENO
  1701. # -----------------------
  1702. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1703. ac_fn_c_try_link ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. rm -f conftest.$ac_objext conftest$ac_exeext
  1707. if { { ac_try="$ac_link"
  1708. case "(($ac_try" in
  1709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1710. *) ac_try_echo=$ac_try;;
  1711. esac
  1712. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1713. $as_echo "$ac_try_echo"; } >&5
  1714. (eval "$ac_link") 2>conftest.err
  1715. ac_status=$?
  1716. if test -s conftest.err; then
  1717. grep -v '^ *+' conftest.err >conftest.er1
  1718. cat conftest.er1 >&5
  1719. mv -f conftest.er1 conftest.err
  1720. fi
  1721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1722. test $ac_status = 0; } && {
  1723. test -z "$ac_c_werror_flag" ||
  1724. test ! -s conftest.err
  1725. } && test -s conftest$ac_exeext && {
  1726. test "$cross_compiling" = yes ||
  1727. $as_test_x conftest$ac_exeext
  1728. }; then :
  1729. ac_retval=0
  1730. else
  1731. $as_echo "$as_me: failed program was:" >&5
  1732. sed 's/^/| /' conftest.$ac_ext >&5
  1733. ac_retval=1
  1734. fi
  1735. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1736. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1737. # interfere with the next link command; also delete a directory that is
  1738. # left behind by Apple's compiler. We do this before executing the actions.
  1739. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1740. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1741. as_fn_set_status $ac_retval
  1742. } # ac_fn_c_try_link
  1743. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1744. # -------------------------------------------------------
  1745. # Tests whether HEADER exists and can be compiled using the include files in
  1746. # INCLUDES, setting the cache variable VAR accordingly.
  1747. ac_fn_c_check_header_compile ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1751. $as_echo_n "checking for $2... " >&6; }
  1752. if eval \${$3+:} false; then :
  1753. $as_echo_n "(cached) " >&6
  1754. else
  1755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1756. /* end confdefs.h. */
  1757. $4
  1758. #include <$2>
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. eval "$3=yes"
  1762. else
  1763. eval "$3=no"
  1764. fi
  1765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. fi
  1767. eval ac_res=\$$3
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1769. $as_echo "$ac_res" >&6; }
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. } # ac_fn_c_check_header_compile
  1772. # ac_fn_c_try_cpp LINENO
  1773. # ----------------------
  1774. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1775. ac_fn_c_try_cpp ()
  1776. {
  1777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1778. if { { ac_try="$ac_cpp conftest.$ac_ext"
  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_cpp conftest.$ac_ext") 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; } > conftest.i && {
  1794. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1795. test ! -s conftest.err
  1796. }; then :
  1797. ac_retval=0
  1798. else
  1799. $as_echo "$as_me: failed program was:" >&5
  1800. sed 's/^/| /' conftest.$ac_ext >&5
  1801. ac_retval=1
  1802. fi
  1803. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1804. as_fn_set_status $ac_retval
  1805. } # ac_fn_c_try_cpp
  1806. # ac_fn_c_try_run LINENO
  1807. # ----------------------
  1808. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1809. # that executables *can* be run.
  1810. ac_fn_c_try_run ()
  1811. {
  1812. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1813. if { { ac_try="$ac_link"
  1814. case "(($ac_try" in
  1815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1816. *) ac_try_echo=$ac_try;;
  1817. esac
  1818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1819. $as_echo "$ac_try_echo"; } >&5
  1820. (eval "$ac_link") 2>&5
  1821. ac_status=$?
  1822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1823. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1824. { { case "(($ac_try" in
  1825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1826. *) ac_try_echo=$ac_try;;
  1827. esac
  1828. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1829. $as_echo "$ac_try_echo"; } >&5
  1830. (eval "$ac_try") 2>&5
  1831. ac_status=$?
  1832. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1833. test $ac_status = 0; }; }; then :
  1834. ac_retval=0
  1835. else
  1836. $as_echo "$as_me: program exited with status $ac_status" >&5
  1837. $as_echo "$as_me: failed program was:" >&5
  1838. sed 's/^/| /' conftest.$ac_ext >&5
  1839. ac_retval=$ac_status
  1840. fi
  1841. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1842. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1843. as_fn_set_status $ac_retval
  1844. } # ac_fn_c_try_run
  1845. # ac_fn_c_check_func LINENO FUNC VAR
  1846. # ----------------------------------
  1847. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1848. ac_fn_c_check_func ()
  1849. {
  1850. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1852. $as_echo_n "checking for $2... " >&6; }
  1853. if eval \${$3+:} false; then :
  1854. $as_echo_n "(cached) " >&6
  1855. else
  1856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1857. /* end confdefs.h. */
  1858. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1859. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1860. #define $2 innocuous_$2
  1861. /* System header to define __stub macros and hopefully few prototypes,
  1862. which can conflict with char $2 (); below.
  1863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1864. <limits.h> exists even on freestanding compilers. */
  1865. #ifdef __STDC__
  1866. # include <limits.h>
  1867. #else
  1868. # include <assert.h>
  1869. #endif
  1870. #undef $2
  1871. /* Override any GCC internal prototype to avoid an error.
  1872. Use char because int might match the return type of a GCC
  1873. builtin and then its argument prototype would still apply. */
  1874. #ifdef __cplusplus
  1875. extern "C"
  1876. #endif
  1877. char $2 ();
  1878. /* The GNU C library defines this for functions which it implements
  1879. to always fail with ENOSYS. Some functions are actually named
  1880. something starting with __ and the normal name is an alias. */
  1881. #if defined __stub_$2 || defined __stub___$2
  1882. choke me
  1883. #endif
  1884. int
  1885. main ()
  1886. {
  1887. return $2 ();
  1888. ;
  1889. return 0;
  1890. }
  1891. _ACEOF
  1892. if ac_fn_c_try_link "$LINENO"; then :
  1893. eval "$3=yes"
  1894. else
  1895. eval "$3=no"
  1896. fi
  1897. rm -f core conftest.err conftest.$ac_objext \
  1898. conftest$ac_exeext conftest.$ac_ext
  1899. fi
  1900. eval ac_res=\$$3
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1902. $as_echo "$ac_res" >&6; }
  1903. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1904. } # ac_fn_c_check_func
  1905. # ac_fn_cxx_try_cpp LINENO
  1906. # ------------------------
  1907. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1908. ac_fn_cxx_try_cpp ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1912. case "(($ac_try" in
  1913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1914. *) ac_try_echo=$ac_try;;
  1915. esac
  1916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1917. $as_echo "$ac_try_echo"; } >&5
  1918. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1919. ac_status=$?
  1920. if test -s conftest.err; then
  1921. grep -v '^ *+' conftest.err >conftest.er1
  1922. cat conftest.er1 >&5
  1923. mv -f conftest.er1 conftest.err
  1924. fi
  1925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1926. test $ac_status = 0; } > conftest.i && {
  1927. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1928. test ! -s conftest.err
  1929. }; then :
  1930. ac_retval=0
  1931. else
  1932. $as_echo "$as_me: failed program was:" >&5
  1933. sed 's/^/| /' conftest.$ac_ext >&5
  1934. ac_retval=1
  1935. fi
  1936. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1937. as_fn_set_status $ac_retval
  1938. } # ac_fn_cxx_try_cpp
  1939. # ac_fn_cxx_try_link LINENO
  1940. # -------------------------
  1941. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1942. ac_fn_cxx_try_link ()
  1943. {
  1944. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1945. rm -f conftest.$ac_objext conftest$ac_exeext
  1946. if { { ac_try="$ac_link"
  1947. case "(($ac_try" in
  1948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1949. *) ac_try_echo=$ac_try;;
  1950. esac
  1951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1952. $as_echo "$ac_try_echo"; } >&5
  1953. (eval "$ac_link") 2>conftest.err
  1954. ac_status=$?
  1955. if test -s conftest.err; then
  1956. grep -v '^ *+' conftest.err >conftest.er1
  1957. cat conftest.er1 >&5
  1958. mv -f conftest.er1 conftest.err
  1959. fi
  1960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1961. test $ac_status = 0; } && {
  1962. test -z "$ac_cxx_werror_flag" ||
  1963. test ! -s conftest.err
  1964. } && test -s conftest$ac_exeext && {
  1965. test "$cross_compiling" = yes ||
  1966. $as_test_x conftest$ac_exeext
  1967. }; then :
  1968. ac_retval=0
  1969. else
  1970. $as_echo "$as_me: failed program was:" >&5
  1971. sed 's/^/| /' conftest.$ac_ext >&5
  1972. ac_retval=1
  1973. fi
  1974. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1975. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1976. # interfere with the next link command; also delete a directory that is
  1977. # left behind by Apple's compiler. We do this before executing the actions.
  1978. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1979. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1980. as_fn_set_status $ac_retval
  1981. } # ac_fn_cxx_try_link
  1982. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1983. # -------------------------------------------------------
  1984. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1985. # the include files in INCLUDES and setting the cache variable VAR
  1986. # accordingly.
  1987. ac_fn_c_check_header_mongrel ()
  1988. {
  1989. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1990. if eval \${$3+:} false; then :
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1992. $as_echo_n "checking for $2... " >&6; }
  1993. if eval \${$3+:} false; then :
  1994. $as_echo_n "(cached) " >&6
  1995. fi
  1996. eval ac_res=\$$3
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1998. $as_echo "$ac_res" >&6; }
  1999. else
  2000. # Is the header compilable?
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2002. $as_echo_n "checking $2 usability... " >&6; }
  2003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2004. /* end confdefs.h. */
  2005. $4
  2006. #include <$2>
  2007. _ACEOF
  2008. if ac_fn_c_try_compile "$LINENO"; then :
  2009. ac_header_compiler=yes
  2010. else
  2011. ac_header_compiler=no
  2012. fi
  2013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2015. $as_echo "$ac_header_compiler" >&6; }
  2016. # Is the header present?
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2018. $as_echo_n "checking $2 presence... " >&6; }
  2019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2020. /* end confdefs.h. */
  2021. #include <$2>
  2022. _ACEOF
  2023. if ac_fn_c_try_cpp "$LINENO"; then :
  2024. ac_header_preproc=yes
  2025. else
  2026. ac_header_preproc=no
  2027. fi
  2028. rm -f conftest.err conftest.i conftest.$ac_ext
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2030. $as_echo "$ac_header_preproc" >&6; }
  2031. # So? What about this header?
  2032. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2033. yes:no: )
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2035. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2037. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2038. ;;
  2039. no:yes:* )
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2041. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2043. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2045. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2047. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2049. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2050. ( $as_echo "## ------------------------------------------ ##
  2051. ## Report this to http://bugzilla.redhat.com/ ##
  2052. ## ------------------------------------------ ##"
  2053. ) | sed "s/^/$as_me: WARNING: /" >&2
  2054. ;;
  2055. esac
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2057. $as_echo_n "checking for $2... " >&6; }
  2058. if eval \${$3+:} false; then :
  2059. $as_echo_n "(cached) " >&6
  2060. else
  2061. eval "$3=\$ac_header_compiler"
  2062. fi
  2063. eval ac_res=\$$3
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2065. $as_echo "$ac_res" >&6; }
  2066. fi
  2067. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2068. } # ac_fn_c_check_header_mongrel
  2069. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2070. # -------------------------------------------
  2071. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2072. # variable VAR accordingly.
  2073. ac_fn_c_check_type ()
  2074. {
  2075. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2077. $as_echo_n "checking for $2... " >&6; }
  2078. if eval \${$3+:} false; then :
  2079. $as_echo_n "(cached) " >&6
  2080. else
  2081. eval "$3=no"
  2082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2083. /* end confdefs.h. */
  2084. $4
  2085. int
  2086. main ()
  2087. {
  2088. if (sizeof ($2))
  2089. return 0;
  2090. ;
  2091. return 0;
  2092. }
  2093. _ACEOF
  2094. if ac_fn_c_try_compile "$LINENO"; then :
  2095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2096. /* end confdefs.h. */
  2097. $4
  2098. int
  2099. main ()
  2100. {
  2101. if (sizeof (($2)))
  2102. return 0;
  2103. ;
  2104. return 0;
  2105. }
  2106. _ACEOF
  2107. if ac_fn_c_try_compile "$LINENO"; then :
  2108. else
  2109. eval "$3=yes"
  2110. fi
  2111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. fi
  2113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2114. fi
  2115. eval ac_res=\$$3
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2117. $as_echo "$ac_res" >&6; }
  2118. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2119. } # ac_fn_c_check_type
  2120. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2121. # ---------------------------------------------
  2122. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2123. # accordingly.
  2124. ac_fn_c_check_decl ()
  2125. {
  2126. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2127. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2128. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2130. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2131. if eval \${$3+:} false; then :
  2132. $as_echo_n "(cached) " >&6
  2133. else
  2134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2135. /* end confdefs.h. */
  2136. $4
  2137. int
  2138. main ()
  2139. {
  2140. #ifndef $as_decl_name
  2141. #ifdef __cplusplus
  2142. (void) $as_decl_use;
  2143. #else
  2144. (void) $as_decl_name;
  2145. #endif
  2146. #endif
  2147. ;
  2148. return 0;
  2149. }
  2150. _ACEOF
  2151. if ac_fn_c_try_compile "$LINENO"; then :
  2152. eval "$3=yes"
  2153. else
  2154. eval "$3=no"
  2155. fi
  2156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2157. fi
  2158. eval ac_res=\$$3
  2159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2160. $as_echo "$ac_res" >&6; }
  2161. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2162. } # ac_fn_c_check_decl
  2163. cat >config.log <<_ACEOF
  2164. This file contains any messages produced by compilers while
  2165. running configure, to aid debugging if configure makes a mistake.
  2166. It was created by dirsrv $as_me 1.0, which was
  2167. generated by GNU Autoconf 2.68. Invocation command line was
  2168. $ $0 $@
  2169. _ACEOF
  2170. exec 5>>config.log
  2171. {
  2172. cat <<_ASUNAME
  2173. ## --------- ##
  2174. ## Platform. ##
  2175. ## --------- ##
  2176. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2177. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2178. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2179. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2180. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2181. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2182. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2183. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2184. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2185. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2186. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2187. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2188. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2189. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2190. _ASUNAME
  2191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2192. for as_dir in $PATH
  2193. do
  2194. IFS=$as_save_IFS
  2195. test -z "$as_dir" && as_dir=.
  2196. $as_echo "PATH: $as_dir"
  2197. done
  2198. IFS=$as_save_IFS
  2199. } >&5
  2200. cat >&5 <<_ACEOF
  2201. ## ----------- ##
  2202. ## Core tests. ##
  2203. ## ----------- ##
  2204. _ACEOF
  2205. # Keep a trace of the command line.
  2206. # Strip out --no-create and --no-recursion so they do not pile up.
  2207. # Strip out --silent because we don't want to record it for future runs.
  2208. # Also quote any args containing shell meta-characters.
  2209. # Make two passes to allow for proper duplicate-argument suppression.
  2210. ac_configure_args=
  2211. ac_configure_args0=
  2212. ac_configure_args1=
  2213. ac_must_keep_next=false
  2214. for ac_pass in 1 2
  2215. do
  2216. for ac_arg
  2217. do
  2218. case $ac_arg in
  2219. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2220. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2221. | -silent | --silent | --silen | --sile | --sil)
  2222. continue ;;
  2223. *\'*)
  2224. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2225. esac
  2226. case $ac_pass in
  2227. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2228. 2)
  2229. as_fn_append ac_configure_args1 " '$ac_arg'"
  2230. if test $ac_must_keep_next = true; then
  2231. ac_must_keep_next=false # Got value, back to normal.
  2232. else
  2233. case $ac_arg in
  2234. *=* | --config-cache | -C | -disable-* | --disable-* \
  2235. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2236. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2237. | -with-* | --with-* | -without-* | --without-* | --x)
  2238. case "$ac_configure_args0 " in
  2239. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2240. esac
  2241. ;;
  2242. -* ) ac_must_keep_next=true ;;
  2243. esac
  2244. fi
  2245. as_fn_append ac_configure_args " '$ac_arg'"
  2246. ;;
  2247. esac
  2248. done
  2249. done
  2250. { ac_configure_args0=; unset ac_configure_args0;}
  2251. { ac_configure_args1=; unset ac_configure_args1;}
  2252. # When interrupted or exit'd, cleanup temporary files, and complete
  2253. # config.log. We remove comments because anyway the quotes in there
  2254. # would cause problems or look ugly.
  2255. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2256. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2257. trap 'exit_status=$?
  2258. # Save into config.log some information that might help in debugging.
  2259. {
  2260. echo
  2261. $as_echo "## ---------------- ##
  2262. ## Cache variables. ##
  2263. ## ---------------- ##"
  2264. echo
  2265. # The following way of writing the cache mishandles newlines in values,
  2266. (
  2267. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2268. eval ac_val=\$$ac_var
  2269. case $ac_val in #(
  2270. *${as_nl}*)
  2271. case $ac_var in #(
  2272. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2273. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2274. esac
  2275. case $ac_var in #(
  2276. _ | IFS | as_nl) ;; #(
  2277. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2278. *) { eval $ac_var=; unset $ac_var;} ;;
  2279. esac ;;
  2280. esac
  2281. done
  2282. (set) 2>&1 |
  2283. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2284. *${as_nl}ac_space=\ *)
  2285. sed -n \
  2286. "s/'\''/'\''\\\\'\'''\''/g;
  2287. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2288. ;; #(
  2289. *)
  2290. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2291. ;;
  2292. esac |
  2293. sort
  2294. )
  2295. echo
  2296. $as_echo "## ----------------- ##
  2297. ## Output variables. ##
  2298. ## ----------------- ##"
  2299. echo
  2300. for ac_var in $ac_subst_vars
  2301. do
  2302. eval ac_val=\$$ac_var
  2303. case $ac_val in
  2304. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2305. esac
  2306. $as_echo "$ac_var='\''$ac_val'\''"
  2307. done | sort
  2308. echo
  2309. if test -n "$ac_subst_files"; then
  2310. $as_echo "## ------------------- ##
  2311. ## File substitutions. ##
  2312. ## ------------------- ##"
  2313. echo
  2314. for ac_var in $ac_subst_files
  2315. do
  2316. eval ac_val=\$$ac_var
  2317. case $ac_val in
  2318. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2319. esac
  2320. $as_echo "$ac_var='\''$ac_val'\''"
  2321. done | sort
  2322. echo
  2323. fi
  2324. if test -s confdefs.h; then
  2325. $as_echo "## ----------- ##
  2326. ## confdefs.h. ##
  2327. ## ----------- ##"
  2328. echo
  2329. cat confdefs.h
  2330. echo
  2331. fi
  2332. test "$ac_signal" != 0 &&
  2333. $as_echo "$as_me: caught signal $ac_signal"
  2334. $as_echo "$as_me: exit $exit_status"
  2335. } >&5
  2336. rm -f core *.core core.conftest.* &&
  2337. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2338. exit $exit_status
  2339. ' 0
  2340. for ac_signal in 1 2 13 15; do
  2341. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2342. done
  2343. ac_signal=0
  2344. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2345. rm -f -r conftest* confdefs.h
  2346. $as_echo "/* confdefs.h */" > confdefs.h
  2347. # Predefined preprocessor variables.
  2348. cat >>confdefs.h <<_ACEOF
  2349. #define PACKAGE_NAME "$PACKAGE_NAME"
  2350. _ACEOF
  2351. cat >>confdefs.h <<_ACEOF
  2352. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2353. _ACEOF
  2354. cat >>confdefs.h <<_ACEOF
  2355. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2356. _ACEOF
  2357. cat >>confdefs.h <<_ACEOF
  2358. #define PACKAGE_STRING "$PACKAGE_STRING"
  2359. _ACEOF
  2360. cat >>confdefs.h <<_ACEOF
  2361. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2362. _ACEOF
  2363. cat >>confdefs.h <<_ACEOF
  2364. #define PACKAGE_URL "$PACKAGE_URL"
  2365. _ACEOF
  2366. # Let the site file select an alternate cache file if it wants to.
  2367. # Prefer an explicitly selected file to automatically selected ones.
  2368. ac_site_file1=NONE
  2369. ac_site_file2=NONE
  2370. if test -n "$CONFIG_SITE"; then
  2371. # We do not want a PATH search for config.site.
  2372. case $CONFIG_SITE in #((
  2373. -*) ac_site_file1=./$CONFIG_SITE;;
  2374. */*) ac_site_file1=$CONFIG_SITE;;
  2375. *) ac_site_file1=./$CONFIG_SITE;;
  2376. esac
  2377. elif test "x$prefix" != xNONE; then
  2378. ac_site_file1=$prefix/share/config.site
  2379. ac_site_file2=$prefix/etc/config.site
  2380. else
  2381. ac_site_file1=$ac_default_prefix/share/config.site
  2382. ac_site_file2=$ac_default_prefix/etc/config.site
  2383. fi
  2384. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2385. do
  2386. test "x$ac_site_file" = xNONE && continue
  2387. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2389. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2390. sed 's/^/| /' "$ac_site_file" >&5
  2391. . "$ac_site_file" \
  2392. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2394. as_fn_error $? "failed to load site script $ac_site_file
  2395. See \`config.log' for more details" "$LINENO" 5; }
  2396. fi
  2397. done
  2398. if test -r "$cache_file"; then
  2399. # Some versions of bash will fail to source /dev/null (special files
  2400. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2401. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2403. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2404. case $cache_file in
  2405. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2406. *) . "./$cache_file";;
  2407. esac
  2408. fi
  2409. else
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2411. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2412. >$cache_file
  2413. fi
  2414. as_fn_append ac_header_list " stdlib.h"
  2415. as_fn_append ac_header_list " unistd.h"
  2416. as_fn_append ac_header_list " sys/param.h"
  2417. # Check that the precious variables saved in the cache have kept the same
  2418. # value.
  2419. ac_cache_corrupted=false
  2420. for ac_var in $ac_precious_vars; do
  2421. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2422. eval ac_new_set=\$ac_env_${ac_var}_set
  2423. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2424. eval ac_new_val=\$ac_env_${ac_var}_value
  2425. case $ac_old_set,$ac_new_set in
  2426. set,)
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2428. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2429. ac_cache_corrupted=: ;;
  2430. ,set)
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2432. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2433. ac_cache_corrupted=: ;;
  2434. ,);;
  2435. *)
  2436. if test "x$ac_old_val" != "x$ac_new_val"; then
  2437. # differences in whitespace do not lead to failure.
  2438. ac_old_val_w=`echo x $ac_old_val`
  2439. ac_new_val_w=`echo x $ac_new_val`
  2440. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2442. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2443. ac_cache_corrupted=:
  2444. else
  2445. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2446. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2447. eval $ac_var=\$ac_old_val
  2448. fi
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2450. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2452. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2453. fi;;
  2454. esac
  2455. # Pass precious variables to config.status.
  2456. if test "$ac_new_set" = set; then
  2457. case $ac_new_val in
  2458. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2459. *) ac_arg=$ac_var=$ac_new_val ;;
  2460. esac
  2461. case " $ac_configure_args " in
  2462. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2463. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2464. esac
  2465. fi
  2466. done
  2467. if $ac_cache_corrupted; then
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2471. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2472. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2473. fi
  2474. ## -------------------- ##
  2475. ## Main body of script. ##
  2476. ## -------------------- ##
  2477. ac_ext=c
  2478. ac_cpp='$CPP $CPPFLAGS'
  2479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2482. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2483. ac_config_headers="$ac_config_headers config.h"
  2484. # include the version information
  2485. . $srcdir/VERSION.sh
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2487. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2488. cat >>confdefs.h <<_ACEOF
  2489. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2490. _ACEOF
  2491. cat >>confdefs.h <<_ACEOF
  2492. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2493. _ACEOF
  2494. cat >>confdefs.h <<_ACEOF
  2495. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2496. _ACEOF
  2497. cat >>confdefs.h <<_ACEOF
  2498. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2499. _ACEOF
  2500. am__api_version='1.11'
  2501. ac_aux_dir=
  2502. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2503. if test -f "$ac_dir/install-sh"; then
  2504. ac_aux_dir=$ac_dir
  2505. ac_install_sh="$ac_aux_dir/install-sh -c"
  2506. break
  2507. elif test -f "$ac_dir/install.sh"; then
  2508. ac_aux_dir=$ac_dir
  2509. ac_install_sh="$ac_aux_dir/install.sh -c"
  2510. break
  2511. elif test -f "$ac_dir/shtool"; then
  2512. ac_aux_dir=$ac_dir
  2513. ac_install_sh="$ac_aux_dir/shtool install -c"
  2514. break
  2515. fi
  2516. done
  2517. if test -z "$ac_aux_dir"; then
  2518. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2519. fi
  2520. # These three variables are undocumented and unsupported,
  2521. # and are intended to be withdrawn in a future Autoconf release.
  2522. # They can cause serious problems if a builder's source tree is in a directory
  2523. # whose full name contains unusual characters.
  2524. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2525. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2526. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2527. # Find a good install program. We prefer a C program (faster),
  2528. # so one script is as good as another. But avoid the broken or
  2529. # incompatible versions:
  2530. # SysV /etc/install, /usr/sbin/install
  2531. # SunOS /usr/etc/install
  2532. # IRIX /sbin/install
  2533. # AIX /bin/install
  2534. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2535. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2536. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2537. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2538. # OS/2's system install, which has a completely different semantic
  2539. # ./install, which can be erroneously created by make from ./install.sh.
  2540. # Reject install programs that cannot install multiple files.
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2542. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2543. if test -z "$INSTALL"; then
  2544. if ${ac_cv_path_install+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2548. for as_dir in $PATH
  2549. do
  2550. IFS=$as_save_IFS
  2551. test -z "$as_dir" && as_dir=.
  2552. # Account for people who put trailing slashes in PATH elements.
  2553. case $as_dir/ in #((
  2554. ./ | .// | /[cC]/* | \
  2555. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2556. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2557. /usr/ucb/* ) ;;
  2558. *)
  2559. # OSF1 and SCO ODT 3.0 have their own names for install.
  2560. # Don't use installbsd from OSF since it installs stuff as root
  2561. # by default.
  2562. for ac_prog in ginstall scoinst install; do
  2563. for ac_exec_ext in '' $ac_executable_extensions; do
  2564. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2565. if test $ac_prog = install &&
  2566. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2567. # AIX install. It has an incompatible calling convention.
  2568. :
  2569. elif test $ac_prog = install &&
  2570. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2571. # program-specific install script used by HP pwplus--don't use.
  2572. :
  2573. else
  2574. rm -rf conftest.one conftest.two conftest.dir
  2575. echo one > conftest.one
  2576. echo two > conftest.two
  2577. mkdir conftest.dir
  2578. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2579. test -s conftest.one && test -s conftest.two &&
  2580. test -s conftest.dir/conftest.one &&
  2581. test -s conftest.dir/conftest.two
  2582. then
  2583. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2584. break 3
  2585. fi
  2586. fi
  2587. fi
  2588. done
  2589. done
  2590. ;;
  2591. esac
  2592. done
  2593. IFS=$as_save_IFS
  2594. rm -rf conftest.one conftest.two conftest.dir
  2595. fi
  2596. if test "${ac_cv_path_install+set}" = set; then
  2597. INSTALL=$ac_cv_path_install
  2598. else
  2599. # As a last resort, use the slow shell script. Don't cache a
  2600. # value for INSTALL within a source directory, because that will
  2601. # break other packages using the cache if that directory is
  2602. # removed, or if the value is a relative name.
  2603. INSTALL=$ac_install_sh
  2604. fi
  2605. fi
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2607. $as_echo "$INSTALL" >&6; }
  2608. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2609. # It thinks the first close brace ends the variable substitution.
  2610. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2611. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2612. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2614. $as_echo_n "checking whether build environment is sane... " >&6; }
  2615. # Just in case
  2616. sleep 1
  2617. echo timestamp > conftest.file
  2618. # Reject unsafe characters in $srcdir or the absolute working directory
  2619. # name. Accept space and tab only in the latter.
  2620. am_lf='
  2621. '
  2622. case `pwd` in
  2623. *[\\\"\#\$\&\'\`$am_lf]*)
  2624. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2625. esac
  2626. case $srcdir in
  2627. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2628. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2629. esac
  2630. # Do `set' in a subshell so we don't clobber the current shell's
  2631. # arguments. Must try -L first in case configure is actually a
  2632. # symlink; some systems play weird games with the mod time of symlinks
  2633. # (eg FreeBSD returns the mod time of the symlink's containing
  2634. # directory).
  2635. if (
  2636. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2637. if test "$*" = "X"; then
  2638. # -L didn't work.
  2639. set X `ls -t "$srcdir/configure" conftest.file`
  2640. fi
  2641. rm -f conftest.file
  2642. if test "$*" != "X $srcdir/configure conftest.file" \
  2643. && test "$*" != "X conftest.file $srcdir/configure"; then
  2644. # If neither matched, then we have a broken ls. This can happen
  2645. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2646. # broken ls alias from the environment. This has actually
  2647. # happened. Such a system could not be considered "sane".
  2648. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2649. alias in your environment" "$LINENO" 5
  2650. fi
  2651. test "$2" = conftest.file
  2652. )
  2653. then
  2654. # Ok.
  2655. :
  2656. else
  2657. as_fn_error $? "newly created file is older than distributed files!
  2658. Check your system clock" "$LINENO" 5
  2659. fi
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2661. $as_echo "yes" >&6; }
  2662. test "$program_prefix" != NONE &&
  2663. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2664. # Use a double $ so make ignores it.
  2665. test "$program_suffix" != NONE &&
  2666. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2667. # Double any \ or $.
  2668. # By default was `s,x,x', remove it if useless.
  2669. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2670. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2671. # expand $ac_aux_dir to an absolute path
  2672. am_aux_dir=`cd $ac_aux_dir && pwd`
  2673. if test x"${MISSING+set}" != xset; then
  2674. case $am_aux_dir in
  2675. *\ * | *\ *)
  2676. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2677. *)
  2678. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2679. esac
  2680. fi
  2681. # Use eval to expand $SHELL
  2682. if eval "$MISSING --run true"; then
  2683. am_missing_run="$MISSING --run "
  2684. else
  2685. am_missing_run=
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2687. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2688. fi
  2689. if test x"${install_sh}" != xset; then
  2690. case $am_aux_dir in
  2691. *\ * | *\ *)
  2692. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2693. *)
  2694. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2695. esac
  2696. fi
  2697. # Installed binaries are usually stripped using `strip' when the user
  2698. # run `make install-strip'. However `strip' might not be the right
  2699. # tool to use in cross-compilation environments, therefore Automake
  2700. # will honor the `STRIP' environment variable to overrule this program.
  2701. if test "$cross_compiling" != no; then
  2702. if test -n "$ac_tool_prefix"; then
  2703. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2704. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2706. $as_echo_n "checking for $ac_word... " >&6; }
  2707. if ${ac_cv_prog_STRIP+:} false; then :
  2708. $as_echo_n "(cached) " >&6
  2709. else
  2710. if test -n "$STRIP"; then
  2711. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2712. else
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2722. break 2
  2723. fi
  2724. done
  2725. done
  2726. IFS=$as_save_IFS
  2727. fi
  2728. fi
  2729. STRIP=$ac_cv_prog_STRIP
  2730. if test -n "$STRIP"; then
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2732. $as_echo "$STRIP" >&6; }
  2733. else
  2734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2735. $as_echo "no" >&6; }
  2736. fi
  2737. fi
  2738. if test -z "$ac_cv_prog_STRIP"; then
  2739. ac_ct_STRIP=$STRIP
  2740. # Extract the first word of "strip", so it can be a program name with args.
  2741. set dummy strip; ac_word=$2
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2743. $as_echo_n "checking for $ac_word... " >&6; }
  2744. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2745. $as_echo_n "(cached) " >&6
  2746. else
  2747. if test -n "$ac_ct_STRIP"; then
  2748. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2749. else
  2750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2751. for as_dir in $PATH
  2752. do
  2753. IFS=$as_save_IFS
  2754. test -z "$as_dir" && as_dir=.
  2755. for ac_exec_ext in '' $ac_executable_extensions; do
  2756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2757. ac_cv_prog_ac_ct_STRIP="strip"
  2758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2759. break 2
  2760. fi
  2761. done
  2762. done
  2763. IFS=$as_save_IFS
  2764. fi
  2765. fi
  2766. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2767. if test -n "$ac_ct_STRIP"; then
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2769. $as_echo "$ac_ct_STRIP" >&6; }
  2770. else
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2772. $as_echo "no" >&6; }
  2773. fi
  2774. if test "x$ac_ct_STRIP" = x; then
  2775. STRIP=":"
  2776. else
  2777. case $cross_compiling:$ac_tool_warned in
  2778. yes:)
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2781. ac_tool_warned=yes ;;
  2782. esac
  2783. STRIP=$ac_ct_STRIP
  2784. fi
  2785. else
  2786. STRIP="$ac_cv_prog_STRIP"
  2787. fi
  2788. fi
  2789. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2791. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2792. if test -z "$MKDIR_P"; then
  2793. if ${ac_cv_path_mkdir+:} false; then :
  2794. $as_echo_n "(cached) " >&6
  2795. else
  2796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2797. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2798. do
  2799. IFS=$as_save_IFS
  2800. test -z "$as_dir" && as_dir=.
  2801. for ac_prog in mkdir gmkdir; do
  2802. for ac_exec_ext in '' $ac_executable_extensions; do
  2803. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2804. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2805. 'mkdir (GNU coreutils) '* | \
  2806. 'mkdir (coreutils) '* | \
  2807. 'mkdir (fileutils) '4.1*)
  2808. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2809. break 3;;
  2810. esac
  2811. done
  2812. done
  2813. done
  2814. IFS=$as_save_IFS
  2815. fi
  2816. test -d ./--version && rmdir ./--version
  2817. if test "${ac_cv_path_mkdir+set}" = set; then
  2818. MKDIR_P="$ac_cv_path_mkdir -p"
  2819. else
  2820. # As a last resort, use the slow shell script. Don't cache a
  2821. # value for MKDIR_P within a source directory, because that will
  2822. # break other packages using the cache if that directory is
  2823. # removed, or if the value is a relative name.
  2824. MKDIR_P="$ac_install_sh -d"
  2825. fi
  2826. fi
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2828. $as_echo "$MKDIR_P" >&6; }
  2829. mkdir_p="$MKDIR_P"
  2830. case $mkdir_p in
  2831. [\\/$]* | ?:[\\/]*) ;;
  2832. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2833. esac
  2834. for ac_prog in gawk mawk nawk awk
  2835. do
  2836. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2837. set dummy $ac_prog; ac_word=$2
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2839. $as_echo_n "checking for $ac_word... " >&6; }
  2840. if ${ac_cv_prog_AWK+:} false; then :
  2841. $as_echo_n "(cached) " >&6
  2842. else
  2843. if test -n "$AWK"; then
  2844. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2845. else
  2846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2847. for as_dir in $PATH
  2848. do
  2849. IFS=$as_save_IFS
  2850. test -z "$as_dir" && as_dir=.
  2851. for ac_exec_ext in '' $ac_executable_extensions; do
  2852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2853. ac_cv_prog_AWK="$ac_prog"
  2854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2855. break 2
  2856. fi
  2857. done
  2858. done
  2859. IFS=$as_save_IFS
  2860. fi
  2861. fi
  2862. AWK=$ac_cv_prog_AWK
  2863. if test -n "$AWK"; then
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2865. $as_echo "$AWK" >&6; }
  2866. else
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2868. $as_echo "no" >&6; }
  2869. fi
  2870. test -n "$AWK" && break
  2871. done
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2873. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2874. set x ${MAKE-make}
  2875. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2876. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2877. $as_echo_n "(cached) " >&6
  2878. else
  2879. cat >conftest.make <<\_ACEOF
  2880. SHELL = /bin/sh
  2881. all:
  2882. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2883. _ACEOF
  2884. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2885. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2886. *@@@%%%=?*=@@@%%%*)
  2887. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2888. *)
  2889. eval ac_cv_prog_make_${ac_make}_set=no;;
  2890. esac
  2891. rm -f conftest.make
  2892. fi
  2893. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2895. $as_echo "yes" >&6; }
  2896. SET_MAKE=
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. SET_MAKE="MAKE=${MAKE-make}"
  2901. fi
  2902. rm -rf .tst 2>/dev/null
  2903. mkdir .tst 2>/dev/null
  2904. if test -d .tst; then
  2905. am__leading_dot=.
  2906. else
  2907. am__leading_dot=_
  2908. fi
  2909. rmdir .tst 2>/dev/null
  2910. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2911. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2912. # is not polluted with repeated "-I."
  2913. am__isrc=' -I$(srcdir)'
  2914. # test to see if srcdir already configured
  2915. if test -f $srcdir/config.status; then
  2916. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2917. fi
  2918. fi
  2919. # test whether we have cygpath
  2920. if test -z "$CYGPATH_W"; then
  2921. if (cygpath --version) >/dev/null 2>/dev/null; then
  2922. CYGPATH_W='cygpath -w'
  2923. else
  2924. CYGPATH_W=echo
  2925. fi
  2926. fi
  2927. # Define the identity of the package.
  2928. PACKAGE='dirsrv'
  2929. VERSION='1.0'
  2930. # Some tools Automake needs.
  2931. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2932. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2933. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2934. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2935. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2936. # We need awk for the "check" target. The system "awk" is bad on
  2937. # some platforms.
  2938. # Always define AMTAR for backward compatibility.
  2939. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2940. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2941. # define these for automake distdir
  2942. VERSION=$PACKAGE_VERSION
  2943. PACKAGE=$PACKAGE_TARNAME
  2944. cat >>confdefs.h <<_ACEOF
  2945. #define VERSION "$VERSION"
  2946. _ACEOF
  2947. cat >>confdefs.h <<_ACEOF
  2948. #define PACKAGE "$PACKAGE"
  2949. _ACEOF
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2951. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2952. # Check whether --enable-maintainer-mode was given.
  2953. if test "${enable_maintainer_mode+set}" = set; then :
  2954. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2955. else
  2956. USE_MAINTAINER_MODE=no
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2959. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2960. if test $USE_MAINTAINER_MODE = yes; then
  2961. MAINTAINER_MODE_TRUE=
  2962. MAINTAINER_MODE_FALSE='#'
  2963. else
  2964. MAINTAINER_MODE_TRUE='#'
  2965. MAINTAINER_MODE_FALSE=
  2966. fi
  2967. MAINT=$MAINTAINER_MODE_TRUE
  2968. # Make sure we can run config.sub.
  2969. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2970. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2972. $as_echo_n "checking build system type... " >&6; }
  2973. if ${ac_cv_build+:} false; then :
  2974. $as_echo_n "(cached) " >&6
  2975. else
  2976. ac_build_alias=$build_alias
  2977. test "x$ac_build_alias" = x &&
  2978. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2979. test "x$ac_build_alias" = x &&
  2980. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2981. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2982. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2983. fi
  2984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2985. $as_echo "$ac_cv_build" >&6; }
  2986. case $ac_cv_build in
  2987. *-*-*) ;;
  2988. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2989. esac
  2990. build=$ac_cv_build
  2991. ac_save_IFS=$IFS; IFS='-'
  2992. set x $ac_cv_build
  2993. shift
  2994. build_cpu=$1
  2995. build_vendor=$2
  2996. shift; shift
  2997. # Remember, the first character of IFS is used to create $*,
  2998. # except with old shells:
  2999. build_os=$*
  3000. IFS=$ac_save_IFS
  3001. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3003. $as_echo_n "checking host system type... " >&6; }
  3004. if ${ac_cv_host+:} false; then :
  3005. $as_echo_n "(cached) " >&6
  3006. else
  3007. if test "x$host_alias" = x; then
  3008. ac_cv_host=$ac_cv_build
  3009. else
  3010. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3011. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3012. fi
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3015. $as_echo "$ac_cv_host" >&6; }
  3016. case $ac_cv_host in
  3017. *-*-*) ;;
  3018. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3019. esac
  3020. host=$ac_cv_host
  3021. ac_save_IFS=$IFS; IFS='-'
  3022. set x $ac_cv_host
  3023. shift
  3024. host_cpu=$1
  3025. host_vendor=$2
  3026. shift; shift
  3027. # Remember, the first character of IFS is used to create $*,
  3028. # except with old shells:
  3029. host_os=$*
  3030. IFS=$ac_save_IFS
  3031. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3032. # Checks for programs.
  3033. ac_ext=cpp
  3034. ac_cpp='$CXXCPP $CPPFLAGS'
  3035. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3036. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3037. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3038. if test -z "$CXX"; then
  3039. if test -n "$CCC"; then
  3040. CXX=$CCC
  3041. else
  3042. if test -n "$ac_tool_prefix"; then
  3043. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3044. do
  3045. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3046. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if ${ac_cv_prog_CXX+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. if test -n "$CXX"; then
  3053. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3054. else
  3055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3056. for as_dir in $PATH
  3057. do
  3058. IFS=$as_save_IFS
  3059. test -z "$as_dir" && as_dir=.
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3062. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. done
  3067. done
  3068. IFS=$as_save_IFS
  3069. fi
  3070. fi
  3071. CXX=$ac_cv_prog_CXX
  3072. if test -n "$CXX"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3074. $as_echo "$CXX" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. test -n "$CXX" && break
  3080. done
  3081. fi
  3082. if test -z "$CXX"; then
  3083. ac_ct_CXX=$CXX
  3084. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3085. do
  3086. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3087. set dummy $ac_prog; ac_word=$2
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3089. $as_echo_n "checking for $ac_word... " >&6; }
  3090. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. if test -n "$ac_ct_CXX"; then
  3094. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3095. else
  3096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3097. for as_dir in $PATH
  3098. do
  3099. IFS=$as_save_IFS
  3100. test -z "$as_dir" && as_dir=.
  3101. for ac_exec_ext in '' $ac_executable_extensions; do
  3102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3103. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3105. break 2
  3106. fi
  3107. done
  3108. done
  3109. IFS=$as_save_IFS
  3110. fi
  3111. fi
  3112. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3113. if test -n "$ac_ct_CXX"; then
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3115. $as_echo "$ac_ct_CXX" >&6; }
  3116. else
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3118. $as_echo "no" >&6; }
  3119. fi
  3120. test -n "$ac_ct_CXX" && break
  3121. done
  3122. if test "x$ac_ct_CXX" = x; then
  3123. CXX="g++"
  3124. else
  3125. case $cross_compiling:$ac_tool_warned in
  3126. yes:)
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3129. ac_tool_warned=yes ;;
  3130. esac
  3131. CXX=$ac_ct_CXX
  3132. fi
  3133. fi
  3134. fi
  3135. fi
  3136. # Provide some information about the compiler.
  3137. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3138. set X $ac_compile
  3139. ac_compiler=$2
  3140. for ac_option in --version -v -V -qversion; do
  3141. { { ac_try="$ac_compiler $ac_option >&5"
  3142. case "(($ac_try" in
  3143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3144. *) ac_try_echo=$ac_try;;
  3145. esac
  3146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3147. $as_echo "$ac_try_echo"; } >&5
  3148. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3149. ac_status=$?
  3150. if test -s conftest.err; then
  3151. sed '10a\
  3152. ... rest of stderr output deleted ...
  3153. 10q' conftest.err >conftest.er1
  3154. cat conftest.er1 >&5
  3155. fi
  3156. rm -f conftest.er1 conftest.err
  3157. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3158. test $ac_status = 0; }
  3159. done
  3160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3161. /* end confdefs.h. */
  3162. int
  3163. main ()
  3164. {
  3165. ;
  3166. return 0;
  3167. }
  3168. _ACEOF
  3169. ac_clean_files_save=$ac_clean_files
  3170. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3171. # Try to create an executable without -o first, disregard a.out.
  3172. # It will help us diagnose broken compilers, and finding out an intuition
  3173. # of exeext.
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3175. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3176. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3177. # The possible output files:
  3178. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3179. ac_rmfiles=
  3180. for ac_file in $ac_files
  3181. do
  3182. case $ac_file in
  3183. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3184. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3185. esac
  3186. done
  3187. rm -f $ac_rmfiles
  3188. if { { ac_try="$ac_link_default"
  3189. case "(($ac_try" in
  3190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191. *) ac_try_echo=$ac_try;;
  3192. esac
  3193. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3194. $as_echo "$ac_try_echo"; } >&5
  3195. (eval "$ac_link_default") 2>&5
  3196. ac_status=$?
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3198. test $ac_status = 0; }; then :
  3199. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3200. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3201. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3202. # so that the user can short-circuit this test for compilers unknown to
  3203. # Autoconf.
  3204. for ac_file in $ac_files ''
  3205. do
  3206. test -f "$ac_file" || continue
  3207. case $ac_file in
  3208. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3209. ;;
  3210. [ab].out )
  3211. # We found the default executable, but exeext='' is most
  3212. # certainly right.
  3213. break;;
  3214. *.* )
  3215. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3216. then :; else
  3217. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3218. fi
  3219. # We set ac_cv_exeext here because the later test for it is not
  3220. # safe: cross compilers may not add the suffix if given an `-o'
  3221. # argument, so we may need to know it at that point already.
  3222. # Even if this section looks crufty: it has the advantage of
  3223. # actually working.
  3224. break;;
  3225. * )
  3226. break;;
  3227. esac
  3228. done
  3229. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3230. else
  3231. ac_file=''
  3232. fi
  3233. if test -z "$ac_file"; then :
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3235. $as_echo "no" >&6; }
  3236. $as_echo "$as_me: failed program was:" >&5
  3237. sed 's/^/| /' conftest.$ac_ext >&5
  3238. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3239. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3240. as_fn_error 77 "C++ compiler cannot create executables
  3241. See \`config.log' for more details" "$LINENO" 5; }
  3242. else
  3243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3244. $as_echo "yes" >&6; }
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3247. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3249. $as_echo "$ac_file" >&6; }
  3250. ac_exeext=$ac_cv_exeext
  3251. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3252. ac_clean_files=$ac_clean_files_save
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3254. $as_echo_n "checking for suffix of executables... " >&6; }
  3255. if { { ac_try="$ac_link"
  3256. case "(($ac_try" in
  3257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3258. *) ac_try_echo=$ac_try;;
  3259. esac
  3260. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3261. $as_echo "$ac_try_echo"; } >&5
  3262. (eval "$ac_link") 2>&5
  3263. ac_status=$?
  3264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3265. test $ac_status = 0; }; then :
  3266. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3267. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3268. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3269. # `rm'.
  3270. for ac_file in conftest.exe conftest conftest.*; do
  3271. test -f "$ac_file" || continue
  3272. case $ac_file in
  3273. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3274. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3275. break;;
  3276. * ) break;;
  3277. esac
  3278. done
  3279. else
  3280. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3281. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3282. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3283. See \`config.log' for more details" "$LINENO" 5; }
  3284. fi
  3285. rm -f conftest conftest$ac_cv_exeext
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3287. $as_echo "$ac_cv_exeext" >&6; }
  3288. rm -f conftest.$ac_ext
  3289. EXEEXT=$ac_cv_exeext
  3290. ac_exeext=$EXEEXT
  3291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3292. /* end confdefs.h. */
  3293. #include <stdio.h>
  3294. int
  3295. main ()
  3296. {
  3297. FILE *f = fopen ("conftest.out", "w");
  3298. return ferror (f) || fclose (f) != 0;
  3299. ;
  3300. return 0;
  3301. }
  3302. _ACEOF
  3303. ac_clean_files="$ac_clean_files conftest.out"
  3304. # Check that the compiler produces executables we can run. If not, either
  3305. # the compiler is broken, or we cross compile.
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3307. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3308. if test "$cross_compiling" != yes; then
  3309. { { ac_try="$ac_link"
  3310. case "(($ac_try" in
  3311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3312. *) ac_try_echo=$ac_try;;
  3313. esac
  3314. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3315. $as_echo "$ac_try_echo"; } >&5
  3316. (eval "$ac_link") 2>&5
  3317. ac_status=$?
  3318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3319. test $ac_status = 0; }
  3320. if { ac_try='./conftest$ac_cv_exeext'
  3321. { { case "(($ac_try" in
  3322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3323. *) ac_try_echo=$ac_try;;
  3324. esac
  3325. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3326. $as_echo "$ac_try_echo"; } >&5
  3327. (eval "$ac_try") 2>&5
  3328. ac_status=$?
  3329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3330. test $ac_status = 0; }; }; then
  3331. cross_compiling=no
  3332. else
  3333. if test "$cross_compiling" = maybe; then
  3334. cross_compiling=yes
  3335. else
  3336. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3338. as_fn_error $? "cannot run C++ compiled programs.
  3339. If you meant to cross compile, use \`--host'.
  3340. See \`config.log' for more details" "$LINENO" 5; }
  3341. fi
  3342. fi
  3343. fi
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3345. $as_echo "$cross_compiling" >&6; }
  3346. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3347. ac_clean_files=$ac_clean_files_save
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3349. $as_echo_n "checking for suffix of object files... " >&6; }
  3350. if ${ac_cv_objext+:} false; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3354. /* end confdefs.h. */
  3355. int
  3356. main ()
  3357. {
  3358. ;
  3359. return 0;
  3360. }
  3361. _ACEOF
  3362. rm -f conftest.o conftest.obj
  3363. if { { ac_try="$ac_compile"
  3364. case "(($ac_try" in
  3365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3366. *) ac_try_echo=$ac_try;;
  3367. esac
  3368. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3369. $as_echo "$ac_try_echo"; } >&5
  3370. (eval "$ac_compile") 2>&5
  3371. ac_status=$?
  3372. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3373. test $ac_status = 0; }; then :
  3374. for ac_file in conftest.o conftest.obj conftest.*; do
  3375. test -f "$ac_file" || continue;
  3376. case $ac_file in
  3377. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3378. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3379. break;;
  3380. esac
  3381. done
  3382. else
  3383. $as_echo "$as_me: failed program was:" >&5
  3384. sed 's/^/| /' conftest.$ac_ext >&5
  3385. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3387. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3388. See \`config.log' for more details" "$LINENO" 5; }
  3389. fi
  3390. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3391. fi
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3393. $as_echo "$ac_cv_objext" >&6; }
  3394. OBJEXT=$ac_cv_objext
  3395. ac_objext=$OBJEXT
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3397. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3398. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3402. /* end confdefs.h. */
  3403. int
  3404. main ()
  3405. {
  3406. #ifndef __GNUC__
  3407. choke me
  3408. #endif
  3409. ;
  3410. return 0;
  3411. }
  3412. _ACEOF
  3413. if ac_fn_cxx_try_compile "$LINENO"; then :
  3414. ac_compiler_gnu=yes
  3415. else
  3416. ac_compiler_gnu=no
  3417. fi
  3418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3419. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3420. fi
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3422. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3423. if test $ac_compiler_gnu = yes; then
  3424. GXX=yes
  3425. else
  3426. GXX=
  3427. fi
  3428. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3429. ac_save_CXXFLAGS=$CXXFLAGS
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3431. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3432. if ${ac_cv_prog_cxx_g+:} false; then :
  3433. $as_echo_n "(cached) " >&6
  3434. else
  3435. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3436. ac_cxx_werror_flag=yes
  3437. ac_cv_prog_cxx_g=no
  3438. CXXFLAGS="-g"
  3439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3440. /* end confdefs.h. */
  3441. int
  3442. main ()
  3443. {
  3444. ;
  3445. return 0;
  3446. }
  3447. _ACEOF
  3448. if ac_fn_cxx_try_compile "$LINENO"; then :
  3449. ac_cv_prog_cxx_g=yes
  3450. else
  3451. CXXFLAGS=""
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. int
  3455. main ()
  3456. {
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. if ac_fn_cxx_try_compile "$LINENO"; then :
  3462. else
  3463. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3464. CXXFLAGS="-g"
  3465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3466. /* end confdefs.h. */
  3467. int
  3468. main ()
  3469. {
  3470. ;
  3471. return 0;
  3472. }
  3473. _ACEOF
  3474. if ac_fn_cxx_try_compile "$LINENO"; then :
  3475. ac_cv_prog_cxx_g=yes
  3476. fi
  3477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3478. fi
  3479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3480. fi
  3481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3482. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3483. fi
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3485. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3486. if test "$ac_test_CXXFLAGS" = set; then
  3487. CXXFLAGS=$ac_save_CXXFLAGS
  3488. elif test $ac_cv_prog_cxx_g = yes; then
  3489. if test "$GXX" = yes; then
  3490. CXXFLAGS="-g -O2"
  3491. else
  3492. CXXFLAGS="-g"
  3493. fi
  3494. else
  3495. if test "$GXX" = yes; then
  3496. CXXFLAGS="-O2"
  3497. else
  3498. CXXFLAGS=
  3499. fi
  3500. fi
  3501. ac_ext=c
  3502. ac_cpp='$CPP $CPPFLAGS'
  3503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3506. DEPDIR="${am__leading_dot}deps"
  3507. ac_config_commands="$ac_config_commands depfiles"
  3508. am_make=${MAKE-make}
  3509. cat > confinc << 'END'
  3510. am__doit:
  3511. @echo this is the am__doit target
  3512. .PHONY: am__doit
  3513. END
  3514. # If we don't find an include directive, just comment out the code.
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3516. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3517. am__include="#"
  3518. am__quote=
  3519. _am_result=none
  3520. # First try GNU make style include.
  3521. echo "include confinc" > confmf
  3522. # Ignore all kinds of additional output from `make'.
  3523. case `$am_make -s -f confmf 2> /dev/null` in #(
  3524. *the\ am__doit\ target*)
  3525. am__include=include
  3526. am__quote=
  3527. _am_result=GNU
  3528. ;;
  3529. esac
  3530. # Now try BSD make style include.
  3531. if test "$am__include" = "#"; then
  3532. echo '.include "confinc"' > confmf
  3533. case `$am_make -s -f confmf 2> /dev/null` in #(
  3534. *the\ am__doit\ target*)
  3535. am__include=.include
  3536. am__quote="\""
  3537. _am_result=BSD
  3538. ;;
  3539. esac
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3542. $as_echo "$_am_result" >&6; }
  3543. rm -f confinc confmf
  3544. # Check whether --enable-dependency-tracking was given.
  3545. if test "${enable_dependency_tracking+set}" = set; then :
  3546. enableval=$enable_dependency_tracking;
  3547. fi
  3548. if test "x$enable_dependency_tracking" != xno; then
  3549. am_depcomp="$ac_aux_dir/depcomp"
  3550. AMDEPBACKSLASH='\'
  3551. fi
  3552. if test "x$enable_dependency_tracking" != xno; then
  3553. AMDEP_TRUE=
  3554. AMDEP_FALSE='#'
  3555. else
  3556. AMDEP_TRUE='#'
  3557. AMDEP_FALSE=
  3558. fi
  3559. depcc="$CXX" am_compiler_list=
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3561. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3562. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3563. $as_echo_n "(cached) " >&6
  3564. else
  3565. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3566. # We make a subdir and do the tests there. Otherwise we can end up
  3567. # making bogus files that we don't know about and never remove. For
  3568. # instance it was reported that on HP-UX the gcc test will end up
  3569. # making a dummy file named `D' -- because `-MD' means `put the output
  3570. # in D'.
  3571. mkdir conftest.dir
  3572. # Copy depcomp to subdir because otherwise we won't find it if we're
  3573. # using a relative directory.
  3574. cp "$am_depcomp" conftest.dir
  3575. cd conftest.dir
  3576. # We will build objects and dependencies in a subdirectory because
  3577. # it helps to detect inapplicable dependency modes. For instance
  3578. # both Tru64's cc and ICC support -MD to output dependencies as a
  3579. # side effect of compilation, but ICC will put the dependencies in
  3580. # the current directory while Tru64 will put them in the object
  3581. # directory.
  3582. mkdir sub
  3583. am_cv_CXX_dependencies_compiler_type=none
  3584. if test "$am_compiler_list" = ""; then
  3585. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3586. fi
  3587. am__universal=false
  3588. case " $depcc " in #(
  3589. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3590. esac
  3591. for depmode in $am_compiler_list; do
  3592. # Setup a source with many dependencies, because some compilers
  3593. # like to wrap large dependency lists on column 80 (with \), and
  3594. # we should not choose a depcomp mode which is confused by this.
  3595. #
  3596. # We need to recreate these files for each test, as the compiler may
  3597. # overwrite some of them when testing with obscure command lines.
  3598. # This happens at least with the AIX C compiler.
  3599. : > sub/conftest.c
  3600. for i in 1 2 3 4 5 6; do
  3601. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3602. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3603. # Solaris 8's {/usr,}/bin/sh.
  3604. touch sub/conftst$i.h
  3605. done
  3606. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3607. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3608. # mode. It turns out that the SunPro C++ compiler does not properly
  3609. # handle `-M -o', and we need to detect this. Also, some Intel
  3610. # versions had trouble with output in subdirs
  3611. am__obj=sub/conftest.${OBJEXT-o}
  3612. am__minus_obj="-o $am__obj"
  3613. case $depmode in
  3614. gcc)
  3615. # This depmode causes a compiler race in universal mode.
  3616. test "$am__universal" = false || continue
  3617. ;;
  3618. nosideeffect)
  3619. # after this tag, mechanisms are not by side-effect, so they'll
  3620. # only be used when explicitly requested
  3621. if test "x$enable_dependency_tracking" = xyes; then
  3622. continue
  3623. else
  3624. break
  3625. fi
  3626. ;;
  3627. msvisualcpp | msvcmsys)
  3628. # This compiler won't grok `-c -o', but also, the minuso test has
  3629. # not run yet. These depmodes are late enough in the game, and
  3630. # so weak that their functioning should not be impacted.
  3631. am__obj=conftest.${OBJEXT-o}
  3632. am__minus_obj=
  3633. ;;
  3634. none) break ;;
  3635. esac
  3636. if depmode=$depmode \
  3637. source=sub/conftest.c object=$am__obj \
  3638. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3639. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3640. >/dev/null 2>conftest.err &&
  3641. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3642. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3643. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3644. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3645. # icc doesn't choke on unknown options, it will just issue warnings
  3646. # or remarks (even with -Werror). So we grep stderr for any message
  3647. # that says an option was ignored or not supported.
  3648. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3649. # icc: Command line warning: ignoring option '-M'; no argument required
  3650. # The diagnosis changed in icc 8.0:
  3651. # icc: Command line remark: option '-MP' not supported
  3652. if (grep 'ignoring option' conftest.err ||
  3653. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3654. am_cv_CXX_dependencies_compiler_type=$depmode
  3655. break
  3656. fi
  3657. fi
  3658. done
  3659. cd ..
  3660. rm -rf conftest.dir
  3661. else
  3662. am_cv_CXX_dependencies_compiler_type=none
  3663. fi
  3664. fi
  3665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3666. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3667. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3668. if
  3669. test "x$enable_dependency_tracking" != xno \
  3670. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3671. am__fastdepCXX_TRUE=
  3672. am__fastdepCXX_FALSE='#'
  3673. else
  3674. am__fastdepCXX_TRUE='#'
  3675. am__fastdepCXX_FALSE=
  3676. fi
  3677. ac_ext=c
  3678. ac_cpp='$CPP $CPPFLAGS'
  3679. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3680. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3681. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3682. if test -n "$ac_tool_prefix"; then
  3683. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3684. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3686. $as_echo_n "checking for $ac_word... " >&6; }
  3687. if ${ac_cv_prog_CC+:} false; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. if test -n "$CC"; then
  3691. ac_cv_prog_CC="$CC" # Let the user override the test.
  3692. else
  3693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3694. for as_dir in $PATH
  3695. do
  3696. IFS=$as_save_IFS
  3697. test -z "$as_dir" && as_dir=.
  3698. for ac_exec_ext in '' $ac_executable_extensions; do
  3699. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3700. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3702. break 2
  3703. fi
  3704. done
  3705. done
  3706. IFS=$as_save_IFS
  3707. fi
  3708. fi
  3709. CC=$ac_cv_prog_CC
  3710. if test -n "$CC"; then
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3712. $as_echo "$CC" >&6; }
  3713. else
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3715. $as_echo "no" >&6; }
  3716. fi
  3717. fi
  3718. if test -z "$ac_cv_prog_CC"; then
  3719. ac_ct_CC=$CC
  3720. # Extract the first word of "gcc", so it can be a program name with args.
  3721. set dummy gcc; ac_word=$2
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3723. $as_echo_n "checking for $ac_word... " >&6; }
  3724. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. if test -n "$ac_ct_CC"; then
  3728. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3729. else
  3730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3731. for as_dir in $PATH
  3732. do
  3733. IFS=$as_save_IFS
  3734. test -z "$as_dir" && as_dir=.
  3735. for ac_exec_ext in '' $ac_executable_extensions; do
  3736. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3737. ac_cv_prog_ac_ct_CC="gcc"
  3738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3739. break 2
  3740. fi
  3741. done
  3742. done
  3743. IFS=$as_save_IFS
  3744. fi
  3745. fi
  3746. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3747. if test -n "$ac_ct_CC"; then
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3749. $as_echo "$ac_ct_CC" >&6; }
  3750. else
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3752. $as_echo "no" >&6; }
  3753. fi
  3754. if test "x$ac_ct_CC" = x; then
  3755. CC=""
  3756. else
  3757. case $cross_compiling:$ac_tool_warned in
  3758. yes:)
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3760. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3761. ac_tool_warned=yes ;;
  3762. esac
  3763. CC=$ac_ct_CC
  3764. fi
  3765. else
  3766. CC="$ac_cv_prog_CC"
  3767. fi
  3768. if test -z "$CC"; then
  3769. if test -n "$ac_tool_prefix"; then
  3770. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3771. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3773. $as_echo_n "checking for $ac_word... " >&6; }
  3774. if ${ac_cv_prog_CC+:} false; then :
  3775. $as_echo_n "(cached) " >&6
  3776. else
  3777. if test -n "$CC"; then
  3778. ac_cv_prog_CC="$CC" # Let the user override the test.
  3779. else
  3780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3781. for as_dir in $PATH
  3782. do
  3783. IFS=$as_save_IFS
  3784. test -z "$as_dir" && as_dir=.
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3787. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3789. break 2
  3790. fi
  3791. done
  3792. done
  3793. IFS=$as_save_IFS
  3794. fi
  3795. fi
  3796. CC=$ac_cv_prog_CC
  3797. if test -n "$CC"; then
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3799. $as_echo "$CC" >&6; }
  3800. else
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3802. $as_echo "no" >&6; }
  3803. fi
  3804. fi
  3805. fi
  3806. if test -z "$CC"; then
  3807. # Extract the first word of "cc", so it can be a program name with args.
  3808. set dummy cc; ac_word=$2
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3810. $as_echo_n "checking for $ac_word... " >&6; }
  3811. if ${ac_cv_prog_CC+:} false; then :
  3812. $as_echo_n "(cached) " >&6
  3813. else
  3814. if test -n "$CC"; then
  3815. ac_cv_prog_CC="$CC" # Let the user override the test.
  3816. else
  3817. ac_prog_rejected=no
  3818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3819. for as_dir in $PATH
  3820. do
  3821. IFS=$as_save_IFS
  3822. test -z "$as_dir" && as_dir=.
  3823. for ac_exec_ext in '' $ac_executable_extensions; do
  3824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3825. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3826. ac_prog_rejected=yes
  3827. continue
  3828. fi
  3829. ac_cv_prog_CC="cc"
  3830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3831. break 2
  3832. fi
  3833. done
  3834. done
  3835. IFS=$as_save_IFS
  3836. if test $ac_prog_rejected = yes; then
  3837. # We found a bogon in the path, so make sure we never use it.
  3838. set dummy $ac_cv_prog_CC
  3839. shift
  3840. if test $# != 0; then
  3841. # We chose a different compiler from the bogus one.
  3842. # However, it has the same basename, so the bogon will be chosen
  3843. # first if we set CC to just the basename; use the full file name.
  3844. shift
  3845. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3846. fi
  3847. fi
  3848. fi
  3849. fi
  3850. CC=$ac_cv_prog_CC
  3851. if test -n "$CC"; then
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3853. $as_echo "$CC" >&6; }
  3854. else
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3856. $as_echo "no" >&6; }
  3857. fi
  3858. fi
  3859. if test -z "$CC"; then
  3860. if test -n "$ac_tool_prefix"; then
  3861. for ac_prog in cl.exe
  3862. do
  3863. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3864. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3866. $as_echo_n "checking for $ac_word... " >&6; }
  3867. if ${ac_cv_prog_CC+:} false; then :
  3868. $as_echo_n "(cached) " >&6
  3869. else
  3870. if test -n "$CC"; then
  3871. ac_cv_prog_CC="$CC" # Let the user override the test.
  3872. else
  3873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3874. for as_dir in $PATH
  3875. do
  3876. IFS=$as_save_IFS
  3877. test -z "$as_dir" && as_dir=.
  3878. for ac_exec_ext in '' $ac_executable_extensions; do
  3879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3880. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3882. break 2
  3883. fi
  3884. done
  3885. done
  3886. IFS=$as_save_IFS
  3887. fi
  3888. fi
  3889. CC=$ac_cv_prog_CC
  3890. if test -n "$CC"; then
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3892. $as_echo "$CC" >&6; }
  3893. else
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3895. $as_echo "no" >&6; }
  3896. fi
  3897. test -n "$CC" && break
  3898. done
  3899. fi
  3900. if test -z "$CC"; then
  3901. ac_ct_CC=$CC
  3902. for ac_prog in cl.exe
  3903. do
  3904. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3905. set dummy $ac_prog; ac_word=$2
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3907. $as_echo_n "checking for $ac_word... " >&6; }
  3908. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3909. $as_echo_n "(cached) " >&6
  3910. else
  3911. if test -n "$ac_ct_CC"; then
  3912. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3913. else
  3914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3915. for as_dir in $PATH
  3916. do
  3917. IFS=$as_save_IFS
  3918. test -z "$as_dir" && as_dir=.
  3919. for ac_exec_ext in '' $ac_executable_extensions; do
  3920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3921. ac_cv_prog_ac_ct_CC="$ac_prog"
  3922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3923. break 2
  3924. fi
  3925. done
  3926. done
  3927. IFS=$as_save_IFS
  3928. fi
  3929. fi
  3930. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3931. if test -n "$ac_ct_CC"; then
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3933. $as_echo "$ac_ct_CC" >&6; }
  3934. else
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3936. $as_echo "no" >&6; }
  3937. fi
  3938. test -n "$ac_ct_CC" && break
  3939. done
  3940. if test "x$ac_ct_CC" = x; then
  3941. CC=""
  3942. else
  3943. case $cross_compiling:$ac_tool_warned in
  3944. yes:)
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3946. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3947. ac_tool_warned=yes ;;
  3948. esac
  3949. CC=$ac_ct_CC
  3950. fi
  3951. fi
  3952. fi
  3953. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3954. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3955. as_fn_error $? "no acceptable C compiler found in \$PATH
  3956. See \`config.log' for more details" "$LINENO" 5; }
  3957. # Provide some information about the compiler.
  3958. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3959. set X $ac_compile
  3960. ac_compiler=$2
  3961. for ac_option in --version -v -V -qversion; do
  3962. { { ac_try="$ac_compiler $ac_option >&5"
  3963. case "(($ac_try" in
  3964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3965. *) ac_try_echo=$ac_try;;
  3966. esac
  3967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3968. $as_echo "$ac_try_echo"; } >&5
  3969. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3970. ac_status=$?
  3971. if test -s conftest.err; then
  3972. sed '10a\
  3973. ... rest of stderr output deleted ...
  3974. 10q' conftest.err >conftest.er1
  3975. cat conftest.er1 >&5
  3976. fi
  3977. rm -f conftest.er1 conftest.err
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3979. test $ac_status = 0; }
  3980. done
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3982. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3983. if ${ac_cv_c_compiler_gnu+:} false; then :
  3984. $as_echo_n "(cached) " >&6
  3985. else
  3986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3987. /* end confdefs.h. */
  3988. int
  3989. main ()
  3990. {
  3991. #ifndef __GNUC__
  3992. choke me
  3993. #endif
  3994. ;
  3995. return 0;
  3996. }
  3997. _ACEOF
  3998. if ac_fn_c_try_compile "$LINENO"; then :
  3999. ac_compiler_gnu=yes
  4000. else
  4001. ac_compiler_gnu=no
  4002. fi
  4003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4004. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4005. fi
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4007. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4008. if test $ac_compiler_gnu = yes; then
  4009. GCC=yes
  4010. else
  4011. GCC=
  4012. fi
  4013. ac_test_CFLAGS=${CFLAGS+set}
  4014. ac_save_CFLAGS=$CFLAGS
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4016. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4017. if ${ac_cv_prog_cc_g+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. ac_save_c_werror_flag=$ac_c_werror_flag
  4021. ac_c_werror_flag=yes
  4022. ac_cv_prog_cc_g=no
  4023. CFLAGS="-g"
  4024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4025. /* end confdefs.h. */
  4026. int
  4027. main ()
  4028. {
  4029. ;
  4030. return 0;
  4031. }
  4032. _ACEOF
  4033. if ac_fn_c_try_compile "$LINENO"; then :
  4034. ac_cv_prog_cc_g=yes
  4035. else
  4036. CFLAGS=""
  4037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4038. /* end confdefs.h. */
  4039. int
  4040. main ()
  4041. {
  4042. ;
  4043. return 0;
  4044. }
  4045. _ACEOF
  4046. if ac_fn_c_try_compile "$LINENO"; then :
  4047. else
  4048. ac_c_werror_flag=$ac_save_c_werror_flag
  4049. CFLAGS="-g"
  4050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4051. /* end confdefs.h. */
  4052. int
  4053. main ()
  4054. {
  4055. ;
  4056. return 0;
  4057. }
  4058. _ACEOF
  4059. if ac_fn_c_try_compile "$LINENO"; then :
  4060. ac_cv_prog_cc_g=yes
  4061. fi
  4062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4063. fi
  4064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4065. fi
  4066. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4067. ac_c_werror_flag=$ac_save_c_werror_flag
  4068. fi
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4070. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4071. if test "$ac_test_CFLAGS" = set; then
  4072. CFLAGS=$ac_save_CFLAGS
  4073. elif test $ac_cv_prog_cc_g = yes; then
  4074. if test "$GCC" = yes; then
  4075. CFLAGS="-g -O2"
  4076. else
  4077. CFLAGS="-g"
  4078. fi
  4079. else
  4080. if test "$GCC" = yes; then
  4081. CFLAGS="-O2"
  4082. else
  4083. CFLAGS=
  4084. fi
  4085. fi
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4087. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4088. if ${ac_cv_prog_cc_c89+:} false; then :
  4089. $as_echo_n "(cached) " >&6
  4090. else
  4091. ac_cv_prog_cc_c89=no
  4092. ac_save_CC=$CC
  4093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4094. /* end confdefs.h. */
  4095. #include <stdarg.h>
  4096. #include <stdio.h>
  4097. #include <sys/types.h>
  4098. #include <sys/stat.h>
  4099. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4100. struct buf { int x; };
  4101. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4102. static char *e (p, i)
  4103. char **p;
  4104. int i;
  4105. {
  4106. return p[i];
  4107. }
  4108. static char *f (char * (*g) (char **, int), char **p, ...)
  4109. {
  4110. char *s;
  4111. va_list v;
  4112. va_start (v,p);
  4113. s = g (p, va_arg (v,int));
  4114. va_end (v);
  4115. return s;
  4116. }
  4117. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4118. function prototypes and stuff, but not '\xHH' hex character constants.
  4119. These don't provoke an error unfortunately, instead are silently treated
  4120. as 'x'. The following induces an error, until -std is added to get
  4121. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4122. array size at least. It's necessary to write '\x00'==0 to get something
  4123. that's true only with -std. */
  4124. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4125. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4126. inside strings and character constants. */
  4127. #define FOO(x) 'x'
  4128. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4129. int test (int i, double x);
  4130. struct s1 {int (*f) (int a);};
  4131. struct s2 {int (*f) (double a);};
  4132. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4133. int argc;
  4134. char **argv;
  4135. int
  4136. main ()
  4137. {
  4138. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4139. ;
  4140. return 0;
  4141. }
  4142. _ACEOF
  4143. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4144. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4145. do
  4146. CC="$ac_save_CC $ac_arg"
  4147. if ac_fn_c_try_compile "$LINENO"; then :
  4148. ac_cv_prog_cc_c89=$ac_arg
  4149. fi
  4150. rm -f core conftest.err conftest.$ac_objext
  4151. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4152. done
  4153. rm -f conftest.$ac_ext
  4154. CC=$ac_save_CC
  4155. fi
  4156. # AC_CACHE_VAL
  4157. case "x$ac_cv_prog_cc_c89" in
  4158. x)
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4160. $as_echo "none needed" >&6; } ;;
  4161. xno)
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4163. $as_echo "unsupported" >&6; } ;;
  4164. *)
  4165. CC="$CC $ac_cv_prog_cc_c89"
  4166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4167. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4168. esac
  4169. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4170. fi
  4171. ac_ext=c
  4172. ac_cpp='$CPP $CPPFLAGS'
  4173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4176. depcc="$CC" am_compiler_list=
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4178. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4179. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4180. $as_echo_n "(cached) " >&6
  4181. else
  4182. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4183. # We make a subdir and do the tests there. Otherwise we can end up
  4184. # making bogus files that we don't know about and never remove. For
  4185. # instance it was reported that on HP-UX the gcc test will end up
  4186. # making a dummy file named `D' -- because `-MD' means `put the output
  4187. # in D'.
  4188. mkdir conftest.dir
  4189. # Copy depcomp to subdir because otherwise we won't find it if we're
  4190. # using a relative directory.
  4191. cp "$am_depcomp" conftest.dir
  4192. cd conftest.dir
  4193. # We will build objects and dependencies in a subdirectory because
  4194. # it helps to detect inapplicable dependency modes. For instance
  4195. # both Tru64's cc and ICC support -MD to output dependencies as a
  4196. # side effect of compilation, but ICC will put the dependencies in
  4197. # the current directory while Tru64 will put them in the object
  4198. # directory.
  4199. mkdir sub
  4200. am_cv_CC_dependencies_compiler_type=none
  4201. if test "$am_compiler_list" = ""; then
  4202. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4203. fi
  4204. am__universal=false
  4205. case " $depcc " in #(
  4206. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4207. esac
  4208. for depmode in $am_compiler_list; do
  4209. # Setup a source with many dependencies, because some compilers
  4210. # like to wrap large dependency lists on column 80 (with \), and
  4211. # we should not choose a depcomp mode which is confused by this.
  4212. #
  4213. # We need to recreate these files for each test, as the compiler may
  4214. # overwrite some of them when testing with obscure command lines.
  4215. # This happens at least with the AIX C compiler.
  4216. : > sub/conftest.c
  4217. for i in 1 2 3 4 5 6; do
  4218. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4219. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4220. # Solaris 8's {/usr,}/bin/sh.
  4221. touch sub/conftst$i.h
  4222. done
  4223. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4224. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4225. # mode. It turns out that the SunPro C++ compiler does not properly
  4226. # handle `-M -o', and we need to detect this. Also, some Intel
  4227. # versions had trouble with output in subdirs
  4228. am__obj=sub/conftest.${OBJEXT-o}
  4229. am__minus_obj="-o $am__obj"
  4230. case $depmode in
  4231. gcc)
  4232. # This depmode causes a compiler race in universal mode.
  4233. test "$am__universal" = false || continue
  4234. ;;
  4235. nosideeffect)
  4236. # after this tag, mechanisms are not by side-effect, so they'll
  4237. # only be used when explicitly requested
  4238. if test "x$enable_dependency_tracking" = xyes; then
  4239. continue
  4240. else
  4241. break
  4242. fi
  4243. ;;
  4244. msvisualcpp | msvcmsys)
  4245. # This compiler won't grok `-c -o', but also, the minuso test has
  4246. # not run yet. These depmodes are late enough in the game, and
  4247. # so weak that their functioning should not be impacted.
  4248. am__obj=conftest.${OBJEXT-o}
  4249. am__minus_obj=
  4250. ;;
  4251. none) break ;;
  4252. esac
  4253. if depmode=$depmode \
  4254. source=sub/conftest.c object=$am__obj \
  4255. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4256. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4257. >/dev/null 2>conftest.err &&
  4258. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4259. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4260. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4261. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4262. # icc doesn't choke on unknown options, it will just issue warnings
  4263. # or remarks (even with -Werror). So we grep stderr for any message
  4264. # that says an option was ignored or not supported.
  4265. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4266. # icc: Command line warning: ignoring option '-M'; no argument required
  4267. # The diagnosis changed in icc 8.0:
  4268. # icc: Command line remark: option '-MP' not supported
  4269. if (grep 'ignoring option' conftest.err ||
  4270. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4271. am_cv_CC_dependencies_compiler_type=$depmode
  4272. break
  4273. fi
  4274. fi
  4275. done
  4276. cd ..
  4277. rm -rf conftest.dir
  4278. else
  4279. am_cv_CC_dependencies_compiler_type=none
  4280. fi
  4281. fi
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4283. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4284. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4285. if
  4286. test "x$enable_dependency_tracking" != xno \
  4287. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4288. am__fastdepCC_TRUE=
  4289. am__fastdepCC_FALSE='#'
  4290. else
  4291. am__fastdepCC_TRUE='#'
  4292. am__fastdepCC_FALSE=
  4293. fi
  4294. if test "x$CC" != xcc; then
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4296. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4297. else
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4299. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4300. fi
  4301. set dummy $CC; ac_cc=`$as_echo "$2" |
  4302. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4303. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4304. $as_echo_n "(cached) " >&6
  4305. else
  4306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4307. /* end confdefs.h. */
  4308. int
  4309. main ()
  4310. {
  4311. ;
  4312. return 0;
  4313. }
  4314. _ACEOF
  4315. # Make sure it works both with $CC and with simple cc.
  4316. # We do the test twice because some compilers refuse to overwrite an
  4317. # existing .o file with -o, though they will create one.
  4318. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4319. rm -f conftest2.*
  4320. if { { case "(($ac_try" in
  4321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4322. *) ac_try_echo=$ac_try;;
  4323. esac
  4324. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4325. $as_echo "$ac_try_echo"; } >&5
  4326. (eval "$ac_try") 2>&5
  4327. ac_status=$?
  4328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4329. test $ac_status = 0; } &&
  4330. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4332. *) ac_try_echo=$ac_try;;
  4333. esac
  4334. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4335. $as_echo "$ac_try_echo"; } >&5
  4336. (eval "$ac_try") 2>&5
  4337. ac_status=$?
  4338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4339. test $ac_status = 0; };
  4340. then
  4341. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4342. if test "x$CC" != xcc; then
  4343. # Test first that cc exists at all.
  4344. if { ac_try='cc -c conftest.$ac_ext >&5'
  4345. { { case "(($ac_try" in
  4346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4347. *) ac_try_echo=$ac_try;;
  4348. esac
  4349. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4350. $as_echo "$ac_try_echo"; } >&5
  4351. (eval "$ac_try") 2>&5
  4352. ac_status=$?
  4353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4354. test $ac_status = 0; }; }; then
  4355. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4356. rm -f conftest2.*
  4357. if { { case "(($ac_try" in
  4358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4359. *) ac_try_echo=$ac_try;;
  4360. esac
  4361. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4362. $as_echo "$ac_try_echo"; } >&5
  4363. (eval "$ac_try") 2>&5
  4364. ac_status=$?
  4365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4366. test $ac_status = 0; } &&
  4367. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4369. *) ac_try_echo=$ac_try;;
  4370. esac
  4371. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4372. $as_echo "$ac_try_echo"; } >&5
  4373. (eval "$ac_try") 2>&5
  4374. ac_status=$?
  4375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4376. test $ac_status = 0; };
  4377. then
  4378. # cc works too.
  4379. :
  4380. else
  4381. # cc exists but doesn't like -o.
  4382. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4383. fi
  4384. fi
  4385. fi
  4386. else
  4387. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4388. fi
  4389. rm -f core conftest*
  4390. fi
  4391. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4393. $as_echo "yes" >&6; }
  4394. else
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4396. $as_echo "no" >&6; }
  4397. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4398. fi
  4399. # FIXME: we rely on the cache variable name because
  4400. # there is no other way.
  4401. set dummy $CC
  4402. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4403. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4404. if test "$am_t" != yes; then
  4405. # Losing compiler, so override with the script.
  4406. # FIXME: It is wrong to rewrite CC.
  4407. # But if we don't then we get into trouble of one sort or another.
  4408. # A longer-term fix would be to have automake use am__CC in this case,
  4409. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4410. CC="$am_aux_dir/compile $CC"
  4411. fi
  4412. # By default we simply use the C compiler to build assembly code.
  4413. test "${CCAS+set}" = set || CCAS=$CC
  4414. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4415. depcc="$CCAS" am_compiler_list=
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4417. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4418. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4422. # We make a subdir and do the tests there. Otherwise we can end up
  4423. # making bogus files that we don't know about and never remove. For
  4424. # instance it was reported that on HP-UX the gcc test will end up
  4425. # making a dummy file named `D' -- because `-MD' means `put the output
  4426. # in D'.
  4427. mkdir conftest.dir
  4428. # Copy depcomp to subdir because otherwise we won't find it if we're
  4429. # using a relative directory.
  4430. cp "$am_depcomp" conftest.dir
  4431. cd conftest.dir
  4432. # We will build objects and dependencies in a subdirectory because
  4433. # it helps to detect inapplicable dependency modes. For instance
  4434. # both Tru64's cc and ICC support -MD to output dependencies as a
  4435. # side effect of compilation, but ICC will put the dependencies in
  4436. # the current directory while Tru64 will put them in the object
  4437. # directory.
  4438. mkdir sub
  4439. am_cv_CCAS_dependencies_compiler_type=none
  4440. if test "$am_compiler_list" = ""; then
  4441. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4442. fi
  4443. am__universal=false
  4444. for depmode in $am_compiler_list; do
  4445. # Setup a source with many dependencies, because some compilers
  4446. # like to wrap large dependency lists on column 80 (with \), and
  4447. # we should not choose a depcomp mode which is confused by this.
  4448. #
  4449. # We need to recreate these files for each test, as the compiler may
  4450. # overwrite some of them when testing with obscure command lines.
  4451. # This happens at least with the AIX C compiler.
  4452. : > sub/conftest.c
  4453. for i in 1 2 3 4 5 6; do
  4454. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4455. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4456. # Solaris 8's {/usr,}/bin/sh.
  4457. touch sub/conftst$i.h
  4458. done
  4459. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4460. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4461. # mode. It turns out that the SunPro C++ compiler does not properly
  4462. # handle `-M -o', and we need to detect this. Also, some Intel
  4463. # versions had trouble with output in subdirs
  4464. am__obj=sub/conftest.${OBJEXT-o}
  4465. am__minus_obj="-o $am__obj"
  4466. case $depmode in
  4467. gcc)
  4468. # This depmode causes a compiler race in universal mode.
  4469. test "$am__universal" = false || continue
  4470. ;;
  4471. nosideeffect)
  4472. # after this tag, mechanisms are not by side-effect, so they'll
  4473. # only be used when explicitly requested
  4474. if test "x$enable_dependency_tracking" = xyes; then
  4475. continue
  4476. else
  4477. break
  4478. fi
  4479. ;;
  4480. msvisualcpp | msvcmsys)
  4481. # This compiler won't grok `-c -o', but also, the minuso test has
  4482. # not run yet. These depmodes are late enough in the game, and
  4483. # so weak that their functioning should not be impacted.
  4484. am__obj=conftest.${OBJEXT-o}
  4485. am__minus_obj=
  4486. ;;
  4487. none) break ;;
  4488. esac
  4489. if depmode=$depmode \
  4490. source=sub/conftest.c object=$am__obj \
  4491. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4492. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4493. >/dev/null 2>conftest.err &&
  4494. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4495. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4496. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4497. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4498. # icc doesn't choke on unknown options, it will just issue warnings
  4499. # or remarks (even with -Werror). So we grep stderr for any message
  4500. # that says an option was ignored or not supported.
  4501. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4502. # icc: Command line warning: ignoring option '-M'; no argument required
  4503. # The diagnosis changed in icc 8.0:
  4504. # icc: Command line remark: option '-MP' not supported
  4505. if (grep 'ignoring option' conftest.err ||
  4506. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4507. am_cv_CCAS_dependencies_compiler_type=$depmode
  4508. break
  4509. fi
  4510. fi
  4511. done
  4512. cd ..
  4513. rm -rf conftest.dir
  4514. else
  4515. am_cv_CCAS_dependencies_compiler_type=none
  4516. fi
  4517. fi
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4519. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4520. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4521. if
  4522. test "x$enable_dependency_tracking" != xno \
  4523. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4524. am__fastdepCCAS_TRUE=
  4525. am__fastdepCCAS_FALSE='#'
  4526. else
  4527. am__fastdepCCAS_TRUE='#'
  4528. am__fastdepCCAS_FALSE=
  4529. fi
  4530. # disable static libs by default - we only use a couple
  4531. # Check whether --enable-static was given.
  4532. if test "${enable_static+set}" = set; then :
  4533. enableval=$enable_static; p=${PACKAGE-default}
  4534. case $enableval in
  4535. yes) enable_static=yes ;;
  4536. no) enable_static=no ;;
  4537. *)
  4538. enable_static=no
  4539. # Look at the argument we got. We use all the common list separators.
  4540. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4541. for pkg in $enableval; do
  4542. IFS="$lt_save_ifs"
  4543. if test "X$pkg" = "X$p"; then
  4544. enable_static=yes
  4545. fi
  4546. done
  4547. IFS="$lt_save_ifs"
  4548. ;;
  4549. esac
  4550. else
  4551. enable_static=no
  4552. fi
  4553. case `pwd` in
  4554. *\ * | *\ *)
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4556. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4557. esac
  4558. macro_version='2.4'
  4559. macro_revision='1.3293'
  4560. ltmain="$ac_aux_dir/ltmain.sh"
  4561. # Backslashify metacharacters that are still active within
  4562. # double-quoted strings.
  4563. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4564. # Same as above, but do not quote variable references.
  4565. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4566. # Sed substitution to delay expansion of an escaped shell variable in a
  4567. # double_quote_subst'ed string.
  4568. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4569. # Sed substitution to delay expansion of an escaped single quote.
  4570. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4571. # Sed substitution to avoid accidental globbing in evaled expressions
  4572. no_glob_subst='s/\*/\\\*/g'
  4573. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4574. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4575. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4577. $as_echo_n "checking how to print strings... " >&6; }
  4578. # Test print first, because it will be a builtin if present.
  4579. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4580. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4581. ECHO='print -r --'
  4582. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4583. ECHO='printf %s\n'
  4584. else
  4585. # Use this function as a fallback that always works.
  4586. func_fallback_echo ()
  4587. {
  4588. eval 'cat <<_LTECHO_EOF
  4589. $1
  4590. _LTECHO_EOF'
  4591. }
  4592. ECHO='func_fallback_echo'
  4593. fi
  4594. # func_echo_all arg...
  4595. # Invoke $ECHO with all args, space-separated.
  4596. func_echo_all ()
  4597. {
  4598. $ECHO ""
  4599. }
  4600. case "$ECHO" in
  4601. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4602. $as_echo "printf" >&6; } ;;
  4603. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4604. $as_echo "print -r" >&6; } ;;
  4605. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4606. $as_echo "cat" >&6; } ;;
  4607. esac
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4609. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4610. if ${ac_cv_path_SED+:} false; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4614. for ac_i in 1 2 3 4 5 6 7; do
  4615. ac_script="$ac_script$as_nl$ac_script"
  4616. done
  4617. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4618. { ac_script=; unset ac_script;}
  4619. if test -z "$SED"; then
  4620. ac_path_SED_found=false
  4621. # Loop through the user's path and test for each of PROGNAME-LIST
  4622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4623. for as_dir in $PATH
  4624. do
  4625. IFS=$as_save_IFS
  4626. test -z "$as_dir" && as_dir=.
  4627. for ac_prog in sed gsed; do
  4628. for ac_exec_ext in '' $ac_executable_extensions; do
  4629. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4630. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4631. # Check for GNU ac_path_SED and select it if it is found.
  4632. # Check for GNU $ac_path_SED
  4633. case `"$ac_path_SED" --version 2>&1` in
  4634. *GNU*)
  4635. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4636. *)
  4637. ac_count=0
  4638. $as_echo_n 0123456789 >"conftest.in"
  4639. while :
  4640. do
  4641. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4642. mv "conftest.tmp" "conftest.in"
  4643. cp "conftest.in" "conftest.nl"
  4644. $as_echo '' >> "conftest.nl"
  4645. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4646. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4647. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4648. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4649. # Best one so far, save it but keep looking for a better one
  4650. ac_cv_path_SED="$ac_path_SED"
  4651. ac_path_SED_max=$ac_count
  4652. fi
  4653. # 10*(2^10) chars as input seems more than enough
  4654. test $ac_count -gt 10 && break
  4655. done
  4656. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4657. esac
  4658. $ac_path_SED_found && break 3
  4659. done
  4660. done
  4661. done
  4662. IFS=$as_save_IFS
  4663. if test -z "$ac_cv_path_SED"; then
  4664. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4665. fi
  4666. else
  4667. ac_cv_path_SED=$SED
  4668. fi
  4669. fi
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4671. $as_echo "$ac_cv_path_SED" >&6; }
  4672. SED="$ac_cv_path_SED"
  4673. rm -f conftest.sed
  4674. test -z "$SED" && SED=sed
  4675. Xsed="$SED -e 1s/^X//"
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4677. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4678. if ${ac_cv_path_GREP+:} false; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. if test -z "$GREP"; then
  4682. ac_path_GREP_found=false
  4683. # Loop through the user's path and test for each of PROGNAME-LIST
  4684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4685. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4686. do
  4687. IFS=$as_save_IFS
  4688. test -z "$as_dir" && as_dir=.
  4689. for ac_prog in grep ggrep; do
  4690. for ac_exec_ext in '' $ac_executable_extensions; do
  4691. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4692. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4693. # Check for GNU ac_path_GREP and select it if it is found.
  4694. # Check for GNU $ac_path_GREP
  4695. case `"$ac_path_GREP" --version 2>&1` in
  4696. *GNU*)
  4697. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4698. *)
  4699. ac_count=0
  4700. $as_echo_n 0123456789 >"conftest.in"
  4701. while :
  4702. do
  4703. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4704. mv "conftest.tmp" "conftest.in"
  4705. cp "conftest.in" "conftest.nl"
  4706. $as_echo 'GREP' >> "conftest.nl"
  4707. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4708. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4709. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4710. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4711. # Best one so far, save it but keep looking for a better one
  4712. ac_cv_path_GREP="$ac_path_GREP"
  4713. ac_path_GREP_max=$ac_count
  4714. fi
  4715. # 10*(2^10) chars as input seems more than enough
  4716. test $ac_count -gt 10 && break
  4717. done
  4718. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4719. esac
  4720. $ac_path_GREP_found && break 3
  4721. done
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. if test -z "$ac_cv_path_GREP"; then
  4726. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4727. fi
  4728. else
  4729. ac_cv_path_GREP=$GREP
  4730. fi
  4731. fi
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4733. $as_echo "$ac_cv_path_GREP" >&6; }
  4734. GREP="$ac_cv_path_GREP"
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4736. $as_echo_n "checking for egrep... " >&6; }
  4737. if ${ac_cv_path_EGREP+:} false; then :
  4738. $as_echo_n "(cached) " >&6
  4739. else
  4740. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4741. then ac_cv_path_EGREP="$GREP -E"
  4742. else
  4743. if test -z "$EGREP"; then
  4744. ac_path_EGREP_found=false
  4745. # Loop through the user's path and test for each of PROGNAME-LIST
  4746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4747. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4748. do
  4749. IFS=$as_save_IFS
  4750. test -z "$as_dir" && as_dir=.
  4751. for ac_prog in egrep; do
  4752. for ac_exec_ext in '' $ac_executable_extensions; do
  4753. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4754. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4755. # Check for GNU ac_path_EGREP and select it if it is found.
  4756. # Check for GNU $ac_path_EGREP
  4757. case `"$ac_path_EGREP" --version 2>&1` in
  4758. *GNU*)
  4759. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4760. *)
  4761. ac_count=0
  4762. $as_echo_n 0123456789 >"conftest.in"
  4763. while :
  4764. do
  4765. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4766. mv "conftest.tmp" "conftest.in"
  4767. cp "conftest.in" "conftest.nl"
  4768. $as_echo 'EGREP' >> "conftest.nl"
  4769. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4770. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4771. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4772. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4773. # Best one so far, save it but keep looking for a better one
  4774. ac_cv_path_EGREP="$ac_path_EGREP"
  4775. ac_path_EGREP_max=$ac_count
  4776. fi
  4777. # 10*(2^10) chars as input seems more than enough
  4778. test $ac_count -gt 10 && break
  4779. done
  4780. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4781. esac
  4782. $ac_path_EGREP_found && break 3
  4783. done
  4784. done
  4785. done
  4786. IFS=$as_save_IFS
  4787. if test -z "$ac_cv_path_EGREP"; then
  4788. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4789. fi
  4790. else
  4791. ac_cv_path_EGREP=$EGREP
  4792. fi
  4793. fi
  4794. fi
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4796. $as_echo "$ac_cv_path_EGREP" >&6; }
  4797. EGREP="$ac_cv_path_EGREP"
  4798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4799. $as_echo_n "checking for fgrep... " >&6; }
  4800. if ${ac_cv_path_FGREP+:} false; then :
  4801. $as_echo_n "(cached) " >&6
  4802. else
  4803. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4804. then ac_cv_path_FGREP="$GREP -F"
  4805. else
  4806. if test -z "$FGREP"; then
  4807. ac_path_FGREP_found=false
  4808. # Loop through the user's path and test for each of PROGNAME-LIST
  4809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4810. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4811. do
  4812. IFS=$as_save_IFS
  4813. test -z "$as_dir" && as_dir=.
  4814. for ac_prog in fgrep; do
  4815. for ac_exec_ext in '' $ac_executable_extensions; do
  4816. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4817. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4818. # Check for GNU ac_path_FGREP and select it if it is found.
  4819. # Check for GNU $ac_path_FGREP
  4820. case `"$ac_path_FGREP" --version 2>&1` in
  4821. *GNU*)
  4822. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4823. *)
  4824. ac_count=0
  4825. $as_echo_n 0123456789 >"conftest.in"
  4826. while :
  4827. do
  4828. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4829. mv "conftest.tmp" "conftest.in"
  4830. cp "conftest.in" "conftest.nl"
  4831. $as_echo 'FGREP' >> "conftest.nl"
  4832. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4833. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4834. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4835. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4836. # Best one so far, save it but keep looking for a better one
  4837. ac_cv_path_FGREP="$ac_path_FGREP"
  4838. ac_path_FGREP_max=$ac_count
  4839. fi
  4840. # 10*(2^10) chars as input seems more than enough
  4841. test $ac_count -gt 10 && break
  4842. done
  4843. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4844. esac
  4845. $ac_path_FGREP_found && break 3
  4846. done
  4847. done
  4848. done
  4849. IFS=$as_save_IFS
  4850. if test -z "$ac_cv_path_FGREP"; then
  4851. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4852. fi
  4853. else
  4854. ac_cv_path_FGREP=$FGREP
  4855. fi
  4856. fi
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4859. $as_echo "$ac_cv_path_FGREP" >&6; }
  4860. FGREP="$ac_cv_path_FGREP"
  4861. test -z "$GREP" && GREP=grep
  4862. # Check whether --with-gnu-ld was given.
  4863. if test "${with_gnu_ld+set}" = set; then :
  4864. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4865. else
  4866. with_gnu_ld=no
  4867. fi
  4868. ac_prog=ld
  4869. if test "$GCC" = yes; then
  4870. # Check if gcc -print-prog-name=ld gives a path.
  4871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4872. $as_echo_n "checking for ld used by $CC... " >&6; }
  4873. case $host in
  4874. *-*-mingw*)
  4875. # gcc leaves a trailing carriage return which upsets mingw
  4876. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4877. *)
  4878. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4879. esac
  4880. case $ac_prog in
  4881. # Accept absolute paths.
  4882. [\\/]* | ?:[\\/]*)
  4883. re_direlt='/[^/][^/]*/\.\./'
  4884. # Canonicalize the pathname of ld
  4885. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4886. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4887. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4888. done
  4889. test -z "$LD" && LD="$ac_prog"
  4890. ;;
  4891. "")
  4892. # If it fails, then pretend we aren't using GCC.
  4893. ac_prog=ld
  4894. ;;
  4895. *)
  4896. # If it is relative, then search for the first ld in PATH.
  4897. with_gnu_ld=unknown
  4898. ;;
  4899. esac
  4900. elif test "$with_gnu_ld" = yes; then
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4902. $as_echo_n "checking for GNU ld... " >&6; }
  4903. else
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4905. $as_echo_n "checking for non-GNU ld... " >&6; }
  4906. fi
  4907. if ${lt_cv_path_LD+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. if test -z "$LD"; then
  4911. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4912. for ac_dir in $PATH; do
  4913. IFS="$lt_save_ifs"
  4914. test -z "$ac_dir" && ac_dir=.
  4915. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4916. lt_cv_path_LD="$ac_dir/$ac_prog"
  4917. # Check to see if the program is GNU ld. I'd rather use --version,
  4918. # but apparently some variants of GNU ld only accept -v.
  4919. # Break only if it was the GNU/non-GNU ld that we prefer.
  4920. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4921. *GNU* | *'with BFD'*)
  4922. test "$with_gnu_ld" != no && break
  4923. ;;
  4924. *)
  4925. test "$with_gnu_ld" != yes && break
  4926. ;;
  4927. esac
  4928. fi
  4929. done
  4930. IFS="$lt_save_ifs"
  4931. else
  4932. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4933. fi
  4934. fi
  4935. LD="$lt_cv_path_LD"
  4936. if test -n "$LD"; then
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4938. $as_echo "$LD" >&6; }
  4939. else
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4941. $as_echo "no" >&6; }
  4942. fi
  4943. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4945. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4946. if ${lt_cv_prog_gnu_ld+:} false; then :
  4947. $as_echo_n "(cached) " >&6
  4948. else
  4949. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4950. case `$LD -v 2>&1 </dev/null` in
  4951. *GNU* | *'with BFD'*)
  4952. lt_cv_prog_gnu_ld=yes
  4953. ;;
  4954. *)
  4955. lt_cv_prog_gnu_ld=no
  4956. ;;
  4957. esac
  4958. fi
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4960. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4961. with_gnu_ld=$lt_cv_prog_gnu_ld
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4963. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4964. if ${lt_cv_path_NM+:} false; then :
  4965. $as_echo_n "(cached) " >&6
  4966. else
  4967. if test -n "$NM"; then
  4968. # Let the user override the test.
  4969. lt_cv_path_NM="$NM"
  4970. else
  4971. lt_nm_to_check="${ac_tool_prefix}nm"
  4972. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4973. lt_nm_to_check="$lt_nm_to_check nm"
  4974. fi
  4975. for lt_tmp_nm in $lt_nm_to_check; do
  4976. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4977. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4978. IFS="$lt_save_ifs"
  4979. test -z "$ac_dir" && ac_dir=.
  4980. tmp_nm="$ac_dir/$lt_tmp_nm"
  4981. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4982. # Check to see if the nm accepts a BSD-compat flag.
  4983. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4984. # nm: unknown option "B" ignored
  4985. # Tru64's nm complains that /dev/null is an invalid object file
  4986. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4987. */dev/null* | *'Invalid file or object type'*)
  4988. lt_cv_path_NM="$tmp_nm -B"
  4989. break
  4990. ;;
  4991. *)
  4992. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4993. */dev/null*)
  4994. lt_cv_path_NM="$tmp_nm -p"
  4995. break
  4996. ;;
  4997. *)
  4998. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4999. continue # so that we can try to find one that supports BSD flags
  5000. ;;
  5001. esac
  5002. ;;
  5003. esac
  5004. fi
  5005. done
  5006. IFS="$lt_save_ifs"
  5007. done
  5008. : ${lt_cv_path_NM=no}
  5009. fi
  5010. fi
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5012. $as_echo "$lt_cv_path_NM" >&6; }
  5013. if test "$lt_cv_path_NM" != "no"; then
  5014. NM="$lt_cv_path_NM"
  5015. else
  5016. # Didn't find any BSD compatible name lister, look for dumpbin.
  5017. if test -n "$DUMPBIN"; then :
  5018. # Let the user override the test.
  5019. else
  5020. if test -n "$ac_tool_prefix"; then
  5021. for ac_prog in dumpbin "link -dump"
  5022. do
  5023. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5024. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5026. $as_echo_n "checking for $ac_word... " >&6; }
  5027. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. if test -n "$DUMPBIN"; then
  5031. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5032. else
  5033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5034. for as_dir in $PATH
  5035. do
  5036. IFS=$as_save_IFS
  5037. test -z "$as_dir" && as_dir=.
  5038. for ac_exec_ext in '' $ac_executable_extensions; do
  5039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5040. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5042. break 2
  5043. fi
  5044. done
  5045. done
  5046. IFS=$as_save_IFS
  5047. fi
  5048. fi
  5049. DUMPBIN=$ac_cv_prog_DUMPBIN
  5050. if test -n "$DUMPBIN"; then
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5052. $as_echo "$DUMPBIN" >&6; }
  5053. else
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5055. $as_echo "no" >&6; }
  5056. fi
  5057. test -n "$DUMPBIN" && break
  5058. done
  5059. fi
  5060. if test -z "$DUMPBIN"; then
  5061. ac_ct_DUMPBIN=$DUMPBIN
  5062. for ac_prog in dumpbin "link -dump"
  5063. do
  5064. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5065. set dummy $ac_prog; ac_word=$2
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5067. $as_echo_n "checking for $ac_word... " >&6; }
  5068. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5069. $as_echo_n "(cached) " >&6
  5070. else
  5071. if test -n "$ac_ct_DUMPBIN"; then
  5072. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5073. else
  5074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5075. for as_dir in $PATH
  5076. do
  5077. IFS=$as_save_IFS
  5078. test -z "$as_dir" && as_dir=.
  5079. for ac_exec_ext in '' $ac_executable_extensions; do
  5080. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5081. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5083. break 2
  5084. fi
  5085. done
  5086. done
  5087. IFS=$as_save_IFS
  5088. fi
  5089. fi
  5090. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5091. if test -n "$ac_ct_DUMPBIN"; then
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5093. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5094. else
  5095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5096. $as_echo "no" >&6; }
  5097. fi
  5098. test -n "$ac_ct_DUMPBIN" && break
  5099. done
  5100. if test "x$ac_ct_DUMPBIN" = x; then
  5101. DUMPBIN=":"
  5102. else
  5103. case $cross_compiling:$ac_tool_warned in
  5104. yes:)
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5106. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5107. ac_tool_warned=yes ;;
  5108. esac
  5109. DUMPBIN=$ac_ct_DUMPBIN
  5110. fi
  5111. fi
  5112. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5113. *COFF*)
  5114. DUMPBIN="$DUMPBIN -symbols"
  5115. ;;
  5116. *)
  5117. DUMPBIN=:
  5118. ;;
  5119. esac
  5120. fi
  5121. if test "$DUMPBIN" != ":"; then
  5122. NM="$DUMPBIN"
  5123. fi
  5124. fi
  5125. test -z "$NM" && NM=nm
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5127. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5128. if ${lt_cv_nm_interface+:} false; then :
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. lt_cv_nm_interface="BSD nm"
  5132. echo "int some_variable = 0;" > conftest.$ac_ext
  5133. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5134. (eval "$ac_compile" 2>conftest.err)
  5135. cat conftest.err >&5
  5136. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5137. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5138. cat conftest.err >&5
  5139. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5140. cat conftest.out >&5
  5141. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5142. lt_cv_nm_interface="MS dumpbin"
  5143. fi
  5144. rm -f conftest*
  5145. fi
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5147. $as_echo "$lt_cv_nm_interface" >&6; }
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5149. $as_echo_n "checking whether ln -s works... " >&6; }
  5150. LN_S=$as_ln_s
  5151. if test "$LN_S" = "ln -s"; then
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5153. $as_echo "yes" >&6; }
  5154. else
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5156. $as_echo "no, using $LN_S" >&6; }
  5157. fi
  5158. # find the maximum length of command line arguments
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5160. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5161. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5162. $as_echo_n "(cached) " >&6
  5163. else
  5164. i=0
  5165. teststring="ABCD"
  5166. case $build_os in
  5167. msdosdjgpp*)
  5168. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5169. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5170. # during glob expansion). Even if it were fixed, the result of this
  5171. # check would be larger than it should be.
  5172. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5173. ;;
  5174. gnu*)
  5175. # Under GNU Hurd, this test is not required because there is
  5176. # no limit to the length of command line arguments.
  5177. # Libtool will interpret -1 as no limit whatsoever
  5178. lt_cv_sys_max_cmd_len=-1;
  5179. ;;
  5180. cygwin* | mingw* | cegcc*)
  5181. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5182. # about 5 minutes as the teststring grows exponentially.
  5183. # Worse, since 9x/ME are not pre-emptively multitasking,
  5184. # you end up with a "frozen" computer, even though with patience
  5185. # the test eventually succeeds (with a max line length of 256k).
  5186. # Instead, let's just punt: use the minimum linelength reported by
  5187. # all of the supported platforms: 8192 (on NT/2K/XP).
  5188. lt_cv_sys_max_cmd_len=8192;
  5189. ;;
  5190. mint*)
  5191. # On MiNT this can take a long time and run out of memory.
  5192. lt_cv_sys_max_cmd_len=8192;
  5193. ;;
  5194. amigaos*)
  5195. # On AmigaOS with pdksh, this test takes hours, literally.
  5196. # So we just punt and use a minimum line length of 8192.
  5197. lt_cv_sys_max_cmd_len=8192;
  5198. ;;
  5199. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5200. # This has been around since 386BSD, at least. Likely further.
  5201. if test -x /sbin/sysctl; then
  5202. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5203. elif test -x /usr/sbin/sysctl; then
  5204. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5205. else
  5206. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5207. fi
  5208. # And add a safety zone
  5209. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5210. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5211. ;;
  5212. interix*)
  5213. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5214. lt_cv_sys_max_cmd_len=196608
  5215. ;;
  5216. osf*)
  5217. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5218. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5219. # nice to cause kernel panics so lets avoid the loop below.
  5220. # First set a reasonable default.
  5221. lt_cv_sys_max_cmd_len=16384
  5222. #
  5223. if test -x /sbin/sysconfig; then
  5224. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5225. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5226. esac
  5227. fi
  5228. ;;
  5229. sco3.2v5*)
  5230. lt_cv_sys_max_cmd_len=102400
  5231. ;;
  5232. sysv5* | sco5v6* | sysv4.2uw2*)
  5233. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5234. if test -n "$kargmax"; then
  5235. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5236. else
  5237. lt_cv_sys_max_cmd_len=32768
  5238. fi
  5239. ;;
  5240. *)
  5241. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5242. if test -n "$lt_cv_sys_max_cmd_len"; then
  5243. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5244. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5245. else
  5246. # Make teststring a little bigger before we do anything with it.
  5247. # a 1K string should be a reasonable start.
  5248. for i in 1 2 3 4 5 6 7 8 ; do
  5249. teststring=$teststring$teststring
  5250. done
  5251. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5252. # If test is not a shell built-in, we'll probably end up computing a
  5253. # maximum length that is only half of the actual maximum length, but
  5254. # we can't tell.
  5255. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5256. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5257. test $i != 17 # 1/2 MB should be enough
  5258. do
  5259. i=`expr $i + 1`
  5260. teststring=$teststring$teststring
  5261. done
  5262. # Only check the string length outside the loop.
  5263. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5264. teststring=
  5265. # Add a significant safety factor because C++ compilers can tack on
  5266. # massive amounts of additional arguments before passing them to the
  5267. # linker. It appears as though 1/2 is a usable value.
  5268. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5269. fi
  5270. ;;
  5271. esac
  5272. fi
  5273. if test -n $lt_cv_sys_max_cmd_len ; then
  5274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5275. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5276. else
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5278. $as_echo "none" >&6; }
  5279. fi
  5280. max_cmd_len=$lt_cv_sys_max_cmd_len
  5281. : ${CP="cp -f"}
  5282. : ${MV="mv -f"}
  5283. : ${RM="rm -f"}
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5285. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5286. # Try some XSI features
  5287. xsi_shell=no
  5288. ( _lt_dummy="a/b/c"
  5289. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5290. = c,a/b,b/c, \
  5291. && eval 'test $(( 1 + 1 )) -eq 2 \
  5292. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5293. && xsi_shell=yes
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5295. $as_echo "$xsi_shell" >&6; }
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5297. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5298. lt_shell_append=no
  5299. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5300. >/dev/null 2>&1 \
  5301. && lt_shell_append=yes
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5303. $as_echo "$lt_shell_append" >&6; }
  5304. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5305. lt_unset=unset
  5306. else
  5307. lt_unset=false
  5308. fi
  5309. # test EBCDIC or ASCII
  5310. case `echo X|tr X '\101'` in
  5311. A) # ASCII based system
  5312. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5313. lt_SP2NL='tr \040 \012'
  5314. lt_NL2SP='tr \015\012 \040\040'
  5315. ;;
  5316. *) # EBCDIC based system
  5317. lt_SP2NL='tr \100 \n'
  5318. lt_NL2SP='tr \r\n \100\100'
  5319. ;;
  5320. esac
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5322. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5323. if ${lt_cv_to_host_file_cmd+:} false; then :
  5324. $as_echo_n "(cached) " >&6
  5325. else
  5326. case $host in
  5327. *-*-mingw* )
  5328. case $build in
  5329. *-*-mingw* ) # actually msys
  5330. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5331. ;;
  5332. *-*-cygwin* )
  5333. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5334. ;;
  5335. * ) # otherwise, assume *nix
  5336. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5337. ;;
  5338. esac
  5339. ;;
  5340. *-*-cygwin* )
  5341. case $build in
  5342. *-*-mingw* ) # actually msys
  5343. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5344. ;;
  5345. *-*-cygwin* )
  5346. lt_cv_to_host_file_cmd=func_convert_file_noop
  5347. ;;
  5348. * ) # otherwise, assume *nix
  5349. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5350. ;;
  5351. esac
  5352. ;;
  5353. * ) # unhandled hosts (and "normal" native builds)
  5354. lt_cv_to_host_file_cmd=func_convert_file_noop
  5355. ;;
  5356. esac
  5357. fi
  5358. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5360. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5362. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5363. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5364. $as_echo_n "(cached) " >&6
  5365. else
  5366. #assume ordinary cross tools, or native build.
  5367. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5368. case $host in
  5369. *-*-mingw* )
  5370. case $build in
  5371. *-*-mingw* ) # actually msys
  5372. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5373. ;;
  5374. esac
  5375. ;;
  5376. esac
  5377. fi
  5378. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5380. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5382. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5383. if ${lt_cv_ld_reload_flag+:} false; then :
  5384. $as_echo_n "(cached) " >&6
  5385. else
  5386. lt_cv_ld_reload_flag='-r'
  5387. fi
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5389. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5390. reload_flag=$lt_cv_ld_reload_flag
  5391. case $reload_flag in
  5392. "" | " "*) ;;
  5393. *) reload_flag=" $reload_flag" ;;
  5394. esac
  5395. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5396. case $host_os in
  5397. cygwin* | mingw* | pw32* | cegcc*)
  5398. if test "$GCC" != yes; then
  5399. reload_cmds=false
  5400. fi
  5401. ;;
  5402. darwin*)
  5403. if test "$GCC" = yes; then
  5404. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5405. else
  5406. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5407. fi
  5408. ;;
  5409. esac
  5410. if test -n "$ac_tool_prefix"; then
  5411. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5412. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5414. $as_echo_n "checking for $ac_word... " >&6; }
  5415. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5416. $as_echo_n "(cached) " >&6
  5417. else
  5418. if test -n "$OBJDUMP"; then
  5419. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5420. else
  5421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5422. for as_dir in $PATH
  5423. do
  5424. IFS=$as_save_IFS
  5425. test -z "$as_dir" && as_dir=.
  5426. for ac_exec_ext in '' $ac_executable_extensions; do
  5427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5428. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5429. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5430. break 2
  5431. fi
  5432. done
  5433. done
  5434. IFS=$as_save_IFS
  5435. fi
  5436. fi
  5437. OBJDUMP=$ac_cv_prog_OBJDUMP
  5438. if test -n "$OBJDUMP"; then
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5440. $as_echo "$OBJDUMP" >&6; }
  5441. else
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5443. $as_echo "no" >&6; }
  5444. fi
  5445. fi
  5446. if test -z "$ac_cv_prog_OBJDUMP"; then
  5447. ac_ct_OBJDUMP=$OBJDUMP
  5448. # Extract the first word of "objdump", so it can be a program name with args.
  5449. set dummy objdump; ac_word=$2
  5450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5451. $as_echo_n "checking for $ac_word... " >&6; }
  5452. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5453. $as_echo_n "(cached) " >&6
  5454. else
  5455. if test -n "$ac_ct_OBJDUMP"; then
  5456. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5457. else
  5458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5459. for as_dir in $PATH
  5460. do
  5461. IFS=$as_save_IFS
  5462. test -z "$as_dir" && as_dir=.
  5463. for ac_exec_ext in '' $ac_executable_extensions; do
  5464. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5465. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5467. break 2
  5468. fi
  5469. done
  5470. done
  5471. IFS=$as_save_IFS
  5472. fi
  5473. fi
  5474. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5475. if test -n "$ac_ct_OBJDUMP"; then
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5477. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5478. else
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5480. $as_echo "no" >&6; }
  5481. fi
  5482. if test "x$ac_ct_OBJDUMP" = x; then
  5483. OBJDUMP="false"
  5484. else
  5485. case $cross_compiling:$ac_tool_warned in
  5486. yes:)
  5487. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5488. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5489. ac_tool_warned=yes ;;
  5490. esac
  5491. OBJDUMP=$ac_ct_OBJDUMP
  5492. fi
  5493. else
  5494. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5495. fi
  5496. test -z "$OBJDUMP" && OBJDUMP=objdump
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5498. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5499. if ${lt_cv_deplibs_check_method+:} false; then :
  5500. $as_echo_n "(cached) " >&6
  5501. else
  5502. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5503. lt_cv_file_magic_test_file=
  5504. lt_cv_deplibs_check_method='unknown'
  5505. # Need to set the preceding variable on all platforms that support
  5506. # interlibrary dependencies.
  5507. # 'none' -- dependencies not supported.
  5508. # `unknown' -- same as none, but documents that we really don't know.
  5509. # 'pass_all' -- all dependencies passed with no checks.
  5510. # 'test_compile' -- check by making test program.
  5511. # 'file_magic [[regex]]' -- check by looking for files in library path
  5512. # which responds to the $file_magic_cmd with a given extended regex.
  5513. # If you have `file' or equivalent on your system and you're not sure
  5514. # whether `pass_all' will *always* work, you probably want this one.
  5515. case $host_os in
  5516. aix[4-9]*)
  5517. lt_cv_deplibs_check_method=pass_all
  5518. ;;
  5519. beos*)
  5520. lt_cv_deplibs_check_method=pass_all
  5521. ;;
  5522. bsdi[45]*)
  5523. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5524. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5525. lt_cv_file_magic_test_file=/shlib/libc.so
  5526. ;;
  5527. cygwin*)
  5528. # func_win32_libid is a shell function defined in ltmain.sh
  5529. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5530. lt_cv_file_magic_cmd='func_win32_libid'
  5531. ;;
  5532. mingw* | pw32*)
  5533. # Base MSYS/MinGW do not provide the 'file' command needed by
  5534. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5535. # unless we find 'file', for example because we are cross-compiling.
  5536. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5537. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5538. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5539. lt_cv_file_magic_cmd='func_win32_libid'
  5540. else
  5541. # Keep this pattern in sync with the one in func_win32_libid.
  5542. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5543. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5544. fi
  5545. ;;
  5546. cegcc*)
  5547. # use the weaker test based on 'objdump'. See mingw*.
  5548. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5549. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5550. ;;
  5551. darwin* | rhapsody*)
  5552. lt_cv_deplibs_check_method=pass_all
  5553. ;;
  5554. freebsd* | dragonfly*)
  5555. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5556. case $host_cpu in
  5557. i*86 )
  5558. # Not sure whether the presence of OpenBSD here was a mistake.
  5559. # Let's accept both of them until this is cleared up.
  5560. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5561. lt_cv_file_magic_cmd=/usr/bin/file
  5562. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5563. ;;
  5564. esac
  5565. else
  5566. lt_cv_deplibs_check_method=pass_all
  5567. fi
  5568. ;;
  5569. gnu*)
  5570. lt_cv_deplibs_check_method=pass_all
  5571. ;;
  5572. haiku*)
  5573. lt_cv_deplibs_check_method=pass_all
  5574. ;;
  5575. hpux10.20* | hpux11*)
  5576. lt_cv_file_magic_cmd=/usr/bin/file
  5577. case $host_cpu in
  5578. ia64*)
  5579. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5580. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5581. ;;
  5582. hppa*64*)
  5583. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5584. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5585. ;;
  5586. *)
  5587. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5588. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5589. ;;
  5590. esac
  5591. ;;
  5592. interix[3-9]*)
  5593. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5594. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5595. ;;
  5596. irix5* | irix6* | nonstopux*)
  5597. case $LD in
  5598. *-32|*"-32 ") libmagic=32-bit;;
  5599. *-n32|*"-n32 ") libmagic=N32;;
  5600. *-64|*"-64 ") libmagic=64-bit;;
  5601. *) libmagic=never-match;;
  5602. esac
  5603. lt_cv_deplibs_check_method=pass_all
  5604. ;;
  5605. # This must be Linux ELF.
  5606. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5607. lt_cv_deplibs_check_method=pass_all
  5608. ;;
  5609. netbsd*)
  5610. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5611. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5612. else
  5613. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5614. fi
  5615. ;;
  5616. newos6*)
  5617. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5618. lt_cv_file_magic_cmd=/usr/bin/file
  5619. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5620. ;;
  5621. *nto* | *qnx*)
  5622. lt_cv_deplibs_check_method=pass_all
  5623. ;;
  5624. openbsd*)
  5625. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5626. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5627. else
  5628. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5629. fi
  5630. ;;
  5631. osf3* | osf4* | osf5*)
  5632. lt_cv_deplibs_check_method=pass_all
  5633. ;;
  5634. rdos*)
  5635. lt_cv_deplibs_check_method=pass_all
  5636. ;;
  5637. solaris*)
  5638. lt_cv_deplibs_check_method=pass_all
  5639. ;;
  5640. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5641. lt_cv_deplibs_check_method=pass_all
  5642. ;;
  5643. sysv4 | sysv4.3*)
  5644. case $host_vendor in
  5645. motorola)
  5646. 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]'
  5647. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5648. ;;
  5649. ncr)
  5650. lt_cv_deplibs_check_method=pass_all
  5651. ;;
  5652. sequent)
  5653. lt_cv_file_magic_cmd='/bin/file'
  5654. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5655. ;;
  5656. sni)
  5657. lt_cv_file_magic_cmd='/bin/file'
  5658. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5659. lt_cv_file_magic_test_file=/lib/libc.so
  5660. ;;
  5661. siemens)
  5662. lt_cv_deplibs_check_method=pass_all
  5663. ;;
  5664. pc)
  5665. lt_cv_deplibs_check_method=pass_all
  5666. ;;
  5667. esac
  5668. ;;
  5669. tpf*)
  5670. lt_cv_deplibs_check_method=pass_all
  5671. ;;
  5672. esac
  5673. fi
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5675. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5676. file_magic_glob=
  5677. want_nocaseglob=no
  5678. if test "$build" = "$host"; then
  5679. case $host_os in
  5680. mingw* | pw32*)
  5681. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5682. want_nocaseglob=yes
  5683. else
  5684. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5685. fi
  5686. ;;
  5687. esac
  5688. fi
  5689. file_magic_cmd=$lt_cv_file_magic_cmd
  5690. deplibs_check_method=$lt_cv_deplibs_check_method
  5691. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5692. if test -n "$ac_tool_prefix"; then
  5693. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5694. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5696. $as_echo_n "checking for $ac_word... " >&6; }
  5697. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. if test -n "$DLLTOOL"; then
  5701. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5702. else
  5703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704. for as_dir in $PATH
  5705. do
  5706. IFS=$as_save_IFS
  5707. test -z "$as_dir" && as_dir=.
  5708. for ac_exec_ext in '' $ac_executable_extensions; do
  5709. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5710. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5712. break 2
  5713. fi
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. fi
  5719. DLLTOOL=$ac_cv_prog_DLLTOOL
  5720. if test -n "$DLLTOOL"; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5722. $as_echo "$DLLTOOL" >&6; }
  5723. else
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5725. $as_echo "no" >&6; }
  5726. fi
  5727. fi
  5728. if test -z "$ac_cv_prog_DLLTOOL"; then
  5729. ac_ct_DLLTOOL=$DLLTOOL
  5730. # Extract the first word of "dlltool", so it can be a program name with args.
  5731. set dummy dlltool; ac_word=$2
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5733. $as_echo_n "checking for $ac_word... " >&6; }
  5734. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. if test -n "$ac_ct_DLLTOOL"; then
  5738. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5739. else
  5740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5741. for as_dir in $PATH
  5742. do
  5743. IFS=$as_save_IFS
  5744. test -z "$as_dir" && as_dir=.
  5745. for ac_exec_ext in '' $ac_executable_extensions; do
  5746. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5747. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5749. break 2
  5750. fi
  5751. done
  5752. done
  5753. IFS=$as_save_IFS
  5754. fi
  5755. fi
  5756. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5757. if test -n "$ac_ct_DLLTOOL"; then
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5759. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5760. else
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5762. $as_echo "no" >&6; }
  5763. fi
  5764. if test "x$ac_ct_DLLTOOL" = x; then
  5765. DLLTOOL="false"
  5766. else
  5767. case $cross_compiling:$ac_tool_warned in
  5768. yes:)
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5771. ac_tool_warned=yes ;;
  5772. esac
  5773. DLLTOOL=$ac_ct_DLLTOOL
  5774. fi
  5775. else
  5776. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5777. fi
  5778. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5780. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5781. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5782. $as_echo_n "(cached) " >&6
  5783. else
  5784. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5785. case $host_os in
  5786. cygwin* | mingw* | pw32* | cegcc*)
  5787. # two different shell functions defined in ltmain.sh
  5788. # decide which to use based on capabilities of $DLLTOOL
  5789. case `$DLLTOOL --help 2>&1` in
  5790. *--identify-strict*)
  5791. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5792. ;;
  5793. *)
  5794. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5795. ;;
  5796. esac
  5797. ;;
  5798. *)
  5799. # fallback: assume linklib IS sharedlib
  5800. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5801. ;;
  5802. esac
  5803. fi
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5805. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5806. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5807. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5808. if test -n "$ac_tool_prefix"; then
  5809. for ac_prog in ar
  5810. do
  5811. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5812. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5814. $as_echo_n "checking for $ac_word... " >&6; }
  5815. if ${ac_cv_prog_AR+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. if test -n "$AR"; then
  5819. ac_cv_prog_AR="$AR" # Let the user override the test.
  5820. else
  5821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5822. for as_dir in $PATH
  5823. do
  5824. IFS=$as_save_IFS
  5825. test -z "$as_dir" && as_dir=.
  5826. for ac_exec_ext in '' $ac_executable_extensions; do
  5827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5828. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5830. break 2
  5831. fi
  5832. done
  5833. done
  5834. IFS=$as_save_IFS
  5835. fi
  5836. fi
  5837. AR=$ac_cv_prog_AR
  5838. if test -n "$AR"; then
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5840. $as_echo "$AR" >&6; }
  5841. else
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. $as_echo "no" >&6; }
  5844. fi
  5845. test -n "$AR" && break
  5846. done
  5847. fi
  5848. if test -z "$AR"; then
  5849. ac_ct_AR=$AR
  5850. for ac_prog in ar
  5851. do
  5852. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5853. set dummy $ac_prog; ac_word=$2
  5854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5855. $as_echo_n "checking for $ac_word... " >&6; }
  5856. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5857. $as_echo_n "(cached) " >&6
  5858. else
  5859. if test -n "$ac_ct_AR"; then
  5860. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5861. else
  5862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5863. for as_dir in $PATH
  5864. do
  5865. IFS=$as_save_IFS
  5866. test -z "$as_dir" && as_dir=.
  5867. for ac_exec_ext in '' $ac_executable_extensions; do
  5868. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5869. ac_cv_prog_ac_ct_AR="$ac_prog"
  5870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5871. break 2
  5872. fi
  5873. done
  5874. done
  5875. IFS=$as_save_IFS
  5876. fi
  5877. fi
  5878. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5879. if test -n "$ac_ct_AR"; then
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5881. $as_echo "$ac_ct_AR" >&6; }
  5882. else
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5884. $as_echo "no" >&6; }
  5885. fi
  5886. test -n "$ac_ct_AR" && break
  5887. done
  5888. if test "x$ac_ct_AR" = x; then
  5889. AR="false"
  5890. else
  5891. case $cross_compiling:$ac_tool_warned in
  5892. yes:)
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5895. ac_tool_warned=yes ;;
  5896. esac
  5897. AR=$ac_ct_AR
  5898. fi
  5899. fi
  5900. : ${AR=ar}
  5901. : ${AR_FLAGS=cru}
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5903. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5904. if ${lt_cv_ar_at_file+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. lt_cv_ar_at_file=no
  5908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5909. /* end confdefs.h. */
  5910. int
  5911. main ()
  5912. {
  5913. ;
  5914. return 0;
  5915. }
  5916. _ACEOF
  5917. if ac_fn_c_try_compile "$LINENO"; then :
  5918. echo conftest.$ac_objext > conftest.lst
  5919. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5920. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5921. (eval $lt_ar_try) 2>&5
  5922. ac_status=$?
  5923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5924. test $ac_status = 0; }
  5925. if test "$ac_status" -eq 0; then
  5926. # Ensure the archiver fails upon bogus file names.
  5927. rm -f conftest.$ac_objext libconftest.a
  5928. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5929. (eval $lt_ar_try) 2>&5
  5930. ac_status=$?
  5931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5932. test $ac_status = 0; }
  5933. if test "$ac_status" -ne 0; then
  5934. lt_cv_ar_at_file=@
  5935. fi
  5936. fi
  5937. rm -f conftest.* libconftest.a
  5938. fi
  5939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5940. fi
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5942. $as_echo "$lt_cv_ar_at_file" >&6; }
  5943. if test "x$lt_cv_ar_at_file" = xno; then
  5944. archiver_list_spec=
  5945. else
  5946. archiver_list_spec=$lt_cv_ar_at_file
  5947. fi
  5948. if test -n "$ac_tool_prefix"; then
  5949. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5950. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5952. $as_echo_n "checking for $ac_word... " >&6; }
  5953. if ${ac_cv_prog_STRIP+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. if test -n "$STRIP"; then
  5957. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5958. else
  5959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5960. for as_dir in $PATH
  5961. do
  5962. IFS=$as_save_IFS
  5963. test -z "$as_dir" && as_dir=.
  5964. for ac_exec_ext in '' $ac_executable_extensions; do
  5965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5966. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5968. break 2
  5969. fi
  5970. done
  5971. done
  5972. IFS=$as_save_IFS
  5973. fi
  5974. fi
  5975. STRIP=$ac_cv_prog_STRIP
  5976. if test -n "$STRIP"; then
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5978. $as_echo "$STRIP" >&6; }
  5979. else
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5981. $as_echo "no" >&6; }
  5982. fi
  5983. fi
  5984. if test -z "$ac_cv_prog_STRIP"; then
  5985. ac_ct_STRIP=$STRIP
  5986. # Extract the first word of "strip", so it can be a program name with args.
  5987. set dummy strip; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$ac_ct_STRIP"; then
  5994. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6003. ac_cv_prog_ac_ct_STRIP="strip"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6013. if test -n "$ac_ct_STRIP"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6015. $as_echo "$ac_ct_STRIP" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. if test "x$ac_ct_STRIP" = x; then
  6021. STRIP=":"
  6022. else
  6023. case $cross_compiling:$ac_tool_warned in
  6024. yes:)
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6027. ac_tool_warned=yes ;;
  6028. esac
  6029. STRIP=$ac_ct_STRIP
  6030. fi
  6031. else
  6032. STRIP="$ac_cv_prog_STRIP"
  6033. fi
  6034. test -z "$STRIP" && STRIP=:
  6035. if test -n "$ac_tool_prefix"; then
  6036. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6037. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6039. $as_echo_n "checking for $ac_word... " >&6; }
  6040. if ${ac_cv_prog_RANLIB+:} false; then :
  6041. $as_echo_n "(cached) " >&6
  6042. else
  6043. if test -n "$RANLIB"; then
  6044. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6045. else
  6046. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6047. for as_dir in $PATH
  6048. do
  6049. IFS=$as_save_IFS
  6050. test -z "$as_dir" && as_dir=.
  6051. for ac_exec_ext in '' $ac_executable_extensions; do
  6052. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6053. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6054. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6055. break 2
  6056. fi
  6057. done
  6058. done
  6059. IFS=$as_save_IFS
  6060. fi
  6061. fi
  6062. RANLIB=$ac_cv_prog_RANLIB
  6063. if test -n "$RANLIB"; then
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6065. $as_echo "$RANLIB" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6068. $as_echo "no" >&6; }
  6069. fi
  6070. fi
  6071. if test -z "$ac_cv_prog_RANLIB"; then
  6072. ac_ct_RANLIB=$RANLIB
  6073. # Extract the first word of "ranlib", so it can be a program name with args.
  6074. set dummy ranlib; ac_word=$2
  6075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6076. $as_echo_n "checking for $ac_word... " >&6; }
  6077. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. if test -n "$ac_ct_RANLIB"; then
  6081. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6082. else
  6083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6084. for as_dir in $PATH
  6085. do
  6086. IFS=$as_save_IFS
  6087. test -z "$as_dir" && as_dir=.
  6088. for ac_exec_ext in '' $ac_executable_extensions; do
  6089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6090. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6092. break 2
  6093. fi
  6094. done
  6095. done
  6096. IFS=$as_save_IFS
  6097. fi
  6098. fi
  6099. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6100. if test -n "$ac_ct_RANLIB"; then
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6102. $as_echo "$ac_ct_RANLIB" >&6; }
  6103. else
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6105. $as_echo "no" >&6; }
  6106. fi
  6107. if test "x$ac_ct_RANLIB" = x; then
  6108. RANLIB=":"
  6109. else
  6110. case $cross_compiling:$ac_tool_warned in
  6111. yes:)
  6112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6113. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6114. ac_tool_warned=yes ;;
  6115. esac
  6116. RANLIB=$ac_ct_RANLIB
  6117. fi
  6118. else
  6119. RANLIB="$ac_cv_prog_RANLIB"
  6120. fi
  6121. test -z "$RANLIB" && RANLIB=:
  6122. # Determine commands to create old-style static archives.
  6123. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6124. old_postinstall_cmds='chmod 644 $oldlib'
  6125. old_postuninstall_cmds=
  6126. if test -n "$RANLIB"; then
  6127. case $host_os in
  6128. openbsd*)
  6129. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6130. ;;
  6131. *)
  6132. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6133. ;;
  6134. esac
  6135. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6136. fi
  6137. case $host_os in
  6138. darwin*)
  6139. lock_old_archive_extraction=yes ;;
  6140. *)
  6141. lock_old_archive_extraction=no ;;
  6142. esac
  6143. # If no C compiler was specified, use CC.
  6144. LTCC=${LTCC-"$CC"}
  6145. # If no C compiler flags were specified, use CFLAGS.
  6146. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6147. # Allow CC to be a program name with arguments.
  6148. compiler=$CC
  6149. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6151. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6152. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. # These are sane defaults that work on at least a few old systems.
  6156. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6157. # Character class describing NM global symbol codes.
  6158. symcode='[BCDEGRST]'
  6159. # Regexp to match symbols that can be accessed directly from C.
  6160. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6161. # Define system-specific variables.
  6162. case $host_os in
  6163. aix*)
  6164. symcode='[BCDT]'
  6165. ;;
  6166. cygwin* | mingw* | pw32* | cegcc*)
  6167. symcode='[ABCDGISTW]'
  6168. ;;
  6169. hpux*)
  6170. if test "$host_cpu" = ia64; then
  6171. symcode='[ABCDEGRST]'
  6172. fi
  6173. ;;
  6174. irix* | nonstopux*)
  6175. symcode='[BCDEGRST]'
  6176. ;;
  6177. osf*)
  6178. symcode='[BCDEGQRST]'
  6179. ;;
  6180. solaris*)
  6181. symcode='[BDRT]'
  6182. ;;
  6183. sco3.2v5*)
  6184. symcode='[DT]'
  6185. ;;
  6186. sysv4.2uw2*)
  6187. symcode='[DT]'
  6188. ;;
  6189. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6190. symcode='[ABDT]'
  6191. ;;
  6192. sysv4)
  6193. symcode='[DFNSTU]'
  6194. ;;
  6195. esac
  6196. # If we're using GNU nm, then use its standard symbol codes.
  6197. case `$NM -V 2>&1` in
  6198. *GNU* | *'with BFD'*)
  6199. symcode='[ABCDGIRSTW]' ;;
  6200. esac
  6201. # Transform an extracted symbol line into a proper C declaration.
  6202. # Some systems (esp. on ia64) link data and code symbols differently,
  6203. # so use this general approach.
  6204. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6205. # Transform an extracted symbol line into symbol name and symbol address
  6206. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6207. 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'"
  6208. # Handle CRLF in mingw tool chain
  6209. opt_cr=
  6210. case $build_os in
  6211. mingw*)
  6212. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6213. ;;
  6214. esac
  6215. # Try without a prefix underscore, then with it.
  6216. for ac_symprfx in "" "_"; do
  6217. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6218. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6219. # Write the raw and C identifiers.
  6220. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6221. # Fake it for dumpbin and say T for any non-static function
  6222. # and D for any global variable.
  6223. # Also find C++ and __fastcall symbols from MSVC++,
  6224. # which start with @ or ?.
  6225. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6226. " {last_section=section; section=\$ 3};"\
  6227. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6228. " \$ 0!~/External *\|/{next};"\
  6229. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6230. " {if(hide[section]) next};"\
  6231. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6232. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6233. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6234. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6235. " ' prfx=^$ac_symprfx"
  6236. else
  6237. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6238. fi
  6239. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6240. # Check to see that the pipe works correctly.
  6241. pipe_works=no
  6242. rm -f conftest*
  6243. cat > conftest.$ac_ext <<_LT_EOF
  6244. #ifdef __cplusplus
  6245. extern "C" {
  6246. #endif
  6247. char nm_test_var;
  6248. void nm_test_func(void);
  6249. void nm_test_func(void){}
  6250. #ifdef __cplusplus
  6251. }
  6252. #endif
  6253. int main(){nm_test_var='a';nm_test_func();return(0);}
  6254. _LT_EOF
  6255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6256. (eval $ac_compile) 2>&5
  6257. ac_status=$?
  6258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6259. test $ac_status = 0; }; then
  6260. # Now try to grab the symbols.
  6261. nlist=conftest.nm
  6262. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6263. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6264. ac_status=$?
  6265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6266. test $ac_status = 0; } && test -s "$nlist"; then
  6267. # Try sorting and uniquifying the output.
  6268. if sort "$nlist" | uniq > "$nlist"T; then
  6269. mv -f "$nlist"T "$nlist"
  6270. else
  6271. rm -f "$nlist"T
  6272. fi
  6273. # Make sure that we snagged all the symbols we need.
  6274. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6275. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6276. cat <<_LT_EOF > conftest.$ac_ext
  6277. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6278. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6279. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6280. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6281. # define LT_DLSYM_CONST
  6282. #elif defined(__osf__)
  6283. /* This system does not cope well with relocations in const data. */
  6284. # define LT_DLSYM_CONST
  6285. #else
  6286. # define LT_DLSYM_CONST const
  6287. #endif
  6288. #ifdef __cplusplus
  6289. extern "C" {
  6290. #endif
  6291. _LT_EOF
  6292. # Now generate the symbol file.
  6293. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6294. cat <<_LT_EOF >> conftest.$ac_ext
  6295. /* The mapping between symbol names and symbols. */
  6296. LT_DLSYM_CONST struct {
  6297. const char *name;
  6298. void *address;
  6299. }
  6300. lt__PROGRAM__LTX_preloaded_symbols[] =
  6301. {
  6302. { "@PROGRAM@", (void *) 0 },
  6303. _LT_EOF
  6304. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6305. cat <<\_LT_EOF >> conftest.$ac_ext
  6306. {0, (void *) 0}
  6307. };
  6308. /* This works around a problem in FreeBSD linker */
  6309. #ifdef FREEBSD_WORKAROUND
  6310. static const void *lt_preloaded_setup() {
  6311. return lt__PROGRAM__LTX_preloaded_symbols;
  6312. }
  6313. #endif
  6314. #ifdef __cplusplus
  6315. }
  6316. #endif
  6317. _LT_EOF
  6318. # Now try linking the two files.
  6319. mv conftest.$ac_objext conftstm.$ac_objext
  6320. lt_globsym_save_LIBS=$LIBS
  6321. lt_globsym_save_CFLAGS=$CFLAGS
  6322. LIBS="conftstm.$ac_objext"
  6323. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6324. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6325. (eval $ac_link) 2>&5
  6326. ac_status=$?
  6327. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6328. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6329. pipe_works=yes
  6330. fi
  6331. LIBS=$lt_globsym_save_LIBS
  6332. CFLAGS=$lt_globsym_save_CFLAGS
  6333. else
  6334. echo "cannot find nm_test_func in $nlist" >&5
  6335. fi
  6336. else
  6337. echo "cannot find nm_test_var in $nlist" >&5
  6338. fi
  6339. else
  6340. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6341. fi
  6342. else
  6343. echo "$progname: failed program was:" >&5
  6344. cat conftest.$ac_ext >&5
  6345. fi
  6346. rm -rf conftest* conftst*
  6347. # Do not use the global_symbol_pipe unless it works.
  6348. if test "$pipe_works" = yes; then
  6349. break
  6350. else
  6351. lt_cv_sys_global_symbol_pipe=
  6352. fi
  6353. done
  6354. fi
  6355. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6356. lt_cv_sys_global_symbol_to_cdecl=
  6357. fi
  6358. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6360. $as_echo "failed" >&6; }
  6361. else
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6363. $as_echo "ok" >&6; }
  6364. fi
  6365. # Response file support.
  6366. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6367. nm_file_list_spec='@'
  6368. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6369. nm_file_list_spec='@'
  6370. fi
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6372. $as_echo_n "checking for sysroot... " >&6; }
  6373. # Check whether --with-sysroot was given.
  6374. if test "${with_sysroot+set}" = set; then :
  6375. withval=$with_sysroot;
  6376. else
  6377. with_sysroot=no
  6378. fi
  6379. lt_sysroot=
  6380. case ${with_sysroot} in #(
  6381. yes)
  6382. if test "$GCC" = yes; then
  6383. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6384. fi
  6385. ;; #(
  6386. /*)
  6387. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6388. ;; #(
  6389. no|'')
  6390. ;; #(
  6391. *)
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6393. $as_echo "${with_sysroot}" >&6; }
  6394. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6395. ;;
  6396. esac
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6398. $as_echo "${lt_sysroot:-no}" >&6; }
  6399. # Check whether --enable-libtool-lock was given.
  6400. if test "${enable_libtool_lock+set}" = set; then :
  6401. enableval=$enable_libtool_lock;
  6402. fi
  6403. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6404. # Some flags need to be propagated to the compiler or linker for good
  6405. # libtool support.
  6406. case $host in
  6407. ia64-*-hpux*)
  6408. # Find out which ABI we are using.
  6409. echo 'int i;' > conftest.$ac_ext
  6410. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6411. (eval $ac_compile) 2>&5
  6412. ac_status=$?
  6413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6414. test $ac_status = 0; }; then
  6415. case `/usr/bin/file conftest.$ac_objext` in
  6416. *ELF-32*)
  6417. HPUX_IA64_MODE="32"
  6418. ;;
  6419. *ELF-64*)
  6420. HPUX_IA64_MODE="64"
  6421. ;;
  6422. esac
  6423. fi
  6424. rm -rf conftest*
  6425. ;;
  6426. *-*-irix6*)
  6427. # Find out which ABI we are using.
  6428. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6429. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6430. (eval $ac_compile) 2>&5
  6431. ac_status=$?
  6432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6433. test $ac_status = 0; }; then
  6434. if test "$lt_cv_prog_gnu_ld" = yes; then
  6435. case `/usr/bin/file conftest.$ac_objext` in
  6436. *32-bit*)
  6437. LD="${LD-ld} -melf32bsmip"
  6438. ;;
  6439. *N32*)
  6440. LD="${LD-ld} -melf32bmipn32"
  6441. ;;
  6442. *64-bit*)
  6443. LD="${LD-ld} -melf64bmip"
  6444. ;;
  6445. esac
  6446. else
  6447. case `/usr/bin/file conftest.$ac_objext` in
  6448. *32-bit*)
  6449. LD="${LD-ld} -32"
  6450. ;;
  6451. *N32*)
  6452. LD="${LD-ld} -n32"
  6453. ;;
  6454. *64-bit*)
  6455. LD="${LD-ld} -64"
  6456. ;;
  6457. esac
  6458. fi
  6459. fi
  6460. rm -rf conftest*
  6461. ;;
  6462. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6463. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6464. # Find out which ABI we are using.
  6465. echo 'int i;' > conftest.$ac_ext
  6466. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6467. (eval $ac_compile) 2>&5
  6468. ac_status=$?
  6469. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6470. test $ac_status = 0; }; then
  6471. case `/usr/bin/file conftest.o` in
  6472. *32-bit*)
  6473. case $host in
  6474. x86_64-*kfreebsd*-gnu)
  6475. LD="${LD-ld} -m elf_i386_fbsd"
  6476. ;;
  6477. x86_64-*linux*)
  6478. LD="${LD-ld} -m elf_i386"
  6479. ;;
  6480. ppc64-*linux*|powerpc64-*linux*)
  6481. LD="${LD-ld} -m elf32ppclinux"
  6482. ;;
  6483. s390x-*linux*)
  6484. LD="${LD-ld} -m elf_s390"
  6485. ;;
  6486. sparc64-*linux*)
  6487. LD="${LD-ld} -m elf32_sparc"
  6488. ;;
  6489. esac
  6490. ;;
  6491. *64-bit*)
  6492. case $host in
  6493. x86_64-*kfreebsd*-gnu)
  6494. LD="${LD-ld} -m elf_x86_64_fbsd"
  6495. ;;
  6496. x86_64-*linux*)
  6497. LD="${LD-ld} -m elf_x86_64"
  6498. ;;
  6499. ppc*-*linux*|powerpc*-*linux*)
  6500. LD="${LD-ld} -m elf64ppc"
  6501. ;;
  6502. s390*-*linux*|s390*-*tpf*)
  6503. LD="${LD-ld} -m elf64_s390"
  6504. ;;
  6505. sparc*-*linux*)
  6506. LD="${LD-ld} -m elf64_sparc"
  6507. ;;
  6508. esac
  6509. ;;
  6510. esac
  6511. fi
  6512. rm -rf conftest*
  6513. ;;
  6514. *-*-sco3.2v5*)
  6515. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6516. SAVE_CFLAGS="$CFLAGS"
  6517. CFLAGS="$CFLAGS -belf"
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6519. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6520. if ${lt_cv_cc_needs_belf+:} false; then :
  6521. $as_echo_n "(cached) " >&6
  6522. else
  6523. ac_ext=c
  6524. ac_cpp='$CPP $CPPFLAGS'
  6525. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6526. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6527. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6529. /* end confdefs.h. */
  6530. int
  6531. main ()
  6532. {
  6533. ;
  6534. return 0;
  6535. }
  6536. _ACEOF
  6537. if ac_fn_c_try_link "$LINENO"; then :
  6538. lt_cv_cc_needs_belf=yes
  6539. else
  6540. lt_cv_cc_needs_belf=no
  6541. fi
  6542. rm -f core conftest.err conftest.$ac_objext \
  6543. conftest$ac_exeext conftest.$ac_ext
  6544. ac_ext=c
  6545. ac_cpp='$CPP $CPPFLAGS'
  6546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6549. fi
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6551. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6552. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6553. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6554. CFLAGS="$SAVE_CFLAGS"
  6555. fi
  6556. ;;
  6557. sparc*-*solaris*)
  6558. # Find out which ABI we are using.
  6559. echo 'int i;' > conftest.$ac_ext
  6560. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6561. (eval $ac_compile) 2>&5
  6562. ac_status=$?
  6563. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6564. test $ac_status = 0; }; then
  6565. case `/usr/bin/file conftest.o` in
  6566. *64-bit*)
  6567. case $lt_cv_prog_gnu_ld in
  6568. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6569. *)
  6570. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6571. LD="${LD-ld} -64"
  6572. fi
  6573. ;;
  6574. esac
  6575. ;;
  6576. esac
  6577. fi
  6578. rm -rf conftest*
  6579. ;;
  6580. esac
  6581. need_locks="$enable_libtool_lock"
  6582. if test -n "$ac_tool_prefix"; then
  6583. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6584. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6586. $as_echo_n "checking for $ac_word... " >&6; }
  6587. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6588. $as_echo_n "(cached) " >&6
  6589. else
  6590. if test -n "$MANIFEST_TOOL"; then
  6591. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6592. else
  6593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6594. for as_dir in $PATH
  6595. do
  6596. IFS=$as_save_IFS
  6597. test -z "$as_dir" && as_dir=.
  6598. for ac_exec_ext in '' $ac_executable_extensions; do
  6599. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6600. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6602. break 2
  6603. fi
  6604. done
  6605. done
  6606. IFS=$as_save_IFS
  6607. fi
  6608. fi
  6609. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6610. if test -n "$MANIFEST_TOOL"; then
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6612. $as_echo "$MANIFEST_TOOL" >&6; }
  6613. else
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6615. $as_echo "no" >&6; }
  6616. fi
  6617. fi
  6618. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6619. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6620. # Extract the first word of "mt", so it can be a program name with args.
  6621. set dummy mt; ac_word=$2
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6623. $as_echo_n "checking for $ac_word... " >&6; }
  6624. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6628. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6629. else
  6630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6631. for as_dir in $PATH
  6632. do
  6633. IFS=$as_save_IFS
  6634. test -z "$as_dir" && as_dir=.
  6635. for ac_exec_ext in '' $ac_executable_extensions; do
  6636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6637. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6639. break 2
  6640. fi
  6641. done
  6642. done
  6643. IFS=$as_save_IFS
  6644. fi
  6645. fi
  6646. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6647. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6649. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6650. else
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6652. $as_echo "no" >&6; }
  6653. fi
  6654. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6655. MANIFEST_TOOL=":"
  6656. else
  6657. case $cross_compiling:$ac_tool_warned in
  6658. yes:)
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6660. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6661. ac_tool_warned=yes ;;
  6662. esac
  6663. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6664. fi
  6665. else
  6666. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6667. fi
  6668. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6670. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6671. if ${lt_cv_path_mainfest_tool+:} false; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. lt_cv_path_mainfest_tool=no
  6675. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6676. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6677. cat conftest.err >&5
  6678. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6679. lt_cv_path_mainfest_tool=yes
  6680. fi
  6681. rm -f conftest*
  6682. fi
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6684. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6685. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6686. MANIFEST_TOOL=:
  6687. fi
  6688. case $host_os in
  6689. rhapsody* | darwin*)
  6690. if test -n "$ac_tool_prefix"; then
  6691. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6692. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6694. $as_echo_n "checking for $ac_word... " >&6; }
  6695. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6696. $as_echo_n "(cached) " >&6
  6697. else
  6698. if test -n "$DSYMUTIL"; then
  6699. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6700. else
  6701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6702. for as_dir in $PATH
  6703. do
  6704. IFS=$as_save_IFS
  6705. test -z "$as_dir" && as_dir=.
  6706. for ac_exec_ext in '' $ac_executable_extensions; do
  6707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6708. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6710. break 2
  6711. fi
  6712. done
  6713. done
  6714. IFS=$as_save_IFS
  6715. fi
  6716. fi
  6717. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6718. if test -n "$DSYMUTIL"; then
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6720. $as_echo "$DSYMUTIL" >&6; }
  6721. else
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6723. $as_echo "no" >&6; }
  6724. fi
  6725. fi
  6726. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6727. ac_ct_DSYMUTIL=$DSYMUTIL
  6728. # Extract the first word of "dsymutil", so it can be a program name with args.
  6729. set dummy dsymutil; ac_word=$2
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6731. $as_echo_n "checking for $ac_word... " >&6; }
  6732. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6733. $as_echo_n "(cached) " >&6
  6734. else
  6735. if test -n "$ac_ct_DSYMUTIL"; then
  6736. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6737. else
  6738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6739. for as_dir in $PATH
  6740. do
  6741. IFS=$as_save_IFS
  6742. test -z "$as_dir" && as_dir=.
  6743. for ac_exec_ext in '' $ac_executable_extensions; do
  6744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6745. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6747. break 2
  6748. fi
  6749. done
  6750. done
  6751. IFS=$as_save_IFS
  6752. fi
  6753. fi
  6754. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6755. if test -n "$ac_ct_DSYMUTIL"; then
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6757. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6758. else
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6760. $as_echo "no" >&6; }
  6761. fi
  6762. if test "x$ac_ct_DSYMUTIL" = x; then
  6763. DSYMUTIL=":"
  6764. else
  6765. case $cross_compiling:$ac_tool_warned in
  6766. yes:)
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6769. ac_tool_warned=yes ;;
  6770. esac
  6771. DSYMUTIL=$ac_ct_DSYMUTIL
  6772. fi
  6773. else
  6774. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6775. fi
  6776. if test -n "$ac_tool_prefix"; then
  6777. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6778. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6780. $as_echo_n "checking for $ac_word... " >&6; }
  6781. if ${ac_cv_prog_NMEDIT+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. if test -n "$NMEDIT"; then
  6785. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6786. else
  6787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6788. for as_dir in $PATH
  6789. do
  6790. IFS=$as_save_IFS
  6791. test -z "$as_dir" && as_dir=.
  6792. for ac_exec_ext in '' $ac_executable_extensions; do
  6793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6794. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6796. break 2
  6797. fi
  6798. done
  6799. done
  6800. IFS=$as_save_IFS
  6801. fi
  6802. fi
  6803. NMEDIT=$ac_cv_prog_NMEDIT
  6804. if test -n "$NMEDIT"; then
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6806. $as_echo "$NMEDIT" >&6; }
  6807. else
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6809. $as_echo "no" >&6; }
  6810. fi
  6811. fi
  6812. if test -z "$ac_cv_prog_NMEDIT"; then
  6813. ac_ct_NMEDIT=$NMEDIT
  6814. # Extract the first word of "nmedit", so it can be a program name with args.
  6815. set dummy nmedit; ac_word=$2
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6817. $as_echo_n "checking for $ac_word... " >&6; }
  6818. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6819. $as_echo_n "(cached) " >&6
  6820. else
  6821. if test -n "$ac_ct_NMEDIT"; then
  6822. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6823. else
  6824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6825. for as_dir in $PATH
  6826. do
  6827. IFS=$as_save_IFS
  6828. test -z "$as_dir" && as_dir=.
  6829. for ac_exec_ext in '' $ac_executable_extensions; do
  6830. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6831. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6833. break 2
  6834. fi
  6835. done
  6836. done
  6837. IFS=$as_save_IFS
  6838. fi
  6839. fi
  6840. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6841. if test -n "$ac_ct_NMEDIT"; then
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6843. $as_echo "$ac_ct_NMEDIT" >&6; }
  6844. else
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6846. $as_echo "no" >&6; }
  6847. fi
  6848. if test "x$ac_ct_NMEDIT" = x; then
  6849. NMEDIT=":"
  6850. else
  6851. case $cross_compiling:$ac_tool_warned in
  6852. yes:)
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6855. ac_tool_warned=yes ;;
  6856. esac
  6857. NMEDIT=$ac_ct_NMEDIT
  6858. fi
  6859. else
  6860. NMEDIT="$ac_cv_prog_NMEDIT"
  6861. fi
  6862. if test -n "$ac_tool_prefix"; then
  6863. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6864. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6866. $as_echo_n "checking for $ac_word... " >&6; }
  6867. if ${ac_cv_prog_LIPO+:} false; then :
  6868. $as_echo_n "(cached) " >&6
  6869. else
  6870. if test -n "$LIPO"; then
  6871. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6872. else
  6873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6874. for as_dir in $PATH
  6875. do
  6876. IFS=$as_save_IFS
  6877. test -z "$as_dir" && as_dir=.
  6878. for ac_exec_ext in '' $ac_executable_extensions; do
  6879. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6880. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6882. break 2
  6883. fi
  6884. done
  6885. done
  6886. IFS=$as_save_IFS
  6887. fi
  6888. fi
  6889. LIPO=$ac_cv_prog_LIPO
  6890. if test -n "$LIPO"; then
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6892. $as_echo "$LIPO" >&6; }
  6893. else
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6895. $as_echo "no" >&6; }
  6896. fi
  6897. fi
  6898. if test -z "$ac_cv_prog_LIPO"; then
  6899. ac_ct_LIPO=$LIPO
  6900. # Extract the first word of "lipo", so it can be a program name with args.
  6901. set dummy lipo; ac_word=$2
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6903. $as_echo_n "checking for $ac_word... " >&6; }
  6904. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6905. $as_echo_n "(cached) " >&6
  6906. else
  6907. if test -n "$ac_ct_LIPO"; then
  6908. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6909. else
  6910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6911. for as_dir in $PATH
  6912. do
  6913. IFS=$as_save_IFS
  6914. test -z "$as_dir" && as_dir=.
  6915. for ac_exec_ext in '' $ac_executable_extensions; do
  6916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6917. ac_cv_prog_ac_ct_LIPO="lipo"
  6918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6919. break 2
  6920. fi
  6921. done
  6922. done
  6923. IFS=$as_save_IFS
  6924. fi
  6925. fi
  6926. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6927. if test -n "$ac_ct_LIPO"; then
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6929. $as_echo "$ac_ct_LIPO" >&6; }
  6930. else
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6932. $as_echo "no" >&6; }
  6933. fi
  6934. if test "x$ac_ct_LIPO" = x; then
  6935. LIPO=":"
  6936. else
  6937. case $cross_compiling:$ac_tool_warned in
  6938. yes:)
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6941. ac_tool_warned=yes ;;
  6942. esac
  6943. LIPO=$ac_ct_LIPO
  6944. fi
  6945. else
  6946. LIPO="$ac_cv_prog_LIPO"
  6947. fi
  6948. if test -n "$ac_tool_prefix"; then
  6949. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6950. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6952. $as_echo_n "checking for $ac_word... " >&6; }
  6953. if ${ac_cv_prog_OTOOL+:} false; then :
  6954. $as_echo_n "(cached) " >&6
  6955. else
  6956. if test -n "$OTOOL"; then
  6957. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6958. else
  6959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6960. for as_dir in $PATH
  6961. do
  6962. IFS=$as_save_IFS
  6963. test -z "$as_dir" && as_dir=.
  6964. for ac_exec_ext in '' $ac_executable_extensions; do
  6965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6966. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6968. break 2
  6969. fi
  6970. done
  6971. done
  6972. IFS=$as_save_IFS
  6973. fi
  6974. fi
  6975. OTOOL=$ac_cv_prog_OTOOL
  6976. if test -n "$OTOOL"; then
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6978. $as_echo "$OTOOL" >&6; }
  6979. else
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6981. $as_echo "no" >&6; }
  6982. fi
  6983. fi
  6984. if test -z "$ac_cv_prog_OTOOL"; then
  6985. ac_ct_OTOOL=$OTOOL
  6986. # Extract the first word of "otool", so it can be a program name with args.
  6987. set dummy otool; ac_word=$2
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6989. $as_echo_n "checking for $ac_word... " >&6; }
  6990. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. if test -n "$ac_ct_OTOOL"; then
  6994. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6995. else
  6996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6997. for as_dir in $PATH
  6998. do
  6999. IFS=$as_save_IFS
  7000. test -z "$as_dir" && as_dir=.
  7001. for ac_exec_ext in '' $ac_executable_extensions; do
  7002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7003. ac_cv_prog_ac_ct_OTOOL="otool"
  7004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7005. break 2
  7006. fi
  7007. done
  7008. done
  7009. IFS=$as_save_IFS
  7010. fi
  7011. fi
  7012. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7013. if test -n "$ac_ct_OTOOL"; then
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7015. $as_echo "$ac_ct_OTOOL" >&6; }
  7016. else
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7018. $as_echo "no" >&6; }
  7019. fi
  7020. if test "x$ac_ct_OTOOL" = x; then
  7021. OTOOL=":"
  7022. else
  7023. case $cross_compiling:$ac_tool_warned in
  7024. yes:)
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7026. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7027. ac_tool_warned=yes ;;
  7028. esac
  7029. OTOOL=$ac_ct_OTOOL
  7030. fi
  7031. else
  7032. OTOOL="$ac_cv_prog_OTOOL"
  7033. fi
  7034. if test -n "$ac_tool_prefix"; then
  7035. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7036. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7038. $as_echo_n "checking for $ac_word... " >&6; }
  7039. if ${ac_cv_prog_OTOOL64+:} false; then :
  7040. $as_echo_n "(cached) " >&6
  7041. else
  7042. if test -n "$OTOOL64"; then
  7043. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7044. else
  7045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7046. for as_dir in $PATH
  7047. do
  7048. IFS=$as_save_IFS
  7049. test -z "$as_dir" && as_dir=.
  7050. for ac_exec_ext in '' $ac_executable_extensions; do
  7051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7052. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7054. break 2
  7055. fi
  7056. done
  7057. done
  7058. IFS=$as_save_IFS
  7059. fi
  7060. fi
  7061. OTOOL64=$ac_cv_prog_OTOOL64
  7062. if test -n "$OTOOL64"; then
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7064. $as_echo "$OTOOL64" >&6; }
  7065. else
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7067. $as_echo "no" >&6; }
  7068. fi
  7069. fi
  7070. if test -z "$ac_cv_prog_OTOOL64"; then
  7071. ac_ct_OTOOL64=$OTOOL64
  7072. # Extract the first word of "otool64", so it can be a program name with args.
  7073. set dummy otool64; ac_word=$2
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7075. $as_echo_n "checking for $ac_word... " >&6; }
  7076. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7077. $as_echo_n "(cached) " >&6
  7078. else
  7079. if test -n "$ac_ct_OTOOL64"; then
  7080. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7081. else
  7082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7083. for as_dir in $PATH
  7084. do
  7085. IFS=$as_save_IFS
  7086. test -z "$as_dir" && as_dir=.
  7087. for ac_exec_ext in '' $ac_executable_extensions; do
  7088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7089. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7091. break 2
  7092. fi
  7093. done
  7094. done
  7095. IFS=$as_save_IFS
  7096. fi
  7097. fi
  7098. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7099. if test -n "$ac_ct_OTOOL64"; then
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7101. $as_echo "$ac_ct_OTOOL64" >&6; }
  7102. else
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7104. $as_echo "no" >&6; }
  7105. fi
  7106. if test "x$ac_ct_OTOOL64" = x; then
  7107. OTOOL64=":"
  7108. else
  7109. case $cross_compiling:$ac_tool_warned in
  7110. yes:)
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7113. ac_tool_warned=yes ;;
  7114. esac
  7115. OTOOL64=$ac_ct_OTOOL64
  7116. fi
  7117. else
  7118. OTOOL64="$ac_cv_prog_OTOOL64"
  7119. fi
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7121. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7122. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. lt_cv_apple_cc_single_mod=no
  7126. if test -z "${LT_MULTI_MODULE}"; then
  7127. # By default we will add the -single_module flag. You can override
  7128. # by either setting the environment variable LT_MULTI_MODULE
  7129. # non-empty at configure time, or by adding -multi_module to the
  7130. # link flags.
  7131. rm -rf libconftest.dylib*
  7132. echo "int foo(void){return 1;}" > conftest.c
  7133. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7134. -dynamiclib -Wl,-single_module conftest.c" >&5
  7135. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7136. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7137. _lt_result=$?
  7138. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7139. lt_cv_apple_cc_single_mod=yes
  7140. else
  7141. cat conftest.err >&5
  7142. fi
  7143. rm -rf libconftest.dylib*
  7144. rm -f conftest.*
  7145. fi
  7146. fi
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7148. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7150. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7151. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7152. $as_echo_n "(cached) " >&6
  7153. else
  7154. lt_cv_ld_exported_symbols_list=no
  7155. save_LDFLAGS=$LDFLAGS
  7156. echo "_main" > conftest.sym
  7157. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7159. /* end confdefs.h. */
  7160. int
  7161. main ()
  7162. {
  7163. ;
  7164. return 0;
  7165. }
  7166. _ACEOF
  7167. if ac_fn_c_try_link "$LINENO"; then :
  7168. lt_cv_ld_exported_symbols_list=yes
  7169. else
  7170. lt_cv_ld_exported_symbols_list=no
  7171. fi
  7172. rm -f core conftest.err conftest.$ac_objext \
  7173. conftest$ac_exeext conftest.$ac_ext
  7174. LDFLAGS="$save_LDFLAGS"
  7175. fi
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7177. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7179. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7180. if ${lt_cv_ld_force_load+:} false; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. lt_cv_ld_force_load=no
  7184. cat > conftest.c << _LT_EOF
  7185. int forced_loaded() { return 2;}
  7186. _LT_EOF
  7187. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7188. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7189. echo "$AR cru libconftest.a conftest.o" >&5
  7190. $AR cru libconftest.a conftest.o 2>&5
  7191. echo "$RANLIB libconftest.a" >&5
  7192. $RANLIB libconftest.a 2>&5
  7193. cat > conftest.c << _LT_EOF
  7194. int main() { return 0;}
  7195. _LT_EOF
  7196. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7197. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7198. _lt_result=$?
  7199. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7200. lt_cv_ld_force_load=yes
  7201. else
  7202. cat conftest.err >&5
  7203. fi
  7204. rm -f conftest.err libconftest.a conftest conftest.c
  7205. rm -rf conftest.dSYM
  7206. fi
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7208. $as_echo "$lt_cv_ld_force_load" >&6; }
  7209. case $host_os in
  7210. rhapsody* | darwin1.[012])
  7211. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7212. darwin1.*)
  7213. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7214. darwin*) # darwin 5.x on
  7215. # if running on 10.5 or later, the deployment target defaults
  7216. # to the OS version, if on x86, and 10.4, the deployment
  7217. # target defaults to 10.4. Don't you love it?
  7218. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7219. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7220. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7221. 10.[012]*)
  7222. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7223. 10.*)
  7224. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7225. esac
  7226. ;;
  7227. esac
  7228. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7229. _lt_dar_single_mod='$single_module'
  7230. fi
  7231. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7232. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7233. else
  7234. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7235. fi
  7236. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7237. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7238. else
  7239. _lt_dsymutil=
  7240. fi
  7241. ;;
  7242. esac
  7243. ac_ext=c
  7244. ac_cpp='$CPP $CPPFLAGS'
  7245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7249. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7250. # On Suns, sometimes $CPP names a directory.
  7251. if test -n "$CPP" && test -d "$CPP"; then
  7252. CPP=
  7253. fi
  7254. if test -z "$CPP"; then
  7255. if ${ac_cv_prog_CPP+:} false; then :
  7256. $as_echo_n "(cached) " >&6
  7257. else
  7258. # Double quotes because CPP needs to be expanded
  7259. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7260. do
  7261. ac_preproc_ok=false
  7262. for ac_c_preproc_warn_flag in '' yes
  7263. do
  7264. # Use a header file that comes with gcc, so configuring glibc
  7265. # with a fresh cross-compiler works.
  7266. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7267. # <limits.h> exists even on freestanding compilers.
  7268. # On the NeXT, cc -E runs the code through the compiler's parser,
  7269. # not just through cpp. "Syntax error" is here to catch this case.
  7270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7271. /* end confdefs.h. */
  7272. #ifdef __STDC__
  7273. # include <limits.h>
  7274. #else
  7275. # include <assert.h>
  7276. #endif
  7277. Syntax error
  7278. _ACEOF
  7279. if ac_fn_c_try_cpp "$LINENO"; then :
  7280. else
  7281. # Broken: fails on valid input.
  7282. continue
  7283. fi
  7284. rm -f conftest.err conftest.i conftest.$ac_ext
  7285. # OK, works on sane cases. Now check whether nonexistent headers
  7286. # can be detected and how.
  7287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7288. /* end confdefs.h. */
  7289. #include <ac_nonexistent.h>
  7290. _ACEOF
  7291. if ac_fn_c_try_cpp "$LINENO"; then :
  7292. # Broken: success on invalid input.
  7293. continue
  7294. else
  7295. # Passes both tests.
  7296. ac_preproc_ok=:
  7297. break
  7298. fi
  7299. rm -f conftest.err conftest.i conftest.$ac_ext
  7300. done
  7301. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7302. rm -f conftest.i conftest.err conftest.$ac_ext
  7303. if $ac_preproc_ok; then :
  7304. break
  7305. fi
  7306. done
  7307. ac_cv_prog_CPP=$CPP
  7308. fi
  7309. CPP=$ac_cv_prog_CPP
  7310. else
  7311. ac_cv_prog_CPP=$CPP
  7312. fi
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7314. $as_echo "$CPP" >&6; }
  7315. ac_preproc_ok=false
  7316. for ac_c_preproc_warn_flag in '' yes
  7317. do
  7318. # Use a header file that comes with gcc, so configuring glibc
  7319. # with a fresh cross-compiler works.
  7320. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7321. # <limits.h> exists even on freestanding compilers.
  7322. # On the NeXT, cc -E runs the code through the compiler's parser,
  7323. # not just through cpp. "Syntax error" is here to catch this case.
  7324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7325. /* end confdefs.h. */
  7326. #ifdef __STDC__
  7327. # include <limits.h>
  7328. #else
  7329. # include <assert.h>
  7330. #endif
  7331. Syntax error
  7332. _ACEOF
  7333. if ac_fn_c_try_cpp "$LINENO"; then :
  7334. else
  7335. # Broken: fails on valid input.
  7336. continue
  7337. fi
  7338. rm -f conftest.err conftest.i conftest.$ac_ext
  7339. # OK, works on sane cases. Now check whether nonexistent headers
  7340. # can be detected and how.
  7341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7342. /* end confdefs.h. */
  7343. #include <ac_nonexistent.h>
  7344. _ACEOF
  7345. if ac_fn_c_try_cpp "$LINENO"; then :
  7346. # Broken: success on invalid input.
  7347. continue
  7348. else
  7349. # Passes both tests.
  7350. ac_preproc_ok=:
  7351. break
  7352. fi
  7353. rm -f conftest.err conftest.i conftest.$ac_ext
  7354. done
  7355. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7356. rm -f conftest.i conftest.err conftest.$ac_ext
  7357. if $ac_preproc_ok; then :
  7358. else
  7359. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7360. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7361. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7362. See \`config.log' for more details" "$LINENO" 5; }
  7363. fi
  7364. ac_ext=c
  7365. ac_cpp='$CPP $CPPFLAGS'
  7366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7370. $as_echo_n "checking for ANSI C header files... " >&6; }
  7371. if ${ac_cv_header_stdc+:} false; then :
  7372. $as_echo_n "(cached) " >&6
  7373. else
  7374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7375. /* end confdefs.h. */
  7376. #include <stdlib.h>
  7377. #include <stdarg.h>
  7378. #include <string.h>
  7379. #include <float.h>
  7380. int
  7381. main ()
  7382. {
  7383. ;
  7384. return 0;
  7385. }
  7386. _ACEOF
  7387. if ac_fn_c_try_compile "$LINENO"; then :
  7388. ac_cv_header_stdc=yes
  7389. else
  7390. ac_cv_header_stdc=no
  7391. fi
  7392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7393. if test $ac_cv_header_stdc = yes; then
  7394. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7396. /* end confdefs.h. */
  7397. #include <string.h>
  7398. _ACEOF
  7399. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7400. $EGREP "memchr" >/dev/null 2>&1; then :
  7401. else
  7402. ac_cv_header_stdc=no
  7403. fi
  7404. rm -f conftest*
  7405. fi
  7406. if test $ac_cv_header_stdc = yes; then
  7407. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7409. /* end confdefs.h. */
  7410. #include <stdlib.h>
  7411. _ACEOF
  7412. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7413. $EGREP "free" >/dev/null 2>&1; then :
  7414. else
  7415. ac_cv_header_stdc=no
  7416. fi
  7417. rm -f conftest*
  7418. fi
  7419. if test $ac_cv_header_stdc = yes; then
  7420. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7421. if test "$cross_compiling" = yes; then :
  7422. :
  7423. else
  7424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7425. /* end confdefs.h. */
  7426. #include <ctype.h>
  7427. #include <stdlib.h>
  7428. #if ((' ' & 0x0FF) == 0x020)
  7429. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7430. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7431. #else
  7432. # define ISLOWER(c) \
  7433. (('a' <= (c) && (c) <= 'i') \
  7434. || ('j' <= (c) && (c) <= 'r') \
  7435. || ('s' <= (c) && (c) <= 'z'))
  7436. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7437. #endif
  7438. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7439. int
  7440. main ()
  7441. {
  7442. int i;
  7443. for (i = 0; i < 256; i++)
  7444. if (XOR (islower (i), ISLOWER (i))
  7445. || toupper (i) != TOUPPER (i))
  7446. return 2;
  7447. return 0;
  7448. }
  7449. _ACEOF
  7450. if ac_fn_c_try_run "$LINENO"; then :
  7451. else
  7452. ac_cv_header_stdc=no
  7453. fi
  7454. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7455. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7456. fi
  7457. fi
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7460. $as_echo "$ac_cv_header_stdc" >&6; }
  7461. if test $ac_cv_header_stdc = yes; then
  7462. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7463. fi
  7464. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7465. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7466. inttypes.h stdint.h unistd.h
  7467. do :
  7468. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7469. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7470. "
  7471. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7472. cat >>confdefs.h <<_ACEOF
  7473. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7474. _ACEOF
  7475. fi
  7476. done
  7477. for ac_header in dlfcn.h
  7478. do :
  7479. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7480. "
  7481. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7482. cat >>confdefs.h <<_ACEOF
  7483. #define HAVE_DLFCN_H 1
  7484. _ACEOF
  7485. fi
  7486. done
  7487. func_stripname_cnf ()
  7488. {
  7489. case ${2} in
  7490. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7491. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7492. esac
  7493. } # func_stripname_cnf
  7494. # Set options
  7495. enable_dlopen=no
  7496. enable_win32_dll=no
  7497. # Check whether --enable-shared was given.
  7498. if test "${enable_shared+set}" = set; then :
  7499. enableval=$enable_shared; p=${PACKAGE-default}
  7500. case $enableval in
  7501. yes) enable_shared=yes ;;
  7502. no) enable_shared=no ;;
  7503. *)
  7504. enable_shared=no
  7505. # Look at the argument we got. We use all the common list separators.
  7506. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7507. for pkg in $enableval; do
  7508. IFS="$lt_save_ifs"
  7509. if test "X$pkg" = "X$p"; then
  7510. enable_shared=yes
  7511. fi
  7512. done
  7513. IFS="$lt_save_ifs"
  7514. ;;
  7515. esac
  7516. else
  7517. enable_shared=yes
  7518. fi
  7519. # Check whether --with-pic was given.
  7520. if test "${with_pic+set}" = set; then :
  7521. withval=$with_pic; pic_mode="$withval"
  7522. else
  7523. pic_mode=default
  7524. fi
  7525. test -z "$pic_mode" && pic_mode=default
  7526. # Check whether --enable-fast-install was given.
  7527. if test "${enable_fast_install+set}" = set; then :
  7528. enableval=$enable_fast_install; p=${PACKAGE-default}
  7529. case $enableval in
  7530. yes) enable_fast_install=yes ;;
  7531. no) enable_fast_install=no ;;
  7532. *)
  7533. enable_fast_install=no
  7534. # Look at the argument we got. We use all the common list separators.
  7535. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7536. for pkg in $enableval; do
  7537. IFS="$lt_save_ifs"
  7538. if test "X$pkg" = "X$p"; then
  7539. enable_fast_install=yes
  7540. fi
  7541. done
  7542. IFS="$lt_save_ifs"
  7543. ;;
  7544. esac
  7545. else
  7546. enable_fast_install=yes
  7547. fi
  7548. # This can be used to rebuild libtool when needed
  7549. LIBTOOL_DEPS="$ltmain"
  7550. # Always use our own libtool.
  7551. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7552. test -z "$LN_S" && LN_S="ln -s"
  7553. if test -n "${ZSH_VERSION+set}" ; then
  7554. setopt NO_GLOB_SUBST
  7555. fi
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7557. $as_echo_n "checking for objdir... " >&6; }
  7558. if ${lt_cv_objdir+:} false; then :
  7559. $as_echo_n "(cached) " >&6
  7560. else
  7561. rm -f .libs 2>/dev/null
  7562. mkdir .libs 2>/dev/null
  7563. if test -d .libs; then
  7564. lt_cv_objdir=.libs
  7565. else
  7566. # MS-DOS does not allow filenames that begin with a dot.
  7567. lt_cv_objdir=_libs
  7568. fi
  7569. rmdir .libs 2>/dev/null
  7570. fi
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7572. $as_echo "$lt_cv_objdir" >&6; }
  7573. objdir=$lt_cv_objdir
  7574. cat >>confdefs.h <<_ACEOF
  7575. #define LT_OBJDIR "$lt_cv_objdir/"
  7576. _ACEOF
  7577. case $host_os in
  7578. aix3*)
  7579. # AIX sometimes has problems with the GCC collect2 program. For some
  7580. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7581. # vanish in a puff of smoke.
  7582. if test "X${COLLECT_NAMES+set}" != Xset; then
  7583. COLLECT_NAMES=
  7584. export COLLECT_NAMES
  7585. fi
  7586. ;;
  7587. esac
  7588. # Global variables:
  7589. ofile=libtool
  7590. can_build_shared=yes
  7591. # All known linkers require a `.a' archive for static linking (except MSVC,
  7592. # which needs '.lib').
  7593. libext=a
  7594. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7595. old_CC="$CC"
  7596. old_CFLAGS="$CFLAGS"
  7597. # Set sane defaults for various variables
  7598. test -z "$CC" && CC=cc
  7599. test -z "$LTCC" && LTCC=$CC
  7600. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7601. test -z "$LD" && LD=ld
  7602. test -z "$ac_objext" && ac_objext=o
  7603. for cc_temp in $compiler""; do
  7604. case $cc_temp in
  7605. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7606. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7607. \-*) ;;
  7608. *) break;;
  7609. esac
  7610. done
  7611. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7612. # Only perform the check for file, if the check method requires it
  7613. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7614. case $deplibs_check_method in
  7615. file_magic*)
  7616. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7618. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7619. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7620. $as_echo_n "(cached) " >&6
  7621. else
  7622. case $MAGIC_CMD in
  7623. [\\/*] | ?:[\\/]*)
  7624. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7625. ;;
  7626. *)
  7627. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7628. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7629. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7630. for ac_dir in $ac_dummy; do
  7631. IFS="$lt_save_ifs"
  7632. test -z "$ac_dir" && ac_dir=.
  7633. if test -f $ac_dir/${ac_tool_prefix}file; then
  7634. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7635. if test -n "$file_magic_test_file"; then
  7636. case $deplibs_check_method in
  7637. "file_magic "*)
  7638. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7639. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7640. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7641. $EGREP "$file_magic_regex" > /dev/null; then
  7642. :
  7643. else
  7644. cat <<_LT_EOF 1>&2
  7645. *** Warning: the command libtool uses to detect shared libraries,
  7646. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7647. *** The result is that libtool may fail to recognize shared libraries
  7648. *** as such. This will affect the creation of libtool libraries that
  7649. *** depend on shared libraries, but programs linked with such libtool
  7650. *** libraries will work regardless of this problem. Nevertheless, you
  7651. *** may want to report the problem to your system manager and/or to
  7652. *** [email protected]
  7653. _LT_EOF
  7654. fi ;;
  7655. esac
  7656. fi
  7657. break
  7658. fi
  7659. done
  7660. IFS="$lt_save_ifs"
  7661. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7662. ;;
  7663. esac
  7664. fi
  7665. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7666. if test -n "$MAGIC_CMD"; then
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7668. $as_echo "$MAGIC_CMD" >&6; }
  7669. else
  7670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7671. $as_echo "no" >&6; }
  7672. fi
  7673. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7674. if test -n "$ac_tool_prefix"; then
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7676. $as_echo_n "checking for file... " >&6; }
  7677. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7678. $as_echo_n "(cached) " >&6
  7679. else
  7680. case $MAGIC_CMD in
  7681. [\\/*] | ?:[\\/]*)
  7682. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7683. ;;
  7684. *)
  7685. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7686. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7687. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7688. for ac_dir in $ac_dummy; do
  7689. IFS="$lt_save_ifs"
  7690. test -z "$ac_dir" && ac_dir=.
  7691. if test -f $ac_dir/file; then
  7692. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7693. if test -n "$file_magic_test_file"; then
  7694. case $deplibs_check_method in
  7695. "file_magic "*)
  7696. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7697. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7698. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7699. $EGREP "$file_magic_regex" > /dev/null; then
  7700. :
  7701. else
  7702. cat <<_LT_EOF 1>&2
  7703. *** Warning: the command libtool uses to detect shared libraries,
  7704. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7705. *** The result is that libtool may fail to recognize shared libraries
  7706. *** as such. This will affect the creation of libtool libraries that
  7707. *** depend on shared libraries, but programs linked with such libtool
  7708. *** libraries will work regardless of this problem. Nevertheless, you
  7709. *** may want to report the problem to your system manager and/or to
  7710. *** [email protected]
  7711. _LT_EOF
  7712. fi ;;
  7713. esac
  7714. fi
  7715. break
  7716. fi
  7717. done
  7718. IFS="$lt_save_ifs"
  7719. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7720. ;;
  7721. esac
  7722. fi
  7723. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7724. if test -n "$MAGIC_CMD"; then
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7726. $as_echo "$MAGIC_CMD" >&6; }
  7727. else
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7729. $as_echo "no" >&6; }
  7730. fi
  7731. else
  7732. MAGIC_CMD=:
  7733. fi
  7734. fi
  7735. fi
  7736. ;;
  7737. esac
  7738. # Use C for the default configuration in the libtool script
  7739. lt_save_CC="$CC"
  7740. ac_ext=c
  7741. ac_cpp='$CPP $CPPFLAGS'
  7742. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7743. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7744. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7745. # Source file extension for C test sources.
  7746. ac_ext=c
  7747. # Object file extension for compiled C test sources.
  7748. objext=o
  7749. objext=$objext
  7750. # Code to be used in simple compile tests
  7751. lt_simple_compile_test_code="int some_variable = 0;"
  7752. # Code to be used in simple link tests
  7753. lt_simple_link_test_code='int main(){return(0);}'
  7754. # If no C compiler was specified, use CC.
  7755. LTCC=${LTCC-"$CC"}
  7756. # If no C compiler flags were specified, use CFLAGS.
  7757. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7758. # Allow CC to be a program name with arguments.
  7759. compiler=$CC
  7760. # Save the default compiler, since it gets overwritten when the other
  7761. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7762. compiler_DEFAULT=$CC
  7763. # save warnings/boilerplate of simple test code
  7764. ac_outfile=conftest.$ac_objext
  7765. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7766. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7767. _lt_compiler_boilerplate=`cat conftest.err`
  7768. $RM conftest*
  7769. ac_outfile=conftest.$ac_objext
  7770. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7771. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7772. _lt_linker_boilerplate=`cat conftest.err`
  7773. $RM -r conftest*
  7774. ## CAVEAT EMPTOR:
  7775. ## There is no encapsulation within the following macros, do not change
  7776. ## the running order or otherwise move them around unless you know exactly
  7777. ## what you are doing...
  7778. if test -n "$compiler"; then
  7779. lt_prog_compiler_no_builtin_flag=
  7780. if test "$GCC" = yes; then
  7781. case $cc_basename in
  7782. nvcc*)
  7783. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7784. *)
  7785. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7786. esac
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7788. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7789. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7790. $as_echo_n "(cached) " >&6
  7791. else
  7792. lt_cv_prog_compiler_rtti_exceptions=no
  7793. ac_outfile=conftest.$ac_objext
  7794. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7795. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7796. # Insert the option either (1) after the last *FLAGS variable, or
  7797. # (2) before a word containing "conftest.", or (3) at the end.
  7798. # Note that $ac_compile itself does not contain backslashes and begins
  7799. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7800. # The option is referenced via a variable to avoid confusing sed.
  7801. lt_compile=`echo "$ac_compile" | $SED \
  7802. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7803. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7804. -e 's:$: $lt_compiler_flag:'`
  7805. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7806. (eval "$lt_compile" 2>conftest.err)
  7807. ac_status=$?
  7808. cat conftest.err >&5
  7809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7810. if (exit $ac_status) && test -s "$ac_outfile"; then
  7811. # The compiler can only warn and ignore the option if not recognized
  7812. # So say no if there are warnings other than the usual output.
  7813. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7814. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7815. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7816. lt_cv_prog_compiler_rtti_exceptions=yes
  7817. fi
  7818. fi
  7819. $RM conftest*
  7820. fi
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7822. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7823. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7824. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7825. else
  7826. :
  7827. fi
  7828. fi
  7829. lt_prog_compiler_wl=
  7830. lt_prog_compiler_pic=
  7831. lt_prog_compiler_static=
  7832. if test "$GCC" = yes; then
  7833. lt_prog_compiler_wl='-Wl,'
  7834. lt_prog_compiler_static='-static'
  7835. case $host_os in
  7836. aix*)
  7837. # All AIX code is PIC.
  7838. if test "$host_cpu" = ia64; then
  7839. # AIX 5 now supports IA64 processor
  7840. lt_prog_compiler_static='-Bstatic'
  7841. fi
  7842. ;;
  7843. amigaos*)
  7844. case $host_cpu in
  7845. powerpc)
  7846. # see comment about AmigaOS4 .so support
  7847. lt_prog_compiler_pic='-fPIC'
  7848. ;;
  7849. m68k)
  7850. # FIXME: we need at least 68020 code to build shared libraries, but
  7851. # adding the `-m68020' flag to GCC prevents building anything better,
  7852. # like `-m68040'.
  7853. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7854. ;;
  7855. esac
  7856. ;;
  7857. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7858. # PIC is the default for these OSes.
  7859. ;;
  7860. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7861. # This hack is so that the source file can tell whether it is being
  7862. # built for inclusion in a dll (and should export symbols for example).
  7863. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7864. # (--disable-auto-import) libraries
  7865. lt_prog_compiler_pic='-DDLL_EXPORT'
  7866. ;;
  7867. darwin* | rhapsody*)
  7868. # PIC is the default on this platform
  7869. # Common symbols not allowed in MH_DYLIB files
  7870. lt_prog_compiler_pic='-fno-common'
  7871. ;;
  7872. haiku*)
  7873. # PIC is the default for Haiku.
  7874. # The "-static" flag exists, but is broken.
  7875. lt_prog_compiler_static=
  7876. ;;
  7877. hpux*)
  7878. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7879. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7880. # sets the default TLS model and affects inlining.
  7881. case $host_cpu in
  7882. hppa*64*)
  7883. # +Z the default
  7884. ;;
  7885. *)
  7886. lt_prog_compiler_pic='-fPIC'
  7887. ;;
  7888. esac
  7889. ;;
  7890. interix[3-9]*)
  7891. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7892. # Instead, we relocate shared libraries at runtime.
  7893. ;;
  7894. msdosdjgpp*)
  7895. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7896. # on systems that don't support them.
  7897. lt_prog_compiler_can_build_shared=no
  7898. enable_shared=no
  7899. ;;
  7900. *nto* | *qnx*)
  7901. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7902. # it will coredump.
  7903. lt_prog_compiler_pic='-fPIC -shared'
  7904. ;;
  7905. sysv4*MP*)
  7906. if test -d /usr/nec; then
  7907. lt_prog_compiler_pic=-Kconform_pic
  7908. fi
  7909. ;;
  7910. *)
  7911. lt_prog_compiler_pic='-fPIC'
  7912. ;;
  7913. esac
  7914. case $cc_basename in
  7915. nvcc*) # Cuda Compiler Driver 2.2
  7916. lt_prog_compiler_wl='-Xlinker '
  7917. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7918. ;;
  7919. esac
  7920. else
  7921. # PORTME Check for flag to pass linker flags through the system compiler.
  7922. case $host_os in
  7923. aix*)
  7924. lt_prog_compiler_wl='-Wl,'
  7925. if test "$host_cpu" = ia64; then
  7926. # AIX 5 now supports IA64 processor
  7927. lt_prog_compiler_static='-Bstatic'
  7928. else
  7929. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7930. fi
  7931. ;;
  7932. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7933. # This hack is so that the source file can tell whether it is being
  7934. # built for inclusion in a dll (and should export symbols for example).
  7935. lt_prog_compiler_pic='-DDLL_EXPORT'
  7936. ;;
  7937. hpux9* | hpux10* | hpux11*)
  7938. lt_prog_compiler_wl='-Wl,'
  7939. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7940. # not for PA HP-UX.
  7941. case $host_cpu in
  7942. hppa*64*|ia64*)
  7943. # +Z the default
  7944. ;;
  7945. *)
  7946. lt_prog_compiler_pic='+Z'
  7947. ;;
  7948. esac
  7949. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7950. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7951. ;;
  7952. irix5* | irix6* | nonstopux*)
  7953. lt_prog_compiler_wl='-Wl,'
  7954. # PIC (with -KPIC) is the default.
  7955. lt_prog_compiler_static='-non_shared'
  7956. ;;
  7957. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7958. case $cc_basename in
  7959. # old Intel for x86_64 which still supported -KPIC.
  7960. ecc*)
  7961. lt_prog_compiler_wl='-Wl,'
  7962. lt_prog_compiler_pic='-KPIC'
  7963. lt_prog_compiler_static='-static'
  7964. ;;
  7965. # icc used to be incompatible with GCC.
  7966. # ICC 10 doesn't accept -KPIC any more.
  7967. icc* | ifort*)
  7968. lt_prog_compiler_wl='-Wl,'
  7969. lt_prog_compiler_pic='-fPIC'
  7970. lt_prog_compiler_static='-static'
  7971. ;;
  7972. # Lahey Fortran 8.1.
  7973. lf95*)
  7974. lt_prog_compiler_wl='-Wl,'
  7975. lt_prog_compiler_pic='--shared'
  7976. lt_prog_compiler_static='--static'
  7977. ;;
  7978. nagfor*)
  7979. # NAG Fortran compiler
  7980. lt_prog_compiler_wl='-Wl,-Wl,,'
  7981. lt_prog_compiler_pic='-PIC'
  7982. lt_prog_compiler_static='-Bstatic'
  7983. ;;
  7984. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7985. # Portland Group compilers (*not* the Pentium gcc compiler,
  7986. # which looks to be a dead project)
  7987. lt_prog_compiler_wl='-Wl,'
  7988. lt_prog_compiler_pic='-fpic'
  7989. lt_prog_compiler_static='-Bstatic'
  7990. ;;
  7991. ccc*)
  7992. lt_prog_compiler_wl='-Wl,'
  7993. # All Alpha code is PIC.
  7994. lt_prog_compiler_static='-non_shared'
  7995. ;;
  7996. xl* | bgxl* | bgf* | mpixl*)
  7997. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7998. lt_prog_compiler_wl='-Wl,'
  7999. lt_prog_compiler_pic='-qpic'
  8000. lt_prog_compiler_static='-qstaticlink'
  8001. ;;
  8002. *)
  8003. case `$CC -V 2>&1 | sed 5q` in
  8004. *Sun\ F* | *Sun*Fortran*)
  8005. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8006. lt_prog_compiler_pic='-KPIC'
  8007. lt_prog_compiler_static='-Bstatic'
  8008. lt_prog_compiler_wl=''
  8009. ;;
  8010. *Sun\ C*)
  8011. # Sun C 5.9
  8012. lt_prog_compiler_pic='-KPIC'
  8013. lt_prog_compiler_static='-Bstatic'
  8014. lt_prog_compiler_wl='-Wl,'
  8015. ;;
  8016. esac
  8017. ;;
  8018. esac
  8019. ;;
  8020. newsos6)
  8021. lt_prog_compiler_pic='-KPIC'
  8022. lt_prog_compiler_static='-Bstatic'
  8023. ;;
  8024. *nto* | *qnx*)
  8025. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8026. # it will coredump.
  8027. lt_prog_compiler_pic='-fPIC -shared'
  8028. ;;
  8029. osf3* | osf4* | osf5*)
  8030. lt_prog_compiler_wl='-Wl,'
  8031. # All OSF/1 code is PIC.
  8032. lt_prog_compiler_static='-non_shared'
  8033. ;;
  8034. rdos*)
  8035. lt_prog_compiler_static='-non_shared'
  8036. ;;
  8037. solaris*)
  8038. lt_prog_compiler_pic='-KPIC'
  8039. lt_prog_compiler_static='-Bstatic'
  8040. case $cc_basename in
  8041. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8042. lt_prog_compiler_wl='-Qoption ld ';;
  8043. *)
  8044. lt_prog_compiler_wl='-Wl,';;
  8045. esac
  8046. ;;
  8047. sunos4*)
  8048. lt_prog_compiler_wl='-Qoption ld '
  8049. lt_prog_compiler_pic='-PIC'
  8050. lt_prog_compiler_static='-Bstatic'
  8051. ;;
  8052. sysv4 | sysv4.2uw2* | sysv4.3*)
  8053. lt_prog_compiler_wl='-Wl,'
  8054. lt_prog_compiler_pic='-KPIC'
  8055. lt_prog_compiler_static='-Bstatic'
  8056. ;;
  8057. sysv4*MP*)
  8058. if test -d /usr/nec ;then
  8059. lt_prog_compiler_pic='-Kconform_pic'
  8060. lt_prog_compiler_static='-Bstatic'
  8061. fi
  8062. ;;
  8063. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8064. lt_prog_compiler_wl='-Wl,'
  8065. lt_prog_compiler_pic='-KPIC'
  8066. lt_prog_compiler_static='-Bstatic'
  8067. ;;
  8068. unicos*)
  8069. lt_prog_compiler_wl='-Wl,'
  8070. lt_prog_compiler_can_build_shared=no
  8071. ;;
  8072. uts4*)
  8073. lt_prog_compiler_pic='-pic'
  8074. lt_prog_compiler_static='-Bstatic'
  8075. ;;
  8076. *)
  8077. lt_prog_compiler_can_build_shared=no
  8078. ;;
  8079. esac
  8080. fi
  8081. case $host_os in
  8082. # For platforms which do not support PIC, -DPIC is meaningless:
  8083. *djgpp*)
  8084. lt_prog_compiler_pic=
  8085. ;;
  8086. *)
  8087. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8088. ;;
  8089. esac
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8091. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8092. if ${lt_cv_prog_compiler_pic+:} false; then :
  8093. $as_echo_n "(cached) " >&6
  8094. else
  8095. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8096. fi
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8098. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8099. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8100. #
  8101. # Check to make sure the PIC flag actually works.
  8102. #
  8103. if test -n "$lt_prog_compiler_pic"; then
  8104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8105. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8106. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8107. $as_echo_n "(cached) " >&6
  8108. else
  8109. lt_cv_prog_compiler_pic_works=no
  8110. ac_outfile=conftest.$ac_objext
  8111. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8112. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8113. # Insert the option either (1) after the last *FLAGS variable, or
  8114. # (2) before a word containing "conftest.", or (3) at the end.
  8115. # Note that $ac_compile itself does not contain backslashes and begins
  8116. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8117. # The option is referenced via a variable to avoid confusing sed.
  8118. lt_compile=`echo "$ac_compile" | $SED \
  8119. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8120. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8121. -e 's:$: $lt_compiler_flag:'`
  8122. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8123. (eval "$lt_compile" 2>conftest.err)
  8124. ac_status=$?
  8125. cat conftest.err >&5
  8126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8127. if (exit $ac_status) && test -s "$ac_outfile"; then
  8128. # The compiler can only warn and ignore the option if not recognized
  8129. # So say no if there are warnings other than the usual output.
  8130. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8131. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8132. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8133. lt_cv_prog_compiler_pic_works=yes
  8134. fi
  8135. fi
  8136. $RM conftest*
  8137. fi
  8138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8139. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8140. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8141. case $lt_prog_compiler_pic in
  8142. "" | " "*) ;;
  8143. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8144. esac
  8145. else
  8146. lt_prog_compiler_pic=
  8147. lt_prog_compiler_can_build_shared=no
  8148. fi
  8149. fi
  8150. #
  8151. # Check to make sure the static flag actually works.
  8152. #
  8153. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8155. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8156. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8157. $as_echo_n "(cached) " >&6
  8158. else
  8159. lt_cv_prog_compiler_static_works=no
  8160. save_LDFLAGS="$LDFLAGS"
  8161. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8162. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8163. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8164. # The linker can only warn and ignore the option if not recognized
  8165. # So say no if there are warnings
  8166. if test -s conftest.err; then
  8167. # Append any errors to the config.log.
  8168. cat conftest.err 1>&5
  8169. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8170. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8171. if diff conftest.exp conftest.er2 >/dev/null; then
  8172. lt_cv_prog_compiler_static_works=yes
  8173. fi
  8174. else
  8175. lt_cv_prog_compiler_static_works=yes
  8176. fi
  8177. fi
  8178. $RM -r conftest*
  8179. LDFLAGS="$save_LDFLAGS"
  8180. fi
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8182. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8183. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8184. :
  8185. else
  8186. lt_prog_compiler_static=
  8187. fi
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8189. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8190. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8191. $as_echo_n "(cached) " >&6
  8192. else
  8193. lt_cv_prog_compiler_c_o=no
  8194. $RM -r conftest 2>/dev/null
  8195. mkdir conftest
  8196. cd conftest
  8197. mkdir out
  8198. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8199. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8200. # Insert the option either (1) after the last *FLAGS variable, or
  8201. # (2) before a word containing "conftest.", or (3) at the end.
  8202. # Note that $ac_compile itself does not contain backslashes and begins
  8203. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8204. lt_compile=`echo "$ac_compile" | $SED \
  8205. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8206. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8207. -e 's:$: $lt_compiler_flag:'`
  8208. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8209. (eval "$lt_compile" 2>out/conftest.err)
  8210. ac_status=$?
  8211. cat out/conftest.err >&5
  8212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8213. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8214. then
  8215. # The compiler can only warn and ignore the option if not recognized
  8216. # So say no if there are warnings
  8217. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8218. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8219. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8220. lt_cv_prog_compiler_c_o=yes
  8221. fi
  8222. fi
  8223. chmod u+w . 2>&5
  8224. $RM conftest*
  8225. # SGI C++ compiler will create directory out/ii_files/ for
  8226. # template instantiation
  8227. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8228. $RM out/* && rmdir out
  8229. cd ..
  8230. $RM -r conftest
  8231. $RM conftest*
  8232. fi
  8233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8234. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8236. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8237. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8238. $as_echo_n "(cached) " >&6
  8239. else
  8240. lt_cv_prog_compiler_c_o=no
  8241. $RM -r conftest 2>/dev/null
  8242. mkdir conftest
  8243. cd conftest
  8244. mkdir out
  8245. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8246. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8247. # Insert the option either (1) after the last *FLAGS variable, or
  8248. # (2) before a word containing "conftest.", or (3) at the end.
  8249. # Note that $ac_compile itself does not contain backslashes and begins
  8250. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8251. lt_compile=`echo "$ac_compile" | $SED \
  8252. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8253. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8254. -e 's:$: $lt_compiler_flag:'`
  8255. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8256. (eval "$lt_compile" 2>out/conftest.err)
  8257. ac_status=$?
  8258. cat out/conftest.err >&5
  8259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8260. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8261. then
  8262. # The compiler can only warn and ignore the option if not recognized
  8263. # So say no if there are warnings
  8264. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8265. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8266. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8267. lt_cv_prog_compiler_c_o=yes
  8268. fi
  8269. fi
  8270. chmod u+w . 2>&5
  8271. $RM conftest*
  8272. # SGI C++ compiler will create directory out/ii_files/ for
  8273. # template instantiation
  8274. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8275. $RM out/* && rmdir out
  8276. cd ..
  8277. $RM -r conftest
  8278. $RM conftest*
  8279. fi
  8280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8281. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8282. hard_links="nottested"
  8283. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8284. # do not overwrite the value of need_locks provided by the user
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8286. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8287. hard_links=yes
  8288. $RM conftest*
  8289. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8290. touch conftest.a
  8291. ln conftest.a conftest.b 2>&5 || hard_links=no
  8292. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8294. $as_echo "$hard_links" >&6; }
  8295. if test "$hard_links" = no; then
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8297. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8298. need_locks=warn
  8299. fi
  8300. else
  8301. need_locks=no
  8302. fi
  8303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8304. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8305. runpath_var=
  8306. allow_undefined_flag=
  8307. always_export_symbols=no
  8308. archive_cmds=
  8309. archive_expsym_cmds=
  8310. compiler_needs_object=no
  8311. enable_shared_with_static_runtimes=no
  8312. export_dynamic_flag_spec=
  8313. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8314. hardcode_automatic=no
  8315. hardcode_direct=no
  8316. hardcode_direct_absolute=no
  8317. hardcode_libdir_flag_spec=
  8318. hardcode_libdir_flag_spec_ld=
  8319. hardcode_libdir_separator=
  8320. hardcode_minus_L=no
  8321. hardcode_shlibpath_var=unsupported
  8322. inherit_rpath=no
  8323. link_all_deplibs=unknown
  8324. module_cmds=
  8325. module_expsym_cmds=
  8326. old_archive_from_new_cmds=
  8327. old_archive_from_expsyms_cmds=
  8328. thread_safe_flag_spec=
  8329. whole_archive_flag_spec=
  8330. # include_expsyms should be a list of space-separated symbols to be *always*
  8331. # included in the symbol list
  8332. include_expsyms=
  8333. # exclude_expsyms can be an extended regexp of symbols to exclude
  8334. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8335. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8336. # as well as any symbol that contains `d'.
  8337. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8338. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8339. # platforms (ab)use it in PIC code, but their linkers get confused if
  8340. # the symbol is explicitly referenced. Since portable code cannot
  8341. # rely on this symbol name, it's probably fine to never include it in
  8342. # preloaded symbol tables.
  8343. # Exclude shared library initialization/finalization symbols.
  8344. extract_expsyms_cmds=
  8345. case $host_os in
  8346. cygwin* | mingw* | pw32* | cegcc*)
  8347. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8348. # When not using gcc, we currently assume that we are using
  8349. # Microsoft Visual C++.
  8350. if test "$GCC" != yes; then
  8351. with_gnu_ld=no
  8352. fi
  8353. ;;
  8354. interix*)
  8355. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8356. with_gnu_ld=yes
  8357. ;;
  8358. openbsd*)
  8359. with_gnu_ld=no
  8360. ;;
  8361. esac
  8362. ld_shlibs=yes
  8363. # On some targets, GNU ld is compatible enough with the native linker
  8364. # that we're better off using the native interface for both.
  8365. lt_use_gnu_ld_interface=no
  8366. if test "$with_gnu_ld" = yes; then
  8367. case $host_os in
  8368. aix*)
  8369. # The AIX port of GNU ld has always aspired to compatibility
  8370. # with the native linker. However, as the warning in the GNU ld
  8371. # block says, versions before 2.19.5* couldn't really create working
  8372. # shared libraries, regardless of the interface used.
  8373. case `$LD -v 2>&1` in
  8374. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8375. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8376. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8377. *)
  8378. lt_use_gnu_ld_interface=yes
  8379. ;;
  8380. esac
  8381. ;;
  8382. *)
  8383. lt_use_gnu_ld_interface=yes
  8384. ;;
  8385. esac
  8386. fi
  8387. if test "$lt_use_gnu_ld_interface" = yes; then
  8388. # If archive_cmds runs LD, not CC, wlarc should be empty
  8389. wlarc='${wl}'
  8390. # Set some defaults for GNU ld with shared library support. These
  8391. # are reset later if shared libraries are not supported. Putting them
  8392. # here allows them to be overridden if necessary.
  8393. runpath_var=LD_RUN_PATH
  8394. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8395. export_dynamic_flag_spec='${wl}--export-dynamic'
  8396. # ancient GNU ld didn't support --whole-archive et. al.
  8397. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8398. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8399. else
  8400. whole_archive_flag_spec=
  8401. fi
  8402. supports_anon_versioning=no
  8403. case `$LD -v 2>&1` in
  8404. *GNU\ gold*) supports_anon_versioning=yes ;;
  8405. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8406. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8407. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8408. *\ 2.11.*) ;; # other 2.11 versions
  8409. *) supports_anon_versioning=yes ;;
  8410. esac
  8411. # See if GNU ld supports shared libraries.
  8412. case $host_os in
  8413. aix[3-9]*)
  8414. # On AIX/PPC, the GNU linker is very broken
  8415. if test "$host_cpu" != ia64; then
  8416. ld_shlibs=no
  8417. cat <<_LT_EOF 1>&2
  8418. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8419. *** to be unable to reliably create shared libraries on AIX.
  8420. *** Therefore, libtool is disabling shared libraries support. If you
  8421. *** really care for shared libraries, you may want to install binutils
  8422. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8423. *** You will then need to restart the configuration process.
  8424. _LT_EOF
  8425. fi
  8426. ;;
  8427. amigaos*)
  8428. case $host_cpu in
  8429. powerpc)
  8430. # see comment about AmigaOS4 .so support
  8431. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8432. archive_expsym_cmds=''
  8433. ;;
  8434. m68k)
  8435. 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)'
  8436. hardcode_libdir_flag_spec='-L$libdir'
  8437. hardcode_minus_L=yes
  8438. ;;
  8439. esac
  8440. ;;
  8441. beos*)
  8442. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8443. allow_undefined_flag=unsupported
  8444. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8445. # support --undefined. This deserves some investigation. FIXME
  8446. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8447. else
  8448. ld_shlibs=no
  8449. fi
  8450. ;;
  8451. cygwin* | mingw* | pw32* | cegcc*)
  8452. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8453. # as there is no search path for DLLs.
  8454. hardcode_libdir_flag_spec='-L$libdir'
  8455. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8456. allow_undefined_flag=unsupported
  8457. always_export_symbols=no
  8458. enable_shared_with_static_runtimes=yes
  8459. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8460. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8461. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8462. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8463. # If the export-symbols file already is a .def file (1st line
  8464. # is EXPORTS), use it as is; otherwise, prepend...
  8465. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8466. cp $export_symbols $output_objdir/$soname.def;
  8467. else
  8468. echo EXPORTS > $output_objdir/$soname.def;
  8469. cat $export_symbols >> $output_objdir/$soname.def;
  8470. fi~
  8471. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8472. else
  8473. ld_shlibs=no
  8474. fi
  8475. ;;
  8476. haiku*)
  8477. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8478. link_all_deplibs=yes
  8479. ;;
  8480. interix[3-9]*)
  8481. hardcode_direct=no
  8482. hardcode_shlibpath_var=no
  8483. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8484. export_dynamic_flag_spec='${wl}-E'
  8485. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8486. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8487. # default) and relocated if they conflict, which is a slow very memory
  8488. # consuming and fragmenting process. To avoid this, we pick a random,
  8489. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8490. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8491. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8492. 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'
  8493. ;;
  8494. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8495. tmp_diet=no
  8496. if test "$host_os" = linux-dietlibc; then
  8497. case $cc_basename in
  8498. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8499. esac
  8500. fi
  8501. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8502. && test "$tmp_diet" = no
  8503. then
  8504. tmp_addflag=' $pic_flag'
  8505. tmp_sharedflag='-shared'
  8506. case $cc_basename,$host_cpu in
  8507. pgcc*) # Portland Group C compiler
  8508. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8509. tmp_addflag=' $pic_flag'
  8510. ;;
  8511. pgf77* | pgf90* | pgf95* | pgfortran*)
  8512. # Portland Group f77 and f90 compilers
  8513. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8514. tmp_addflag=' $pic_flag -Mnomain' ;;
  8515. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8516. tmp_addflag=' -i_dynamic' ;;
  8517. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8518. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8519. ifc* | ifort*) # Intel Fortran compiler
  8520. tmp_addflag=' -nofor_main' ;;
  8521. lf95*) # Lahey Fortran 8.1
  8522. whole_archive_flag_spec=
  8523. tmp_sharedflag='--shared' ;;
  8524. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8525. tmp_sharedflag='-qmkshrobj'
  8526. tmp_addflag= ;;
  8527. nvcc*) # Cuda Compiler Driver 2.2
  8528. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8529. compiler_needs_object=yes
  8530. ;;
  8531. esac
  8532. case `$CC -V 2>&1 | sed 5q` in
  8533. *Sun\ C*) # Sun C 5.9
  8534. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8535. compiler_needs_object=yes
  8536. tmp_sharedflag='-G' ;;
  8537. *Sun\ F*) # Sun Fortran 8.3
  8538. tmp_sharedflag='-G' ;;
  8539. esac
  8540. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8541. if test "x$supports_anon_versioning" = xyes; then
  8542. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8543. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8544. echo "local: *; };" >> $output_objdir/$libname.ver~
  8545. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8546. fi
  8547. case $cc_basename in
  8548. xlf* | bgf* | bgxlf* | mpixlf*)
  8549. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8550. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8551. hardcode_libdir_flag_spec=
  8552. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8553. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8554. if test "x$supports_anon_versioning" = xyes; then
  8555. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8556. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8557. echo "local: *; };" >> $output_objdir/$libname.ver~
  8558. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8559. fi
  8560. ;;
  8561. esac
  8562. else
  8563. ld_shlibs=no
  8564. fi
  8565. ;;
  8566. netbsd*)
  8567. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8568. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8569. wlarc=
  8570. else
  8571. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8572. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8573. fi
  8574. ;;
  8575. solaris*)
  8576. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8577. ld_shlibs=no
  8578. cat <<_LT_EOF 1>&2
  8579. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8580. *** create shared libraries on Solaris systems. Therefore, libtool
  8581. *** is disabling shared libraries support. We urge you to upgrade GNU
  8582. *** binutils to release 2.9.1 or newer. Another option is to modify
  8583. *** your PATH or compiler configuration so that the native linker is
  8584. *** used, and then restart.
  8585. _LT_EOF
  8586. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8587. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8588. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8589. else
  8590. ld_shlibs=no
  8591. fi
  8592. ;;
  8593. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8594. case `$LD -v 2>&1` in
  8595. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8596. ld_shlibs=no
  8597. cat <<_LT_EOF 1>&2
  8598. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8599. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8600. *** is disabling shared libraries support. We urge you to upgrade GNU
  8601. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8602. *** your PATH or compiler configuration so that the native linker is
  8603. *** used, and then restart.
  8604. _LT_EOF
  8605. ;;
  8606. *)
  8607. # For security reasons, it is highly recommended that you always
  8608. # use absolute paths for naming shared libraries, and exclude the
  8609. # DT_RUNPATH tag from executables and libraries. But doing so
  8610. # requires that you compile everything twice, which is a pain.
  8611. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8612. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8613. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8614. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8615. else
  8616. ld_shlibs=no
  8617. fi
  8618. ;;
  8619. esac
  8620. ;;
  8621. sunos4*)
  8622. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8623. wlarc=
  8624. hardcode_direct=yes
  8625. hardcode_shlibpath_var=no
  8626. ;;
  8627. *)
  8628. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8629. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8630. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8631. else
  8632. ld_shlibs=no
  8633. fi
  8634. ;;
  8635. esac
  8636. if test "$ld_shlibs" = no; then
  8637. runpath_var=
  8638. hardcode_libdir_flag_spec=
  8639. export_dynamic_flag_spec=
  8640. whole_archive_flag_spec=
  8641. fi
  8642. else
  8643. # PORTME fill in a description of your system's linker (not GNU ld)
  8644. case $host_os in
  8645. aix3*)
  8646. allow_undefined_flag=unsupported
  8647. always_export_symbols=yes
  8648. 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'
  8649. # Note: this linker hardcodes the directories in LIBPATH if there
  8650. # are no directories specified by -L.
  8651. hardcode_minus_L=yes
  8652. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8653. # Neither direct hardcoding nor static linking is supported with a
  8654. # broken collect2.
  8655. hardcode_direct=unsupported
  8656. fi
  8657. ;;
  8658. aix[4-9]*)
  8659. if test "$host_cpu" = ia64; then
  8660. # On IA64, the linker does run time linking by default, so we don't
  8661. # have to do anything special.
  8662. aix_use_runtimelinking=no
  8663. exp_sym_flag='-Bexport'
  8664. no_entry_flag=""
  8665. else
  8666. # If we're using GNU nm, then we don't want the "-C" option.
  8667. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8668. # Also, AIX nm treats weak defined symbols like other global
  8669. # defined symbols, whereas GNU nm marks them as "W".
  8670. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8671. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8672. else
  8673. 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'
  8674. fi
  8675. aix_use_runtimelinking=no
  8676. # Test if we are trying to use run time linking or normal
  8677. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8678. # need to do runtime linking.
  8679. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8680. for ld_flag in $LDFLAGS; do
  8681. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8682. aix_use_runtimelinking=yes
  8683. break
  8684. fi
  8685. done
  8686. ;;
  8687. esac
  8688. exp_sym_flag='-bexport'
  8689. no_entry_flag='-bnoentry'
  8690. fi
  8691. # When large executables or shared objects are built, AIX ld can
  8692. # have problems creating the table of contents. If linking a library
  8693. # or program results in "error TOC overflow" add -mminimal-toc to
  8694. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8695. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8696. archive_cmds=''
  8697. hardcode_direct=yes
  8698. hardcode_direct_absolute=yes
  8699. hardcode_libdir_separator=':'
  8700. link_all_deplibs=yes
  8701. file_list_spec='${wl}-f,'
  8702. if test "$GCC" = yes; then
  8703. case $host_os in aix4.[012]|aix4.[012].*)
  8704. # We only want to do this on AIX 4.2 and lower, the check
  8705. # below for broken collect2 doesn't work under 4.3+
  8706. collect2name=`${CC} -print-prog-name=collect2`
  8707. if test -f "$collect2name" &&
  8708. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8709. then
  8710. # We have reworked collect2
  8711. :
  8712. else
  8713. # We have old collect2
  8714. hardcode_direct=unsupported
  8715. # It fails to find uninstalled libraries when the uninstalled
  8716. # path is not listed in the libpath. Setting hardcode_minus_L
  8717. # to unsupported forces relinking
  8718. hardcode_minus_L=yes
  8719. hardcode_libdir_flag_spec='-L$libdir'
  8720. hardcode_libdir_separator=
  8721. fi
  8722. ;;
  8723. esac
  8724. shared_flag='-shared'
  8725. if test "$aix_use_runtimelinking" = yes; then
  8726. shared_flag="$shared_flag "'${wl}-G'
  8727. fi
  8728. else
  8729. # not using gcc
  8730. if test "$host_cpu" = ia64; then
  8731. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8732. # chokes on -Wl,-G. The following line is correct:
  8733. shared_flag='-G'
  8734. else
  8735. if test "$aix_use_runtimelinking" = yes; then
  8736. shared_flag='${wl}-G'
  8737. else
  8738. shared_flag='${wl}-bM:SRE'
  8739. fi
  8740. fi
  8741. fi
  8742. export_dynamic_flag_spec='${wl}-bexpall'
  8743. # It seems that -bexpall does not export symbols beginning with
  8744. # underscore (_), so it is better to generate a list of symbols to export.
  8745. always_export_symbols=yes
  8746. if test "$aix_use_runtimelinking" = yes; then
  8747. # Warning - without using the other runtime loading flags (-brtl),
  8748. # -berok will link without error, but may produce a broken library.
  8749. allow_undefined_flag='-berok'
  8750. # Determine the default libpath from the value encoded in an
  8751. # empty executable.
  8752. if test "${lt_cv_aix_libpath+set}" = set; then
  8753. aix_libpath=$lt_cv_aix_libpath
  8754. else
  8755. if ${lt_cv_aix_libpath_+:} false; then :
  8756. $as_echo_n "(cached) " >&6
  8757. else
  8758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8759. /* end confdefs.h. */
  8760. int
  8761. main ()
  8762. {
  8763. ;
  8764. return 0;
  8765. }
  8766. _ACEOF
  8767. if ac_fn_c_try_link "$LINENO"; then :
  8768. lt_aix_libpath_sed='
  8769. /Import File Strings/,/^$/ {
  8770. /^0/ {
  8771. s/^0 *\([^ ]*\) *$/\1/
  8772. p
  8773. }
  8774. }'
  8775. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8776. # Check for a 64-bit object if we didn't find anything.
  8777. if test -z "$lt_cv_aix_libpath_"; then
  8778. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8779. fi
  8780. fi
  8781. rm -f core conftest.err conftest.$ac_objext \
  8782. conftest$ac_exeext conftest.$ac_ext
  8783. if test -z "$lt_cv_aix_libpath_"; then
  8784. lt_cv_aix_libpath_="/usr/lib:/lib"
  8785. fi
  8786. fi
  8787. aix_libpath=$lt_cv_aix_libpath_
  8788. fi
  8789. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8790. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8791. else
  8792. if test "$host_cpu" = ia64; then
  8793. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8794. allow_undefined_flag="-z nodefs"
  8795. 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"
  8796. else
  8797. # Determine the default libpath from the value encoded in an
  8798. # empty executable.
  8799. if test "${lt_cv_aix_libpath+set}" = set; then
  8800. aix_libpath=$lt_cv_aix_libpath
  8801. else
  8802. if ${lt_cv_aix_libpath_+:} false; then :
  8803. $as_echo_n "(cached) " >&6
  8804. else
  8805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8806. /* end confdefs.h. */
  8807. int
  8808. main ()
  8809. {
  8810. ;
  8811. return 0;
  8812. }
  8813. _ACEOF
  8814. if ac_fn_c_try_link "$LINENO"; then :
  8815. lt_aix_libpath_sed='
  8816. /Import File Strings/,/^$/ {
  8817. /^0/ {
  8818. s/^0 *\([^ ]*\) *$/\1/
  8819. p
  8820. }
  8821. }'
  8822. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8823. # Check for a 64-bit object if we didn't find anything.
  8824. if test -z "$lt_cv_aix_libpath_"; then
  8825. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8826. fi
  8827. fi
  8828. rm -f core conftest.err conftest.$ac_objext \
  8829. conftest$ac_exeext conftest.$ac_ext
  8830. if test -z "$lt_cv_aix_libpath_"; then
  8831. lt_cv_aix_libpath_="/usr/lib:/lib"
  8832. fi
  8833. fi
  8834. aix_libpath=$lt_cv_aix_libpath_
  8835. fi
  8836. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8837. # Warning - without using the other run time loading flags,
  8838. # -berok will link without error, but may produce a broken library.
  8839. no_undefined_flag=' ${wl}-bernotok'
  8840. allow_undefined_flag=' ${wl}-berok'
  8841. if test "$with_gnu_ld" = yes; then
  8842. # We only use this code for GNU lds that support --whole-archive.
  8843. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8844. else
  8845. # Exported symbols can be pulled into shared objects from archives
  8846. whole_archive_flag_spec='$convenience'
  8847. fi
  8848. archive_cmds_need_lc=yes
  8849. # This is similar to how AIX traditionally builds its shared libraries.
  8850. 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'
  8851. fi
  8852. fi
  8853. ;;
  8854. amigaos*)
  8855. case $host_cpu in
  8856. powerpc)
  8857. # see comment about AmigaOS4 .so support
  8858. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8859. archive_expsym_cmds=''
  8860. ;;
  8861. m68k)
  8862. 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)'
  8863. hardcode_libdir_flag_spec='-L$libdir'
  8864. hardcode_minus_L=yes
  8865. ;;
  8866. esac
  8867. ;;
  8868. bsdi[45]*)
  8869. export_dynamic_flag_spec=-rdynamic
  8870. ;;
  8871. cygwin* | mingw* | pw32* | cegcc*)
  8872. # When not using gcc, we currently assume that we are using
  8873. # Microsoft Visual C++.
  8874. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8875. # no search path for DLLs.
  8876. case $cc_basename in
  8877. cl*)
  8878. # Native MSVC
  8879. hardcode_libdir_flag_spec=' '
  8880. allow_undefined_flag=unsupported
  8881. always_export_symbols=yes
  8882. file_list_spec='@'
  8883. # Tell ltmain to make .lib files, not .a files.
  8884. libext=lib
  8885. # Tell ltmain to make .dll files, not .so files.
  8886. shrext_cmds=".dll"
  8887. # FIXME: Setting linknames here is a bad hack.
  8888. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8889. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8890. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8891. else
  8892. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8893. fi~
  8894. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8895. linknames='
  8896. # The linker will not automatically build a static lib if we build a DLL.
  8897. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8898. enable_shared_with_static_runtimes=yes
  8899. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8900. # Don't use ranlib
  8901. old_postinstall_cmds='chmod 644 $oldlib'
  8902. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8903. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8904. case $lt_outputfile in
  8905. *.exe|*.EXE) ;;
  8906. *)
  8907. lt_outputfile="$lt_outputfile.exe"
  8908. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8909. ;;
  8910. esac~
  8911. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8912. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8913. $RM "$lt_outputfile.manifest";
  8914. fi'
  8915. ;;
  8916. *)
  8917. # Assume MSVC wrapper
  8918. hardcode_libdir_flag_spec=' '
  8919. allow_undefined_flag=unsupported
  8920. # Tell ltmain to make .lib files, not .a files.
  8921. libext=lib
  8922. # Tell ltmain to make .dll files, not .so files.
  8923. shrext_cmds=".dll"
  8924. # FIXME: Setting linknames here is a bad hack.
  8925. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8926. # The linker will automatically build a .lib file if we build a DLL.
  8927. old_archive_from_new_cmds='true'
  8928. # FIXME: Should let the user specify the lib program.
  8929. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8930. enable_shared_with_static_runtimes=yes
  8931. ;;
  8932. esac
  8933. ;;
  8934. darwin* | rhapsody*)
  8935. archive_cmds_need_lc=no
  8936. hardcode_direct=no
  8937. hardcode_automatic=yes
  8938. hardcode_shlibpath_var=unsupported
  8939. if test "$lt_cv_ld_force_load" = "yes"; then
  8940. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8941. else
  8942. whole_archive_flag_spec=''
  8943. fi
  8944. link_all_deplibs=yes
  8945. allow_undefined_flag="$_lt_dar_allow_undefined"
  8946. case $cc_basename in
  8947. ifort*) _lt_dar_can_shared=yes ;;
  8948. *) _lt_dar_can_shared=$GCC ;;
  8949. esac
  8950. if test "$_lt_dar_can_shared" = "yes"; then
  8951. output_verbose_link_cmd=func_echo_all
  8952. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8953. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8954. 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}"
  8955. 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}"
  8956. else
  8957. ld_shlibs=no
  8958. fi
  8959. ;;
  8960. dgux*)
  8961. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8962. hardcode_libdir_flag_spec='-L$libdir'
  8963. hardcode_shlibpath_var=no
  8964. ;;
  8965. freebsd1*)
  8966. ld_shlibs=no
  8967. ;;
  8968. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8969. # support. Future versions do this automatically, but an explicit c++rt0.o
  8970. # does not break anything, and helps significantly (at the cost of a little
  8971. # extra space).
  8972. freebsd2.2*)
  8973. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8974. hardcode_libdir_flag_spec='-R$libdir'
  8975. hardcode_direct=yes
  8976. hardcode_shlibpath_var=no
  8977. ;;
  8978. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8979. freebsd2*)
  8980. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8981. hardcode_direct=yes
  8982. hardcode_minus_L=yes
  8983. hardcode_shlibpath_var=no
  8984. ;;
  8985. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8986. freebsd* | dragonfly*)
  8987. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8988. hardcode_libdir_flag_spec='-R$libdir'
  8989. hardcode_direct=yes
  8990. hardcode_shlibpath_var=no
  8991. ;;
  8992. hpux9*)
  8993. if test "$GCC" = yes; then
  8994. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8995. else
  8996. 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'
  8997. fi
  8998. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8999. hardcode_libdir_separator=:
  9000. hardcode_direct=yes
  9001. # hardcode_minus_L: Not really in the search PATH,
  9002. # but as the default location of the library.
  9003. hardcode_minus_L=yes
  9004. export_dynamic_flag_spec='${wl}-E'
  9005. ;;
  9006. hpux10*)
  9007. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9008. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9009. else
  9010. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9011. fi
  9012. if test "$with_gnu_ld" = no; then
  9013. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9014. hardcode_libdir_flag_spec_ld='+b $libdir'
  9015. hardcode_libdir_separator=:
  9016. hardcode_direct=yes
  9017. hardcode_direct_absolute=yes
  9018. export_dynamic_flag_spec='${wl}-E'
  9019. # hardcode_minus_L: Not really in the search PATH,
  9020. # but as the default location of the library.
  9021. hardcode_minus_L=yes
  9022. fi
  9023. ;;
  9024. hpux11*)
  9025. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9026. case $host_cpu in
  9027. hppa*64*)
  9028. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9029. ;;
  9030. ia64*)
  9031. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9032. ;;
  9033. *)
  9034. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9035. ;;
  9036. esac
  9037. else
  9038. case $host_cpu in
  9039. hppa*64*)
  9040. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9041. ;;
  9042. ia64*)
  9043. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9044. ;;
  9045. *)
  9046. # Older versions of the 11.00 compiler do not understand -b yet
  9047. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9049. $as_echo_n "checking if $CC understands -b... " >&6; }
  9050. if ${lt_cv_prog_compiler__b+:} false; then :
  9051. $as_echo_n "(cached) " >&6
  9052. else
  9053. lt_cv_prog_compiler__b=no
  9054. save_LDFLAGS="$LDFLAGS"
  9055. LDFLAGS="$LDFLAGS -b"
  9056. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9057. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9058. # The linker can only warn and ignore the option if not recognized
  9059. # So say no if there are warnings
  9060. if test -s conftest.err; then
  9061. # Append any errors to the config.log.
  9062. cat conftest.err 1>&5
  9063. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9064. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9065. if diff conftest.exp conftest.er2 >/dev/null; then
  9066. lt_cv_prog_compiler__b=yes
  9067. fi
  9068. else
  9069. lt_cv_prog_compiler__b=yes
  9070. fi
  9071. fi
  9072. $RM -r conftest*
  9073. LDFLAGS="$save_LDFLAGS"
  9074. fi
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9076. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9077. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9078. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9079. else
  9080. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9081. fi
  9082. ;;
  9083. esac
  9084. fi
  9085. if test "$with_gnu_ld" = no; then
  9086. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9087. hardcode_libdir_separator=:
  9088. case $host_cpu in
  9089. hppa*64*|ia64*)
  9090. hardcode_direct=no
  9091. hardcode_shlibpath_var=no
  9092. ;;
  9093. *)
  9094. hardcode_direct=yes
  9095. hardcode_direct_absolute=yes
  9096. export_dynamic_flag_spec='${wl}-E'
  9097. # hardcode_minus_L: Not really in the search PATH,
  9098. # but as the default location of the library.
  9099. hardcode_minus_L=yes
  9100. ;;
  9101. esac
  9102. fi
  9103. ;;
  9104. irix5* | irix6* | nonstopux*)
  9105. if test "$GCC" = yes; then
  9106. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9107. # Try to use the -exported_symbol ld option, if it does not
  9108. # work, assume that -exports_file does not work either and
  9109. # implicitly export all symbols.
  9110. # This should be the same for all languages, so no per-tag cache variable.
  9111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9112. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9113. if ${lt_cv_irix_exported_symbol+:} false; then :
  9114. $as_echo_n "(cached) " >&6
  9115. else
  9116. save_LDFLAGS="$LDFLAGS"
  9117. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9119. /* end confdefs.h. */
  9120. int foo (void) { return 0; }
  9121. _ACEOF
  9122. if ac_fn_c_try_link "$LINENO"; then :
  9123. lt_cv_irix_exported_symbol=yes
  9124. else
  9125. lt_cv_irix_exported_symbol=no
  9126. fi
  9127. rm -f core conftest.err conftest.$ac_objext \
  9128. conftest$ac_exeext conftest.$ac_ext
  9129. LDFLAGS="$save_LDFLAGS"
  9130. fi
  9131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9132. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9133. if test "$lt_cv_irix_exported_symbol" = yes; then
  9134. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9135. fi
  9136. else
  9137. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9138. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9139. fi
  9140. archive_cmds_need_lc='no'
  9141. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9142. hardcode_libdir_separator=:
  9143. inherit_rpath=yes
  9144. link_all_deplibs=yes
  9145. ;;
  9146. netbsd*)
  9147. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9148. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9149. else
  9150. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9151. fi
  9152. hardcode_libdir_flag_spec='-R$libdir'
  9153. hardcode_direct=yes
  9154. hardcode_shlibpath_var=no
  9155. ;;
  9156. newsos6)
  9157. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9158. hardcode_direct=yes
  9159. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9160. hardcode_libdir_separator=:
  9161. hardcode_shlibpath_var=no
  9162. ;;
  9163. *nto* | *qnx*)
  9164. ;;
  9165. openbsd*)
  9166. if test -f /usr/libexec/ld.so; then
  9167. hardcode_direct=yes
  9168. hardcode_shlibpath_var=no
  9169. hardcode_direct_absolute=yes
  9170. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9171. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9172. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9173. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9174. export_dynamic_flag_spec='${wl}-E'
  9175. else
  9176. case $host_os in
  9177. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9178. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9179. hardcode_libdir_flag_spec='-R$libdir'
  9180. ;;
  9181. *)
  9182. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9183. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9184. ;;
  9185. esac
  9186. fi
  9187. else
  9188. ld_shlibs=no
  9189. fi
  9190. ;;
  9191. os2*)
  9192. hardcode_libdir_flag_spec='-L$libdir'
  9193. hardcode_minus_L=yes
  9194. allow_undefined_flag=unsupported
  9195. 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'
  9196. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9197. ;;
  9198. osf3*)
  9199. if test "$GCC" = yes; then
  9200. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9201. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9202. else
  9203. allow_undefined_flag=' -expect_unresolved \*'
  9204. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9205. fi
  9206. archive_cmds_need_lc='no'
  9207. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9208. hardcode_libdir_separator=:
  9209. ;;
  9210. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9211. if test "$GCC" = yes; then
  9212. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9213. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9214. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9215. else
  9216. allow_undefined_flag=' -expect_unresolved \*'
  9217. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9218. 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~
  9219. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9220. # Both c and cxx compiler support -rpath directly
  9221. hardcode_libdir_flag_spec='-rpath $libdir'
  9222. fi
  9223. archive_cmds_need_lc='no'
  9224. hardcode_libdir_separator=:
  9225. ;;
  9226. solaris*)
  9227. no_undefined_flag=' -z defs'
  9228. if test "$GCC" = yes; then
  9229. wlarc='${wl}'
  9230. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9231. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9232. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9233. else
  9234. case `$CC -V 2>&1` in
  9235. *"Compilers 5.0"*)
  9236. wlarc=''
  9237. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9238. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9239. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9240. ;;
  9241. *)
  9242. wlarc='${wl}'
  9243. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9244. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9245. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9246. ;;
  9247. esac
  9248. fi
  9249. hardcode_libdir_flag_spec='-R$libdir'
  9250. hardcode_shlibpath_var=no
  9251. case $host_os in
  9252. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9253. *)
  9254. # The compiler driver will combine and reorder linker options,
  9255. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9256. # but is careful enough not to reorder.
  9257. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9258. if test "$GCC" = yes; then
  9259. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9260. else
  9261. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9262. fi
  9263. ;;
  9264. esac
  9265. link_all_deplibs=yes
  9266. ;;
  9267. sunos4*)
  9268. if test "x$host_vendor" = xsequent; then
  9269. # Use $CC to link under sequent, because it throws in some extra .o
  9270. # files that make .init and .fini sections work.
  9271. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9272. else
  9273. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9274. fi
  9275. hardcode_libdir_flag_spec='-L$libdir'
  9276. hardcode_direct=yes
  9277. hardcode_minus_L=yes
  9278. hardcode_shlibpath_var=no
  9279. ;;
  9280. sysv4)
  9281. case $host_vendor in
  9282. sni)
  9283. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9284. hardcode_direct=yes # is this really true???
  9285. ;;
  9286. siemens)
  9287. ## LD is ld it makes a PLAMLIB
  9288. ## CC just makes a GrossModule.
  9289. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9290. reload_cmds='$CC -r -o $output$reload_objs'
  9291. hardcode_direct=no
  9292. ;;
  9293. motorola)
  9294. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9295. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9296. ;;
  9297. esac
  9298. runpath_var='LD_RUN_PATH'
  9299. hardcode_shlibpath_var=no
  9300. ;;
  9301. sysv4.3*)
  9302. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9303. hardcode_shlibpath_var=no
  9304. export_dynamic_flag_spec='-Bexport'
  9305. ;;
  9306. sysv4*MP*)
  9307. if test -d /usr/nec; then
  9308. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9309. hardcode_shlibpath_var=no
  9310. runpath_var=LD_RUN_PATH
  9311. hardcode_runpath_var=yes
  9312. ld_shlibs=yes
  9313. fi
  9314. ;;
  9315. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9316. no_undefined_flag='${wl}-z,text'
  9317. archive_cmds_need_lc=no
  9318. hardcode_shlibpath_var=no
  9319. runpath_var='LD_RUN_PATH'
  9320. if test "$GCC" = yes; then
  9321. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9322. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9323. else
  9324. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9325. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9326. fi
  9327. ;;
  9328. sysv5* | sco3.2v5* | sco5v6*)
  9329. # Note: We can NOT use -z defs as we might desire, because we do not
  9330. # link with -lc, and that would cause any symbols used from libc to
  9331. # always be unresolved, which means just about no library would
  9332. # ever link correctly. If we're not using GNU ld we use -z text
  9333. # though, which does catch some bad symbols but isn't as heavy-handed
  9334. # as -z defs.
  9335. no_undefined_flag='${wl}-z,text'
  9336. allow_undefined_flag='${wl}-z,nodefs'
  9337. archive_cmds_need_lc=no
  9338. hardcode_shlibpath_var=no
  9339. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9340. hardcode_libdir_separator=':'
  9341. link_all_deplibs=yes
  9342. export_dynamic_flag_spec='${wl}-Bexport'
  9343. runpath_var='LD_RUN_PATH'
  9344. if test "$GCC" = yes; then
  9345. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9346. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9347. else
  9348. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9349. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9350. fi
  9351. ;;
  9352. uts4*)
  9353. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9354. hardcode_libdir_flag_spec='-L$libdir'
  9355. hardcode_shlibpath_var=no
  9356. ;;
  9357. *)
  9358. ld_shlibs=no
  9359. ;;
  9360. esac
  9361. if test x$host_vendor = xsni; then
  9362. case $host in
  9363. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9364. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9365. ;;
  9366. esac
  9367. fi
  9368. fi
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9370. $as_echo "$ld_shlibs" >&6; }
  9371. test "$ld_shlibs" = no && can_build_shared=no
  9372. with_gnu_ld=$with_gnu_ld
  9373. #
  9374. # Do we need to explicitly link libc?
  9375. #
  9376. case "x$archive_cmds_need_lc" in
  9377. x|xyes)
  9378. # Assume -lc should be added
  9379. archive_cmds_need_lc=yes
  9380. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9381. case $archive_cmds in
  9382. *'~'*)
  9383. # FIXME: we may have to deal with multi-command sequences.
  9384. ;;
  9385. '$CC '*)
  9386. # Test whether the compiler implicitly links with -lc since on some
  9387. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9388. # to ld, don't add -lc before -lgcc.
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9390. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9391. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. $RM conftest*
  9395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9396. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9397. (eval $ac_compile) 2>&5
  9398. ac_status=$?
  9399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9400. test $ac_status = 0; } 2>conftest.err; then
  9401. soname=conftest
  9402. lib=conftest
  9403. libobjs=conftest.$ac_objext
  9404. deplibs=
  9405. wl=$lt_prog_compiler_wl
  9406. pic_flag=$lt_prog_compiler_pic
  9407. compiler_flags=-v
  9408. linker_flags=-v
  9409. verstring=
  9410. output_objdir=.
  9411. libname=conftest
  9412. lt_save_allow_undefined_flag=$allow_undefined_flag
  9413. allow_undefined_flag=
  9414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9415. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9416. ac_status=$?
  9417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9418. test $ac_status = 0; }
  9419. then
  9420. lt_cv_archive_cmds_need_lc=no
  9421. else
  9422. lt_cv_archive_cmds_need_lc=yes
  9423. fi
  9424. allow_undefined_flag=$lt_save_allow_undefined_flag
  9425. else
  9426. cat conftest.err 1>&5
  9427. fi
  9428. $RM conftest*
  9429. fi
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9431. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9432. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9433. ;;
  9434. esac
  9435. fi
  9436. ;;
  9437. esac
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9439. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9440. if test "$GCC" = yes; then
  9441. case $host_os in
  9442. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9443. *) lt_awk_arg="/^libraries:/" ;;
  9444. esac
  9445. case $host_os in
  9446. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9447. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9448. esac
  9449. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9450. case $lt_search_path_spec in
  9451. *\;*)
  9452. # if the path contains ";" then we assume it to be the separator
  9453. # otherwise default to the standard path separator (i.e. ":") - it is
  9454. # assumed that no part of a normal pathname contains ";" but that should
  9455. # okay in the real world where ";" in dirpaths is itself problematic.
  9456. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9457. ;;
  9458. *)
  9459. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9460. ;;
  9461. esac
  9462. # Ok, now we have the path, separated by spaces, we can step through it
  9463. # and add multilib dir if necessary.
  9464. lt_tmp_lt_search_path_spec=
  9465. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9466. for lt_sys_path in $lt_search_path_spec; do
  9467. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9468. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9469. else
  9470. test -d "$lt_sys_path" && \
  9471. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9472. fi
  9473. done
  9474. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9475. BEGIN {RS=" "; FS="/|\n";} {
  9476. lt_foo="";
  9477. lt_count=0;
  9478. for (lt_i = NF; lt_i > 0; lt_i--) {
  9479. if ($lt_i != "" && $lt_i != ".") {
  9480. if ($lt_i == "..") {
  9481. lt_count++;
  9482. } else {
  9483. if (lt_count == 0) {
  9484. lt_foo="/" $lt_i lt_foo;
  9485. } else {
  9486. lt_count--;
  9487. }
  9488. }
  9489. }
  9490. }
  9491. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9492. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9493. }'`
  9494. # AWK program above erroneously prepends '/' to C:/dos/paths
  9495. # for these hosts.
  9496. case $host_os in
  9497. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9498. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9499. esac
  9500. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9501. else
  9502. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9503. fi
  9504. library_names_spec=
  9505. libname_spec='lib$name'
  9506. soname_spec=
  9507. shrext_cmds=".so"
  9508. postinstall_cmds=
  9509. postuninstall_cmds=
  9510. finish_cmds=
  9511. finish_eval=
  9512. shlibpath_var=
  9513. shlibpath_overrides_runpath=unknown
  9514. version_type=none
  9515. dynamic_linker="$host_os ld.so"
  9516. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9517. need_lib_prefix=unknown
  9518. hardcode_into_libs=no
  9519. # when you set need_version to no, make sure it does not cause -set_version
  9520. # flags to be left without arguments
  9521. need_version=unknown
  9522. case $host_os in
  9523. aix3*)
  9524. version_type=linux
  9525. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9526. shlibpath_var=LIBPATH
  9527. # AIX 3 has no versioning support, so we append a major version to the name.
  9528. soname_spec='${libname}${release}${shared_ext}$major'
  9529. ;;
  9530. aix[4-9]*)
  9531. version_type=linux
  9532. need_lib_prefix=no
  9533. need_version=no
  9534. hardcode_into_libs=yes
  9535. if test "$host_cpu" = ia64; then
  9536. # AIX 5 supports IA64
  9537. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9538. shlibpath_var=LD_LIBRARY_PATH
  9539. else
  9540. # With GCC up to 2.95.x, collect2 would create an import file
  9541. # for dependence libraries. The import file would start with
  9542. # the line `#! .'. This would cause the generated library to
  9543. # depend on `.', always an invalid library. This was fixed in
  9544. # development snapshots of GCC prior to 3.0.
  9545. case $host_os in
  9546. aix4 | aix4.[01] | aix4.[01].*)
  9547. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9548. echo ' yes '
  9549. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9550. :
  9551. else
  9552. can_build_shared=no
  9553. fi
  9554. ;;
  9555. esac
  9556. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9557. # soname into executable. Probably we can add versioning support to
  9558. # collect2, so additional links can be useful in future.
  9559. if test "$aix_use_runtimelinking" = yes; then
  9560. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9561. # instead of lib<name>.a to let people know that these are not
  9562. # typical AIX shared libraries.
  9563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9564. else
  9565. # We preserve .a as extension for shared libraries through AIX4.2
  9566. # and later when we are not doing run time linking.
  9567. library_names_spec='${libname}${release}.a $libname.a'
  9568. soname_spec='${libname}${release}${shared_ext}$major'
  9569. fi
  9570. shlibpath_var=LIBPATH
  9571. fi
  9572. ;;
  9573. amigaos*)
  9574. case $host_cpu in
  9575. powerpc)
  9576. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9577. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9579. ;;
  9580. m68k)
  9581. library_names_spec='$libname.ixlibrary $libname.a'
  9582. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9583. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9584. ;;
  9585. esac
  9586. ;;
  9587. beos*)
  9588. library_names_spec='${libname}${shared_ext}'
  9589. dynamic_linker="$host_os ld.so"
  9590. shlibpath_var=LIBRARY_PATH
  9591. ;;
  9592. bsdi[45]*)
  9593. version_type=linux
  9594. need_version=no
  9595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9596. soname_spec='${libname}${release}${shared_ext}$major'
  9597. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9600. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9601. # the default ld.so.conf also contains /usr/contrib/lib and
  9602. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9603. # libtool to hard-code these into programs
  9604. ;;
  9605. cygwin* | mingw* | pw32* | cegcc*)
  9606. version_type=windows
  9607. shrext_cmds=".dll"
  9608. need_version=no
  9609. need_lib_prefix=no
  9610. case $GCC,$cc_basename in
  9611. yes,*)
  9612. # gcc
  9613. library_names_spec='$libname.dll.a'
  9614. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9615. postinstall_cmds='base_file=`basename \${file}`~
  9616. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9617. dldir=$destdir/`dirname \$dlpath`~
  9618. test -d \$dldir || mkdir -p \$dldir~
  9619. $install_prog $dir/$dlname \$dldir/$dlname~
  9620. chmod a+x \$dldir/$dlname~
  9621. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9622. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9623. fi'
  9624. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9625. dlpath=$dir/\$dldll~
  9626. $RM \$dlpath'
  9627. shlibpath_overrides_runpath=yes
  9628. case $host_os in
  9629. cygwin*)
  9630. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9631. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9632. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9633. ;;
  9634. mingw* | cegcc*)
  9635. # MinGW DLLs use traditional 'lib' prefix
  9636. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9637. ;;
  9638. pw32*)
  9639. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9640. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9641. ;;
  9642. esac
  9643. dynamic_linker='Win32 ld.exe'
  9644. ;;
  9645. *,cl*)
  9646. # Native MSVC
  9647. libname_spec='$name'
  9648. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9649. library_names_spec='${libname}.dll.lib'
  9650. case $build_os in
  9651. mingw*)
  9652. sys_lib_search_path_spec=
  9653. lt_save_ifs=$IFS
  9654. IFS=';'
  9655. for lt_path in $LIB
  9656. do
  9657. IFS=$lt_save_ifs
  9658. # Let DOS variable expansion print the short 8.3 style file name.
  9659. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9660. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9661. done
  9662. IFS=$lt_save_ifs
  9663. # Convert to MSYS style.
  9664. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9665. ;;
  9666. cygwin*)
  9667. # Convert to unix form, then to dos form, then back to unix form
  9668. # but this time dos style (no spaces!) so that the unix form looks
  9669. # like /cygdrive/c/PROGRA~1:/cygdr...
  9670. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9671. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9672. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9673. ;;
  9674. *)
  9675. sys_lib_search_path_spec="$LIB"
  9676. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9677. # It is most probably a Windows format PATH.
  9678. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9679. else
  9680. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9681. fi
  9682. # FIXME: find the short name or the path components, as spaces are
  9683. # common. (e.g. "Program Files" -> "PROGRA~1")
  9684. ;;
  9685. esac
  9686. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9687. postinstall_cmds='base_file=`basename \${file}`~
  9688. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9689. dldir=$destdir/`dirname \$dlpath`~
  9690. test -d \$dldir || mkdir -p \$dldir~
  9691. $install_prog $dir/$dlname \$dldir/$dlname'
  9692. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9693. dlpath=$dir/\$dldll~
  9694. $RM \$dlpath'
  9695. shlibpath_overrides_runpath=yes
  9696. dynamic_linker='Win32 link.exe'
  9697. ;;
  9698. *)
  9699. # Assume MSVC wrapper
  9700. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9701. dynamic_linker='Win32 ld.exe'
  9702. ;;
  9703. esac
  9704. # FIXME: first we should search . and the directory the executable is in
  9705. shlibpath_var=PATH
  9706. ;;
  9707. darwin* | rhapsody*)
  9708. dynamic_linker="$host_os dyld"
  9709. version_type=darwin
  9710. need_lib_prefix=no
  9711. need_version=no
  9712. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9713. soname_spec='${libname}${release}${major}$shared_ext'
  9714. shlibpath_overrides_runpath=yes
  9715. shlibpath_var=DYLD_LIBRARY_PATH
  9716. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9717. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9718. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9719. ;;
  9720. dgux*)
  9721. version_type=linux
  9722. need_lib_prefix=no
  9723. need_version=no
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9725. soname_spec='${libname}${release}${shared_ext}$major'
  9726. shlibpath_var=LD_LIBRARY_PATH
  9727. ;;
  9728. freebsd1*)
  9729. dynamic_linker=no
  9730. ;;
  9731. freebsd* | dragonfly*)
  9732. # DragonFly does not have aout. When/if they implement a new
  9733. # versioning mechanism, adjust this.
  9734. if test -x /usr/bin/objformat; then
  9735. objformat=`/usr/bin/objformat`
  9736. else
  9737. case $host_os in
  9738. freebsd[123]*) objformat=aout ;;
  9739. *) objformat=elf ;;
  9740. esac
  9741. fi
  9742. version_type=freebsd-$objformat
  9743. case $version_type in
  9744. freebsd-elf*)
  9745. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9746. need_version=no
  9747. need_lib_prefix=no
  9748. ;;
  9749. freebsd-*)
  9750. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9751. need_version=yes
  9752. ;;
  9753. esac
  9754. shlibpath_var=LD_LIBRARY_PATH
  9755. case $host_os in
  9756. freebsd2*)
  9757. shlibpath_overrides_runpath=yes
  9758. ;;
  9759. freebsd3.[01]* | freebsdelf3.[01]*)
  9760. shlibpath_overrides_runpath=yes
  9761. hardcode_into_libs=yes
  9762. ;;
  9763. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9764. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9765. shlibpath_overrides_runpath=no
  9766. hardcode_into_libs=yes
  9767. ;;
  9768. *) # from 4.6 on, and DragonFly
  9769. shlibpath_overrides_runpath=yes
  9770. hardcode_into_libs=yes
  9771. ;;
  9772. esac
  9773. ;;
  9774. gnu*)
  9775. version_type=linux
  9776. need_lib_prefix=no
  9777. need_version=no
  9778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9779. soname_spec='${libname}${release}${shared_ext}$major'
  9780. shlibpath_var=LD_LIBRARY_PATH
  9781. hardcode_into_libs=yes
  9782. ;;
  9783. haiku*)
  9784. version_type=linux
  9785. need_lib_prefix=no
  9786. need_version=no
  9787. dynamic_linker="$host_os runtime_loader"
  9788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9789. soname_spec='${libname}${release}${shared_ext}$major'
  9790. shlibpath_var=LIBRARY_PATH
  9791. shlibpath_overrides_runpath=yes
  9792. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9793. hardcode_into_libs=yes
  9794. ;;
  9795. hpux9* | hpux10* | hpux11*)
  9796. # Give a soname corresponding to the major version so that dld.sl refuses to
  9797. # link against other versions.
  9798. version_type=sunos
  9799. need_lib_prefix=no
  9800. need_version=no
  9801. case $host_cpu in
  9802. ia64*)
  9803. shrext_cmds='.so'
  9804. hardcode_into_libs=yes
  9805. dynamic_linker="$host_os dld.so"
  9806. shlibpath_var=LD_LIBRARY_PATH
  9807. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. if test "X$HPUX_IA64_MODE" = X32; then
  9811. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9812. else
  9813. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9814. fi
  9815. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9816. ;;
  9817. hppa*64*)
  9818. shrext_cmds='.sl'
  9819. hardcode_into_libs=yes
  9820. dynamic_linker="$host_os dld.sl"
  9821. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9822. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9823. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9824. soname_spec='${libname}${release}${shared_ext}$major'
  9825. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9826. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9827. ;;
  9828. *)
  9829. shrext_cmds='.sl'
  9830. dynamic_linker="$host_os dld.sl"
  9831. shlibpath_var=SHLIB_PATH
  9832. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9834. soname_spec='${libname}${release}${shared_ext}$major'
  9835. ;;
  9836. esac
  9837. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9838. postinstall_cmds='chmod 555 $lib'
  9839. # or fails outright, so override atomically:
  9840. install_override_mode=555
  9841. ;;
  9842. interix[3-9]*)
  9843. version_type=linux
  9844. need_lib_prefix=no
  9845. need_version=no
  9846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9847. soname_spec='${libname}${release}${shared_ext}$major'
  9848. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9849. shlibpath_var=LD_LIBRARY_PATH
  9850. shlibpath_overrides_runpath=no
  9851. hardcode_into_libs=yes
  9852. ;;
  9853. irix5* | irix6* | nonstopux*)
  9854. case $host_os in
  9855. nonstopux*) version_type=nonstopux ;;
  9856. *)
  9857. if test "$lt_cv_prog_gnu_ld" = yes; then
  9858. version_type=linux
  9859. else
  9860. version_type=irix
  9861. fi ;;
  9862. esac
  9863. need_lib_prefix=no
  9864. need_version=no
  9865. soname_spec='${libname}${release}${shared_ext}$major'
  9866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9867. case $host_os in
  9868. irix5* | nonstopux*)
  9869. libsuff= shlibsuff=
  9870. ;;
  9871. *)
  9872. case $LD in # libtool.m4 will add one of these switches to LD
  9873. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9874. libsuff= shlibsuff= libmagic=32-bit;;
  9875. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9876. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9877. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9878. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9879. *) libsuff= shlibsuff= libmagic=never-match;;
  9880. esac
  9881. ;;
  9882. esac
  9883. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9884. shlibpath_overrides_runpath=no
  9885. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9886. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9887. hardcode_into_libs=yes
  9888. ;;
  9889. # No shared lib support for Linux oldld, aout, or coff.
  9890. linux*oldld* | linux*aout* | linux*coff*)
  9891. dynamic_linker=no
  9892. ;;
  9893. # This must be Linux ELF.
  9894. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9895. version_type=linux
  9896. need_lib_prefix=no
  9897. need_version=no
  9898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9899. soname_spec='${libname}${release}${shared_ext}$major'
  9900. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9901. shlibpath_var=LD_LIBRARY_PATH
  9902. shlibpath_overrides_runpath=no
  9903. # Some binutils ld are patched to set DT_RUNPATH
  9904. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9905. $as_echo_n "(cached) " >&6
  9906. else
  9907. lt_cv_shlibpath_overrides_runpath=no
  9908. save_LDFLAGS=$LDFLAGS
  9909. save_libdir=$libdir
  9910. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9911. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9913. /* end confdefs.h. */
  9914. int
  9915. main ()
  9916. {
  9917. ;
  9918. return 0;
  9919. }
  9920. _ACEOF
  9921. if ac_fn_c_try_link "$LINENO"; then :
  9922. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9923. lt_cv_shlibpath_overrides_runpath=yes
  9924. fi
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext \
  9927. conftest$ac_exeext conftest.$ac_ext
  9928. LDFLAGS=$save_LDFLAGS
  9929. libdir=$save_libdir
  9930. fi
  9931. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9932. # This implies no fast_install, which is unacceptable.
  9933. # Some rework will be needed to allow for fast_install
  9934. # before this can be enabled.
  9935. hardcode_into_libs=yes
  9936. # Add ABI-specific directories to the system library path.
  9937. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9938. # Append ld.so.conf contents to the search path
  9939. if test -f /etc/ld.so.conf; then
  9940. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9941. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9942. fi
  9943. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9944. # powerpc, because MkLinux only supported shared libraries with the
  9945. # GNU dynamic linker. Since this was broken with cross compilers,
  9946. # most powerpc-linux boxes support dynamic linking these days and
  9947. # people can always --disable-shared, the test was removed, and we
  9948. # assume the GNU/Linux dynamic linker is in use.
  9949. dynamic_linker='GNU/Linux ld.so'
  9950. ;;
  9951. netbsd*)
  9952. version_type=sunos
  9953. need_lib_prefix=no
  9954. need_version=no
  9955. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9957. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9958. dynamic_linker='NetBSD (a.out) ld.so'
  9959. else
  9960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9961. soname_spec='${libname}${release}${shared_ext}$major'
  9962. dynamic_linker='NetBSD ld.elf_so'
  9963. fi
  9964. shlibpath_var=LD_LIBRARY_PATH
  9965. shlibpath_overrides_runpath=yes
  9966. hardcode_into_libs=yes
  9967. ;;
  9968. newsos6)
  9969. version_type=linux
  9970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9971. shlibpath_var=LD_LIBRARY_PATH
  9972. shlibpath_overrides_runpath=yes
  9973. ;;
  9974. *nto* | *qnx*)
  9975. version_type=qnx
  9976. need_lib_prefix=no
  9977. need_version=no
  9978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9979. soname_spec='${libname}${release}${shared_ext}$major'
  9980. shlibpath_var=LD_LIBRARY_PATH
  9981. shlibpath_overrides_runpath=no
  9982. hardcode_into_libs=yes
  9983. dynamic_linker='ldqnx.so'
  9984. ;;
  9985. openbsd*)
  9986. version_type=sunos
  9987. sys_lib_dlsearch_path_spec="/usr/lib"
  9988. need_lib_prefix=no
  9989. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9990. case $host_os in
  9991. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9992. *) need_version=no ;;
  9993. esac
  9994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9998. case $host_os in
  9999. openbsd2.[89] | openbsd2.[89].*)
  10000. shlibpath_overrides_runpath=no
  10001. ;;
  10002. *)
  10003. shlibpath_overrides_runpath=yes
  10004. ;;
  10005. esac
  10006. else
  10007. shlibpath_overrides_runpath=yes
  10008. fi
  10009. ;;
  10010. os2*)
  10011. libname_spec='$name'
  10012. shrext_cmds=".dll"
  10013. need_lib_prefix=no
  10014. library_names_spec='$libname${shared_ext} $libname.a'
  10015. dynamic_linker='OS/2 ld.exe'
  10016. shlibpath_var=LIBPATH
  10017. ;;
  10018. osf3* | osf4* | osf5*)
  10019. version_type=osf
  10020. need_lib_prefix=no
  10021. need_version=no
  10022. soname_spec='${libname}${release}${shared_ext}$major'
  10023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10024. shlibpath_var=LD_LIBRARY_PATH
  10025. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10026. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10027. ;;
  10028. rdos*)
  10029. dynamic_linker=no
  10030. ;;
  10031. solaris*)
  10032. version_type=linux
  10033. need_lib_prefix=no
  10034. need_version=no
  10035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10036. soname_spec='${libname}${release}${shared_ext}$major'
  10037. shlibpath_var=LD_LIBRARY_PATH
  10038. shlibpath_overrides_runpath=yes
  10039. hardcode_into_libs=yes
  10040. # ldd complains unless libraries are executable
  10041. postinstall_cmds='chmod +x $lib'
  10042. ;;
  10043. sunos4*)
  10044. version_type=sunos
  10045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10046. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10047. shlibpath_var=LD_LIBRARY_PATH
  10048. shlibpath_overrides_runpath=yes
  10049. if test "$with_gnu_ld" = yes; then
  10050. need_lib_prefix=no
  10051. fi
  10052. need_version=yes
  10053. ;;
  10054. sysv4 | sysv4.3*)
  10055. version_type=linux
  10056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10057. soname_spec='${libname}${release}${shared_ext}$major'
  10058. shlibpath_var=LD_LIBRARY_PATH
  10059. case $host_vendor in
  10060. sni)
  10061. shlibpath_overrides_runpath=no
  10062. need_lib_prefix=no
  10063. runpath_var=LD_RUN_PATH
  10064. ;;
  10065. siemens)
  10066. need_lib_prefix=no
  10067. ;;
  10068. motorola)
  10069. need_lib_prefix=no
  10070. need_version=no
  10071. shlibpath_overrides_runpath=no
  10072. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10073. ;;
  10074. esac
  10075. ;;
  10076. sysv4*MP*)
  10077. if test -d /usr/nec ;then
  10078. version_type=linux
  10079. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10080. soname_spec='$libname${shared_ext}.$major'
  10081. shlibpath_var=LD_LIBRARY_PATH
  10082. fi
  10083. ;;
  10084. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10085. version_type=freebsd-elf
  10086. need_lib_prefix=no
  10087. need_version=no
  10088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10089. soname_spec='${libname}${release}${shared_ext}$major'
  10090. shlibpath_var=LD_LIBRARY_PATH
  10091. shlibpath_overrides_runpath=yes
  10092. hardcode_into_libs=yes
  10093. if test "$with_gnu_ld" = yes; then
  10094. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10095. else
  10096. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10097. case $host_os in
  10098. sco3.2v5*)
  10099. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10100. ;;
  10101. esac
  10102. fi
  10103. sys_lib_dlsearch_path_spec='/usr/lib'
  10104. ;;
  10105. tpf*)
  10106. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10107. version_type=linux
  10108. need_lib_prefix=no
  10109. need_version=no
  10110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10111. shlibpath_var=LD_LIBRARY_PATH
  10112. shlibpath_overrides_runpath=no
  10113. hardcode_into_libs=yes
  10114. ;;
  10115. uts4*)
  10116. version_type=linux
  10117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10118. soname_spec='${libname}${release}${shared_ext}$major'
  10119. shlibpath_var=LD_LIBRARY_PATH
  10120. ;;
  10121. *)
  10122. dynamic_linker=no
  10123. ;;
  10124. esac
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10126. $as_echo "$dynamic_linker" >&6; }
  10127. test "$dynamic_linker" = no && can_build_shared=no
  10128. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10129. if test "$GCC" = yes; then
  10130. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10131. fi
  10132. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10133. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10134. fi
  10135. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10136. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10137. fi
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10139. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10140. hardcode_action=
  10141. if test -n "$hardcode_libdir_flag_spec" ||
  10142. test -n "$runpath_var" ||
  10143. test "X$hardcode_automatic" = "Xyes" ; then
  10144. # We can hardcode non-existent directories.
  10145. if test "$hardcode_direct" != no &&
  10146. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10147. # have to relink, otherwise we might link with an installed library
  10148. # when we should be linking with a yet-to-be-installed one
  10149. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10150. test "$hardcode_minus_L" != no; then
  10151. # Linking always hardcodes the temporary library directory.
  10152. hardcode_action=relink
  10153. else
  10154. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10155. hardcode_action=immediate
  10156. fi
  10157. else
  10158. # We cannot hardcode anything, or else we can only hardcode existing
  10159. # directories.
  10160. hardcode_action=unsupported
  10161. fi
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10163. $as_echo "$hardcode_action" >&6; }
  10164. if test "$hardcode_action" = relink ||
  10165. test "$inherit_rpath" = yes; then
  10166. # Fast installation is not supported
  10167. enable_fast_install=no
  10168. elif test "$shlibpath_overrides_runpath" = yes ||
  10169. test "$enable_shared" = no; then
  10170. # Fast installation is not necessary
  10171. enable_fast_install=needless
  10172. fi
  10173. if test "x$enable_dlopen" != xyes; then
  10174. enable_dlopen=unknown
  10175. enable_dlopen_self=unknown
  10176. enable_dlopen_self_static=unknown
  10177. else
  10178. lt_cv_dlopen=no
  10179. lt_cv_dlopen_libs=
  10180. case $host_os in
  10181. beos*)
  10182. lt_cv_dlopen="load_add_on"
  10183. lt_cv_dlopen_libs=
  10184. lt_cv_dlopen_self=yes
  10185. ;;
  10186. mingw* | pw32* | cegcc*)
  10187. lt_cv_dlopen="LoadLibrary"
  10188. lt_cv_dlopen_libs=
  10189. ;;
  10190. cygwin*)
  10191. lt_cv_dlopen="dlopen"
  10192. lt_cv_dlopen_libs=
  10193. ;;
  10194. darwin*)
  10195. # if libdl is installed we need to link against it
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10197. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10198. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10199. $as_echo_n "(cached) " >&6
  10200. else
  10201. ac_check_lib_save_LIBS=$LIBS
  10202. LIBS="-ldl $LIBS"
  10203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10204. /* end confdefs.h. */
  10205. /* Override any GCC internal prototype to avoid an error.
  10206. Use char because int might match the return type of a GCC
  10207. builtin and then its argument prototype would still apply. */
  10208. #ifdef __cplusplus
  10209. extern "C"
  10210. #endif
  10211. char dlopen ();
  10212. int
  10213. main ()
  10214. {
  10215. return dlopen ();
  10216. ;
  10217. return 0;
  10218. }
  10219. _ACEOF
  10220. if ac_fn_c_try_link "$LINENO"; then :
  10221. ac_cv_lib_dl_dlopen=yes
  10222. else
  10223. ac_cv_lib_dl_dlopen=no
  10224. fi
  10225. rm -f core conftest.err conftest.$ac_objext \
  10226. conftest$ac_exeext conftest.$ac_ext
  10227. LIBS=$ac_check_lib_save_LIBS
  10228. fi
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10230. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10231. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10232. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10233. else
  10234. lt_cv_dlopen="dyld"
  10235. lt_cv_dlopen_libs=
  10236. lt_cv_dlopen_self=yes
  10237. fi
  10238. ;;
  10239. *)
  10240. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10241. if test "x$ac_cv_func_shl_load" = xyes; then :
  10242. lt_cv_dlopen="shl_load"
  10243. else
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10245. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10246. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10247. $as_echo_n "(cached) " >&6
  10248. else
  10249. ac_check_lib_save_LIBS=$LIBS
  10250. LIBS="-ldld $LIBS"
  10251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10252. /* end confdefs.h. */
  10253. /* Override any GCC internal prototype to avoid an error.
  10254. Use char because int might match the return type of a GCC
  10255. builtin and then its argument prototype would still apply. */
  10256. #ifdef __cplusplus
  10257. extern "C"
  10258. #endif
  10259. char shl_load ();
  10260. int
  10261. main ()
  10262. {
  10263. return shl_load ();
  10264. ;
  10265. return 0;
  10266. }
  10267. _ACEOF
  10268. if ac_fn_c_try_link "$LINENO"; then :
  10269. ac_cv_lib_dld_shl_load=yes
  10270. else
  10271. ac_cv_lib_dld_shl_load=no
  10272. fi
  10273. rm -f core conftest.err conftest.$ac_objext \
  10274. conftest$ac_exeext conftest.$ac_ext
  10275. LIBS=$ac_check_lib_save_LIBS
  10276. fi
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10278. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10279. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10280. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10281. else
  10282. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10283. if test "x$ac_cv_func_dlopen" = xyes; then :
  10284. lt_cv_dlopen="dlopen"
  10285. else
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10287. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10288. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10289. $as_echo_n "(cached) " >&6
  10290. else
  10291. ac_check_lib_save_LIBS=$LIBS
  10292. LIBS="-ldl $LIBS"
  10293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10294. /* end confdefs.h. */
  10295. /* Override any GCC internal prototype to avoid an error.
  10296. Use char because int might match the return type of a GCC
  10297. builtin and then its argument prototype would still apply. */
  10298. #ifdef __cplusplus
  10299. extern "C"
  10300. #endif
  10301. char dlopen ();
  10302. int
  10303. main ()
  10304. {
  10305. return dlopen ();
  10306. ;
  10307. return 0;
  10308. }
  10309. _ACEOF
  10310. if ac_fn_c_try_link "$LINENO"; then :
  10311. ac_cv_lib_dl_dlopen=yes
  10312. else
  10313. ac_cv_lib_dl_dlopen=no
  10314. fi
  10315. rm -f core conftest.err conftest.$ac_objext \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. LIBS=$ac_check_lib_save_LIBS
  10318. fi
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10320. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10321. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10322. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10323. else
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10325. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10326. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10327. $as_echo_n "(cached) " >&6
  10328. else
  10329. ac_check_lib_save_LIBS=$LIBS
  10330. LIBS="-lsvld $LIBS"
  10331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10332. /* end confdefs.h. */
  10333. /* Override any GCC internal prototype to avoid an error.
  10334. Use char because int might match the return type of a GCC
  10335. builtin and then its argument prototype would still apply. */
  10336. #ifdef __cplusplus
  10337. extern "C"
  10338. #endif
  10339. char dlopen ();
  10340. int
  10341. main ()
  10342. {
  10343. return dlopen ();
  10344. ;
  10345. return 0;
  10346. }
  10347. _ACEOF
  10348. if ac_fn_c_try_link "$LINENO"; then :
  10349. ac_cv_lib_svld_dlopen=yes
  10350. else
  10351. ac_cv_lib_svld_dlopen=no
  10352. fi
  10353. rm -f core conftest.err conftest.$ac_objext \
  10354. conftest$ac_exeext conftest.$ac_ext
  10355. LIBS=$ac_check_lib_save_LIBS
  10356. fi
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10358. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10359. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10360. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10361. else
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10363. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10364. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10365. $as_echo_n "(cached) " >&6
  10366. else
  10367. ac_check_lib_save_LIBS=$LIBS
  10368. LIBS="-ldld $LIBS"
  10369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10370. /* end confdefs.h. */
  10371. /* Override any GCC internal prototype to avoid an error.
  10372. Use char because int might match the return type of a GCC
  10373. builtin and then its argument prototype would still apply. */
  10374. #ifdef __cplusplus
  10375. extern "C"
  10376. #endif
  10377. char dld_link ();
  10378. int
  10379. main ()
  10380. {
  10381. return dld_link ();
  10382. ;
  10383. return 0;
  10384. }
  10385. _ACEOF
  10386. if ac_fn_c_try_link "$LINENO"; then :
  10387. ac_cv_lib_dld_dld_link=yes
  10388. else
  10389. ac_cv_lib_dld_dld_link=no
  10390. fi
  10391. rm -f core conftest.err conftest.$ac_objext \
  10392. conftest$ac_exeext conftest.$ac_ext
  10393. LIBS=$ac_check_lib_save_LIBS
  10394. fi
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10396. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10397. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10398. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10399. fi
  10400. fi
  10401. fi
  10402. fi
  10403. fi
  10404. fi
  10405. ;;
  10406. esac
  10407. if test "x$lt_cv_dlopen" != xno; then
  10408. enable_dlopen=yes
  10409. else
  10410. enable_dlopen=no
  10411. fi
  10412. case $lt_cv_dlopen in
  10413. dlopen)
  10414. save_CPPFLAGS="$CPPFLAGS"
  10415. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10416. save_LDFLAGS="$LDFLAGS"
  10417. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10418. save_LIBS="$LIBS"
  10419. LIBS="$lt_cv_dlopen_libs $LIBS"
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10421. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10422. if ${lt_cv_dlopen_self+:} false; then :
  10423. $as_echo_n "(cached) " >&6
  10424. else
  10425. if test "$cross_compiling" = yes; then :
  10426. lt_cv_dlopen_self=cross
  10427. else
  10428. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10429. lt_status=$lt_dlunknown
  10430. cat > conftest.$ac_ext <<_LT_EOF
  10431. #line $LINENO "configure"
  10432. #include "confdefs.h"
  10433. #if HAVE_DLFCN_H
  10434. #include <dlfcn.h>
  10435. #endif
  10436. #include <stdio.h>
  10437. #ifdef RTLD_GLOBAL
  10438. # define LT_DLGLOBAL RTLD_GLOBAL
  10439. #else
  10440. # ifdef DL_GLOBAL
  10441. # define LT_DLGLOBAL DL_GLOBAL
  10442. # else
  10443. # define LT_DLGLOBAL 0
  10444. # endif
  10445. #endif
  10446. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10447. find out it does not work in some platform. */
  10448. #ifndef LT_DLLAZY_OR_NOW
  10449. # ifdef RTLD_LAZY
  10450. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10451. # else
  10452. # ifdef DL_LAZY
  10453. # define LT_DLLAZY_OR_NOW DL_LAZY
  10454. # else
  10455. # ifdef RTLD_NOW
  10456. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10457. # else
  10458. # ifdef DL_NOW
  10459. # define LT_DLLAZY_OR_NOW DL_NOW
  10460. # else
  10461. # define LT_DLLAZY_OR_NOW 0
  10462. # endif
  10463. # endif
  10464. # endif
  10465. # endif
  10466. #endif
  10467. /* When -fvisbility=hidden is used, assume the code has been annotated
  10468. correspondingly for the symbols needed. */
  10469. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10470. int fnord () __attribute__((visibility("default")));
  10471. #endif
  10472. int fnord () { return 42; }
  10473. int main ()
  10474. {
  10475. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10476. int status = $lt_dlunknown;
  10477. if (self)
  10478. {
  10479. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10480. else
  10481. {
  10482. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10483. else puts (dlerror ());
  10484. }
  10485. /* dlclose (self); */
  10486. }
  10487. else
  10488. puts (dlerror ());
  10489. return status;
  10490. }
  10491. _LT_EOF
  10492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10493. (eval $ac_link) 2>&5
  10494. ac_status=$?
  10495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10496. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10497. (./conftest; exit; ) >&5 2>/dev/null
  10498. lt_status=$?
  10499. case x$lt_status in
  10500. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10501. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10502. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10503. esac
  10504. else :
  10505. # compilation failed
  10506. lt_cv_dlopen_self=no
  10507. fi
  10508. fi
  10509. rm -fr conftest*
  10510. fi
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10512. $as_echo "$lt_cv_dlopen_self" >&6; }
  10513. if test "x$lt_cv_dlopen_self" = xyes; then
  10514. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10516. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10517. if ${lt_cv_dlopen_self_static+:} false; then :
  10518. $as_echo_n "(cached) " >&6
  10519. else
  10520. if test "$cross_compiling" = yes; then :
  10521. lt_cv_dlopen_self_static=cross
  10522. else
  10523. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10524. lt_status=$lt_dlunknown
  10525. cat > conftest.$ac_ext <<_LT_EOF
  10526. #line $LINENO "configure"
  10527. #include "confdefs.h"
  10528. #if HAVE_DLFCN_H
  10529. #include <dlfcn.h>
  10530. #endif
  10531. #include <stdio.h>
  10532. #ifdef RTLD_GLOBAL
  10533. # define LT_DLGLOBAL RTLD_GLOBAL
  10534. #else
  10535. # ifdef DL_GLOBAL
  10536. # define LT_DLGLOBAL DL_GLOBAL
  10537. # else
  10538. # define LT_DLGLOBAL 0
  10539. # endif
  10540. #endif
  10541. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10542. find out it does not work in some platform. */
  10543. #ifndef LT_DLLAZY_OR_NOW
  10544. # ifdef RTLD_LAZY
  10545. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10546. # else
  10547. # ifdef DL_LAZY
  10548. # define LT_DLLAZY_OR_NOW DL_LAZY
  10549. # else
  10550. # ifdef RTLD_NOW
  10551. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10552. # else
  10553. # ifdef DL_NOW
  10554. # define LT_DLLAZY_OR_NOW DL_NOW
  10555. # else
  10556. # define LT_DLLAZY_OR_NOW 0
  10557. # endif
  10558. # endif
  10559. # endif
  10560. # endif
  10561. #endif
  10562. /* When -fvisbility=hidden is used, assume the code has been annotated
  10563. correspondingly for the symbols needed. */
  10564. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10565. int fnord () __attribute__((visibility("default")));
  10566. #endif
  10567. int fnord () { return 42; }
  10568. int main ()
  10569. {
  10570. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10571. int status = $lt_dlunknown;
  10572. if (self)
  10573. {
  10574. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10575. else
  10576. {
  10577. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10578. else puts (dlerror ());
  10579. }
  10580. /* dlclose (self); */
  10581. }
  10582. else
  10583. puts (dlerror ());
  10584. return status;
  10585. }
  10586. _LT_EOF
  10587. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10588. (eval $ac_link) 2>&5
  10589. ac_status=$?
  10590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10591. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10592. (./conftest; exit; ) >&5 2>/dev/null
  10593. lt_status=$?
  10594. case x$lt_status in
  10595. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10596. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10597. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10598. esac
  10599. else :
  10600. # compilation failed
  10601. lt_cv_dlopen_self_static=no
  10602. fi
  10603. fi
  10604. rm -fr conftest*
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10607. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10608. fi
  10609. CPPFLAGS="$save_CPPFLAGS"
  10610. LDFLAGS="$save_LDFLAGS"
  10611. LIBS="$save_LIBS"
  10612. ;;
  10613. esac
  10614. case $lt_cv_dlopen_self in
  10615. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10616. *) enable_dlopen_self=unknown ;;
  10617. esac
  10618. case $lt_cv_dlopen_self_static in
  10619. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10620. *) enable_dlopen_self_static=unknown ;;
  10621. esac
  10622. fi
  10623. striplib=
  10624. old_striplib=
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10626. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10627. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10628. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10629. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10631. $as_echo "yes" >&6; }
  10632. else
  10633. # FIXME - insert some real tests, host_os isn't really good enough
  10634. case $host_os in
  10635. darwin*)
  10636. if test -n "$STRIP" ; then
  10637. striplib="$STRIP -x"
  10638. old_striplib="$STRIP -S"
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10640. $as_echo "yes" >&6; }
  10641. else
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10643. $as_echo "no" >&6; }
  10644. fi
  10645. ;;
  10646. *)
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10648. $as_echo "no" >&6; }
  10649. ;;
  10650. esac
  10651. fi
  10652. # Report which library types will actually be built
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10654. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10656. $as_echo "$can_build_shared" >&6; }
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10658. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10659. test "$can_build_shared" = "no" && enable_shared=no
  10660. # On AIX, shared libraries and static libraries use the same namespace, and
  10661. # are all built from PIC.
  10662. case $host_os in
  10663. aix3*)
  10664. test "$enable_shared" = yes && enable_static=no
  10665. if test -n "$RANLIB"; then
  10666. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10667. postinstall_cmds='$RANLIB $lib'
  10668. fi
  10669. ;;
  10670. aix[4-9]*)
  10671. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10672. test "$enable_shared" = yes && enable_static=no
  10673. fi
  10674. ;;
  10675. esac
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10677. $as_echo "$enable_shared" >&6; }
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10679. $as_echo_n "checking whether to build static libraries... " >&6; }
  10680. # Make sure either enable_shared or enable_static is yes.
  10681. test "$enable_shared" = yes || enable_static=yes
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10683. $as_echo "$enable_static" >&6; }
  10684. fi
  10685. ac_ext=c
  10686. ac_cpp='$CPP $CPPFLAGS'
  10687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10690. CC="$lt_save_CC"
  10691. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10692. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10693. (test "X$CXX" != "Xg++"))) ; then
  10694. ac_ext=cpp
  10695. ac_cpp='$CXXCPP $CPPFLAGS'
  10696. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10697. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10698. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10700. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10701. if test -z "$CXXCPP"; then
  10702. if ${ac_cv_prog_CXXCPP+:} false; then :
  10703. $as_echo_n "(cached) " >&6
  10704. else
  10705. # Double quotes because CXXCPP needs to be expanded
  10706. for CXXCPP in "$CXX -E" "/lib/cpp"
  10707. do
  10708. ac_preproc_ok=false
  10709. for ac_cxx_preproc_warn_flag in '' yes
  10710. do
  10711. # Use a header file that comes with gcc, so configuring glibc
  10712. # with a fresh cross-compiler works.
  10713. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10714. # <limits.h> exists even on freestanding compilers.
  10715. # On the NeXT, cc -E runs the code through the compiler's parser,
  10716. # not just through cpp. "Syntax error" is here to catch this case.
  10717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10718. /* end confdefs.h. */
  10719. #ifdef __STDC__
  10720. # include <limits.h>
  10721. #else
  10722. # include <assert.h>
  10723. #endif
  10724. Syntax error
  10725. _ACEOF
  10726. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10727. else
  10728. # Broken: fails on valid input.
  10729. continue
  10730. fi
  10731. rm -f conftest.err conftest.i conftest.$ac_ext
  10732. # OK, works on sane cases. Now check whether nonexistent headers
  10733. # can be detected and how.
  10734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10735. /* end confdefs.h. */
  10736. #include <ac_nonexistent.h>
  10737. _ACEOF
  10738. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10739. # Broken: success on invalid input.
  10740. continue
  10741. else
  10742. # Passes both tests.
  10743. ac_preproc_ok=:
  10744. break
  10745. fi
  10746. rm -f conftest.err conftest.i conftest.$ac_ext
  10747. done
  10748. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10749. rm -f conftest.i conftest.err conftest.$ac_ext
  10750. if $ac_preproc_ok; then :
  10751. break
  10752. fi
  10753. done
  10754. ac_cv_prog_CXXCPP=$CXXCPP
  10755. fi
  10756. CXXCPP=$ac_cv_prog_CXXCPP
  10757. else
  10758. ac_cv_prog_CXXCPP=$CXXCPP
  10759. fi
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10761. $as_echo "$CXXCPP" >&6; }
  10762. ac_preproc_ok=false
  10763. for ac_cxx_preproc_warn_flag in '' yes
  10764. do
  10765. # Use a header file that comes with gcc, so configuring glibc
  10766. # with a fresh cross-compiler works.
  10767. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10768. # <limits.h> exists even on freestanding compilers.
  10769. # On the NeXT, cc -E runs the code through the compiler's parser,
  10770. # not just through cpp. "Syntax error" is here to catch this case.
  10771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10772. /* end confdefs.h. */
  10773. #ifdef __STDC__
  10774. # include <limits.h>
  10775. #else
  10776. # include <assert.h>
  10777. #endif
  10778. Syntax error
  10779. _ACEOF
  10780. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10781. else
  10782. # Broken: fails on valid input.
  10783. continue
  10784. fi
  10785. rm -f conftest.err conftest.i conftest.$ac_ext
  10786. # OK, works on sane cases. Now check whether nonexistent headers
  10787. # can be detected and how.
  10788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10789. /* end confdefs.h. */
  10790. #include <ac_nonexistent.h>
  10791. _ACEOF
  10792. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10793. # Broken: success on invalid input.
  10794. continue
  10795. else
  10796. # Passes both tests.
  10797. ac_preproc_ok=:
  10798. break
  10799. fi
  10800. rm -f conftest.err conftest.i conftest.$ac_ext
  10801. done
  10802. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10803. rm -f conftest.i conftest.err conftest.$ac_ext
  10804. if $ac_preproc_ok; then :
  10805. else
  10806. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10807. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10808. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10809. See \`config.log' for more details" "$LINENO" 5; }
  10810. fi
  10811. ac_ext=c
  10812. ac_cpp='$CPP $CPPFLAGS'
  10813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10816. else
  10817. _lt_caught_CXX_error=yes
  10818. fi
  10819. ac_ext=cpp
  10820. ac_cpp='$CXXCPP $CPPFLAGS'
  10821. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10822. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10823. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10824. archive_cmds_need_lc_CXX=no
  10825. allow_undefined_flag_CXX=
  10826. always_export_symbols_CXX=no
  10827. archive_expsym_cmds_CXX=
  10828. compiler_needs_object_CXX=no
  10829. export_dynamic_flag_spec_CXX=
  10830. hardcode_direct_CXX=no
  10831. hardcode_direct_absolute_CXX=no
  10832. hardcode_libdir_flag_spec_CXX=
  10833. hardcode_libdir_flag_spec_ld_CXX=
  10834. hardcode_libdir_separator_CXX=
  10835. hardcode_minus_L_CXX=no
  10836. hardcode_shlibpath_var_CXX=unsupported
  10837. hardcode_automatic_CXX=no
  10838. inherit_rpath_CXX=no
  10839. module_cmds_CXX=
  10840. module_expsym_cmds_CXX=
  10841. link_all_deplibs_CXX=unknown
  10842. old_archive_cmds_CXX=$old_archive_cmds
  10843. reload_flag_CXX=$reload_flag
  10844. reload_cmds_CXX=$reload_cmds
  10845. no_undefined_flag_CXX=
  10846. whole_archive_flag_spec_CXX=
  10847. enable_shared_with_static_runtimes_CXX=no
  10848. # Source file extension for C++ test sources.
  10849. ac_ext=cpp
  10850. # Object file extension for compiled C++ test sources.
  10851. objext=o
  10852. objext_CXX=$objext
  10853. # No sense in running all these tests if we already determined that
  10854. # the CXX compiler isn't working. Some variables (like enable_shared)
  10855. # are currently assumed to apply to all compilers on this platform,
  10856. # and will be corrupted by setting them based on a non-working compiler.
  10857. if test "$_lt_caught_CXX_error" != yes; then
  10858. # Code to be used in simple compile tests
  10859. lt_simple_compile_test_code="int some_variable = 0;"
  10860. # Code to be used in simple link tests
  10861. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10862. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10863. # If no C compiler was specified, use CC.
  10864. LTCC=${LTCC-"$CC"}
  10865. # If no C compiler flags were specified, use CFLAGS.
  10866. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10867. # Allow CC to be a program name with arguments.
  10868. compiler=$CC
  10869. # save warnings/boilerplate of simple test code
  10870. ac_outfile=conftest.$ac_objext
  10871. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10872. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10873. _lt_compiler_boilerplate=`cat conftest.err`
  10874. $RM conftest*
  10875. ac_outfile=conftest.$ac_objext
  10876. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10877. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10878. _lt_linker_boilerplate=`cat conftest.err`
  10879. $RM -r conftest*
  10880. # Allow CC to be a program name with arguments.
  10881. lt_save_CC=$CC
  10882. lt_save_CFLAGS=$CFLAGS
  10883. lt_save_LD=$LD
  10884. lt_save_GCC=$GCC
  10885. GCC=$GXX
  10886. lt_save_with_gnu_ld=$with_gnu_ld
  10887. lt_save_path_LD=$lt_cv_path_LD
  10888. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10889. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10890. else
  10891. $as_unset lt_cv_prog_gnu_ld
  10892. fi
  10893. if test -n "${lt_cv_path_LDCXX+set}"; then
  10894. lt_cv_path_LD=$lt_cv_path_LDCXX
  10895. else
  10896. $as_unset lt_cv_path_LD
  10897. fi
  10898. test -z "${LDCXX+set}" || LD=$LDCXX
  10899. CC=${CXX-"c++"}
  10900. CFLAGS=$CXXFLAGS
  10901. compiler=$CC
  10902. compiler_CXX=$CC
  10903. for cc_temp in $compiler""; do
  10904. case $cc_temp in
  10905. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10906. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10907. \-*) ;;
  10908. *) break;;
  10909. esac
  10910. done
  10911. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10912. if test -n "$compiler"; then
  10913. # We don't want -fno-exception when compiling C++ code, so set the
  10914. # no_builtin_flag separately
  10915. if test "$GXX" = yes; then
  10916. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10917. else
  10918. lt_prog_compiler_no_builtin_flag_CXX=
  10919. fi
  10920. if test "$GXX" = yes; then
  10921. # Set up default GNU C++ configuration
  10922. # Check whether --with-gnu-ld was given.
  10923. if test "${with_gnu_ld+set}" = set; then :
  10924. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10925. else
  10926. with_gnu_ld=no
  10927. fi
  10928. ac_prog=ld
  10929. if test "$GCC" = yes; then
  10930. # Check if gcc -print-prog-name=ld gives a path.
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10932. $as_echo_n "checking for ld used by $CC... " >&6; }
  10933. case $host in
  10934. *-*-mingw*)
  10935. # gcc leaves a trailing carriage return which upsets mingw
  10936. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10937. *)
  10938. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10939. esac
  10940. case $ac_prog in
  10941. # Accept absolute paths.
  10942. [\\/]* | ?:[\\/]*)
  10943. re_direlt='/[^/][^/]*/\.\./'
  10944. # Canonicalize the pathname of ld
  10945. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10946. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10947. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10948. done
  10949. test -z "$LD" && LD="$ac_prog"
  10950. ;;
  10951. "")
  10952. # If it fails, then pretend we aren't using GCC.
  10953. ac_prog=ld
  10954. ;;
  10955. *)
  10956. # If it is relative, then search for the first ld in PATH.
  10957. with_gnu_ld=unknown
  10958. ;;
  10959. esac
  10960. elif test "$with_gnu_ld" = yes; then
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10962. $as_echo_n "checking for GNU ld... " >&6; }
  10963. else
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10965. $as_echo_n "checking for non-GNU ld... " >&6; }
  10966. fi
  10967. if ${lt_cv_path_LD+:} false; then :
  10968. $as_echo_n "(cached) " >&6
  10969. else
  10970. if test -z "$LD"; then
  10971. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10972. for ac_dir in $PATH; do
  10973. IFS="$lt_save_ifs"
  10974. test -z "$ac_dir" && ac_dir=.
  10975. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10976. lt_cv_path_LD="$ac_dir/$ac_prog"
  10977. # Check to see if the program is GNU ld. I'd rather use --version,
  10978. # but apparently some variants of GNU ld only accept -v.
  10979. # Break only if it was the GNU/non-GNU ld that we prefer.
  10980. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10981. *GNU* | *'with BFD'*)
  10982. test "$with_gnu_ld" != no && break
  10983. ;;
  10984. *)
  10985. test "$with_gnu_ld" != yes && break
  10986. ;;
  10987. esac
  10988. fi
  10989. done
  10990. IFS="$lt_save_ifs"
  10991. else
  10992. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10993. fi
  10994. fi
  10995. LD="$lt_cv_path_LD"
  10996. if test -n "$LD"; then
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10998. $as_echo "$LD" >&6; }
  10999. else
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11001. $as_echo "no" >&6; }
  11002. fi
  11003. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11005. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11006. if ${lt_cv_prog_gnu_ld+:} false; then :
  11007. $as_echo_n "(cached) " >&6
  11008. else
  11009. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11010. case `$LD -v 2>&1 </dev/null` in
  11011. *GNU* | *'with BFD'*)
  11012. lt_cv_prog_gnu_ld=yes
  11013. ;;
  11014. *)
  11015. lt_cv_prog_gnu_ld=no
  11016. ;;
  11017. esac
  11018. fi
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11020. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11021. with_gnu_ld=$lt_cv_prog_gnu_ld
  11022. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11023. # archiving commands below assume that GNU ld is being used.
  11024. if test "$with_gnu_ld" = yes; then
  11025. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11026. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11027. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11028. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11029. # If archive_cmds runs LD, not CC, wlarc should be empty
  11030. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11031. # investigate it a little bit more. (MM)
  11032. wlarc='${wl}'
  11033. # ancient GNU ld didn't support --whole-archive et. al.
  11034. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11035. $GREP 'no-whole-archive' > /dev/null; then
  11036. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11037. else
  11038. whole_archive_flag_spec_CXX=
  11039. fi
  11040. else
  11041. with_gnu_ld=no
  11042. wlarc=
  11043. # A generic and very simple default shared library creation
  11044. # command for GNU C++ for the case where it uses the native
  11045. # linker, instead of GNU ld. If possible, this setting should
  11046. # overridden to take advantage of the native linker features on
  11047. # the platform it is being used on.
  11048. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11049. fi
  11050. # Commands to make compiler produce verbose output that lists
  11051. # what "hidden" libraries, object files and flags are used when
  11052. # linking a shared library.
  11053. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11054. else
  11055. GXX=no
  11056. with_gnu_ld=no
  11057. wlarc=
  11058. fi
  11059. # PORTME: fill in a description of your system's C++ link characteristics
  11060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11061. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11062. ld_shlibs_CXX=yes
  11063. case $host_os in
  11064. aix3*)
  11065. # FIXME: insert proper C++ library support
  11066. ld_shlibs_CXX=no
  11067. ;;
  11068. aix[4-9]*)
  11069. if test "$host_cpu" = ia64; then
  11070. # On IA64, the linker does run time linking by default, so we don't
  11071. # have to do anything special.
  11072. aix_use_runtimelinking=no
  11073. exp_sym_flag='-Bexport'
  11074. no_entry_flag=""
  11075. else
  11076. aix_use_runtimelinking=no
  11077. # Test if we are trying to use run time linking or normal
  11078. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11079. # need to do runtime linking.
  11080. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11081. for ld_flag in $LDFLAGS; do
  11082. case $ld_flag in
  11083. *-brtl*)
  11084. aix_use_runtimelinking=yes
  11085. break
  11086. ;;
  11087. esac
  11088. done
  11089. ;;
  11090. esac
  11091. exp_sym_flag='-bexport'
  11092. no_entry_flag='-bnoentry'
  11093. fi
  11094. # When large executables or shared objects are built, AIX ld can
  11095. # have problems creating the table of contents. If linking a library
  11096. # or program results in "error TOC overflow" add -mminimal-toc to
  11097. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11098. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11099. archive_cmds_CXX=''
  11100. hardcode_direct_CXX=yes
  11101. hardcode_direct_absolute_CXX=yes
  11102. hardcode_libdir_separator_CXX=':'
  11103. link_all_deplibs_CXX=yes
  11104. file_list_spec_CXX='${wl}-f,'
  11105. if test "$GXX" = yes; then
  11106. case $host_os in aix4.[012]|aix4.[012].*)
  11107. # We only want to do this on AIX 4.2 and lower, the check
  11108. # below for broken collect2 doesn't work under 4.3+
  11109. collect2name=`${CC} -print-prog-name=collect2`
  11110. if test -f "$collect2name" &&
  11111. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11112. then
  11113. # We have reworked collect2
  11114. :
  11115. else
  11116. # We have old collect2
  11117. hardcode_direct_CXX=unsupported
  11118. # It fails to find uninstalled libraries when the uninstalled
  11119. # path is not listed in the libpath. Setting hardcode_minus_L
  11120. # to unsupported forces relinking
  11121. hardcode_minus_L_CXX=yes
  11122. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11123. hardcode_libdir_separator_CXX=
  11124. fi
  11125. esac
  11126. shared_flag='-shared'
  11127. if test "$aix_use_runtimelinking" = yes; then
  11128. shared_flag="$shared_flag "'${wl}-G'
  11129. fi
  11130. else
  11131. # not using gcc
  11132. if test "$host_cpu" = ia64; then
  11133. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11134. # chokes on -Wl,-G. The following line is correct:
  11135. shared_flag='-G'
  11136. else
  11137. if test "$aix_use_runtimelinking" = yes; then
  11138. shared_flag='${wl}-G'
  11139. else
  11140. shared_flag='${wl}-bM:SRE'
  11141. fi
  11142. fi
  11143. fi
  11144. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11145. # It seems that -bexpall does not export symbols beginning with
  11146. # underscore (_), so it is better to generate a list of symbols to
  11147. # export.
  11148. always_export_symbols_CXX=yes
  11149. if test "$aix_use_runtimelinking" = yes; then
  11150. # Warning - without using the other runtime loading flags (-brtl),
  11151. # -berok will link without error, but may produce a broken library.
  11152. allow_undefined_flag_CXX='-berok'
  11153. # Determine the default libpath from the value encoded in an empty
  11154. # executable.
  11155. if test "${lt_cv_aix_libpath+set}" = set; then
  11156. aix_libpath=$lt_cv_aix_libpath
  11157. else
  11158. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11159. $as_echo_n "(cached) " >&6
  11160. else
  11161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11162. /* end confdefs.h. */
  11163. int
  11164. main ()
  11165. {
  11166. ;
  11167. return 0;
  11168. }
  11169. _ACEOF
  11170. if ac_fn_cxx_try_link "$LINENO"; then :
  11171. lt_aix_libpath_sed='
  11172. /Import File Strings/,/^$/ {
  11173. /^0/ {
  11174. s/^0 *\([^ ]*\) *$/\1/
  11175. p
  11176. }
  11177. }'
  11178. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11179. # Check for a 64-bit object if we didn't find anything.
  11180. if test -z "$lt_cv_aix_libpath__CXX"; then
  11181. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11182. fi
  11183. fi
  11184. rm -f core conftest.err conftest.$ac_objext \
  11185. conftest$ac_exeext conftest.$ac_ext
  11186. if test -z "$lt_cv_aix_libpath__CXX"; then
  11187. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11188. fi
  11189. fi
  11190. aix_libpath=$lt_cv_aix_libpath__CXX
  11191. fi
  11192. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11193. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11194. else
  11195. if test "$host_cpu" = ia64; then
  11196. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11197. allow_undefined_flag_CXX="-z nodefs"
  11198. 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"
  11199. else
  11200. # Determine the default libpath from the value encoded in an
  11201. # empty executable.
  11202. if test "${lt_cv_aix_libpath+set}" = set; then
  11203. aix_libpath=$lt_cv_aix_libpath
  11204. else
  11205. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11206. $as_echo_n "(cached) " >&6
  11207. else
  11208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11209. /* end confdefs.h. */
  11210. int
  11211. main ()
  11212. {
  11213. ;
  11214. return 0;
  11215. }
  11216. _ACEOF
  11217. if ac_fn_cxx_try_link "$LINENO"; then :
  11218. lt_aix_libpath_sed='
  11219. /Import File Strings/,/^$/ {
  11220. /^0/ {
  11221. s/^0 *\([^ ]*\) *$/\1/
  11222. p
  11223. }
  11224. }'
  11225. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11226. # Check for a 64-bit object if we didn't find anything.
  11227. if test -z "$lt_cv_aix_libpath__CXX"; then
  11228. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11229. fi
  11230. fi
  11231. rm -f core conftest.err conftest.$ac_objext \
  11232. conftest$ac_exeext conftest.$ac_ext
  11233. if test -z "$lt_cv_aix_libpath__CXX"; then
  11234. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11235. fi
  11236. fi
  11237. aix_libpath=$lt_cv_aix_libpath__CXX
  11238. fi
  11239. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11240. # Warning - without using the other run time loading flags,
  11241. # -berok will link without error, but may produce a broken library.
  11242. no_undefined_flag_CXX=' ${wl}-bernotok'
  11243. allow_undefined_flag_CXX=' ${wl}-berok'
  11244. if test "$with_gnu_ld" = yes; then
  11245. # We only use this code for GNU lds that support --whole-archive.
  11246. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11247. else
  11248. # Exported symbols can be pulled into shared objects from archives
  11249. whole_archive_flag_spec_CXX='$convenience'
  11250. fi
  11251. archive_cmds_need_lc_CXX=yes
  11252. # This is similar to how AIX traditionally builds its shared
  11253. # libraries.
  11254. 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'
  11255. fi
  11256. fi
  11257. ;;
  11258. beos*)
  11259. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11260. allow_undefined_flag_CXX=unsupported
  11261. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11262. # support --undefined. This deserves some investigation. FIXME
  11263. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11264. else
  11265. ld_shlibs_CXX=no
  11266. fi
  11267. ;;
  11268. chorus*)
  11269. case $cc_basename in
  11270. *)
  11271. # FIXME: insert proper C++ library support
  11272. ld_shlibs_CXX=no
  11273. ;;
  11274. esac
  11275. ;;
  11276. cygwin* | mingw* | pw32* | cegcc*)
  11277. case $GXX,$cc_basename in
  11278. ,cl* | no,cl*)
  11279. # Native MSVC
  11280. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11281. # no search path for DLLs.
  11282. hardcode_libdir_flag_spec_CXX=' '
  11283. allow_undefined_flag_CXX=unsupported
  11284. always_export_symbols_CXX=yes
  11285. file_list_spec_CXX='@'
  11286. # Tell ltmain to make .lib files, not .a files.
  11287. libext=lib
  11288. # Tell ltmain to make .dll files, not .so files.
  11289. shrext_cmds=".dll"
  11290. # FIXME: Setting linknames here is a bad hack.
  11291. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11292. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11293. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11294. else
  11295. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11296. fi~
  11297. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11298. linknames='
  11299. # The linker will not automatically build a static lib if we build a DLL.
  11300. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11301. enable_shared_with_static_runtimes_CXX=yes
  11302. # Don't use ranlib
  11303. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11304. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11305. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11306. case $lt_outputfile in
  11307. *.exe|*.EXE) ;;
  11308. *)
  11309. lt_outputfile="$lt_outputfile.exe"
  11310. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11311. ;;
  11312. esac~
  11313. func_to_tool_file "$lt_outputfile"~
  11314. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11315. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11316. $RM "$lt_outputfile.manifest";
  11317. fi'
  11318. ;;
  11319. *)
  11320. # g++
  11321. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11322. # as there is no search path for DLLs.
  11323. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11324. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11325. allow_undefined_flag_CXX=unsupported
  11326. always_export_symbols_CXX=no
  11327. enable_shared_with_static_runtimes_CXX=yes
  11328. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11329. 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'
  11330. # If the export-symbols file already is a .def file (1st line
  11331. # is EXPORTS), use it as is; otherwise, prepend...
  11332. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11333. cp $export_symbols $output_objdir/$soname.def;
  11334. else
  11335. echo EXPORTS > $output_objdir/$soname.def;
  11336. cat $export_symbols >> $output_objdir/$soname.def;
  11337. fi~
  11338. $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'
  11339. else
  11340. ld_shlibs_CXX=no
  11341. fi
  11342. ;;
  11343. esac
  11344. ;;
  11345. darwin* | rhapsody*)
  11346. archive_cmds_need_lc_CXX=no
  11347. hardcode_direct_CXX=no
  11348. hardcode_automatic_CXX=yes
  11349. hardcode_shlibpath_var_CXX=unsupported
  11350. if test "$lt_cv_ld_force_load" = "yes"; then
  11351. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11352. else
  11353. whole_archive_flag_spec_CXX=''
  11354. fi
  11355. link_all_deplibs_CXX=yes
  11356. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11357. case $cc_basename in
  11358. ifort*) _lt_dar_can_shared=yes ;;
  11359. *) _lt_dar_can_shared=$GCC ;;
  11360. esac
  11361. if test "$_lt_dar_can_shared" = "yes"; then
  11362. output_verbose_link_cmd=func_echo_all
  11363. 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}"
  11364. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11365. 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}"
  11366. 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}"
  11367. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11368. 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}"
  11369. 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}"
  11370. fi
  11371. else
  11372. ld_shlibs_CXX=no
  11373. fi
  11374. ;;
  11375. dgux*)
  11376. case $cc_basename in
  11377. ec++*)
  11378. # FIXME: insert proper C++ library support
  11379. ld_shlibs_CXX=no
  11380. ;;
  11381. ghcx*)
  11382. # Green Hills C++ Compiler
  11383. # FIXME: insert proper C++ library support
  11384. ld_shlibs_CXX=no
  11385. ;;
  11386. *)
  11387. # FIXME: insert proper C++ library support
  11388. ld_shlibs_CXX=no
  11389. ;;
  11390. esac
  11391. ;;
  11392. freebsd[12]*)
  11393. # C++ shared libraries reported to be fairly broken before
  11394. # switch to ELF
  11395. ld_shlibs_CXX=no
  11396. ;;
  11397. freebsd-elf*)
  11398. archive_cmds_need_lc_CXX=no
  11399. ;;
  11400. freebsd* | dragonfly*)
  11401. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11402. # conventions
  11403. ld_shlibs_CXX=yes
  11404. ;;
  11405. gnu*)
  11406. ;;
  11407. haiku*)
  11408. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11409. link_all_deplibs_CXX=yes
  11410. ;;
  11411. hpux9*)
  11412. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11413. hardcode_libdir_separator_CXX=:
  11414. export_dynamic_flag_spec_CXX='${wl}-E'
  11415. hardcode_direct_CXX=yes
  11416. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11417. # but as the default
  11418. # location of the library.
  11419. case $cc_basename in
  11420. CC*)
  11421. # FIXME: insert proper C++ library support
  11422. ld_shlibs_CXX=no
  11423. ;;
  11424. aCC*)
  11425. 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'
  11426. # Commands to make compiler produce verbose output that lists
  11427. # what "hidden" libraries, object files and flags are used when
  11428. # linking a shared library.
  11429. #
  11430. # There doesn't appear to be a way to prevent this compiler from
  11431. # explicitly linking system object files so we need to strip them
  11432. # from the output so that they don't get included in the library
  11433. # dependencies.
  11434. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11435. ;;
  11436. *)
  11437. if test "$GXX" = yes; then
  11438. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11439. else
  11440. # FIXME: insert proper C++ library support
  11441. ld_shlibs_CXX=no
  11442. fi
  11443. ;;
  11444. esac
  11445. ;;
  11446. hpux10*|hpux11*)
  11447. if test $with_gnu_ld = no; then
  11448. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11449. hardcode_libdir_separator_CXX=:
  11450. case $host_cpu in
  11451. hppa*64*|ia64*)
  11452. ;;
  11453. *)
  11454. export_dynamic_flag_spec_CXX='${wl}-E'
  11455. ;;
  11456. esac
  11457. fi
  11458. case $host_cpu in
  11459. hppa*64*|ia64*)
  11460. hardcode_direct_CXX=no
  11461. hardcode_shlibpath_var_CXX=no
  11462. ;;
  11463. *)
  11464. hardcode_direct_CXX=yes
  11465. hardcode_direct_absolute_CXX=yes
  11466. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11467. # but as the default
  11468. # location of the library.
  11469. ;;
  11470. esac
  11471. case $cc_basename in
  11472. CC*)
  11473. # FIXME: insert proper C++ library support
  11474. ld_shlibs_CXX=no
  11475. ;;
  11476. aCC*)
  11477. case $host_cpu in
  11478. hppa*64*)
  11479. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11480. ;;
  11481. ia64*)
  11482. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11483. ;;
  11484. *)
  11485. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11486. ;;
  11487. esac
  11488. # Commands to make compiler produce verbose output that lists
  11489. # what "hidden" libraries, object files and flags are used when
  11490. # linking a shared library.
  11491. #
  11492. # There doesn't appear to be a way to prevent this compiler from
  11493. # explicitly linking system object files so we need to strip them
  11494. # from the output so that they don't get included in the library
  11495. # dependencies.
  11496. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11497. ;;
  11498. *)
  11499. if test "$GXX" = yes; then
  11500. if test $with_gnu_ld = no; then
  11501. case $host_cpu in
  11502. hppa*64*)
  11503. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11504. ;;
  11505. ia64*)
  11506. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11507. ;;
  11508. *)
  11509. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11510. ;;
  11511. esac
  11512. fi
  11513. else
  11514. # FIXME: insert proper C++ library support
  11515. ld_shlibs_CXX=no
  11516. fi
  11517. ;;
  11518. esac
  11519. ;;
  11520. interix[3-9]*)
  11521. hardcode_direct_CXX=no
  11522. hardcode_shlibpath_var_CXX=no
  11523. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11524. export_dynamic_flag_spec_CXX='${wl}-E'
  11525. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11526. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11527. # default) and relocated if they conflict, which is a slow very memory
  11528. # consuming and fragmenting process. To avoid this, we pick a random,
  11529. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11530. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11531. 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'
  11532. 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'
  11533. ;;
  11534. irix5* | irix6*)
  11535. case $cc_basename in
  11536. CC*)
  11537. # SGI C++
  11538. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11539. # Archives containing C++ object files must be created using
  11540. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11541. # necessary to make sure instantiated templates are included
  11542. # in the archive.
  11543. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11544. ;;
  11545. *)
  11546. if test "$GXX" = yes; then
  11547. if test "$with_gnu_ld" = no; then
  11548. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11549. else
  11550. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11551. fi
  11552. fi
  11553. link_all_deplibs_CXX=yes
  11554. ;;
  11555. esac
  11556. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11557. hardcode_libdir_separator_CXX=:
  11558. inherit_rpath_CXX=yes
  11559. ;;
  11560. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11561. case $cc_basename in
  11562. KCC*)
  11563. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11564. # KCC will only create a shared library if the output file
  11565. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11566. # to its proper name (with version) after linking.
  11567. 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'
  11568. 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'
  11569. # Commands to make compiler produce verbose output that lists
  11570. # what "hidden" libraries, object files and flags are used when
  11571. # linking a shared library.
  11572. #
  11573. # There doesn't appear to be a way to prevent this compiler from
  11574. # explicitly linking system object files so we need to strip them
  11575. # from the output so that they don't get included in the library
  11576. # dependencies.
  11577. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11578. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11579. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11580. # Archives containing C++ object files must be created using
  11581. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11582. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11583. ;;
  11584. icpc* | ecpc* )
  11585. # Intel C++
  11586. with_gnu_ld=yes
  11587. # version 8.0 and above of icpc choke on multiply defined symbols
  11588. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11589. # earlier do not add the objects themselves.
  11590. case `$CC -V 2>&1` in
  11591. *"Version 7."*)
  11592. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11593. 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'
  11594. ;;
  11595. *) # Version 8.0 or newer
  11596. tmp_idyn=
  11597. case $host_cpu in
  11598. ia64*) tmp_idyn=' -i_dynamic';;
  11599. esac
  11600. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11601. 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'
  11602. ;;
  11603. esac
  11604. archive_cmds_need_lc_CXX=no
  11605. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11606. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11607. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11608. ;;
  11609. pgCC* | pgcpp*)
  11610. # Portland Group C++ compiler
  11611. case `$CC -V` in
  11612. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11613. prelink_cmds_CXX='tpldir=Template.dir~
  11614. rm -rf $tpldir~
  11615. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11616. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11617. old_archive_cmds_CXX='tpldir=Template.dir~
  11618. rm -rf $tpldir~
  11619. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11620. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11621. $RANLIB $oldlib'
  11622. archive_cmds_CXX='tpldir=Template.dir~
  11623. rm -rf $tpldir~
  11624. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11625. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11626. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11627. rm -rf $tpldir~
  11628. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11629. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11630. ;;
  11631. *) # Version 6 and above use weak symbols
  11632. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11633. 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'
  11634. ;;
  11635. esac
  11636. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11637. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11638. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11639. ;;
  11640. cxx*)
  11641. # Compaq C++
  11642. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11643. 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'
  11644. runpath_var=LD_RUN_PATH
  11645. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11646. hardcode_libdir_separator_CXX=:
  11647. # Commands to make compiler produce verbose output that lists
  11648. # what "hidden" libraries, object files and flags are used when
  11649. # linking a shared library.
  11650. #
  11651. # There doesn't appear to be a way to prevent this compiler from
  11652. # explicitly linking system object files so we need to strip them
  11653. # from the output so that they don't get included in the library
  11654. # dependencies.
  11655. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11656. ;;
  11657. xl* | mpixl* | bgxl*)
  11658. # IBM XL 8.0 on PPC, with GNU ld
  11659. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11660. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11661. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11662. if test "x$supports_anon_versioning" = xyes; then
  11663. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11664. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11665. echo "local: *; };" >> $output_objdir/$libname.ver~
  11666. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11667. fi
  11668. ;;
  11669. *)
  11670. case `$CC -V 2>&1 | sed 5q` in
  11671. *Sun\ C*)
  11672. # Sun C++ 5.9
  11673. no_undefined_flag_CXX=' -zdefs'
  11674. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11675. 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'
  11676. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11677. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11678. compiler_needs_object_CXX=yes
  11679. # Not sure whether something based on
  11680. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11681. # would be better.
  11682. output_verbose_link_cmd='func_echo_all'
  11683. # Archives containing C++ object files must be created using
  11684. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11685. # necessary to make sure instantiated templates are included
  11686. # in the archive.
  11687. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11688. ;;
  11689. esac
  11690. ;;
  11691. esac
  11692. ;;
  11693. lynxos*)
  11694. # FIXME: insert proper C++ library support
  11695. ld_shlibs_CXX=no
  11696. ;;
  11697. m88k*)
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. mvs*)
  11702. case $cc_basename in
  11703. cxx*)
  11704. # FIXME: insert proper C++ library support
  11705. ld_shlibs_CXX=no
  11706. ;;
  11707. *)
  11708. # FIXME: insert proper C++ library support
  11709. ld_shlibs_CXX=no
  11710. ;;
  11711. esac
  11712. ;;
  11713. netbsd*)
  11714. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11715. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11716. wlarc=
  11717. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11718. hardcode_direct_CXX=yes
  11719. hardcode_shlibpath_var_CXX=no
  11720. fi
  11721. # Workaround some broken pre-1.5 toolchains
  11722. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11723. ;;
  11724. *nto* | *qnx*)
  11725. ld_shlibs_CXX=yes
  11726. ;;
  11727. openbsd2*)
  11728. # C++ shared libraries are fairly broken
  11729. ld_shlibs_CXX=no
  11730. ;;
  11731. openbsd*)
  11732. if test -f /usr/libexec/ld.so; then
  11733. hardcode_direct_CXX=yes
  11734. hardcode_shlibpath_var_CXX=no
  11735. hardcode_direct_absolute_CXX=yes
  11736. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11737. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11738. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11739. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11740. export_dynamic_flag_spec_CXX='${wl}-E'
  11741. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11742. fi
  11743. output_verbose_link_cmd=func_echo_all
  11744. else
  11745. ld_shlibs_CXX=no
  11746. fi
  11747. ;;
  11748. osf3* | osf4* | osf5*)
  11749. case $cc_basename in
  11750. KCC*)
  11751. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11752. # KCC will only create a shared library if the output file
  11753. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11754. # to its proper name (with version) after linking.
  11755. 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'
  11756. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11757. hardcode_libdir_separator_CXX=:
  11758. # Archives containing C++ object files must be created using
  11759. # the KAI C++ compiler.
  11760. case $host in
  11761. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11762. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11763. esac
  11764. ;;
  11765. RCC*)
  11766. # Rational C++ 2.4.1
  11767. # FIXME: insert proper C++ library support
  11768. ld_shlibs_CXX=no
  11769. ;;
  11770. cxx*)
  11771. case $host in
  11772. osf3*)
  11773. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11774. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11775. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11776. ;;
  11777. *)
  11778. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11779. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11780. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11781. echo "-hidden">> $lib.exp~
  11782. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11783. $RM $lib.exp'
  11784. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11785. ;;
  11786. esac
  11787. hardcode_libdir_separator_CXX=:
  11788. # Commands to make compiler produce verbose output that lists
  11789. # what "hidden" libraries, object files and flags are used when
  11790. # linking a shared library.
  11791. #
  11792. # There doesn't appear to be a way to prevent this compiler from
  11793. # explicitly linking system object files so we need to strip them
  11794. # from the output so that they don't get included in the library
  11795. # dependencies.
  11796. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11797. ;;
  11798. *)
  11799. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11800. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11801. case $host in
  11802. osf3*)
  11803. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11804. ;;
  11805. *)
  11806. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11807. ;;
  11808. esac
  11809. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11810. hardcode_libdir_separator_CXX=:
  11811. # Commands to make compiler produce verbose output that lists
  11812. # what "hidden" libraries, object files and flags are used when
  11813. # linking a shared library.
  11814. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11815. else
  11816. # FIXME: insert proper C++ library support
  11817. ld_shlibs_CXX=no
  11818. fi
  11819. ;;
  11820. esac
  11821. ;;
  11822. psos*)
  11823. # FIXME: insert proper C++ library support
  11824. ld_shlibs_CXX=no
  11825. ;;
  11826. sunos4*)
  11827. case $cc_basename in
  11828. CC*)
  11829. # Sun C++ 4.x
  11830. # FIXME: insert proper C++ library support
  11831. ld_shlibs_CXX=no
  11832. ;;
  11833. lcc*)
  11834. # Lucid
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. *)
  11839. # FIXME: insert proper C++ library support
  11840. ld_shlibs_CXX=no
  11841. ;;
  11842. esac
  11843. ;;
  11844. solaris*)
  11845. case $cc_basename in
  11846. CC* | sunCC*)
  11847. # Sun C++ 4.2, 5.x and Centerline C++
  11848. archive_cmds_need_lc_CXX=yes
  11849. no_undefined_flag_CXX=' -zdefs'
  11850. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11851. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11852. $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'
  11853. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11854. hardcode_shlibpath_var_CXX=no
  11855. case $host_os in
  11856. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11857. *)
  11858. # The compiler driver will combine and reorder linker options,
  11859. # but understands `-z linker_flag'.
  11860. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11861. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11862. ;;
  11863. esac
  11864. link_all_deplibs_CXX=yes
  11865. output_verbose_link_cmd='func_echo_all'
  11866. # Archives containing C++ object files must be created using
  11867. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11868. # necessary to make sure instantiated templates are included
  11869. # in the archive.
  11870. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11871. ;;
  11872. gcx*)
  11873. # Green Hills C++ Compiler
  11874. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11875. # The C++ compiler must be used to create the archive.
  11876. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11877. ;;
  11878. *)
  11879. # GNU C++ compiler with Solaris linker
  11880. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11881. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11882. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11883. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11884. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11885. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11886. # Commands to make compiler produce verbose output that lists
  11887. # what "hidden" libraries, object files and flags are used when
  11888. # linking a shared library.
  11889. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11890. else
  11891. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11892. # platform.
  11893. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11894. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11895. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11896. # Commands to make compiler produce verbose output that lists
  11897. # what "hidden" libraries, object files and flags are used when
  11898. # linking a shared library.
  11899. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11900. fi
  11901. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11902. case $host_os in
  11903. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11904. *)
  11905. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11906. ;;
  11907. esac
  11908. fi
  11909. ;;
  11910. esac
  11911. ;;
  11912. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11913. no_undefined_flag_CXX='${wl}-z,text'
  11914. archive_cmds_need_lc_CXX=no
  11915. hardcode_shlibpath_var_CXX=no
  11916. runpath_var='LD_RUN_PATH'
  11917. case $cc_basename in
  11918. CC*)
  11919. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11920. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11921. ;;
  11922. *)
  11923. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11924. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11925. ;;
  11926. esac
  11927. ;;
  11928. sysv5* | sco3.2v5* | sco5v6*)
  11929. # Note: We can NOT use -z defs as we might desire, because we do not
  11930. # link with -lc, and that would cause any symbols used from libc to
  11931. # always be unresolved, which means just about no library would
  11932. # ever link correctly. If we're not using GNU ld we use -z text
  11933. # though, which does catch some bad symbols but isn't as heavy-handed
  11934. # as -z defs.
  11935. no_undefined_flag_CXX='${wl}-z,text'
  11936. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11937. archive_cmds_need_lc_CXX=no
  11938. hardcode_shlibpath_var_CXX=no
  11939. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11940. hardcode_libdir_separator_CXX=':'
  11941. link_all_deplibs_CXX=yes
  11942. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11943. runpath_var='LD_RUN_PATH'
  11944. case $cc_basename in
  11945. CC*)
  11946. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11947. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11948. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11949. '"$old_archive_cmds_CXX"
  11950. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11951. '"$reload_cmds_CXX"
  11952. ;;
  11953. *)
  11954. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11955. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11956. ;;
  11957. esac
  11958. ;;
  11959. tandem*)
  11960. case $cc_basename in
  11961. NCC*)
  11962. # NonStop-UX NCC 3.20
  11963. # FIXME: insert proper C++ library support
  11964. ld_shlibs_CXX=no
  11965. ;;
  11966. *)
  11967. # FIXME: insert proper C++ library support
  11968. ld_shlibs_CXX=no
  11969. ;;
  11970. esac
  11971. ;;
  11972. vxworks*)
  11973. # FIXME: insert proper C++ library support
  11974. ld_shlibs_CXX=no
  11975. ;;
  11976. *)
  11977. # FIXME: insert proper C++ library support
  11978. ld_shlibs_CXX=no
  11979. ;;
  11980. esac
  11981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11982. $as_echo "$ld_shlibs_CXX" >&6; }
  11983. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11984. GCC_CXX="$GXX"
  11985. LD_CXX="$LD"
  11986. ## CAVEAT EMPTOR:
  11987. ## There is no encapsulation within the following macros, do not change
  11988. ## the running order or otherwise move them around unless you know exactly
  11989. ## what you are doing...
  11990. # Dependencies to place before and after the object being linked:
  11991. predep_objects_CXX=
  11992. postdep_objects_CXX=
  11993. predeps_CXX=
  11994. postdeps_CXX=
  11995. compiler_lib_search_path_CXX=
  11996. cat > conftest.$ac_ext <<_LT_EOF
  11997. class Foo
  11998. {
  11999. public:
  12000. Foo (void) { a = 0; }
  12001. private:
  12002. int a;
  12003. };
  12004. _LT_EOF
  12005. _lt_libdeps_save_CFLAGS=$CFLAGS
  12006. case "$CC $CFLAGS " in #(
  12007. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12008. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12009. esac
  12010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12011. (eval $ac_compile) 2>&5
  12012. ac_status=$?
  12013. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12014. test $ac_status = 0; }; then
  12015. # Parse the compiler output and extract the necessary
  12016. # objects, libraries and library flags.
  12017. # Sentinel used to keep track of whether or not we are before
  12018. # the conftest object file.
  12019. pre_test_object_deps_done=no
  12020. for p in `eval "$output_verbose_link_cmd"`; do
  12021. case ${prev}${p} in
  12022. -L* | -R* | -l*)
  12023. # Some compilers place space between "-{L,R}" and the path.
  12024. # Remove the space.
  12025. if test $p = "-L" ||
  12026. test $p = "-R"; then
  12027. prev=$p
  12028. continue
  12029. fi
  12030. # Expand the sysroot to ease extracting the directories later.
  12031. if test -z "$prev"; then
  12032. case $p in
  12033. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12034. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12035. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12036. esac
  12037. fi
  12038. case $p in
  12039. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12040. esac
  12041. if test "$pre_test_object_deps_done" = no; then
  12042. case ${prev} in
  12043. -L | -R)
  12044. # Internal compiler library paths should come after those
  12045. # provided the user. The postdeps already come after the
  12046. # user supplied libs so there is no need to process them.
  12047. if test -z "$compiler_lib_search_path_CXX"; then
  12048. compiler_lib_search_path_CXX="${prev}${p}"
  12049. else
  12050. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12051. fi
  12052. ;;
  12053. # The "-l" case would never come before the object being
  12054. # linked, so don't bother handling this case.
  12055. esac
  12056. else
  12057. if test -z "$postdeps_CXX"; then
  12058. postdeps_CXX="${prev}${p}"
  12059. else
  12060. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12061. fi
  12062. fi
  12063. prev=
  12064. ;;
  12065. *.lto.$objext) ;; # Ignore GCC LTO objects
  12066. *.$objext)
  12067. # This assumes that the test object file only shows up
  12068. # once in the compiler output.
  12069. if test "$p" = "conftest.$objext"; then
  12070. pre_test_object_deps_done=yes
  12071. continue
  12072. fi
  12073. if test "$pre_test_object_deps_done" = no; then
  12074. if test -z "$predep_objects_CXX"; then
  12075. predep_objects_CXX="$p"
  12076. else
  12077. predep_objects_CXX="$predep_objects_CXX $p"
  12078. fi
  12079. else
  12080. if test -z "$postdep_objects_CXX"; then
  12081. postdep_objects_CXX="$p"
  12082. else
  12083. postdep_objects_CXX="$postdep_objects_CXX $p"
  12084. fi
  12085. fi
  12086. ;;
  12087. *) ;; # Ignore the rest.
  12088. esac
  12089. done
  12090. # Clean up.
  12091. rm -f a.out a.exe
  12092. else
  12093. echo "libtool.m4: error: problem compiling CXX test program"
  12094. fi
  12095. $RM -f confest.$objext
  12096. CFLAGS=$_lt_libdeps_save_CFLAGS
  12097. # PORTME: override above test on systems where it is broken
  12098. case $host_os in
  12099. interix[3-9]*)
  12100. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12101. # hack all around it, let's just trust "g++" to DTRT.
  12102. predep_objects_CXX=
  12103. postdep_objects_CXX=
  12104. postdeps_CXX=
  12105. ;;
  12106. linux*)
  12107. case `$CC -V 2>&1 | sed 5q` in
  12108. *Sun\ C*)
  12109. # Sun C++ 5.9
  12110. # The more standards-conforming stlport4 library is
  12111. # incompatible with the Cstd library. Avoid specifying
  12112. # it if it's in CXXFLAGS. Ignore libCrun as
  12113. # -library=stlport4 depends on it.
  12114. case " $CXX $CXXFLAGS " in
  12115. *" -library=stlport4 "*)
  12116. solaris_use_stlport4=yes
  12117. ;;
  12118. esac
  12119. if test "$solaris_use_stlport4" != yes; then
  12120. postdeps_CXX='-library=Cstd -library=Crun'
  12121. fi
  12122. ;;
  12123. esac
  12124. ;;
  12125. solaris*)
  12126. case $cc_basename in
  12127. CC* | sunCC*)
  12128. # The more standards-conforming stlport4 library is
  12129. # incompatible with the Cstd library. Avoid specifying
  12130. # it if it's in CXXFLAGS. Ignore libCrun as
  12131. # -library=stlport4 depends on it.
  12132. case " $CXX $CXXFLAGS " in
  12133. *" -library=stlport4 "*)
  12134. solaris_use_stlport4=yes
  12135. ;;
  12136. esac
  12137. # Adding this requires a known-good setup of shared libraries for
  12138. # Sun compiler versions before 5.6, else PIC objects from an old
  12139. # archive will be linked into the output, leading to subtle bugs.
  12140. if test "$solaris_use_stlport4" != yes; then
  12141. postdeps_CXX='-library=Cstd -library=Crun'
  12142. fi
  12143. ;;
  12144. esac
  12145. ;;
  12146. esac
  12147. case " $postdeps_CXX " in
  12148. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12149. esac
  12150. compiler_lib_search_dirs_CXX=
  12151. if test -n "${compiler_lib_search_path_CXX}"; then
  12152. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12153. fi
  12154. lt_prog_compiler_wl_CXX=
  12155. lt_prog_compiler_pic_CXX=
  12156. lt_prog_compiler_static_CXX=
  12157. # C++ specific cases for pic, static, wl, etc.
  12158. if test "$GXX" = yes; then
  12159. lt_prog_compiler_wl_CXX='-Wl,'
  12160. lt_prog_compiler_static_CXX='-static'
  12161. case $host_os in
  12162. aix*)
  12163. # All AIX code is PIC.
  12164. if test "$host_cpu" = ia64; then
  12165. # AIX 5 now supports IA64 processor
  12166. lt_prog_compiler_static_CXX='-Bstatic'
  12167. fi
  12168. ;;
  12169. amigaos*)
  12170. case $host_cpu in
  12171. powerpc)
  12172. # see comment about AmigaOS4 .so support
  12173. lt_prog_compiler_pic_CXX='-fPIC'
  12174. ;;
  12175. m68k)
  12176. # FIXME: we need at least 68020 code to build shared libraries, but
  12177. # adding the `-m68020' flag to GCC prevents building anything better,
  12178. # like `-m68040'.
  12179. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12180. ;;
  12181. esac
  12182. ;;
  12183. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12184. # PIC is the default for these OSes.
  12185. ;;
  12186. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12187. # This hack is so that the source file can tell whether it is being
  12188. # built for inclusion in a dll (and should export symbols for example).
  12189. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12190. # (--disable-auto-import) libraries
  12191. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12192. ;;
  12193. darwin* | rhapsody*)
  12194. # PIC is the default on this platform
  12195. # Common symbols not allowed in MH_DYLIB files
  12196. lt_prog_compiler_pic_CXX='-fno-common'
  12197. ;;
  12198. *djgpp*)
  12199. # DJGPP does not support shared libraries at all
  12200. lt_prog_compiler_pic_CXX=
  12201. ;;
  12202. haiku*)
  12203. # PIC is the default for Haiku.
  12204. # The "-static" flag exists, but is broken.
  12205. lt_prog_compiler_static_CXX=
  12206. ;;
  12207. interix[3-9]*)
  12208. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12209. # Instead, we relocate shared libraries at runtime.
  12210. ;;
  12211. sysv4*MP*)
  12212. if test -d /usr/nec; then
  12213. lt_prog_compiler_pic_CXX=-Kconform_pic
  12214. fi
  12215. ;;
  12216. hpux*)
  12217. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12218. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12219. # sets the default TLS model and affects inlining.
  12220. case $host_cpu in
  12221. hppa*64*)
  12222. ;;
  12223. *)
  12224. lt_prog_compiler_pic_CXX='-fPIC'
  12225. ;;
  12226. esac
  12227. ;;
  12228. *qnx* | *nto*)
  12229. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12230. # it will coredump.
  12231. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12232. ;;
  12233. *)
  12234. lt_prog_compiler_pic_CXX='-fPIC'
  12235. ;;
  12236. esac
  12237. else
  12238. case $host_os in
  12239. aix[4-9]*)
  12240. # All AIX code is PIC.
  12241. if test "$host_cpu" = ia64; then
  12242. # AIX 5 now supports IA64 processor
  12243. lt_prog_compiler_static_CXX='-Bstatic'
  12244. else
  12245. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12246. fi
  12247. ;;
  12248. chorus*)
  12249. case $cc_basename in
  12250. cxch68*)
  12251. # Green Hills C++ Compiler
  12252. # _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"
  12253. ;;
  12254. esac
  12255. ;;
  12256. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12257. # This hack is so that the source file can tell whether it is being
  12258. # built for inclusion in a dll (and should export symbols for example).
  12259. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12260. ;;
  12261. dgux*)
  12262. case $cc_basename in
  12263. ec++*)
  12264. lt_prog_compiler_pic_CXX='-KPIC'
  12265. ;;
  12266. ghcx*)
  12267. # Green Hills C++ Compiler
  12268. lt_prog_compiler_pic_CXX='-pic'
  12269. ;;
  12270. *)
  12271. ;;
  12272. esac
  12273. ;;
  12274. freebsd* | dragonfly*)
  12275. # FreeBSD uses GNU C++
  12276. ;;
  12277. hpux9* | hpux10* | hpux11*)
  12278. case $cc_basename in
  12279. CC*)
  12280. lt_prog_compiler_wl_CXX='-Wl,'
  12281. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12282. if test "$host_cpu" != ia64; then
  12283. lt_prog_compiler_pic_CXX='+Z'
  12284. fi
  12285. ;;
  12286. aCC*)
  12287. lt_prog_compiler_wl_CXX='-Wl,'
  12288. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12289. case $host_cpu in
  12290. hppa*64*|ia64*)
  12291. # +Z the default
  12292. ;;
  12293. *)
  12294. lt_prog_compiler_pic_CXX='+Z'
  12295. ;;
  12296. esac
  12297. ;;
  12298. *)
  12299. ;;
  12300. esac
  12301. ;;
  12302. interix*)
  12303. # This is c89, which is MS Visual C++ (no shared libs)
  12304. # Anyone wants to do a port?
  12305. ;;
  12306. irix5* | irix6* | nonstopux*)
  12307. case $cc_basename in
  12308. CC*)
  12309. lt_prog_compiler_wl_CXX='-Wl,'
  12310. lt_prog_compiler_static_CXX='-non_shared'
  12311. # CC pic flag -KPIC is the default.
  12312. ;;
  12313. *)
  12314. ;;
  12315. esac
  12316. ;;
  12317. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12318. case $cc_basename in
  12319. KCC*)
  12320. # KAI C++ Compiler
  12321. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12322. lt_prog_compiler_pic_CXX='-fPIC'
  12323. ;;
  12324. ecpc* )
  12325. # old Intel C++ for x86_64 which still supported -KPIC.
  12326. lt_prog_compiler_wl_CXX='-Wl,'
  12327. lt_prog_compiler_pic_CXX='-KPIC'
  12328. lt_prog_compiler_static_CXX='-static'
  12329. ;;
  12330. icpc* )
  12331. # Intel C++, used to be incompatible with GCC.
  12332. # ICC 10 doesn't accept -KPIC any more.
  12333. lt_prog_compiler_wl_CXX='-Wl,'
  12334. lt_prog_compiler_pic_CXX='-fPIC'
  12335. lt_prog_compiler_static_CXX='-static'
  12336. ;;
  12337. pgCC* | pgcpp*)
  12338. # Portland Group C++ compiler
  12339. lt_prog_compiler_wl_CXX='-Wl,'
  12340. lt_prog_compiler_pic_CXX='-fpic'
  12341. lt_prog_compiler_static_CXX='-Bstatic'
  12342. ;;
  12343. cxx*)
  12344. # Compaq C++
  12345. # Make sure the PIC flag is empty. It appears that all Alpha
  12346. # Linux and Compaq Tru64 Unix objects are PIC.
  12347. lt_prog_compiler_pic_CXX=
  12348. lt_prog_compiler_static_CXX='-non_shared'
  12349. ;;
  12350. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12351. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12352. lt_prog_compiler_wl_CXX='-Wl,'
  12353. lt_prog_compiler_pic_CXX='-qpic'
  12354. lt_prog_compiler_static_CXX='-qstaticlink'
  12355. ;;
  12356. *)
  12357. case `$CC -V 2>&1 | sed 5q` in
  12358. *Sun\ C*)
  12359. # Sun C++ 5.9
  12360. lt_prog_compiler_pic_CXX='-KPIC'
  12361. lt_prog_compiler_static_CXX='-Bstatic'
  12362. lt_prog_compiler_wl_CXX='-Qoption ld '
  12363. ;;
  12364. esac
  12365. ;;
  12366. esac
  12367. ;;
  12368. lynxos*)
  12369. ;;
  12370. m88k*)
  12371. ;;
  12372. mvs*)
  12373. case $cc_basename in
  12374. cxx*)
  12375. lt_prog_compiler_pic_CXX='-W c,exportall'
  12376. ;;
  12377. *)
  12378. ;;
  12379. esac
  12380. ;;
  12381. netbsd*)
  12382. ;;
  12383. *qnx* | *nto*)
  12384. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12385. # it will coredump.
  12386. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12387. ;;
  12388. osf3* | osf4* | osf5*)
  12389. case $cc_basename in
  12390. KCC*)
  12391. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12392. ;;
  12393. RCC*)
  12394. # Rational C++ 2.4.1
  12395. lt_prog_compiler_pic_CXX='-pic'
  12396. ;;
  12397. cxx*)
  12398. # Digital/Compaq C++
  12399. lt_prog_compiler_wl_CXX='-Wl,'
  12400. # Make sure the PIC flag is empty. It appears that all Alpha
  12401. # Linux and Compaq Tru64 Unix objects are PIC.
  12402. lt_prog_compiler_pic_CXX=
  12403. lt_prog_compiler_static_CXX='-non_shared'
  12404. ;;
  12405. *)
  12406. ;;
  12407. esac
  12408. ;;
  12409. psos*)
  12410. ;;
  12411. solaris*)
  12412. case $cc_basename in
  12413. CC* | sunCC*)
  12414. # Sun C++ 4.2, 5.x and Centerline C++
  12415. lt_prog_compiler_pic_CXX='-KPIC'
  12416. lt_prog_compiler_static_CXX='-Bstatic'
  12417. lt_prog_compiler_wl_CXX='-Qoption ld '
  12418. ;;
  12419. gcx*)
  12420. # Green Hills C++ Compiler
  12421. lt_prog_compiler_pic_CXX='-PIC'
  12422. ;;
  12423. *)
  12424. ;;
  12425. esac
  12426. ;;
  12427. sunos4*)
  12428. case $cc_basename in
  12429. CC*)
  12430. # Sun C++ 4.x
  12431. lt_prog_compiler_pic_CXX='-pic'
  12432. lt_prog_compiler_static_CXX='-Bstatic'
  12433. ;;
  12434. lcc*)
  12435. # Lucid
  12436. lt_prog_compiler_pic_CXX='-pic'
  12437. ;;
  12438. *)
  12439. ;;
  12440. esac
  12441. ;;
  12442. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12443. case $cc_basename in
  12444. CC*)
  12445. lt_prog_compiler_wl_CXX='-Wl,'
  12446. lt_prog_compiler_pic_CXX='-KPIC'
  12447. lt_prog_compiler_static_CXX='-Bstatic'
  12448. ;;
  12449. esac
  12450. ;;
  12451. tandem*)
  12452. case $cc_basename in
  12453. NCC*)
  12454. # NonStop-UX NCC 3.20
  12455. lt_prog_compiler_pic_CXX='-KPIC'
  12456. ;;
  12457. *)
  12458. ;;
  12459. esac
  12460. ;;
  12461. vxworks*)
  12462. ;;
  12463. *)
  12464. lt_prog_compiler_can_build_shared_CXX=no
  12465. ;;
  12466. esac
  12467. fi
  12468. case $host_os in
  12469. # For platforms which do not support PIC, -DPIC is meaningless:
  12470. *djgpp*)
  12471. lt_prog_compiler_pic_CXX=
  12472. ;;
  12473. *)
  12474. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12475. ;;
  12476. esac
  12477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12478. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12479. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12480. $as_echo_n "(cached) " >&6
  12481. else
  12482. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12483. fi
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12485. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12486. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12487. #
  12488. # Check to make sure the PIC flag actually works.
  12489. #
  12490. if test -n "$lt_prog_compiler_pic_CXX"; then
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12492. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12493. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12494. $as_echo_n "(cached) " >&6
  12495. else
  12496. lt_cv_prog_compiler_pic_works_CXX=no
  12497. ac_outfile=conftest.$ac_objext
  12498. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12499. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12500. # Insert the option either (1) after the last *FLAGS variable, or
  12501. # (2) before a word containing "conftest.", or (3) at the end.
  12502. # Note that $ac_compile itself does not contain backslashes and begins
  12503. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12504. # The option is referenced via a variable to avoid confusing sed.
  12505. lt_compile=`echo "$ac_compile" | $SED \
  12506. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12507. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12508. -e 's:$: $lt_compiler_flag:'`
  12509. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12510. (eval "$lt_compile" 2>conftest.err)
  12511. ac_status=$?
  12512. cat conftest.err >&5
  12513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12514. if (exit $ac_status) && test -s "$ac_outfile"; then
  12515. # The compiler can only warn and ignore the option if not recognized
  12516. # So say no if there are warnings other than the usual output.
  12517. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12518. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12519. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12520. lt_cv_prog_compiler_pic_works_CXX=yes
  12521. fi
  12522. fi
  12523. $RM conftest*
  12524. fi
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12526. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12527. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12528. case $lt_prog_compiler_pic_CXX in
  12529. "" | " "*) ;;
  12530. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12531. esac
  12532. else
  12533. lt_prog_compiler_pic_CXX=
  12534. lt_prog_compiler_can_build_shared_CXX=no
  12535. fi
  12536. fi
  12537. #
  12538. # Check to make sure the static flag actually works.
  12539. #
  12540. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12542. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12543. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12544. $as_echo_n "(cached) " >&6
  12545. else
  12546. lt_cv_prog_compiler_static_works_CXX=no
  12547. save_LDFLAGS="$LDFLAGS"
  12548. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12549. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12550. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12551. # The linker can only warn and ignore the option if not recognized
  12552. # So say no if there are warnings
  12553. if test -s conftest.err; then
  12554. # Append any errors to the config.log.
  12555. cat conftest.err 1>&5
  12556. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12557. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12558. if diff conftest.exp conftest.er2 >/dev/null; then
  12559. lt_cv_prog_compiler_static_works_CXX=yes
  12560. fi
  12561. else
  12562. lt_cv_prog_compiler_static_works_CXX=yes
  12563. fi
  12564. fi
  12565. $RM -r conftest*
  12566. LDFLAGS="$save_LDFLAGS"
  12567. fi
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12569. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12570. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12571. :
  12572. else
  12573. lt_prog_compiler_static_CXX=
  12574. fi
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12576. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12577. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12578. $as_echo_n "(cached) " >&6
  12579. else
  12580. lt_cv_prog_compiler_c_o_CXX=no
  12581. $RM -r conftest 2>/dev/null
  12582. mkdir conftest
  12583. cd conftest
  12584. mkdir out
  12585. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12586. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12587. # Insert the option either (1) after the last *FLAGS variable, or
  12588. # (2) before a word containing "conftest.", or (3) at the end.
  12589. # Note that $ac_compile itself does not contain backslashes and begins
  12590. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12591. lt_compile=`echo "$ac_compile" | $SED \
  12592. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12593. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12594. -e 's:$: $lt_compiler_flag:'`
  12595. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12596. (eval "$lt_compile" 2>out/conftest.err)
  12597. ac_status=$?
  12598. cat out/conftest.err >&5
  12599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12600. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12601. then
  12602. # The compiler can only warn and ignore the option if not recognized
  12603. # So say no if there are warnings
  12604. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12605. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12606. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12607. lt_cv_prog_compiler_c_o_CXX=yes
  12608. fi
  12609. fi
  12610. chmod u+w . 2>&5
  12611. $RM conftest*
  12612. # SGI C++ compiler will create directory out/ii_files/ for
  12613. # template instantiation
  12614. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12615. $RM out/* && rmdir out
  12616. cd ..
  12617. $RM -r conftest
  12618. $RM conftest*
  12619. fi
  12620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12621. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12623. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12624. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12625. $as_echo_n "(cached) " >&6
  12626. else
  12627. lt_cv_prog_compiler_c_o_CXX=no
  12628. $RM -r conftest 2>/dev/null
  12629. mkdir conftest
  12630. cd conftest
  12631. mkdir out
  12632. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12633. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12634. # Insert the option either (1) after the last *FLAGS variable, or
  12635. # (2) before a word containing "conftest.", or (3) at the end.
  12636. # Note that $ac_compile itself does not contain backslashes and begins
  12637. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12638. lt_compile=`echo "$ac_compile" | $SED \
  12639. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12640. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12641. -e 's:$: $lt_compiler_flag:'`
  12642. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12643. (eval "$lt_compile" 2>out/conftest.err)
  12644. ac_status=$?
  12645. cat out/conftest.err >&5
  12646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12647. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12648. then
  12649. # The compiler can only warn and ignore the option if not recognized
  12650. # So say no if there are warnings
  12651. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12652. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12653. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12654. lt_cv_prog_compiler_c_o_CXX=yes
  12655. fi
  12656. fi
  12657. chmod u+w . 2>&5
  12658. $RM conftest*
  12659. # SGI C++ compiler will create directory out/ii_files/ for
  12660. # template instantiation
  12661. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12662. $RM out/* && rmdir out
  12663. cd ..
  12664. $RM -r conftest
  12665. $RM conftest*
  12666. fi
  12667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12668. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12669. hard_links="nottested"
  12670. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12671. # do not overwrite the value of need_locks provided by the user
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12673. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12674. hard_links=yes
  12675. $RM conftest*
  12676. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12677. touch conftest.a
  12678. ln conftest.a conftest.b 2>&5 || hard_links=no
  12679. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12681. $as_echo "$hard_links" >&6; }
  12682. if test "$hard_links" = no; then
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12684. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12685. need_locks=warn
  12686. fi
  12687. else
  12688. need_locks=no
  12689. fi
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12691. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12692. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12693. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12694. case $host_os in
  12695. aix[4-9]*)
  12696. # If we're using GNU nm, then we don't want the "-C" option.
  12697. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12698. # Also, AIX nm treats weak defined symbols like other global defined
  12699. # symbols, whereas GNU nm marks them as "W".
  12700. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12701. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12702. else
  12703. 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'
  12704. fi
  12705. ;;
  12706. pw32*)
  12707. export_symbols_cmds_CXX="$ltdll_cmds"
  12708. ;;
  12709. cygwin* | mingw* | cegcc*)
  12710. case $cc_basename in
  12711. cl*) ;;
  12712. *)
  12713. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12714. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12715. ;;
  12716. esac
  12717. ;;
  12718. *)
  12719. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12720. ;;
  12721. esac
  12722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12723. $as_echo "$ld_shlibs_CXX" >&6; }
  12724. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12725. with_gnu_ld_CXX=$with_gnu_ld
  12726. #
  12727. # Do we need to explicitly link libc?
  12728. #
  12729. case "x$archive_cmds_need_lc_CXX" in
  12730. x|xyes)
  12731. # Assume -lc should be added
  12732. archive_cmds_need_lc_CXX=yes
  12733. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12734. case $archive_cmds_CXX in
  12735. *'~'*)
  12736. # FIXME: we may have to deal with multi-command sequences.
  12737. ;;
  12738. '$CC '*)
  12739. # Test whether the compiler implicitly links with -lc since on some
  12740. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12741. # to ld, don't add -lc before -lgcc.
  12742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12743. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12744. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12745. $as_echo_n "(cached) " >&6
  12746. else
  12747. $RM conftest*
  12748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12750. (eval $ac_compile) 2>&5
  12751. ac_status=$?
  12752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12753. test $ac_status = 0; } 2>conftest.err; then
  12754. soname=conftest
  12755. lib=conftest
  12756. libobjs=conftest.$ac_objext
  12757. deplibs=
  12758. wl=$lt_prog_compiler_wl_CXX
  12759. pic_flag=$lt_prog_compiler_pic_CXX
  12760. compiler_flags=-v
  12761. linker_flags=-v
  12762. verstring=
  12763. output_objdir=.
  12764. libname=conftest
  12765. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12766. allow_undefined_flag_CXX=
  12767. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12768. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12769. ac_status=$?
  12770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12771. test $ac_status = 0; }
  12772. then
  12773. lt_cv_archive_cmds_need_lc_CXX=no
  12774. else
  12775. lt_cv_archive_cmds_need_lc_CXX=yes
  12776. fi
  12777. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12778. else
  12779. cat conftest.err 1>&5
  12780. fi
  12781. $RM conftest*
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12784. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12785. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12786. ;;
  12787. esac
  12788. fi
  12789. ;;
  12790. esac
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12792. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12793. library_names_spec=
  12794. libname_spec='lib$name'
  12795. soname_spec=
  12796. shrext_cmds=".so"
  12797. postinstall_cmds=
  12798. postuninstall_cmds=
  12799. finish_cmds=
  12800. finish_eval=
  12801. shlibpath_var=
  12802. shlibpath_overrides_runpath=unknown
  12803. version_type=none
  12804. dynamic_linker="$host_os ld.so"
  12805. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12806. need_lib_prefix=unknown
  12807. hardcode_into_libs=no
  12808. # when you set need_version to no, make sure it does not cause -set_version
  12809. # flags to be left without arguments
  12810. need_version=unknown
  12811. case $host_os in
  12812. aix3*)
  12813. version_type=linux
  12814. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12815. shlibpath_var=LIBPATH
  12816. # AIX 3 has no versioning support, so we append a major version to the name.
  12817. soname_spec='${libname}${release}${shared_ext}$major'
  12818. ;;
  12819. aix[4-9]*)
  12820. version_type=linux
  12821. need_lib_prefix=no
  12822. need_version=no
  12823. hardcode_into_libs=yes
  12824. if test "$host_cpu" = ia64; then
  12825. # AIX 5 supports IA64
  12826. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12827. shlibpath_var=LD_LIBRARY_PATH
  12828. else
  12829. # With GCC up to 2.95.x, collect2 would create an import file
  12830. # for dependence libraries. The import file would start with
  12831. # the line `#! .'. This would cause the generated library to
  12832. # depend on `.', always an invalid library. This was fixed in
  12833. # development snapshots of GCC prior to 3.0.
  12834. case $host_os in
  12835. aix4 | aix4.[01] | aix4.[01].*)
  12836. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12837. echo ' yes '
  12838. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12839. :
  12840. else
  12841. can_build_shared=no
  12842. fi
  12843. ;;
  12844. esac
  12845. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12846. # soname into executable. Probably we can add versioning support to
  12847. # collect2, so additional links can be useful in future.
  12848. if test "$aix_use_runtimelinking" = yes; then
  12849. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12850. # instead of lib<name>.a to let people know that these are not
  12851. # typical AIX shared libraries.
  12852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12853. else
  12854. # We preserve .a as extension for shared libraries through AIX4.2
  12855. # and later when we are not doing run time linking.
  12856. library_names_spec='${libname}${release}.a $libname.a'
  12857. soname_spec='${libname}${release}${shared_ext}$major'
  12858. fi
  12859. shlibpath_var=LIBPATH
  12860. fi
  12861. ;;
  12862. amigaos*)
  12863. case $host_cpu in
  12864. powerpc)
  12865. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12866. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12868. ;;
  12869. m68k)
  12870. library_names_spec='$libname.ixlibrary $libname.a'
  12871. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12872. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12873. ;;
  12874. esac
  12875. ;;
  12876. beos*)
  12877. library_names_spec='${libname}${shared_ext}'
  12878. dynamic_linker="$host_os ld.so"
  12879. shlibpath_var=LIBRARY_PATH
  12880. ;;
  12881. bsdi[45]*)
  12882. version_type=linux
  12883. need_version=no
  12884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12885. soname_spec='${libname}${release}${shared_ext}$major'
  12886. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12887. shlibpath_var=LD_LIBRARY_PATH
  12888. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12889. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12890. # the default ld.so.conf also contains /usr/contrib/lib and
  12891. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12892. # libtool to hard-code these into programs
  12893. ;;
  12894. cygwin* | mingw* | pw32* | cegcc*)
  12895. version_type=windows
  12896. shrext_cmds=".dll"
  12897. need_version=no
  12898. need_lib_prefix=no
  12899. case $GCC,$cc_basename in
  12900. yes,*)
  12901. # gcc
  12902. library_names_spec='$libname.dll.a'
  12903. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12904. postinstall_cmds='base_file=`basename \${file}`~
  12905. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12906. dldir=$destdir/`dirname \$dlpath`~
  12907. test -d \$dldir || mkdir -p \$dldir~
  12908. $install_prog $dir/$dlname \$dldir/$dlname~
  12909. chmod a+x \$dldir/$dlname~
  12910. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12911. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12912. fi'
  12913. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12914. dlpath=$dir/\$dldll~
  12915. $RM \$dlpath'
  12916. shlibpath_overrides_runpath=yes
  12917. case $host_os in
  12918. cygwin*)
  12919. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12920. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12921. ;;
  12922. mingw* | cegcc*)
  12923. # MinGW DLLs use traditional 'lib' prefix
  12924. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12925. ;;
  12926. pw32*)
  12927. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12928. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12929. ;;
  12930. esac
  12931. dynamic_linker='Win32 ld.exe'
  12932. ;;
  12933. *,cl*)
  12934. # Native MSVC
  12935. libname_spec='$name'
  12936. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12937. library_names_spec='${libname}.dll.lib'
  12938. case $build_os in
  12939. mingw*)
  12940. sys_lib_search_path_spec=
  12941. lt_save_ifs=$IFS
  12942. IFS=';'
  12943. for lt_path in $LIB
  12944. do
  12945. IFS=$lt_save_ifs
  12946. # Let DOS variable expansion print the short 8.3 style file name.
  12947. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12948. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12949. done
  12950. IFS=$lt_save_ifs
  12951. # Convert to MSYS style.
  12952. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12953. ;;
  12954. cygwin*)
  12955. # Convert to unix form, then to dos form, then back to unix form
  12956. # but this time dos style (no spaces!) so that the unix form looks
  12957. # like /cygdrive/c/PROGRA~1:/cygdr...
  12958. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12959. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12960. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12961. ;;
  12962. *)
  12963. sys_lib_search_path_spec="$LIB"
  12964. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12965. # It is most probably a Windows format PATH.
  12966. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12967. else
  12968. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12969. fi
  12970. # FIXME: find the short name or the path components, as spaces are
  12971. # common. (e.g. "Program Files" -> "PROGRA~1")
  12972. ;;
  12973. esac
  12974. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12975. postinstall_cmds='base_file=`basename \${file}`~
  12976. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12977. dldir=$destdir/`dirname \$dlpath`~
  12978. test -d \$dldir || mkdir -p \$dldir~
  12979. $install_prog $dir/$dlname \$dldir/$dlname'
  12980. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12981. dlpath=$dir/\$dldll~
  12982. $RM \$dlpath'
  12983. shlibpath_overrides_runpath=yes
  12984. dynamic_linker='Win32 link.exe'
  12985. ;;
  12986. *)
  12987. # Assume MSVC wrapper
  12988. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12989. dynamic_linker='Win32 ld.exe'
  12990. ;;
  12991. esac
  12992. # FIXME: first we should search . and the directory the executable is in
  12993. shlibpath_var=PATH
  12994. ;;
  12995. darwin* | rhapsody*)
  12996. dynamic_linker="$host_os dyld"
  12997. version_type=darwin
  12998. need_lib_prefix=no
  12999. need_version=no
  13000. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13001. soname_spec='${libname}${release}${major}$shared_ext'
  13002. shlibpath_overrides_runpath=yes
  13003. shlibpath_var=DYLD_LIBRARY_PATH
  13004. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13005. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13006. ;;
  13007. dgux*)
  13008. version_type=linux
  13009. need_lib_prefix=no
  13010. need_version=no
  13011. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13012. soname_spec='${libname}${release}${shared_ext}$major'
  13013. shlibpath_var=LD_LIBRARY_PATH
  13014. ;;
  13015. freebsd1*)
  13016. dynamic_linker=no
  13017. ;;
  13018. freebsd* | dragonfly*)
  13019. # DragonFly does not have aout. When/if they implement a new
  13020. # versioning mechanism, adjust this.
  13021. if test -x /usr/bin/objformat; then
  13022. objformat=`/usr/bin/objformat`
  13023. else
  13024. case $host_os in
  13025. freebsd[123]*) objformat=aout ;;
  13026. *) objformat=elf ;;
  13027. esac
  13028. fi
  13029. version_type=freebsd-$objformat
  13030. case $version_type in
  13031. freebsd-elf*)
  13032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13033. need_version=no
  13034. need_lib_prefix=no
  13035. ;;
  13036. freebsd-*)
  13037. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13038. need_version=yes
  13039. ;;
  13040. esac
  13041. shlibpath_var=LD_LIBRARY_PATH
  13042. case $host_os in
  13043. freebsd2*)
  13044. shlibpath_overrides_runpath=yes
  13045. ;;
  13046. freebsd3.[01]* | freebsdelf3.[01]*)
  13047. shlibpath_overrides_runpath=yes
  13048. hardcode_into_libs=yes
  13049. ;;
  13050. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13051. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13052. shlibpath_overrides_runpath=no
  13053. hardcode_into_libs=yes
  13054. ;;
  13055. *) # from 4.6 on, and DragonFly
  13056. shlibpath_overrides_runpath=yes
  13057. hardcode_into_libs=yes
  13058. ;;
  13059. esac
  13060. ;;
  13061. gnu*)
  13062. version_type=linux
  13063. need_lib_prefix=no
  13064. need_version=no
  13065. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13066. soname_spec='${libname}${release}${shared_ext}$major'
  13067. shlibpath_var=LD_LIBRARY_PATH
  13068. hardcode_into_libs=yes
  13069. ;;
  13070. haiku*)
  13071. version_type=linux
  13072. need_lib_prefix=no
  13073. need_version=no
  13074. dynamic_linker="$host_os runtime_loader"
  13075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13076. soname_spec='${libname}${release}${shared_ext}$major'
  13077. shlibpath_var=LIBRARY_PATH
  13078. shlibpath_overrides_runpath=yes
  13079. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13080. hardcode_into_libs=yes
  13081. ;;
  13082. hpux9* | hpux10* | hpux11*)
  13083. # Give a soname corresponding to the major version so that dld.sl refuses to
  13084. # link against other versions.
  13085. version_type=sunos
  13086. need_lib_prefix=no
  13087. need_version=no
  13088. case $host_cpu in
  13089. ia64*)
  13090. shrext_cmds='.so'
  13091. hardcode_into_libs=yes
  13092. dynamic_linker="$host_os dld.so"
  13093. shlibpath_var=LD_LIBRARY_PATH
  13094. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13096. soname_spec='${libname}${release}${shared_ext}$major'
  13097. if test "X$HPUX_IA64_MODE" = X32; then
  13098. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13099. else
  13100. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13101. fi
  13102. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13103. ;;
  13104. hppa*64*)
  13105. shrext_cmds='.sl'
  13106. hardcode_into_libs=yes
  13107. dynamic_linker="$host_os dld.sl"
  13108. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13109. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13111. soname_spec='${libname}${release}${shared_ext}$major'
  13112. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13113. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13114. ;;
  13115. *)
  13116. shrext_cmds='.sl'
  13117. dynamic_linker="$host_os dld.sl"
  13118. shlibpath_var=SHLIB_PATH
  13119. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13121. soname_spec='${libname}${release}${shared_ext}$major'
  13122. ;;
  13123. esac
  13124. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13125. postinstall_cmds='chmod 555 $lib'
  13126. # or fails outright, so override atomically:
  13127. install_override_mode=555
  13128. ;;
  13129. interix[3-9]*)
  13130. version_type=linux
  13131. need_lib_prefix=no
  13132. need_version=no
  13133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13134. soname_spec='${libname}${release}${shared_ext}$major'
  13135. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. shlibpath_overrides_runpath=no
  13138. hardcode_into_libs=yes
  13139. ;;
  13140. irix5* | irix6* | nonstopux*)
  13141. case $host_os in
  13142. nonstopux*) version_type=nonstopux ;;
  13143. *)
  13144. if test "$lt_cv_prog_gnu_ld" = yes; then
  13145. version_type=linux
  13146. else
  13147. version_type=irix
  13148. fi ;;
  13149. esac
  13150. need_lib_prefix=no
  13151. need_version=no
  13152. soname_spec='${libname}${release}${shared_ext}$major'
  13153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13154. case $host_os in
  13155. irix5* | nonstopux*)
  13156. libsuff= shlibsuff=
  13157. ;;
  13158. *)
  13159. case $LD in # libtool.m4 will add one of these switches to LD
  13160. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13161. libsuff= shlibsuff= libmagic=32-bit;;
  13162. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13163. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13164. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13165. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13166. *) libsuff= shlibsuff= libmagic=never-match;;
  13167. esac
  13168. ;;
  13169. esac
  13170. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13171. shlibpath_overrides_runpath=no
  13172. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13173. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13174. hardcode_into_libs=yes
  13175. ;;
  13176. # No shared lib support for Linux oldld, aout, or coff.
  13177. linux*oldld* | linux*aout* | linux*coff*)
  13178. dynamic_linker=no
  13179. ;;
  13180. # This must be Linux ELF.
  13181. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13182. version_type=linux
  13183. need_lib_prefix=no
  13184. need_version=no
  13185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13186. soname_spec='${libname}${release}${shared_ext}$major'
  13187. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13188. shlibpath_var=LD_LIBRARY_PATH
  13189. shlibpath_overrides_runpath=no
  13190. # Some binutils ld are patched to set DT_RUNPATH
  13191. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13192. $as_echo_n "(cached) " >&6
  13193. else
  13194. lt_cv_shlibpath_overrides_runpath=no
  13195. save_LDFLAGS=$LDFLAGS
  13196. save_libdir=$libdir
  13197. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13198. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13200. /* end confdefs.h. */
  13201. int
  13202. main ()
  13203. {
  13204. ;
  13205. return 0;
  13206. }
  13207. _ACEOF
  13208. if ac_fn_cxx_try_link "$LINENO"; then :
  13209. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13210. lt_cv_shlibpath_overrides_runpath=yes
  13211. fi
  13212. fi
  13213. rm -f core conftest.err conftest.$ac_objext \
  13214. conftest$ac_exeext conftest.$ac_ext
  13215. LDFLAGS=$save_LDFLAGS
  13216. libdir=$save_libdir
  13217. fi
  13218. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13219. # This implies no fast_install, which is unacceptable.
  13220. # Some rework will be needed to allow for fast_install
  13221. # before this can be enabled.
  13222. hardcode_into_libs=yes
  13223. # Add ABI-specific directories to the system library path.
  13224. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13225. # Append ld.so.conf contents to the search path
  13226. if test -f /etc/ld.so.conf; then
  13227. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13228. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13229. fi
  13230. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13231. # powerpc, because MkLinux only supported shared libraries with the
  13232. # GNU dynamic linker. Since this was broken with cross compilers,
  13233. # most powerpc-linux boxes support dynamic linking these days and
  13234. # people can always --disable-shared, the test was removed, and we
  13235. # assume the GNU/Linux dynamic linker is in use.
  13236. dynamic_linker='GNU/Linux ld.so'
  13237. ;;
  13238. netbsd*)
  13239. version_type=sunos
  13240. need_lib_prefix=no
  13241. need_version=no
  13242. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13244. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13245. dynamic_linker='NetBSD (a.out) ld.so'
  13246. else
  13247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13248. soname_spec='${libname}${release}${shared_ext}$major'
  13249. dynamic_linker='NetBSD ld.elf_so'
  13250. fi
  13251. shlibpath_var=LD_LIBRARY_PATH
  13252. shlibpath_overrides_runpath=yes
  13253. hardcode_into_libs=yes
  13254. ;;
  13255. newsos6)
  13256. version_type=linux
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13258. shlibpath_var=LD_LIBRARY_PATH
  13259. shlibpath_overrides_runpath=yes
  13260. ;;
  13261. *nto* | *qnx*)
  13262. version_type=qnx
  13263. need_lib_prefix=no
  13264. need_version=no
  13265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13266. soname_spec='${libname}${release}${shared_ext}$major'
  13267. shlibpath_var=LD_LIBRARY_PATH
  13268. shlibpath_overrides_runpath=no
  13269. hardcode_into_libs=yes
  13270. dynamic_linker='ldqnx.so'
  13271. ;;
  13272. openbsd*)
  13273. version_type=sunos
  13274. sys_lib_dlsearch_path_spec="/usr/lib"
  13275. need_lib_prefix=no
  13276. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13277. case $host_os in
  13278. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13279. *) need_version=no ;;
  13280. esac
  13281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13282. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13283. shlibpath_var=LD_LIBRARY_PATH
  13284. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13285. case $host_os in
  13286. openbsd2.[89] | openbsd2.[89].*)
  13287. shlibpath_overrides_runpath=no
  13288. ;;
  13289. *)
  13290. shlibpath_overrides_runpath=yes
  13291. ;;
  13292. esac
  13293. else
  13294. shlibpath_overrides_runpath=yes
  13295. fi
  13296. ;;
  13297. os2*)
  13298. libname_spec='$name'
  13299. shrext_cmds=".dll"
  13300. need_lib_prefix=no
  13301. library_names_spec='$libname${shared_ext} $libname.a'
  13302. dynamic_linker='OS/2 ld.exe'
  13303. shlibpath_var=LIBPATH
  13304. ;;
  13305. osf3* | osf4* | osf5*)
  13306. version_type=osf
  13307. need_lib_prefix=no
  13308. need_version=no
  13309. soname_spec='${libname}${release}${shared_ext}$major'
  13310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13311. shlibpath_var=LD_LIBRARY_PATH
  13312. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13313. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13314. ;;
  13315. rdos*)
  13316. dynamic_linker=no
  13317. ;;
  13318. solaris*)
  13319. version_type=linux
  13320. need_lib_prefix=no
  13321. need_version=no
  13322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13323. soname_spec='${libname}${release}${shared_ext}$major'
  13324. shlibpath_var=LD_LIBRARY_PATH
  13325. shlibpath_overrides_runpath=yes
  13326. hardcode_into_libs=yes
  13327. # ldd complains unless libraries are executable
  13328. postinstall_cmds='chmod +x $lib'
  13329. ;;
  13330. sunos4*)
  13331. version_type=sunos
  13332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13333. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13334. shlibpath_var=LD_LIBRARY_PATH
  13335. shlibpath_overrides_runpath=yes
  13336. if test "$with_gnu_ld" = yes; then
  13337. need_lib_prefix=no
  13338. fi
  13339. need_version=yes
  13340. ;;
  13341. sysv4 | sysv4.3*)
  13342. version_type=linux
  13343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13344. soname_spec='${libname}${release}${shared_ext}$major'
  13345. shlibpath_var=LD_LIBRARY_PATH
  13346. case $host_vendor in
  13347. sni)
  13348. shlibpath_overrides_runpath=no
  13349. need_lib_prefix=no
  13350. runpath_var=LD_RUN_PATH
  13351. ;;
  13352. siemens)
  13353. need_lib_prefix=no
  13354. ;;
  13355. motorola)
  13356. need_lib_prefix=no
  13357. need_version=no
  13358. shlibpath_overrides_runpath=no
  13359. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13360. ;;
  13361. esac
  13362. ;;
  13363. sysv4*MP*)
  13364. if test -d /usr/nec ;then
  13365. version_type=linux
  13366. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13367. soname_spec='$libname${shared_ext}.$major'
  13368. shlibpath_var=LD_LIBRARY_PATH
  13369. fi
  13370. ;;
  13371. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13372. version_type=freebsd-elf
  13373. need_lib_prefix=no
  13374. need_version=no
  13375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13376. soname_spec='${libname}${release}${shared_ext}$major'
  13377. shlibpath_var=LD_LIBRARY_PATH
  13378. shlibpath_overrides_runpath=yes
  13379. hardcode_into_libs=yes
  13380. if test "$with_gnu_ld" = yes; then
  13381. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13382. else
  13383. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13384. case $host_os in
  13385. sco3.2v5*)
  13386. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13387. ;;
  13388. esac
  13389. fi
  13390. sys_lib_dlsearch_path_spec='/usr/lib'
  13391. ;;
  13392. tpf*)
  13393. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13394. version_type=linux
  13395. need_lib_prefix=no
  13396. need_version=no
  13397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13398. shlibpath_var=LD_LIBRARY_PATH
  13399. shlibpath_overrides_runpath=no
  13400. hardcode_into_libs=yes
  13401. ;;
  13402. uts4*)
  13403. version_type=linux
  13404. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13405. soname_spec='${libname}${release}${shared_ext}$major'
  13406. shlibpath_var=LD_LIBRARY_PATH
  13407. ;;
  13408. *)
  13409. dynamic_linker=no
  13410. ;;
  13411. esac
  13412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13413. $as_echo "$dynamic_linker" >&6; }
  13414. test "$dynamic_linker" = no && can_build_shared=no
  13415. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13416. if test "$GCC" = yes; then
  13417. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13418. fi
  13419. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13420. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13421. fi
  13422. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13423. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13424. fi
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13426. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13427. hardcode_action_CXX=
  13428. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13429. test -n "$runpath_var_CXX" ||
  13430. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13431. # We can hardcode non-existent directories.
  13432. if test "$hardcode_direct_CXX" != no &&
  13433. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13434. # have to relink, otherwise we might link with an installed library
  13435. # when we should be linking with a yet-to-be-installed one
  13436. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13437. test "$hardcode_minus_L_CXX" != no; then
  13438. # Linking always hardcodes the temporary library directory.
  13439. hardcode_action_CXX=relink
  13440. else
  13441. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13442. hardcode_action_CXX=immediate
  13443. fi
  13444. else
  13445. # We cannot hardcode anything, or else we can only hardcode existing
  13446. # directories.
  13447. hardcode_action_CXX=unsupported
  13448. fi
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13450. $as_echo "$hardcode_action_CXX" >&6; }
  13451. if test "$hardcode_action_CXX" = relink ||
  13452. test "$inherit_rpath_CXX" = yes; then
  13453. # Fast installation is not supported
  13454. enable_fast_install=no
  13455. elif test "$shlibpath_overrides_runpath" = yes ||
  13456. test "$enable_shared" = no; then
  13457. # Fast installation is not necessary
  13458. enable_fast_install=needless
  13459. fi
  13460. fi # test -n "$compiler"
  13461. CC=$lt_save_CC
  13462. CFLAGS=$lt_save_CFLAGS
  13463. LDCXX=$LD
  13464. LD=$lt_save_LD
  13465. GCC=$lt_save_GCC
  13466. with_gnu_ld=$lt_save_with_gnu_ld
  13467. lt_cv_path_LDCXX=$lt_cv_path_LD
  13468. lt_cv_path_LD=$lt_save_path_LD
  13469. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13470. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13471. fi # test "$_lt_caught_CXX_error" != yes
  13472. ac_ext=c
  13473. ac_cpp='$CPP $CPPFLAGS'
  13474. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13475. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13476. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13477. ac_config_commands="$ac_config_commands libtool"
  13478. # Only expand once:
  13479. # Checks for header files.
  13480. ac_header_dirent=no
  13481. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13482. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  13484. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13485. if eval \${$as_ac_Header+:} false; then :
  13486. $as_echo_n "(cached) " >&6
  13487. else
  13488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13489. /* end confdefs.h. */
  13490. #include <sys/types.h>
  13491. #include <$ac_hdr>
  13492. int
  13493. main ()
  13494. {
  13495. if ((DIR *) 0)
  13496. return 0;
  13497. ;
  13498. return 0;
  13499. }
  13500. _ACEOF
  13501. if ac_fn_c_try_compile "$LINENO"; then :
  13502. eval "$as_ac_Header=yes"
  13503. else
  13504. eval "$as_ac_Header=no"
  13505. fi
  13506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13507. fi
  13508. eval ac_res=\$$as_ac_Header
  13509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13510. $as_echo "$ac_res" >&6; }
  13511. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13512. cat >>confdefs.h <<_ACEOF
  13513. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13514. _ACEOF
  13515. ac_header_dirent=$ac_hdr; break
  13516. fi
  13517. done
  13518. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13519. if test $ac_header_dirent = dirent.h; then
  13520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13521. $as_echo_n "checking for library containing opendir... " >&6; }
  13522. if ${ac_cv_search_opendir+:} false; then :
  13523. $as_echo_n "(cached) " >&6
  13524. else
  13525. ac_func_search_save_LIBS=$LIBS
  13526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13527. /* end confdefs.h. */
  13528. /* Override any GCC internal prototype to avoid an error.
  13529. Use char because int might match the return type of a GCC
  13530. builtin and then its argument prototype would still apply. */
  13531. #ifdef __cplusplus
  13532. extern "C"
  13533. #endif
  13534. char opendir ();
  13535. int
  13536. main ()
  13537. {
  13538. return opendir ();
  13539. ;
  13540. return 0;
  13541. }
  13542. _ACEOF
  13543. for ac_lib in '' dir; do
  13544. if test -z "$ac_lib"; then
  13545. ac_res="none required"
  13546. else
  13547. ac_res=-l$ac_lib
  13548. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13549. fi
  13550. if ac_fn_c_try_link "$LINENO"; then :
  13551. ac_cv_search_opendir=$ac_res
  13552. fi
  13553. rm -f core conftest.err conftest.$ac_objext \
  13554. conftest$ac_exeext
  13555. if ${ac_cv_search_opendir+:} false; then :
  13556. break
  13557. fi
  13558. done
  13559. if ${ac_cv_search_opendir+:} false; then :
  13560. else
  13561. ac_cv_search_opendir=no
  13562. fi
  13563. rm conftest.$ac_ext
  13564. LIBS=$ac_func_search_save_LIBS
  13565. fi
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13567. $as_echo "$ac_cv_search_opendir" >&6; }
  13568. ac_res=$ac_cv_search_opendir
  13569. if test "$ac_res" != no; then :
  13570. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13571. fi
  13572. else
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  13574. $as_echo_n "checking for library containing opendir... " >&6; }
  13575. if ${ac_cv_search_opendir+:} false; then :
  13576. $as_echo_n "(cached) " >&6
  13577. else
  13578. ac_func_search_save_LIBS=$LIBS
  13579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13580. /* end confdefs.h. */
  13581. /* Override any GCC internal prototype to avoid an error.
  13582. Use char because int might match the return type of a GCC
  13583. builtin and then its argument prototype would still apply. */
  13584. #ifdef __cplusplus
  13585. extern "C"
  13586. #endif
  13587. char opendir ();
  13588. int
  13589. main ()
  13590. {
  13591. return opendir ();
  13592. ;
  13593. return 0;
  13594. }
  13595. _ACEOF
  13596. for ac_lib in '' x; do
  13597. if test -z "$ac_lib"; then
  13598. ac_res="none required"
  13599. else
  13600. ac_res=-l$ac_lib
  13601. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13602. fi
  13603. if ac_fn_c_try_link "$LINENO"; then :
  13604. ac_cv_search_opendir=$ac_res
  13605. fi
  13606. rm -f core conftest.err conftest.$ac_objext \
  13607. conftest$ac_exeext
  13608. if ${ac_cv_search_opendir+:} false; then :
  13609. break
  13610. fi
  13611. done
  13612. if ${ac_cv_search_opendir+:} false; then :
  13613. else
  13614. ac_cv_search_opendir=no
  13615. fi
  13616. rm conftest.$ac_ext
  13617. LIBS=$ac_func_search_save_LIBS
  13618. fi
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  13620. $as_echo "$ac_cv_search_opendir" >&6; }
  13621. ac_res=$ac_cv_search_opendir
  13622. if test "$ac_res" != no; then :
  13623. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13624. fi
  13625. fi
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13627. $as_echo_n "checking for ANSI C header files... " >&6; }
  13628. if ${ac_cv_header_stdc+:} false; then :
  13629. $as_echo_n "(cached) " >&6
  13630. else
  13631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13632. /* end confdefs.h. */
  13633. #include <stdlib.h>
  13634. #include <stdarg.h>
  13635. #include <string.h>
  13636. #include <float.h>
  13637. int
  13638. main ()
  13639. {
  13640. ;
  13641. return 0;
  13642. }
  13643. _ACEOF
  13644. if ac_fn_c_try_compile "$LINENO"; then :
  13645. ac_cv_header_stdc=yes
  13646. else
  13647. ac_cv_header_stdc=no
  13648. fi
  13649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13650. if test $ac_cv_header_stdc = yes; then
  13651. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13653. /* end confdefs.h. */
  13654. #include <string.h>
  13655. _ACEOF
  13656. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13657. $EGREP "memchr" >/dev/null 2>&1; then :
  13658. else
  13659. ac_cv_header_stdc=no
  13660. fi
  13661. rm -f conftest*
  13662. fi
  13663. if test $ac_cv_header_stdc = yes; then
  13664. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13666. /* end confdefs.h. */
  13667. #include <stdlib.h>
  13668. _ACEOF
  13669. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13670. $EGREP "free" >/dev/null 2>&1; then :
  13671. else
  13672. ac_cv_header_stdc=no
  13673. fi
  13674. rm -f conftest*
  13675. fi
  13676. if test $ac_cv_header_stdc = yes; then
  13677. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13678. if test "$cross_compiling" = yes; then :
  13679. :
  13680. else
  13681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13682. /* end confdefs.h. */
  13683. #include <ctype.h>
  13684. #include <stdlib.h>
  13685. #if ((' ' & 0x0FF) == 0x020)
  13686. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13687. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13688. #else
  13689. # define ISLOWER(c) \
  13690. (('a' <= (c) && (c) <= 'i') \
  13691. || ('j' <= (c) && (c) <= 'r') \
  13692. || ('s' <= (c) && (c) <= 'z'))
  13693. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13694. #endif
  13695. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13696. int
  13697. main ()
  13698. {
  13699. int i;
  13700. for (i = 0; i < 256; i++)
  13701. if (XOR (islower (i), ISLOWER (i))
  13702. || toupper (i) != TOUPPER (i))
  13703. return 2;
  13704. return 0;
  13705. }
  13706. _ACEOF
  13707. if ac_fn_c_try_run "$LINENO"; then :
  13708. else
  13709. ac_cv_header_stdc=no
  13710. fi
  13711. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13712. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13713. fi
  13714. fi
  13715. fi
  13716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13717. $as_echo "$ac_cv_header_stdc" >&6; }
  13718. if test $ac_cv_header_stdc = yes; then
  13719. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13720. fi
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  13722. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  13723. if ${ac_cv_header_sys_wait_h+:} false; then :
  13724. $as_echo_n "(cached) " >&6
  13725. else
  13726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13727. /* end confdefs.h. */
  13728. #include <sys/types.h>
  13729. #include <sys/wait.h>
  13730. #ifndef WEXITSTATUS
  13731. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  13732. #endif
  13733. #ifndef WIFEXITED
  13734. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  13735. #endif
  13736. int
  13737. main ()
  13738. {
  13739. int s;
  13740. wait (&s);
  13741. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  13742. ;
  13743. return 0;
  13744. }
  13745. _ACEOF
  13746. if ac_fn_c_try_compile "$LINENO"; then :
  13747. ac_cv_header_sys_wait_h=yes
  13748. else
  13749. ac_cv_header_sys_wait_h=no
  13750. fi
  13751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13752. fi
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  13754. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  13755. if test $ac_cv_header_sys_wait_h = yes; then
  13756. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  13757. fi
  13758. 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
  13759. do :
  13760. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13761. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13762. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13763. cat >>confdefs.h <<_ACEOF
  13764. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13765. _ACEOF
  13766. fi
  13767. done
  13768. # Checks for typedefs, structures, and compiler characteristics.
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  13770. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  13771. if ${ac_cv_header_stat_broken+:} false; then :
  13772. $as_echo_n "(cached) " >&6
  13773. else
  13774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13775. /* end confdefs.h. */
  13776. #include <sys/types.h>
  13777. #include <sys/stat.h>
  13778. #if defined S_ISBLK && defined S_IFDIR
  13779. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  13780. #endif
  13781. #if defined S_ISBLK && defined S_IFCHR
  13782. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  13783. #endif
  13784. #if defined S_ISLNK && defined S_IFREG
  13785. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  13786. #endif
  13787. #if defined S_ISSOCK && defined S_IFREG
  13788. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  13789. #endif
  13790. _ACEOF
  13791. if ac_fn_c_try_compile "$LINENO"; then :
  13792. ac_cv_header_stat_broken=no
  13793. else
  13794. ac_cv_header_stat_broken=yes
  13795. fi
  13796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13797. fi
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  13799. $as_echo "$ac_cv_header_stat_broken" >&6; }
  13800. if test $ac_cv_header_stat_broken = yes; then
  13801. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  13802. fi
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13804. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13805. if ${ac_cv_c_const+:} false; then :
  13806. $as_echo_n "(cached) " >&6
  13807. else
  13808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13809. /* end confdefs.h. */
  13810. int
  13811. main ()
  13812. {
  13813. /* FIXME: Include the comments suggested by Paul. */
  13814. #ifndef __cplusplus
  13815. /* Ultrix mips cc rejects this. */
  13816. typedef int charset[2];
  13817. const charset cs;
  13818. /* SunOS 4.1.1 cc rejects this. */
  13819. char const *const *pcpcc;
  13820. char **ppc;
  13821. /* NEC SVR4.0.2 mips cc rejects this. */
  13822. struct point {int x, y;};
  13823. static struct point const zero = {0,0};
  13824. /* AIX XL C 1.02.0.0 rejects this.
  13825. It does not let you subtract one const X* pointer from another in
  13826. an arm of an if-expression whose if-part is not a constant
  13827. expression */
  13828. const char *g = "string";
  13829. pcpcc = &g + (g ? g-g : 0);
  13830. /* HPUX 7.0 cc rejects these. */
  13831. ++pcpcc;
  13832. ppc = (char**) pcpcc;
  13833. pcpcc = (char const *const *) ppc;
  13834. { /* SCO 3.2v4 cc rejects this. */
  13835. char *t;
  13836. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13837. *t++ = 0;
  13838. if (s) return 0;
  13839. }
  13840. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13841. int x[] = {25, 17};
  13842. const int *foo = &x[0];
  13843. ++foo;
  13844. }
  13845. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13846. typedef const int *iptr;
  13847. iptr p = 0;
  13848. ++p;
  13849. }
  13850. { /* AIX XL C 1.02.0.0 rejects this saying
  13851. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13852. struct s { int j; const int *ap[3]; };
  13853. struct s *b; b->j = 5;
  13854. }
  13855. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13856. const int foo = 10;
  13857. if (!foo) return 0;
  13858. }
  13859. return !cs[0] && !zero.x;
  13860. #endif
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. if ac_fn_c_try_compile "$LINENO"; then :
  13866. ac_cv_c_const=yes
  13867. else
  13868. ac_cv_c_const=no
  13869. fi
  13870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13871. fi
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13873. $as_echo "$ac_cv_c_const" >&6; }
  13874. if test $ac_cv_c_const = no; then
  13875. $as_echo "#define const /**/" >>confdefs.h
  13876. fi
  13877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  13878. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  13879. if ${ac_cv_header_stdbool_h+:} false; then :
  13880. $as_echo_n "(cached) " >&6
  13881. else
  13882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13883. /* end confdefs.h. */
  13884. #include <stdbool.h>
  13885. #ifndef bool
  13886. "error: bool is not defined"
  13887. #endif
  13888. #ifndef false
  13889. "error: false is not defined"
  13890. #endif
  13891. #if false
  13892. "error: false is not 0"
  13893. #endif
  13894. #ifndef true
  13895. "error: true is not defined"
  13896. #endif
  13897. #if true != 1
  13898. "error: true is not 1"
  13899. #endif
  13900. #ifndef __bool_true_false_are_defined
  13901. "error: __bool_true_false_are_defined is not defined"
  13902. #endif
  13903. struct s { _Bool s: 1; _Bool t; } s;
  13904. char a[true == 1 ? 1 : -1];
  13905. char b[false == 0 ? 1 : -1];
  13906. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  13907. char d[(bool) 0.5 == true ? 1 : -1];
  13908. /* See body of main program for 'e'. */
  13909. char f[(_Bool) 0.0 == false ? 1 : -1];
  13910. char g[true];
  13911. char h[sizeof (_Bool)];
  13912. char i[sizeof s.t];
  13913. enum { j = false, k = true, l = false * true, m = true * 256 };
  13914. /* The following fails for
  13915. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  13916. _Bool n[m];
  13917. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  13918. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  13919. /* Catch a bug in an HP-UX C compiler. See
  13920. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  13921. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  13922. */
  13923. _Bool q = true;
  13924. _Bool *pq = &q;
  13925. int
  13926. main ()
  13927. {
  13928. bool e = &s;
  13929. *pq |= q;
  13930. *pq |= ! q;
  13931. /* Refer to every declared value, to avoid compiler optimizations. */
  13932. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  13933. + !m + !n + !o + !p + !q + !pq);
  13934. ;
  13935. return 0;
  13936. }
  13937. _ACEOF
  13938. if ac_fn_c_try_compile "$LINENO"; then :
  13939. ac_cv_header_stdbool_h=yes
  13940. else
  13941. ac_cv_header_stdbool_h=no
  13942. fi
  13943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13944. fi
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  13946. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  13947. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  13948. if test "x$ac_cv_type__Bool" = xyes; then :
  13949. cat >>confdefs.h <<_ACEOF
  13950. #define HAVE__BOOL 1
  13951. _ACEOF
  13952. fi
  13953. if test $ac_cv_header_stdbool_h = yes; then
  13954. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  13955. fi
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  13957. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  13958. if ${ac_cv_type_uid_t+:} false; then :
  13959. $as_echo_n "(cached) " >&6
  13960. else
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. #include <sys/types.h>
  13964. _ACEOF
  13965. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13966. $EGREP "uid_t" >/dev/null 2>&1; then :
  13967. ac_cv_type_uid_t=yes
  13968. else
  13969. ac_cv_type_uid_t=no
  13970. fi
  13971. rm -f conftest*
  13972. fi
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  13974. $as_echo "$ac_cv_type_uid_t" >&6; }
  13975. if test $ac_cv_type_uid_t = no; then
  13976. $as_echo "#define uid_t int" >>confdefs.h
  13977. $as_echo "#define gid_t int" >>confdefs.h
  13978. fi
  13979. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  13980. if test "x$ac_cv_type_pid_t" = xyes; then :
  13981. else
  13982. cat >>confdefs.h <<_ACEOF
  13983. #define pid_t int
  13984. _ACEOF
  13985. fi
  13986. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13987. if test "x$ac_cv_type_size_t" = xyes; then :
  13988. else
  13989. cat >>confdefs.h <<_ACEOF
  13990. #define size_t unsigned int
  13991. _ACEOF
  13992. fi
  13993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13994. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13995. if ${ac_cv_header_time+:} false; then :
  13996. $as_echo_n "(cached) " >&6
  13997. else
  13998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13999. /* end confdefs.h. */
  14000. #include <sys/types.h>
  14001. #include <sys/time.h>
  14002. #include <time.h>
  14003. int
  14004. main ()
  14005. {
  14006. if ((struct tm *) 0)
  14007. return 0;
  14008. ;
  14009. return 0;
  14010. }
  14011. _ACEOF
  14012. if ac_fn_c_try_compile "$LINENO"; then :
  14013. ac_cv_header_time=yes
  14014. else
  14015. ac_cv_header_time=no
  14016. fi
  14017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14018. fi
  14019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  14020. $as_echo "$ac_cv_header_time" >&6; }
  14021. if test $ac_cv_header_time = yes; then
  14022. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  14023. fi
  14024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14025. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14026. if ${ac_cv_struct_tm+:} false; then :
  14027. $as_echo_n "(cached) " >&6
  14028. else
  14029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14030. /* end confdefs.h. */
  14031. #include <sys/types.h>
  14032. #include <time.h>
  14033. int
  14034. main ()
  14035. {
  14036. struct tm tm;
  14037. int *p = &tm.tm_sec;
  14038. return !p;
  14039. ;
  14040. return 0;
  14041. }
  14042. _ACEOF
  14043. if ac_fn_c_try_compile "$LINENO"; then :
  14044. ac_cv_struct_tm=time.h
  14045. else
  14046. ac_cv_struct_tm=sys/time.h
  14047. fi
  14048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14049. fi
  14050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14051. $as_echo "$ac_cv_struct_tm" >&6; }
  14052. if test $ac_cv_struct_tm = sys/time.h; then
  14053. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14054. fi
  14055. # Checks for library functions.
  14056. for ac_header in unistd.h
  14057. do :
  14058. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  14059. if test "x$ac_cv_header_unistd_h" = xyes; then :
  14060. cat >>confdefs.h <<_ACEOF
  14061. #define HAVE_UNISTD_H 1
  14062. _ACEOF
  14063. fi
  14064. done
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14066. $as_echo_n "checking for working chown... " >&6; }
  14067. if ${ac_cv_func_chown_works+:} false; then :
  14068. $as_echo_n "(cached) " >&6
  14069. else
  14070. if test "$cross_compiling" = yes; then :
  14071. ac_cv_func_chown_works=no
  14072. else
  14073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14074. /* end confdefs.h. */
  14075. $ac_includes_default
  14076. #include <fcntl.h>
  14077. int
  14078. main ()
  14079. {
  14080. char *f = "conftest.chown";
  14081. struct stat before, after;
  14082. if (creat (f, 0600) < 0)
  14083. return 1;
  14084. if (stat (f, &before) < 0)
  14085. return 1;
  14086. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14087. return 1;
  14088. if (stat (f, &after) < 0)
  14089. return 1;
  14090. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14091. ;
  14092. return 0;
  14093. }
  14094. _ACEOF
  14095. if ac_fn_c_try_run "$LINENO"; then :
  14096. ac_cv_func_chown_works=yes
  14097. else
  14098. ac_cv_func_chown_works=no
  14099. fi
  14100. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14101. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14102. fi
  14103. rm -f conftest.chown
  14104. fi
  14105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14106. $as_echo "$ac_cv_func_chown_works" >&6; }
  14107. if test $ac_cv_func_chown_works = yes; then
  14108. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  14109. fi
  14110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14111. $as_echo_n "checking whether closedir returns void... " >&6; }
  14112. if ${ac_cv_func_closedir_void+:} false; then :
  14113. $as_echo_n "(cached) " >&6
  14114. else
  14115. if test "$cross_compiling" = yes; then :
  14116. ac_cv_func_closedir_void=yes
  14117. else
  14118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14119. /* end confdefs.h. */
  14120. $ac_includes_default
  14121. #include <$ac_header_dirent>
  14122. #ifndef __cplusplus
  14123. int closedir ();
  14124. #endif
  14125. int
  14126. main ()
  14127. {
  14128. return closedir (opendir (".")) != 0;
  14129. ;
  14130. return 0;
  14131. }
  14132. _ACEOF
  14133. if ac_fn_c_try_run "$LINENO"; then :
  14134. ac_cv_func_closedir_void=no
  14135. else
  14136. ac_cv_func_closedir_void=yes
  14137. fi
  14138. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14139. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14140. fi
  14141. fi
  14142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14143. $as_echo "$ac_cv_func_closedir_void" >&6; }
  14144. if test $ac_cv_func_closedir_void = yes; then
  14145. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  14146. fi
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14148. $as_echo_n "checking for error_at_line... " >&6; }
  14149. if ${ac_cv_lib_error_at_line+:} false; then :
  14150. $as_echo_n "(cached) " >&6
  14151. else
  14152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14153. /* end confdefs.h. */
  14154. #include <error.h>
  14155. int
  14156. main ()
  14157. {
  14158. error_at_line (0, 0, "", 0, "an error occurred");
  14159. ;
  14160. return 0;
  14161. }
  14162. _ACEOF
  14163. if ac_fn_c_try_link "$LINENO"; then :
  14164. ac_cv_lib_error_at_line=yes
  14165. else
  14166. ac_cv_lib_error_at_line=no
  14167. fi
  14168. rm -f core conftest.err conftest.$ac_objext \
  14169. conftest$ac_exeext conftest.$ac_ext
  14170. fi
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14172. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  14173. if test $ac_cv_lib_error_at_line = no; then
  14174. case " $LIBOBJS " in
  14175. *" error.$ac_objext "* ) ;;
  14176. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14177. ;;
  14178. esac
  14179. fi
  14180. for ac_header in vfork.h
  14181. do :
  14182. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14183. if test "x$ac_cv_header_vfork_h" = xyes; then :
  14184. cat >>confdefs.h <<_ACEOF
  14185. #define HAVE_VFORK_H 1
  14186. _ACEOF
  14187. fi
  14188. done
  14189. for ac_func in fork vfork
  14190. do :
  14191. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14192. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14193. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14194. cat >>confdefs.h <<_ACEOF
  14195. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14196. _ACEOF
  14197. fi
  14198. done
  14199. if test "x$ac_cv_func_fork" = xyes; then
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14201. $as_echo_n "checking for working fork... " >&6; }
  14202. if ${ac_cv_func_fork_works+:} false; then :
  14203. $as_echo_n "(cached) " >&6
  14204. else
  14205. if test "$cross_compiling" = yes; then :
  14206. ac_cv_func_fork_works=cross
  14207. else
  14208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14209. /* end confdefs.h. */
  14210. $ac_includes_default
  14211. int
  14212. main ()
  14213. {
  14214. /* By Ruediger Kuhlmann. */
  14215. return fork () < 0;
  14216. ;
  14217. return 0;
  14218. }
  14219. _ACEOF
  14220. if ac_fn_c_try_run "$LINENO"; then :
  14221. ac_cv_func_fork_works=yes
  14222. else
  14223. ac_cv_func_fork_works=no
  14224. fi
  14225. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14226. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14227. fi
  14228. fi
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14230. $as_echo "$ac_cv_func_fork_works" >&6; }
  14231. else
  14232. ac_cv_func_fork_works=$ac_cv_func_fork
  14233. fi
  14234. if test "x$ac_cv_func_fork_works" = xcross; then
  14235. case $host in
  14236. *-*-amigaos* | *-*-msdosdjgpp*)
  14237. # Override, as these systems have only a dummy fork() stub
  14238. ac_cv_func_fork_works=no
  14239. ;;
  14240. *)
  14241. ac_cv_func_fork_works=yes
  14242. ;;
  14243. esac
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14245. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14246. fi
  14247. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14248. if test "x$ac_cv_func_vfork" = xyes; then
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14250. $as_echo_n "checking for working vfork... " >&6; }
  14251. if ${ac_cv_func_vfork_works+:} false; then :
  14252. $as_echo_n "(cached) " >&6
  14253. else
  14254. if test "$cross_compiling" = yes; then :
  14255. ac_cv_func_vfork_works=cross
  14256. else
  14257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14258. /* end confdefs.h. */
  14259. /* Thanks to Paul Eggert for this test. */
  14260. $ac_includes_default
  14261. #include <sys/wait.h>
  14262. #ifdef HAVE_VFORK_H
  14263. # include <vfork.h>
  14264. #endif
  14265. /* On some sparc systems, changes by the child to local and incoming
  14266. argument registers are propagated back to the parent. The compiler
  14267. is told about this with #include <vfork.h>, but some compilers
  14268. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14269. static variable whose address is put into a register that is
  14270. clobbered by the vfork. */
  14271. static void
  14272. #ifdef __cplusplus
  14273. sparc_address_test (int arg)
  14274. # else
  14275. sparc_address_test (arg) int arg;
  14276. #endif
  14277. {
  14278. static pid_t child;
  14279. if (!child) {
  14280. child = vfork ();
  14281. if (child < 0) {
  14282. perror ("vfork");
  14283. _exit(2);
  14284. }
  14285. if (!child) {
  14286. arg = getpid();
  14287. write(-1, "", 0);
  14288. _exit (arg);
  14289. }
  14290. }
  14291. }
  14292. int
  14293. main ()
  14294. {
  14295. pid_t parent = getpid ();
  14296. pid_t child;
  14297. sparc_address_test (0);
  14298. child = vfork ();
  14299. if (child == 0) {
  14300. /* Here is another test for sparc vfork register problems. This
  14301. test uses lots of local variables, at least as many local
  14302. variables as main has allocated so far including compiler
  14303. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14304. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14305. reuse the register of parent for one of the local variables,
  14306. since it will think that parent can't possibly be used any more
  14307. in this routine. Assigning to the local variable will thus
  14308. munge parent in the parent process. */
  14309. pid_t
  14310. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14311. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14312. /* Convince the compiler that p..p7 are live; otherwise, it might
  14313. use the same hardware register for all 8 local variables. */
  14314. if (p != p1 || p != p2 || p != p3 || p != p4
  14315. || p != p5 || p != p6 || p != p7)
  14316. _exit(1);
  14317. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14318. from child file descriptors. If the child closes a descriptor
  14319. before it execs or exits, this munges the parent's descriptor
  14320. as well. Test for this by closing stdout in the child. */
  14321. _exit(close(fileno(stdout)) != 0);
  14322. } else {
  14323. int status;
  14324. struct stat st;
  14325. while (wait(&status) != child)
  14326. ;
  14327. return (
  14328. /* Was there some problem with vforking? */
  14329. child < 0
  14330. /* Did the child fail? (This shouldn't happen.) */
  14331. || status
  14332. /* Did the vfork/compiler bug occur? */
  14333. || parent != getpid()
  14334. /* Did the file descriptor bug occur? */
  14335. || fstat(fileno(stdout), &st) != 0
  14336. );
  14337. }
  14338. }
  14339. _ACEOF
  14340. if ac_fn_c_try_run "$LINENO"; then :
  14341. ac_cv_func_vfork_works=yes
  14342. else
  14343. ac_cv_func_vfork_works=no
  14344. fi
  14345. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14346. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14347. fi
  14348. fi
  14349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14350. $as_echo "$ac_cv_func_vfork_works" >&6; }
  14351. fi;
  14352. if test "x$ac_cv_func_fork_works" = xcross; then
  14353. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14355. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14356. fi
  14357. if test "x$ac_cv_func_vfork_works" = xyes; then
  14358. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14359. else
  14360. $as_echo "#define vfork fork" >>confdefs.h
  14361. fi
  14362. if test "x$ac_cv_func_fork_works" = xyes; then
  14363. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14366. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14367. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14368. $as_echo_n "(cached) " >&6
  14369. else
  14370. rm -f conftest.sym conftest.file
  14371. echo >conftest.file
  14372. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14373. if test "$cross_compiling" = yes; then :
  14374. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14375. else
  14376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14377. /* end confdefs.h. */
  14378. $ac_includes_default
  14379. int
  14380. main ()
  14381. {
  14382. struct stat sbuf;
  14383. /* Linux will dereference the symlink and fail, as required by POSIX.
  14384. That is better in the sense that it means we will not
  14385. have to compile and use the lstat wrapper. */
  14386. return lstat ("conftest.sym/", &sbuf) == 0;
  14387. ;
  14388. return 0;
  14389. }
  14390. _ACEOF
  14391. if ac_fn_c_try_run "$LINENO"; then :
  14392. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14393. else
  14394. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14395. fi
  14396. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14397. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14398. fi
  14399. else
  14400. # If the `ln -s' command failed, then we probably don't even
  14401. # have an lstat function.
  14402. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14403. fi
  14404. rm -f conftest.sym conftest.file
  14405. fi
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14407. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14408. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14409. cat >>confdefs.h <<_ACEOF
  14410. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14411. _ACEOF
  14412. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14413. case " $LIBOBJS " in
  14414. *" lstat.$ac_objext "* ) ;;
  14415. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14416. ;;
  14417. esac
  14418. fi
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  14420. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  14421. if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
  14422. $as_echo_n "(cached) " >&6
  14423. else
  14424. if test "$cross_compiling" = yes; then :
  14425. ac_cv_func_lstat_empty_string_bug=yes
  14426. else
  14427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14428. /* end confdefs.h. */
  14429. $ac_includes_default
  14430. int
  14431. main ()
  14432. {
  14433. struct stat sbuf;
  14434. return lstat ("", &sbuf) == 0;
  14435. ;
  14436. return 0;
  14437. }
  14438. _ACEOF
  14439. if ac_fn_c_try_run "$LINENO"; then :
  14440. ac_cv_func_lstat_empty_string_bug=no
  14441. else
  14442. ac_cv_func_lstat_empty_string_bug=yes
  14443. fi
  14444. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14445. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14446. fi
  14447. fi
  14448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  14449. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  14450. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  14451. case " $LIBOBJS " in
  14452. *" lstat.$ac_objext "* ) ;;
  14453. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14454. ;;
  14455. esac
  14456. cat >>confdefs.h <<_ACEOF
  14457. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  14458. _ACEOF
  14459. fi
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  14461. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  14462. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  14463. $as_echo_n "(cached) " >&6
  14464. else
  14465. rm -f conftest.sym conftest.file
  14466. echo >conftest.file
  14467. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  14468. if test "$cross_compiling" = yes; then :
  14469. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14470. else
  14471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14472. /* end confdefs.h. */
  14473. $ac_includes_default
  14474. int
  14475. main ()
  14476. {
  14477. struct stat sbuf;
  14478. /* Linux will dereference the symlink and fail, as required by POSIX.
  14479. That is better in the sense that it means we will not
  14480. have to compile and use the lstat wrapper. */
  14481. return lstat ("conftest.sym/", &sbuf) == 0;
  14482. ;
  14483. return 0;
  14484. }
  14485. _ACEOF
  14486. if ac_fn_c_try_run "$LINENO"; then :
  14487. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  14488. else
  14489. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14490. fi
  14491. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14492. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14493. fi
  14494. else
  14495. # If the `ln -s' command failed, then we probably don't even
  14496. # have an lstat function.
  14497. ac_cv_func_lstat_dereferences_slashed_symlink=no
  14498. fi
  14499. rm -f conftest.sym conftest.file
  14500. fi
  14501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  14502. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  14503. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  14504. cat >>confdefs.h <<_ACEOF
  14505. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  14506. _ACEOF
  14507. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  14508. case " $LIBOBJS " in
  14509. *" lstat.$ac_objext "* ) ;;
  14510. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  14511. ;;
  14512. esac
  14513. fi
  14514. for ac_header in stdlib.h
  14515. do :
  14516. ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  14517. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  14518. cat >>confdefs.h <<_ACEOF
  14519. #define HAVE_STDLIB_H 1
  14520. _ACEOF
  14521. fi
  14522. done
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  14524. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  14525. if ${ac_cv_func_malloc_0_nonnull+:} false; then :
  14526. $as_echo_n "(cached) " >&6
  14527. else
  14528. if test "$cross_compiling" = yes; then :
  14529. ac_cv_func_malloc_0_nonnull=no
  14530. else
  14531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14532. /* end confdefs.h. */
  14533. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14534. # include <stdlib.h>
  14535. #else
  14536. char *malloc ();
  14537. #endif
  14538. int
  14539. main ()
  14540. {
  14541. return ! malloc (0);
  14542. ;
  14543. return 0;
  14544. }
  14545. _ACEOF
  14546. if ac_fn_c_try_run "$LINENO"; then :
  14547. ac_cv_func_malloc_0_nonnull=yes
  14548. else
  14549. ac_cv_func_malloc_0_nonnull=no
  14550. fi
  14551. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14552. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14553. fi
  14554. fi
  14555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  14556. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  14557. if test $ac_cv_func_malloc_0_nonnull = yes; then :
  14558. $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  14559. else
  14560. $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  14561. case " $LIBOBJS " in
  14562. *" malloc.$ac_objext "* ) ;;
  14563. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14564. ;;
  14565. esac
  14566. $as_echo "#define malloc rpl_malloc" >>confdefs.h
  14567. fi
  14568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14569. $as_echo_n "checking for working memcmp... " >&6; }
  14570. if ${ac_cv_func_memcmp_working+:} false; then :
  14571. $as_echo_n "(cached) " >&6
  14572. else
  14573. if test "$cross_compiling" = yes; then :
  14574. ac_cv_func_memcmp_working=no
  14575. else
  14576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14577. /* end confdefs.h. */
  14578. $ac_includes_default
  14579. int
  14580. main ()
  14581. {
  14582. /* Some versions of memcmp are not 8-bit clean. */
  14583. char c0 = '\100', c1 = '\200', c2 = '\201';
  14584. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14585. return 1;
  14586. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14587. or more and with at least one buffer not starting on a 4-byte boundary.
  14588. William Lewis provided this test program. */
  14589. {
  14590. char foo[21];
  14591. char bar[21];
  14592. int i;
  14593. for (i = 0; i < 4; i++)
  14594. {
  14595. char *a = foo + i;
  14596. char *b = bar + i;
  14597. strcpy (a, "--------01111111");
  14598. strcpy (b, "--------10000000");
  14599. if (memcmp (a, b, 16) >= 0)
  14600. return 1;
  14601. }
  14602. return 0;
  14603. }
  14604. ;
  14605. return 0;
  14606. }
  14607. _ACEOF
  14608. if ac_fn_c_try_run "$LINENO"; then :
  14609. ac_cv_func_memcmp_working=yes
  14610. else
  14611. ac_cv_func_memcmp_working=no
  14612. fi
  14613. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14614. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14615. fi
  14616. fi
  14617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14618. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14619. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14620. *" memcmp.$ac_objext "* ) ;;
  14621. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14622. ;;
  14623. esac
  14624. for ac_header in $ac_header_list
  14625. do :
  14626. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14627. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  14628. "
  14629. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14630. cat >>confdefs.h <<_ACEOF
  14631. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14632. _ACEOF
  14633. fi
  14634. done
  14635. for ac_func in getpagesize
  14636. do :
  14637. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  14638. if test "x$ac_cv_func_getpagesize" = xyes; then :
  14639. cat >>confdefs.h <<_ACEOF
  14640. #define HAVE_GETPAGESIZE 1
  14641. _ACEOF
  14642. fi
  14643. done
  14644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  14645. $as_echo_n "checking for working mmap... " >&6; }
  14646. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  14647. $as_echo_n "(cached) " >&6
  14648. else
  14649. if test "$cross_compiling" = yes; then :
  14650. ac_cv_func_mmap_fixed_mapped=no
  14651. else
  14652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14653. /* end confdefs.h. */
  14654. $ac_includes_default
  14655. /* malloc might have been renamed as rpl_malloc. */
  14656. #undef malloc
  14657. /* Thanks to Mike Haertel and Jim Avera for this test.
  14658. Here is a matrix of mmap possibilities:
  14659. mmap private not fixed
  14660. mmap private fixed at somewhere currently unmapped
  14661. mmap private fixed at somewhere already mapped
  14662. mmap shared not fixed
  14663. mmap shared fixed at somewhere currently unmapped
  14664. mmap shared fixed at somewhere already mapped
  14665. For private mappings, we should verify that changes cannot be read()
  14666. back from the file, nor mmap's back from the file at a different
  14667. address. (There have been systems where private was not correctly
  14668. implemented like the infamous i386 svr4.0, and systems where the
  14669. VM page cache was not coherent with the file system buffer cache
  14670. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14671. For shared mappings, we should conversely verify that changes get
  14672. propagated back to all the places they're supposed to be.
  14673. Grep wants private fixed already mapped.
  14674. The main things grep needs to know about mmap are:
  14675. * does it exist and is it safe to write into the mmap'd area
  14676. * how to use it (BSD variants) */
  14677. #include <fcntl.h>
  14678. #include <sys/mman.h>
  14679. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14680. char *malloc ();
  14681. #endif
  14682. /* This mess was copied from the GNU getpagesize.h. */
  14683. #ifndef HAVE_GETPAGESIZE
  14684. # ifdef _SC_PAGESIZE
  14685. # define getpagesize() sysconf(_SC_PAGESIZE)
  14686. # else /* no _SC_PAGESIZE */
  14687. # ifdef HAVE_SYS_PARAM_H
  14688. # include <sys/param.h>
  14689. # ifdef EXEC_PAGESIZE
  14690. # define getpagesize() EXEC_PAGESIZE
  14691. # else /* no EXEC_PAGESIZE */
  14692. # ifdef NBPG
  14693. # define getpagesize() NBPG * CLSIZE
  14694. # ifndef CLSIZE
  14695. # define CLSIZE 1
  14696. # endif /* no CLSIZE */
  14697. # else /* no NBPG */
  14698. # ifdef NBPC
  14699. # define getpagesize() NBPC
  14700. # else /* no NBPC */
  14701. # ifdef PAGESIZE
  14702. # define getpagesize() PAGESIZE
  14703. # endif /* PAGESIZE */
  14704. # endif /* no NBPC */
  14705. # endif /* no NBPG */
  14706. # endif /* no EXEC_PAGESIZE */
  14707. # else /* no HAVE_SYS_PARAM_H */
  14708. # define getpagesize() 8192 /* punt totally */
  14709. # endif /* no HAVE_SYS_PARAM_H */
  14710. # endif /* no _SC_PAGESIZE */
  14711. #endif /* no HAVE_GETPAGESIZE */
  14712. int
  14713. main ()
  14714. {
  14715. char *data, *data2, *data3;
  14716. const char *cdata2;
  14717. int i, pagesize;
  14718. int fd, fd2;
  14719. pagesize = getpagesize ();
  14720. /* First, make a file with some known garbage in it. */
  14721. data = (char *) malloc (pagesize);
  14722. if (!data)
  14723. return 1;
  14724. for (i = 0; i < pagesize; ++i)
  14725. *(data + i) = rand ();
  14726. umask (0);
  14727. fd = creat ("conftest.mmap", 0600);
  14728. if (fd < 0)
  14729. return 2;
  14730. if (write (fd, data, pagesize) != pagesize)
  14731. return 3;
  14732. close (fd);
  14733. /* Next, check that the tail of a page is zero-filled. File must have
  14734. non-zero length, otherwise we risk SIGBUS for entire page. */
  14735. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  14736. if (fd2 < 0)
  14737. return 4;
  14738. cdata2 = "";
  14739. if (write (fd2, cdata2, 1) != 1)
  14740. return 5;
  14741. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  14742. if (data2 == MAP_FAILED)
  14743. return 6;
  14744. for (i = 0; i < pagesize; ++i)
  14745. if (*(data2 + i))
  14746. return 7;
  14747. close (fd2);
  14748. if (munmap (data2, pagesize))
  14749. return 8;
  14750. /* Next, try to mmap the file at a fixed address which already has
  14751. something else allocated at it. If we can, also make sure that
  14752. we see the same garbage. */
  14753. fd = open ("conftest.mmap", O_RDWR);
  14754. if (fd < 0)
  14755. return 9;
  14756. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14757. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14758. return 10;
  14759. for (i = 0; i < pagesize; ++i)
  14760. if (*(data + i) != *(data2 + i))
  14761. return 11;
  14762. /* Finally, make sure that changes to the mapped area do not
  14763. percolate back to the file as seen by read(). (This is a bug on
  14764. some variants of i386 svr4.0.) */
  14765. for (i = 0; i < pagesize; ++i)
  14766. *(data2 + i) = *(data2 + i) + 1;
  14767. data3 = (char *) malloc (pagesize);
  14768. if (!data3)
  14769. return 12;
  14770. if (read (fd, data3, pagesize) != pagesize)
  14771. return 13;
  14772. for (i = 0; i < pagesize; ++i)
  14773. if (*(data + i) != *(data3 + i))
  14774. return 14;
  14775. close (fd);
  14776. return 0;
  14777. }
  14778. _ACEOF
  14779. if ac_fn_c_try_run "$LINENO"; then :
  14780. ac_cv_func_mmap_fixed_mapped=yes
  14781. else
  14782. ac_cv_func_mmap_fixed_mapped=no
  14783. fi
  14784. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14785. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14786. fi
  14787. fi
  14788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14789. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  14790. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14791. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  14792. fi
  14793. rm -f conftest.mmap conftest.txt
  14794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  14795. $as_echo_n "checking return type of signal handlers... " >&6; }
  14796. if ${ac_cv_type_signal+:} false; then :
  14797. $as_echo_n "(cached) " >&6
  14798. else
  14799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14800. /* end confdefs.h. */
  14801. #include <sys/types.h>
  14802. #include <signal.h>
  14803. int
  14804. main ()
  14805. {
  14806. return *(signal (0, 0)) (0) == 1;
  14807. ;
  14808. return 0;
  14809. }
  14810. _ACEOF
  14811. if ac_fn_c_try_compile "$LINENO"; then :
  14812. ac_cv_type_signal=int
  14813. else
  14814. ac_cv_type_signal=void
  14815. fi
  14816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14817. fi
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  14819. $as_echo "$ac_cv_type_signal" >&6; }
  14820. cat >>confdefs.h <<_ACEOF
  14821. #define RETSIGTYPE $ac_cv_type_signal
  14822. _ACEOF
  14823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  14824. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  14825. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  14826. $as_echo_n "(cached) " >&6
  14827. else
  14828. if test "$cross_compiling" = yes; then :
  14829. ac_cv_func_stat_empty_string_bug=yes
  14830. else
  14831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14832. /* end confdefs.h. */
  14833. $ac_includes_default
  14834. int
  14835. main ()
  14836. {
  14837. struct stat sbuf;
  14838. return stat ("", &sbuf) == 0;
  14839. ;
  14840. return 0;
  14841. }
  14842. _ACEOF
  14843. if ac_fn_c_try_run "$LINENO"; then :
  14844. ac_cv_func_stat_empty_string_bug=no
  14845. else
  14846. ac_cv_func_stat_empty_string_bug=yes
  14847. fi
  14848. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14849. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14850. fi
  14851. fi
  14852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  14853. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  14854. if test $ac_cv_func_stat_empty_string_bug = yes; then
  14855. case " $LIBOBJS " in
  14856. *" stat.$ac_objext "* ) ;;
  14857. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  14858. ;;
  14859. esac
  14860. cat >>confdefs.h <<_ACEOF
  14861. #define HAVE_STAT_EMPTY_STRING_BUG 1
  14862. _ACEOF
  14863. fi
  14864. ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
  14865. if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
  14866. ac_have_decl=1
  14867. else
  14868. ac_have_decl=0
  14869. fi
  14870. cat >>confdefs.h <<_ACEOF
  14871. #define HAVE_DECL_STRERROR_R $ac_have_decl
  14872. _ACEOF
  14873. for ac_func in strerror_r
  14874. do :
  14875. ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
  14876. if test "x$ac_cv_func_strerror_r" = xyes; then :
  14877. cat >>confdefs.h <<_ACEOF
  14878. #define HAVE_STRERROR_R 1
  14879. _ACEOF
  14880. fi
  14881. done
  14882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  14883. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  14884. if ${ac_cv_func_strerror_r_char_p+:} false; then :
  14885. $as_echo_n "(cached) " >&6
  14886. else
  14887. ac_cv_func_strerror_r_char_p=no
  14888. if test $ac_cv_have_decl_strerror_r = yes; then
  14889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14890. /* end confdefs.h. */
  14891. $ac_includes_default
  14892. int
  14893. main ()
  14894. {
  14895. char buf[100];
  14896. char x = *strerror_r (0, buf, sizeof buf);
  14897. char *p = strerror_r (0, buf, sizeof buf);
  14898. return !p || x;
  14899. ;
  14900. return 0;
  14901. }
  14902. _ACEOF
  14903. if ac_fn_c_try_compile "$LINENO"; then :
  14904. ac_cv_func_strerror_r_char_p=yes
  14905. fi
  14906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14907. else
  14908. # strerror_r is not declared. Choose between
  14909. # systems that have relatively inaccessible declarations for the
  14910. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  14911. # former has a strerror_r that returns char*, while the latter
  14912. # has a strerror_r that returns `int'.
  14913. # This test should segfault on the DEC system.
  14914. if test "$cross_compiling" = yes; then :
  14915. :
  14916. else
  14917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14918. /* end confdefs.h. */
  14919. $ac_includes_default
  14920. extern char *strerror_r ();
  14921. int
  14922. main ()
  14923. {
  14924. char buf[100];
  14925. char x = *strerror_r (0, buf, sizeof buf);
  14926. return ! isalpha (x);
  14927. ;
  14928. return 0;
  14929. }
  14930. _ACEOF
  14931. if ac_fn_c_try_run "$LINENO"; then :
  14932. ac_cv_func_strerror_r_char_p=yes
  14933. fi
  14934. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14935. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14936. fi
  14937. fi
  14938. fi
  14939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  14940. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  14941. if test $ac_cv_func_strerror_r_char_p = yes; then
  14942. $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  14943. fi
  14944. for ac_func in strftime
  14945. do :
  14946. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  14947. if test "x$ac_cv_func_strftime" = xyes; then :
  14948. cat >>confdefs.h <<_ACEOF
  14949. #define HAVE_STRFTIME 1
  14950. _ACEOF
  14951. else
  14952. # strftime is in -lintl on SCO UNIX.
  14953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  14954. $as_echo_n "checking for strftime in -lintl... " >&6; }
  14955. if ${ac_cv_lib_intl_strftime+:} false; then :
  14956. $as_echo_n "(cached) " >&6
  14957. else
  14958. ac_check_lib_save_LIBS=$LIBS
  14959. LIBS="-lintl $LIBS"
  14960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14961. /* end confdefs.h. */
  14962. /* Override any GCC internal prototype to avoid an error.
  14963. Use char because int might match the return type of a GCC
  14964. builtin and then its argument prototype would still apply. */
  14965. #ifdef __cplusplus
  14966. extern "C"
  14967. #endif
  14968. char strftime ();
  14969. int
  14970. main ()
  14971. {
  14972. return strftime ();
  14973. ;
  14974. return 0;
  14975. }
  14976. _ACEOF
  14977. if ac_fn_c_try_link "$LINENO"; then :
  14978. ac_cv_lib_intl_strftime=yes
  14979. else
  14980. ac_cv_lib_intl_strftime=no
  14981. fi
  14982. rm -f core conftest.err conftest.$ac_objext \
  14983. conftest$ac_exeext conftest.$ac_ext
  14984. LIBS=$ac_check_lib_save_LIBS
  14985. fi
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  14987. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  14988. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  14989. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  14990. LIBS="-lintl $LIBS"
  14991. fi
  14992. fi
  14993. done
  14994. for ac_func in vprintf
  14995. do :
  14996. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  14997. if test "x$ac_cv_func_vprintf" = xyes; then :
  14998. cat >>confdefs.h <<_ACEOF
  14999. #define HAVE_VPRINTF 1
  15000. _ACEOF
  15001. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15002. if test "x$ac_cv_func__doprnt" = xyes; then :
  15003. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  15004. fi
  15005. fi
  15006. done
  15007. 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
  15008. do :
  15009. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15010. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15011. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15012. cat >>confdefs.h <<_ACEOF
  15013. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15014. _ACEOF
  15015. fi
  15016. done
  15017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5
  15018. $as_echo_n "checking for --enable-debug... " >&6; }
  15019. # Check whether --enable-debug was given.
  15020. if test "${enable_debug+set}" = set; then :
  15021. enableval=$enable_debug;
  15022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15023. $as_echo "yes" >&6; }
  15024. debug_defs="-DDEBUG -DMCC_DEBUG"
  15025. else
  15026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15027. $as_echo "no" >&6; }
  15028. debug_defs=""
  15029. fi
  15030. # Used for legacy style packaging where we bundle all of the dependencies.
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bundle" >&5
  15032. $as_echo_n "checking for --enable-bundle... " >&6; }
  15033. # Check whether --enable-bundle was given.
  15034. if test "${enable_bundle+set}" = set; then :
  15035. enableval=$enable_bundle;
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15037. $as_echo "yes" >&6; }
  15038. bundle="1";
  15039. else
  15040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15041. $as_echo "no" >&6; }
  15042. bundle="";
  15043. fi
  15044. if test "$bundle" = "1"; then
  15045. BUNDLE_TRUE=
  15046. BUNDLE_FALSE='#'
  15047. else
  15048. BUNDLE_TRUE='#'
  15049. BUNDLE_FALSE=
  15050. fi
  15051. # these enables are for optional or experimental features
  15052. if test -z "$enable_pam_passthru" ; then
  15053. enable_pam_passthru=yes # if not set on cmdline, set default
  15054. fi
  15055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-pam-passthru" >&5
  15056. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  15057. # Check whether --enable-pam-passthru was given.
  15058. if test "${enable_pam_passthru+set}" = set; then :
  15059. enableval=$enable_pam_passthru;
  15060. fi
  15061. if test "$enable_pam_passthru" = yes ; then
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15063. $as_echo "yes" >&6; }
  15064. $as_echo "#define ENABLE_PAM_PASSTHRU 1" >>confdefs.h
  15065. else
  15066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15067. $as_echo "no" >&6; }
  15068. fi
  15069. if test "$enable_pam_passthru" = "yes"; then
  15070. enable_pam_passthru_TRUE=
  15071. enable_pam_passthru_FALSE='#'
  15072. else
  15073. enable_pam_passthru_TRUE='#'
  15074. enable_pam_passthru_FALSE=
  15075. fi
  15076. if test -z "$enable_dna" ; then
  15077. enable_dna=yes # if not set on cmdline, set default
  15078. fi
  15079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-dna" >&5
  15080. $as_echo_n "checking for --enable-dna... " >&6; }
  15081. # Check whether --enable-dna was given.
  15082. if test "${enable_dna+set}" = set; then :
  15083. enableval=$enable_dna;
  15084. fi
  15085. if test "$enable_dna" = yes ; then
  15086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15087. $as_echo "yes" >&6; }
  15088. $as_echo "#define ENABLE_DNA 1" >>confdefs.h
  15089. else
  15090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15091. $as_echo "no" >&6; }
  15092. fi
  15093. if test "$enable_dna" = "yes"; then
  15094. enable_dna_TRUE=
  15095. enable_dna_FALSE='#'
  15096. else
  15097. enable_dna_TRUE='#'
  15098. enable_dna_FALSE=
  15099. fi
  15100. if test -z "$enable_ldapi" ; then
  15101. enable_ldapi=yes # if not set on cmdline, set default
  15102. fi
  15103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-ldapi" >&5
  15104. $as_echo_n "checking for --enable-ldapi... " >&6; }
  15105. # Check whether --enable-ldapi was given.
  15106. if test "${enable_ldapi+set}" = set; then :
  15107. enableval=$enable_ldapi;
  15108. fi
  15109. if test "$enable_ldapi" = yes ; then
  15110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15111. $as_echo "yes" >&6; }
  15112. $as_echo "#define ENABLE_LDAPI 1" >>confdefs.h
  15113. else
  15114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15115. $as_echo "no" >&6; }
  15116. fi
  15117. if test "$enable_ldapi" = "yes"; then
  15118. enable_ldapi_TRUE=
  15119. enable_ldapi_FALSE='#'
  15120. else
  15121. enable_ldapi_TRUE='#'
  15122. enable_ldapi_FALSE=
  15123. fi
  15124. if test -z "$enable_autobind" ; then
  15125. enable_autobind=no # if not set on cmdline, set default
  15126. fi
  15127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-autobind" >&5
  15128. $as_echo_n "checking for --enable-autobind... " >&6; }
  15129. # Check whether --enable-autobind was given.
  15130. if test "${enable_autobind+set}" = set; then :
  15131. enableval=$enable_autobind;
  15132. fi
  15133. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  15134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15135. $as_echo "yes" >&6; }
  15136. $as_echo "#define ENABLE_AUTOBIND 1" >>confdefs.h
  15137. else
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15139. $as_echo "no" >&6; }
  15140. fi
  15141. if test "$enable_autobind" = "yes"; then
  15142. enable_autobind_TRUE=
  15143. enable_autobind_FALSE='#'
  15144. else
  15145. enable_autobind_TRUE='#'
  15146. enable_autobind_FALSE=
  15147. fi
  15148. if test -z "$enable_auto_dn_suffix" ; then
  15149. enable_auto_dn_suffix=no # if not set on cmdline, set default
  15150. fi
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-auto-dn-suffix" >&5
  15152. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  15153. # Check whether --enable-autobind was given.
  15154. if test "${enable_autobind+set}" = set; then :
  15155. enableval=$enable_autobind;
  15156. fi
  15157. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  15158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15159. $as_echo "yes" >&6; }
  15160. $as_echo "#define ENABLE_AUTO_DN_SUFFIX 1" >>confdefs.h
  15161. else
  15162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15163. $as_echo "no" >&6; }
  15164. fi
  15165. if test "$enable_auto_dn_suffix" = "yes"; then
  15166. enable_auto_dn_suffix_TRUE=
  15167. enable_auto_dn_suffix_FALSE='#'
  15168. else
  15169. enable_auto_dn_suffix_TRUE='#'
  15170. enable_auto_dn_suffix_FALSE=
  15171. fi
  15172. if test -z "$enable_bitwise" ; then
  15173. enable_bitwise=yes # if not set on cmdline, set default
  15174. fi
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-bitwise" >&5
  15176. $as_echo_n "checking for --enable-bitwise... " >&6; }
  15177. # Check whether --enable-bitwise was given.
  15178. if test "${enable_bitwise+set}" = set; then :
  15179. enableval=$enable_bitwise;
  15180. fi
  15181. if test "$enable_bitwise" = yes ; then
  15182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15183. $as_echo "yes" >&6; }
  15184. $as_echo "#define ENABLE_BITWISE 1" >>confdefs.h
  15185. else
  15186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15187. $as_echo "no" >&6; }
  15188. fi
  15189. if test "$enable_bitwise" = "yes"; then
  15190. enable_bitwise_TRUE=
  15191. enable_bitwise_FALSE='#'
  15192. else
  15193. enable_bitwise_TRUE='#'
  15194. enable_bitwise_FALSE=
  15195. fi
  15196. if test -z "$enable_presence" ; then
  15197. enable_presence=no # if not set on cmdline, set default
  15198. fi
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-presence" >&5
  15200. $as_echo_n "checking for --enable-presence... " >&6; }
  15201. # Check whether --enable-presence was given.
  15202. if test "${enable_presence+set}" = set; then :
  15203. enableval=$enable_presence;
  15204. fi
  15205. if test "$enable_presence" = yes ; then
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15207. $as_echo "yes" >&6; }
  15208. $as_echo "#define ENABLE_PRESENCE 1" >>confdefs.h
  15209. else
  15210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15211. $as_echo "no" >&6; }
  15212. fi
  15213. if test "$enable_presence" = "yes"; then
  15214. enable_presence_TRUE=
  15215. enable_presence_FALSE='#'
  15216. else
  15217. enable_presence_TRUE='#'
  15218. enable_presence_FALSE=
  15219. fi
  15220. if test -z "$enable_acctpolicy" ; then
  15221. enable_acctpolicy=yes # if not set on cmdline, set default
  15222. fi
  15223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-acctpolicy" >&5
  15224. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  15225. # Check whether --enable-acctpolicy was given.
  15226. if test "${enable_acctpolicy+set}" = set; then :
  15227. enableval=$enable_acctpolicy;
  15228. fi
  15229. if test "$enable_acctpolicy" = yes ; then
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15231. $as_echo "yes" >&6; }
  15232. $as_echo "#define ENABLE_ACCTPOLICY 1" >>confdefs.h
  15233. else
  15234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15235. $as_echo "no" >&6; }
  15236. fi
  15237. if test "$enable_acctpolicy" = "yes"; then
  15238. enable_acctpolicy_TRUE=
  15239. enable_acctpolicy_FALSE='#'
  15240. else
  15241. enable_acctpolicy_TRUE='#'
  15242. enable_acctpolicy_FALSE=
  15243. fi
  15244. # the default prefix - override with --prefix or --with-fhs
  15245. # BEGIN COPYRIGHT BLOCK
  15246. # Copyright (C) 2006 Red Hat, Inc.
  15247. # All rights reserved.
  15248. #
  15249. # This program is free software; you can redistribute it and/or
  15250. # modify it under the terms of the GNU General Public License
  15251. # as published by the Free Software Foundation; either version 2
  15252. # of the License, or (at your option) any later version.
  15253. #
  15254. # This program is distributed in the hope that it will be useful,
  15255. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15256. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15257. # GNU General Public License for more details.
  15258. #
  15259. # You should have received a copy of the GNU General Public License
  15260. # along with this program; if not, write to the Free Software
  15261. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15262. #
  15263. # END COPYRIGHT BLOCK
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FHS..." >&5
  15265. $as_echo "$as_me: checking for FHS..." >&6;}
  15266. # check for --with-fhs
  15267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs" >&5
  15268. $as_echo_n "checking for --with-fhs... " >&6; }
  15269. # Check whether --with-fhs was given.
  15270. if test "${with_fhs+set}" = set; then :
  15271. withval=$with_fhs;
  15272. with_fhs=yes
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15274. $as_echo "yes" >&6; }
  15275. else
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15277. $as_echo "no" >&6; }
  15278. fi
  15279. if test "$with_fhs" = "yes"; then
  15280. $as_echo "#define IS_FHS 1" >>confdefs.h
  15281. fi
  15282. # check for --with-fhs-opt
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fhs-opt" >&5
  15284. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  15285. # Check whether --with-fhs-opt was given.
  15286. if test "${with_fhs_opt+set}" = set; then :
  15287. withval=$with_fhs_opt;
  15288. with_fhs_opt=yes
  15289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15290. $as_echo "yes" >&6; }
  15291. else
  15292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15293. $as_echo "no" >&6; }
  15294. fi
  15295. if test "$with_fhs_opt" = "yes"; then
  15296. $as_echo "#define IS_FHS_OPT 1" >>confdefs.h
  15297. fi
  15298. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  15299. as_fn_error $? "Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." "$LINENO" 5
  15300. fi
  15301. # installation paths - by default, we store everything
  15302. # under the prefix. The with-fhs option will use /usr,
  15303. # /etc, and /var. The with-fhs-opt option will use the
  15304. # prefix, but it's sysconfdir and localstatedir will be
  15305. # /etc/opt, and /var/opt.
  15306. if test "$with_fhs_opt" = "yes"; then
  15307. # Override sysconfdir and localstatedir if FHS optional
  15308. # package was requested.
  15309. sysconfdir='/etc/opt'
  15310. localstatedir='/var/opt'
  15311. # relative to datadir
  15312. sampledatadir=/data
  15313. # relative to datadir
  15314. scripttemplatedir=/script-templates
  15315. # relative to datadir
  15316. updatedir=/updates
  15317. # relative to libdir
  15318. serverdir=
  15319. # relative to includedir
  15320. serverincdir=
  15321. # relative to libdir
  15322. serverplugindir=/plugins
  15323. # relative to datadir
  15324. infdir=/inf
  15325. # relative to datadir
  15326. mibdir=/mibs
  15327. # location of property/resource files, relative to datadir
  15328. propertydir=/properties
  15329. # relative to libdir
  15330. perldir=/perl
  15331. else
  15332. if test "$with_fhs" = "yes"; then
  15333. ac_default_prefix=/usr
  15334. prefix=$ac_default_prefix
  15335. exec_prefix=$prefix
  15336. sysconfdir='/etc'
  15337. localstatedir='/var'
  15338. fi
  15339. # relative to datadir
  15340. sampledatadir=/$PACKAGE_NAME/data
  15341. # relative to datadir
  15342. scripttemplatedir=/$PACKAGE_NAME/script-templates
  15343. # relative to datadir
  15344. updatedir=/$PACKAGE_NAME/updates
  15345. # relative to libdir
  15346. serverdir=/$PACKAGE_NAME
  15347. # relative to includedir
  15348. serverincdir=/$PACKAGE_NAME
  15349. # relative to libdir
  15350. serverplugindir=/$PACKAGE_NAME/plugins
  15351. # relative to datadir
  15352. infdir=/$PACKAGE_NAME/inf
  15353. # relative to datadir
  15354. mibdir=/$PACKAGE_NAME/mibs
  15355. # location of property/resource files, relative to datadir
  15356. propertydir=/$PACKAGE_NAME/properties
  15357. # relative to libdir
  15358. perldir=/$PACKAGE_NAME/perl
  15359. fi
  15360. # if mandir is the default value, override it
  15361. # otherwise, the user must have set it - just use it
  15362. if test X"$mandir" = X'${prefix}/man' ; then
  15363. mandir='$(datadir)/man'
  15364. fi
  15365. # Shared paths for all layouts
  15366. # relative to sysconfdir
  15367. configdir=/$PACKAGE_NAME/config
  15368. # relative to sysconfdir
  15369. schemadir=/$PACKAGE_NAME/schema
  15370. # default user, group
  15371. defaultuser=nobody
  15372. defaultgroup=nobody
  15373. if test -z "$with_tmpfiles_d" ; then
  15374. if test -d $sysconfdir/tmpfiles.d ; then
  15375. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  15376. fi
  15377. fi
  15378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tmpfiles-d" >&5
  15379. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  15380. # Check whether --with-tmpfiles-d was given.
  15381. if test "${with_tmpfiles_d+set}" = set; then :
  15382. withval=$with_tmpfiles_d;
  15383. fi
  15384. if test "$with_tmpfiles_d" = yes ; then
  15385. as_fn_error $? "You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" "$LINENO" 5
  15386. elif test "$with_tmpfiles_d" = no ; then
  15387. with_tmpfiles_d=
  15388. else
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tmpfiles_d" >&5
  15390. $as_echo "$with_tmpfiles_d" >&6; }
  15391. fi
  15392. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15393. if test -n "$ac_tool_prefix"; then
  15394. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15395. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15397. $as_echo_n "checking for $ac_word... " >&6; }
  15398. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15399. $as_echo_n "(cached) " >&6
  15400. else
  15401. case $PKG_CONFIG in
  15402. [\\/]* | ?:[\\/]*)
  15403. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15404. ;;
  15405. *)
  15406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15407. for as_dir in $PATH
  15408. do
  15409. IFS=$as_save_IFS
  15410. test -z "$as_dir" && as_dir=.
  15411. for ac_exec_ext in '' $ac_executable_extensions; do
  15412. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15413. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15415. break 2
  15416. fi
  15417. done
  15418. done
  15419. IFS=$as_save_IFS
  15420. ;;
  15421. esac
  15422. fi
  15423. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15424. if test -n "$PKG_CONFIG"; then
  15425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15426. $as_echo "$PKG_CONFIG" >&6; }
  15427. else
  15428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15429. $as_echo "no" >&6; }
  15430. fi
  15431. fi
  15432. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15433. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15434. # Extract the first word of "pkg-config", so it can be a program name with args.
  15435. set dummy pkg-config; ac_word=$2
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15437. $as_echo_n "checking for $ac_word... " >&6; }
  15438. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15439. $as_echo_n "(cached) " >&6
  15440. else
  15441. case $ac_pt_PKG_CONFIG in
  15442. [\\/]* | ?:[\\/]*)
  15443. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15444. ;;
  15445. *)
  15446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15447. for as_dir in $PATH
  15448. do
  15449. IFS=$as_save_IFS
  15450. test -z "$as_dir" && as_dir=.
  15451. for ac_exec_ext in '' $ac_executable_extensions; do
  15452. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15453. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15455. break 2
  15456. fi
  15457. done
  15458. done
  15459. IFS=$as_save_IFS
  15460. ;;
  15461. esac
  15462. fi
  15463. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15464. if test -n "$ac_pt_PKG_CONFIG"; then
  15465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15466. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15467. else
  15468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15469. $as_echo "no" >&6; }
  15470. fi
  15471. if test "x$ac_pt_PKG_CONFIG" = x; then
  15472. PKG_CONFIG=""
  15473. else
  15474. case $cross_compiling:$ac_tool_warned in
  15475. yes:)
  15476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15477. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15478. ac_tool_warned=yes ;;
  15479. esac
  15480. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15481. fi
  15482. else
  15483. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15484. fi
  15485. fi
  15486. if test -n "$PKG_CONFIG"; then
  15487. _pkg_min_version=0.9.0
  15488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15489. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15490. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15492. $as_echo "yes" >&6; }
  15493. else
  15494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15495. $as_echo "no" >&6; }
  15496. PKG_CONFIG=""
  15497. fi
  15498. fi
  15499. if test -n "$PKG_CONFIG" ; then
  15500. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  15501. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  15502. fi
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemunitdir" >&5
  15504. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  15505. # Check whether --with-systemdsystemunitdir was given.
  15506. if test "${with_systemdsystemunitdir+set}" = set; then :
  15507. withval=$with_systemdsystemunitdir;
  15508. fi
  15509. if test "$with_systemdsystemunitdir" = yes ; then
  15510. if test -n "$default_systemdsystemunitdir" ; then
  15511. with_systemdsystemunitdir=$default_systemdsystemunitdir
  15512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15513. $as_echo "$with_systemdsystemunitdir" >&6; }
  15514. else
  15515. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15516. fi
  15517. elif test "$with_systemdsystemunitdir" = no ; then
  15518. with_systemdsystemunitdir=
  15519. else
  15520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemunitdir" >&5
  15521. $as_echo "$with_systemdsystemunitdir" >&6; }
  15522. fi
  15523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdsystemconfdir" >&5
  15524. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  15525. # Check whether --with-systemdsystemconfdir was given.
  15526. if test "${with_systemdsystemconfdir+set}" = set; then :
  15527. withval=$with_systemdsystemconfdir;
  15528. fi
  15529. if test "$with_systemdsystemconfdir" = yes ; then
  15530. if test -n "$default_systemdsystemconfdir" ; then
  15531. with_systemdsystemconfdir=$default_systemdsystemconfdir
  15532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15533. $as_echo "$with_systemdsystemconfdir" >&6; }
  15534. else
  15535. as_fn_error $? "You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" "$LINENO" 5
  15536. fi
  15537. elif test "$with_systemdsystemconfdir" = no ; then
  15538. with_systemdsystemconfdir=
  15539. else
  15540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdsystemconfdir" >&5
  15541. $as_echo "$with_systemdsystemconfdir" >&6; }
  15542. fi
  15543. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  15544. if test -z "$with_systemdgroupname" ; then
  15545. with_systemdgroupname=$PACKAGE_NAME.target
  15546. fi
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-systemdgroupname" >&5
  15548. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  15549. # Check whether --with-systemdgroupname was given.
  15550. if test "${with_systemdgroupname+set}" = set; then :
  15551. withval=$with_systemdgroupname;
  15552. fi
  15553. if test "$with_systemdgroupname" = yes ; then
  15554. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15555. elif test "$with_systemdgroupname" = no ; then
  15556. as_fn_error $? "You must specify --with-systemdgroupname=name.of.group" "$LINENO" 5
  15557. else
  15558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemdgroupname" >&5
  15559. $as_echo "$with_systemdgroupname" >&6; }
  15560. fi
  15561. fi
  15562. # check for --with-instconfigdir
  15563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-instconfigdir" >&5
  15564. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  15565. # Check whether --with-instconfigdir was given.
  15566. if test "${with_instconfigdir+set}" = set; then :
  15567. withval=$with_instconfigdir;
  15568. if test $withval = yes ; then
  15569. as_fn_error $? "Please specify a full path with --with-instconfigdir" "$LINENO" 5
  15570. fi
  15571. instconfigdir="$withval"
  15572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15573. $as_echo "$withval" >&6; }
  15574. else
  15575. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  15576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15577. $as_echo "no" >&6; }
  15578. fi
  15579. # WINNT should be true if building on Windows system not using
  15580. # cygnus, mingw, or the like and using cmd.exe as the shell
  15581. if false; then
  15582. WINNT_TRUE=
  15583. WINNT_FALSE='#'
  15584. else
  15585. WINNT_TRUE='#'
  15586. WINNT_FALSE=
  15587. fi
  15588. # Deal with platform dependent defines
  15589. # initdir is the location for the SysV init scripts - very heavily platform
  15590. # dependent and not specified in fhs or lsb
  15591. # and not used if systemd is used
  15592. initdir='$(sysconfdir)/rc.d'
  15593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-initddir" >&5
  15594. $as_echo_n "checking for --with-initddir... " >&6; }
  15595. # Check whether --with-initddir was given.
  15596. if test "${with_initddir+set}" = set; then :
  15597. withval=$with_initddir;
  15598. if test "$withval" = yes -o "$withval" = no ; then
  15599. as_fn_error $? "Please specify a full path with --with-initddir" "$LINENO" 5
  15600. fi
  15601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
  15602. $as_echo "$withval" >&6; }
  15603. else
  15604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15605. $as_echo "no" >&6; }
  15606. fi
  15607. # on most platforms, we will just use perl from PATH
  15608. # On some platforms, we cannot. Why not just use any old
  15609. # perl? Because of perldap. We use a perldap that is
  15610. # compiled to either 32bit or 64bit, so we must use a native
  15611. # perl binary compiled with the same bitsize. On Solaris
  15612. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  15613. # those with our 64 bit compiled product.
  15614. perlexec='/usr/bin/env perl'
  15615. # we use stty in perl scripts to disable password echo
  15616. # this doesn't work unless the full absolute path of the
  15617. # stty command is used e.g. system("stty -echo") does not
  15618. # work but system("/bin/stty -echo") does work
  15619. # since the path of stty may not be the same on all
  15620. # platforms, we set the default here to /bin/stty and
  15621. # allow that value to be overridden in the platform
  15622. # specific section below
  15623. sttyexec=/bin/stty
  15624. case $host in
  15625. *-*-linux*)
  15626. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15627. $as_echo "#define Linux 1" >>confdefs.h
  15628. $as_echo "#define LINUX 1" >>confdefs.h
  15629. $as_echo "#define LINUX2_0 1" >>confdefs.h
  15630. $as_echo "#define LINUX2_2 1" >>confdefs.h
  15631. $as_echo "#define LINUX2_4 1" >>confdefs.h
  15632. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  15633. platform="linux"
  15634. initdir='$(sysconfdir)/rc.d/init.d'
  15635. # do arch specific linux stuff here
  15636. case $host in
  15637. i*86-*-linux*)
  15638. $as_echo "#define CPU_x86 /**/" >>confdefs.h
  15639. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15640. ;;
  15641. x86_64-*-linux*)
  15642. $as_echo "#define CPU_x86_64 /**/" >>confdefs.h
  15643. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15644. ;;
  15645. esac
  15646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  15647. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  15648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15649. /* end confdefs.h. */
  15650. int
  15651. main ()
  15652. {
  15653. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  15654. ;
  15655. return 0;
  15656. }
  15657. _ACEOF
  15658. if ac_fn_c_try_link "$LINENO"; then :
  15659. $as_echo "#define HAVE_64BIT_ATOMIC_CAS_FUNC 1" >>confdefs.h
  15660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15661. $as_echo "yes" >&6; }
  15662. else
  15663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15664. $as_echo "no" >&6; }
  15665. fi
  15666. rm -f core conftest.err conftest.$ac_objext \
  15667. conftest$ac_exeext conftest.$ac_ext
  15668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC provided 64-bit atomic ops functions ..." >&5
  15669. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  15670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15671. /* end confdefs.h. */
  15672. int
  15673. main ()
  15674. {
  15675. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  15676. ;
  15677. return 0;
  15678. }
  15679. _ACEOF
  15680. if ac_fn_c_try_link "$LINENO"; then :
  15681. $as_echo "#define HAVE_64BIT_ATOMIC_OP_FUNCS 1" >>confdefs.h
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15683. $as_echo "yes" >&6; }
  15684. else
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15686. $as_echo "no" >&6; }
  15687. fi
  15688. rm -f core conftest.err conftest.$ac_objext \
  15689. conftest$ac_exeext conftest.$ac_ext
  15690. # some programs use the native thread library directly
  15691. THREADLIB=-lpthread
  15692. THREADLIB=$THREADLIB
  15693. LIBCRYPT=-lcrypt
  15694. LIBCRYPT=$LIBCRYPT
  15695. $as_echo "#define USE_POSIX_RWLOCKS 1" >>confdefs.h
  15696. ;;
  15697. ia64-hp-hpux*)
  15698. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15699. $as_echo "#define hpux 1" >>confdefs.h
  15700. $as_echo "#define HPUX 1" >>confdefs.h
  15701. $as_echo "#define HPUX11 1" >>confdefs.h
  15702. $as_echo "#define HPUX11_23 1" >>confdefs.h
  15703. $as_echo "#define CPU_ia64 /**/" >>confdefs.h
  15704. $as_echo "#define OS_hpux 1" >>confdefs.h
  15705. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15706. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15707. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15708. # assume 64 bit
  15709. perlexec='/opt/perl_64/bin/perl'
  15710. platform="hpux"
  15711. initconfigdir="/$PACKAGE_NAME/config"
  15712. # HPUX doesn't use /etc for this
  15713. initdir=/init.d
  15714. ;;
  15715. hppa*-hp-hpux*)
  15716. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15717. $as_echo "#define hpux 1" >>confdefs.h
  15718. $as_echo "#define HPUX 1" >>confdefs.h
  15719. $as_echo "#define HPUX11 1" >>confdefs.h
  15720. $as_echo "#define HPUX11_11 1" >>confdefs.h
  15721. $as_echo "#define CPU_hppa /**/" >>confdefs.h
  15722. $as_echo "#define OS_hpux 1" >>confdefs.h
  15723. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  15724. $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
  15725. $as_echo "#define _INCLUDE_STDC__SOURCE_199901 1" >>confdefs.h
  15726. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15727. # assume 64 bit
  15728. initconfigdir="/$PACKAGE_NAME/config"
  15729. perlexec='/opt/perl_64/bin/perl'
  15730. platform="hpux"
  15731. # HPUX doesn't use /etc for this
  15732. initdir=/init.d
  15733. ;;
  15734. *-*-solaris*)
  15735. $as_echo "#define XP_UNIX 1" >>confdefs.h
  15736. $as_echo "#define SVR4 1" >>confdefs.h
  15737. $as_echo "#define __svr4 1" >>confdefs.h
  15738. $as_echo "#define __svr4__ 1" >>confdefs.h
  15739. $as_echo "#define _SVID_GETTOD 1" >>confdefs.h
  15740. $as_echo "#define SOLARIS 1" >>confdefs.h
  15741. $as_echo "#define OS_solaris 1" >>confdefs.h
  15742. $as_echo "#define sunos5 1" >>confdefs.h
  15743. $as_echo "#define OSVERSION 509" >>confdefs.h
  15744. $as_echo "#define _REENTRANT 1" >>confdefs.h
  15745. $as_echo "#define NO_DOMAINNAME 1" >>confdefs.h
  15746. LIBSOCKET=-lsocket
  15747. LIBSOCKET=$LIBSOCKET
  15748. LIBNSL=-lnsl
  15749. LIBNSL=$LIBNSL
  15750. LIBDL=-ldl
  15751. LIBDL=$LIBDL
  15752. LIBCSTD=-lCstd
  15753. LIBCSTD=$LIBCSTD
  15754. LIBCRUN=-lCrun
  15755. LIBCRUN=$LIBCRUN
  15756. platform="solaris"
  15757. initdir='$(sysconfdir)/init.d'
  15758. case $host in
  15759. i?86-*-solaris2.1[0-9]*)
  15760. $as_echo "#define HAVE_GETPEERUCRED 1" >>confdefs.h
  15761. ;;
  15762. sparc-*-solaris*)
  15763. $as_echo "#define ATOMIC_64BIT_OPERATIONS 1" >>confdefs.h
  15764. $as_echo "#define CPU_sparc /**/" >>confdefs.h
  15765. TARGET='SPARC'
  15766. ;;
  15767. esac
  15768. ;;
  15769. *)
  15770. platform=""
  15771. ;;
  15772. esac
  15773. # cmd line overrides default setting above
  15774. if test -n "$with_initddir" ; then
  15775. initdir="$with_initddir"
  15776. fi
  15777. # sysv init scripts not used when systemd is used
  15778. # set default initconfigdir if not already set
  15779. # value will be set so as to be relative to $(sysconfdir)
  15780. if test -z "$initconfigdir" ; then
  15781. if test -d /etc/sysconfig ; then
  15782. initconfigdir=/sysconfig
  15783. elif test -d /etc/default ; then
  15784. initconfigdir=/default
  15785. else
  15786. initconfigdir="/$PACKAGE_NAME/config"
  15787. fi
  15788. fi
  15789. if test "$platform" = "hpux"; then
  15790. HPUX_TRUE=
  15791. HPUX_FALSE='#'
  15792. else
  15793. HPUX_TRUE='#'
  15794. HPUX_FALSE=
  15795. fi
  15796. if test "$platform" = "solaris"; then
  15797. SOLARIS_TRUE=
  15798. SOLARIS_FALSE='#'
  15799. else
  15800. SOLARIS_TRUE='#'
  15801. SOLARIS_FALSE=
  15802. fi
  15803. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  15804. SYSTEMD_TRUE=
  15805. SYSTEMD_FALSE='#'
  15806. else
  15807. SYSTEMD_TRUE='#'
  15808. SYSTEMD_FALSE=
  15809. fi
  15810. # Check for library dependencies
  15811. # BEGIN COPYRIGHT BLOCK
  15812. # Copyright (C) 2007 Red Hat, Inc.
  15813. # All rights reserved.
  15814. #
  15815. # This program is free software; you can redistribute it and/or
  15816. # modify it under the terms of the GNU General Public License
  15817. # as published by the Free Software Foundation; either version 2
  15818. # of the License, or (at your option) any later version.
  15819. #
  15820. # This program is distributed in the hope that it will be useful,
  15821. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15822. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15823. # GNU General Public License for more details.
  15824. #
  15825. # You should have received a copy of the GNU General Public License
  15826. # along with this program; if not, write to the Free Software
  15827. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15828. #
  15829. # END COPYRIGHT BLOCK
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR..." >&5
  15831. $as_echo "$as_me: checking for NSPR..." >&6;}
  15832. # check for --with-nspr
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr" >&5
  15834. $as_echo_n "checking for --with-nspr... " >&6; }
  15835. # Check whether --with-nspr was given.
  15836. if test "${with_nspr+set}" = set; then :
  15837. withval=$with_nspr;
  15838. if test "$withval" = "yes"
  15839. then
  15840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15841. $as_echo "yes" >&6; }
  15842. elif test "$withval" = "no"
  15843. then
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15845. $as_echo "no" >&6; }
  15846. as_fn_error $? "NSPR is required." "$LINENO" 5
  15847. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  15848. then
  15849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15850. $as_echo "using $withval" >&6; }
  15851. NSPRDIR=$withval
  15852. nspr_inc="-I$NSPRDIR/include"
  15853. nspr_lib="-L$NSPRDIR/lib"
  15854. nspr_libdir="$NSPRDIR/lib"
  15855. else
  15856. echo
  15857. as_fn_error $? "$withval not found" "$LINENO" 5
  15858. fi
  15859. else
  15860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15861. $as_echo "yes" >&6; }
  15862. fi
  15863. # check for --with-nspr-inc
  15864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-inc" >&5
  15865. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  15866. # Check whether --with-nspr-inc was given.
  15867. if test "${with_nspr_inc+set}" = set; then :
  15868. withval=$with_nspr_inc;
  15869. if test -e "$withval"/nspr.h
  15870. then
  15871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15872. $as_echo "using $withval" >&6; }
  15873. nspr_inc="-I$withval"
  15874. else
  15875. echo
  15876. as_fn_error $? "$withval not found" "$LINENO" 5
  15877. fi
  15878. else
  15879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15880. $as_echo "no" >&6; }
  15881. fi
  15882. # check for --with-nspr-lib
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nspr-lib" >&5
  15884. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  15885. # Check whether --with-nspr-lib was given.
  15886. if test "${with_nspr_lib+set}" = set; then :
  15887. withval=$with_nspr_lib;
  15888. if test -d "$withval"
  15889. then
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  15891. $as_echo "using $withval" >&6; }
  15892. nspr_lib="-L$withval"
  15893. nspr_libdir="$withval"
  15894. else
  15895. echo
  15896. as_fn_error $? "$withval not found" "$LINENO" 5
  15897. fi
  15898. else
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15900. $as_echo "no" >&6; }
  15901. fi
  15902. # if NSPR is not found yet, try pkg-config
  15903. # last resort
  15904. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  15905. # Extract the first word of "pkg-config", so it can be a program name with args.
  15906. set dummy pkg-config; ac_word=$2
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15908. $as_echo_n "checking for $ac_word... " >&6; }
  15909. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15910. $as_echo_n "(cached) " >&6
  15911. else
  15912. case $PKG_CONFIG in
  15913. [\\/]* | ?:[\\/]*)
  15914. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15915. ;;
  15916. *)
  15917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15918. for as_dir in $PATH
  15919. do
  15920. IFS=$as_save_IFS
  15921. test -z "$as_dir" && as_dir=.
  15922. for ac_exec_ext in '' $ac_executable_extensions; do
  15923. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15924. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15926. break 2
  15927. fi
  15928. done
  15929. done
  15930. IFS=$as_save_IFS
  15931. ;;
  15932. esac
  15933. fi
  15934. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15935. if test -n "$PKG_CONFIG"; then
  15936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15937. $as_echo "$PKG_CONFIG" >&6; }
  15938. else
  15939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15940. $as_echo "no" >&6; }
  15941. fi
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr with pkg-config" >&5
  15943. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  15944. if test -n "$PKG_CONFIG"; then
  15945. if $PKG_CONFIG --exists nspr; then
  15946. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  15947. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  15948. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  15949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSPR" >&5
  15950. $as_echo "using system NSPR" >&6; }
  15951. elif $PKG_CONFIG --exists dirsec-nspr; then
  15952. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  15953. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  15954. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSPR" >&5
  15956. $as_echo "using system dirsec NSPR" >&6; }
  15957. else
  15958. as_fn_error $? "NSPR not found, specify with --with-nspr." "$LINENO" 5
  15959. fi
  15960. fi
  15961. fi
  15962. # BEGIN COPYRIGHT BLOCK
  15963. # Copyright (C) 2007 Red Hat, Inc.
  15964. # All rights reserved.
  15965. #
  15966. # This program is free software; you can redistribute it and/or
  15967. # modify it under the terms of the GNU General Public License
  15968. # as published by the Free Software Foundation; either version 2
  15969. # of the License, or (at your option) any later version.
  15970. #
  15971. # This program is distributed in the hope that it will be useful,
  15972. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15973. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15974. # GNU General Public License for more details.
  15975. #
  15976. # You should have received a copy of the GNU General Public License
  15977. # along with this program; if not, write to the Free Software
  15978. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15979. #
  15980. # END COPYRIGHT BLOCK
  15981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS..." >&5
  15982. $as_echo "$as_me: checking for NSS..." >&6;}
  15983. # check for --with-nss
  15984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss" >&5
  15985. $as_echo_n "checking for --with-nss... " >&6; }
  15986. # Check whether --with-nss was given.
  15987. if test "${with_nss+set}" = set; then :
  15988. withval=$with_nss;
  15989. if test "$withval" = "yes"
  15990. then
  15991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15992. $as_echo "yes" >&6; }
  15993. elif test "$withval" = "no"
  15994. then
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15996. $as_echo "no" >&6; }
  15997. as_fn_error $? "NSS is required." "$LINENO" 5
  15998. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  15999. then
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16001. $as_echo "using $withval" >&6; }
  16002. NSSDIR=$withval
  16003. nss_inc="-I$NSSDIR/include"
  16004. nss_lib="-L$NSSDIR/lib"
  16005. nss_libdir="$NSSDIR/lib"
  16006. else
  16007. echo
  16008. as_fn_error $? "$withval not found" "$LINENO" 5
  16009. fi
  16010. else
  16011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16012. $as_echo "yes" >&6; }
  16013. fi
  16014. # check for --with-nss-inc
  16015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-inc" >&5
  16016. $as_echo_n "checking for --with-nss-inc... " >&6; }
  16017. # Check whether --with-nss-inc was given.
  16018. if test "${with_nss_inc+set}" = set; then :
  16019. withval=$with_nss_inc;
  16020. if test -e "$withval"/nss.h
  16021. then
  16022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16023. $as_echo "using $withval" >&6; }
  16024. nss_inc="-I$withval"
  16025. else
  16026. echo
  16027. as_fn_error $? "$withval not found" "$LINENO" 5
  16028. fi
  16029. else
  16030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16031. $as_echo "no" >&6; }
  16032. fi
  16033. # check for --with-nss-lib
  16034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-nss-lib" >&5
  16035. $as_echo_n "checking for --with-nss-lib... " >&6; }
  16036. # Check whether --with-nss-lib was given.
  16037. if test "${with_nss_lib+set}" = set; then :
  16038. withval=$with_nss_lib;
  16039. if test -d "$withval"
  16040. then
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16042. $as_echo "using $withval" >&6; }
  16043. nss_lib="-L$withval"
  16044. nss_libdir="$withval"
  16045. else
  16046. echo
  16047. as_fn_error $? "$withval not found" "$LINENO" 5
  16048. fi
  16049. else
  16050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16051. $as_echo "no" >&6; }
  16052. fi
  16053. # if NSS is not found yet, try pkg-config
  16054. # last resort
  16055. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  16056. # Extract the first word of "pkg-config", so it can be a program name with args.
  16057. set dummy pkg-config; ac_word=$2
  16058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16059. $as_echo_n "checking for $ac_word... " >&6; }
  16060. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16061. $as_echo_n "(cached) " >&6
  16062. else
  16063. case $PKG_CONFIG in
  16064. [\\/]* | ?:[\\/]*)
  16065. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16066. ;;
  16067. *)
  16068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16069. for as_dir in $PATH
  16070. do
  16071. IFS=$as_save_IFS
  16072. test -z "$as_dir" && as_dir=.
  16073. for ac_exec_ext in '' $ac_executable_extensions; do
  16074. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16075. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16077. break 2
  16078. fi
  16079. done
  16080. done
  16081. IFS=$as_save_IFS
  16082. ;;
  16083. esac
  16084. fi
  16085. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16086. if test -n "$PKG_CONFIG"; then
  16087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16088. $as_echo "$PKG_CONFIG" >&6; }
  16089. else
  16090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16091. $as_echo "no" >&6; }
  16092. fi
  16093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss with pkg-config" >&5
  16094. $as_echo_n "checking for nss with pkg-config... " >&6; }
  16095. if test -n "$PKG_CONFIG"; then
  16096. if $PKG_CONFIG --exists nss; then
  16097. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  16098. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  16099. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  16100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system NSS" >&5
  16101. $as_echo "using system NSS" >&6; }
  16102. elif $PKG_CONFIG --exists dirsec-nss; then
  16103. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  16104. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  16105. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system dirsec NSS" >&5
  16107. $as_echo "using system dirsec NSS" >&6; }
  16108. else
  16109. as_fn_error $? "NSS not found, specify with --with-nss." "$LINENO" 5
  16110. fi
  16111. fi
  16112. fi
  16113. # BEGIN COPYRIGHT BLOCK
  16114. # Copyright (C) 2009 Red Hat, Inc.
  16115. # All rights reserved.
  16116. #
  16117. # This program is free software; you can redistribute it and/or
  16118. # modify it under the terms of the GNU General Public License
  16119. # as published by the Free Software Foundation; either version 2
  16120. # of the License, or (at your option) any later version.
  16121. #
  16122. # This program is distributed in the hope that it will be useful,
  16123. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16124. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16125. # GNU General Public License for more details.
  16126. #
  16127. # You should have received a copy of the GNU General Public License
  16128. # along with this program; if not, write to the Free Software
  16129. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16130. #
  16131. # END COPYRIGHT BLOCK
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP..." >&5
  16133. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  16134. # check for --with-openldap
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap" >&5
  16136. $as_echo_n "checking for --with-openldap... " >&6; }
  16137. # Check whether --with-openldap was given.
  16138. if test "${with_openldap+set}" = set; then :
  16139. withval=$with_openldap;
  16140. if test "$withval" = yes
  16141. then
  16142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP" >&5
  16143. $as_echo "using system OpenLDAP" >&6; }
  16144. elif test "$withval" = no
  16145. then
  16146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16147. $as_echo "no" >&6; }
  16148. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16149. then
  16150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16151. $as_echo "using $withval" >&6; }
  16152. OPENLDAPDIR=$withval
  16153. openldap_incdir="$OPENLDAPDIR/include"
  16154. openldap_inc="-I$openldap_incdir"
  16155. openldap_lib="-L$OPENLDAPDIR/lib"
  16156. openldap_libdir="$OPENLDAPDIR/lib"
  16157. openldap_bindir="$OPENLDAPDIR/bin"
  16158. with_openldap=yes
  16159. else
  16160. echo
  16161. as_fn_error $? "$withval not found" "$LINENO" 5
  16162. fi
  16163. else
  16164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16165. $as_echo "no" >&6; }
  16166. fi
  16167. # check for --with-openldap-inc
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-inc" >&5
  16169. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  16170. # Check whether --with-openldap-inc was given.
  16171. if test "${with_openldap_inc+set}" = set; then :
  16172. withval=$with_openldap_inc;
  16173. if test -e "$withval"/ldap.h
  16174. then
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16176. $as_echo "using $withval" >&6; }
  16177. openldap_incdir="$withval"
  16178. openldap_inc="-I$withval"
  16179. with_openldap=yes
  16180. else
  16181. echo
  16182. as_fn_error $? "$withval not found" "$LINENO" 5
  16183. fi
  16184. else
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16186. $as_echo "no" >&6; }
  16187. fi
  16188. # check for --with-openldap-lib
  16189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-lib" >&5
  16190. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  16191. # Check whether --with-openldap-lib was given.
  16192. if test "${with_openldap_lib+set}" = set; then :
  16193. withval=$with_openldap_lib;
  16194. if test -d "$withval"
  16195. then
  16196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16197. $as_echo "using $withval" >&6; }
  16198. openldap_lib="-L$withval"
  16199. openldap_libdir="$withval"
  16200. with_openldap=yes
  16201. else
  16202. echo
  16203. as_fn_error $? "$withval not found" "$LINENO" 5
  16204. fi
  16205. else
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16207. $as_echo "no" >&6; }
  16208. fi
  16209. # check for --with-openldap-bin
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-openldap-bin" >&5
  16211. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  16212. # Check whether --with-openldap-bin was given.
  16213. if test "${with_openldap_bin+set}" = set; then :
  16214. withval=$with_openldap_bin;
  16215. if test -d "$withval"
  16216. then
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16218. $as_echo "using $withval" >&6; }
  16219. openldap_bindir="$withval"
  16220. with_openldap=yes
  16221. else
  16222. echo
  16223. as_fn_error $? "$withval not found" "$LINENO" 5
  16224. fi
  16225. else
  16226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16227. $as_echo "no" >&6; }
  16228. fi
  16229. # if OPENLDAP is not found yet, try pkg-config
  16230. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  16231. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  16232. # Extract the first word of "pkg-config", so it can be a program name with args.
  16233. set dummy pkg-config; ac_word=$2
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16235. $as_echo_n "checking for $ac_word... " >&6; }
  16236. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16237. $as_echo_n "(cached) " >&6
  16238. else
  16239. case $PKG_CONFIG in
  16240. [\\/]* | ?:[\\/]*)
  16241. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16242. ;;
  16243. *)
  16244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16245. for as_dir in $PATH
  16246. do
  16247. IFS=$as_save_IFS
  16248. test -z "$as_dir" && as_dir=.
  16249. for ac_exec_ext in '' $ac_executable_extensions; do
  16250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16251. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16253. break 2
  16254. fi
  16255. done
  16256. done
  16257. IFS=$as_save_IFS
  16258. ;;
  16259. esac
  16260. fi
  16261. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16262. if test -n "$PKG_CONFIG"; then
  16263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16264. $as_echo "$PKG_CONFIG" >&6; }
  16265. else
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16267. $as_echo "no" >&6; }
  16268. fi
  16269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP with pkg-config" >&5
  16270. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  16271. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  16272. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  16273. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  16274. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  16275. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  16276. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  16277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system OpenLDAP from pkg-config" >&5
  16278. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  16279. else
  16280. openldap_incdir="/usr/include"
  16281. openldap_inc="-I$openldap_incdir"
  16282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no OpenLDAP pkg-config files" >&5
  16283. $as_echo "no OpenLDAP pkg-config files" >&6; }
  16284. fi
  16285. fi
  16286. fi
  16287. if test "$with_openldap" = yes ; then
  16288. save_cppflags="$CPPFLAGS"
  16289. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  16290. ac_fn_c_check_header_mongrel "$LINENO" "ldap_features.h" "ac_cv_header_ldap_features_h" "$ac_includes_default"
  16291. if test "x$ac_cv_header_ldap_features_h" = xyes; then :
  16292. else
  16293. as_fn_error $? "specified with-openldap but ldap_features.h not found" "$LINENO" 5
  16294. fi
  16295. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16296. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16297. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  16298. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  16299. save_ldflags="$LDFLAGS"
  16300. LDFLAGS="$openldap_lib $LDFLAGS"
  16301. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  16302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap$ol_libver" >&5
  16303. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  16304. if eval \${$as_ac_Lib+:} false; then :
  16305. $as_echo_n "(cached) " >&6
  16306. else
  16307. ac_check_lib_save_LIBS=$LIBS
  16308. LIBS="-lldap$ol_libver $LIBS"
  16309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16310. /* end confdefs.h. */
  16311. /* Override any GCC internal prototype to avoid an error.
  16312. Use char because int might match the return type of a GCC
  16313. builtin and then its argument prototype would still apply. */
  16314. #ifdef __cplusplus
  16315. extern "C"
  16316. #endif
  16317. char ldap_initialize ();
  16318. int
  16319. main ()
  16320. {
  16321. return ldap_initialize ();
  16322. ;
  16323. return 0;
  16324. }
  16325. _ACEOF
  16326. if ac_fn_c_try_link "$LINENO"; then :
  16327. eval "$as_ac_Lib=yes"
  16328. else
  16329. eval "$as_ac_Lib=no"
  16330. fi
  16331. rm -f core conftest.err conftest.$ac_objext \
  16332. conftest$ac_exeext conftest.$ac_ext
  16333. LIBS=$ac_check_lib_save_LIBS
  16334. fi
  16335. eval ac_res=\$$as_ac_Lib
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16337. $as_echo "$ac_res" >&6; }
  16338. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16339. have_ldap_lib=1
  16340. fi
  16341. if test -z "$have_ldap_lib" ; then
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  16343. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  16344. if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
  16345. $as_echo_n "(cached) " >&6
  16346. else
  16347. ac_check_lib_save_LIBS=$LIBS
  16348. LIBS="-lldap $LIBS"
  16349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16350. /* end confdefs.h. */
  16351. /* Override any GCC internal prototype to avoid an error.
  16352. Use char because int might match the return type of a GCC
  16353. builtin and then its argument prototype would still apply. */
  16354. #ifdef __cplusplus
  16355. extern "C"
  16356. #endif
  16357. char ldap_initialize ();
  16358. int
  16359. main ()
  16360. {
  16361. return ldap_initialize ();
  16362. ;
  16363. return 0;
  16364. }
  16365. _ACEOF
  16366. if ac_fn_c_try_link "$LINENO"; then :
  16367. ac_cv_lib_ldap_ldap_initialize=yes
  16368. else
  16369. ac_cv_lib_ldap_ldap_initialize=no
  16370. fi
  16371. rm -f core conftest.err conftest.$ac_objext \
  16372. conftest$ac_exeext conftest.$ac_ext
  16373. LIBS=$ac_check_lib_save_LIBS
  16374. fi
  16375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  16376. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  16377. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
  16378. unset ol_libver
  16379. else
  16380. as_fn_error $? "specified with-openldap but libldap not found" "$LINENO" 5
  16381. fi
  16382. fi
  16383. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  16384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  16385. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  16386. if eval \${$as_ac_Lib+:} false; then :
  16387. $as_echo_n "(cached) " >&6
  16388. else
  16389. ac_check_lib_save_LIBS=$LIBS
  16390. LIBS="-lldap$ol_libver $LIBS"
  16391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16392. /* end confdefs.h. */
  16393. /* Override any GCC internal prototype to avoid an error.
  16394. Use char because int might match the return type of a GCC
  16395. builtin and then its argument prototype would still apply. */
  16396. #ifdef __cplusplus
  16397. extern "C"
  16398. #endif
  16399. char ldap_url_parse_ext ();
  16400. int
  16401. main ()
  16402. {
  16403. return ldap_url_parse_ext ();
  16404. ;
  16405. return 0;
  16406. }
  16407. _ACEOF
  16408. if ac_fn_c_try_link "$LINENO"; then :
  16409. eval "$as_ac_Lib=yes"
  16410. else
  16411. eval "$as_ac_Lib=no"
  16412. fi
  16413. rm -f core conftest.err conftest.$ac_objext \
  16414. conftest$ac_exeext conftest.$ac_ext
  16415. LIBS=$ac_check_lib_save_LIBS
  16416. fi
  16417. eval ac_res=\$$as_ac_Lib
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16419. $as_echo "$ac_res" >&6; }
  16420. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16421. $as_echo "#define HAVE_LDAP_URL_PARSE_EXT 1" >>confdefs.h
  16422. fi
  16423. ldap_lib_ldif=""
  16424. LDFLAGS="$LDFLAGS"
  16425. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldif_open" | $as_tr_sh`
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldif_open in -lldap$ol_libver" >&5
  16427. $as_echo_n "checking for ldif_open in -lldap$ol_libver... " >&6; }
  16428. if eval \${$as_ac_Lib+:} false; then :
  16429. $as_echo_n "(cached) " >&6
  16430. else
  16431. ac_check_lib_save_LIBS=$LIBS
  16432. LIBS="-lldap$ol_libver $LIBS"
  16433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16434. /* end confdefs.h. */
  16435. /* Override any GCC internal prototype to avoid an error.
  16436. Use char because int might match the return type of a GCC
  16437. builtin and then its argument prototype would still apply. */
  16438. #ifdef __cplusplus
  16439. extern "C"
  16440. #endif
  16441. char ldif_open ();
  16442. int
  16443. main ()
  16444. {
  16445. return ldif_open ();
  16446. ;
  16447. return 0;
  16448. }
  16449. _ACEOF
  16450. if ac_fn_c_try_link "$LINENO"; then :
  16451. eval "$as_ac_Lib=yes"
  16452. else
  16453. eval "$as_ac_Lib=no"
  16454. fi
  16455. rm -f core conftest.err conftest.$ac_objext \
  16456. conftest$ac_exeext conftest.$ac_ext
  16457. LIBS=$ac_check_lib_save_LIBS
  16458. fi
  16459. eval ac_res=\$$as_ac_Lib
  16460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16461. $as_echo "$ac_res" >&6; }
  16462. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16463. ldap_lib_ldif=
  16464. else
  16465. ldap_lib_ldif=-lldif$ol_libver
  16466. fi
  16467. LDFLAGS="$save_ldflags"
  16468. CPPFLAGS="$save_cppflags"
  16469. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  16470. # where to find ldapsearch, et. al.
  16471. ldaptool_bindir=$openldap_bindir
  16472. # default options to pass to the tools
  16473. # use -x because all of our scripts use simple bind
  16474. ldaptool_opts=-x
  16475. # get plain output from ldapsearch - no version, no comments
  16476. plainldif_opts=-LLL
  16477. fi
  16478. # BEGIN COPYRIGHT BLOCK
  16479. # Copyright (C) 2007 Red Hat, Inc.
  16480. # All rights reserved.
  16481. #
  16482. # This program is free software; you can redistribute it and/or
  16483. # modify it under the terms of the GNU General Public License
  16484. # as published by the Free Software Foundation; either version 2
  16485. # of the License, or (at your option) any later version.
  16486. #
  16487. # This program is distributed in the hope that it will be useful,
  16488. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16489. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16490. # GNU General Public License for more details.
  16491. #
  16492. # You should have received a copy of the GNU General Public License
  16493. # along with this program; if not, write to the Free Software
  16494. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16495. #
  16496. # END COPYRIGHT BLOCK
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla LDAPSDK..." >&5
  16498. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  16499. # check for --with-ldapsdk
  16500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk" >&5
  16501. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  16502. # Check whether --with-ldapsdk was given.
  16503. if test "${with_ldapsdk+set}" = set; then :
  16504. withval=$with_ldapsdk;
  16505. if test "$withval" = yes
  16506. then
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16508. $as_echo "yes" >&6; }
  16509. elif test "$withval" = no
  16510. then
  16511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16512. $as_echo "no" >&6; }
  16513. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  16514. then
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16516. $as_echo "using $withval" >&6; }
  16517. LDAPSDKDIR=$withval
  16518. ldapsdk_inc="-I$LDAPSDKDIR/include"
  16519. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  16520. ldapsdk_libdir="$LDAPSDKDIR/lib"
  16521. ldapsdk_bindir="$LDAPSDKDIR/bin"
  16522. with_ldapsdk=yes
  16523. else
  16524. echo
  16525. as_fn_error $? "$withval not found" "$LINENO" 5
  16526. fi
  16527. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  16528. then
  16529. as_fn_error $? "Cannot use both LDAPSDK and OpenLDAP." "$LINENO" 5
  16530. fi
  16531. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  16532. then
  16533. as_fn_error $? "Either LDAPSDK or OpenLDAP must be used." "$LINENO" 5
  16534. fi
  16535. else
  16536. if test "$with_openldap" = yes
  16537. then
  16538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16539. $as_echo "no" >&6; }
  16540. else
  16541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16542. $as_echo "yes" >&6; }
  16543. with_ldapsdk=yes
  16544. fi
  16545. fi
  16546. # check for --with-ldapsdk-inc
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-inc" >&5
  16548. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  16549. # Check whether --with-ldapsdk-inc was given.
  16550. if test "${with_ldapsdk_inc+set}" = set; then :
  16551. withval=$with_ldapsdk_inc;
  16552. if test -e "$withval"/ldap.h
  16553. then
  16554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16555. $as_echo "using $withval" >&6; }
  16556. ldapsdk_inc="-I$withval"
  16557. with_ldapsdk=yes
  16558. else
  16559. echo
  16560. as_fn_error $? "$withval not found" "$LINENO" 5
  16561. fi
  16562. else
  16563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16564. $as_echo "no" >&6; }
  16565. fi
  16566. # check for --with-ldapsdk-lib
  16567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-lib" >&5
  16568. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  16569. # Check whether --with-ldapsdk-lib was given.
  16570. if test "${with_ldapsdk_lib+set}" = set; then :
  16571. withval=$with_ldapsdk_lib;
  16572. if test -d "$withval"
  16573. then
  16574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16575. $as_echo "using $withval" >&6; }
  16576. ldapsdk_lib="-L$withval"
  16577. ldapsdk_libdir="$withval"
  16578. with_ldapsdk=yes
  16579. else
  16580. echo
  16581. as_fn_error $? "$withval not found" "$LINENO" 5
  16582. fi
  16583. else
  16584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16585. $as_echo "no" >&6; }
  16586. fi
  16587. # check for --with-ldapsdk-bin
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ldapsdk-bin" >&5
  16589. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  16590. # Check whether --with-ldapsdk-bin was given.
  16591. if test "${with_ldapsdk_bin+set}" = set; then :
  16592. withval=$with_ldapsdk_bin;
  16593. if test -d "$withval"
  16594. then
  16595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16596. $as_echo "using $withval" >&6; }
  16597. ldapsdk_bindir="$withval"
  16598. with_ldapsdk=yes
  16599. else
  16600. echo
  16601. as_fn_error $? "$withval not found" "$LINENO" 5
  16602. fi
  16603. else
  16604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16605. $as_echo "no" >&6; }
  16606. fi
  16607. # if LDAPSDK is not found yet, try pkg-config
  16608. # last resort
  16609. if test "$with_ldapsdk" = yes ; then
  16610. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  16611. # Extract the first word of "pkg-config", so it can be a program name with args.
  16612. set dummy pkg-config; ac_word=$2
  16613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16614. $as_echo_n "checking for $ac_word... " >&6; }
  16615. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16616. $as_echo_n "(cached) " >&6
  16617. else
  16618. case $PKG_CONFIG in
  16619. [\\/]* | ?:[\\/]*)
  16620. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16621. ;;
  16622. *)
  16623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16624. for as_dir in $PATH
  16625. do
  16626. IFS=$as_save_IFS
  16627. test -z "$as_dir" && as_dir=.
  16628. for ac_exec_ext in '' $ac_executable_extensions; do
  16629. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16630. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16632. break 2
  16633. fi
  16634. done
  16635. done
  16636. IFS=$as_save_IFS
  16637. ;;
  16638. esac
  16639. fi
  16640. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16641. if test -n "$PKG_CONFIG"; then
  16642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16643. $as_echo "$PKG_CONFIG" >&6; }
  16644. else
  16645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16646. $as_echo "no" >&6; }
  16647. fi
  16648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozldap with pkg-config" >&5
  16649. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  16650. if test -n "$PKG_CONFIG"; then
  16651. if $PKG_CONFIG --exists mozldap6; then
  16652. mozldappkg=mozldap6
  16653. elif $PKG_CONFIG --exists mozldap; then
  16654. mozldappkg=mozldap
  16655. else
  16656. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16657. fi
  16658. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  16659. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  16660. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  16661. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system $mozldappkg" >&5
  16663. $as_echo "using system $mozldappkg" >&6; }
  16664. fi
  16665. fi
  16666. fi
  16667. if test "$with_ldapsdk" = yes ; then
  16668. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  16669. as_fn_error $? "LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." "$LINENO" 5
  16670. fi
  16671. if test -z "$ldapsdk_bindir" ; then
  16672. if -d $libdir/mozldap6 ; then
  16673. ldapsdk_bindir=$libdir/mozldap6
  16674. else
  16675. ldapsdk_bindir=$libdir/mozldap
  16676. fi
  16677. fi
  16678. save_cppflags="$CPPFLAGS"
  16679. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  16680. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "#include <ldap-standard.h>
  16681. #if LDAP_VENDOR_VERSION < 600
  16682. #error The LDAP C SDK version is not supported
  16683. #endif
  16684. "
  16685. if test "x$ac_cv_header_ldap_h" = xyes; then :
  16686. isversion6=1
  16687. else
  16688. isversion6=
  16689. fi
  16690. CPPFLAGS="$save_cppflags"
  16691. if test -z "$isversion6" ; then
  16692. as_fn_error $? "The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" "$LINENO" 5
  16693. fi
  16694. $as_echo "#define USE_MOZLDAP 1" >>confdefs.h
  16695. $as_echo "#define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1" >>confdefs.h
  16696. # where to find ldapsearch, et. al.
  16697. ldaptool_bindir=$ldapsdk_bindir
  16698. # default options to pass to the tools
  16699. ldaptool_opts=
  16700. # get plain output from ldapsearch - no version
  16701. plainldif_opts=-1
  16702. fi
  16703. # BEGIN COPYRIGHT BLOCK
  16704. # Copyright (C) 2007 Red Hat, Inc.
  16705. # All rights reserved.
  16706. #
  16707. # This program is free software; you can redistribute it and/or
  16708. # modify it under the terms of the GNU General Public License
  16709. # as published by the Free Software Foundation; either version 2
  16710. # of the License, or (at your option) any later version.
  16711. #
  16712. # This program is distributed in the hope that it will be useful,
  16713. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16714. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16715. # GNU General Public License for more details.
  16716. #
  16717. # You should have received a copy of the GNU General Public License
  16718. # along with this program; if not, write to the Free Software
  16719. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16720. #
  16721. # END COPYRIGHT BLOCK
  16722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db..." >&5
  16723. $as_echo "$as_me: checking for db..." >&6;}
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db" >&5
  16725. $as_echo_n "checking for --with-db... " >&6; }
  16726. # Check whether --with-db was given.
  16727. if test "${with_db+set}" = set; then :
  16728. withval=$with_db;
  16729. if test "$withval" = "yes"; then
  16730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16731. $as_echo "yes" >&6; }
  16732. elif test "$withval" = "no"; then
  16733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16734. $as_echo "no" >&6; }
  16735. as_fn_error $? "db is required." "$LINENO" 5
  16736. elif test -d "$withval"/include -a -d "$withval"/lib; then
  16737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16738. $as_echo "using $withval" >&6; }
  16739. DBDIR=$withval
  16740. db_lib="-L$DBDIR/lib"
  16741. db_libdir="$DBDIR/lib"
  16742. db_incdir="$DBDIR/include"
  16743. if ! test -e "$db_incdir/db.h" ; then
  16744. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  16745. fi
  16746. db_inc="-I$db_incdir"
  16747. else
  16748. echo
  16749. as_fn_error $? "$withval not found" "$LINENO" 5
  16750. fi
  16751. else
  16752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16753. $as_echo "yes" >&6; }
  16754. fi
  16755. # check for --with-db-inc
  16756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-inc" >&5
  16757. $as_echo_n "checking for --with-db-inc... " >&6; }
  16758. # Check whether --with-db-inc was given.
  16759. if test "${with_db_inc+set}" = set; then :
  16760. withval=$with_db_inc;
  16761. if test -e "$withval"/db.h
  16762. then
  16763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16764. $as_echo "using $withval" >&6; }
  16765. db_incdir="$withval"
  16766. db_inc="-I$withval"
  16767. else
  16768. echo
  16769. as_fn_error $? "$withval not found" "$LINENO" 5
  16770. fi
  16771. else
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16773. $as_echo "no" >&6; }
  16774. fi
  16775. # check for --with-db-lib
  16776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-db-lib" >&5
  16777. $as_echo_n "checking for --with-db-lib... " >&6; }
  16778. # Check whether --with-db-lib was given.
  16779. if test "${with_db_lib+set}" = set; then :
  16780. withval=$with_db_lib;
  16781. if test -d "$withval"
  16782. then
  16783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16784. $as_echo "using $withval" >&6; }
  16785. db_lib="-L$withval"
  16786. db_libdir="$withval"
  16787. else
  16788. echo
  16789. as_fn_error $? "$withval not found" "$LINENO" 5
  16790. fi
  16791. else
  16792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16793. $as_echo "no" >&6; }
  16794. fi
  16795. if test -z "$db_inc"; then
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db.h" >&5
  16797. $as_echo_n "checking for db.h... " >&6; }
  16798. if test -f "/usr/include/db4/db.h"; then
  16799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db4/db.h" >&5
  16800. $as_echo "using /usr/include/db4/db.h" >&6; }
  16801. db_incdir="/usr/include/db4"
  16802. db_inc="-I/usr/include/db4"
  16803. db_lib='-L$(libdir)'
  16804. db_libdir='$(libdir)'
  16805. elif test -f "/usr/include/libdb/db.h"; then
  16806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/libdb/db.h" >&5
  16807. $as_echo "using /usr/include/libdb/db.h" >&6; }
  16808. db_incdir="/usr/include/libdb"
  16809. db_inc="-I/usr/include/libdb"
  16810. db_lib='-L$(libdir)'
  16811. db_libdir='$(libdir)'
  16812. elif test -f "/usr/include/db.h"; then
  16813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/db.h" >&5
  16814. $as_echo "using /usr/include/db.h" >&6; }
  16815. db_incdir="/usr/include"
  16816. db_inc="-I/usr/include"
  16817. db_lib='-L$(libdir)'
  16818. db_libdir='$(libdir)'
  16819. else
  16820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16821. $as_echo "no" >&6; }
  16822. as_fn_error $? "db not found, specify with --with-db." "$LINENO" 5
  16823. fi
  16824. fi
  16825. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  16826. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  16827. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  16828. db_libver=${db_ver_maj}.${db_ver_min}
  16829. save_ldflags="$LDFLAGS"
  16830. LDFLAGS="$db_lib $LDFLAGS"
  16831. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  16832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_create in -ldb-$db_libver" >&5
  16833. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  16834. if eval \${$as_ac_Lib+:} false; then :
  16835. $as_echo_n "(cached) " >&6
  16836. else
  16837. ac_check_lib_save_LIBS=$LIBS
  16838. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  16839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16840. /* end confdefs.h. */
  16841. /* Override any GCC internal prototype to avoid an error.
  16842. Use char because int might match the return type of a GCC
  16843. builtin and then its argument prototype would still apply. */
  16844. #ifdef __cplusplus
  16845. extern "C"
  16846. #endif
  16847. char db_create ();
  16848. int
  16849. main ()
  16850. {
  16851. return db_create ();
  16852. ;
  16853. return 0;
  16854. }
  16855. _ACEOF
  16856. if ac_fn_c_try_link "$LINENO"; then :
  16857. eval "$as_ac_Lib=yes"
  16858. else
  16859. eval "$as_ac_Lib=no"
  16860. fi
  16861. rm -f core conftest.err conftest.$ac_objext \
  16862. conftest$ac_exeext conftest.$ac_ext
  16863. LIBS=$ac_check_lib_save_LIBS
  16864. fi
  16865. eval ac_res=\$$as_ac_Lib
  16866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16867. $as_echo "$ac_res" >&6; }
  16868. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16869. true
  16870. else
  16871. as_fn_error $? "$db_incdir/db.h is version $db_libver but libdb-$db_libver not found" "$LINENO" 5
  16872. fi
  16873. LDFLAGS="$save_ldflags"
  16874. # if DB is not found yet, try pkg-config
  16875. # last resort
  16876. # Although the other db_* variables are correctly assigned at this point,
  16877. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  16878. if test -n "$PKG_CONFIG"; then
  16879. if $PKG_CONFIG --exists db; then
  16880. db_bindir=`$PKG_CONFIG --variable=bindir db`
  16881. else
  16882. db_bindir=/usr/bin
  16883. fi
  16884. else
  16885. db_bindir=/usr/bin
  16886. fi
  16887. # BEGIN COPYRIGHT BLOCK
  16888. # Copyright (C) 2007 Red Hat, Inc.
  16889. # All rights reserved.
  16890. #
  16891. # This program is free software; you can redistribute it and/or
  16892. # modify it under the terms of the GNU General Public License
  16893. # as published by the Free Software Foundation; either version 2
  16894. # of the License, or (at your option) any later version.
  16895. #
  16896. # This program is distributed in the hope that it will be useful,
  16897. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16898. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16899. # GNU General Public License for more details.
  16900. #
  16901. # You should have received a copy of the GNU General Public License
  16902. # along with this program; if not, write to the Free Software
  16903. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16904. #
  16905. # END COPYRIGHT BLOCK
  16906. # -*- tab-width: 4; -*-
  16907. # Configure paths for SASL
  16908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL..." >&5
  16909. $as_echo "$as_me: checking for SASL..." >&6;}
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl" >&5
  16911. $as_echo_n "checking for --with-sasl... " >&6; }
  16912. # Check whether --with-sasl was given.
  16913. if test "${with_sasl+set}" = set; then :
  16914. withval=$with_sasl;
  16915. if test "$withval" = "yes"; then
  16916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16917. $as_echo "yes" >&6; }
  16918. elif test "$withval" = "no"; then
  16919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16920. $as_echo "no" >&6; }
  16921. as_fn_error $? "SASL is required." "$LINENO" 5
  16922. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  16923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16924. $as_echo "using $withval" >&6; }
  16925. if test -f "$withval/include/sasl/sasl.h"; then
  16926. sasl_inc="-I$withval/include/sasl"
  16927. elif test -f "$withval/include/sasl.h"; then
  16928. sasl_inc="-I$withval/include"
  16929. else
  16930. as_fn_error $? "sasl.h not found" "$LINENO" 5
  16931. fi
  16932. sasl_lib="-L$withval/lib"
  16933. sasl_libdir="$withval/lib"
  16934. else
  16935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16936. $as_echo "yes" >&6; }
  16937. as_fn_error $? "SASL not found in $withval" "$LINENO" 5
  16938. fi
  16939. else
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16941. $as_echo "yes" >&6; }
  16942. fi
  16943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-inc" >&5
  16944. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  16945. # Check whether --with-sasl-inc was given.
  16946. if test "${with_sasl_inc+set}" = set; then :
  16947. withval=$with_sasl_inc;
  16948. if test -f "$withval"/sasl.h; then
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16950. $as_echo "using $withval" >&6; }
  16951. sasl_inc="-I$withval"
  16952. else
  16953. echo
  16954. as_fn_error $? "$withval/sasl.h not found" "$LINENO" 5
  16955. fi
  16956. else
  16957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16958. $as_echo "no" >&6; }
  16959. fi
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-sasl-lib" >&5
  16961. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  16962. # Check whether --with-sasl-lib was given.
  16963. if test "${with_sasl_lib+set}" = set; then :
  16964. withval=$with_sasl_lib;
  16965. if test -d "$withval"; then
  16966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  16967. $as_echo "using $withval" >&6; }
  16968. sasl_lib="-L$withval"
  16969. sasl_libdir="$withval"
  16970. else
  16971. echo
  16972. as_fn_error $? "$withval not found" "$LINENO" 5
  16973. fi
  16974. else
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16976. $as_echo "no" >&6; }
  16977. fi
  16978. if test -z "$sasl_inc"; then
  16979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl.h" >&5
  16980. $as_echo_n "checking for sasl.h... " >&6; }
  16981. if test -f /usr/include/sasl/sasl.h; then
  16982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl/sasl.h" >&5
  16983. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  16984. sasl_inc="-I/usr/include/sasl"
  16985. elif test -f /usr/include/sasl.h; then
  16986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/sasl.h" >&5
  16987. $as_echo "using /usr/include/sasl.h" >&6; }
  16988. sasl_inc="-I/usr/include"
  16989. else
  16990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16991. $as_echo "no" >&6; }
  16992. as_fn_error $? "SASL not found, specify with --with-sasl." "$LINENO" 5
  16993. fi
  16994. fi
  16995. # BEGIN COPYRIGHT BLOCK
  16996. # Copyright (C) 2007 Red Hat, Inc.
  16997. # All rights reserved.
  16998. #
  16999. # This program is free software; you can redistribute it and/or
  17000. # modify it under the terms of the GNU General Public License
  17001. # as published by the Free Software Foundation; either version 2
  17002. # of the License, or (at your option) any later version.
  17003. #
  17004. # This program is distributed in the hope that it will be useful,
  17005. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17006. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17007. # GNU General Public License for more details.
  17008. #
  17009. # You should have received a copy of the GNU General Public License
  17010. # along with this program; if not, write to the Free Software
  17011. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17012. #
  17013. # END COPYRIGHT BLOCK
  17014. #
  17015. # Configure paths for SVRCORE
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE..." >&5
  17017. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  17018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore" >&5
  17019. $as_echo_n "checking for --with-svrcore... " >&6; }
  17020. # Check whether --with-svrcore was given.
  17021. if test "${with_svrcore+set}" = set; then :
  17022. withval=$with_svrcore;
  17023. if test "$withval" = "yes"; then
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17025. $as_echo "yes" >&6; }
  17026. elif test "$withval" = "no"; then
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17028. $as_echo "no" >&6; }
  17029. as_fn_error $? "SVRCORE is required." "$LINENO" 5
  17030. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17032. $as_echo "using $withval" >&6; }
  17033. if test -f "$withval/include/svrcore.h"; then
  17034. svrcore_inc="-I$withval/include"
  17035. else
  17036. as_fn_error $? "svrcore.h not found" "$LINENO" 5
  17037. fi
  17038. svrcore_lib="-L$withval/lib"
  17039. else
  17040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17041. $as_echo "yes" >&6; }
  17042. as_fn_error $? "SVRCORE not found in $withval" "$LINENO" 5
  17043. fi
  17044. else
  17045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17046. $as_echo "yes" >&6; }
  17047. fi
  17048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-inc" >&5
  17049. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  17050. # Check whether --with-svrcore-inc was given.
  17051. if test "${with_svrcore_inc+set}" = set; then :
  17052. withval=$with_svrcore_inc;
  17053. if test -f "$withval"/svrcore.h; then
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17055. $as_echo "using $withval" >&6; }
  17056. svrcore_inc="-I$withval"
  17057. else
  17058. echo
  17059. as_fn_error $? "$withval/svrcore.h not found" "$LINENO" 5
  17060. fi
  17061. else
  17062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17063. $as_echo "no" >&6; }
  17064. fi
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-svrcore-lib" >&5
  17066. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  17067. # Check whether --with-svrcore-lib was given.
  17068. if test "${with_svrcore_lib+set}" = set; then :
  17069. withval=$with_svrcore_lib;
  17070. if test -d "$withval"; then
  17071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17072. $as_echo "using $withval" >&6; }
  17073. svrcore_lib="-L$withval"
  17074. else
  17075. echo
  17076. as_fn_error $? "$withval not found" "$LINENO" 5
  17077. fi
  17078. else
  17079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17080. $as_echo "no" >&6; }
  17081. fi
  17082. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17083. # Extract the first word of "pkg-config", so it can be a program name with args.
  17084. set dummy pkg-config; ac_word=$2
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17086. $as_echo_n "checking for $ac_word... " >&6; }
  17087. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17088. $as_echo_n "(cached) " >&6
  17089. else
  17090. case $PKG_CONFIG in
  17091. [\\/]* | ?:[\\/]*)
  17092. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17093. ;;
  17094. *)
  17095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17096. for as_dir in $PATH
  17097. do
  17098. IFS=$as_save_IFS
  17099. test -z "$as_dir" && as_dir=.
  17100. for ac_exec_ext in '' $ac_executable_extensions; do
  17101. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17102. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17103. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17104. break 2
  17105. fi
  17106. done
  17107. done
  17108. IFS=$as_save_IFS
  17109. ;;
  17110. esac
  17111. fi
  17112. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17113. if test -n "$PKG_CONFIG"; then
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17115. $as_echo "$PKG_CONFIG" >&6; }
  17116. else
  17117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17118. $as_echo "no" >&6; }
  17119. fi
  17120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE with pkg-config" >&5
  17121. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  17122. if test -n "$PKG_CONFIG"; then
  17123. if $PKG_CONFIG --exists svrcore; then
  17124. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  17125. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  17126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system svrcore" >&5
  17127. $as_echo "using system svrcore" >&6; }
  17128. fi
  17129. fi
  17130. fi
  17131. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  17133. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  17134. if ${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+:} false; then :
  17135. $as_echo_n "(cached) " >&6
  17136. else
  17137. ac_check_lib_save_LIBS=$LIBS
  17138. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  17139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17140. /* end confdefs.h. */
  17141. /* Override any GCC internal prototype to avoid an error.
  17142. Use char because int might match the return type of a GCC
  17143. builtin and then its argument prototype would still apply. */
  17144. #ifdef __cplusplus
  17145. extern "C"
  17146. #endif
  17147. char SVRCORE_GetRegisteredPinObj ();
  17148. int
  17149. main ()
  17150. {
  17151. return SVRCORE_GetRegisteredPinObj ();
  17152. ;
  17153. return 0;
  17154. }
  17155. _ACEOF
  17156. if ac_fn_c_try_link "$LINENO"; then :
  17157. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  17158. else
  17159. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  17160. fi
  17161. rm -f core conftest.err conftest.$ac_objext \
  17162. conftest$ac_exeext conftest.$ac_ext
  17163. LIBS=$ac_check_lib_save_LIBS
  17164. fi
  17165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  17166. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  17167. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = xyes; then :
  17168. havesvrcore=1
  17169. fi
  17170. if test -n "$havesvrcore" ; then
  17171. save_cppflags="$CPPFLAGS"
  17172. CPPFLAGS="$nss_inc $nspr_inc"
  17173. ac_fn_c_check_header_mongrel "$LINENO" "svrcore.h" "ac_cv_header_svrcore_h" "$ac_includes_default"
  17174. if test "x$ac_cv_header_svrcore_h" = xyes; then :
  17175. havesvrcore=1
  17176. else
  17177. havesvrcore=
  17178. fi
  17179. CPPFLAGS="$save_cppflags"
  17180. fi
  17181. if test -z "$havesvrcore" ; then
  17182. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17183. fi
  17184. fi
  17185. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  17186. if test -f /usr/include/svrcore.h; then
  17187. svrcore_inc="-I/usr/include"
  17188. svrcore_lib="-L/usr/lib"
  17189. else
  17190. as_fn_error $? "SVRCORE not found, specify with --with-svrcore." "$LINENO" 5
  17191. fi
  17192. fi
  17193. # BEGIN COPYRIGHT BLOCK
  17194. # Copyright (C) 2006 Red Hat, Inc.
  17195. # All rights reserved.
  17196. #
  17197. # This program is free software; you can redistribute it and/or
  17198. # modify it under the terms of the GNU General Public License
  17199. # as published by the Free Software Foundation; either version 2
  17200. # of the License, or (at your option) any later version.
  17201. #
  17202. # This program is distributed in the hope that it will be useful,
  17203. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17204. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17205. # GNU General Public License for more details.
  17206. #
  17207. # You should have received a copy of the GNU General Public License
  17208. # along with this program; if not, write to the Free Software
  17209. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17210. #
  17211. # END COPYRIGHT BLOCK
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBICU..." >&5
  17213. $as_echo "$as_me: checking for LIBICU..." >&6;}
  17214. # check for --with-icu
  17215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu" >&5
  17216. $as_echo_n "checking for --with-icu... " >&6; }
  17217. # Check whether --with-icu was given.
  17218. if test "${with_icu+set}" = set; then :
  17219. withval=$with_icu;
  17220. if test "$withval" = "yes"
  17221. then
  17222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17223. $as_echo "yes" >&6; }
  17224. elif test "$withval" = "no"
  17225. then
  17226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17227. $as_echo "no" >&6; }
  17228. as_fn_error $? "ICU is required." "$LINENO" 5
  17229. elif test -d "$withval"/lib
  17230. then
  17231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17232. $as_echo "using $withval" >&6; }
  17233. ICUDIR=$withval
  17234. icu_lib="-L$ICUDIR/lib"
  17235. icu_inc="-I$withval/include"
  17236. icu_bin="$withval/bin"
  17237. else
  17238. echo
  17239. as_fn_error $? "$withval not found" "$LINENO" 5
  17240. fi
  17241. else
  17242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17243. $as_echo "yes" >&6; }
  17244. fi
  17245. # check for --with-icu-inc
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-inc" >&5
  17247. $as_echo_n "checking for --with-icu-inc... " >&6; }
  17248. # Check whether --with-icu-inc was given.
  17249. if test "${with_icu_inc+set}" = set; then :
  17250. withval=$with_icu_inc;
  17251. if test -d "$withval"
  17252. then
  17253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17254. $as_echo "using $withval" >&6; }
  17255. icu_inc="-I$withval"
  17256. else
  17257. echo
  17258. as_fn_error $? "$withval not found" "$LINENO" 5
  17259. fi
  17260. else
  17261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17262. $as_echo "no" >&6; }
  17263. fi
  17264. # check for --with-icu-lib
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-lib" >&5
  17266. $as_echo_n "checking for --with-icu-lib... " >&6; }
  17267. # Check whether --with-icu-lib was given.
  17268. if test "${with_icu_lib+set}" = set; then :
  17269. withval=$with_icu_lib;
  17270. if test -d "$withval"
  17271. then
  17272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17273. $as_echo "using $withval" >&6; }
  17274. icu_lib="-L$withval"
  17275. else
  17276. echo
  17277. as_fn_error $? "$withval not found" "$LINENO" 5
  17278. fi
  17279. else
  17280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17281. $as_echo "no" >&6; }
  17282. fi
  17283. # check for --with-icu-bin
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icu-bin" >&5
  17285. $as_echo_n "checking for --with-icu-bin... " >&6; }
  17286. # Check whether --with-icu-bin was given.
  17287. if test "${with_icu_bin+set}" = set; then :
  17288. withval=$with_icu_bin;
  17289. if test -d "$withval"
  17290. then
  17291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17292. $as_echo "using $withval" >&6; }
  17293. icu_bin="$withval"
  17294. else
  17295. echo
  17296. as_fn_error $? "$withval not found" "$LINENO" 5
  17297. fi
  17298. else
  17299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17300. $as_echo "no" >&6; }
  17301. fi
  17302. # if ICU is not found yet, try pkg-config
  17303. # last resort
  17304. if test -z "$icu_lib"; then
  17305. # Extract the first word of "icu-config", so it can be a program name with args.
  17306. set dummy icu-config; ac_word=$2
  17307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17308. $as_echo_n "checking for $ac_word... " >&6; }
  17309. if ${ac_cv_path_ICU_CONFIG+:} false; then :
  17310. $as_echo_n "(cached) " >&6
  17311. else
  17312. case $ICU_CONFIG in
  17313. [\\/]* | ?:[\\/]*)
  17314. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  17315. ;;
  17316. *)
  17317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17318. for as_dir in $PATH
  17319. do
  17320. IFS=$as_save_IFS
  17321. test -z "$as_dir" && as_dir=.
  17322. for ac_exec_ext in '' $ac_executable_extensions; do
  17323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17324. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17326. break 2
  17327. fi
  17328. done
  17329. done
  17330. IFS=$as_save_IFS
  17331. ;;
  17332. esac
  17333. fi
  17334. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  17335. if test -n "$ICU_CONFIG"; then
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
  17337. $as_echo "$ICU_CONFIG" >&6; }
  17338. else
  17339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17340. $as_echo "no" >&6; }
  17341. fi
  17342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu with icu-config" >&5
  17343. $as_echo_n "checking for icu with icu-config... " >&6; }
  17344. if test -n "$ICU_CONFIG"; then
  17345. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  17346. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  17347. icu_bin=`$ICU_CONFIG --bindir`
  17348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system ICU" >&5
  17349. $as_echo "using system ICU" >&6; }
  17350. else
  17351. as_fn_error $? "ICU not found, specify with --with-icu." "$LINENO" 5
  17352. fi
  17353. fi
  17354. # BEGIN COPYRIGHT BLOCK
  17355. # Copyright (C) 2006 Red Hat, Inc.
  17356. # All rights reserved.
  17357. #
  17358. # This program is free software; you can redistribute it and/or
  17359. # modify it under the terms of the GNU General Public License
  17360. # as published by the Free Software Foundation; either version 2
  17361. # of the License, or (at your option) any later version.
  17362. #
  17363. # This program is distributed in the hope that it will be useful,
  17364. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17365. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17366. # GNU General Public License for more details.
  17367. #
  17368. # You should have received a copy of the GNU General Public License
  17369. # along with this program; if not, write to the Free Software
  17370. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17371. #
  17372. # END COPYRIGHT BLOCK
  17373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Net-SNMP..." >&5
  17374. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  17375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp" >&5
  17376. $as_echo_n "checking for --with-netsnmp... " >&6; }
  17377. # Check whether --with-netsnmp was given.
  17378. if test "${with_netsnmp+set}" = set; then :
  17379. withval=$with_netsnmp;
  17380. if test "$withval" = "yes"; then
  17381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17382. $as_echo "yes" >&6; }
  17383. elif test "$withval" = "no"; then
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17385. $as_echo "no" >&6; }
  17386. as_fn_error $? "Net-SNMP is required." "$LINENO" 5
  17387. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17389. $as_echo "using $withval" >&6; }
  17390. NETSNMPDIR=$withval
  17391. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  17392. netsnmp_inc="-I$withval/include"
  17393. else
  17394. as_fn_error $? "net-snmp-config.h not found" "$LINENO" 5
  17395. fi
  17396. netsnmp_lib="-L$withval/lib"
  17397. netsnmp_libdir="$withval/lib"
  17398. else
  17399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17400. $as_echo "yes" >&6; }
  17401. as_fn_error $? "$withval not found" "$LINENO" 5
  17402. fi
  17403. else
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17405. $as_echo "yes" >&6; }
  17406. fi
  17407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-inc" >&5
  17408. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  17409. # Check whether --with-netsnmp-inc was given.
  17410. if test "${with_netsnmp_inc+set}" = set; then :
  17411. withval=$with_netsnmp_inc;
  17412. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  17413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17414. $as_echo "using $withval" >&6; }
  17415. netsnmp_inc="-I$withval"
  17416. else
  17417. echo
  17418. as_fn_error $? "$withval/net-snmp/net-snmp-includes.h not found" "$LINENO" 5
  17419. fi
  17420. else
  17421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17422. $as_echo "no" >&6; }
  17423. fi
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-netsnmp-lib" >&5
  17425. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  17426. # Check whether --with-netsnmp-lib was given.
  17427. if test "${with_netsnmp_lib+set}" = set; then :
  17428. withval=$with_netsnmp_lib;
  17429. if test -d "$withval"
  17430. then
  17431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17432. $as_echo "using $withval" >&6; }
  17433. netsnmp_lib="-L$withval"
  17434. netsnmp_libdir="$withval"
  17435. else
  17436. echo
  17437. as_fn_error $? "$withval not found" "$LINENO" 5
  17438. fi
  17439. else
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17441. $as_echo "no" >&6; }
  17442. fi
  17443. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  17444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-includes.h" >&5
  17445. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  17446. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  17447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  17448. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  17449. netsnmp_inc="-I/usr/include"
  17450. else
  17451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17452. $as_echo "no" >&6; }
  17453. as_fn_error $? "net-snmp not found, specify with --with-netsnmp." "$LINENO" 5
  17454. fi
  17455. fi
  17456. if test -n "$netsnmp_inc"; then
  17457. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  17458. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  17459. else
  17460. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  17461. set dummy net-snmp-config; ac_word=$2
  17462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17463. $as_echo_n "checking for $ac_word... " >&6; }
  17464. if ${ac_cv_path_NETSNMP_CONFIG+:} false; then :
  17465. $as_echo_n "(cached) " >&6
  17466. else
  17467. case $NETSNMP_CONFIG in
  17468. [\\/]* | ?:[\\/]*)
  17469. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  17470. ;;
  17471. *)
  17472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17473. for as_dir in $PATH
  17474. do
  17475. IFS=$as_save_IFS
  17476. test -z "$as_dir" && as_dir=.
  17477. for ac_exec_ext in '' $ac_executable_extensions; do
  17478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17479. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17481. break 2
  17482. fi
  17483. done
  17484. done
  17485. IFS=$as_save_IFS
  17486. ;;
  17487. esac
  17488. fi
  17489. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  17490. if test -n "$NETSNMP_CONFIG"; then
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSNMP_CONFIG" >&5
  17492. $as_echo "$NETSNMP_CONFIG" >&6; }
  17493. else
  17494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17495. $as_echo "no" >&6; }
  17496. fi
  17497. fi
  17498. if test -n "$NETSNMP_CONFIG"; then
  17499. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  17500. else
  17501. as_fn_error $? "net-snmp-config not found, specify with --with-netsnmp." "$LINENO" 5
  17502. fi
  17503. else
  17504. as_fn_error $? "Net-SNMP not found, specify with --with-netsnmp." "$LINENO" 5
  17505. fi
  17506. # BEGIN COPYRIGHT BLOCK
  17507. # Copyright (C) 2008 Red Hat, Inc.
  17508. # All rights reserved.
  17509. #
  17510. # This program is free software; you can redistribute it and/or
  17511. # modify it under the terms of the GNU General Public License
  17512. # as published by the Free Software Foundation; either version 2
  17513. # of the License, or (at your option) any later version.
  17514. #
  17515. # This program is distributed in the hope that it will be useful,
  17516. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17517. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17518. # GNU General Public License for more details.
  17519. #
  17520. # You should have received a copy of the GNU General Public License
  17521. # along with this program; if not, write to the Free Software
  17522. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17523. #
  17524. # END COPYRIGHT BLOCK
  17525. # -*- tab-width: 4; -*-
  17526. # Configure paths for Kerberos
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos..." >&5
  17528. $as_echo "$as_me: checking for Kerberos..." >&6;}
  17529. if test -z "$with_kerberos" ; then
  17530. with_kerberos=yes # if not set on cmdline, set default
  17531. fi
  17532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos" >&5
  17533. $as_echo_n "checking for --with-kerberos... " >&6; }
  17534. # Check whether --with-kerberos was given.
  17535. if test "${with_kerberos+set}" = set; then :
  17536. withval=$with_kerberos;
  17537. if test "x$withval" = "xyes"; then
  17538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17539. $as_echo "yes" >&6; }
  17540. elif test "x$withval" = "xno"; then
  17541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17542. $as_echo "no" >&6; }
  17543. with_kerberos=
  17544. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  17545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17546. $as_echo "using $withval" >&6; }
  17547. kerberos_incdir="$withval/include"
  17548. kerberos_libdir="$withval/lib"
  17549. else
  17550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17551. $as_echo "yes" >&6; }
  17552. as_fn_error $? "kerberos not found in $withval" "$LINENO" 5
  17553. fi
  17554. else
  17555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17556. $as_echo "no" >&6; }
  17557. with_kerberos=
  17558. fi
  17559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-inc" >&5
  17560. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  17561. # Check whether --with-kerberos-inc was given.
  17562. if test "${with_kerberos_inc+set}" = set; then :
  17563. withval=$with_kerberos_inc;
  17564. if test -f "$withval"/krb5.h; then
  17565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17566. $as_echo "using $withval" >&6; }
  17567. kerberos_incdir="$withval"
  17568. with_kerberos=yes # implies use of kerberos
  17569. else
  17570. echo
  17571. as_fn_error $? "$withval/krb5.h not found" "$LINENO" 5
  17572. fi
  17573. else
  17574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17575. $as_echo "no" >&6; }
  17576. fi
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-kerberos-lib" >&5
  17578. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  17579. # Check whether --with-kerberos-lib was given.
  17580. if test "${with_kerberos_lib+set}" = set; then :
  17581. withval=$with_kerberos_lib;
  17582. if test -d "$withval"; then
  17583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17584. $as_echo "using $withval" >&6; }
  17585. kerberos_libdir="$withval"
  17586. with_kerberos=yes # implies use of kerberos
  17587. else
  17588. echo
  17589. as_fn_error $? "$withval not found" "$LINENO" 5
  17590. fi
  17591. else
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17593. $as_echo "no" >&6; }
  17594. fi
  17595. if test -n "$with_kerberos" ; then
  17596. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  17597. if test -z "$KRB5_CONFIG_BIN" ; then
  17598. # Extract the first word of "krb5-config", so it can be a program name with args.
  17599. set dummy krb5-config; ac_word=$2
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17601. $as_echo_n "checking for $ac_word... " >&6; }
  17602. if ${ac_cv_path_KRB5_CONFIG_BIN+:} false; then :
  17603. $as_echo_n "(cached) " >&6
  17604. else
  17605. case $KRB5_CONFIG_BIN in
  17606. [\\/]* | ?:[\\/]*)
  17607. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  17608. ;;
  17609. *)
  17610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17611. for as_dir in $PATH
  17612. do
  17613. IFS=$as_save_IFS
  17614. test -z "$as_dir" && as_dir=.
  17615. for ac_exec_ext in '' $ac_executable_extensions; do
  17616. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17617. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  17618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17619. break 2
  17620. fi
  17621. done
  17622. done
  17623. IFS=$as_save_IFS
  17624. ;;
  17625. esac
  17626. fi
  17627. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  17628. if test -n "$KRB5_CONFIG_BIN"; then
  17629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG_BIN" >&5
  17630. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  17631. else
  17632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17633. $as_echo "no" >&6; }
  17634. fi
  17635. fi
  17636. if test -n "$KRB5_CONFIG_BIN" ; then
  17637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  17638. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  17639. if test -z "$kerberos_libdir" ; then
  17640. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  17641. fi
  17642. if test -z "$kerberos_incdir" ; then
  17643. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  17644. fi
  17645. if test -n "$kerberos_lib" ; then
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  17647. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  17648. have_krb5=yes
  17649. fi
  17650. fi
  17651. fi
  17652. fi
  17653. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  17654. # save these in order to set them to use the check macros below
  17655. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  17656. save_CPPFLAGS="$CPPFLAGS"
  17657. if test -n "$kerberos_incdir" ; then
  17658. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  17659. fi
  17660. save_LDFLAGS="$LDFLAGS"
  17661. if test -n "$kerberos_libdir" ; then
  17662. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  17663. fi
  17664. krb5_impl=mit
  17665. for ac_header in heim_err.h
  17666. do :
  17667. ac_fn_c_check_header_mongrel "$LINENO" "heim_err.h" "ac_cv_header_heim_err_h" "$ac_includes_default"
  17668. if test "x$ac_cv_header_heim_err_h" = xyes; then :
  17669. cat >>confdefs.h <<_ACEOF
  17670. #define HAVE_HEIM_ERR_H 1
  17671. _ACEOF
  17672. fi
  17673. done
  17674. if test $ac_cv_header_heim_err_h = yes ; then
  17675. krb5_impl=heimdal
  17676. fi
  17677. if test "x$krb5_impl" = "xmit"; then
  17678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lk5crypto" >&5
  17679. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  17680. if ${ac_cv_lib_k5crypto_main+:} false; then :
  17681. $as_echo_n "(cached) " >&6
  17682. else
  17683. ac_check_lib_save_LIBS=$LIBS
  17684. LIBS="-lk5crypto $LIBS"
  17685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17686. /* end confdefs.h. */
  17687. int
  17688. main ()
  17689. {
  17690. return main ();
  17691. ;
  17692. return 0;
  17693. }
  17694. _ACEOF
  17695. if ac_fn_c_try_link "$LINENO"; then :
  17696. ac_cv_lib_k5crypto_main=yes
  17697. else
  17698. ac_cv_lib_k5crypto_main=no
  17699. fi
  17700. rm -f core conftest.err conftest.$ac_objext \
  17701. conftest$ac_exeext conftest.$ac_ext
  17702. LIBS=$ac_check_lib_save_LIBS
  17703. fi
  17704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_main" >&5
  17705. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  17706. if test "x$ac_cv_lib_k5crypto_main" = xyes; then :
  17707. krb5crypto=k5crypto
  17708. else
  17709. krb5crypto=crypto
  17710. fi
  17711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17712. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17713. if ${ac_cv_lib_krb5_main+:} false; then :
  17714. $as_echo_n "(cached) " >&6
  17715. else
  17716. ac_check_lib_save_LIBS=$LIBS
  17717. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  17718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17719. /* end confdefs.h. */
  17720. int
  17721. main ()
  17722. {
  17723. return main ();
  17724. ;
  17725. return 0;
  17726. }
  17727. _ACEOF
  17728. if ac_fn_c_try_link "$LINENO"; then :
  17729. ac_cv_lib_krb5_main=yes
  17730. else
  17731. ac_cv_lib_krb5_main=no
  17732. fi
  17733. rm -f core conftest.err conftest.$ac_objext \
  17734. conftest$ac_exeext conftest.$ac_ext
  17735. LIBS=$ac_check_lib_save_LIBS
  17736. fi
  17737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17738. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17739. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17740. have_krb5=yes
  17741. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  17742. else
  17743. have_krb5=no
  17744. fi
  17745. elif test "x$krb5_impl" = "xheimdal"; then
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldes" >&5
  17747. $as_echo_n "checking for main in -ldes... " >&6; }
  17748. if ${ac_cv_lib_des_main+:} false; then :
  17749. $as_echo_n "(cached) " >&6
  17750. else
  17751. ac_check_lib_save_LIBS=$LIBS
  17752. LIBS="-ldes $LIBS"
  17753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17754. /* end confdefs.h. */
  17755. int
  17756. main ()
  17757. {
  17758. return main ();
  17759. ;
  17760. return 0;
  17761. }
  17762. _ACEOF
  17763. if ac_fn_c_try_link "$LINENO"; then :
  17764. ac_cv_lib_des_main=yes
  17765. else
  17766. ac_cv_lib_des_main=no
  17767. fi
  17768. rm -f core conftest.err conftest.$ac_objext \
  17769. conftest$ac_exeext conftest.$ac_ext
  17770. LIBS=$ac_check_lib_save_LIBS
  17771. fi
  17772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_main" >&5
  17773. $as_echo "$ac_cv_lib_des_main" >&6; }
  17774. if test "x$ac_cv_lib_des_main" = xyes; then :
  17775. krb5crypto=des
  17776. else
  17777. krb5crypto=crypto
  17778. fi
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5" >&5
  17780. $as_echo_n "checking for main in -lkrb5... " >&6; }
  17781. if ${ac_cv_lib_krb5_main+:} false; then :
  17782. $as_echo_n "(cached) " >&6
  17783. else
  17784. ac_check_lib_save_LIBS=$LIBS
  17785. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  17786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17787. /* end confdefs.h. */
  17788. int
  17789. main ()
  17790. {
  17791. return main ();
  17792. ;
  17793. return 0;
  17794. }
  17795. _ACEOF
  17796. if ac_fn_c_try_link "$LINENO"; then :
  17797. ac_cv_lib_krb5_main=yes
  17798. else
  17799. ac_cv_lib_krb5_main=no
  17800. fi
  17801. rm -f core conftest.err conftest.$ac_objext \
  17802. conftest$ac_exeext conftest.$ac_ext
  17803. LIBS=$ac_check_lib_save_LIBS
  17804. fi
  17805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_main" >&5
  17806. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  17807. if test "x$ac_cv_lib_krb5_main" = xyes; then :
  17808. have_krb5=yes
  17809. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  17810. else
  17811. have_krb5=no
  17812. fi
  17813. $as_echo "#define HAVE_HEIMDAL_KERBEROS 1" >>confdefs.h
  17814. else
  17815. have_krb5=no
  17816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized Kerberos5 Implementation" >&5
  17817. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  17818. fi
  17819. # reset to original values
  17820. CPPFLAGS="$save_CPPFLAGS"
  17821. LDFLAGS="$save_LDFLAGS"
  17822. if test -n "$kerberos_incdir" ; then
  17823. kerberos_inc="-I$kerberos_incdir"
  17824. fi
  17825. if test -n "$kerberos_libdir" ; then
  17826. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  17827. fi
  17828. fi
  17829. if test -n "$with_kerberos" ; then
  17830. if test "x$have_krb5" = "xyes" ; then
  17831. $as_echo "#define HAVE_KRB5 1" >>confdefs.h
  17832. else
  17833. as_fn_error $? "Required Kerberos 5 support not available" "$LINENO" 5
  17834. fi
  17835. save_LIBS="$LIBS"
  17836. LIBS="$kerberos_lib"
  17837. save_CPPFLAGS="$CPPFLAGS"
  17838. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  17839. for ac_func in krb5_cc_new_unique
  17840. do :
  17841. ac_fn_c_check_func "$LINENO" "krb5_cc_new_unique" "ac_cv_func_krb5_cc_new_unique"
  17842. if test "x$ac_cv_func_krb5_cc_new_unique" = xyes; then :
  17843. cat >>confdefs.h <<_ACEOF
  17844. #define HAVE_KRB5_CC_NEW_UNIQUE 1
  17845. _ACEOF
  17846. fi
  17847. done
  17848. LIBS="$save_LIBS"
  17849. CPPFLAGS="$save_CPPFLAGS"
  17850. fi
  17851. # BEGIN COPYRIGHT BLOCK
  17852. # Copyright (C) 2007 Red Hat, Inc.
  17853. # All rights reserved.
  17854. #
  17855. # This program is free software; you can redistribute it and/or
  17856. # modify it under the terms of the GNU General Public License
  17857. # as published by the Free Software Foundation; either version 2
  17858. # of the License, or (at your option) any later version.
  17859. #
  17860. # This program is distributed in the hope that it will be useful,
  17861. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17862. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17863. # GNU General Public License for more details.
  17864. #
  17865. # You should have received a copy of the GNU General Public License
  17866. # along with this program; if not, write to the Free Software
  17867. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17868. #
  17869. # END COPYRIGHT BLOCK
  17870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE..." >&5
  17871. $as_echo "$as_me: checking for PCRE..." >&6;}
  17872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pcre" >&5
  17873. $as_echo_n "checking for --with-pcre... " >&6; }
  17874. # Check whether --with-pcre was given.
  17875. if test "${with_pcre+set}" = set; then :
  17876. withval=$with_pcre;
  17877. if test "$withval" = "yes"; then
  17878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17879. $as_echo "yes" >&6; }
  17880. elif test "$withval" = "no"; then
  17881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17882. $as_echo "no" >&6; }
  17883. as_fn_error $? "PCRE is required." "$LINENO" 5
  17884. elif test -d "$withval"/include -a -d "$withval"/lib; then
  17885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $withval" >&5
  17886. $as_echo "using $withval" >&6; }
  17887. PCREDIR=$withval
  17888. pcre_lib="-L$PCREDIR/lib"
  17889. pcre_libdir="$PCREDIR/lib"
  17890. pcre_incdir="$PCREDIR/include"
  17891. if ! test -e "$pcre_incdir/pcre.h" ; then
  17892. as_fn_error $? "$withval include dir not found" "$LINENO" 5
  17893. fi
  17894. pcre_inc="-I$pcre_incdir"
  17895. else
  17896. echo
  17897. as_fn_error $? "$withval not found" "$LINENO" 5
  17898. fi
  17899. else
  17900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17901. $as_echo "yes" >&6; }
  17902. fi
  17903. #
  17904. # if PCRE is not found yet, try pkg-config
  17905. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  17906. # Extract the first word of "pkg-config", so it can be a program name with args.
  17907. set dummy pkg-config; ac_word=$2
  17908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17909. $as_echo_n "checking for $ac_word... " >&6; }
  17910. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17911. $as_echo_n "(cached) " >&6
  17912. else
  17913. case $PKG_CONFIG in
  17914. [\\/]* | ?:[\\/]*)
  17915. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17916. ;;
  17917. *)
  17918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17919. for as_dir in $PATH
  17920. do
  17921. IFS=$as_save_IFS
  17922. test -z "$as_dir" && as_dir=.
  17923. for ac_exec_ext in '' $ac_executable_extensions; do
  17924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17925. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17927. break 2
  17928. fi
  17929. done
  17930. done
  17931. IFS=$as_save_IFS
  17932. ;;
  17933. esac
  17934. fi
  17935. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17936. if test -n "$PKG_CONFIG"; then
  17937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17938. $as_echo "$PKG_CONFIG" >&6; }
  17939. else
  17940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17941. $as_echo "no" >&6; }
  17942. fi
  17943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre with pkg-config" >&5
  17944. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  17945. if test -n "$PKG_CONFIG"; then
  17946. if $PKG_CONFIG --exists pcre; then
  17947. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  17948. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  17949. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  17950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  17951. $as_echo "using system PCRE" >&6; }
  17952. elif $PKG_CONFIG --exists libpcre; then
  17953. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  17954. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  17955. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  17956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system PCRE" >&5
  17957. $as_echo "using system PCRE" >&6; }
  17958. else
  17959. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  17960. fi
  17961. fi
  17962. fi
  17963. if test -z "$pcre_inc"; then
  17964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre.h" >&5
  17965. $as_echo_n "checking for pcre.h... " >&6; }
  17966. if test -f "/usr/include/pcre/pcre.h"; then
  17967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre/pcre.h" >&5
  17968. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  17969. pcre_incdir="/usr/include/pcre"
  17970. pcre_inc="-I/usr/include/pcre"
  17971. pcre_lib='-L$(libdir)'
  17972. pcre_libdir='$(libdir)'
  17973. elif test -f "/usr/include/pcre.h"; then
  17974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using /usr/include/pcre.h" >&5
  17975. $as_echo "using /usr/include/pcre.h" >&6; }
  17976. pcre_incdir="/usr/include"
  17977. pcre_inc="-I/usr/include"
  17978. pcre_lib='-L$(libdir)'
  17979. pcre_libdir='$(libdir)'
  17980. else
  17981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17982. $as_echo "no" >&6; }
  17983. as_fn_error $? "PCRE not found, specify with --with-pcre." "$LINENO" 5
  17984. fi
  17985. fi
  17986. # BEGIN COPYRIGHT BLOCK
  17987. # Copyright (C) 2009 Red Hat, Inc.
  17988. # All rights reserved.
  17989. #
  17990. # This program is free software; you can redistribute it and/or
  17991. # modify it under the terms of the GNU General Public License
  17992. # as published by the Free Software Foundation; either version 2
  17993. # of the License, or (at your option) any later version.
  17994. #
  17995. # This program is distributed in the hope that it will be useful,
  17996. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17997. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17998. # GNU General Public License for more details.
  17999. #
  18000. # You should have received a copy of the GNU General Public License
  18001. # along with this program; if not, write to the Free Software
  18002. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18003. #
  18004. # END COPYRIGHT BLOCK
  18005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELinux..." >&5
  18006. $as_echo "$as_me: checking for SELinux..." >&6;}
  18007. # check for --with-selinux
  18008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-selinux" >&5
  18009. $as_echo_n "checking for --with-selinux... " >&6; }
  18010. # Check whether --with-selinux was given.
  18011. if test "${with_selinux+set}" = set; then :
  18012. withval=$with_selinux;
  18013. if test "$withval" = "no"; then
  18014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18015. $as_echo "no" >&6; }
  18016. else
  18017. with_selinux=yes
  18018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18019. $as_echo "yes" >&6; }
  18020. fi
  18021. else
  18022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18023. $as_echo "no" >&6; }
  18024. fi
  18025. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  18026. # set sasl_path for wrapper scripts
  18027. if test -z "$sasl_libdir" ; then
  18028. sasl_path="$libdir/sasl2"
  18029. else
  18030. sasl_path="$sasl_libdir/sasl2"
  18031. fi
  18032. if test "$with_selinux" = "yes"; then
  18033. SELINUX_TRUE=
  18034. SELINUX_FALSE='#'
  18035. else
  18036. SELINUX_TRUE='#'
  18037. SELINUX_FALSE=
  18038. fi
  18039. if test "$with_openldap" = "yes"; then
  18040. OPENLDAP_TRUE=
  18041. OPENLDAP_FALSE='#'
  18042. else
  18043. OPENLDAP_TRUE='#'
  18044. OPENLDAP_FALSE=
  18045. fi
  18046. if test "$platform" = "solaris"; then
  18047. SOLARIS_TRUE=
  18048. SOLARIS_FALSE='#'
  18049. else
  18050. SOLARIS_TRUE='#'
  18051. SOLARIS_FALSE=
  18052. fi
  18053. if test "x$TARGET" = xSPARC; then
  18054. SPARC_TRUE=
  18055. SPARC_FALSE='#'
  18056. else
  18057. SPARC_TRUE='#'
  18058. SPARC_FALSE=
  18059. fi
  18060. # write out paths for binary components
  18061. $as_echo "#define USE_OLD_UNHASHED 1" >>confdefs.h
  18062. $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
  18063. $as_echo "#define LDAP_DONT_USE_SMARTHEAP 1" >>confdefs.h
  18064. # libtool on fedora/rhel contains some gcc-isms which cause problems
  18065. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  18066. # we remove them here
  18067. if test "$GCC" != yes ; then
  18068. { $as_echo "$as_me:${as_lineno-$LINENO}: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  18069. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  18070. cp -p libtool libtool.orig
  18071. cp -p libtool libtool.tmp
  18072. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  18073. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  18074. # perl produced write-only code . . .
  18075. sed -e '/^gcc_dir/ d' \
  18076. -e '/^gcc_ver/ d' \
  18077. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  18078. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  18079. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  18080. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  18081. libtool > libtool.tmp
  18082. cp -p libtool.tmp libtool
  18083. rm -f libtool.tmp
  18084. fi
  18085. ac_config_files="$ac_config_files Makefile"
  18086. cat >confcache <<\_ACEOF
  18087. # This file is a shell script that caches the results of configure
  18088. # tests run on this system so they can be shared between configure
  18089. # scripts and configure runs, see configure's option --config-cache.
  18090. # It is not useful on other systems. If it contains results you don't
  18091. # want to keep, you may remove or edit it.
  18092. #
  18093. # config.status only pays attention to the cache file if you give it
  18094. # the --recheck option to rerun configure.
  18095. #
  18096. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18097. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18098. # following values.
  18099. _ACEOF
  18100. # The following way of writing the cache mishandles newlines in values,
  18101. # but we know of no workaround that is simple, portable, and efficient.
  18102. # So, we kill variables containing newlines.
  18103. # Ultrix sh set writes to stderr and can't be redirected directly,
  18104. # and sets the high bit in the cache file unless we assign to the vars.
  18105. (
  18106. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18107. eval ac_val=\$$ac_var
  18108. case $ac_val in #(
  18109. *${as_nl}*)
  18110. case $ac_var in #(
  18111. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18112. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18113. esac
  18114. case $ac_var in #(
  18115. _ | IFS | as_nl) ;; #(
  18116. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18117. *) { eval $ac_var=; unset $ac_var;} ;;
  18118. esac ;;
  18119. esac
  18120. done
  18121. (set) 2>&1 |
  18122. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18123. *${as_nl}ac_space=\ *)
  18124. # `set' does not quote correctly, so add quotes: double-quote
  18125. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18126. sed -n \
  18127. "s/'/'\\\\''/g;
  18128. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18129. ;; #(
  18130. *)
  18131. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18132. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18133. ;;
  18134. esac |
  18135. sort
  18136. ) |
  18137. sed '
  18138. /^ac_cv_env_/b end
  18139. t clear
  18140. :clear
  18141. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18142. t end
  18143. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18144. :end' >>confcache
  18145. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18146. if test -w "$cache_file"; then
  18147. if test "x$cache_file" != "x/dev/null"; then
  18148. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18149. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18150. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18151. cat confcache >"$cache_file"
  18152. else
  18153. case $cache_file in #(
  18154. */* | ?:*)
  18155. mv -f confcache "$cache_file"$$ &&
  18156. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18157. *)
  18158. mv -f confcache "$cache_file" ;;
  18159. esac
  18160. fi
  18161. fi
  18162. else
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18164. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18165. fi
  18166. fi
  18167. rm -f confcache
  18168. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18169. # Let make expand exec_prefix.
  18170. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18171. DEFS=-DHAVE_CONFIG_H
  18172. ac_libobjs=
  18173. ac_ltlibobjs=
  18174. U=
  18175. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18176. # 1. Remove the extension, and $U if already installed.
  18177. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18178. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18179. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18180. # will be set to the directory where LIBOBJS objects are built.
  18181. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18182. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18183. done
  18184. LIBOBJS=$ac_libobjs
  18185. LTLIBOBJS=$ac_ltlibobjs
  18186. if test -n "$EXEEXT"; then
  18187. am__EXEEXT_TRUE=
  18188. am__EXEEXT_FALSE='#'
  18189. else
  18190. am__EXEEXT_TRUE='#'
  18191. am__EXEEXT_FALSE=
  18192. fi
  18193. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  18194. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  18195. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18196. fi
  18197. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18198. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18199. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18200. fi
  18201. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18202. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18203. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18204. fi
  18205. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18206. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18207. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18208. fi
  18209. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  18210. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  18211. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18212. fi
  18213. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  18214. as_fn_error $? "conditional \"BUNDLE\" was never defined.
  18215. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18216. fi
  18217. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  18218. as_fn_error $? "conditional \"enable_pam_passthru\" was never defined.
  18219. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18220. fi
  18221. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  18222. as_fn_error $? "conditional \"enable_dna\" was never defined.
  18223. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18224. fi
  18225. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  18226. as_fn_error $? "conditional \"enable_ldapi\" was never defined.
  18227. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18228. fi
  18229. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  18230. as_fn_error $? "conditional \"enable_autobind\" was never defined.
  18231. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18232. fi
  18233. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  18234. as_fn_error $? "conditional \"enable_auto_dn_suffix\" was never defined.
  18235. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18236. fi
  18237. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  18238. as_fn_error $? "conditional \"enable_bitwise\" was never defined.
  18239. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18240. fi
  18241. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  18242. as_fn_error $? "conditional \"enable_presence\" was never defined.
  18243. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18244. fi
  18245. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  18246. as_fn_error $? "conditional \"enable_acctpolicy\" was never defined.
  18247. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18248. fi
  18249. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  18250. as_fn_error $? "conditional \"WINNT\" was never defined.
  18251. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18252. fi
  18253. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  18254. as_fn_error $? "conditional \"HPUX\" was never defined.
  18255. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18256. fi
  18257. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18258. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18259. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18260. fi
  18261. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  18262. as_fn_error $? "conditional \"SYSTEMD\" was never defined.
  18263. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18264. fi
  18265. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  18266. as_fn_error $? "conditional \"SELINUX\" was never defined.
  18267. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18268. fi
  18269. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  18270. as_fn_error $? "conditional \"OPENLDAP\" was never defined.
  18271. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18272. fi
  18273. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  18274. as_fn_error $? "conditional \"SOLARIS\" was never defined.
  18275. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18276. fi
  18277. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  18278. as_fn_error $? "conditional \"SPARC\" was never defined.
  18279. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18280. fi
  18281. : "${CONFIG_STATUS=./config.status}"
  18282. ac_write_fail=0
  18283. ac_clean_files_save=$ac_clean_files
  18284. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18286. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18287. as_write_fail=0
  18288. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18289. #! $SHELL
  18290. # Generated by $as_me.
  18291. # Run this file to recreate the current configuration.
  18292. # Compiler output produced by configure, useful for debugging
  18293. # configure, is in config.log if it exists.
  18294. debug=false
  18295. ac_cs_recheck=false
  18296. ac_cs_silent=false
  18297. SHELL=\${CONFIG_SHELL-$SHELL}
  18298. export SHELL
  18299. _ASEOF
  18300. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18301. ## -------------------- ##
  18302. ## M4sh Initialization. ##
  18303. ## -------------------- ##
  18304. # Be more Bourne compatible
  18305. DUALCASE=1; export DUALCASE # for MKS sh
  18306. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18307. emulate sh
  18308. NULLCMD=:
  18309. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18310. # is contrary to our usage. Disable this feature.
  18311. alias -g '${1+"$@"}'='"$@"'
  18312. setopt NO_GLOB_SUBST
  18313. else
  18314. case `(set -o) 2>/dev/null` in #(
  18315. *posix*) :
  18316. set -o posix ;; #(
  18317. *) :
  18318. ;;
  18319. esac
  18320. fi
  18321. as_nl='
  18322. '
  18323. export as_nl
  18324. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18325. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18326. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18327. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18328. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18329. # but without wasting forks for bash or zsh.
  18330. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18331. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18332. as_echo='print -r --'
  18333. as_echo_n='print -rn --'
  18334. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18335. as_echo='printf %s\n'
  18336. as_echo_n='printf %s'
  18337. else
  18338. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18339. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18340. as_echo_n='/usr/ucb/echo -n'
  18341. else
  18342. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18343. as_echo_n_body='eval
  18344. arg=$1;
  18345. case $arg in #(
  18346. *"$as_nl"*)
  18347. expr "X$arg" : "X\\(.*\\)$as_nl";
  18348. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18349. esac;
  18350. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18351. '
  18352. export as_echo_n_body
  18353. as_echo_n='sh -c $as_echo_n_body as_echo'
  18354. fi
  18355. export as_echo_body
  18356. as_echo='sh -c $as_echo_body as_echo'
  18357. fi
  18358. # The user is always right.
  18359. if test "${PATH_SEPARATOR+set}" != set; then
  18360. PATH_SEPARATOR=:
  18361. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18362. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18363. PATH_SEPARATOR=';'
  18364. }
  18365. fi
  18366. # IFS
  18367. # We need space, tab and new line, in precisely that order. Quoting is
  18368. # there to prevent editors from complaining about space-tab.
  18369. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18370. # splitting by setting IFS to empty value.)
  18371. IFS=" "" $as_nl"
  18372. # Find who we are. Look in the path if we contain no directory separator.
  18373. as_myself=
  18374. case $0 in #((
  18375. *[\\/]* ) as_myself=$0 ;;
  18376. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18377. for as_dir in $PATH
  18378. do
  18379. IFS=$as_save_IFS
  18380. test -z "$as_dir" && as_dir=.
  18381. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18382. done
  18383. IFS=$as_save_IFS
  18384. ;;
  18385. esac
  18386. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18387. # in which case we are not to be found in the path.
  18388. if test "x$as_myself" = x; then
  18389. as_myself=$0
  18390. fi
  18391. if test ! -f "$as_myself"; then
  18392. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18393. exit 1
  18394. fi
  18395. # Unset variables that we do not need and which cause bugs (e.g. in
  18396. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18397. # suppresses any "Segmentation fault" message there. '((' could
  18398. # trigger a bug in pdksh 5.2.14.
  18399. for as_var in BASH_ENV ENV MAIL MAILPATH
  18400. do eval test x\${$as_var+set} = xset \
  18401. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18402. done
  18403. PS1='$ '
  18404. PS2='> '
  18405. PS4='+ '
  18406. # NLS nuisances.
  18407. LC_ALL=C
  18408. export LC_ALL
  18409. LANGUAGE=C
  18410. export LANGUAGE
  18411. # CDPATH.
  18412. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18413. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18414. # ----------------------------------------
  18415. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18416. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18417. # script with STATUS, using 1 if that was 0.
  18418. as_fn_error ()
  18419. {
  18420. as_status=$1; test $as_status -eq 0 && as_status=1
  18421. if test "$4"; then
  18422. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18423. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18424. fi
  18425. $as_echo "$as_me: error: $2" >&2
  18426. as_fn_exit $as_status
  18427. } # as_fn_error
  18428. # as_fn_set_status STATUS
  18429. # -----------------------
  18430. # Set $? to STATUS, without forking.
  18431. as_fn_set_status ()
  18432. {
  18433. return $1
  18434. } # as_fn_set_status
  18435. # as_fn_exit STATUS
  18436. # -----------------
  18437. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18438. as_fn_exit ()
  18439. {
  18440. set +e
  18441. as_fn_set_status $1
  18442. exit $1
  18443. } # as_fn_exit
  18444. # as_fn_unset VAR
  18445. # ---------------
  18446. # Portably unset VAR.
  18447. as_fn_unset ()
  18448. {
  18449. { eval $1=; unset $1;}
  18450. }
  18451. as_unset=as_fn_unset
  18452. # as_fn_append VAR VALUE
  18453. # ----------------------
  18454. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18455. # advantage of any shell optimizations that allow amortized linear growth over
  18456. # repeated appends, instead of the typical quadratic growth present in naive
  18457. # implementations.
  18458. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18459. eval 'as_fn_append ()
  18460. {
  18461. eval $1+=\$2
  18462. }'
  18463. else
  18464. as_fn_append ()
  18465. {
  18466. eval $1=\$$1\$2
  18467. }
  18468. fi # as_fn_append
  18469. # as_fn_arith ARG...
  18470. # ------------------
  18471. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18472. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18473. # must be portable across $(()) and expr.
  18474. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18475. eval 'as_fn_arith ()
  18476. {
  18477. as_val=$(( $* ))
  18478. }'
  18479. else
  18480. as_fn_arith ()
  18481. {
  18482. as_val=`expr "$@" || test $? -eq 1`
  18483. }
  18484. fi # as_fn_arith
  18485. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18486. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18487. as_expr=expr
  18488. else
  18489. as_expr=false
  18490. fi
  18491. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18492. as_basename=basename
  18493. else
  18494. as_basename=false
  18495. fi
  18496. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18497. as_dirname=dirname
  18498. else
  18499. as_dirname=false
  18500. fi
  18501. as_me=`$as_basename -- "$0" ||
  18502. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18503. X"$0" : 'X\(//\)$' \| \
  18504. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18505. $as_echo X/"$0" |
  18506. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18507. s//\1/
  18508. q
  18509. }
  18510. /^X\/\(\/\/\)$/{
  18511. s//\1/
  18512. q
  18513. }
  18514. /^X\/\(\/\).*/{
  18515. s//\1/
  18516. q
  18517. }
  18518. s/.*/./; q'`
  18519. # Avoid depending upon Character Ranges.
  18520. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18521. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18522. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18523. as_cr_digits='0123456789'
  18524. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18525. ECHO_C= ECHO_N= ECHO_T=
  18526. case `echo -n x` in #(((((
  18527. -n*)
  18528. case `echo 'xy\c'` in
  18529. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18530. xy) ECHO_C='\c';;
  18531. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18532. ECHO_T=' ';;
  18533. esac;;
  18534. *)
  18535. ECHO_N='-n';;
  18536. esac
  18537. rm -f conf$$ conf$$.exe conf$$.file
  18538. if test -d conf$$.dir; then
  18539. rm -f conf$$.dir/conf$$.file
  18540. else
  18541. rm -f conf$$.dir
  18542. mkdir conf$$.dir 2>/dev/null
  18543. fi
  18544. if (echo >conf$$.file) 2>/dev/null; then
  18545. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18546. as_ln_s='ln -s'
  18547. # ... but there are two gotchas:
  18548. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18549. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18550. # In both cases, we have to default to `cp -p'.
  18551. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18552. as_ln_s='cp -p'
  18553. elif ln conf$$.file conf$$ 2>/dev/null; then
  18554. as_ln_s=ln
  18555. else
  18556. as_ln_s='cp -p'
  18557. fi
  18558. else
  18559. as_ln_s='cp -p'
  18560. fi
  18561. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18562. rmdir conf$$.dir 2>/dev/null
  18563. # as_fn_mkdir_p
  18564. # -------------
  18565. # Create "$as_dir" as a directory, including parents if necessary.
  18566. as_fn_mkdir_p ()
  18567. {
  18568. case $as_dir in #(
  18569. -*) as_dir=./$as_dir;;
  18570. esac
  18571. test -d "$as_dir" || eval $as_mkdir_p || {
  18572. as_dirs=
  18573. while :; do
  18574. case $as_dir in #(
  18575. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18576. *) as_qdir=$as_dir;;
  18577. esac
  18578. as_dirs="'$as_qdir' $as_dirs"
  18579. as_dir=`$as_dirname -- "$as_dir" ||
  18580. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18581. X"$as_dir" : 'X\(//\)[^/]' \| \
  18582. X"$as_dir" : 'X\(//\)$' \| \
  18583. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18584. $as_echo X"$as_dir" |
  18585. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18586. s//\1/
  18587. q
  18588. }
  18589. /^X\(\/\/\)[^/].*/{
  18590. s//\1/
  18591. q
  18592. }
  18593. /^X\(\/\/\)$/{
  18594. s//\1/
  18595. q
  18596. }
  18597. /^X\(\/\).*/{
  18598. s//\1/
  18599. q
  18600. }
  18601. s/.*/./; q'`
  18602. test -d "$as_dir" && break
  18603. done
  18604. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18605. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18606. } # as_fn_mkdir_p
  18607. if mkdir -p . 2>/dev/null; then
  18608. as_mkdir_p='mkdir -p "$as_dir"'
  18609. else
  18610. test -d ./-p && rmdir ./-p
  18611. as_mkdir_p=false
  18612. fi
  18613. if test -x / >/dev/null 2>&1; then
  18614. as_test_x='test -x'
  18615. else
  18616. if ls -dL / >/dev/null 2>&1; then
  18617. as_ls_L_option=L
  18618. else
  18619. as_ls_L_option=
  18620. fi
  18621. as_test_x='
  18622. eval sh -c '\''
  18623. if test -d "$1"; then
  18624. test -d "$1/.";
  18625. else
  18626. case $1 in #(
  18627. -*)set "./$1";;
  18628. esac;
  18629. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  18630. ???[sx]*):;;*)false;;esac;fi
  18631. '\'' sh
  18632. '
  18633. fi
  18634. as_executable_p=$as_test_x
  18635. # Sed expression to map a string onto a valid CPP name.
  18636. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18637. # Sed expression to map a string onto a valid variable name.
  18638. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18639. exec 6>&1
  18640. ## ----------------------------------- ##
  18641. ## Main body of $CONFIG_STATUS script. ##
  18642. ## ----------------------------------- ##
  18643. _ASEOF
  18644. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18645. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18646. # Save the log message, to keep $0 and so on meaningful, and to
  18647. # report actual input values of CONFIG_FILES etc. instead of their
  18648. # values after options handling.
  18649. ac_log="
  18650. This file was extended by dirsrv $as_me 1.0, which was
  18651. generated by GNU Autoconf 2.68. Invocation command line was
  18652. CONFIG_FILES = $CONFIG_FILES
  18653. CONFIG_HEADERS = $CONFIG_HEADERS
  18654. CONFIG_LINKS = $CONFIG_LINKS
  18655. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18656. $ $0 $@
  18657. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18658. "
  18659. _ACEOF
  18660. case $ac_config_files in *"
  18661. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18662. esac
  18663. case $ac_config_headers in *"
  18664. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18665. esac
  18666. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18667. # Files that config.status was made for.
  18668. config_files="$ac_config_files"
  18669. config_headers="$ac_config_headers"
  18670. config_commands="$ac_config_commands"
  18671. _ACEOF
  18672. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18673. ac_cs_usage="\
  18674. \`$as_me' instantiates files and other configuration actions
  18675. from templates according to the current configuration. Unless the files
  18676. and actions are specified as TAGs, all are instantiated by default.
  18677. Usage: $0 [OPTION]... [TAG]...
  18678. -h, --help print this help, then exit
  18679. -V, --version print version number and configuration settings, then exit
  18680. --config print configuration, then exit
  18681. -q, --quiet, --silent
  18682. do not print progress messages
  18683. -d, --debug don't remove temporary files
  18684. --recheck update $as_me by reconfiguring in the same conditions
  18685. --file=FILE[:TEMPLATE]
  18686. instantiate the configuration file FILE
  18687. --header=FILE[:TEMPLATE]
  18688. instantiate the configuration header FILE
  18689. Configuration files:
  18690. $config_files
  18691. Configuration headers:
  18692. $config_headers
  18693. Configuration commands:
  18694. $config_commands
  18695. Report bugs to <http://bugzilla.redhat.com/>."
  18696. _ACEOF
  18697. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18698. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18699. ac_cs_version="\\
  18700. dirsrv config.status 1.0
  18701. configured by $0, generated by GNU Autoconf 2.68,
  18702. with options \\"\$ac_cs_config\\"
  18703. Copyright (C) 2010 Free Software Foundation, Inc.
  18704. This config.status script is free software; the Free Software Foundation
  18705. gives unlimited permission to copy, distribute and modify it."
  18706. ac_pwd='$ac_pwd'
  18707. srcdir='$srcdir'
  18708. INSTALL='$INSTALL'
  18709. MKDIR_P='$MKDIR_P'
  18710. AWK='$AWK'
  18711. test -n "\$AWK" || AWK=awk
  18712. _ACEOF
  18713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18714. # The default lists apply if the user does not specify any file.
  18715. ac_need_defaults=:
  18716. while test $# != 0
  18717. do
  18718. case $1 in
  18719. --*=?*)
  18720. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18721. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18722. ac_shift=:
  18723. ;;
  18724. --*=)
  18725. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18726. ac_optarg=
  18727. ac_shift=:
  18728. ;;
  18729. *)
  18730. ac_option=$1
  18731. ac_optarg=$2
  18732. ac_shift=shift
  18733. ;;
  18734. esac
  18735. case $ac_option in
  18736. # Handling of the options.
  18737. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18738. ac_cs_recheck=: ;;
  18739. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18740. $as_echo "$ac_cs_version"; exit ;;
  18741. --config | --confi | --conf | --con | --co | --c )
  18742. $as_echo "$ac_cs_config"; exit ;;
  18743. --debug | --debu | --deb | --de | --d | -d )
  18744. debug=: ;;
  18745. --file | --fil | --fi | --f )
  18746. $ac_shift
  18747. case $ac_optarg in
  18748. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18749. '') as_fn_error $? "missing file argument" ;;
  18750. esac
  18751. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18752. ac_need_defaults=false;;
  18753. --header | --heade | --head | --hea )
  18754. $ac_shift
  18755. case $ac_optarg in
  18756. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18757. esac
  18758. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18759. ac_need_defaults=false;;
  18760. --he | --h)
  18761. # Conflict between --help and --header
  18762. as_fn_error $? "ambiguous option: \`$1'
  18763. Try \`$0 --help' for more information.";;
  18764. --help | --hel | -h )
  18765. $as_echo "$ac_cs_usage"; exit ;;
  18766. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18767. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18768. ac_cs_silent=: ;;
  18769. # This is an error.
  18770. -*) as_fn_error $? "unrecognized option: \`$1'
  18771. Try \`$0 --help' for more information." ;;
  18772. *) as_fn_append ac_config_targets " $1"
  18773. ac_need_defaults=false ;;
  18774. esac
  18775. shift
  18776. done
  18777. ac_configure_extra_args=
  18778. if $ac_cs_silent; then
  18779. exec 6>/dev/null
  18780. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18781. fi
  18782. _ACEOF
  18783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18784. if \$ac_cs_recheck; then
  18785. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18786. shift
  18787. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18788. CONFIG_SHELL='$SHELL'
  18789. export CONFIG_SHELL
  18790. exec "\$@"
  18791. fi
  18792. _ACEOF
  18793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18794. exec 5>>config.log
  18795. {
  18796. echo
  18797. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18798. ## Running $as_me. ##
  18799. _ASBOX
  18800. $as_echo "$ac_log"
  18801. } >&5
  18802. _ACEOF
  18803. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18804. #
  18805. # INIT-COMMANDS
  18806. #
  18807. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18808. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18809. # if CDPATH is set.
  18810. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18811. sed_quote_subst='$sed_quote_subst'
  18812. double_quote_subst='$double_quote_subst'
  18813. delay_variable_subst='$delay_variable_subst'
  18814. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18815. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18816. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18817. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18818. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18819. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18820. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18821. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18822. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18823. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18824. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18825. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18826. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18827. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18828. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18829. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18830. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18831. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18832. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18833. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18834. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18835. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18836. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18837. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18838. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18839. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18840. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18841. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18842. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18843. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18844. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18845. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18846. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18847. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18848. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18849. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18850. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18851. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18852. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18853. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18854. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18855. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18856. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18857. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18858. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18859. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18860. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18861. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18862. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18863. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18864. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18865. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18866. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18867. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18868. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18869. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18870. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18871. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18872. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18873. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18874. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18875. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18876. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18877. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18878. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18879. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18880. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18881. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18882. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18883. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18884. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18885. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18886. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18887. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18888. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18889. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18890. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18891. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18892. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18893. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18894. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18895. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18896. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18897. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18898. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18899. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18900. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18901. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18902. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18903. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18904. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  18905. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18906. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18907. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18908. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18909. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18910. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18911. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18912. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18913. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18914. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18915. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18916. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18917. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18918. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18919. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18920. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18921. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18922. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18923. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18924. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18925. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18926. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18927. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18928. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18929. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18930. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18931. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18932. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18933. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18934. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18935. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18936. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18937. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  18938. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18939. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18940. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18941. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18942. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18943. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18944. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18945. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18946. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18947. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18948. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18949. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18950. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18951. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18952. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18953. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18954. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18955. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18956. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18957. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18958. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18959. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18960. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18961. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18962. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18963. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18964. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18965. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18966. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18967. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18968. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18969. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18970. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18971. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18972. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18973. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18974. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18975. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18976. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18977. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18978. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18979. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18980. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18981. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18982. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18983. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18984. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18985. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18986. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18987. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18988. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18989. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18990. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18991. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18992. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18993. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18994. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18995. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18996. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18997. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18998. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18999. LTCC='$LTCC'
  19000. LTCFLAGS='$LTCFLAGS'
  19001. compiler='$compiler_DEFAULT'
  19002. # A function that is used when there is no print builtin or printf.
  19003. func_fallback_echo ()
  19004. {
  19005. eval 'cat <<_LTECHO_EOF
  19006. \$1
  19007. _LTECHO_EOF'
  19008. }
  19009. # Quote evaled strings.
  19010. for var in SHELL \
  19011. ECHO \
  19012. SED \
  19013. GREP \
  19014. EGREP \
  19015. FGREP \
  19016. LD \
  19017. NM \
  19018. LN_S \
  19019. lt_SP2NL \
  19020. lt_NL2SP \
  19021. reload_flag \
  19022. OBJDUMP \
  19023. deplibs_check_method \
  19024. file_magic_cmd \
  19025. file_magic_glob \
  19026. want_nocaseglob \
  19027. DLLTOOL \
  19028. sharedlib_from_linklib_cmd \
  19029. AR \
  19030. AR_FLAGS \
  19031. archiver_list_spec \
  19032. STRIP \
  19033. RANLIB \
  19034. CC \
  19035. CFLAGS \
  19036. compiler \
  19037. lt_cv_sys_global_symbol_pipe \
  19038. lt_cv_sys_global_symbol_to_cdecl \
  19039. lt_cv_sys_global_symbol_to_c_name_address \
  19040. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19041. nm_file_list_spec \
  19042. lt_prog_compiler_no_builtin_flag \
  19043. lt_prog_compiler_pic \
  19044. lt_prog_compiler_wl \
  19045. lt_prog_compiler_static \
  19046. lt_cv_prog_compiler_c_o \
  19047. need_locks \
  19048. MANIFEST_TOOL \
  19049. DSYMUTIL \
  19050. NMEDIT \
  19051. LIPO \
  19052. OTOOL \
  19053. OTOOL64 \
  19054. shrext_cmds \
  19055. export_dynamic_flag_spec \
  19056. whole_archive_flag_spec \
  19057. compiler_needs_object \
  19058. with_gnu_ld \
  19059. allow_undefined_flag \
  19060. no_undefined_flag \
  19061. hardcode_libdir_flag_spec \
  19062. hardcode_libdir_flag_spec_ld \
  19063. hardcode_libdir_separator \
  19064. exclude_expsyms \
  19065. include_expsyms \
  19066. file_list_spec \
  19067. variables_saved_for_relink \
  19068. libname_spec \
  19069. library_names_spec \
  19070. soname_spec \
  19071. install_override_mode \
  19072. finish_eval \
  19073. old_striplib \
  19074. striplib \
  19075. compiler_lib_search_dirs \
  19076. predep_objects \
  19077. postdep_objects \
  19078. predeps \
  19079. postdeps \
  19080. compiler_lib_search_path \
  19081. LD_CXX \
  19082. reload_flag_CXX \
  19083. compiler_CXX \
  19084. lt_prog_compiler_no_builtin_flag_CXX \
  19085. lt_prog_compiler_pic_CXX \
  19086. lt_prog_compiler_wl_CXX \
  19087. lt_prog_compiler_static_CXX \
  19088. lt_cv_prog_compiler_c_o_CXX \
  19089. export_dynamic_flag_spec_CXX \
  19090. whole_archive_flag_spec_CXX \
  19091. compiler_needs_object_CXX \
  19092. with_gnu_ld_CXX \
  19093. allow_undefined_flag_CXX \
  19094. no_undefined_flag_CXX \
  19095. hardcode_libdir_flag_spec_CXX \
  19096. hardcode_libdir_flag_spec_ld_CXX \
  19097. hardcode_libdir_separator_CXX \
  19098. exclude_expsyms_CXX \
  19099. include_expsyms_CXX \
  19100. file_list_spec_CXX \
  19101. compiler_lib_search_dirs_CXX \
  19102. predep_objects_CXX \
  19103. postdep_objects_CXX \
  19104. predeps_CXX \
  19105. postdeps_CXX \
  19106. compiler_lib_search_path_CXX; do
  19107. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19108. *[\\\\\\\`\\"\\\$]*)
  19109. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19110. ;;
  19111. *)
  19112. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19113. ;;
  19114. esac
  19115. done
  19116. # Double-quote double-evaled strings.
  19117. for var in reload_cmds \
  19118. old_postinstall_cmds \
  19119. old_postuninstall_cmds \
  19120. old_archive_cmds \
  19121. extract_expsyms_cmds \
  19122. old_archive_from_new_cmds \
  19123. old_archive_from_expsyms_cmds \
  19124. archive_cmds \
  19125. archive_expsym_cmds \
  19126. module_cmds \
  19127. module_expsym_cmds \
  19128. export_symbols_cmds \
  19129. prelink_cmds \
  19130. postlink_cmds \
  19131. postinstall_cmds \
  19132. postuninstall_cmds \
  19133. finish_cmds \
  19134. sys_lib_search_path_spec \
  19135. sys_lib_dlsearch_path_spec \
  19136. reload_cmds_CXX \
  19137. old_archive_cmds_CXX \
  19138. old_archive_from_new_cmds_CXX \
  19139. old_archive_from_expsyms_cmds_CXX \
  19140. archive_cmds_CXX \
  19141. archive_expsym_cmds_CXX \
  19142. module_cmds_CXX \
  19143. module_expsym_cmds_CXX \
  19144. export_symbols_cmds_CXX \
  19145. prelink_cmds_CXX \
  19146. postlink_cmds_CXX; do
  19147. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19148. *[\\\\\\\`\\"\\\$]*)
  19149. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19150. ;;
  19151. *)
  19152. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19153. ;;
  19154. esac
  19155. done
  19156. ac_aux_dir='$ac_aux_dir'
  19157. xsi_shell='$xsi_shell'
  19158. lt_shell_append='$lt_shell_append'
  19159. # See if we are running on zsh, and set the options which allow our
  19160. # commands through without removal of \ escapes INIT.
  19161. if test -n "\${ZSH_VERSION+set}" ; then
  19162. setopt NO_GLOB_SUBST
  19163. fi
  19164. PACKAGE='$PACKAGE'
  19165. VERSION='$VERSION'
  19166. TIMESTAMP='$TIMESTAMP'
  19167. RM='$RM'
  19168. ofile='$ofile'
  19169. _ACEOF
  19170. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19171. # Handling of arguments.
  19172. for ac_config_target in $ac_config_targets
  19173. do
  19174. case $ac_config_target in
  19175. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19176. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19177. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19178. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19179. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19180. esac
  19181. done
  19182. # If the user did not use the arguments to specify the items to instantiate,
  19183. # then the envvar interface is used. Set only those that are not.
  19184. # We use the long form for the default assignment because of an extremely
  19185. # bizarre bug on SunOS 4.1.3.
  19186. if $ac_need_defaults; then
  19187. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19188. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19189. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19190. fi
  19191. # Have a temporary directory for convenience. Make it in the build tree
  19192. # simply because there is no reason against having it here, and in addition,
  19193. # creating and moving files from /tmp can sometimes cause problems.
  19194. # Hook for its removal unless debugging.
  19195. # Note that there is a small window in which the directory will not be cleaned:
  19196. # after its creation but before its name has been assigned to `$tmp'.
  19197. $debug ||
  19198. {
  19199. tmp= ac_tmp=
  19200. trap 'exit_status=$?
  19201. : "${ac_tmp:=$tmp}"
  19202. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19203. ' 0
  19204. trap 'as_fn_exit 1' 1 2 13 15
  19205. }
  19206. # Create a (secure) tmp directory for tmp files.
  19207. {
  19208. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19209. test -d "$tmp"
  19210. } ||
  19211. {
  19212. tmp=./conf$$-$RANDOM
  19213. (umask 077 && mkdir "$tmp")
  19214. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19215. ac_tmp=$tmp
  19216. # Set up the scripts for CONFIG_FILES section.
  19217. # No need to generate them if there are no CONFIG_FILES.
  19218. # This happens for instance with `./config.status config.h'.
  19219. if test -n "$CONFIG_FILES"; then
  19220. ac_cr=`echo X | tr X '\015'`
  19221. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19222. # But we know of no other shell where ac_cr would be empty at this
  19223. # point, so we can use a bashism as a fallback.
  19224. if test "x$ac_cr" = x; then
  19225. eval ac_cr=\$\'\\r\'
  19226. fi
  19227. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19228. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19229. ac_cs_awk_cr='\\r'
  19230. else
  19231. ac_cs_awk_cr=$ac_cr
  19232. fi
  19233. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19234. _ACEOF
  19235. {
  19236. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19237. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19238. echo "_ACEOF"
  19239. } >conf$$subs.sh ||
  19240. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19241. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19242. ac_delim='%!_!# '
  19243. for ac_last_try in false false false false false :; do
  19244. . ./conf$$subs.sh ||
  19245. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19246. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19247. if test $ac_delim_n = $ac_delim_num; then
  19248. break
  19249. elif $ac_last_try; then
  19250. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19251. else
  19252. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19253. fi
  19254. done
  19255. rm -f conf$$subs.sh
  19256. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19257. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19258. _ACEOF
  19259. sed -n '
  19260. h
  19261. s/^/S["/; s/!.*/"]=/
  19262. p
  19263. g
  19264. s/^[^!]*!//
  19265. :repl
  19266. t repl
  19267. s/'"$ac_delim"'$//
  19268. t delim
  19269. :nl
  19270. h
  19271. s/\(.\{148\}\)..*/\1/
  19272. t more1
  19273. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19274. p
  19275. n
  19276. b repl
  19277. :more1
  19278. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19279. p
  19280. g
  19281. s/.\{148\}//
  19282. t nl
  19283. :delim
  19284. h
  19285. s/\(.\{148\}\)..*/\1/
  19286. t more2
  19287. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19288. p
  19289. b
  19290. :more2
  19291. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19292. p
  19293. g
  19294. s/.\{148\}//
  19295. t delim
  19296. ' <conf$$subs.awk | sed '
  19297. /^[^""]/{
  19298. N
  19299. s/\n//
  19300. }
  19301. ' >>$CONFIG_STATUS || ac_write_fail=1
  19302. rm -f conf$$subs.awk
  19303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19304. _ACAWK
  19305. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19306. for (key in S) S_is_set[key] = 1
  19307. FS = ""
  19308. }
  19309. {
  19310. line = $ 0
  19311. nfields = split(line, field, "@")
  19312. substed = 0
  19313. len = length(field[1])
  19314. for (i = 2; i < nfields; i++) {
  19315. key = field[i]
  19316. keylen = length(key)
  19317. if (S_is_set[key]) {
  19318. value = S[key]
  19319. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19320. len += length(value) + length(field[++i])
  19321. substed = 1
  19322. } else
  19323. len += 1 + keylen
  19324. }
  19325. print line
  19326. }
  19327. _ACAWK
  19328. _ACEOF
  19329. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19330. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19331. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19332. else
  19333. cat
  19334. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19335. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19336. _ACEOF
  19337. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19338. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19339. # trailing colons and then remove the whole line if VPATH becomes empty
  19340. # (actually we leave an empty line to preserve line numbers).
  19341. if test "x$srcdir" = x.; then
  19342. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19343. h
  19344. s///
  19345. s/^/:/
  19346. s/[ ]*$/:/
  19347. s/:\$(srcdir):/:/g
  19348. s/:\${srcdir}:/:/g
  19349. s/:@srcdir@:/:/g
  19350. s/^:*//
  19351. s/:*$//
  19352. x
  19353. s/\(=[ ]*\).*/\1/
  19354. G
  19355. s/\n//
  19356. s/^[^=]*=[ ]*$//
  19357. }'
  19358. fi
  19359. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19360. fi # test -n "$CONFIG_FILES"
  19361. # Set up the scripts for CONFIG_HEADERS section.
  19362. # No need to generate them if there are no CONFIG_HEADERS.
  19363. # This happens for instance with `./config.status Makefile'.
  19364. if test -n "$CONFIG_HEADERS"; then
  19365. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19366. BEGIN {
  19367. _ACEOF
  19368. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19369. # here-document in config.status, that substitutes the proper values into
  19370. # config.h.in to produce config.h.
  19371. # Create a delimiter string that does not exist in confdefs.h, to ease
  19372. # handling of long lines.
  19373. ac_delim='%!_!# '
  19374. for ac_last_try in false false :; do
  19375. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19376. if test -z "$ac_tt"; then
  19377. break
  19378. elif $ac_last_try; then
  19379. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19380. else
  19381. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19382. fi
  19383. done
  19384. # For the awk script, D is an array of macro values keyed by name,
  19385. # likewise P contains macro parameters if any. Preserve backslash
  19386. # newline sequences.
  19387. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19388. sed -n '
  19389. s/.\{148\}/&'"$ac_delim"'/g
  19390. t rset
  19391. :rset
  19392. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19393. t def
  19394. d
  19395. :def
  19396. s/\\$//
  19397. t bsnl
  19398. s/["\\]/\\&/g
  19399. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19400. D["\1"]=" \3"/p
  19401. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19402. d
  19403. :bsnl
  19404. s/["\\]/\\&/g
  19405. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19406. D["\1"]=" \3\\\\\\n"\\/p
  19407. t cont
  19408. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19409. t cont
  19410. d
  19411. :cont
  19412. n
  19413. s/.\{148\}/&'"$ac_delim"'/g
  19414. t clear
  19415. :clear
  19416. s/\\$//
  19417. t bsnlc
  19418. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19419. d
  19420. :bsnlc
  19421. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19422. b cont
  19423. ' <confdefs.h | sed '
  19424. s/'"$ac_delim"'/"\\\
  19425. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19426. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19427. for (key in D) D_is_set[key] = 1
  19428. FS = ""
  19429. }
  19430. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19431. line = \$ 0
  19432. split(line, arg, " ")
  19433. if (arg[1] == "#") {
  19434. defundef = arg[2]
  19435. mac1 = arg[3]
  19436. } else {
  19437. defundef = substr(arg[1], 2)
  19438. mac1 = arg[2]
  19439. }
  19440. split(mac1, mac2, "(") #)
  19441. macro = mac2[1]
  19442. prefix = substr(line, 1, index(line, defundef) - 1)
  19443. if (D_is_set[macro]) {
  19444. # Preserve the white space surrounding the "#".
  19445. print prefix "define", macro P[macro] D[macro]
  19446. next
  19447. } else {
  19448. # Replace #undef with comments. This is necessary, for example,
  19449. # in the case of _POSIX_SOURCE, which is predefined and required
  19450. # on some systems where configure will not decide to define it.
  19451. if (defundef == "undef") {
  19452. print "/*", prefix defundef, macro, "*/"
  19453. next
  19454. }
  19455. }
  19456. }
  19457. { print }
  19458. _ACAWK
  19459. _ACEOF
  19460. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19461. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19462. fi # test -n "$CONFIG_HEADERS"
  19463. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19464. shift
  19465. for ac_tag
  19466. do
  19467. case $ac_tag in
  19468. :[FHLC]) ac_mode=$ac_tag; continue;;
  19469. esac
  19470. case $ac_mode$ac_tag in
  19471. :[FHL]*:*);;
  19472. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19473. :[FH]-) ac_tag=-:-;;
  19474. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19475. esac
  19476. ac_save_IFS=$IFS
  19477. IFS=:
  19478. set x $ac_tag
  19479. IFS=$ac_save_IFS
  19480. shift
  19481. ac_file=$1
  19482. shift
  19483. case $ac_mode in
  19484. :L) ac_source=$1;;
  19485. :[FH])
  19486. ac_file_inputs=
  19487. for ac_f
  19488. do
  19489. case $ac_f in
  19490. -) ac_f="$ac_tmp/stdin";;
  19491. *) # Look for the file first in the build tree, then in the source tree
  19492. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19493. # because $ac_f cannot contain `:'.
  19494. test -f "$ac_f" ||
  19495. case $ac_f in
  19496. [\\/$]*) false;;
  19497. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19498. esac ||
  19499. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19500. esac
  19501. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19502. as_fn_append ac_file_inputs " '$ac_f'"
  19503. done
  19504. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19505. # use $as_me), people would be surprised to read:
  19506. # /* config.h. Generated by config.status. */
  19507. configure_input='Generated from '`
  19508. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19509. `' by configure.'
  19510. if test x"$ac_file" != x-; then
  19511. configure_input="$ac_file. $configure_input"
  19512. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19513. $as_echo "$as_me: creating $ac_file" >&6;}
  19514. fi
  19515. # Neutralize special characters interpreted by sed in replacement strings.
  19516. case $configure_input in #(
  19517. *\&* | *\|* | *\\* )
  19518. ac_sed_conf_input=`$as_echo "$configure_input" |
  19519. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19520. *) ac_sed_conf_input=$configure_input;;
  19521. esac
  19522. case $ac_tag in
  19523. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19524. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19525. esac
  19526. ;;
  19527. esac
  19528. ac_dir=`$as_dirname -- "$ac_file" ||
  19529. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19530. X"$ac_file" : 'X\(//\)[^/]' \| \
  19531. X"$ac_file" : 'X\(//\)$' \| \
  19532. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19533. $as_echo X"$ac_file" |
  19534. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19535. s//\1/
  19536. q
  19537. }
  19538. /^X\(\/\/\)[^/].*/{
  19539. s//\1/
  19540. q
  19541. }
  19542. /^X\(\/\/\)$/{
  19543. s//\1/
  19544. q
  19545. }
  19546. /^X\(\/\).*/{
  19547. s//\1/
  19548. q
  19549. }
  19550. s/.*/./; q'`
  19551. as_dir="$ac_dir"; as_fn_mkdir_p
  19552. ac_builddir=.
  19553. case "$ac_dir" in
  19554. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19555. *)
  19556. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19557. # A ".." for each directory in $ac_dir_suffix.
  19558. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19559. case $ac_top_builddir_sub in
  19560. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19561. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19562. esac ;;
  19563. esac
  19564. ac_abs_top_builddir=$ac_pwd
  19565. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19566. # for backward compatibility:
  19567. ac_top_builddir=$ac_top_build_prefix
  19568. case $srcdir in
  19569. .) # We are building in place.
  19570. ac_srcdir=.
  19571. ac_top_srcdir=$ac_top_builddir_sub
  19572. ac_abs_top_srcdir=$ac_pwd ;;
  19573. [\\/]* | ?:[\\/]* ) # Absolute name.
  19574. ac_srcdir=$srcdir$ac_dir_suffix;
  19575. ac_top_srcdir=$srcdir
  19576. ac_abs_top_srcdir=$srcdir ;;
  19577. *) # Relative name.
  19578. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19579. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19580. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19581. esac
  19582. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19583. case $ac_mode in
  19584. :F)
  19585. #
  19586. # CONFIG_FILE
  19587. #
  19588. case $INSTALL in
  19589. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19590. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19591. esac
  19592. ac_MKDIR_P=$MKDIR_P
  19593. case $MKDIR_P in
  19594. [\\/$]* | ?:[\\/]* ) ;;
  19595. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19596. esac
  19597. _ACEOF
  19598. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19599. # If the template does not know about datarootdir, expand it.
  19600. # FIXME: This hack should be removed a few years after 2.60.
  19601. ac_datarootdir_hack=; ac_datarootdir_seen=
  19602. ac_sed_dataroot='
  19603. /datarootdir/ {
  19604. p
  19605. q
  19606. }
  19607. /@datadir@/p
  19608. /@docdir@/p
  19609. /@infodir@/p
  19610. /@localedir@/p
  19611. /@mandir@/p'
  19612. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19613. *datarootdir*) ac_datarootdir_seen=yes;;
  19614. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19616. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19617. _ACEOF
  19618. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19619. ac_datarootdir_hack='
  19620. s&@datadir@&$datadir&g
  19621. s&@docdir@&$docdir&g
  19622. s&@infodir@&$infodir&g
  19623. s&@localedir@&$localedir&g
  19624. s&@mandir@&$mandir&g
  19625. s&\\\${datarootdir}&$datarootdir&g' ;;
  19626. esac
  19627. _ACEOF
  19628. # Neutralize VPATH when `$srcdir' = `.'.
  19629. # Shell code in configure.ac might set extrasub.
  19630. # FIXME: do we really want to maintain this feature?
  19631. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19632. ac_sed_extra="$ac_vpsub
  19633. $extrasub
  19634. _ACEOF
  19635. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19636. :t
  19637. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19638. s|@configure_input@|$ac_sed_conf_input|;t t
  19639. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19640. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19641. s&@srcdir@&$ac_srcdir&;t t
  19642. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19643. s&@top_srcdir@&$ac_top_srcdir&;t t
  19644. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19645. s&@builddir@&$ac_builddir&;t t
  19646. s&@abs_builddir@&$ac_abs_builddir&;t t
  19647. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19648. s&@INSTALL@&$ac_INSTALL&;t t
  19649. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19650. $ac_datarootdir_hack
  19651. "
  19652. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19653. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19654. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19655. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19656. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19657. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19659. which seems to be undefined. Please make sure it is defined" >&5
  19660. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19661. which seems to be undefined. Please make sure it is defined" >&2;}
  19662. rm -f "$ac_tmp/stdin"
  19663. case $ac_file in
  19664. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19665. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19666. esac \
  19667. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19668. ;;
  19669. :H)
  19670. #
  19671. # CONFIG_HEADER
  19672. #
  19673. if test x"$ac_file" != x-; then
  19674. {
  19675. $as_echo "/* $configure_input */" \
  19676. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19677. } >"$ac_tmp/config.h" \
  19678. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19679. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19680. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19681. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19682. else
  19683. rm -f "$ac_file"
  19684. mv "$ac_tmp/config.h" "$ac_file" \
  19685. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19686. fi
  19687. else
  19688. $as_echo "/* $configure_input */" \
  19689. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19690. || as_fn_error $? "could not create -" "$LINENO" 5
  19691. fi
  19692. # Compute "$ac_file"'s index in $config_headers.
  19693. _am_arg="$ac_file"
  19694. _am_stamp_count=1
  19695. for _am_header in $config_headers :; do
  19696. case $_am_header in
  19697. $_am_arg | $_am_arg:* )
  19698. break ;;
  19699. * )
  19700. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19701. esac
  19702. done
  19703. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19704. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19705. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19706. X"$_am_arg" : 'X\(//\)$' \| \
  19707. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19708. $as_echo X"$_am_arg" |
  19709. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19710. s//\1/
  19711. q
  19712. }
  19713. /^X\(\/\/\)[^/].*/{
  19714. s//\1/
  19715. q
  19716. }
  19717. /^X\(\/\/\)$/{
  19718. s//\1/
  19719. q
  19720. }
  19721. /^X\(\/\).*/{
  19722. s//\1/
  19723. q
  19724. }
  19725. s/.*/./; q'`/stamp-h$_am_stamp_count
  19726. ;;
  19727. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19728. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19729. ;;
  19730. esac
  19731. case $ac_file$ac_mode in
  19732. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19733. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19734. # are listed without --file. Let's play safe and only enable the eval
  19735. # if we detect the quoting.
  19736. case $CONFIG_FILES in
  19737. *\'*) eval set x "$CONFIG_FILES" ;;
  19738. *) set x $CONFIG_FILES ;;
  19739. esac
  19740. shift
  19741. for mf
  19742. do
  19743. # Strip MF so we end up with the name of the file.
  19744. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19745. # Check whether this is an Automake generated Makefile or not.
  19746. # We used to match only the files named `Makefile.in', but
  19747. # some people rename them; so instead we look at the file content.
  19748. # Grep'ing the first line is not enough: some people post-process
  19749. # each Makefile.in and add a new line on top of each file to say so.
  19750. # Grep'ing the whole file is not good either: AIX grep has a line
  19751. # limit of 2048, but all sed's we know have understand at least 4000.
  19752. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19753. dirpart=`$as_dirname -- "$mf" ||
  19754. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19755. X"$mf" : 'X\(//\)[^/]' \| \
  19756. X"$mf" : 'X\(//\)$' \| \
  19757. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19758. $as_echo X"$mf" |
  19759. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19760. s//\1/
  19761. q
  19762. }
  19763. /^X\(\/\/\)[^/].*/{
  19764. s//\1/
  19765. q
  19766. }
  19767. /^X\(\/\/\)$/{
  19768. s//\1/
  19769. q
  19770. }
  19771. /^X\(\/\).*/{
  19772. s//\1/
  19773. q
  19774. }
  19775. s/.*/./; q'`
  19776. else
  19777. continue
  19778. fi
  19779. # Extract the definition of DEPDIR, am__include, and am__quote
  19780. # from the Makefile without running `make'.
  19781. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19782. test -z "$DEPDIR" && continue
  19783. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19784. test -z "am__include" && continue
  19785. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19786. # When using ansi2knr, U may be empty or an underscore; expand it
  19787. U=`sed -n 's/^U = //p' < "$mf"`
  19788. # Find all dependency output files, they are included files with
  19789. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19790. # simplest approach to changing $(DEPDIR) to its actual value in the
  19791. # expansion.
  19792. for file in `sed -n "
  19793. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19794. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  19795. # Make sure the directory exists.
  19796. test -f "$dirpart/$file" && continue
  19797. fdir=`$as_dirname -- "$file" ||
  19798. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19799. X"$file" : 'X\(//\)[^/]' \| \
  19800. X"$file" : 'X\(//\)$' \| \
  19801. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19802. $as_echo X"$file" |
  19803. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19804. s//\1/
  19805. q
  19806. }
  19807. /^X\(\/\/\)[^/].*/{
  19808. s//\1/
  19809. q
  19810. }
  19811. /^X\(\/\/\)$/{
  19812. s//\1/
  19813. q
  19814. }
  19815. /^X\(\/\).*/{
  19816. s//\1/
  19817. q
  19818. }
  19819. s/.*/./; q'`
  19820. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19821. # echo "creating $dirpart/$file"
  19822. echo '# dummy' > "$dirpart/$file"
  19823. done
  19824. done
  19825. }
  19826. ;;
  19827. "libtool":C)
  19828. # See if we are running on zsh, and set the options which allow our
  19829. # commands through without removal of \ escapes.
  19830. if test -n "${ZSH_VERSION+set}" ; then
  19831. setopt NO_GLOB_SUBST
  19832. fi
  19833. cfgfile="${ofile}T"
  19834. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19835. $RM "$cfgfile"
  19836. cat <<_LT_EOF >> "$cfgfile"
  19837. #! $SHELL
  19838. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19839. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19840. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19841. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19842. #
  19843. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19844. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  19845. # Inc.
  19846. # Written by Gordon Matzigkeit, 1996
  19847. #
  19848. # This file is part of GNU Libtool.
  19849. #
  19850. # GNU Libtool is free software; you can redistribute it and/or
  19851. # modify it under the terms of the GNU General Public License as
  19852. # published by the Free Software Foundation; either version 2 of
  19853. # the License, or (at your option) any later version.
  19854. #
  19855. # As a special exception to the GNU General Public License,
  19856. # if you distribute this file as part of a program or library that
  19857. # is built using GNU Libtool, you may include this file under the
  19858. # same distribution terms that you use for the rest of that program.
  19859. #
  19860. # GNU Libtool is distributed in the hope that it will be useful,
  19861. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19862. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19863. # GNU General Public License for more details.
  19864. #
  19865. # You should have received a copy of the GNU General Public License
  19866. # along with GNU Libtool; see the file COPYING. If not, a copy
  19867. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19868. # obtained by writing to the Free Software Foundation, Inc.,
  19869. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19870. # The names of the tagged configurations supported by this script.
  19871. available_tags="CXX "
  19872. # ### BEGIN LIBTOOL CONFIG
  19873. # Whether or not to build static libraries.
  19874. build_old_libs=$enable_static
  19875. # Which release of libtool.m4 was used?
  19876. macro_version=$macro_version
  19877. macro_revision=$macro_revision
  19878. # Whether or not to build shared libraries.
  19879. build_libtool_libs=$enable_shared
  19880. # What type of objects to build.
  19881. pic_mode=$pic_mode
  19882. # Whether or not to optimize for fast installation.
  19883. fast_install=$enable_fast_install
  19884. # Shell to use when invoking shell scripts.
  19885. SHELL=$lt_SHELL
  19886. # An echo program that protects backslashes.
  19887. ECHO=$lt_ECHO
  19888. # The host system.
  19889. host_alias=$host_alias
  19890. host=$host
  19891. host_os=$host_os
  19892. # The build system.
  19893. build_alias=$build_alias
  19894. build=$build
  19895. build_os=$build_os
  19896. # A sed program that does not truncate output.
  19897. SED=$lt_SED
  19898. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19899. Xsed="\$SED -e 1s/^X//"
  19900. # A grep program that handles long lines.
  19901. GREP=$lt_GREP
  19902. # An ERE matcher.
  19903. EGREP=$lt_EGREP
  19904. # A literal string matcher.
  19905. FGREP=$lt_FGREP
  19906. # A BSD- or MS-compatible name lister.
  19907. NM=$lt_NM
  19908. # Whether we need soft or hard links.
  19909. LN_S=$lt_LN_S
  19910. # What is the maximum length of a command?
  19911. max_cmd_len=$max_cmd_len
  19912. # Object file suffix (normally "o").
  19913. objext=$ac_objext
  19914. # Executable file suffix (normally "").
  19915. exeext=$exeext
  19916. # whether the shell understands "unset".
  19917. lt_unset=$lt_unset
  19918. # turn spaces into newlines.
  19919. SP2NL=$lt_lt_SP2NL
  19920. # turn newlines into spaces.
  19921. NL2SP=$lt_lt_NL2SP
  19922. # convert \$build file names to \$host format.
  19923. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19924. # convert \$build files to toolchain format.
  19925. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19926. # An object symbol dumper.
  19927. OBJDUMP=$lt_OBJDUMP
  19928. # Method to check whether dependent libraries are shared objects.
  19929. deplibs_check_method=$lt_deplibs_check_method
  19930. # Command to use when deplibs_check_method = "file_magic".
  19931. file_magic_cmd=$lt_file_magic_cmd
  19932. # How to find potential files when deplibs_check_method = "file_magic".
  19933. file_magic_glob=$lt_file_magic_glob
  19934. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19935. want_nocaseglob=$lt_want_nocaseglob
  19936. # DLL creation program.
  19937. DLLTOOL=$lt_DLLTOOL
  19938. # Command to associate shared and link libraries.
  19939. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19940. # The archiver.
  19941. AR=$lt_AR
  19942. # Flags to create an archive.
  19943. AR_FLAGS=$lt_AR_FLAGS
  19944. # How to feed a file listing to the archiver.
  19945. archiver_list_spec=$lt_archiver_list_spec
  19946. # A symbol stripping program.
  19947. STRIP=$lt_STRIP
  19948. # Commands used to install an old-style archive.
  19949. RANLIB=$lt_RANLIB
  19950. old_postinstall_cmds=$lt_old_postinstall_cmds
  19951. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19952. # Whether to use a lock for old archive extraction.
  19953. lock_old_archive_extraction=$lock_old_archive_extraction
  19954. # A C compiler.
  19955. LTCC=$lt_CC
  19956. # LTCC compiler flags.
  19957. LTCFLAGS=$lt_CFLAGS
  19958. # Take the output of nm and produce a listing of raw symbols and C names.
  19959. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19960. # Transform the output of nm in a proper C declaration.
  19961. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19962. # Transform the output of nm in a C name address pair.
  19963. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19964. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19965. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19966. # Specify filename containing input files for \$NM.
  19967. nm_file_list_spec=$lt_nm_file_list_spec
  19968. # The root where to search for dependent libraries,and in which our libraries should be installed.
  19969. lt_sysroot=$lt_sysroot
  19970. # The name of the directory that contains temporary libtool files.
  19971. objdir=$objdir
  19972. # Used to examine libraries when file_magic_cmd begins with "file".
  19973. MAGIC_CMD=$MAGIC_CMD
  19974. # Must we lock files when doing compilation?
  19975. need_locks=$lt_need_locks
  19976. # Manifest tool.
  19977. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19978. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19979. DSYMUTIL=$lt_DSYMUTIL
  19980. # Tool to change global to local symbols on Mac OS X.
  19981. NMEDIT=$lt_NMEDIT
  19982. # Tool to manipulate fat objects and archives on Mac OS X.
  19983. LIPO=$lt_LIPO
  19984. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19985. OTOOL=$lt_OTOOL
  19986. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19987. OTOOL64=$lt_OTOOL64
  19988. # Old archive suffix (normally "a").
  19989. libext=$libext
  19990. # Shared library suffix (normally ".so").
  19991. shrext_cmds=$lt_shrext_cmds
  19992. # The commands to extract the exported symbol list from a shared archive.
  19993. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19994. # Variables whose values should be saved in libtool wrapper scripts and
  19995. # restored at link time.
  19996. variables_saved_for_relink=$lt_variables_saved_for_relink
  19997. # Do we need the "lib" prefix for modules?
  19998. need_lib_prefix=$need_lib_prefix
  19999. # Do we need a version for libraries?
  20000. need_version=$need_version
  20001. # Library versioning type.
  20002. version_type=$version_type
  20003. # Shared library runtime path variable.
  20004. runpath_var=$runpath_var
  20005. # Shared library path variable.
  20006. shlibpath_var=$shlibpath_var
  20007. # Is shlibpath searched before the hard-coded library search path?
  20008. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20009. # Format of library name prefix.
  20010. libname_spec=$lt_libname_spec
  20011. # List of archive names. First name is the real one, the rest are links.
  20012. # The last name is the one that the linker finds with -lNAME
  20013. library_names_spec=$lt_library_names_spec
  20014. # The coded name of the library, if different from the real name.
  20015. soname_spec=$lt_soname_spec
  20016. # Permission mode override for installation of shared libraries.
  20017. install_override_mode=$lt_install_override_mode
  20018. # Command to use after installation of a shared archive.
  20019. postinstall_cmds=$lt_postinstall_cmds
  20020. # Command to use after uninstallation of a shared archive.
  20021. postuninstall_cmds=$lt_postuninstall_cmds
  20022. # Commands used to finish a libtool library installation in a directory.
  20023. finish_cmds=$lt_finish_cmds
  20024. # As "finish_cmds", except a single script fragment to be evaled but
  20025. # not shown.
  20026. finish_eval=$lt_finish_eval
  20027. # Whether we should hardcode library paths into libraries.
  20028. hardcode_into_libs=$hardcode_into_libs
  20029. # Compile-time system search path for libraries.
  20030. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20031. # Run-time system search path for libraries.
  20032. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20033. # Whether dlopen is supported.
  20034. dlopen_support=$enable_dlopen
  20035. # Whether dlopen of programs is supported.
  20036. dlopen_self=$enable_dlopen_self
  20037. # Whether dlopen of statically linked programs is supported.
  20038. dlopen_self_static=$enable_dlopen_self_static
  20039. # Commands to strip libraries.
  20040. old_striplib=$lt_old_striplib
  20041. striplib=$lt_striplib
  20042. # The linker used to build libraries.
  20043. LD=$lt_LD
  20044. # How to create reloadable object files.
  20045. reload_flag=$lt_reload_flag
  20046. reload_cmds=$lt_reload_cmds
  20047. # Commands used to build an old-style archive.
  20048. old_archive_cmds=$lt_old_archive_cmds
  20049. # A language specific compiler.
  20050. CC=$lt_compiler
  20051. # Is the compiler the GNU compiler?
  20052. with_gcc=$GCC
  20053. # Compiler flag to turn off builtin functions.
  20054. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20055. # Additional compiler flags for building library objects.
  20056. pic_flag=$lt_lt_prog_compiler_pic
  20057. # How to pass a linker flag through the compiler.
  20058. wl=$lt_lt_prog_compiler_wl
  20059. # Compiler flag to prevent dynamic linking.
  20060. link_static_flag=$lt_lt_prog_compiler_static
  20061. # Does compiler simultaneously support -c and -o options?
  20062. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20063. # Whether or not to add -lc for building shared libraries.
  20064. build_libtool_need_lc=$archive_cmds_need_lc
  20065. # Whether or not to disallow shared libs when runtime libs are static.
  20066. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20067. # Compiler flag to allow reflexive dlopens.
  20068. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20069. # Compiler flag to generate shared objects directly from archives.
  20070. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20071. # Whether the compiler copes with passing no objects directly.
  20072. compiler_needs_object=$lt_compiler_needs_object
  20073. # Create an old-style archive from a shared archive.
  20074. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20075. # Create a temporary old-style archive to link instead of a shared archive.
  20076. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20077. # Commands used to build a shared archive.
  20078. archive_cmds=$lt_archive_cmds
  20079. archive_expsym_cmds=$lt_archive_expsym_cmds
  20080. # Commands used to build a loadable module if different from building
  20081. # a shared archive.
  20082. module_cmds=$lt_module_cmds
  20083. module_expsym_cmds=$lt_module_expsym_cmds
  20084. # Whether we are building with GNU ld or not.
  20085. with_gnu_ld=$lt_with_gnu_ld
  20086. # Flag that allows shared libraries with undefined symbols to be built.
  20087. allow_undefined_flag=$lt_allow_undefined_flag
  20088. # Flag that enforces no undefined symbols.
  20089. no_undefined_flag=$lt_no_undefined_flag
  20090. # Flag to hardcode \$libdir into a binary during linking.
  20091. # This must work even if \$libdir does not exist
  20092. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20093. # If ld is used when linking, flag to hardcode \$libdir into a binary
  20094. # during linking. This must work even if \$libdir does not exist.
  20095. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  20096. # Whether we need a single "-rpath" flag with a separated argument.
  20097. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20098. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20099. # DIR into the resulting binary.
  20100. hardcode_direct=$hardcode_direct
  20101. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20102. # DIR into the resulting binary and the resulting library dependency is
  20103. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20104. # library is relocated.
  20105. hardcode_direct_absolute=$hardcode_direct_absolute
  20106. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20107. # into the resulting binary.
  20108. hardcode_minus_L=$hardcode_minus_L
  20109. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20110. # into the resulting binary.
  20111. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20112. # Set to "yes" if building a shared library automatically hardcodes DIR
  20113. # into the library and all subsequent libraries and executables linked
  20114. # against it.
  20115. hardcode_automatic=$hardcode_automatic
  20116. # Set to yes if linker adds runtime paths of dependent libraries
  20117. # to runtime path list.
  20118. inherit_rpath=$inherit_rpath
  20119. # Whether libtool must link a program against all its dependency libraries.
  20120. link_all_deplibs=$link_all_deplibs
  20121. # Set to "yes" if exported symbols are required.
  20122. always_export_symbols=$always_export_symbols
  20123. # The commands to list exported symbols.
  20124. export_symbols_cmds=$lt_export_symbols_cmds
  20125. # Symbols that should not be listed in the preloaded symbols.
  20126. exclude_expsyms=$lt_exclude_expsyms
  20127. # Symbols that must always be exported.
  20128. include_expsyms=$lt_include_expsyms
  20129. # Commands necessary for linking programs (against libraries) with templates.
  20130. prelink_cmds=$lt_prelink_cmds
  20131. # Commands necessary for finishing linking programs.
  20132. postlink_cmds=$lt_postlink_cmds
  20133. # Specify filename containing input files.
  20134. file_list_spec=$lt_file_list_spec
  20135. # How to hardcode a shared library path into an executable.
  20136. hardcode_action=$hardcode_action
  20137. # The directories searched by this compiler when creating a shared library.
  20138. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20139. # Dependencies to place before and after the objects being linked to
  20140. # create a shared library.
  20141. predep_objects=$lt_predep_objects
  20142. postdep_objects=$lt_postdep_objects
  20143. predeps=$lt_predeps
  20144. postdeps=$lt_postdeps
  20145. # The library search path used internally by the compiler when linking
  20146. # a shared library.
  20147. compiler_lib_search_path=$lt_compiler_lib_search_path
  20148. # ### END LIBTOOL CONFIG
  20149. _LT_EOF
  20150. case $host_os in
  20151. aix3*)
  20152. cat <<\_LT_EOF >> "$cfgfile"
  20153. # AIX sometimes has problems with the GCC collect2 program. For some
  20154. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20155. # vanish in a puff of smoke.
  20156. if test "X${COLLECT_NAMES+set}" != Xset; then
  20157. COLLECT_NAMES=
  20158. export COLLECT_NAMES
  20159. fi
  20160. _LT_EOF
  20161. ;;
  20162. esac
  20163. ltmain="$ac_aux_dir/ltmain.sh"
  20164. # We use sed instead of cat because bash on DJGPP gets confused if
  20165. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20166. # text mode, it properly converts lines to CR/LF. This bash problem
  20167. # is reportedly fixed, but why not run on old versions too?
  20168. sed '$q' "$ltmain" >> "$cfgfile" \
  20169. || (rm -f "$cfgfile"; exit 1)
  20170. if test x"$xsi_shell" = xyes; then
  20171. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20172. func_dirname ()\
  20173. {\
  20174. \ case ${1} in\
  20175. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20176. \ * ) func_dirname_result="${3}" ;;\
  20177. \ esac\
  20178. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20179. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20180. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20181. test 0 -eq $? || _lt_function_replace_fail=:
  20182. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20183. func_basename ()\
  20184. {\
  20185. \ func_basename_result="${1##*/}"\
  20186. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20187. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20188. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20189. test 0 -eq $? || _lt_function_replace_fail=:
  20190. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20191. func_dirname_and_basename ()\
  20192. {\
  20193. \ case ${1} in\
  20194. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20195. \ * ) func_dirname_result="${3}" ;;\
  20196. \ esac\
  20197. \ func_basename_result="${1##*/}"\
  20198. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20199. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20200. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20201. test 0 -eq $? || _lt_function_replace_fail=:
  20202. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20203. func_stripname ()\
  20204. {\
  20205. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20206. \ # positional parameters, so assign one to ordinary parameter first.\
  20207. \ func_stripname_result=${3}\
  20208. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20209. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20210. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20211. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20212. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20213. test 0 -eq $? || _lt_function_replace_fail=:
  20214. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20215. func_split_long_opt ()\
  20216. {\
  20217. \ func_split_long_opt_name=${1%%=*}\
  20218. \ func_split_long_opt_arg=${1#*=}\
  20219. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20220. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20221. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20222. test 0 -eq $? || _lt_function_replace_fail=:
  20223. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20224. func_split_short_opt ()\
  20225. {\
  20226. \ func_split_short_opt_arg=${1#??}\
  20227. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20228. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20229. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20230. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20231. test 0 -eq $? || _lt_function_replace_fail=:
  20232. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20233. func_lo2o ()\
  20234. {\
  20235. \ case ${1} in\
  20236. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20237. \ *) func_lo2o_result=${1} ;;\
  20238. \ esac\
  20239. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20240. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20241. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20242. test 0 -eq $? || _lt_function_replace_fail=:
  20243. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20244. func_xform ()\
  20245. {\
  20246. func_xform_result=${1%.*}.lo\
  20247. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20248. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20249. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20250. test 0 -eq $? || _lt_function_replace_fail=:
  20251. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20252. func_arith ()\
  20253. {\
  20254. func_arith_result=$(( $* ))\
  20255. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20256. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20257. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20258. test 0 -eq $? || _lt_function_replace_fail=:
  20259. sed -e '/^func_len ()$/,/^} # func_len /c\
  20260. func_len ()\
  20261. {\
  20262. func_len_result=${#1}\
  20263. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20264. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20265. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20266. test 0 -eq $? || _lt_function_replace_fail=:
  20267. fi
  20268. if test x"$lt_shell_append" = xyes; then
  20269. sed -e '/^func_append ()$/,/^} # func_append /c\
  20270. func_append ()\
  20271. {\
  20272. eval "${1}+=\\${2}"\
  20273. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20274. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20275. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20276. test 0 -eq $? || _lt_function_replace_fail=:
  20277. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20278. func_append_quoted ()\
  20279. {\
  20280. \ func_quote_for_eval "${2}"\
  20281. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20282. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20283. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20284. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20285. test 0 -eq $? || _lt_function_replace_fail=:
  20286. # Save a `func_append' function call where possible by direct use of '+='
  20287. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20288. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20289. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20290. test 0 -eq $? || _lt_function_replace_fail=:
  20291. else
  20292. # Save a `func_append' function call even when '+=' is not available
  20293. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20294. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20295. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20296. test 0 -eq $? || _lt_function_replace_fail=:
  20297. fi
  20298. if test x"$_lt_function_replace_fail" = x":"; then
  20299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20300. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20301. fi
  20302. mv -f "$cfgfile" "$ofile" ||
  20303. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20304. chmod +x "$ofile"
  20305. cat <<_LT_EOF >> "$ofile"
  20306. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20307. # The linker used to build libraries.
  20308. LD=$lt_LD_CXX
  20309. # How to create reloadable object files.
  20310. reload_flag=$lt_reload_flag_CXX
  20311. reload_cmds=$lt_reload_cmds_CXX
  20312. # Commands used to build an old-style archive.
  20313. old_archive_cmds=$lt_old_archive_cmds_CXX
  20314. # A language specific compiler.
  20315. CC=$lt_compiler_CXX
  20316. # Is the compiler the GNU compiler?
  20317. with_gcc=$GCC_CXX
  20318. # Compiler flag to turn off builtin functions.
  20319. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20320. # Additional compiler flags for building library objects.
  20321. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20322. # How to pass a linker flag through the compiler.
  20323. wl=$lt_lt_prog_compiler_wl_CXX
  20324. # Compiler flag to prevent dynamic linking.
  20325. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20326. # Does compiler simultaneously support -c and -o options?
  20327. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20328. # Whether or not to add -lc for building shared libraries.
  20329. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20330. # Whether or not to disallow shared libs when runtime libs are static.
  20331. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20332. # Compiler flag to allow reflexive dlopens.
  20333. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20334. # Compiler flag to generate shared objects directly from archives.
  20335. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20336. # Whether the compiler copes with passing no objects directly.
  20337. compiler_needs_object=$lt_compiler_needs_object_CXX
  20338. # Create an old-style archive from a shared archive.
  20339. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20340. # Create a temporary old-style archive to link instead of a shared archive.
  20341. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20342. # Commands used to build a shared archive.
  20343. archive_cmds=$lt_archive_cmds_CXX
  20344. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20345. # Commands used to build a loadable module if different from building
  20346. # a shared archive.
  20347. module_cmds=$lt_module_cmds_CXX
  20348. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20349. # Whether we are building with GNU ld or not.
  20350. with_gnu_ld=$lt_with_gnu_ld_CXX
  20351. # Flag that allows shared libraries with undefined symbols to be built.
  20352. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20353. # Flag that enforces no undefined symbols.
  20354. no_undefined_flag=$lt_no_undefined_flag_CXX
  20355. # Flag to hardcode \$libdir into a binary during linking.
  20356. # This must work even if \$libdir does not exist
  20357. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20358. # If ld is used when linking, flag to hardcode \$libdir into a binary
  20359. # during linking. This must work even if \$libdir does not exist.
  20360. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  20361. # Whether we need a single "-rpath" flag with a separated argument.
  20362. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20363. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20364. # DIR into the resulting binary.
  20365. hardcode_direct=$hardcode_direct_CXX
  20366. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20367. # DIR into the resulting binary and the resulting library dependency is
  20368. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20369. # library is relocated.
  20370. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20371. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20372. # into the resulting binary.
  20373. hardcode_minus_L=$hardcode_minus_L_CXX
  20374. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20375. # into the resulting binary.
  20376. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20377. # Set to "yes" if building a shared library automatically hardcodes DIR
  20378. # into the library and all subsequent libraries and executables linked
  20379. # against it.
  20380. hardcode_automatic=$hardcode_automatic_CXX
  20381. # Set to yes if linker adds runtime paths of dependent libraries
  20382. # to runtime path list.
  20383. inherit_rpath=$inherit_rpath_CXX
  20384. # Whether libtool must link a program against all its dependency libraries.
  20385. link_all_deplibs=$link_all_deplibs_CXX
  20386. # Set to "yes" if exported symbols are required.
  20387. always_export_symbols=$always_export_symbols_CXX
  20388. # The commands to list exported symbols.
  20389. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20390. # Symbols that should not be listed in the preloaded symbols.
  20391. exclude_expsyms=$lt_exclude_expsyms_CXX
  20392. # Symbols that must always be exported.
  20393. include_expsyms=$lt_include_expsyms_CXX
  20394. # Commands necessary for linking programs (against libraries) with templates.
  20395. prelink_cmds=$lt_prelink_cmds_CXX
  20396. # Commands necessary for finishing linking programs.
  20397. postlink_cmds=$lt_postlink_cmds_CXX
  20398. # Specify filename containing input files.
  20399. file_list_spec=$lt_file_list_spec_CXX
  20400. # How to hardcode a shared library path into an executable.
  20401. hardcode_action=$hardcode_action_CXX
  20402. # The directories searched by this compiler when creating a shared library.
  20403. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20404. # Dependencies to place before and after the objects being linked to
  20405. # create a shared library.
  20406. predep_objects=$lt_predep_objects_CXX
  20407. postdep_objects=$lt_postdep_objects_CXX
  20408. predeps=$lt_predeps_CXX
  20409. postdeps=$lt_postdeps_CXX
  20410. # The library search path used internally by the compiler when linking
  20411. # a shared library.
  20412. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20413. # ### END LIBTOOL TAG CONFIG: CXX
  20414. _LT_EOF
  20415. ;;
  20416. esac
  20417. done # for ac_tag
  20418. as_fn_exit 0
  20419. _ACEOF
  20420. ac_clean_files=$ac_clean_files_save
  20421. test $ac_write_fail = 0 ||
  20422. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20423. # configure is writing to config.log, and then calls config.status.
  20424. # config.status does its own redirection, appending to config.log.
  20425. # Unfortunately, on DOS this fails, as config.log is still kept open
  20426. # by configure, so config.status won't be able to write to it; its
  20427. # output is simply discarded. So we exec the FD to /dev/null,
  20428. # effectively closing config.log, so it can be properly (re)opened and
  20429. # appended to by config.status. When coming back to configure, we
  20430. # need to make the FD available again.
  20431. if test "$no_create" != yes; then
  20432. ac_cs_success=:
  20433. ac_config_status_args=
  20434. test "$silent" = yes &&
  20435. ac_config_status_args="$ac_config_status_args --quiet"
  20436. exec 5>/dev/null
  20437. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20438. exec 5>>config.log
  20439. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20440. # would make configure fail if this is the last instruction.
  20441. $ac_cs_success || as_fn_exit 1
  20442. fi
  20443. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20444. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20445. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20446. fi