configure 803 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for dirsrv 1.0.
  4. #
  5. # Report bugs to <http://bugzilla.redhat.com/>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  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. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell [email protected] about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. # Check that we are running under the correct shell.
  498. SHELL=${CONFIG_SHELL-/bin/sh}
  499. case X$lt_ECHO in
  500. X*--fallback-echo)
  501. # Remove one level of quotation (which was required for Make).
  502. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  503. ;;
  504. esac
  505. ECHO=${lt_ECHO-echo}
  506. if test "X$1" = X--no-reexec; then
  507. # Discard the --no-reexec flag, and continue.
  508. shift
  509. elif test "X$1" = X--fallback-echo; then
  510. # Avoid inline document here, it may be left over
  511. :
  512. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  513. # Yippee, $ECHO works!
  514. :
  515. else
  516. # Restart under the correct shell.
  517. exec $SHELL "$0" --no-reexec ${1+"$@"}
  518. fi
  519. if test "X$1" = X--fallback-echo; then
  520. # used as fallback echo
  521. shift
  522. cat <<_LT_EOF
  523. $*
  524. _LT_EOF
  525. exit 0
  526. fi
  527. # The HP-UX ksh and POSIX shell print the target directory to stdout
  528. # if CDPATH is set.
  529. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  530. if test -z "$lt_ECHO"; then
  531. if test "X${echo_test_string+set}" != Xset; then
  532. # find a string as large as possible, as long as the shell can cope with it
  533. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  534. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  535. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  536. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  537. then
  538. break
  539. fi
  540. done
  541. fi
  542. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  543. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  544. test "X$echo_testing_string" = "X$echo_test_string"; then
  545. :
  546. else
  547. # The Solaris, AIX, and Digital Unix default echo programs unquote
  548. # backslashes. This makes it impossible to quote backslashes using
  549. # echo "$something" | sed 's/\\/\\\\/g'
  550. #
  551. # So, first we look for a working echo in the user's PATH.
  552. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  553. for dir in $PATH /usr/ucb; do
  554. IFS="$lt_save_ifs"
  555. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  556. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  557. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  558. test "X$echo_testing_string" = "X$echo_test_string"; then
  559. ECHO="$dir/echo"
  560. break
  561. fi
  562. done
  563. IFS="$lt_save_ifs"
  564. if test "X$ECHO" = Xecho; then
  565. # We didn't find a better echo, so look for alternatives.
  566. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  567. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  568. test "X$echo_testing_string" = "X$echo_test_string"; then
  569. # This shell has a builtin print -r that does the trick.
  570. ECHO='print -r'
  571. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  572. test "X$CONFIG_SHELL" != X/bin/ksh; then
  573. # If we have ksh, try running configure again with it.
  574. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  575. export ORIGINAL_CONFIG_SHELL
  576. CONFIG_SHELL=/bin/ksh
  577. export CONFIG_SHELL
  578. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  579. else
  580. # Try using printf.
  581. ECHO='printf %s\n'
  582. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  583. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  584. test "X$echo_testing_string" = "X$echo_test_string"; then
  585. # Cool, printf works
  586. :
  587. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  592. export CONFIG_SHELL
  593. SHELL="$CONFIG_SHELL"
  594. export SHELL
  595. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  596. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  597. test "X$echo_testing_string" = 'X\t' &&
  598. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  599. test "X$echo_testing_string" = "X$echo_test_string"; then
  600. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  601. else
  602. # maybe with a smaller string...
  603. prev=:
  604. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  605. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  606. then
  607. break
  608. fi
  609. prev="$cmd"
  610. done
  611. if test "$prev" != 'sed 50q "$0"'; then
  612. echo_test_string=`eval $prev`
  613. export echo_test_string
  614. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  615. else
  616. # Oops. We lost completely, so just stick with echo.
  617. ECHO=echo
  618. fi
  619. fi
  620. fi
  621. fi
  622. fi
  623. fi
  624. # Copy echo and quote the copy suitably for passing to libtool from
  625. # the Makefile, instead of quoting the original, which is used later.
  626. lt_ECHO=$ECHO
  627. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  628. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  629. fi
  630. exec 7<&0 </dev/null 6>&1
  631. # Name of the host.
  632. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  633. # so uname gets run too.
  634. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  635. #
  636. # Initializations.
  637. #
  638. ac_default_prefix=/usr/local
  639. ac_clean_files=
  640. ac_config_libobj_dir=.
  641. LIBOBJS=
  642. cross_compiling=no
  643. subdirs=
  644. MFLAGS=
  645. MAKEFLAGS=
  646. SHELL=${CONFIG_SHELL-/bin/sh}
  647. # Identity of this package.
  648. PACKAGE_NAME='dirsrv'
  649. PACKAGE_TARNAME='dirsrv'
  650. PACKAGE_VERSION='1.0'
  651. PACKAGE_STRING='dirsrv 1.0'
  652. PACKAGE_BUGREPORT='http://bugzilla.redhat.com/'
  653. # Factoring default headers for most tests.
  654. ac_includes_default="\
  655. #include <stdio.h>
  656. #ifdef HAVE_SYS_TYPES_H
  657. # include <sys/types.h>
  658. #endif
  659. #ifdef HAVE_SYS_STAT_H
  660. # include <sys/stat.h>
  661. #endif
  662. #ifdef STDC_HEADERS
  663. # include <stdlib.h>
  664. # include <stddef.h>
  665. #else
  666. # ifdef HAVE_STDLIB_H
  667. # include <stdlib.h>
  668. # endif
  669. #endif
  670. #ifdef HAVE_STRING_H
  671. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  672. # include <memory.h>
  673. # endif
  674. # include <string.h>
  675. #endif
  676. #ifdef HAVE_STRINGS_H
  677. # include <strings.h>
  678. #endif
  679. #ifdef HAVE_INTTYPES_H
  680. # include <inttypes.h>
  681. #endif
  682. #ifdef HAVE_STDINT_H
  683. # include <stdint.h>
  684. #endif
  685. #ifdef HAVE_UNISTD_H
  686. # include <unistd.h>
  687. #endif"
  688. ac_default_prefix=/opt/$PACKAGE_NAME
  689. ac_subst_vars='am__EXEEXT_FALSE
  690. am__EXEEXT_TRUE
  691. LTLIBOBJS
  692. vendor
  693. capbrand
  694. brand
  695. pcre_libdir
  696. pcre_lib
  697. pcre_inc
  698. netsnmp_link
  699. netsnmp_libdir
  700. netsnmp_lib
  701. netsnmp_inc
  702. icu_bin
  703. icu_inc
  704. icu_lib
  705. svrcore_lib
  706. svrcore_inc
  707. sasl_path
  708. sasl_libdir
  709. sasl_lib
  710. sasl_inc
  711. db_libver
  712. db_bindir
  713. db_libdir
  714. db_lib
  715. db_incdir
  716. db_inc
  717. ol_libver
  718. plainldif_opts
  719. ldaptool_opts
  720. ldaptool_bindir
  721. openldap_bindir
  722. openldap_libdir
  723. openldap_lib
  724. openldap_inc
  725. ldapsdk_bindir
  726. ldapsdk_libdir
  727. ldapsdk_lib
  728. ldapsdk_inc
  729. nss_libdir
  730. nss_lib
  731. nss_inc
  732. nspr_libdir
  733. nspr_lib
  734. nspr_inc
  735. OPENLDAP_FALSE
  736. OPENLDAP_TRUE
  737. SELINUX_FALSE
  738. SELINUX_TRUE
  739. PACKAGE_BASE_VERSION
  740. with_selinux
  741. kerberos_libdir
  742. kerberos_lib
  743. kerberos_inc
  744. KRB5_CONFIG_BIN
  745. NETSNMP_CONFIG
  746. ICU_CONFIG
  747. ldap_lib_ldif
  748. SYSTEMD_FALSE
  749. SYSTEMD_TRUE
  750. SOLARIS_FALSE
  751. SOLARIS_TRUE
  752. HPUX_FALSE
  753. HPUX_TRUE
  754. initconfigdir
  755. sttyexec
  756. perlexec
  757. initdir
  758. LIBCRUN
  759. LIBCSTD
  760. LIBDL
  761. LIBNSL
  762. LIBSOCKET
  763. LIBCRYPT
  764. THREADLIB
  765. WINNT_FALSE
  766. WINNT_TRUE
  767. instconfigdir
  768. defaultgroup
  769. defaultuser
  770. updatedir
  771. mibdir
  772. infdir
  773. perldir
  774. scripttemplatedir
  775. serverplugindir
  776. serverincdir
  777. serverdir
  778. schemadir
  779. propertydir
  780. sampledatadir
  781. configdir
  782. with_systemdgroupname
  783. with_systemdsystemconfdir
  784. with_systemdsystemunitdir
  785. PKG_CONFIG
  786. with_tmpfiles_d
  787. with_fhs_opt
  788. enable_acctpolicy_FALSE
  789. enable_acctpolicy_TRUE
  790. enable_presence_FALSE
  791. enable_presence_TRUE
  792. enable_bitwise_FALSE
  793. enable_bitwise_TRUE
  794. enable_auto_dn_suffix_FALSE
  795. enable_auto_dn_suffix_TRUE
  796. enable_autobind_FALSE
  797. enable_autobind_TRUE
  798. enable_ldapi_FALSE
  799. enable_ldapi_TRUE
  800. enable_dna_FALSE
  801. enable_dna_TRUE
  802. enable_pam_passthru_FALSE
  803. enable_pam_passthru_TRUE
  804. BUNDLE_FALSE
  805. BUNDLE_TRUE
  806. debug_defs
  807. LIBOBJS
  808. CXXCPP
  809. CPP
  810. OTOOL64
  811. OTOOL
  812. LIPO
  813. NMEDIT
  814. DSYMUTIL
  815. lt_ECHO
  816. RANLIB
  817. AR
  818. OBJDUMP
  819. LN_S
  820. NM
  821. ac_ct_DUMPBIN
  822. DUMPBIN
  823. LD
  824. FGREP
  825. EGREP
  826. GREP
  827. SED
  828. LIBTOOL
  829. am__fastdepCCAS_FALSE
  830. am__fastdepCCAS_TRUE
  831. CCASDEPMODE
  832. CCASFLAGS
  833. CCAS
  834. am__fastdepCC_FALSE
  835. am__fastdepCC_TRUE
  836. CCDEPMODE
  837. ac_ct_CC
  838. CFLAGS
  839. CC
  840. am__fastdepCXX_FALSE
  841. am__fastdepCXX_TRUE
  842. CXXDEPMODE
  843. AMDEPBACKSLASH
  844. AMDEP_FALSE
  845. AMDEP_TRUE
  846. am__quote
  847. am__include
  848. DEPDIR
  849. OBJEXT
  850. EXEEXT
  851. ac_ct_CXX
  852. CPPFLAGS
  853. LDFLAGS
  854. CXXFLAGS
  855. CXX
  856. host_os
  857. host_vendor
  858. host_cpu
  859. host
  860. build_os
  861. build_vendor
  862. build_cpu
  863. build
  864. MAINT
  865. MAINTAINER_MODE_FALSE
  866. MAINTAINER_MODE_TRUE
  867. CONSOLE_VERSION
  868. am__untar
  869. am__tar
  870. AMTAR
  871. am__leading_dot
  872. SET_MAKE
  873. AWK
  874. mkdir_p
  875. MKDIR_P
  876. INSTALL_STRIP_PROGRAM
  877. STRIP
  878. install_sh
  879. MAKEINFO
  880. AUTOHEADER
  881. AUTOMAKE
  882. AUTOCONF
  883. ACLOCAL
  884. VERSION
  885. PACKAGE
  886. CYGPATH_W
  887. am__isrc
  888. INSTALL_DATA
  889. INSTALL_SCRIPT
  890. INSTALL_PROGRAM
  891. target_alias
  892. host_alias
  893. build_alias
  894. LIBS
  895. ECHO_T
  896. ECHO_N
  897. ECHO_C
  898. DEFS
  899. mandir
  900. localedir
  901. libdir
  902. psdir
  903. pdfdir
  904. dvidir
  905. htmldir
  906. infodir
  907. docdir
  908. oldincludedir
  909. includedir
  910. localstatedir
  911. sharedstatedir
  912. sysconfdir
  913. datadir
  914. datarootdir
  915. libexecdir
  916. sbindir
  917. bindir
  918. program_transform_name
  919. prefix
  920. exec_prefix
  921. PACKAGE_BUGREPORT
  922. PACKAGE_STRING
  923. PACKAGE_VERSION
  924. PACKAGE_TARNAME
  925. PACKAGE_NAME
  926. PATH_SEPARATOR
  927. SHELL'
  928. ac_subst_files=''
  929. ac_user_opts='
  930. enable_option_checking
  931. enable_maintainer_mode
  932. enable_dependency_tracking
  933. enable_static
  934. enable_shared
  935. with_pic
  936. enable_fast_install
  937. with_gnu_ld
  938. enable_libtool_lock
  939. enable_debug
  940. enable_bundle
  941. enable_pam_passthru
  942. enable_dna
  943. enable_ldapi
  944. enable_autobind
  945. enable_bitwise
  946. enable_presence
  947. enable_acctpolicy
  948. with_fhs
  949. with_fhs_opt
  950. with_tmpfiles_d
  951. with_systemdsystemunitdir
  952. with_systemdsystemconfdir
  953. with_systemdgroupname
  954. with_instconfigdir
  955. with_initddir
  956. with_nspr
  957. with_nspr_inc
  958. with_nspr_lib
  959. with_nss
  960. with_nss_inc
  961. with_nss_lib
  962. with_openldap
  963. with_openldap_inc
  964. with_openldap_lib
  965. with_openldap_bin
  966. with_ldapsdk
  967. with_ldapsdk_inc
  968. with_ldapsdk_lib
  969. with_ldapsdk_bin
  970. with_db
  971. with_db_inc
  972. with_db_lib
  973. with_sasl
  974. with_sasl_inc
  975. with_sasl_lib
  976. with_svrcore
  977. with_svrcore_inc
  978. with_svrcore_lib
  979. with_icu
  980. with_icu_inc
  981. with_icu_lib
  982. with_icu_bin
  983. with_netsnmp
  984. with_netsnmp_inc
  985. with_netsnmp_lib
  986. with_kerberos
  987. with_kerberos_inc
  988. with_kerberos_lib
  989. with_pcre
  990. with_selinux
  991. '
  992. ac_precious_vars='build_alias
  993. host_alias
  994. target_alias
  995. CXX
  996. CXXFLAGS
  997. LDFLAGS
  998. LIBS
  999. CPPFLAGS
  1000. CCC
  1001. CC
  1002. CFLAGS
  1003. CCAS
  1004. CCASFLAGS
  1005. CPP
  1006. CXXCPP
  1007. PKG_CONFIG'
  1008. # Initialize some variables set by options.
  1009. ac_init_help=
  1010. ac_init_version=false
  1011. ac_unrecognized_opts=
  1012. ac_unrecognized_sep=
  1013. # The variables have the same names as the options, with
  1014. # dashes changed to underlines.
  1015. cache_file=/dev/null
  1016. exec_prefix=NONE
  1017. no_create=
  1018. no_recursion=
  1019. prefix=NONE
  1020. program_prefix=NONE
  1021. program_suffix=NONE
  1022. program_transform_name=s,x,x,
  1023. silent=
  1024. site=
  1025. srcdir=
  1026. verbose=
  1027. x_includes=NONE
  1028. x_libraries=NONE
  1029. # Installation directory options.
  1030. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1031. # and all the variables that are supposed to be based on exec_prefix
  1032. # by default will actually change.
  1033. # Use braces instead of parens because sh, perl, etc. also accept them.
  1034. # (The list follows the same order as the GNU Coding Standards.)
  1035. bindir='${exec_prefix}/bin'
  1036. sbindir='${exec_prefix}/sbin'
  1037. libexecdir='${exec_prefix}/libexec'
  1038. datarootdir='${prefix}/share'
  1039. datadir='${datarootdir}'
  1040. sysconfdir='${prefix}/etc'
  1041. sharedstatedir='${prefix}/com'
  1042. localstatedir='${prefix}/var'
  1043. includedir='${prefix}/include'
  1044. oldincludedir='/usr/include'
  1045. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1046. infodir='${datarootdir}/info'
  1047. htmldir='${docdir}'
  1048. dvidir='${docdir}'
  1049. pdfdir='${docdir}'
  1050. psdir='${docdir}'
  1051. libdir='${exec_prefix}/lib'
  1052. localedir='${datarootdir}/locale'
  1053. mandir='${datarootdir}/man'
  1054. ac_prev=
  1055. ac_dashdash=
  1056. for ac_option
  1057. do
  1058. # If the previous option needs an argument, assign it.
  1059. if test -n "$ac_prev"; then
  1060. eval $ac_prev=\$ac_option
  1061. ac_prev=
  1062. continue
  1063. fi
  1064. case $ac_option in
  1065. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1066. *) ac_optarg=yes ;;
  1067. esac
  1068. # Accept the important Cygnus configure options, so we can diagnose typos.
  1069. case $ac_dashdash$ac_option in
  1070. --)
  1071. ac_dashdash=yes ;;
  1072. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1073. ac_prev=bindir ;;
  1074. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1075. bindir=$ac_optarg ;;
  1076. -build | --build | --buil | --bui | --bu)
  1077. ac_prev=build_alias ;;
  1078. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1079. build_alias=$ac_optarg ;;
  1080. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1081. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1082. ac_prev=cache_file ;;
  1083. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1084. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1085. cache_file=$ac_optarg ;;
  1086. --config-cache | -C)
  1087. cache_file=config.cache ;;
  1088. -datadir | --datadir | --datadi | --datad)
  1089. ac_prev=datadir ;;
  1090. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1091. datadir=$ac_optarg ;;
  1092. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1093. | --dataroo | --dataro | --datar)
  1094. ac_prev=datarootdir ;;
  1095. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1096. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1097. datarootdir=$ac_optarg ;;
  1098. -disable-* | --disable-*)
  1099. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1100. # Reject names that are not valid shell variable names.
  1101. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1102. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1103. { (exit 1); exit 1; }; }
  1104. ac_useropt_orig=$ac_useropt
  1105. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1106. case $ac_user_opts in
  1107. *"
  1108. "enable_$ac_useropt"
  1109. "*) ;;
  1110. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1111. ac_unrecognized_sep=', ';;
  1112. esac
  1113. eval enable_$ac_useropt=no ;;
  1114. -docdir | --docdir | --docdi | --doc | --do)
  1115. ac_prev=docdir ;;
  1116. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1117. docdir=$ac_optarg ;;
  1118. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1119. ac_prev=dvidir ;;
  1120. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1121. dvidir=$ac_optarg ;;
  1122. -enable-* | --enable-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1127. { (exit 1); exit 1; }; }
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "enable_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval enable_$ac_useropt=\$ac_optarg ;;
  1138. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1139. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1140. | --exec | --exe | --ex)
  1141. ac_prev=exec_prefix ;;
  1142. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1143. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1144. | --exec=* | --exe=* | --ex=*)
  1145. exec_prefix=$ac_optarg ;;
  1146. -gas | --gas | --ga | --g)
  1147. # Obsolete; use --with-gas.
  1148. with_gas=yes ;;
  1149. -help | --help | --hel | --he | -h)
  1150. ac_init_help=long ;;
  1151. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1152. ac_init_help=recursive ;;
  1153. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1154. ac_init_help=short ;;
  1155. -host | --host | --hos | --ho)
  1156. ac_prev=host_alias ;;
  1157. -host=* | --host=* | --hos=* | --ho=*)
  1158. host_alias=$ac_optarg ;;
  1159. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1160. ac_prev=htmldir ;;
  1161. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1162. | --ht=*)
  1163. htmldir=$ac_optarg ;;
  1164. -includedir | --includedir | --includedi | --included | --include \
  1165. | --includ | --inclu | --incl | --inc)
  1166. ac_prev=includedir ;;
  1167. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1168. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1169. includedir=$ac_optarg ;;
  1170. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1171. ac_prev=infodir ;;
  1172. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1173. infodir=$ac_optarg ;;
  1174. -libdir | --libdir | --libdi | --libd)
  1175. ac_prev=libdir ;;
  1176. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1177. libdir=$ac_optarg ;;
  1178. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1179. | --libexe | --libex | --libe)
  1180. ac_prev=libexecdir ;;
  1181. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1182. | --libexe=* | --libex=* | --libe=*)
  1183. libexecdir=$ac_optarg ;;
  1184. -localedir | --localedir | --localedi | --localed | --locale)
  1185. ac_prev=localedir ;;
  1186. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1187. localedir=$ac_optarg ;;
  1188. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1189. | --localstate | --localstat | --localsta | --localst | --locals)
  1190. ac_prev=localstatedir ;;
  1191. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1192. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1193. localstatedir=$ac_optarg ;;
  1194. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1195. ac_prev=mandir ;;
  1196. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1197. mandir=$ac_optarg ;;
  1198. -nfp | --nfp | --nf)
  1199. # Obsolete; use --without-fp.
  1200. with_fp=no ;;
  1201. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1202. | --no-cr | --no-c | -n)
  1203. no_create=yes ;;
  1204. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1205. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1206. no_recursion=yes ;;
  1207. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1208. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1209. | --oldin | --oldi | --old | --ol | --o)
  1210. ac_prev=oldincludedir ;;
  1211. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1212. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1213. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1214. oldincludedir=$ac_optarg ;;
  1215. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1216. ac_prev=prefix ;;
  1217. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1218. prefix=$ac_optarg ;;
  1219. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1220. | --program-pre | --program-pr | --program-p)
  1221. ac_prev=program_prefix ;;
  1222. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1223. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1224. program_prefix=$ac_optarg ;;
  1225. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1226. | --program-suf | --program-su | --program-s)
  1227. ac_prev=program_suffix ;;
  1228. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1229. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1230. program_suffix=$ac_optarg ;;
  1231. -program-transform-name | --program-transform-name \
  1232. | --program-transform-nam | --program-transform-na \
  1233. | --program-transform-n | --program-transform- \
  1234. | --program-transform | --program-transfor \
  1235. | --program-transfo | --program-transf \
  1236. | --program-trans | --program-tran \
  1237. | --progr-tra | --program-tr | --program-t)
  1238. ac_prev=program_transform_name ;;
  1239. -program-transform-name=* | --program-transform-name=* \
  1240. | --program-transform-nam=* | --program-transform-na=* \
  1241. | --program-transform-n=* | --program-transform-=* \
  1242. | --program-transform=* | --program-transfor=* \
  1243. | --program-transfo=* | --program-transf=* \
  1244. | --program-trans=* | --program-tran=* \
  1245. | --progr-tra=* | --program-tr=* | --program-t=*)
  1246. program_transform_name=$ac_optarg ;;
  1247. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1248. ac_prev=pdfdir ;;
  1249. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1250. pdfdir=$ac_optarg ;;
  1251. -psdir | --psdir | --psdi | --psd | --ps)
  1252. ac_prev=psdir ;;
  1253. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1254. psdir=$ac_optarg ;;
  1255. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1256. | -silent | --silent | --silen | --sile | --sil)
  1257. silent=yes ;;
  1258. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1259. ac_prev=sbindir ;;
  1260. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1261. | --sbi=* | --sb=*)
  1262. sbindir=$ac_optarg ;;
  1263. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1264. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1265. | --sharedst | --shareds | --shared | --share | --shar \
  1266. | --sha | --sh)
  1267. ac_prev=sharedstatedir ;;
  1268. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1269. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1270. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1271. | --sha=* | --sh=*)
  1272. sharedstatedir=$ac_optarg ;;
  1273. -site | --site | --sit)
  1274. ac_prev=site ;;
  1275. -site=* | --site=* | --sit=*)
  1276. site=$ac_optarg ;;
  1277. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1278. ac_prev=srcdir ;;
  1279. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1280. srcdir=$ac_optarg ;;
  1281. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1282. | --syscon | --sysco | --sysc | --sys | --sy)
  1283. ac_prev=sysconfdir ;;
  1284. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1285. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1286. sysconfdir=$ac_optarg ;;
  1287. -target | --target | --targe | --targ | --tar | --ta | --t)
  1288. ac_prev=target_alias ;;
  1289. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1290. target_alias=$ac_optarg ;;
  1291. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1292. verbose=yes ;;
  1293. -version | --version | --versio | --versi | --vers | -V)
  1294. ac_init_version=: ;;
  1295. -with-* | --with-*)
  1296. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1297. # Reject names that are not valid shell variable names.
  1298. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1299. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1300. { (exit 1); exit 1; }; }
  1301. ac_useropt_orig=$ac_useropt
  1302. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1303. case $ac_user_opts in
  1304. *"
  1305. "with_$ac_useropt"
  1306. "*) ;;
  1307. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1308. ac_unrecognized_sep=', ';;
  1309. esac
  1310. eval with_$ac_useropt=\$ac_optarg ;;
  1311. -without-* | --without-*)
  1312. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1313. # Reject names that are not valid shell variable names.
  1314. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1315. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1316. { (exit 1); exit 1; }; }
  1317. ac_useropt_orig=$ac_useropt
  1318. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1319. case $ac_user_opts in
  1320. *"
  1321. "with_$ac_useropt"
  1322. "*) ;;
  1323. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1324. ac_unrecognized_sep=', ';;
  1325. esac
  1326. eval with_$ac_useropt=no ;;
  1327. --x)
  1328. # Obsolete; use --with-x.
  1329. with_x=yes ;;
  1330. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1331. | --x-incl | --x-inc | --x-in | --x-i)
  1332. ac_prev=x_includes ;;
  1333. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1334. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1335. x_includes=$ac_optarg ;;
  1336. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1337. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1338. ac_prev=x_libraries ;;
  1339. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1340. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1341. x_libraries=$ac_optarg ;;
  1342. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1343. Try \`$0 --help' for more information." >&2
  1344. { (exit 1); exit 1; }; }
  1345. ;;
  1346. *=*)
  1347. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1348. # Reject names that are not valid shell variable names.
  1349. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1350. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1351. { (exit 1); exit 1; }; }
  1352. eval $ac_envvar=\$ac_optarg
  1353. export $ac_envvar ;;
  1354. *)
  1355. # FIXME: should be removed in autoconf 3.0.
  1356. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1357. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1358. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1359. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1360. ;;
  1361. esac
  1362. done
  1363. if test -n "$ac_prev"; then
  1364. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1365. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1366. { (exit 1); exit 1; }; }
  1367. fi
  1368. if test -n "$ac_unrecognized_opts"; then
  1369. case $enable_option_checking in
  1370. no) ;;
  1371. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1372. { (exit 1); exit 1; }; } ;;
  1373. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1374. esac
  1375. fi
  1376. # Check all directory arguments for consistency.
  1377. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1378. datadir sysconfdir sharedstatedir localstatedir includedir \
  1379. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1380. libdir localedir mandir
  1381. do
  1382. eval ac_val=\$$ac_var
  1383. # Remove trailing slashes.
  1384. case $ac_val in
  1385. */ )
  1386. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1387. eval $ac_var=\$ac_val;;
  1388. esac
  1389. # Be sure to have absolute directory names.
  1390. case $ac_val in
  1391. [\\/$]* | ?:[\\/]* ) continue;;
  1392. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1393. esac
  1394. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1395. { (exit 1); exit 1; }; }
  1396. done
  1397. # There might be people who depend on the old broken behavior: `$host'
  1398. # used to hold the argument of --host etc.
  1399. # FIXME: To remove some day.
  1400. build=$build_alias
  1401. host=$host_alias
  1402. target=$target_alias
  1403. # FIXME: To remove some day.
  1404. if test "x$host_alias" != x; then
  1405. if test "x$build_alias" = x; then
  1406. cross_compiling=maybe
  1407. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1408. If a cross compiler is detected then cross compile mode will be used." >&2
  1409. elif test "x$build_alias" != "x$host_alias"; then
  1410. cross_compiling=yes
  1411. fi
  1412. fi
  1413. ac_tool_prefix=
  1414. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1415. test "$silent" = yes && exec 6>/dev/null
  1416. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1417. ac_ls_di=`ls -di .` &&
  1418. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1419. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1420. { (exit 1); exit 1; }; }
  1421. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1422. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1423. { (exit 1); exit 1; }; }
  1424. # Find the source files, if location was not specified.
  1425. if test -z "$srcdir"; then
  1426. ac_srcdir_defaulted=yes
  1427. # Try the directory containing this script, then the parent directory.
  1428. ac_confdir=`$as_dirname -- "$as_myself" ||
  1429. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1430. X"$as_myself" : 'X\(//\)[^/]' \| \
  1431. X"$as_myself" : 'X\(//\)$' \| \
  1432. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1433. $as_echo X"$as_myself" |
  1434. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1435. s//\1/
  1436. q
  1437. }
  1438. /^X\(\/\/\)[^/].*/{
  1439. s//\1/
  1440. q
  1441. }
  1442. /^X\(\/\/\)$/{
  1443. s//\1/
  1444. q
  1445. }
  1446. /^X\(\/\).*/{
  1447. s//\1/
  1448. q
  1449. }
  1450. s/.*/./; q'`
  1451. srcdir=$ac_confdir
  1452. if test ! -r "$srcdir/$ac_unique_file"; then
  1453. srcdir=..
  1454. fi
  1455. else
  1456. ac_srcdir_defaulted=no
  1457. fi
  1458. if test ! -r "$srcdir/$ac_unique_file"; then
  1459. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1460. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1461. { (exit 1); exit 1; }; }
  1462. fi
  1463. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1464. ac_abs_confdir=`(
  1465. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1466. { (exit 1); exit 1; }; }
  1467. pwd)`
  1468. # When building in place, set srcdir=.
  1469. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1470. srcdir=.
  1471. fi
  1472. # Remove unnecessary trailing slashes from srcdir.
  1473. # Double slashes in file names in object file debugging info
  1474. # mess up M-x gdb in Emacs.
  1475. case $srcdir in
  1476. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1477. esac
  1478. for ac_var in $ac_precious_vars; do
  1479. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1480. eval ac_env_${ac_var}_value=\$${ac_var}
  1481. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1482. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1483. done
  1484. #
  1485. # Report the --help message.
  1486. #
  1487. if test "$ac_init_help" = "long"; then
  1488. # Omit some internal or obsolete options to make the list less imposing.
  1489. # This message is too long to be a string in the A/UX 3.1 sh.
  1490. cat <<_ACEOF
  1491. \`configure' configures dirsrv 1.0 to adapt to many kinds of systems.
  1492. Usage: $0 [OPTION]... [VAR=VALUE]...
  1493. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1494. VAR=VALUE. See below for descriptions of some of the useful variables.
  1495. Defaults for the options are specified in brackets.
  1496. Configuration:
  1497. -h, --help display this help and exit
  1498. --help=short display options specific to this package
  1499. --help=recursive display the short help of all the included packages
  1500. -V, --version display version information and exit
  1501. -q, --quiet, --silent do not print \`checking...' messages
  1502. --cache-file=FILE cache test results in FILE [disabled]
  1503. -C, --config-cache alias for \`--cache-file=config.cache'
  1504. -n, --no-create do not create output files
  1505. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1506. Installation directories:
  1507. --prefix=PREFIX install architecture-independent files in PREFIX
  1508. [$ac_default_prefix]
  1509. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1510. [PREFIX]
  1511. By default, \`make install' will install all the files in
  1512. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1513. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1514. for instance \`--prefix=\$HOME'.
  1515. For better control, use the options below.
  1516. Fine tuning of the installation directories:
  1517. --bindir=DIR user executables [EPREFIX/bin]
  1518. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1519. --libexecdir=DIR program executables [EPREFIX/libexec]
  1520. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1521. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1522. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1523. --libdir=DIR object code libraries [EPREFIX/lib]
  1524. --includedir=DIR C header files [PREFIX/include]
  1525. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1526. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1527. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1528. --infodir=DIR info documentation [DATAROOTDIR/info]
  1529. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1530. --mandir=DIR man documentation [DATAROOTDIR/man]
  1531. --docdir=DIR documentation root [DATAROOTDIR/doc/dirsrv]
  1532. --htmldir=DIR html documentation [DOCDIR]
  1533. --dvidir=DIR dvi documentation [DOCDIR]
  1534. --pdfdir=DIR pdf documentation [DOCDIR]
  1535. --psdir=DIR ps documentation [DOCDIR]
  1536. _ACEOF
  1537. cat <<\_ACEOF
  1538. Program names:
  1539. --program-prefix=PREFIX prepend PREFIX to installed program names
  1540. --program-suffix=SUFFIX append SUFFIX to installed program names
  1541. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1542. System types:
  1543. --build=BUILD configure for building on BUILD [guessed]
  1544. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1545. _ACEOF
  1546. fi
  1547. if test -n "$ac_init_help"; then
  1548. case $ac_init_help in
  1549. short | recursive ) echo "Configuration of dirsrv 1.0:";;
  1550. esac
  1551. cat <<\_ACEOF
  1552. Optional Features:
  1553. --disable-option-checking ignore unrecognized --enable/--with options
  1554. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1555. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1556. --enable-maintainer-mode enable make rules and dependencies not useful
  1557. (and sometimes confusing) to the casual installer
  1558. --disable-dependency-tracking speeds up one-time build
  1559. --enable-dependency-tracking do not reject slow dependency extractors
  1560. --enable-static[=PKGS] build static libraries [default=no]
  1561. --enable-shared[=PKGS] build shared libraries [default=yes]
  1562. --enable-fast-install[=PKGS]
  1563. optimize for fast installation [default=yes]
  1564. --disable-libtool-lock avoid locking (might break parallel builds)
  1565. --enable-debug Enable debug features (default: no)
  1566. --enable-bundle Enable bundled dependencies (default: no)
  1567. --enable-pam-passthru enable the PAM passthrough auth plugin (default:
  1568. yes)
  1569. --enable-dna enable the Distributed Numeric Assignment (DNA)
  1570. plugin (default: yes)
  1571. --enable-ldapi enable LDAP over unix domain socket (LDAPI) support
  1572. (default: yes)
  1573. --enable-autobind enable auto bind over unix domain socket (LDAPI)
  1574. support (default: no)
  1575. --enable-auto-dn-suffix enable auto bind with auto dn suffix over unix
  1576. domain socket (LDAPI) support (default: no)
  1577. --enable-bitwise enable the bitwise matching rule plugin (default:
  1578. yes)
  1579. --enable-presence enable the presence plugin (default: no)
  1580. --enable-acctpolicy enable the account policy plugin (default: yes)
  1581. Optional Packages:
  1582. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1583. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1584. --with-pic try to use only PIC/non-PIC objects [default=use
  1585. both]
  1586. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1587. --with-fhs Use FHS layout
  1588. --with-fhs-opt Use FHS optional layout
  1589. --with-tmpfiles-d=PATH system uses tmpfiles.d to handle temp files/dirs
  1590. (default: $with_tmpfiles_d)
  1591. --with-systemdsystemunitdir=PATH
  1592. Directory for systemd service files (default:
  1593. $with_systemdsystemunitdir)
  1594. --with-systemdsystemconfdir=PATH
  1595. Directory for systemd service files (default:
  1596. $with_systemdsystemconfdir)
  1597. --with-systemdgroupname=NAME
  1598. Name of group target for all instances (default:
  1599. $with_systemdgroupname)
  1600. --with-instconfigdir=/path
  1601. Base directory for instance specific writable
  1602. configuration directories (default
  1603. $sysconfdir/$PACKAGE_NAME)
  1604. --with-initddir=/path Absolute path (not relative like some of the other
  1605. options) that should contain the SysV init scripts
  1606. (default '$(sysconfdir)/rc.d')
  1607. --with-nspr[=PATH] Netscape Portable Runtime (NSPR) directory
  1608. --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include directory
  1609. --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory
  1610. --with-nss[=PATH] Network Security Services (NSS) directory
  1611. --with-nss-inc=PATH Network Security Services (NSS) include directory
  1612. --with-nss-lib=PATH Network Security Services (NSS) library directory
  1613. --with-openldap[=PATH] Use OpenLDAP - optional PATH is path to OpenLDAP SDK
  1614. --with-openldap-inc=PATH
  1615. OpenLDAP SDK include directory
  1616. --with-openldap-lib=PATH
  1617. OpenLDAP SDK library directory
  1618. --with-openldap-bin=PATH
  1619. OpenLDAP SDK binary directory
  1620. --with-ldapsdk[=PATH] Mozilla LDAP SDK directory
  1621. --with-ldapsdk-inc=PATH Mozilla LDAP SDK include directory
  1622. --with-ldapsdk-lib=PATH Mozilla LDAP SDK library directory
  1623. --with-ldapsdk-bin=PATH Mozilla LDAP SDK binary directory
  1624. --with-db[=PATH] Berkeley DB directory
  1625. --with-db-inc=PATH Berkeley DB include file directory
  1626. --with-db-lib=PATH Berkeley DB library directory
  1627. --with-sasl[=PATH] Use SASL from supplied path
  1628. --with-sasl-inc=PATH SASL include file directory
  1629. --with-sasl-lib=PATH SASL library directory
  1630. --with-svrcore[=PATH] Use system installed SVRCORE - optional path for
  1631. SVRCORE
  1632. --with-svrcore-inc=PATH SVRCORE include file directory
  1633. --with-svrcore-lib=PATH SVRCORE library directory
  1634. --with-icu[=PATH] ICU directory
  1635. --with-icu-inc=PATH ICU include directory
  1636. --with-icu-lib=PATH ICU library directory
  1637. --with-icu-bin=PATH ICU binary directory
  1638. --with-netsnmp[=PATH] Net-SNMP directory
  1639. --with-netsnmp-inc=PATH Net-SNMP include directory
  1640. --with-netsnmp-lib=PATH Net-SNMP library directory
  1641. --with-kerberos[=PATH] Use the kerberos API in the server directly - allows
  1642. the server to authenticate directly with a keytab -
  1643. otherwise, SASL/GSSAPI auth depends on underlying
  1644. SASL libraries and external kinit with a keytab - if
  1645. PATH is not specified, look for kerberos in the
  1646. system locations. This will attempt to use
  1647. krb5-config from the PATH to find the libs and
  1648. include dirs - you can specify KRB5_CONFIG_BIN to
  1649. specify a different filename or absolute path. If
  1650. krb5-config does not work, this will attempt to look
  1651. in various system directories
  1652. --with-kerberos-inc=PATH
  1653. Allows you to explicitly set the directory
  1654. containing the kerberos include files - implies use
  1655. of kerberos
  1656. --with-kerberos-lib=PATH
  1657. Allows you to explicitly set the directory
  1658. containing the kerberos libraries - implies use of
  1659. kerberos
  1660. --with-pcre[=PATH] Perl Compatible Regular Expression directory
  1661. --with-selinux Support SELinux policy
  1662. Some influential environment variables:
  1663. CXX C++ compiler command
  1664. CXXFLAGS C++ compiler flags
  1665. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1666. nonstandard directory <lib dir>
  1667. LIBS libraries to pass to the linker, e.g. -l<library>
  1668. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1669. you have headers in a nonstandard directory <include dir>
  1670. CC C compiler command
  1671. CFLAGS C compiler flags
  1672. CCAS assembler compiler command (defaults to CC)
  1673. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1674. CPP C preprocessor
  1675. CXXCPP C++ preprocessor
  1676. PKG_CONFIG path to pkg-config utility
  1677. Use these variables to override the choices made by `configure' or to help
  1678. it to find libraries and programs with nonstandard names/locations.
  1679. Report bugs to <http://bugzilla.redhat.com/>.
  1680. _ACEOF
  1681. ac_status=$?
  1682. fi
  1683. if test "$ac_init_help" = "recursive"; then
  1684. # If there are subdirs, report their specific --help.
  1685. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1686. test -d "$ac_dir" ||
  1687. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1688. continue
  1689. ac_builddir=.
  1690. case "$ac_dir" in
  1691. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1692. *)
  1693. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1694. # A ".." for each directory in $ac_dir_suffix.
  1695. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1696. case $ac_top_builddir_sub in
  1697. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1698. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1699. esac ;;
  1700. esac
  1701. ac_abs_top_builddir=$ac_pwd
  1702. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1703. # for backward compatibility:
  1704. ac_top_builddir=$ac_top_build_prefix
  1705. case $srcdir in
  1706. .) # We are building in place.
  1707. ac_srcdir=.
  1708. ac_top_srcdir=$ac_top_builddir_sub
  1709. ac_abs_top_srcdir=$ac_pwd ;;
  1710. [\\/]* | ?:[\\/]* ) # Absolute name.
  1711. ac_srcdir=$srcdir$ac_dir_suffix;
  1712. ac_top_srcdir=$srcdir
  1713. ac_abs_top_srcdir=$srcdir ;;
  1714. *) # Relative name.
  1715. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1716. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1717. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1718. esac
  1719. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1720. cd "$ac_dir" || { ac_status=$?; continue; }
  1721. # Check for guested configure.
  1722. if test -f "$ac_srcdir/configure.gnu"; then
  1723. echo &&
  1724. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1725. elif test -f "$ac_srcdir/configure"; then
  1726. echo &&
  1727. $SHELL "$ac_srcdir/configure" --help=recursive
  1728. else
  1729. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1730. fi || ac_status=$?
  1731. cd "$ac_pwd" || { ac_status=$?; break; }
  1732. done
  1733. fi
  1734. test -n "$ac_init_help" && exit $ac_status
  1735. if $ac_init_version; then
  1736. cat <<\_ACEOF
  1737. dirsrv configure 1.0
  1738. generated by GNU Autoconf 2.63
  1739. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1740. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1741. This configure script is free software; the Free Software Foundation
  1742. gives unlimited permission to copy, distribute and modify it.
  1743. _ACEOF
  1744. exit
  1745. fi
  1746. cat >config.log <<_ACEOF
  1747. This file contains any messages produced by compilers while
  1748. running configure, to aid debugging if configure makes a mistake.
  1749. It was created by dirsrv $as_me 1.0, which was
  1750. generated by GNU Autoconf 2.63. Invocation command line was
  1751. $ $0 $@
  1752. _ACEOF
  1753. exec 5>>config.log
  1754. {
  1755. cat <<_ASUNAME
  1756. ## --------- ##
  1757. ## Platform. ##
  1758. ## --------- ##
  1759. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1760. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1761. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1762. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1763. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1764. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1765. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1766. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1767. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1768. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1769. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1770. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1771. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1772. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1773. _ASUNAME
  1774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1775. for as_dir in $PATH
  1776. do
  1777. IFS=$as_save_IFS
  1778. test -z "$as_dir" && as_dir=.
  1779. $as_echo "PATH: $as_dir"
  1780. done
  1781. IFS=$as_save_IFS
  1782. } >&5
  1783. cat >&5 <<_ACEOF
  1784. ## ----------- ##
  1785. ## Core tests. ##
  1786. ## ----------- ##
  1787. _ACEOF
  1788. # Keep a trace of the command line.
  1789. # Strip out --no-create and --no-recursion so they do not pile up.
  1790. # Strip out --silent because we don't want to record it for future runs.
  1791. # Also quote any args containing shell meta-characters.
  1792. # Make two passes to allow for proper duplicate-argument suppression.
  1793. ac_configure_args=
  1794. ac_configure_args0=
  1795. ac_configure_args1=
  1796. ac_must_keep_next=false
  1797. for ac_pass in 1 2
  1798. do
  1799. for ac_arg
  1800. do
  1801. case $ac_arg in
  1802. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1803. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1804. | -silent | --silent | --silen | --sile | --sil)
  1805. continue ;;
  1806. *\'*)
  1807. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1808. esac
  1809. case $ac_pass in
  1810. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1811. 2)
  1812. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1813. if test $ac_must_keep_next = true; then
  1814. ac_must_keep_next=false # Got value, back to normal.
  1815. else
  1816. case $ac_arg in
  1817. *=* | --config-cache | -C | -disable-* | --disable-* \
  1818. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1819. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1820. | -with-* | --with-* | -without-* | --without-* | --x)
  1821. case "$ac_configure_args0 " in
  1822. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1823. esac
  1824. ;;
  1825. -* ) ac_must_keep_next=true ;;
  1826. esac
  1827. fi
  1828. ac_configure_args="$ac_configure_args '$ac_arg'"
  1829. ;;
  1830. esac
  1831. done
  1832. done
  1833. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1834. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1835. # When interrupted or exit'd, cleanup temporary files, and complete
  1836. # config.log. We remove comments because anyway the quotes in there
  1837. # would cause problems or look ugly.
  1838. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1839. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1840. trap 'exit_status=$?
  1841. # Save into config.log some information that might help in debugging.
  1842. {
  1843. echo
  1844. cat <<\_ASBOX
  1845. ## ---------------- ##
  1846. ## Cache variables. ##
  1847. ## ---------------- ##
  1848. _ASBOX
  1849. echo
  1850. # The following way of writing the cache mishandles newlines in values,
  1851. (
  1852. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1853. eval ac_val=\$$ac_var
  1854. case $ac_val in #(
  1855. *${as_nl}*)
  1856. case $ac_var in #(
  1857. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1858. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1859. esac
  1860. case $ac_var in #(
  1861. _ | IFS | as_nl) ;; #(
  1862. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1863. *) $as_unset $ac_var ;;
  1864. esac ;;
  1865. esac
  1866. done
  1867. (set) 2>&1 |
  1868. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1869. *${as_nl}ac_space=\ *)
  1870. sed -n \
  1871. "s/'\''/'\''\\\\'\'''\''/g;
  1872. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1873. ;; #(
  1874. *)
  1875. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1876. ;;
  1877. esac |
  1878. sort
  1879. )
  1880. echo
  1881. cat <<\_ASBOX
  1882. ## ----------------- ##
  1883. ## Output variables. ##
  1884. ## ----------------- ##
  1885. _ASBOX
  1886. echo
  1887. for ac_var in $ac_subst_vars
  1888. do
  1889. eval ac_val=\$$ac_var
  1890. case $ac_val in
  1891. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1892. esac
  1893. $as_echo "$ac_var='\''$ac_val'\''"
  1894. done | sort
  1895. echo
  1896. if test -n "$ac_subst_files"; then
  1897. cat <<\_ASBOX
  1898. ## ------------------- ##
  1899. ## File substitutions. ##
  1900. ## ------------------- ##
  1901. _ASBOX
  1902. echo
  1903. for ac_var in $ac_subst_files
  1904. do
  1905. eval ac_val=\$$ac_var
  1906. case $ac_val in
  1907. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1908. esac
  1909. $as_echo "$ac_var='\''$ac_val'\''"
  1910. done | sort
  1911. echo
  1912. fi
  1913. if test -s confdefs.h; then
  1914. cat <<\_ASBOX
  1915. ## ----------- ##
  1916. ## confdefs.h. ##
  1917. ## ----------- ##
  1918. _ASBOX
  1919. echo
  1920. cat confdefs.h
  1921. echo
  1922. fi
  1923. test "$ac_signal" != 0 &&
  1924. $as_echo "$as_me: caught signal $ac_signal"
  1925. $as_echo "$as_me: exit $exit_status"
  1926. } >&5
  1927. rm -f core *.core core.conftest.* &&
  1928. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1929. exit $exit_status
  1930. ' 0
  1931. for ac_signal in 1 2 13 15; do
  1932. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1933. done
  1934. ac_signal=0
  1935. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1936. rm -f -r conftest* confdefs.h
  1937. # Predefined preprocessor variables.
  1938. cat >>confdefs.h <<_ACEOF
  1939. #define PACKAGE_NAME "$PACKAGE_NAME"
  1940. _ACEOF
  1941. cat >>confdefs.h <<_ACEOF
  1942. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1943. _ACEOF
  1944. cat >>confdefs.h <<_ACEOF
  1945. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1946. _ACEOF
  1947. cat >>confdefs.h <<_ACEOF
  1948. #define PACKAGE_STRING "$PACKAGE_STRING"
  1949. _ACEOF
  1950. cat >>confdefs.h <<_ACEOF
  1951. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1952. _ACEOF
  1953. # Let the site file select an alternate cache file if it wants to.
  1954. # Prefer an explicitly selected file to automatically selected ones.
  1955. ac_site_file1=NONE
  1956. ac_site_file2=NONE
  1957. if test -n "$CONFIG_SITE"; then
  1958. ac_site_file1=$CONFIG_SITE
  1959. elif test "x$prefix" != xNONE; then
  1960. ac_site_file1=$prefix/share/config.site
  1961. ac_site_file2=$prefix/etc/config.site
  1962. else
  1963. ac_site_file1=$ac_default_prefix/share/config.site
  1964. ac_site_file2=$ac_default_prefix/etc/config.site
  1965. fi
  1966. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1967. do
  1968. test "x$ac_site_file" = xNONE && continue
  1969. if test -r "$ac_site_file"; then
  1970. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1971. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1972. sed 's/^/| /' "$ac_site_file" >&5
  1973. . "$ac_site_file"
  1974. fi
  1975. done
  1976. if test -r "$cache_file"; then
  1977. # Some versions of bash will fail to source /dev/null (special
  1978. # files actually), so we avoid doing that.
  1979. if test -f "$cache_file"; then
  1980. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1981. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1982. case $cache_file in
  1983. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1984. *) . "./$cache_file";;
  1985. esac
  1986. fi
  1987. else
  1988. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1989. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1990. >$cache_file
  1991. fi
  1992. # Check that the precious variables saved in the cache have kept the same
  1993. # value.
  1994. ac_cache_corrupted=false
  1995. for ac_var in $ac_precious_vars; do
  1996. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1997. eval ac_new_set=\$ac_env_${ac_var}_set
  1998. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1999. eval ac_new_val=\$ac_env_${ac_var}_value
  2000. case $ac_old_set,$ac_new_set in
  2001. set,)
  2002. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2003. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2004. ac_cache_corrupted=: ;;
  2005. ,set)
  2006. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2007. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2008. ac_cache_corrupted=: ;;
  2009. ,);;
  2010. *)
  2011. if test "x$ac_old_val" != "x$ac_new_val"; then
  2012. # differences in whitespace do not lead to failure.
  2013. ac_old_val_w=`echo x $ac_old_val`
  2014. ac_new_val_w=`echo x $ac_new_val`
  2015. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2016. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2017. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2018. ac_cache_corrupted=:
  2019. else
  2020. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2021. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2022. eval $ac_var=\$ac_old_val
  2023. fi
  2024. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2025. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2026. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2027. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2028. fi;;
  2029. esac
  2030. # Pass precious variables to config.status.
  2031. if test "$ac_new_set" = set; then
  2032. case $ac_new_val in
  2033. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2034. *) ac_arg=$ac_var=$ac_new_val ;;
  2035. esac
  2036. case " $ac_configure_args " in
  2037. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2038. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2039. esac
  2040. fi
  2041. done
  2042. if $ac_cache_corrupted; then
  2043. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2044. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2045. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2046. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2047. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2048. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2049. { (exit 1); exit 1; }; }
  2050. fi
  2051. ac_ext=c
  2052. ac_cpp='$CPP $CPPFLAGS'
  2053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2056. # AC_CONFIG_HEADER must be called right after AC_INIT.
  2057. ac_config_headers="$ac_config_headers config.h"
  2058. # include the version information
  2059. . $srcdir/VERSION.sh
  2060. { $as_echo "$as_me:$LINENO: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&5
  2061. $as_echo "$as_me: This is configure for $PACKAGE_TARNAME $PACKAGE_VERSION" >&6;}
  2062. cat >>confdefs.h <<_ACEOF
  2063. #define DS_PACKAGE_VERSION "$PACKAGE_VERSION"
  2064. _ACEOF
  2065. cat >>confdefs.h <<_ACEOF
  2066. #define DS_PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2067. _ACEOF
  2068. cat >>confdefs.h <<_ACEOF
  2069. #define DS_PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2070. _ACEOF
  2071. cat >>confdefs.h <<_ACEOF
  2072. #define DS_PACKAGE_STRING "$PACKAGE_STRING"
  2073. _ACEOF
  2074. am__api_version='1.11'
  2075. ac_aux_dir=
  2076. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2077. if test -f "$ac_dir/install-sh"; then
  2078. ac_aux_dir=$ac_dir
  2079. ac_install_sh="$ac_aux_dir/install-sh -c"
  2080. break
  2081. elif test -f "$ac_dir/install.sh"; then
  2082. ac_aux_dir=$ac_dir
  2083. ac_install_sh="$ac_aux_dir/install.sh -c"
  2084. break
  2085. elif test -f "$ac_dir/shtool"; then
  2086. ac_aux_dir=$ac_dir
  2087. ac_install_sh="$ac_aux_dir/shtool install -c"
  2088. break
  2089. fi
  2090. done
  2091. if test -z "$ac_aux_dir"; then
  2092. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2093. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2094. { (exit 1); exit 1; }; }
  2095. fi
  2096. # These three variables are undocumented and unsupported,
  2097. # and are intended to be withdrawn in a future Autoconf release.
  2098. # They can cause serious problems if a builder's source tree is in a directory
  2099. # whose full name contains unusual characters.
  2100. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2101. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2102. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2103. # Find a good install program. We prefer a C program (faster),
  2104. # so one script is as good as another. But avoid the broken or
  2105. # incompatible versions:
  2106. # SysV /etc/install, /usr/sbin/install
  2107. # SunOS /usr/etc/install
  2108. # IRIX /sbin/install
  2109. # AIX /bin/install
  2110. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2111. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2112. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2113. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2114. # OS/2's system install, which has a completely different semantic
  2115. # ./install, which can be erroneously created by make from ./install.sh.
  2116. # Reject install programs that cannot install multiple files.
  2117. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2118. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2119. if test -z "$INSTALL"; then
  2120. if test "${ac_cv_path_install+set}" = set; then
  2121. $as_echo_n "(cached) " >&6
  2122. else
  2123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2124. for as_dir in $PATH
  2125. do
  2126. IFS=$as_save_IFS
  2127. test -z "$as_dir" && as_dir=.
  2128. # Account for people who put trailing slashes in PATH elements.
  2129. case $as_dir/ in
  2130. ./ | .// | /cC/* | \
  2131. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2132. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2133. /usr/ucb/* ) ;;
  2134. *)
  2135. # OSF1 and SCO ODT 3.0 have their own names for install.
  2136. # Don't use installbsd from OSF since it installs stuff as root
  2137. # by default.
  2138. for ac_prog in ginstall scoinst install; do
  2139. for ac_exec_ext in '' $ac_executable_extensions; do
  2140. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2141. if test $ac_prog = install &&
  2142. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2143. # AIX install. It has an incompatible calling convention.
  2144. :
  2145. elif test $ac_prog = install &&
  2146. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2147. # program-specific install script used by HP pwplus--don't use.
  2148. :
  2149. else
  2150. rm -rf conftest.one conftest.two conftest.dir
  2151. echo one > conftest.one
  2152. echo two > conftest.two
  2153. mkdir conftest.dir
  2154. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2155. test -s conftest.one && test -s conftest.two &&
  2156. test -s conftest.dir/conftest.one &&
  2157. test -s conftest.dir/conftest.two
  2158. then
  2159. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2160. break 3
  2161. fi
  2162. fi
  2163. fi
  2164. done
  2165. done
  2166. ;;
  2167. esac
  2168. done
  2169. IFS=$as_save_IFS
  2170. rm -rf conftest.one conftest.two conftest.dir
  2171. fi
  2172. if test "${ac_cv_path_install+set}" = set; then
  2173. INSTALL=$ac_cv_path_install
  2174. else
  2175. # As a last resort, use the slow shell script. Don't cache a
  2176. # value for INSTALL within a source directory, because that will
  2177. # break other packages using the cache if that directory is
  2178. # removed, or if the value is a relative name.
  2179. INSTALL=$ac_install_sh
  2180. fi
  2181. fi
  2182. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2183. $as_echo "$INSTALL" >&6; }
  2184. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2185. # It thinks the first close brace ends the variable substitution.
  2186. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2187. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2188. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2189. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2190. $as_echo_n "checking whether build environment is sane... " >&6; }
  2191. # Just in case
  2192. sleep 1
  2193. echo timestamp > conftest.file
  2194. # Reject unsafe characters in $srcdir or the absolute working directory
  2195. # name. Accept space and tab only in the latter.
  2196. am_lf='
  2197. '
  2198. case `pwd` in
  2199. *[\\\"\#\$\&\'\`$am_lf]*)
  2200. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2201. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2202. { (exit 1); exit 1; }; };;
  2203. esac
  2204. case $srcdir in
  2205. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2206. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2207. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2208. { (exit 1); exit 1; }; };;
  2209. esac
  2210. # Do `set' in a subshell so we don't clobber the current shell's
  2211. # arguments. Must try -L first in case configure is actually a
  2212. # symlink; some systems play weird games with the mod time of symlinks
  2213. # (eg FreeBSD returns the mod time of the symlink's containing
  2214. # directory).
  2215. if (
  2216. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2217. if test "$*" = "X"; then
  2218. # -L didn't work.
  2219. set X `ls -t "$srcdir/configure" conftest.file`
  2220. fi
  2221. rm -f conftest.file
  2222. if test "$*" != "X $srcdir/configure conftest.file" \
  2223. && test "$*" != "X conftest.file $srcdir/configure"; then
  2224. # If neither matched, then we have a broken ls. This can happen
  2225. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2226. # broken ls alias from the environment. This has actually
  2227. # happened. Such a system could not be considered "sane".
  2228. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2229. alias in your environment" >&5
  2230. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2231. alias in your environment" >&2;}
  2232. { (exit 1); exit 1; }; }
  2233. fi
  2234. test "$2" = conftest.file
  2235. )
  2236. then
  2237. # Ok.
  2238. :
  2239. else
  2240. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2241. Check your system clock" >&5
  2242. $as_echo "$as_me: error: newly created file is older than distributed files!
  2243. Check your system clock" >&2;}
  2244. { (exit 1); exit 1; }; }
  2245. fi
  2246. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2247. $as_echo "yes" >&6; }
  2248. test "$program_prefix" != NONE &&
  2249. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2250. # Use a double $ so make ignores it.
  2251. test "$program_suffix" != NONE &&
  2252. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2253. # Double any \ or $.
  2254. # By default was `s,x,x', remove it if useless.
  2255. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2256. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2257. # expand $ac_aux_dir to an absolute path
  2258. am_aux_dir=`cd $ac_aux_dir && pwd`
  2259. if test x"${MISSING+set}" != xset; then
  2260. case $am_aux_dir in
  2261. *\ * | *\ *)
  2262. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2263. *)
  2264. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2265. esac
  2266. fi
  2267. # Use eval to expand $SHELL
  2268. if eval "$MISSING --run true"; then
  2269. am_missing_run="$MISSING --run "
  2270. else
  2271. am_missing_run=
  2272. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2273. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2274. fi
  2275. if test x"${install_sh}" != xset; then
  2276. case $am_aux_dir in
  2277. *\ * | *\ *)
  2278. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2279. *)
  2280. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2281. esac
  2282. fi
  2283. # Installed binaries are usually stripped using `strip' when the user
  2284. # run `make install-strip'. However `strip' might not be the right
  2285. # tool to use in cross-compilation environments, therefore Automake
  2286. # will honor the `STRIP' environment variable to overrule this program.
  2287. if test "$cross_compiling" != no; then
  2288. if test -n "$ac_tool_prefix"; then
  2289. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2290. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2291. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2292. $as_echo_n "checking for $ac_word... " >&6; }
  2293. if test "${ac_cv_prog_STRIP+set}" = set; then
  2294. $as_echo_n "(cached) " >&6
  2295. else
  2296. if test -n "$STRIP"; then
  2297. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2298. else
  2299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2300. for as_dir in $PATH
  2301. do
  2302. IFS=$as_save_IFS
  2303. test -z "$as_dir" && as_dir=.
  2304. for ac_exec_ext in '' $ac_executable_extensions; do
  2305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2306. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2307. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2308. break 2
  2309. fi
  2310. done
  2311. done
  2312. IFS=$as_save_IFS
  2313. fi
  2314. fi
  2315. STRIP=$ac_cv_prog_STRIP
  2316. if test -n "$STRIP"; then
  2317. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2318. $as_echo "$STRIP" >&6; }
  2319. else
  2320. { $as_echo "$as_me:$LINENO: result: no" >&5
  2321. $as_echo "no" >&6; }
  2322. fi
  2323. fi
  2324. if test -z "$ac_cv_prog_STRIP"; then
  2325. ac_ct_STRIP=$STRIP
  2326. # Extract the first word of "strip", so it can be a program name with args.
  2327. set dummy strip; ac_word=$2
  2328. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2329. $as_echo_n "checking for $ac_word... " >&6; }
  2330. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. if test -n "$ac_ct_STRIP"; then
  2334. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2335. else
  2336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2337. for as_dir in $PATH
  2338. do
  2339. IFS=$as_save_IFS
  2340. test -z "$as_dir" && as_dir=.
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2343. ac_cv_prog_ac_ct_STRIP="strip"
  2344. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2345. break 2
  2346. fi
  2347. done
  2348. done
  2349. IFS=$as_save_IFS
  2350. fi
  2351. fi
  2352. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2353. if test -n "$ac_ct_STRIP"; then
  2354. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2355. $as_echo "$ac_ct_STRIP" >&6; }
  2356. else
  2357. { $as_echo "$as_me:$LINENO: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360. if test "x$ac_ct_STRIP" = x; then
  2361. STRIP=":"
  2362. else
  2363. case $cross_compiling:$ac_tool_warned in
  2364. yes:)
  2365. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2367. ac_tool_warned=yes ;;
  2368. esac
  2369. STRIP=$ac_ct_STRIP
  2370. fi
  2371. else
  2372. STRIP="$ac_cv_prog_STRIP"
  2373. fi
  2374. fi
  2375. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2376. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2377. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2378. if test -z "$MKDIR_P"; then
  2379. if test "${ac_cv_path_mkdir+set}" = set; then
  2380. $as_echo_n "(cached) " >&6
  2381. else
  2382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2383. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2384. do
  2385. IFS=$as_save_IFS
  2386. test -z "$as_dir" && as_dir=.
  2387. for ac_prog in mkdir gmkdir; do
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2390. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2391. 'mkdir (GNU coreutils) '* | \
  2392. 'mkdir (coreutils) '* | \
  2393. 'mkdir (fileutils) '4.1*)
  2394. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2395. break 3;;
  2396. esac
  2397. done
  2398. done
  2399. done
  2400. IFS=$as_save_IFS
  2401. fi
  2402. if test "${ac_cv_path_mkdir+set}" = set; then
  2403. MKDIR_P="$ac_cv_path_mkdir -p"
  2404. else
  2405. # As a last resort, use the slow shell script. Don't cache a
  2406. # value for MKDIR_P within a source directory, because that will
  2407. # break other packages using the cache if that directory is
  2408. # removed, or if the value is a relative name.
  2409. test -d ./--version && rmdir ./--version
  2410. MKDIR_P="$ac_install_sh -d"
  2411. fi
  2412. fi
  2413. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2414. $as_echo "$MKDIR_P" >&6; }
  2415. mkdir_p="$MKDIR_P"
  2416. case $mkdir_p in
  2417. [\\/$]* | ?:[\\/]*) ;;
  2418. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2419. esac
  2420. for ac_prog in gawk mawk nawk awk
  2421. do
  2422. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2423. set dummy $ac_prog; ac_word=$2
  2424. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2425. $as_echo_n "checking for $ac_word... " >&6; }
  2426. if test "${ac_cv_prog_AWK+set}" = set; then
  2427. $as_echo_n "(cached) " >&6
  2428. else
  2429. if test -n "$AWK"; then
  2430. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_exec_ext in '' $ac_executable_extensions; do
  2438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2439. ac_cv_prog_AWK="$ac_prog"
  2440. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2441. break 2
  2442. fi
  2443. done
  2444. done
  2445. IFS=$as_save_IFS
  2446. fi
  2447. fi
  2448. AWK=$ac_cv_prog_AWK
  2449. if test -n "$AWK"; then
  2450. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2451. $as_echo "$AWK" >&6; }
  2452. else
  2453. { $as_echo "$as_me:$LINENO: result: no" >&5
  2454. $as_echo "no" >&6; }
  2455. fi
  2456. test -n "$AWK" && break
  2457. done
  2458. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2459. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2460. set x ${MAKE-make}
  2461. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2462. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. cat >conftest.make <<\_ACEOF
  2466. SHELL = /bin/sh
  2467. all:
  2468. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2469. _ACEOF
  2470. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2471. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2472. *@@@%%%=?*=@@@%%%*)
  2473. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2474. *)
  2475. eval ac_cv_prog_make_${ac_make}_set=no;;
  2476. esac
  2477. rm -f conftest.make
  2478. fi
  2479. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2480. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2481. $as_echo "yes" >&6; }
  2482. SET_MAKE=
  2483. else
  2484. { $as_echo "$as_me:$LINENO: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. SET_MAKE="MAKE=${MAKE-make}"
  2487. fi
  2488. rm -rf .tst 2>/dev/null
  2489. mkdir .tst 2>/dev/null
  2490. if test -d .tst; then
  2491. am__leading_dot=.
  2492. else
  2493. am__leading_dot=_
  2494. fi
  2495. rmdir .tst 2>/dev/null
  2496. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2497. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2498. # is not polluted with repeated "-I."
  2499. am__isrc=' -I$(srcdir)'
  2500. # test to see if srcdir already configured
  2501. if test -f $srcdir/config.status; then
  2502. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2503. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2504. { (exit 1); exit 1; }; }
  2505. fi
  2506. fi
  2507. # test whether we have cygpath
  2508. if test -z "$CYGPATH_W"; then
  2509. if (cygpath --version) >/dev/null 2>/dev/null; then
  2510. CYGPATH_W='cygpath -w'
  2511. else
  2512. CYGPATH_W=echo
  2513. fi
  2514. fi
  2515. # Define the identity of the package.
  2516. PACKAGE='dirsrv'
  2517. VERSION='1.0'
  2518. # Some tools Automake needs.
  2519. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2520. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2521. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2522. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2523. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2524. # We need awk for the "check" target. The system "awk" is bad on
  2525. # some platforms.
  2526. # Always define AMTAR for backward compatibility.
  2527. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2528. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2529. # define these for automake distdir
  2530. VERSION=$PACKAGE_VERSION
  2531. PACKAGE=$PACKAGE_TARNAME
  2532. cat >>confdefs.h <<_ACEOF
  2533. #define VERSION "$VERSION"
  2534. _ACEOF
  2535. cat >>confdefs.h <<_ACEOF
  2536. #define PACKAGE "$PACKAGE"
  2537. _ACEOF
  2538. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2539. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2540. # Check whether --enable-maintainer-mode was given.
  2541. if test "${enable_maintainer_mode+set}" = set; then
  2542. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2543. else
  2544. USE_MAINTAINER_MODE=no
  2545. fi
  2546. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2547. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2548. if test $USE_MAINTAINER_MODE = yes; then
  2549. MAINTAINER_MODE_TRUE=
  2550. MAINTAINER_MODE_FALSE='#'
  2551. else
  2552. MAINTAINER_MODE_TRUE='#'
  2553. MAINTAINER_MODE_FALSE=
  2554. fi
  2555. MAINT=$MAINTAINER_MODE_TRUE
  2556. # Make sure we can run config.sub.
  2557. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2558. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  2559. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  2560. { (exit 1); exit 1; }; }
  2561. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  2562. $as_echo_n "checking build system type... " >&6; }
  2563. if test "${ac_cv_build+set}" = set; then
  2564. $as_echo_n "(cached) " >&6
  2565. else
  2566. ac_build_alias=$build_alias
  2567. test "x$ac_build_alias" = x &&
  2568. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2569. test "x$ac_build_alias" = x &&
  2570. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2571. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2572. { (exit 1); exit 1; }; }
  2573. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2574. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  2575. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  2576. { (exit 1); exit 1; }; }
  2577. fi
  2578. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2579. $as_echo "$ac_cv_build" >&6; }
  2580. case $ac_cv_build in
  2581. *-*-*) ;;
  2582. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  2583. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  2584. { (exit 1); exit 1; }; };;
  2585. esac
  2586. build=$ac_cv_build
  2587. ac_save_IFS=$IFS; IFS='-'
  2588. set x $ac_cv_build
  2589. shift
  2590. build_cpu=$1
  2591. build_vendor=$2
  2592. shift; shift
  2593. # Remember, the first character of IFS is used to create $*,
  2594. # except with old shells:
  2595. build_os=$*
  2596. IFS=$ac_save_IFS
  2597. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2598. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  2599. $as_echo_n "checking host system type... " >&6; }
  2600. if test "${ac_cv_host+set}" = set; then
  2601. $as_echo_n "(cached) " >&6
  2602. else
  2603. if test "x$host_alias" = x; then
  2604. ac_cv_host=$ac_cv_build
  2605. else
  2606. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2607. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  2608. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  2609. { (exit 1); exit 1; }; }
  2610. fi
  2611. fi
  2612. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2613. $as_echo "$ac_cv_host" >&6; }
  2614. case $ac_cv_host in
  2615. *-*-*) ;;
  2616. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  2617. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  2618. { (exit 1); exit 1; }; };;
  2619. esac
  2620. host=$ac_cv_host
  2621. ac_save_IFS=$IFS; IFS='-'
  2622. set x $ac_cv_host
  2623. shift
  2624. host_cpu=$1
  2625. host_vendor=$2
  2626. shift; shift
  2627. # Remember, the first character of IFS is used to create $*,
  2628. # except with old shells:
  2629. host_os=$*
  2630. IFS=$ac_save_IFS
  2631. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2632. # Checks for programs.
  2633. ac_ext=cpp
  2634. ac_cpp='$CXXCPP $CPPFLAGS'
  2635. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2636. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2637. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2638. if test -z "$CXX"; then
  2639. if test -n "$CCC"; then
  2640. CXX=$CCC
  2641. else
  2642. if test -n "$ac_tool_prefix"; then
  2643. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2644. do
  2645. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2646. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2647. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2648. $as_echo_n "checking for $ac_word... " >&6; }
  2649. if test "${ac_cv_prog_CXX+set}" = set; then
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test -n "$CXX"; then
  2653. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2662. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2663. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. IFS=$as_save_IFS
  2669. fi
  2670. fi
  2671. CXX=$ac_cv_prog_CXX
  2672. if test -n "$CXX"; then
  2673. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2674. $as_echo "$CXX" >&6; }
  2675. else
  2676. { $as_echo "$as_me:$LINENO: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. fi
  2679. test -n "$CXX" && break
  2680. done
  2681. fi
  2682. if test -z "$CXX"; then
  2683. ac_ct_CXX=$CXX
  2684. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2685. do
  2686. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2687. set dummy $ac_prog; ac_word=$2
  2688. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2689. $as_echo_n "checking for $ac_word... " >&6; }
  2690. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2691. $as_echo_n "(cached) " >&6
  2692. else
  2693. if test -n "$ac_ct_CXX"; then
  2694. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2695. else
  2696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2697. for as_dir in $PATH
  2698. do
  2699. IFS=$as_save_IFS
  2700. test -z "$as_dir" && as_dir=.
  2701. for ac_exec_ext in '' $ac_executable_extensions; do
  2702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2703. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2704. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2705. break 2
  2706. fi
  2707. done
  2708. done
  2709. IFS=$as_save_IFS
  2710. fi
  2711. fi
  2712. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2713. if test -n "$ac_ct_CXX"; then
  2714. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2715. $as_echo "$ac_ct_CXX" >&6; }
  2716. else
  2717. { $as_echo "$as_me:$LINENO: result: no" >&5
  2718. $as_echo "no" >&6; }
  2719. fi
  2720. test -n "$ac_ct_CXX" && break
  2721. done
  2722. if test "x$ac_ct_CXX" = x; then
  2723. CXX="g++"
  2724. else
  2725. case $cross_compiling:$ac_tool_warned in
  2726. yes:)
  2727. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2728. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2729. ac_tool_warned=yes ;;
  2730. esac
  2731. CXX=$ac_ct_CXX
  2732. fi
  2733. fi
  2734. fi
  2735. fi
  2736. # Provide some information about the compiler.
  2737. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2738. set X $ac_compile
  2739. ac_compiler=$2
  2740. { (ac_try="$ac_compiler --version >&5"
  2741. case "(($ac_try" in
  2742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2743. *) ac_try_echo=$ac_try;;
  2744. esac
  2745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2746. $as_echo "$ac_try_echo") >&5
  2747. (eval "$ac_compiler --version >&5") 2>&5
  2748. ac_status=$?
  2749. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2750. (exit $ac_status); }
  2751. { (ac_try="$ac_compiler -v >&5"
  2752. case "(($ac_try" in
  2753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2754. *) ac_try_echo=$ac_try;;
  2755. esac
  2756. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2757. $as_echo "$ac_try_echo") >&5
  2758. (eval "$ac_compiler -v >&5") 2>&5
  2759. ac_status=$?
  2760. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2761. (exit $ac_status); }
  2762. { (ac_try="$ac_compiler -V >&5"
  2763. case "(($ac_try" in
  2764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2765. *) ac_try_echo=$ac_try;;
  2766. esac
  2767. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2768. $as_echo "$ac_try_echo") >&5
  2769. (eval "$ac_compiler -V >&5") 2>&5
  2770. ac_status=$?
  2771. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2772. (exit $ac_status); }
  2773. cat >conftest.$ac_ext <<_ACEOF
  2774. /* confdefs.h. */
  2775. _ACEOF
  2776. cat confdefs.h >>conftest.$ac_ext
  2777. cat >>conftest.$ac_ext <<_ACEOF
  2778. /* end confdefs.h. */
  2779. int
  2780. main ()
  2781. {
  2782. ;
  2783. return 0;
  2784. }
  2785. _ACEOF
  2786. ac_clean_files_save=$ac_clean_files
  2787. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2788. # Try to create an executable without -o first, disregard a.out.
  2789. # It will help us diagnose broken compilers, and finding out an intuition
  2790. # of exeext.
  2791. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2792. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2793. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2794. # The possible output files:
  2795. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2796. ac_rmfiles=
  2797. for ac_file in $ac_files
  2798. do
  2799. case $ac_file in
  2800. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2801. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2802. esac
  2803. done
  2804. rm -f $ac_rmfiles
  2805. if { (ac_try="$ac_link_default"
  2806. case "(($ac_try" in
  2807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2808. *) ac_try_echo=$ac_try;;
  2809. esac
  2810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2811. $as_echo "$ac_try_echo") >&5
  2812. (eval "$ac_link_default") 2>&5
  2813. ac_status=$?
  2814. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; then
  2816. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2817. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2818. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2819. # so that the user can short-circuit this test for compilers unknown to
  2820. # Autoconf.
  2821. for ac_file in $ac_files ''
  2822. do
  2823. test -f "$ac_file" || continue
  2824. case $ac_file in
  2825. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2826. ;;
  2827. [ab].out )
  2828. # We found the default executable, but exeext='' is most
  2829. # certainly right.
  2830. break;;
  2831. *.* )
  2832. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2833. then :; else
  2834. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2835. fi
  2836. # We set ac_cv_exeext here because the later test for it is not
  2837. # safe: cross compilers may not add the suffix if given an `-o'
  2838. # argument, so we may need to know it at that point already.
  2839. # Even if this section looks crufty: it has the advantage of
  2840. # actually working.
  2841. break;;
  2842. * )
  2843. break;;
  2844. esac
  2845. done
  2846. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2847. else
  2848. ac_file=''
  2849. fi
  2850. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2851. $as_echo "$ac_file" >&6; }
  2852. if test -z "$ac_file"; then
  2853. $as_echo "$as_me: failed program was:" >&5
  2854. sed 's/^/| /' conftest.$ac_ext >&5
  2855. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2856. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2857. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2858. See \`config.log' for more details." >&5
  2859. $as_echo "$as_me: error: C++ compiler cannot create executables
  2860. See \`config.log' for more details." >&2;}
  2861. { (exit 77); exit 77; }; }; }
  2862. fi
  2863. ac_exeext=$ac_cv_exeext
  2864. # Check that the compiler produces executables we can run. If not, either
  2865. # the compiler is broken, or we cross compile.
  2866. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2867. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2868. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2869. # If not cross compiling, check that we can run a simple program.
  2870. if test "$cross_compiling" != yes; then
  2871. if { ac_try='./$ac_file'
  2872. { (case "(($ac_try" in
  2873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2874. *) ac_try_echo=$ac_try;;
  2875. esac
  2876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2877. $as_echo "$ac_try_echo") >&5
  2878. (eval "$ac_try") 2>&5
  2879. ac_status=$?
  2880. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2881. (exit $ac_status); }; }; then
  2882. cross_compiling=no
  2883. else
  2884. if test "$cross_compiling" = maybe; then
  2885. cross_compiling=yes
  2886. else
  2887. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2888. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2889. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2890. If you meant to cross compile, use \`--host'.
  2891. See \`config.log' for more details." >&5
  2892. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2893. If you meant to cross compile, use \`--host'.
  2894. See \`config.log' for more details." >&2;}
  2895. { (exit 1); exit 1; }; }; }
  2896. fi
  2897. fi
  2898. fi
  2899. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2900. $as_echo "yes" >&6; }
  2901. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2902. ac_clean_files=$ac_clean_files_save
  2903. # Check that the compiler produces executables we can run. If not, either
  2904. # the compiler is broken, or we cross compile.
  2905. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2906. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2907. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2908. $as_echo "$cross_compiling" >&6; }
  2909. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2910. $as_echo_n "checking for suffix of executables... " >&6; }
  2911. if { (ac_try="$ac_link"
  2912. case "(($ac_try" in
  2913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2914. *) ac_try_echo=$ac_try;;
  2915. esac
  2916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2917. $as_echo "$ac_try_echo") >&5
  2918. (eval "$ac_link") 2>&5
  2919. ac_status=$?
  2920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); }; then
  2922. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2923. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2924. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2925. # `rm'.
  2926. for ac_file in conftest.exe conftest conftest.*; do
  2927. test -f "$ac_file" || continue
  2928. case $ac_file in
  2929. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2930. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2931. break;;
  2932. * ) break;;
  2933. esac
  2934. done
  2935. else
  2936. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2937. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2938. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2939. See \`config.log' for more details." >&5
  2940. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2941. See \`config.log' for more details." >&2;}
  2942. { (exit 1); exit 1; }; }; }
  2943. fi
  2944. rm -f conftest$ac_cv_exeext
  2945. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2946. $as_echo "$ac_cv_exeext" >&6; }
  2947. rm -f conftest.$ac_ext
  2948. EXEEXT=$ac_cv_exeext
  2949. ac_exeext=$EXEEXT
  2950. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2951. $as_echo_n "checking for suffix of object files... " >&6; }
  2952. if test "${ac_cv_objext+set}" = set; then
  2953. $as_echo_n "(cached) " >&6
  2954. else
  2955. cat >conftest.$ac_ext <<_ACEOF
  2956. /* confdefs.h. */
  2957. _ACEOF
  2958. cat confdefs.h >>conftest.$ac_ext
  2959. cat >>conftest.$ac_ext <<_ACEOF
  2960. /* end confdefs.h. */
  2961. int
  2962. main ()
  2963. {
  2964. ;
  2965. return 0;
  2966. }
  2967. _ACEOF
  2968. rm -f conftest.o conftest.obj
  2969. if { (ac_try="$ac_compile"
  2970. case "(($ac_try" in
  2971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2972. *) ac_try_echo=$ac_try;;
  2973. esac
  2974. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2975. $as_echo "$ac_try_echo") >&5
  2976. (eval "$ac_compile") 2>&5
  2977. ac_status=$?
  2978. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2979. (exit $ac_status); }; then
  2980. for ac_file in conftest.o conftest.obj conftest.*; do
  2981. test -f "$ac_file" || continue;
  2982. case $ac_file in
  2983. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2984. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2985. break;;
  2986. esac
  2987. done
  2988. else
  2989. $as_echo "$as_me: failed program was:" >&5
  2990. sed 's/^/| /' conftest.$ac_ext >&5
  2991. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2992. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2993. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2994. See \`config.log' for more details." >&5
  2995. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2996. See \`config.log' for more details." >&2;}
  2997. { (exit 1); exit 1; }; }; }
  2998. fi
  2999. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3000. fi
  3001. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3002. $as_echo "$ac_cv_objext" >&6; }
  3003. OBJEXT=$ac_cv_objext
  3004. ac_objext=$OBJEXT
  3005. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3006. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3007. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3008. $as_echo_n "(cached) " >&6
  3009. else
  3010. cat >conftest.$ac_ext <<_ACEOF
  3011. /* confdefs.h. */
  3012. _ACEOF
  3013. cat confdefs.h >>conftest.$ac_ext
  3014. cat >>conftest.$ac_ext <<_ACEOF
  3015. /* end confdefs.h. */
  3016. int
  3017. main ()
  3018. {
  3019. #ifndef __GNUC__
  3020. choke me
  3021. #endif
  3022. ;
  3023. return 0;
  3024. }
  3025. _ACEOF
  3026. rm -f conftest.$ac_objext
  3027. if { (ac_try="$ac_compile"
  3028. case "(($ac_try" in
  3029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3030. *) ac_try_echo=$ac_try;;
  3031. esac
  3032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3033. $as_echo "$ac_try_echo") >&5
  3034. (eval "$ac_compile") 2>conftest.er1
  3035. ac_status=$?
  3036. grep -v '^ *+' conftest.er1 >conftest.err
  3037. rm -f conftest.er1
  3038. cat conftest.err >&5
  3039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3040. (exit $ac_status); } && {
  3041. test -z "$ac_cxx_werror_flag" ||
  3042. test ! -s conftest.err
  3043. } && test -s conftest.$ac_objext; then
  3044. ac_compiler_gnu=yes
  3045. else
  3046. $as_echo "$as_me: failed program was:" >&5
  3047. sed 's/^/| /' conftest.$ac_ext >&5
  3048. ac_compiler_gnu=no
  3049. fi
  3050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3051. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3052. fi
  3053. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3054. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3055. if test $ac_compiler_gnu = yes; then
  3056. GXX=yes
  3057. else
  3058. GXX=
  3059. fi
  3060. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3061. ac_save_CXXFLAGS=$CXXFLAGS
  3062. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3063. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3064. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3065. $as_echo_n "(cached) " >&6
  3066. else
  3067. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3068. ac_cxx_werror_flag=yes
  3069. ac_cv_prog_cxx_g=no
  3070. CXXFLAGS="-g"
  3071. cat >conftest.$ac_ext <<_ACEOF
  3072. /* confdefs.h. */
  3073. _ACEOF
  3074. cat confdefs.h >>conftest.$ac_ext
  3075. cat >>conftest.$ac_ext <<_ACEOF
  3076. /* end confdefs.h. */
  3077. int
  3078. main ()
  3079. {
  3080. ;
  3081. return 0;
  3082. }
  3083. _ACEOF
  3084. rm -f conftest.$ac_objext
  3085. if { (ac_try="$ac_compile"
  3086. case "(($ac_try" in
  3087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3088. *) ac_try_echo=$ac_try;;
  3089. esac
  3090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3091. $as_echo "$ac_try_echo") >&5
  3092. (eval "$ac_compile") 2>conftest.er1
  3093. ac_status=$?
  3094. grep -v '^ *+' conftest.er1 >conftest.err
  3095. rm -f conftest.er1
  3096. cat conftest.err >&5
  3097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3098. (exit $ac_status); } && {
  3099. test -z "$ac_cxx_werror_flag" ||
  3100. test ! -s conftest.err
  3101. } && test -s conftest.$ac_objext; then
  3102. ac_cv_prog_cxx_g=yes
  3103. else
  3104. $as_echo "$as_me: failed program was:" >&5
  3105. sed 's/^/| /' conftest.$ac_ext >&5
  3106. CXXFLAGS=""
  3107. cat >conftest.$ac_ext <<_ACEOF
  3108. /* confdefs.h. */
  3109. _ACEOF
  3110. cat confdefs.h >>conftest.$ac_ext
  3111. cat >>conftest.$ac_ext <<_ACEOF
  3112. /* end confdefs.h. */
  3113. int
  3114. main ()
  3115. {
  3116. ;
  3117. return 0;
  3118. }
  3119. _ACEOF
  3120. rm -f conftest.$ac_objext
  3121. if { (ac_try="$ac_compile"
  3122. case "(($ac_try" in
  3123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3124. *) ac_try_echo=$ac_try;;
  3125. esac
  3126. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3127. $as_echo "$ac_try_echo") >&5
  3128. (eval "$ac_compile") 2>conftest.er1
  3129. ac_status=$?
  3130. grep -v '^ *+' conftest.er1 >conftest.err
  3131. rm -f conftest.er1
  3132. cat conftest.err >&5
  3133. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3134. (exit $ac_status); } && {
  3135. test -z "$ac_cxx_werror_flag" ||
  3136. test ! -s conftest.err
  3137. } && test -s conftest.$ac_objext; then
  3138. :
  3139. else
  3140. $as_echo "$as_me: failed program was:" >&5
  3141. sed 's/^/| /' conftest.$ac_ext >&5
  3142. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3143. CXXFLAGS="-g"
  3144. cat >conftest.$ac_ext <<_ACEOF
  3145. /* confdefs.h. */
  3146. _ACEOF
  3147. cat confdefs.h >>conftest.$ac_ext
  3148. cat >>conftest.$ac_ext <<_ACEOF
  3149. /* end confdefs.h. */
  3150. int
  3151. main ()
  3152. {
  3153. ;
  3154. return 0;
  3155. }
  3156. _ACEOF
  3157. rm -f conftest.$ac_objext
  3158. if { (ac_try="$ac_compile"
  3159. case "(($ac_try" in
  3160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3161. *) ac_try_echo=$ac_try;;
  3162. esac
  3163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3164. $as_echo "$ac_try_echo") >&5
  3165. (eval "$ac_compile") 2>conftest.er1
  3166. ac_status=$?
  3167. grep -v '^ *+' conftest.er1 >conftest.err
  3168. rm -f conftest.er1
  3169. cat conftest.err >&5
  3170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3171. (exit $ac_status); } && {
  3172. test -z "$ac_cxx_werror_flag" ||
  3173. test ! -s conftest.err
  3174. } && test -s conftest.$ac_objext; then
  3175. ac_cv_prog_cxx_g=yes
  3176. else
  3177. $as_echo "$as_me: failed program was:" >&5
  3178. sed 's/^/| /' conftest.$ac_ext >&5
  3179. fi
  3180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3183. fi
  3184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3185. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3186. fi
  3187. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3188. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3189. if test "$ac_test_CXXFLAGS" = set; then
  3190. CXXFLAGS=$ac_save_CXXFLAGS
  3191. elif test $ac_cv_prog_cxx_g = yes; then
  3192. if test "$GXX" = yes; then
  3193. CXXFLAGS="-g -O2"
  3194. else
  3195. CXXFLAGS="-g"
  3196. fi
  3197. else
  3198. if test "$GXX" = yes; then
  3199. CXXFLAGS="-O2"
  3200. else
  3201. CXXFLAGS=
  3202. fi
  3203. fi
  3204. ac_ext=c
  3205. ac_cpp='$CPP $CPPFLAGS'
  3206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3209. DEPDIR="${am__leading_dot}deps"
  3210. ac_config_commands="$ac_config_commands depfiles"
  3211. am_make=${MAKE-make}
  3212. cat > confinc << 'END'
  3213. am__doit:
  3214. @echo this is the am__doit target
  3215. .PHONY: am__doit
  3216. END
  3217. # If we don't find an include directive, just comment out the code.
  3218. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3219. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3220. am__include="#"
  3221. am__quote=
  3222. _am_result=none
  3223. # First try GNU make style include.
  3224. echo "include confinc" > confmf
  3225. # Ignore all kinds of additional output from `make'.
  3226. case `$am_make -s -f confmf 2> /dev/null` in #(
  3227. *the\ am__doit\ target*)
  3228. am__include=include
  3229. am__quote=
  3230. _am_result=GNU
  3231. ;;
  3232. esac
  3233. # Now try BSD make style include.
  3234. if test "$am__include" = "#"; then
  3235. echo '.include "confinc"' > confmf
  3236. case `$am_make -s -f confmf 2> /dev/null` in #(
  3237. *the\ am__doit\ target*)
  3238. am__include=.include
  3239. am__quote="\""
  3240. _am_result=BSD
  3241. ;;
  3242. esac
  3243. fi
  3244. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3245. $as_echo "$_am_result" >&6; }
  3246. rm -f confinc confmf
  3247. # Check whether --enable-dependency-tracking was given.
  3248. if test "${enable_dependency_tracking+set}" = set; then
  3249. enableval=$enable_dependency_tracking;
  3250. fi
  3251. if test "x$enable_dependency_tracking" != xno; then
  3252. am_depcomp="$ac_aux_dir/depcomp"
  3253. AMDEPBACKSLASH='\'
  3254. fi
  3255. if test "x$enable_dependency_tracking" != xno; then
  3256. AMDEP_TRUE=
  3257. AMDEP_FALSE='#'
  3258. else
  3259. AMDEP_TRUE='#'
  3260. AMDEP_FALSE=
  3261. fi
  3262. depcc="$CXX" am_compiler_list=
  3263. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3264. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3265. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3266. $as_echo_n "(cached) " >&6
  3267. else
  3268. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3269. # We make a subdir and do the tests there. Otherwise we can end up
  3270. # making bogus files that we don't know about and never remove. For
  3271. # instance it was reported that on HP-UX the gcc test will end up
  3272. # making a dummy file named `D' -- because `-MD' means `put the output
  3273. # in D'.
  3274. mkdir conftest.dir
  3275. # Copy depcomp to subdir because otherwise we won't find it if we're
  3276. # using a relative directory.
  3277. cp "$am_depcomp" conftest.dir
  3278. cd conftest.dir
  3279. # We will build objects and dependencies in a subdirectory because
  3280. # it helps to detect inapplicable dependency modes. For instance
  3281. # both Tru64's cc and ICC support -MD to output dependencies as a
  3282. # side effect of compilation, but ICC will put the dependencies in
  3283. # the current directory while Tru64 will put them in the object
  3284. # directory.
  3285. mkdir sub
  3286. am_cv_CXX_dependencies_compiler_type=none
  3287. if test "$am_compiler_list" = ""; then
  3288. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3289. fi
  3290. am__universal=false
  3291. case " $depcc " in #(
  3292. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3293. esac
  3294. for depmode in $am_compiler_list; do
  3295. # Setup a source with many dependencies, because some compilers
  3296. # like to wrap large dependency lists on column 80 (with \), and
  3297. # we should not choose a depcomp mode which is confused by this.
  3298. #
  3299. # We need to recreate these files for each test, as the compiler may
  3300. # overwrite some of them when testing with obscure command lines.
  3301. # This happens at least with the AIX C compiler.
  3302. : > sub/conftest.c
  3303. for i in 1 2 3 4 5 6; do
  3304. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3305. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3306. # Solaris 8's {/usr,}/bin/sh.
  3307. touch sub/conftst$i.h
  3308. done
  3309. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3310. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3311. # mode. It turns out that the SunPro C++ compiler does not properly
  3312. # handle `-M -o', and we need to detect this. Also, some Intel
  3313. # versions had trouble with output in subdirs
  3314. am__obj=sub/conftest.${OBJEXT-o}
  3315. am__minus_obj="-o $am__obj"
  3316. case $depmode in
  3317. gcc)
  3318. # This depmode causes a compiler race in universal mode.
  3319. test "$am__universal" = false || continue
  3320. ;;
  3321. nosideeffect)
  3322. # after this tag, mechanisms are not by side-effect, so they'll
  3323. # only be used when explicitly requested
  3324. if test "x$enable_dependency_tracking" = xyes; then
  3325. continue
  3326. else
  3327. break
  3328. fi
  3329. ;;
  3330. msvisualcpp | msvcmsys)
  3331. # This compiler won't grok `-c -o', but also, the minuso test has
  3332. # not run yet. These depmodes are late enough in the game, and
  3333. # so weak that their functioning should not be impacted.
  3334. am__obj=conftest.${OBJEXT-o}
  3335. am__minus_obj=
  3336. ;;
  3337. none) break ;;
  3338. esac
  3339. if depmode=$depmode \
  3340. source=sub/conftest.c object=$am__obj \
  3341. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3342. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3343. >/dev/null 2>conftest.err &&
  3344. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3345. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3346. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3347. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3348. # icc doesn't choke on unknown options, it will just issue warnings
  3349. # or remarks (even with -Werror). So we grep stderr for any message
  3350. # that says an option was ignored or not supported.
  3351. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3352. # icc: Command line warning: ignoring option '-M'; no argument required
  3353. # The diagnosis changed in icc 8.0:
  3354. # icc: Command line remark: option '-MP' not supported
  3355. if (grep 'ignoring option' conftest.err ||
  3356. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3357. am_cv_CXX_dependencies_compiler_type=$depmode
  3358. break
  3359. fi
  3360. fi
  3361. done
  3362. cd ..
  3363. rm -rf conftest.dir
  3364. else
  3365. am_cv_CXX_dependencies_compiler_type=none
  3366. fi
  3367. fi
  3368. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3369. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3370. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3371. if
  3372. test "x$enable_dependency_tracking" != xno \
  3373. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3374. am__fastdepCXX_TRUE=
  3375. am__fastdepCXX_FALSE='#'
  3376. else
  3377. am__fastdepCXX_TRUE='#'
  3378. am__fastdepCXX_FALSE=
  3379. fi
  3380. ac_ext=c
  3381. ac_cpp='$CPP $CPPFLAGS'
  3382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3385. if test -n "$ac_tool_prefix"; then
  3386. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3387. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3388. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3389. $as_echo_n "checking for $ac_word... " >&6; }
  3390. if test "${ac_cv_prog_CC+set}" = set; then
  3391. $as_echo_n "(cached) " >&6
  3392. else
  3393. if test -n "$CC"; then
  3394. ac_cv_prog_CC="$CC" # Let the user override the test.
  3395. else
  3396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3397. for as_dir in $PATH
  3398. do
  3399. IFS=$as_save_IFS
  3400. test -z "$as_dir" && as_dir=.
  3401. for ac_exec_ext in '' $ac_executable_extensions; do
  3402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3403. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3404. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3405. break 2
  3406. fi
  3407. done
  3408. done
  3409. IFS=$as_save_IFS
  3410. fi
  3411. fi
  3412. CC=$ac_cv_prog_CC
  3413. if test -n "$CC"; then
  3414. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3415. $as_echo "$CC" >&6; }
  3416. else
  3417. { $as_echo "$as_me:$LINENO: result: no" >&5
  3418. $as_echo "no" >&6; }
  3419. fi
  3420. fi
  3421. if test -z "$ac_cv_prog_CC"; then
  3422. ac_ct_CC=$CC
  3423. # Extract the first word of "gcc", so it can be a program name with args.
  3424. set dummy gcc; ac_word=$2
  3425. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3426. $as_echo_n "checking for $ac_word... " >&6; }
  3427. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3428. $as_echo_n "(cached) " >&6
  3429. else
  3430. if test -n "$ac_ct_CC"; then
  3431. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3432. else
  3433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3434. for as_dir in $PATH
  3435. do
  3436. IFS=$as_save_IFS
  3437. test -z "$as_dir" && as_dir=.
  3438. for ac_exec_ext in '' $ac_executable_extensions; do
  3439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3440. ac_cv_prog_ac_ct_CC="gcc"
  3441. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3442. break 2
  3443. fi
  3444. done
  3445. done
  3446. IFS=$as_save_IFS
  3447. fi
  3448. fi
  3449. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3450. if test -n "$ac_ct_CC"; then
  3451. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3452. $as_echo "$ac_ct_CC" >&6; }
  3453. else
  3454. { $as_echo "$as_me:$LINENO: result: no" >&5
  3455. $as_echo "no" >&6; }
  3456. fi
  3457. if test "x$ac_ct_CC" = x; then
  3458. CC=""
  3459. else
  3460. case $cross_compiling:$ac_tool_warned in
  3461. yes:)
  3462. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3464. ac_tool_warned=yes ;;
  3465. esac
  3466. CC=$ac_ct_CC
  3467. fi
  3468. else
  3469. CC="$ac_cv_prog_CC"
  3470. fi
  3471. if test -z "$CC"; then
  3472. if test -n "$ac_tool_prefix"; then
  3473. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3474. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3475. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3476. $as_echo_n "checking for $ac_word... " >&6; }
  3477. if test "${ac_cv_prog_CC+set}" = set; then
  3478. $as_echo_n "(cached) " >&6
  3479. else
  3480. if test -n "$CC"; then
  3481. ac_cv_prog_CC="$CC" # Let the user override the test.
  3482. else
  3483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3484. for as_dir in $PATH
  3485. do
  3486. IFS=$as_save_IFS
  3487. test -z "$as_dir" && as_dir=.
  3488. for ac_exec_ext in '' $ac_executable_extensions; do
  3489. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3490. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3491. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3492. break 2
  3493. fi
  3494. done
  3495. done
  3496. IFS=$as_save_IFS
  3497. fi
  3498. fi
  3499. CC=$ac_cv_prog_CC
  3500. if test -n "$CC"; then
  3501. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3502. $as_echo "$CC" >&6; }
  3503. else
  3504. { $as_echo "$as_me:$LINENO: result: no" >&5
  3505. $as_echo "no" >&6; }
  3506. fi
  3507. fi
  3508. fi
  3509. if test -z "$CC"; then
  3510. # Extract the first word of "cc", so it can be a program name with args.
  3511. set dummy cc; ac_word=$2
  3512. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3513. $as_echo_n "checking for $ac_word... " >&6; }
  3514. if test "${ac_cv_prog_CC+set}" = set; then
  3515. $as_echo_n "(cached) " >&6
  3516. else
  3517. if test -n "$CC"; then
  3518. ac_cv_prog_CC="$CC" # Let the user override the test.
  3519. else
  3520. ac_prog_rejected=no
  3521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3522. for as_dir in $PATH
  3523. do
  3524. IFS=$as_save_IFS
  3525. test -z "$as_dir" && as_dir=.
  3526. for ac_exec_ext in '' $ac_executable_extensions; do
  3527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3528. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3529. ac_prog_rejected=yes
  3530. continue
  3531. fi
  3532. ac_cv_prog_CC="cc"
  3533. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3534. break 2
  3535. fi
  3536. done
  3537. done
  3538. IFS=$as_save_IFS
  3539. if test $ac_prog_rejected = yes; then
  3540. # We found a bogon in the path, so make sure we never use it.
  3541. set dummy $ac_cv_prog_CC
  3542. shift
  3543. if test $# != 0; then
  3544. # We chose a different compiler from the bogus one.
  3545. # However, it has the same basename, so the bogon will be chosen
  3546. # first if we set CC to just the basename; use the full file name.
  3547. shift
  3548. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3549. fi
  3550. fi
  3551. fi
  3552. fi
  3553. CC=$ac_cv_prog_CC
  3554. if test -n "$CC"; then
  3555. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3556. $as_echo "$CC" >&6; }
  3557. else
  3558. { $as_echo "$as_me:$LINENO: result: no" >&5
  3559. $as_echo "no" >&6; }
  3560. fi
  3561. fi
  3562. if test -z "$CC"; then
  3563. if test -n "$ac_tool_prefix"; then
  3564. for ac_prog in cl.exe
  3565. do
  3566. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3567. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3568. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3569. $as_echo_n "checking for $ac_word... " >&6; }
  3570. if test "${ac_cv_prog_CC+set}" = set; then
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. if test -n "$CC"; then
  3574. ac_cv_prog_CC="$CC" # Let the user override the test.
  3575. else
  3576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3577. for as_dir in $PATH
  3578. do
  3579. IFS=$as_save_IFS
  3580. test -z "$as_dir" && as_dir=.
  3581. for ac_exec_ext in '' $ac_executable_extensions; do
  3582. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3583. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3584. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3585. break 2
  3586. fi
  3587. done
  3588. done
  3589. IFS=$as_save_IFS
  3590. fi
  3591. fi
  3592. CC=$ac_cv_prog_CC
  3593. if test -n "$CC"; then
  3594. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3595. $as_echo "$CC" >&6; }
  3596. else
  3597. { $as_echo "$as_me:$LINENO: result: no" >&5
  3598. $as_echo "no" >&6; }
  3599. fi
  3600. test -n "$CC" && break
  3601. done
  3602. fi
  3603. if test -z "$CC"; then
  3604. ac_ct_CC=$CC
  3605. for ac_prog in cl.exe
  3606. do
  3607. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3608. set dummy $ac_prog; ac_word=$2
  3609. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3610. $as_echo_n "checking for $ac_word... " >&6; }
  3611. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. if test -n "$ac_ct_CC"; then
  3615. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3616. else
  3617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3618. for as_dir in $PATH
  3619. do
  3620. IFS=$as_save_IFS
  3621. test -z "$as_dir" && as_dir=.
  3622. for ac_exec_ext in '' $ac_executable_extensions; do
  3623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3624. ac_cv_prog_ac_ct_CC="$ac_prog"
  3625. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3626. break 2
  3627. fi
  3628. done
  3629. done
  3630. IFS=$as_save_IFS
  3631. fi
  3632. fi
  3633. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3634. if test -n "$ac_ct_CC"; then
  3635. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3636. $as_echo "$ac_ct_CC" >&6; }
  3637. else
  3638. { $as_echo "$as_me:$LINENO: result: no" >&5
  3639. $as_echo "no" >&6; }
  3640. fi
  3641. test -n "$ac_ct_CC" && break
  3642. done
  3643. if test "x$ac_ct_CC" = x; then
  3644. CC=""
  3645. else
  3646. case $cross_compiling:$ac_tool_warned in
  3647. yes:)
  3648. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3649. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3650. ac_tool_warned=yes ;;
  3651. esac
  3652. CC=$ac_ct_CC
  3653. fi
  3654. fi
  3655. fi
  3656. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3657. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3658. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3659. See \`config.log' for more details." >&5
  3660. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3661. See \`config.log' for more details." >&2;}
  3662. { (exit 1); exit 1; }; }; }
  3663. # Provide some information about the compiler.
  3664. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3665. set X $ac_compile
  3666. ac_compiler=$2
  3667. { (ac_try="$ac_compiler --version >&5"
  3668. case "(($ac_try" in
  3669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3670. *) ac_try_echo=$ac_try;;
  3671. esac
  3672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3673. $as_echo "$ac_try_echo") >&5
  3674. (eval "$ac_compiler --version >&5") 2>&5
  3675. ac_status=$?
  3676. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3677. (exit $ac_status); }
  3678. { (ac_try="$ac_compiler -v >&5"
  3679. case "(($ac_try" in
  3680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3681. *) ac_try_echo=$ac_try;;
  3682. esac
  3683. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3684. $as_echo "$ac_try_echo") >&5
  3685. (eval "$ac_compiler -v >&5") 2>&5
  3686. ac_status=$?
  3687. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3688. (exit $ac_status); }
  3689. { (ac_try="$ac_compiler -V >&5"
  3690. case "(($ac_try" in
  3691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3692. *) ac_try_echo=$ac_try;;
  3693. esac
  3694. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3695. $as_echo "$ac_try_echo") >&5
  3696. (eval "$ac_compiler -V >&5") 2>&5
  3697. ac_status=$?
  3698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3699. (exit $ac_status); }
  3700. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3701. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3702. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3703. $as_echo_n "(cached) " >&6
  3704. else
  3705. cat >conftest.$ac_ext <<_ACEOF
  3706. /* confdefs.h. */
  3707. _ACEOF
  3708. cat confdefs.h >>conftest.$ac_ext
  3709. cat >>conftest.$ac_ext <<_ACEOF
  3710. /* end confdefs.h. */
  3711. int
  3712. main ()
  3713. {
  3714. #ifndef __GNUC__
  3715. choke me
  3716. #endif
  3717. ;
  3718. return 0;
  3719. }
  3720. _ACEOF
  3721. rm -f conftest.$ac_objext
  3722. if { (ac_try="$ac_compile"
  3723. case "(($ac_try" in
  3724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3725. *) ac_try_echo=$ac_try;;
  3726. esac
  3727. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3728. $as_echo "$ac_try_echo") >&5
  3729. (eval "$ac_compile") 2>conftest.er1
  3730. ac_status=$?
  3731. grep -v '^ *+' conftest.er1 >conftest.err
  3732. rm -f conftest.er1
  3733. cat conftest.err >&5
  3734. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3735. (exit $ac_status); } && {
  3736. test -z "$ac_c_werror_flag" ||
  3737. test ! -s conftest.err
  3738. } && test -s conftest.$ac_objext; then
  3739. ac_compiler_gnu=yes
  3740. else
  3741. $as_echo "$as_me: failed program was:" >&5
  3742. sed 's/^/| /' conftest.$ac_ext >&5
  3743. ac_compiler_gnu=no
  3744. fi
  3745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3746. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3747. fi
  3748. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3749. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3750. if test $ac_compiler_gnu = yes; then
  3751. GCC=yes
  3752. else
  3753. GCC=
  3754. fi
  3755. ac_test_CFLAGS=${CFLAGS+set}
  3756. ac_save_CFLAGS=$CFLAGS
  3757. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3758. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3759. if test "${ac_cv_prog_cc_g+set}" = set; then
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. ac_save_c_werror_flag=$ac_c_werror_flag
  3763. ac_c_werror_flag=yes
  3764. ac_cv_prog_cc_g=no
  3765. CFLAGS="-g"
  3766. cat >conftest.$ac_ext <<_ACEOF
  3767. /* confdefs.h. */
  3768. _ACEOF
  3769. cat confdefs.h >>conftest.$ac_ext
  3770. cat >>conftest.$ac_ext <<_ACEOF
  3771. /* end confdefs.h. */
  3772. int
  3773. main ()
  3774. {
  3775. ;
  3776. return 0;
  3777. }
  3778. _ACEOF
  3779. rm -f conftest.$ac_objext
  3780. if { (ac_try="$ac_compile"
  3781. case "(($ac_try" in
  3782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3783. *) ac_try_echo=$ac_try;;
  3784. esac
  3785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3786. $as_echo "$ac_try_echo") >&5
  3787. (eval "$ac_compile") 2>conftest.er1
  3788. ac_status=$?
  3789. grep -v '^ *+' conftest.er1 >conftest.err
  3790. rm -f conftest.er1
  3791. cat conftest.err >&5
  3792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3793. (exit $ac_status); } && {
  3794. test -z "$ac_c_werror_flag" ||
  3795. test ! -s conftest.err
  3796. } && test -s conftest.$ac_objext; then
  3797. ac_cv_prog_cc_g=yes
  3798. else
  3799. $as_echo "$as_me: failed program was:" >&5
  3800. sed 's/^/| /' conftest.$ac_ext >&5
  3801. CFLAGS=""
  3802. cat >conftest.$ac_ext <<_ACEOF
  3803. /* confdefs.h. */
  3804. _ACEOF
  3805. cat confdefs.h >>conftest.$ac_ext
  3806. cat >>conftest.$ac_ext <<_ACEOF
  3807. /* end confdefs.h. */
  3808. int
  3809. main ()
  3810. {
  3811. ;
  3812. return 0;
  3813. }
  3814. _ACEOF
  3815. rm -f conftest.$ac_objext
  3816. if { (ac_try="$ac_compile"
  3817. case "(($ac_try" in
  3818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3819. *) ac_try_echo=$ac_try;;
  3820. esac
  3821. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3822. $as_echo "$ac_try_echo") >&5
  3823. (eval "$ac_compile") 2>conftest.er1
  3824. ac_status=$?
  3825. grep -v '^ *+' conftest.er1 >conftest.err
  3826. rm -f conftest.er1
  3827. cat conftest.err >&5
  3828. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3829. (exit $ac_status); } && {
  3830. test -z "$ac_c_werror_flag" ||
  3831. test ! -s conftest.err
  3832. } && test -s conftest.$ac_objext; then
  3833. :
  3834. else
  3835. $as_echo "$as_me: failed program was:" >&5
  3836. sed 's/^/| /' conftest.$ac_ext >&5
  3837. ac_c_werror_flag=$ac_save_c_werror_flag
  3838. CFLAGS="-g"
  3839. cat >conftest.$ac_ext <<_ACEOF
  3840. /* confdefs.h. */
  3841. _ACEOF
  3842. cat confdefs.h >>conftest.$ac_ext
  3843. cat >>conftest.$ac_ext <<_ACEOF
  3844. /* end confdefs.h. */
  3845. int
  3846. main ()
  3847. {
  3848. ;
  3849. return 0;
  3850. }
  3851. _ACEOF
  3852. rm -f conftest.$ac_objext
  3853. if { (ac_try="$ac_compile"
  3854. case "(($ac_try" in
  3855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3856. *) ac_try_echo=$ac_try;;
  3857. esac
  3858. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3859. $as_echo "$ac_try_echo") >&5
  3860. (eval "$ac_compile") 2>conftest.er1
  3861. ac_status=$?
  3862. grep -v '^ *+' conftest.er1 >conftest.err
  3863. rm -f conftest.er1
  3864. cat conftest.err >&5
  3865. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3866. (exit $ac_status); } && {
  3867. test -z "$ac_c_werror_flag" ||
  3868. test ! -s conftest.err
  3869. } && test -s conftest.$ac_objext; then
  3870. ac_cv_prog_cc_g=yes
  3871. else
  3872. $as_echo "$as_me: failed program was:" >&5
  3873. sed 's/^/| /' conftest.$ac_ext >&5
  3874. fi
  3875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3876. fi
  3877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3878. fi
  3879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3880. ac_c_werror_flag=$ac_save_c_werror_flag
  3881. fi
  3882. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3883. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3884. if test "$ac_test_CFLAGS" = set; then
  3885. CFLAGS=$ac_save_CFLAGS
  3886. elif test $ac_cv_prog_cc_g = yes; then
  3887. if test "$GCC" = yes; then
  3888. CFLAGS="-g -O2"
  3889. else
  3890. CFLAGS="-g"
  3891. fi
  3892. else
  3893. if test "$GCC" = yes; then
  3894. CFLAGS="-O2"
  3895. else
  3896. CFLAGS=
  3897. fi
  3898. fi
  3899. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3900. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3901. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. ac_cv_prog_cc_c89=no
  3905. ac_save_CC=$CC
  3906. cat >conftest.$ac_ext <<_ACEOF
  3907. /* confdefs.h. */
  3908. _ACEOF
  3909. cat confdefs.h >>conftest.$ac_ext
  3910. cat >>conftest.$ac_ext <<_ACEOF
  3911. /* end confdefs.h. */
  3912. #include <stdarg.h>
  3913. #include <stdio.h>
  3914. #include <sys/types.h>
  3915. #include <sys/stat.h>
  3916. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3917. struct buf { int x; };
  3918. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3919. static char *e (p, i)
  3920. char **p;
  3921. int i;
  3922. {
  3923. return p[i];
  3924. }
  3925. static char *f (char * (*g) (char **, int), char **p, ...)
  3926. {
  3927. char *s;
  3928. va_list v;
  3929. va_start (v,p);
  3930. s = g (p, va_arg (v,int));
  3931. va_end (v);
  3932. return s;
  3933. }
  3934. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3935. function prototypes and stuff, but not '\xHH' hex character constants.
  3936. These don't provoke an error unfortunately, instead are silently treated
  3937. as 'x'. The following induces an error, until -std is added to get
  3938. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3939. array size at least. It's necessary to write '\x00'==0 to get something
  3940. that's true only with -std. */
  3941. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3942. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3943. inside strings and character constants. */
  3944. #define FOO(x) 'x'
  3945. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3946. int test (int i, double x);
  3947. struct s1 {int (*f) (int a);};
  3948. struct s2 {int (*f) (double a);};
  3949. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3950. int argc;
  3951. char **argv;
  3952. int
  3953. main ()
  3954. {
  3955. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3956. ;
  3957. return 0;
  3958. }
  3959. _ACEOF
  3960. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3961. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3962. do
  3963. CC="$ac_save_CC $ac_arg"
  3964. rm -f conftest.$ac_objext
  3965. if { (ac_try="$ac_compile"
  3966. case "(($ac_try" in
  3967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3968. *) ac_try_echo=$ac_try;;
  3969. esac
  3970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3971. $as_echo "$ac_try_echo") >&5
  3972. (eval "$ac_compile") 2>conftest.er1
  3973. ac_status=$?
  3974. grep -v '^ *+' conftest.er1 >conftest.err
  3975. rm -f conftest.er1
  3976. cat conftest.err >&5
  3977. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3978. (exit $ac_status); } && {
  3979. test -z "$ac_c_werror_flag" ||
  3980. test ! -s conftest.err
  3981. } && test -s conftest.$ac_objext; then
  3982. ac_cv_prog_cc_c89=$ac_arg
  3983. else
  3984. $as_echo "$as_me: failed program was:" >&5
  3985. sed 's/^/| /' conftest.$ac_ext >&5
  3986. fi
  3987. rm -f core conftest.err conftest.$ac_objext
  3988. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3989. done
  3990. rm -f conftest.$ac_ext
  3991. CC=$ac_save_CC
  3992. fi
  3993. # AC_CACHE_VAL
  3994. case "x$ac_cv_prog_cc_c89" in
  3995. x)
  3996. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3997. $as_echo "none needed" >&6; } ;;
  3998. xno)
  3999. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4000. $as_echo "unsupported" >&6; } ;;
  4001. *)
  4002. CC="$CC $ac_cv_prog_cc_c89"
  4003. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4004. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4005. esac
  4006. ac_ext=c
  4007. ac_cpp='$CPP $CPPFLAGS'
  4008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4011. depcc="$CC" am_compiler_list=
  4012. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4013. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4014. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4018. # We make a subdir and do the tests there. Otherwise we can end up
  4019. # making bogus files that we don't know about and never remove. For
  4020. # instance it was reported that on HP-UX the gcc test will end up
  4021. # making a dummy file named `D' -- because `-MD' means `put the output
  4022. # in D'.
  4023. mkdir conftest.dir
  4024. # Copy depcomp to subdir because otherwise we won't find it if we're
  4025. # using a relative directory.
  4026. cp "$am_depcomp" conftest.dir
  4027. cd conftest.dir
  4028. # We will build objects and dependencies in a subdirectory because
  4029. # it helps to detect inapplicable dependency modes. For instance
  4030. # both Tru64's cc and ICC support -MD to output dependencies as a
  4031. # side effect of compilation, but ICC will put the dependencies in
  4032. # the current directory while Tru64 will put them in the object
  4033. # directory.
  4034. mkdir sub
  4035. am_cv_CC_dependencies_compiler_type=none
  4036. if test "$am_compiler_list" = ""; then
  4037. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4038. fi
  4039. am__universal=false
  4040. case " $depcc " in #(
  4041. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4042. esac
  4043. for depmode in $am_compiler_list; do
  4044. # Setup a source with many dependencies, because some compilers
  4045. # like to wrap large dependency lists on column 80 (with \), and
  4046. # we should not choose a depcomp mode which is confused by this.
  4047. #
  4048. # We need to recreate these files for each test, as the compiler may
  4049. # overwrite some of them when testing with obscure command lines.
  4050. # This happens at least with the AIX C compiler.
  4051. : > sub/conftest.c
  4052. for i in 1 2 3 4 5 6; do
  4053. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4054. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4055. # Solaris 8's {/usr,}/bin/sh.
  4056. touch sub/conftst$i.h
  4057. done
  4058. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4059. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4060. # mode. It turns out that the SunPro C++ compiler does not properly
  4061. # handle `-M -o', and we need to detect this. Also, some Intel
  4062. # versions had trouble with output in subdirs
  4063. am__obj=sub/conftest.${OBJEXT-o}
  4064. am__minus_obj="-o $am__obj"
  4065. case $depmode in
  4066. gcc)
  4067. # This depmode causes a compiler race in universal mode.
  4068. test "$am__universal" = false || continue
  4069. ;;
  4070. nosideeffect)
  4071. # after this tag, mechanisms are not by side-effect, so they'll
  4072. # only be used when explicitly requested
  4073. if test "x$enable_dependency_tracking" = xyes; then
  4074. continue
  4075. else
  4076. break
  4077. fi
  4078. ;;
  4079. msvisualcpp | msvcmsys)
  4080. # This compiler won't grok `-c -o', but also, the minuso test has
  4081. # not run yet. These depmodes are late enough in the game, and
  4082. # so weak that their functioning should not be impacted.
  4083. am__obj=conftest.${OBJEXT-o}
  4084. am__minus_obj=
  4085. ;;
  4086. none) break ;;
  4087. esac
  4088. if depmode=$depmode \
  4089. source=sub/conftest.c object=$am__obj \
  4090. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4091. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4092. >/dev/null 2>conftest.err &&
  4093. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4094. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4095. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4096. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4097. # icc doesn't choke on unknown options, it will just issue warnings
  4098. # or remarks (even with -Werror). So we grep stderr for any message
  4099. # that says an option was ignored or not supported.
  4100. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4101. # icc: Command line warning: ignoring option '-M'; no argument required
  4102. # The diagnosis changed in icc 8.0:
  4103. # icc: Command line remark: option '-MP' not supported
  4104. if (grep 'ignoring option' conftest.err ||
  4105. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4106. am_cv_CC_dependencies_compiler_type=$depmode
  4107. break
  4108. fi
  4109. fi
  4110. done
  4111. cd ..
  4112. rm -rf conftest.dir
  4113. else
  4114. am_cv_CC_dependencies_compiler_type=none
  4115. fi
  4116. fi
  4117. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4118. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4119. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4120. if
  4121. test "x$enable_dependency_tracking" != xno \
  4122. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4123. am__fastdepCC_TRUE=
  4124. am__fastdepCC_FALSE='#'
  4125. else
  4126. am__fastdepCC_TRUE='#'
  4127. am__fastdepCC_FALSE=
  4128. fi
  4129. if test "x$CC" != xcc; then
  4130. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  4131. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4132. else
  4133. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  4134. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4135. fi
  4136. set dummy $CC; ac_cc=`$as_echo "$2" |
  4137. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4138. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  4139. $as_echo_n "(cached) " >&6
  4140. else
  4141. cat >conftest.$ac_ext <<_ACEOF
  4142. /* confdefs.h. */
  4143. _ACEOF
  4144. cat confdefs.h >>conftest.$ac_ext
  4145. cat >>conftest.$ac_ext <<_ACEOF
  4146. /* end confdefs.h. */
  4147. int
  4148. main ()
  4149. {
  4150. ;
  4151. return 0;
  4152. }
  4153. _ACEOF
  4154. # Make sure it works both with $CC and with simple cc.
  4155. # We do the test twice because some compilers refuse to overwrite an
  4156. # existing .o file with -o, though they will create one.
  4157. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4158. rm -f conftest2.*
  4159. if { (case "(($ac_try" in
  4160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4161. *) ac_try_echo=$ac_try;;
  4162. esac
  4163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4164. $as_echo "$ac_try_echo") >&5
  4165. (eval "$ac_try") 2>&5
  4166. ac_status=$?
  4167. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4168. (exit $ac_status); } &&
  4169. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4171. *) ac_try_echo=$ac_try;;
  4172. esac
  4173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4174. $as_echo "$ac_try_echo") >&5
  4175. (eval "$ac_try") 2>&5
  4176. ac_status=$?
  4177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4178. (exit $ac_status); };
  4179. then
  4180. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4181. if test "x$CC" != xcc; then
  4182. # Test first that cc exists at all.
  4183. if { ac_try='cc -c conftest.$ac_ext >&5'
  4184. { (case "(($ac_try" in
  4185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4186. *) ac_try_echo=$ac_try;;
  4187. esac
  4188. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4189. $as_echo "$ac_try_echo") >&5
  4190. (eval "$ac_try") 2>&5
  4191. ac_status=$?
  4192. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. (exit $ac_status); }; }; then
  4194. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4195. rm -f conftest2.*
  4196. if { (case "(($ac_try" in
  4197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4198. *) ac_try_echo=$ac_try;;
  4199. esac
  4200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4201. $as_echo "$ac_try_echo") >&5
  4202. (eval "$ac_try") 2>&5
  4203. ac_status=$?
  4204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); } &&
  4206. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  4207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4208. *) ac_try_echo=$ac_try;;
  4209. esac
  4210. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4211. $as_echo "$ac_try_echo") >&5
  4212. (eval "$ac_try") 2>&5
  4213. ac_status=$?
  4214. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4215. (exit $ac_status); };
  4216. then
  4217. # cc works too.
  4218. :
  4219. else
  4220. # cc exists but doesn't like -o.
  4221. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4222. fi
  4223. fi
  4224. fi
  4225. else
  4226. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4227. fi
  4228. rm -f core conftest*
  4229. fi
  4230. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4231. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4232. $as_echo "yes" >&6; }
  4233. else
  4234. { $as_echo "$as_me:$LINENO: result: no" >&5
  4235. $as_echo "no" >&6; }
  4236. cat >>confdefs.h <<\_ACEOF
  4237. #define NO_MINUS_C_MINUS_O 1
  4238. _ACEOF
  4239. fi
  4240. # FIXME: we rely on the cache variable name because
  4241. # there is no other way.
  4242. set dummy $CC
  4243. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4244. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4245. if test "$am_t" != yes; then
  4246. # Losing compiler, so override with the script.
  4247. # FIXME: It is wrong to rewrite CC.
  4248. # But if we don't then we get into trouble of one sort or another.
  4249. # A longer-term fix would be to have automake use am__CC in this case,
  4250. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4251. CC="$am_aux_dir/compile $CC"
  4252. fi
  4253. # By default we simply use the C compiler to build assembly code.
  4254. test "${CCAS+set}" = set || CCAS=$CC
  4255. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4256. depcc="$CCAS" am_compiler_list=
  4257. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  4258. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4259. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4263. # We make a subdir and do the tests there. Otherwise we can end up
  4264. # making bogus files that we don't know about and never remove. For
  4265. # instance it was reported that on HP-UX the gcc test will end up
  4266. # making a dummy file named `D' -- because `-MD' means `put the output
  4267. # in D'.
  4268. mkdir conftest.dir
  4269. # Copy depcomp to subdir because otherwise we won't find it if we're
  4270. # using a relative directory.
  4271. cp "$am_depcomp" conftest.dir
  4272. cd conftest.dir
  4273. # We will build objects and dependencies in a subdirectory because
  4274. # it helps to detect inapplicable dependency modes. For instance
  4275. # both Tru64's cc and ICC support -MD to output dependencies as a
  4276. # side effect of compilation, but ICC will put the dependencies in
  4277. # the current directory while Tru64 will put them in the object
  4278. # directory.
  4279. mkdir sub
  4280. am_cv_CCAS_dependencies_compiler_type=none
  4281. if test "$am_compiler_list" = ""; then
  4282. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4283. fi
  4284. am__universal=false
  4285. for depmode in $am_compiler_list; do
  4286. # Setup a source with many dependencies, because some compilers
  4287. # like to wrap large dependency lists on column 80 (with \), and
  4288. # we should not choose a depcomp mode which is confused by this.
  4289. #
  4290. # We need to recreate these files for each test, as the compiler may
  4291. # overwrite some of them when testing with obscure command lines.
  4292. # This happens at least with the AIX C compiler.
  4293. : > sub/conftest.c
  4294. for i in 1 2 3 4 5 6; do
  4295. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4296. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4297. # Solaris 8's {/usr,}/bin/sh.
  4298. touch sub/conftst$i.h
  4299. done
  4300. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4301. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4302. # mode. It turns out that the SunPro C++ compiler does not properly
  4303. # handle `-M -o', and we need to detect this. Also, some Intel
  4304. # versions had trouble with output in subdirs
  4305. am__obj=sub/conftest.${OBJEXT-o}
  4306. am__minus_obj="-o $am__obj"
  4307. case $depmode in
  4308. gcc)
  4309. # This depmode causes a compiler race in universal mode.
  4310. test "$am__universal" = false || continue
  4311. ;;
  4312. nosideeffect)
  4313. # after this tag, mechanisms are not by side-effect, so they'll
  4314. # only be used when explicitly requested
  4315. if test "x$enable_dependency_tracking" = xyes; then
  4316. continue
  4317. else
  4318. break
  4319. fi
  4320. ;;
  4321. msvisualcpp | msvcmsys)
  4322. # This compiler won't grok `-c -o', but also, the minuso test has
  4323. # not run yet. These depmodes are late enough in the game, and
  4324. # so weak that their functioning should not be impacted.
  4325. am__obj=conftest.${OBJEXT-o}
  4326. am__minus_obj=
  4327. ;;
  4328. none) break ;;
  4329. esac
  4330. if depmode=$depmode \
  4331. source=sub/conftest.c object=$am__obj \
  4332. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4333. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4334. >/dev/null 2>conftest.err &&
  4335. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4336. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4337. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4338. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4339. # icc doesn't choke on unknown options, it will just issue warnings
  4340. # or remarks (even with -Werror). So we grep stderr for any message
  4341. # that says an option was ignored or not supported.
  4342. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4343. # icc: Command line warning: ignoring option '-M'; no argument required
  4344. # The diagnosis changed in icc 8.0:
  4345. # icc: Command line remark: option '-MP' not supported
  4346. if (grep 'ignoring option' conftest.err ||
  4347. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4348. am_cv_CCAS_dependencies_compiler_type=$depmode
  4349. break
  4350. fi
  4351. fi
  4352. done
  4353. cd ..
  4354. rm -rf conftest.dir
  4355. else
  4356. am_cv_CCAS_dependencies_compiler_type=none
  4357. fi
  4358. fi
  4359. { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4360. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4361. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4362. if
  4363. test "x$enable_dependency_tracking" != xno \
  4364. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4365. am__fastdepCCAS_TRUE=
  4366. am__fastdepCCAS_FALSE='#'
  4367. else
  4368. am__fastdepCCAS_TRUE='#'
  4369. am__fastdepCCAS_FALSE=
  4370. fi
  4371. # disable static libs by default - we only use a couple
  4372. # Check whether --enable-static was given.
  4373. if test "${enable_static+set}" = set; then
  4374. enableval=$enable_static; p=${PACKAGE-default}
  4375. case $enableval in
  4376. yes) enable_static=yes ;;
  4377. no) enable_static=no ;;
  4378. *)
  4379. enable_static=no
  4380. # Look at the argument we got. We use all the common list separators.
  4381. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4382. for pkg in $enableval; do
  4383. IFS="$lt_save_ifs"
  4384. if test "X$pkg" = "X$p"; then
  4385. enable_static=yes
  4386. fi
  4387. done
  4388. IFS="$lt_save_ifs"
  4389. ;;
  4390. esac
  4391. else
  4392. enable_static=no
  4393. fi
  4394. case `pwd` in
  4395. *\ * | *\ *)
  4396. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4397. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4398. esac
  4399. macro_version='2.2.6b'
  4400. macro_revision='1.3017'
  4401. ltmain="$ac_aux_dir/ltmain.sh"
  4402. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4403. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4404. if test "${ac_cv_path_SED+set}" = set; then
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4408. for ac_i in 1 2 3 4 5 6 7; do
  4409. ac_script="$ac_script$as_nl$ac_script"
  4410. done
  4411. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4412. $as_unset ac_script || ac_script=
  4413. if test -z "$SED"; then
  4414. ac_path_SED_found=false
  4415. # Loop through the user's path and test for each of PROGNAME-LIST
  4416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4417. for as_dir in $PATH
  4418. do
  4419. IFS=$as_save_IFS
  4420. test -z "$as_dir" && as_dir=.
  4421. for ac_prog in sed gsed; do
  4422. for ac_exec_ext in '' $ac_executable_extensions; do
  4423. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4424. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4425. # Check for GNU ac_path_SED and select it if it is found.
  4426. # Check for GNU $ac_path_SED
  4427. case `"$ac_path_SED" --version 2>&1` in
  4428. *GNU*)
  4429. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4430. *)
  4431. ac_count=0
  4432. $as_echo_n 0123456789 >"conftest.in"
  4433. while :
  4434. do
  4435. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4436. mv "conftest.tmp" "conftest.in"
  4437. cp "conftest.in" "conftest.nl"
  4438. $as_echo '' >> "conftest.nl"
  4439. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4440. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4441. ac_count=`expr $ac_count + 1`
  4442. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4443. # Best one so far, save it but keep looking for a better one
  4444. ac_cv_path_SED="$ac_path_SED"
  4445. ac_path_SED_max=$ac_count
  4446. fi
  4447. # 10*(2^10) chars as input seems more than enough
  4448. test $ac_count -gt 10 && break
  4449. done
  4450. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4451. esac
  4452. $ac_path_SED_found && break 3
  4453. done
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. if test -z "$ac_cv_path_SED"; then
  4458. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4459. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4460. { (exit 1); exit 1; }; }
  4461. fi
  4462. else
  4463. ac_cv_path_SED=$SED
  4464. fi
  4465. fi
  4466. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4467. $as_echo "$ac_cv_path_SED" >&6; }
  4468. SED="$ac_cv_path_SED"
  4469. rm -f conftest.sed
  4470. test -z "$SED" && SED=sed
  4471. Xsed="$SED -e 1s/^X//"
  4472. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4473. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4474. if test "${ac_cv_path_GREP+set}" = set; then
  4475. $as_echo_n "(cached) " >&6
  4476. else
  4477. if test -z "$GREP"; then
  4478. ac_path_GREP_found=false
  4479. # Loop through the user's path and test for each of PROGNAME-LIST
  4480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4481. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4482. do
  4483. IFS=$as_save_IFS
  4484. test -z "$as_dir" && as_dir=.
  4485. for ac_prog in grep ggrep; do
  4486. for ac_exec_ext in '' $ac_executable_extensions; do
  4487. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4488. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4489. # Check for GNU ac_path_GREP and select it if it is found.
  4490. # Check for GNU $ac_path_GREP
  4491. case `"$ac_path_GREP" --version 2>&1` in
  4492. *GNU*)
  4493. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4494. *)
  4495. ac_count=0
  4496. $as_echo_n 0123456789 >"conftest.in"
  4497. while :
  4498. do
  4499. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4500. mv "conftest.tmp" "conftest.in"
  4501. cp "conftest.in" "conftest.nl"
  4502. $as_echo 'GREP' >> "conftest.nl"
  4503. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4504. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4505. ac_count=`expr $ac_count + 1`
  4506. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4507. # Best one so far, save it but keep looking for a better one
  4508. ac_cv_path_GREP="$ac_path_GREP"
  4509. ac_path_GREP_max=$ac_count
  4510. fi
  4511. # 10*(2^10) chars as input seems more than enough
  4512. test $ac_count -gt 10 && break
  4513. done
  4514. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4515. esac
  4516. $ac_path_GREP_found && break 3
  4517. done
  4518. done
  4519. done
  4520. IFS=$as_save_IFS
  4521. if test -z "$ac_cv_path_GREP"; then
  4522. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4523. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4524. { (exit 1); exit 1; }; }
  4525. fi
  4526. else
  4527. ac_cv_path_GREP=$GREP
  4528. fi
  4529. fi
  4530. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4531. $as_echo "$ac_cv_path_GREP" >&6; }
  4532. GREP="$ac_cv_path_GREP"
  4533. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4534. $as_echo_n "checking for egrep... " >&6; }
  4535. if test "${ac_cv_path_EGREP+set}" = set; then
  4536. $as_echo_n "(cached) " >&6
  4537. else
  4538. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4539. then ac_cv_path_EGREP="$GREP -E"
  4540. else
  4541. if test -z "$EGREP"; then
  4542. ac_path_EGREP_found=false
  4543. # Loop through the user's path and test for each of PROGNAME-LIST
  4544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4545. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4546. do
  4547. IFS=$as_save_IFS
  4548. test -z "$as_dir" && as_dir=.
  4549. for ac_prog in egrep; do
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4552. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4553. # Check for GNU ac_path_EGREP and select it if it is found.
  4554. # Check for GNU $ac_path_EGREP
  4555. case `"$ac_path_EGREP" --version 2>&1` in
  4556. *GNU*)
  4557. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4558. *)
  4559. ac_count=0
  4560. $as_echo_n 0123456789 >"conftest.in"
  4561. while :
  4562. do
  4563. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4564. mv "conftest.tmp" "conftest.in"
  4565. cp "conftest.in" "conftest.nl"
  4566. $as_echo 'EGREP' >> "conftest.nl"
  4567. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4568. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4569. ac_count=`expr $ac_count + 1`
  4570. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4571. # Best one so far, save it but keep looking for a better one
  4572. ac_cv_path_EGREP="$ac_path_EGREP"
  4573. ac_path_EGREP_max=$ac_count
  4574. fi
  4575. # 10*(2^10) chars as input seems more than enough
  4576. test $ac_count -gt 10 && break
  4577. done
  4578. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4579. esac
  4580. $ac_path_EGREP_found && break 3
  4581. done
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. if test -z "$ac_cv_path_EGREP"; then
  4586. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4587. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4588. { (exit 1); exit 1; }; }
  4589. fi
  4590. else
  4591. ac_cv_path_EGREP=$EGREP
  4592. fi
  4593. fi
  4594. fi
  4595. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4596. $as_echo "$ac_cv_path_EGREP" >&6; }
  4597. EGREP="$ac_cv_path_EGREP"
  4598. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4599. $as_echo_n "checking for fgrep... " >&6; }
  4600. if test "${ac_cv_path_FGREP+set}" = set; then
  4601. $as_echo_n "(cached) " >&6
  4602. else
  4603. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4604. then ac_cv_path_FGREP="$GREP -F"
  4605. else
  4606. if test -z "$FGREP"; then
  4607. ac_path_FGREP_found=false
  4608. # Loop through the user's path and test for each of PROGNAME-LIST
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_prog in fgrep; do
  4615. for ac_exec_ext in '' $ac_executable_extensions; do
  4616. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4617. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4618. # Check for GNU ac_path_FGREP and select it if it is found.
  4619. # Check for GNU $ac_path_FGREP
  4620. case `"$ac_path_FGREP" --version 2>&1` in
  4621. *GNU*)
  4622. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4623. *)
  4624. ac_count=0
  4625. $as_echo_n 0123456789 >"conftest.in"
  4626. while :
  4627. do
  4628. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4629. mv "conftest.tmp" "conftest.in"
  4630. cp "conftest.in" "conftest.nl"
  4631. $as_echo 'FGREP' >> "conftest.nl"
  4632. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4633. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4634. ac_count=`expr $ac_count + 1`
  4635. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4636. # Best one so far, save it but keep looking for a better one
  4637. ac_cv_path_FGREP="$ac_path_FGREP"
  4638. ac_path_FGREP_max=$ac_count
  4639. fi
  4640. # 10*(2^10) chars as input seems more than enough
  4641. test $ac_count -gt 10 && break
  4642. done
  4643. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4644. esac
  4645. $ac_path_FGREP_found && break 3
  4646. done
  4647. done
  4648. done
  4649. IFS=$as_save_IFS
  4650. if test -z "$ac_cv_path_FGREP"; then
  4651. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4652. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4653. { (exit 1); exit 1; }; }
  4654. fi
  4655. else
  4656. ac_cv_path_FGREP=$FGREP
  4657. fi
  4658. fi
  4659. fi
  4660. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4661. $as_echo "$ac_cv_path_FGREP" >&6; }
  4662. FGREP="$ac_cv_path_FGREP"
  4663. test -z "$GREP" && GREP=grep
  4664. # Check whether --with-gnu-ld was given.
  4665. if test "${with_gnu_ld+set}" = set; then
  4666. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4667. else
  4668. with_gnu_ld=no
  4669. fi
  4670. ac_prog=ld
  4671. if test "$GCC" = yes; then
  4672. # Check if gcc -print-prog-name=ld gives a path.
  4673. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4674. $as_echo_n "checking for ld used by $CC... " >&6; }
  4675. case $host in
  4676. *-*-mingw*)
  4677. # gcc leaves a trailing carriage return which upsets mingw
  4678. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4679. *)
  4680. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4681. esac
  4682. case $ac_prog in
  4683. # Accept absolute paths.
  4684. [\\/]* | ?:[\\/]*)
  4685. re_direlt='/[^/][^/]*/\.\./'
  4686. # Canonicalize the pathname of ld
  4687. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4688. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4689. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4690. done
  4691. test -z "$LD" && LD="$ac_prog"
  4692. ;;
  4693. "")
  4694. # If it fails, then pretend we aren't using GCC.
  4695. ac_prog=ld
  4696. ;;
  4697. *)
  4698. # If it is relative, then search for the first ld in PATH.
  4699. with_gnu_ld=unknown
  4700. ;;
  4701. esac
  4702. elif test "$with_gnu_ld" = yes; then
  4703. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4704. $as_echo_n "checking for GNU ld... " >&6; }
  4705. else
  4706. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4707. $as_echo_n "checking for non-GNU ld... " >&6; }
  4708. fi
  4709. if test "${lt_cv_path_LD+set}" = set; then
  4710. $as_echo_n "(cached) " >&6
  4711. else
  4712. if test -z "$LD"; then
  4713. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4714. for ac_dir in $PATH; do
  4715. IFS="$lt_save_ifs"
  4716. test -z "$ac_dir" && ac_dir=.
  4717. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4718. lt_cv_path_LD="$ac_dir/$ac_prog"
  4719. # Check to see if the program is GNU ld. I'd rather use --version,
  4720. # but apparently some variants of GNU ld only accept -v.
  4721. # Break only if it was the GNU/non-GNU ld that we prefer.
  4722. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4723. *GNU* | *'with BFD'*)
  4724. test "$with_gnu_ld" != no && break
  4725. ;;
  4726. *)
  4727. test "$with_gnu_ld" != yes && break
  4728. ;;
  4729. esac
  4730. fi
  4731. done
  4732. IFS="$lt_save_ifs"
  4733. else
  4734. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4735. fi
  4736. fi
  4737. LD="$lt_cv_path_LD"
  4738. if test -n "$LD"; then
  4739. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4740. $as_echo "$LD" >&6; }
  4741. else
  4742. { $as_echo "$as_me:$LINENO: result: no" >&5
  4743. $as_echo "no" >&6; }
  4744. fi
  4745. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4746. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4747. { (exit 1); exit 1; }; }
  4748. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4749. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4750. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4751. $as_echo_n "(cached) " >&6
  4752. else
  4753. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4754. case `$LD -v 2>&1 </dev/null` in
  4755. *GNU* | *'with BFD'*)
  4756. lt_cv_prog_gnu_ld=yes
  4757. ;;
  4758. *)
  4759. lt_cv_prog_gnu_ld=no
  4760. ;;
  4761. esac
  4762. fi
  4763. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4764. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4765. with_gnu_ld=$lt_cv_prog_gnu_ld
  4766. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4767. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4768. if test "${lt_cv_path_NM+set}" = set; then
  4769. $as_echo_n "(cached) " >&6
  4770. else
  4771. if test -n "$NM"; then
  4772. # Let the user override the test.
  4773. lt_cv_path_NM="$NM"
  4774. else
  4775. lt_nm_to_check="${ac_tool_prefix}nm"
  4776. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4777. lt_nm_to_check="$lt_nm_to_check nm"
  4778. fi
  4779. for lt_tmp_nm in $lt_nm_to_check; do
  4780. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4781. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4782. IFS="$lt_save_ifs"
  4783. test -z "$ac_dir" && ac_dir=.
  4784. tmp_nm="$ac_dir/$lt_tmp_nm"
  4785. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4786. # Check to see if the nm accepts a BSD-compat flag.
  4787. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4788. # nm: unknown option "B" ignored
  4789. # Tru64's nm complains that /dev/null is an invalid object file
  4790. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4791. */dev/null* | *'Invalid file or object type'*)
  4792. lt_cv_path_NM="$tmp_nm -B"
  4793. break
  4794. ;;
  4795. *)
  4796. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4797. */dev/null*)
  4798. lt_cv_path_NM="$tmp_nm -p"
  4799. break
  4800. ;;
  4801. *)
  4802. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4803. continue # so that we can try to find one that supports BSD flags
  4804. ;;
  4805. esac
  4806. ;;
  4807. esac
  4808. fi
  4809. done
  4810. IFS="$lt_save_ifs"
  4811. done
  4812. : ${lt_cv_path_NM=no}
  4813. fi
  4814. fi
  4815. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4816. $as_echo "$lt_cv_path_NM" >&6; }
  4817. if test "$lt_cv_path_NM" != "no"; then
  4818. NM="$lt_cv_path_NM"
  4819. else
  4820. # Didn't find any BSD compatible name lister, look for dumpbin.
  4821. if test -n "$ac_tool_prefix"; then
  4822. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4823. do
  4824. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4825. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4826. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4827. $as_echo_n "checking for $ac_word... " >&6; }
  4828. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. if test -n "$DUMPBIN"; then
  4832. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4833. else
  4834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4835. for as_dir in $PATH
  4836. do
  4837. IFS=$as_save_IFS
  4838. test -z "$as_dir" && as_dir=.
  4839. for ac_exec_ext in '' $ac_executable_extensions; do
  4840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4841. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4842. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4843. break 2
  4844. fi
  4845. done
  4846. done
  4847. IFS=$as_save_IFS
  4848. fi
  4849. fi
  4850. DUMPBIN=$ac_cv_prog_DUMPBIN
  4851. if test -n "$DUMPBIN"; then
  4852. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4853. $as_echo "$DUMPBIN" >&6; }
  4854. else
  4855. { $as_echo "$as_me:$LINENO: result: no" >&5
  4856. $as_echo "no" >&6; }
  4857. fi
  4858. test -n "$DUMPBIN" && break
  4859. done
  4860. fi
  4861. if test -z "$DUMPBIN"; then
  4862. ac_ct_DUMPBIN=$DUMPBIN
  4863. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4864. do
  4865. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4866. set dummy $ac_prog; ac_word=$2
  4867. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4868. $as_echo_n "checking for $ac_word... " >&6; }
  4869. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4870. $as_echo_n "(cached) " >&6
  4871. else
  4872. if test -n "$ac_ct_DUMPBIN"; then
  4873. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4874. else
  4875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4876. for as_dir in $PATH
  4877. do
  4878. IFS=$as_save_IFS
  4879. test -z "$as_dir" && as_dir=.
  4880. for ac_exec_ext in '' $ac_executable_extensions; do
  4881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4882. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4883. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4884. break 2
  4885. fi
  4886. done
  4887. done
  4888. IFS=$as_save_IFS
  4889. fi
  4890. fi
  4891. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4892. if test -n "$ac_ct_DUMPBIN"; then
  4893. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4894. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4895. else
  4896. { $as_echo "$as_me:$LINENO: result: no" >&5
  4897. $as_echo "no" >&6; }
  4898. fi
  4899. test -n "$ac_ct_DUMPBIN" && break
  4900. done
  4901. if test "x$ac_ct_DUMPBIN" = x; then
  4902. DUMPBIN=":"
  4903. else
  4904. case $cross_compiling:$ac_tool_warned in
  4905. yes:)
  4906. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4907. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4908. ac_tool_warned=yes ;;
  4909. esac
  4910. DUMPBIN=$ac_ct_DUMPBIN
  4911. fi
  4912. fi
  4913. if test "$DUMPBIN" != ":"; then
  4914. NM="$DUMPBIN"
  4915. fi
  4916. fi
  4917. test -z "$NM" && NM=nm
  4918. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4919. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4920. if test "${lt_cv_nm_interface+set}" = set; then
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. lt_cv_nm_interface="BSD nm"
  4924. echo "int some_variable = 0;" > conftest.$ac_ext
  4925. (eval echo "\"\$as_me:5511: $ac_compile\"" >&5)
  4926. (eval "$ac_compile" 2>conftest.err)
  4927. cat conftest.err >&5
  4928. (eval echo "\"\$as_me:5514: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4929. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4930. cat conftest.err >&5
  4931. (eval echo "\"\$as_me:5517: output\"" >&5)
  4932. cat conftest.out >&5
  4933. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4934. lt_cv_nm_interface="MS dumpbin"
  4935. fi
  4936. rm -f conftest*
  4937. fi
  4938. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4939. $as_echo "$lt_cv_nm_interface" >&6; }
  4940. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4941. $as_echo_n "checking whether ln -s works... " >&6; }
  4942. LN_S=$as_ln_s
  4943. if test "$LN_S" = "ln -s"; then
  4944. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4945. $as_echo "yes" >&6; }
  4946. else
  4947. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4948. $as_echo "no, using $LN_S" >&6; }
  4949. fi
  4950. # find the maximum length of command line arguments
  4951. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4952. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4953. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4954. $as_echo_n "(cached) " >&6
  4955. else
  4956. i=0
  4957. teststring="ABCD"
  4958. case $build_os in
  4959. msdosdjgpp*)
  4960. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4961. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4962. # during glob expansion). Even if it were fixed, the result of this
  4963. # check would be larger than it should be.
  4964. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4965. ;;
  4966. gnu*)
  4967. # Under GNU Hurd, this test is not required because there is
  4968. # no limit to the length of command line arguments.
  4969. # Libtool will interpret -1 as no limit whatsoever
  4970. lt_cv_sys_max_cmd_len=-1;
  4971. ;;
  4972. cygwin* | mingw* | cegcc*)
  4973. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4974. # about 5 minutes as the teststring grows exponentially.
  4975. # Worse, since 9x/ME are not pre-emptively multitasking,
  4976. # you end up with a "frozen" computer, even though with patience
  4977. # the test eventually succeeds (with a max line length of 256k).
  4978. # Instead, let's just punt: use the minimum linelength reported by
  4979. # all of the supported platforms: 8192 (on NT/2K/XP).
  4980. lt_cv_sys_max_cmd_len=8192;
  4981. ;;
  4982. amigaos*)
  4983. # On AmigaOS with pdksh, this test takes hours, literally.
  4984. # So we just punt and use a minimum line length of 8192.
  4985. lt_cv_sys_max_cmd_len=8192;
  4986. ;;
  4987. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4988. # This has been around since 386BSD, at least. Likely further.
  4989. if test -x /sbin/sysctl; then
  4990. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4991. elif test -x /usr/sbin/sysctl; then
  4992. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4993. else
  4994. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4995. fi
  4996. # And add a safety zone
  4997. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4998. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4999. ;;
  5000. interix*)
  5001. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5002. lt_cv_sys_max_cmd_len=196608
  5003. ;;
  5004. osf*)
  5005. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5006. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5007. # nice to cause kernel panics so lets avoid the loop below.
  5008. # First set a reasonable default.
  5009. lt_cv_sys_max_cmd_len=16384
  5010. #
  5011. if test -x /sbin/sysconfig; then
  5012. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5013. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5014. esac
  5015. fi
  5016. ;;
  5017. sco3.2v5*)
  5018. lt_cv_sys_max_cmd_len=102400
  5019. ;;
  5020. sysv5* | sco5v6* | sysv4.2uw2*)
  5021. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5022. if test -n "$kargmax"; then
  5023. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5024. else
  5025. lt_cv_sys_max_cmd_len=32768
  5026. fi
  5027. ;;
  5028. *)
  5029. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5030. if test -n "$lt_cv_sys_max_cmd_len"; then
  5031. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5032. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5033. else
  5034. # Make teststring a little bigger before we do anything with it.
  5035. # a 1K string should be a reasonable start.
  5036. for i in 1 2 3 4 5 6 7 8 ; do
  5037. teststring=$teststring$teststring
  5038. done
  5039. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5040. # If test is not a shell built-in, we'll probably end up computing a
  5041. # maximum length that is only half of the actual maximum length, but
  5042. # we can't tell.
  5043. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5044. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5045. test $i != 17 # 1/2 MB should be enough
  5046. do
  5047. i=`expr $i + 1`
  5048. teststring=$teststring$teststring
  5049. done
  5050. # Only check the string length outside the loop.
  5051. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5052. teststring=
  5053. # Add a significant safety factor because C++ compilers can tack on
  5054. # massive amounts of additional arguments before passing them to the
  5055. # linker. It appears as though 1/2 is a usable value.
  5056. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5057. fi
  5058. ;;
  5059. esac
  5060. fi
  5061. if test -n $lt_cv_sys_max_cmd_len ; then
  5062. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5063. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5064. else
  5065. { $as_echo "$as_me:$LINENO: result: none" >&5
  5066. $as_echo "none" >&6; }
  5067. fi
  5068. max_cmd_len=$lt_cv_sys_max_cmd_len
  5069. : ${CP="cp -f"}
  5070. : ${MV="mv -f"}
  5071. : ${RM="rm -f"}
  5072. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  5073. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5074. # Try some XSI features
  5075. xsi_shell=no
  5076. ( _lt_dummy="a/b/c"
  5077. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5078. = c,a/b,, \
  5079. && eval 'test $(( 1 + 1 )) -eq 2 \
  5080. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5081. && xsi_shell=yes
  5082. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  5083. $as_echo "$xsi_shell" >&6; }
  5084. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  5085. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5086. lt_shell_append=no
  5087. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5088. >/dev/null 2>&1 \
  5089. && lt_shell_append=yes
  5090. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  5091. $as_echo "$lt_shell_append" >&6; }
  5092. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5093. lt_unset=unset
  5094. else
  5095. lt_unset=false
  5096. fi
  5097. # test EBCDIC or ASCII
  5098. case `echo X|tr X '\101'` in
  5099. A) # ASCII based system
  5100. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5101. lt_SP2NL='tr \040 \012'
  5102. lt_NL2SP='tr \015\012 \040\040'
  5103. ;;
  5104. *) # EBCDIC based system
  5105. lt_SP2NL='tr \100 \n'
  5106. lt_NL2SP='tr \r\n \100\100'
  5107. ;;
  5108. esac
  5109. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5110. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5111. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5112. $as_echo_n "(cached) " >&6
  5113. else
  5114. lt_cv_ld_reload_flag='-r'
  5115. fi
  5116. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5117. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5118. reload_flag=$lt_cv_ld_reload_flag
  5119. case $reload_flag in
  5120. "" | " "*) ;;
  5121. *) reload_flag=" $reload_flag" ;;
  5122. esac
  5123. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5124. case $host_os in
  5125. darwin*)
  5126. if test "$GCC" = yes; then
  5127. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5128. else
  5129. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5130. fi
  5131. ;;
  5132. esac
  5133. if test -n "$ac_tool_prefix"; then
  5134. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5135. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5136. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5137. $as_echo_n "checking for $ac_word... " >&6; }
  5138. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. if test -n "$OBJDUMP"; then
  5142. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5143. else
  5144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5145. for as_dir in $PATH
  5146. do
  5147. IFS=$as_save_IFS
  5148. test -z "$as_dir" && as_dir=.
  5149. for ac_exec_ext in '' $ac_executable_extensions; do
  5150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5151. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5152. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5153. break 2
  5154. fi
  5155. done
  5156. done
  5157. IFS=$as_save_IFS
  5158. fi
  5159. fi
  5160. OBJDUMP=$ac_cv_prog_OBJDUMP
  5161. if test -n "$OBJDUMP"; then
  5162. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5163. $as_echo "$OBJDUMP" >&6; }
  5164. else
  5165. { $as_echo "$as_me:$LINENO: result: no" >&5
  5166. $as_echo "no" >&6; }
  5167. fi
  5168. fi
  5169. if test -z "$ac_cv_prog_OBJDUMP"; then
  5170. ac_ct_OBJDUMP=$OBJDUMP
  5171. # Extract the first word of "objdump", so it can be a program name with args.
  5172. set dummy objdump; ac_word=$2
  5173. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5174. $as_echo_n "checking for $ac_word... " >&6; }
  5175. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5176. $as_echo_n "(cached) " >&6
  5177. else
  5178. if test -n "$ac_ct_OBJDUMP"; then
  5179. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5180. else
  5181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5182. for as_dir in $PATH
  5183. do
  5184. IFS=$as_save_IFS
  5185. test -z "$as_dir" && as_dir=.
  5186. for ac_exec_ext in '' $ac_executable_extensions; do
  5187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5188. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5189. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5190. break 2
  5191. fi
  5192. done
  5193. done
  5194. IFS=$as_save_IFS
  5195. fi
  5196. fi
  5197. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5198. if test -n "$ac_ct_OBJDUMP"; then
  5199. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5200. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5201. else
  5202. { $as_echo "$as_me:$LINENO: result: no" >&5
  5203. $as_echo "no" >&6; }
  5204. fi
  5205. if test "x$ac_ct_OBJDUMP" = x; then
  5206. OBJDUMP="false"
  5207. else
  5208. case $cross_compiling:$ac_tool_warned in
  5209. yes:)
  5210. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5211. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5212. ac_tool_warned=yes ;;
  5213. esac
  5214. OBJDUMP=$ac_ct_OBJDUMP
  5215. fi
  5216. else
  5217. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5218. fi
  5219. test -z "$OBJDUMP" && OBJDUMP=objdump
  5220. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5221. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5222. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5223. $as_echo_n "(cached) " >&6
  5224. else
  5225. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5226. lt_cv_file_magic_test_file=
  5227. lt_cv_deplibs_check_method='unknown'
  5228. # Need to set the preceding variable on all platforms that support
  5229. # interlibrary dependencies.
  5230. # 'none' -- dependencies not supported.
  5231. # `unknown' -- same as none, but documents that we really don't know.
  5232. # 'pass_all' -- all dependencies passed with no checks.
  5233. # 'test_compile' -- check by making test program.
  5234. # 'file_magic [[regex]]' -- check by looking for files in library path
  5235. # which responds to the $file_magic_cmd with a given extended regex.
  5236. # If you have `file' or equivalent on your system and you're not sure
  5237. # whether `pass_all' will *always* work, you probably want this one.
  5238. case $host_os in
  5239. aix[4-9]*)
  5240. lt_cv_deplibs_check_method=pass_all
  5241. ;;
  5242. beos*)
  5243. lt_cv_deplibs_check_method=pass_all
  5244. ;;
  5245. bsdi[45]*)
  5246. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5247. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5248. lt_cv_file_magic_test_file=/shlib/libc.so
  5249. ;;
  5250. cygwin*)
  5251. # func_win32_libid is a shell function defined in ltmain.sh
  5252. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5253. lt_cv_file_magic_cmd='func_win32_libid'
  5254. ;;
  5255. mingw* | pw32*)
  5256. # Base MSYS/MinGW do not provide the 'file' command needed by
  5257. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5258. # unless we find 'file', for example because we are cross-compiling.
  5259. if ( file / ) >/dev/null 2>&1; then
  5260. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5261. lt_cv_file_magic_cmd='func_win32_libid'
  5262. else
  5263. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5264. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5265. fi
  5266. ;;
  5267. cegcc)
  5268. # use the weaker test based on 'objdump'. See mingw*.
  5269. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5270. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5271. ;;
  5272. darwin* | rhapsody*)
  5273. lt_cv_deplibs_check_method=pass_all
  5274. ;;
  5275. freebsd* | dragonfly*)
  5276. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5277. case $host_cpu in
  5278. i*86 )
  5279. # Not sure whether the presence of OpenBSD here was a mistake.
  5280. # Let's accept both of them until this is cleared up.
  5281. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5282. lt_cv_file_magic_cmd=/usr/bin/file
  5283. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5284. ;;
  5285. esac
  5286. else
  5287. lt_cv_deplibs_check_method=pass_all
  5288. fi
  5289. ;;
  5290. gnu*)
  5291. lt_cv_deplibs_check_method=pass_all
  5292. ;;
  5293. hpux10.20* | hpux11*)
  5294. lt_cv_file_magic_cmd=/usr/bin/file
  5295. case $host_cpu in
  5296. ia64*)
  5297. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5298. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5299. ;;
  5300. hppa*64*)
  5301. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5302. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5303. ;;
  5304. *)
  5305. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5306. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5307. ;;
  5308. esac
  5309. ;;
  5310. interix[3-9]*)
  5311. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5313. ;;
  5314. irix5* | irix6* | nonstopux*)
  5315. case $LD in
  5316. *-32|*"-32 ") libmagic=32-bit;;
  5317. *-n32|*"-n32 ") libmagic=N32;;
  5318. *-64|*"-64 ") libmagic=64-bit;;
  5319. *) libmagic=never-match;;
  5320. esac
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. # This must be Linux ELF.
  5324. linux* | k*bsd*-gnu)
  5325. lt_cv_deplibs_check_method=pass_all
  5326. ;;
  5327. netbsd*)
  5328. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5329. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5330. else
  5331. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5332. fi
  5333. ;;
  5334. newos6*)
  5335. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5336. lt_cv_file_magic_cmd=/usr/bin/file
  5337. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5338. ;;
  5339. *nto* | *qnx*)
  5340. lt_cv_deplibs_check_method=pass_all
  5341. ;;
  5342. openbsd*)
  5343. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5344. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5345. else
  5346. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5347. fi
  5348. ;;
  5349. osf3* | osf4* | osf5*)
  5350. lt_cv_deplibs_check_method=pass_all
  5351. ;;
  5352. rdos*)
  5353. lt_cv_deplibs_check_method=pass_all
  5354. ;;
  5355. solaris*)
  5356. lt_cv_deplibs_check_method=pass_all
  5357. ;;
  5358. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5359. lt_cv_deplibs_check_method=pass_all
  5360. ;;
  5361. sysv4 | sysv4.3*)
  5362. case $host_vendor in
  5363. motorola)
  5364. 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]'
  5365. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5366. ;;
  5367. ncr)
  5368. lt_cv_deplibs_check_method=pass_all
  5369. ;;
  5370. sequent)
  5371. lt_cv_file_magic_cmd='/bin/file'
  5372. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5373. ;;
  5374. sni)
  5375. lt_cv_file_magic_cmd='/bin/file'
  5376. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5377. lt_cv_file_magic_test_file=/lib/libc.so
  5378. ;;
  5379. siemens)
  5380. lt_cv_deplibs_check_method=pass_all
  5381. ;;
  5382. pc)
  5383. lt_cv_deplibs_check_method=pass_all
  5384. ;;
  5385. esac
  5386. ;;
  5387. tpf*)
  5388. lt_cv_deplibs_check_method=pass_all
  5389. ;;
  5390. esac
  5391. fi
  5392. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5393. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5394. file_magic_cmd=$lt_cv_file_magic_cmd
  5395. deplibs_check_method=$lt_cv_deplibs_check_method
  5396. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5397. if test -n "$ac_tool_prefix"; then
  5398. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5399. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5400. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5401. $as_echo_n "checking for $ac_word... " >&6; }
  5402. if test "${ac_cv_prog_AR+set}" = set; then
  5403. $as_echo_n "(cached) " >&6
  5404. else
  5405. if test -n "$AR"; then
  5406. ac_cv_prog_AR="$AR" # Let the user override the test.
  5407. else
  5408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5409. for as_dir in $PATH
  5410. do
  5411. IFS=$as_save_IFS
  5412. test -z "$as_dir" && as_dir=.
  5413. for ac_exec_ext in '' $ac_executable_extensions; do
  5414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5415. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5416. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5417. break 2
  5418. fi
  5419. done
  5420. done
  5421. IFS=$as_save_IFS
  5422. fi
  5423. fi
  5424. AR=$ac_cv_prog_AR
  5425. if test -n "$AR"; then
  5426. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5427. $as_echo "$AR" >&6; }
  5428. else
  5429. { $as_echo "$as_me:$LINENO: result: no" >&5
  5430. $as_echo "no" >&6; }
  5431. fi
  5432. fi
  5433. if test -z "$ac_cv_prog_AR"; then
  5434. ac_ct_AR=$AR
  5435. # Extract the first word of "ar", so it can be a program name with args.
  5436. set dummy ar; ac_word=$2
  5437. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5438. $as_echo_n "checking for $ac_word... " >&6; }
  5439. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5440. $as_echo_n "(cached) " >&6
  5441. else
  5442. if test -n "$ac_ct_AR"; then
  5443. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5444. else
  5445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5446. for as_dir in $PATH
  5447. do
  5448. IFS=$as_save_IFS
  5449. test -z "$as_dir" && as_dir=.
  5450. for ac_exec_ext in '' $ac_executable_extensions; do
  5451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5452. ac_cv_prog_ac_ct_AR="ar"
  5453. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5454. break 2
  5455. fi
  5456. done
  5457. done
  5458. IFS=$as_save_IFS
  5459. fi
  5460. fi
  5461. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5462. if test -n "$ac_ct_AR"; then
  5463. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5464. $as_echo "$ac_ct_AR" >&6; }
  5465. else
  5466. { $as_echo "$as_me:$LINENO: result: no" >&5
  5467. $as_echo "no" >&6; }
  5468. fi
  5469. if test "x$ac_ct_AR" = x; then
  5470. AR="false"
  5471. else
  5472. case $cross_compiling:$ac_tool_warned in
  5473. yes:)
  5474. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5476. ac_tool_warned=yes ;;
  5477. esac
  5478. AR=$ac_ct_AR
  5479. fi
  5480. else
  5481. AR="$ac_cv_prog_AR"
  5482. fi
  5483. test -z "$AR" && AR=ar
  5484. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5485. if test -n "$ac_tool_prefix"; then
  5486. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5487. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5488. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5489. $as_echo_n "checking for $ac_word... " >&6; }
  5490. if test "${ac_cv_prog_STRIP+set}" = set; then
  5491. $as_echo_n "(cached) " >&6
  5492. else
  5493. if test -n "$STRIP"; then
  5494. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5495. else
  5496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5497. for as_dir in $PATH
  5498. do
  5499. IFS=$as_save_IFS
  5500. test -z "$as_dir" && as_dir=.
  5501. for ac_exec_ext in '' $ac_executable_extensions; do
  5502. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5503. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5504. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5505. break 2
  5506. fi
  5507. done
  5508. done
  5509. IFS=$as_save_IFS
  5510. fi
  5511. fi
  5512. STRIP=$ac_cv_prog_STRIP
  5513. if test -n "$STRIP"; then
  5514. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5515. $as_echo "$STRIP" >&6; }
  5516. else
  5517. { $as_echo "$as_me:$LINENO: result: no" >&5
  5518. $as_echo "no" >&6; }
  5519. fi
  5520. fi
  5521. if test -z "$ac_cv_prog_STRIP"; then
  5522. ac_ct_STRIP=$STRIP
  5523. # Extract the first word of "strip", so it can be a program name with args.
  5524. set dummy strip; ac_word=$2
  5525. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5526. $as_echo_n "checking for $ac_word... " >&6; }
  5527. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5528. $as_echo_n "(cached) " >&6
  5529. else
  5530. if test -n "$ac_ct_STRIP"; then
  5531. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5532. else
  5533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5534. for as_dir in $PATH
  5535. do
  5536. IFS=$as_save_IFS
  5537. test -z "$as_dir" && as_dir=.
  5538. for ac_exec_ext in '' $ac_executable_extensions; do
  5539. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5540. ac_cv_prog_ac_ct_STRIP="strip"
  5541. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5542. break 2
  5543. fi
  5544. done
  5545. done
  5546. IFS=$as_save_IFS
  5547. fi
  5548. fi
  5549. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5550. if test -n "$ac_ct_STRIP"; then
  5551. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5552. $as_echo "$ac_ct_STRIP" >&6; }
  5553. else
  5554. { $as_echo "$as_me:$LINENO: result: no" >&5
  5555. $as_echo "no" >&6; }
  5556. fi
  5557. if test "x$ac_ct_STRIP" = x; then
  5558. STRIP=":"
  5559. else
  5560. case $cross_compiling:$ac_tool_warned in
  5561. yes:)
  5562. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5564. ac_tool_warned=yes ;;
  5565. esac
  5566. STRIP=$ac_ct_STRIP
  5567. fi
  5568. else
  5569. STRIP="$ac_cv_prog_STRIP"
  5570. fi
  5571. test -z "$STRIP" && STRIP=:
  5572. if test -n "$ac_tool_prefix"; then
  5573. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5574. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5575. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5576. $as_echo_n "checking for $ac_word... " >&6; }
  5577. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. if test -n "$RANLIB"; then
  5581. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5582. else
  5583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5584. for as_dir in $PATH
  5585. do
  5586. IFS=$as_save_IFS
  5587. test -z "$as_dir" && as_dir=.
  5588. for ac_exec_ext in '' $ac_executable_extensions; do
  5589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5590. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5591. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5592. break 2
  5593. fi
  5594. done
  5595. done
  5596. IFS=$as_save_IFS
  5597. fi
  5598. fi
  5599. RANLIB=$ac_cv_prog_RANLIB
  5600. if test -n "$RANLIB"; then
  5601. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5602. $as_echo "$RANLIB" >&6; }
  5603. else
  5604. { $as_echo "$as_me:$LINENO: result: no" >&5
  5605. $as_echo "no" >&6; }
  5606. fi
  5607. fi
  5608. if test -z "$ac_cv_prog_RANLIB"; then
  5609. ac_ct_RANLIB=$RANLIB
  5610. # Extract the first word of "ranlib", so it can be a program name with args.
  5611. set dummy ranlib; ac_word=$2
  5612. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5613. $as_echo_n "checking for $ac_word... " >&6; }
  5614. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5615. $as_echo_n "(cached) " >&6
  5616. else
  5617. if test -n "$ac_ct_RANLIB"; then
  5618. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5619. else
  5620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5621. for as_dir in $PATH
  5622. do
  5623. IFS=$as_save_IFS
  5624. test -z "$as_dir" && as_dir=.
  5625. for ac_exec_ext in '' $ac_executable_extensions; do
  5626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5627. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5628. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5629. break 2
  5630. fi
  5631. done
  5632. done
  5633. IFS=$as_save_IFS
  5634. fi
  5635. fi
  5636. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5637. if test -n "$ac_ct_RANLIB"; then
  5638. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5639. $as_echo "$ac_ct_RANLIB" >&6; }
  5640. else
  5641. { $as_echo "$as_me:$LINENO: result: no" >&5
  5642. $as_echo "no" >&6; }
  5643. fi
  5644. if test "x$ac_ct_RANLIB" = x; then
  5645. RANLIB=":"
  5646. else
  5647. case $cross_compiling:$ac_tool_warned in
  5648. yes:)
  5649. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5650. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5651. ac_tool_warned=yes ;;
  5652. esac
  5653. RANLIB=$ac_ct_RANLIB
  5654. fi
  5655. else
  5656. RANLIB="$ac_cv_prog_RANLIB"
  5657. fi
  5658. test -z "$RANLIB" && RANLIB=:
  5659. # Determine commands to create old-style static archives.
  5660. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5661. old_postinstall_cmds='chmod 644 $oldlib'
  5662. old_postuninstall_cmds=
  5663. if test -n "$RANLIB"; then
  5664. case $host_os in
  5665. openbsd*)
  5666. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5667. ;;
  5668. *)
  5669. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5670. ;;
  5671. esac
  5672. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5673. fi
  5674. # If no C compiler was specified, use CC.
  5675. LTCC=${LTCC-"$CC"}
  5676. # If no C compiler flags were specified, use CFLAGS.
  5677. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5678. # Allow CC to be a program name with arguments.
  5679. compiler=$CC
  5680. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5681. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5682. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5683. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. # These are sane defaults that work on at least a few old systems.
  5687. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5688. # Character class describing NM global symbol codes.
  5689. symcode='[BCDEGRST]'
  5690. # Regexp to match symbols that can be accessed directly from C.
  5691. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5692. # Define system-specific variables.
  5693. case $host_os in
  5694. aix*)
  5695. symcode='[BCDT]'
  5696. ;;
  5697. cygwin* | mingw* | pw32* | cegcc*)
  5698. symcode='[ABCDGISTW]'
  5699. ;;
  5700. hpux*)
  5701. if test "$host_cpu" = ia64; then
  5702. symcode='[ABCDEGRST]'
  5703. fi
  5704. ;;
  5705. irix* | nonstopux*)
  5706. symcode='[BCDEGRST]'
  5707. ;;
  5708. osf*)
  5709. symcode='[BCDEGQRST]'
  5710. ;;
  5711. solaris*)
  5712. symcode='[BDRT]'
  5713. ;;
  5714. sco3.2v5*)
  5715. symcode='[DT]'
  5716. ;;
  5717. sysv4.2uw2*)
  5718. symcode='[DT]'
  5719. ;;
  5720. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5721. symcode='[ABDT]'
  5722. ;;
  5723. sysv4)
  5724. symcode='[DFNSTU]'
  5725. ;;
  5726. esac
  5727. # If we're using GNU nm, then use its standard symbol codes.
  5728. case `$NM -V 2>&1` in
  5729. *GNU* | *'with BFD'*)
  5730. symcode='[ABCDGIRSTW]' ;;
  5731. esac
  5732. # Transform an extracted symbol line into a proper C declaration.
  5733. # Some systems (esp. on ia64) link data and code symbols differently,
  5734. # so use this general approach.
  5735. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5736. # Transform an extracted symbol line into symbol name and symbol address
  5737. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5738. 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'"
  5739. # Handle CRLF in mingw tool chain
  5740. opt_cr=
  5741. case $build_os in
  5742. mingw*)
  5743. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5744. ;;
  5745. esac
  5746. # Try without a prefix underscore, then with it.
  5747. for ac_symprfx in "" "_"; do
  5748. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5749. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5750. # Write the raw and C identifiers.
  5751. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5752. # Fake it for dumpbin and say T for any non-static function
  5753. # and D for any global variable.
  5754. # Also find C++ and __fastcall symbols from MSVC++,
  5755. # which start with @ or ?.
  5756. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5757. " {last_section=section; section=\$ 3};"\
  5758. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5759. " \$ 0!~/External *\|/{next};"\
  5760. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5761. " {if(hide[section]) next};"\
  5762. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5763. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5764. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5765. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5766. " ' prfx=^$ac_symprfx"
  5767. else
  5768. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5769. fi
  5770. # Check to see that the pipe works correctly.
  5771. pipe_works=no
  5772. rm -f conftest*
  5773. cat > conftest.$ac_ext <<_LT_EOF
  5774. #ifdef __cplusplus
  5775. extern "C" {
  5776. #endif
  5777. char nm_test_var;
  5778. void nm_test_func(void);
  5779. void nm_test_func(void){}
  5780. #ifdef __cplusplus
  5781. }
  5782. #endif
  5783. int main(){nm_test_var='a';nm_test_func();return(0);}
  5784. _LT_EOF
  5785. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5786. (eval $ac_compile) 2>&5
  5787. ac_status=$?
  5788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5789. (exit $ac_status); }; then
  5790. # Now try to grab the symbols.
  5791. nlist=conftest.nm
  5792. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5793. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5794. ac_status=$?
  5795. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5796. (exit $ac_status); } && test -s "$nlist"; then
  5797. # Try sorting and uniquifying the output.
  5798. if sort "$nlist" | uniq > "$nlist"T; then
  5799. mv -f "$nlist"T "$nlist"
  5800. else
  5801. rm -f "$nlist"T
  5802. fi
  5803. # Make sure that we snagged all the symbols we need.
  5804. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5805. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5806. cat <<_LT_EOF > conftest.$ac_ext
  5807. #ifdef __cplusplus
  5808. extern "C" {
  5809. #endif
  5810. _LT_EOF
  5811. # Now generate the symbol file.
  5812. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5813. cat <<_LT_EOF >> conftest.$ac_ext
  5814. /* The mapping between symbol names and symbols. */
  5815. const struct {
  5816. const char *name;
  5817. void *address;
  5818. }
  5819. lt__PROGRAM__LTX_preloaded_symbols[] =
  5820. {
  5821. { "@PROGRAM@", (void *) 0 },
  5822. _LT_EOF
  5823. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5824. cat <<\_LT_EOF >> conftest.$ac_ext
  5825. {0, (void *) 0}
  5826. };
  5827. /* This works around a problem in FreeBSD linker */
  5828. #ifdef FREEBSD_WORKAROUND
  5829. static const void *lt_preloaded_setup() {
  5830. return lt__PROGRAM__LTX_preloaded_symbols;
  5831. }
  5832. #endif
  5833. #ifdef __cplusplus
  5834. }
  5835. #endif
  5836. _LT_EOF
  5837. # Now try linking the two files.
  5838. mv conftest.$ac_objext conftstm.$ac_objext
  5839. lt_save_LIBS="$LIBS"
  5840. lt_save_CFLAGS="$CFLAGS"
  5841. LIBS="conftstm.$ac_objext"
  5842. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5843. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5844. (eval $ac_link) 2>&5
  5845. ac_status=$?
  5846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5847. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5848. pipe_works=yes
  5849. fi
  5850. LIBS="$lt_save_LIBS"
  5851. CFLAGS="$lt_save_CFLAGS"
  5852. else
  5853. echo "cannot find nm_test_func in $nlist" >&5
  5854. fi
  5855. else
  5856. echo "cannot find nm_test_var in $nlist" >&5
  5857. fi
  5858. else
  5859. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5860. fi
  5861. else
  5862. echo "$progname: failed program was:" >&5
  5863. cat conftest.$ac_ext >&5
  5864. fi
  5865. rm -rf conftest* conftst*
  5866. # Do not use the global_symbol_pipe unless it works.
  5867. if test "$pipe_works" = yes; then
  5868. break
  5869. else
  5870. lt_cv_sys_global_symbol_pipe=
  5871. fi
  5872. done
  5873. fi
  5874. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5875. lt_cv_sys_global_symbol_to_cdecl=
  5876. fi
  5877. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5878. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5879. $as_echo "failed" >&6; }
  5880. else
  5881. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5882. $as_echo "ok" >&6; }
  5883. fi
  5884. # Check whether --enable-libtool-lock was given.
  5885. if test "${enable_libtool_lock+set}" = set; then
  5886. enableval=$enable_libtool_lock;
  5887. fi
  5888. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5889. # Some flags need to be propagated to the compiler or linker for good
  5890. # libtool support.
  5891. case $host in
  5892. ia64-*-hpux*)
  5893. # Find out which ABI we are using.
  5894. echo 'int i;' > conftest.$ac_ext
  5895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5896. (eval $ac_compile) 2>&5
  5897. ac_status=$?
  5898. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); }; then
  5900. case `/usr/bin/file conftest.$ac_objext` in
  5901. *ELF-32*)
  5902. HPUX_IA64_MODE="32"
  5903. ;;
  5904. *ELF-64*)
  5905. HPUX_IA64_MODE="64"
  5906. ;;
  5907. esac
  5908. fi
  5909. rm -rf conftest*
  5910. ;;
  5911. *-*-irix6*)
  5912. # Find out which ABI we are using.
  5913. echo '#line 6723 "configure"' > conftest.$ac_ext
  5914. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5915. (eval $ac_compile) 2>&5
  5916. ac_status=$?
  5917. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5918. (exit $ac_status); }; then
  5919. if test "$lt_cv_prog_gnu_ld" = yes; then
  5920. case `/usr/bin/file conftest.$ac_objext` in
  5921. *32-bit*)
  5922. LD="${LD-ld} -melf32bsmip"
  5923. ;;
  5924. *N32*)
  5925. LD="${LD-ld} -melf32bmipn32"
  5926. ;;
  5927. *64-bit*)
  5928. LD="${LD-ld} -melf64bmip"
  5929. ;;
  5930. esac
  5931. else
  5932. case `/usr/bin/file conftest.$ac_objext` in
  5933. *32-bit*)
  5934. LD="${LD-ld} -32"
  5935. ;;
  5936. *N32*)
  5937. LD="${LD-ld} -n32"
  5938. ;;
  5939. *64-bit*)
  5940. LD="${LD-ld} -64"
  5941. ;;
  5942. esac
  5943. fi
  5944. fi
  5945. rm -rf conftest*
  5946. ;;
  5947. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5948. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5949. # Find out which ABI we are using.
  5950. echo 'int i;' > conftest.$ac_ext
  5951. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5952. (eval $ac_compile) 2>&5
  5953. ac_status=$?
  5954. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5955. (exit $ac_status); }; then
  5956. case `/usr/bin/file conftest.o` in
  5957. *32-bit*)
  5958. case $host in
  5959. x86_64-*kfreebsd*-gnu)
  5960. LD="${LD-ld} -m elf_i386_fbsd"
  5961. ;;
  5962. x86_64-*linux*)
  5963. LD="${LD-ld} -m elf_i386"
  5964. ;;
  5965. ppc64-*linux*|powerpc64-*linux*)
  5966. LD="${LD-ld} -m elf32ppclinux"
  5967. ;;
  5968. s390x-*linux*)
  5969. LD="${LD-ld} -m elf_s390"
  5970. ;;
  5971. sparc64-*linux*)
  5972. LD="${LD-ld} -m elf32_sparc"
  5973. ;;
  5974. esac
  5975. ;;
  5976. *64-bit*)
  5977. case $host in
  5978. x86_64-*kfreebsd*-gnu)
  5979. LD="${LD-ld} -m elf_x86_64_fbsd"
  5980. ;;
  5981. x86_64-*linux*)
  5982. LD="${LD-ld} -m elf_x86_64"
  5983. ;;
  5984. ppc*-*linux*|powerpc*-*linux*)
  5985. LD="${LD-ld} -m elf64ppc"
  5986. ;;
  5987. s390*-*linux*|s390*-*tpf*)
  5988. LD="${LD-ld} -m elf64_s390"
  5989. ;;
  5990. sparc*-*linux*)
  5991. LD="${LD-ld} -m elf64_sparc"
  5992. ;;
  5993. esac
  5994. ;;
  5995. esac
  5996. fi
  5997. rm -rf conftest*
  5998. ;;
  5999. *-*-sco3.2v5*)
  6000. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6001. SAVE_CFLAGS="$CFLAGS"
  6002. CFLAGS="$CFLAGS -belf"
  6003. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6004. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6005. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6006. $as_echo_n "(cached) " >&6
  6007. else
  6008. ac_ext=c
  6009. ac_cpp='$CPP $CPPFLAGS'
  6010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6013. cat >conftest.$ac_ext <<_ACEOF
  6014. /* confdefs.h. */
  6015. _ACEOF
  6016. cat confdefs.h >>conftest.$ac_ext
  6017. cat >>conftest.$ac_ext <<_ACEOF
  6018. /* end confdefs.h. */
  6019. int
  6020. main ()
  6021. {
  6022. ;
  6023. return 0;
  6024. }
  6025. _ACEOF
  6026. rm -f conftest.$ac_objext conftest$ac_exeext
  6027. if { (ac_try="$ac_link"
  6028. case "(($ac_try" in
  6029. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6030. *) ac_try_echo=$ac_try;;
  6031. esac
  6032. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6033. $as_echo "$ac_try_echo") >&5
  6034. (eval "$ac_link") 2>conftest.er1
  6035. ac_status=$?
  6036. grep -v '^ *+' conftest.er1 >conftest.err
  6037. rm -f conftest.er1
  6038. cat conftest.err >&5
  6039. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6040. (exit $ac_status); } && {
  6041. test -z "$ac_c_werror_flag" ||
  6042. test ! -s conftest.err
  6043. } && test -s conftest$ac_exeext && {
  6044. test "$cross_compiling" = yes ||
  6045. $as_test_x conftest$ac_exeext
  6046. }; then
  6047. lt_cv_cc_needs_belf=yes
  6048. else
  6049. $as_echo "$as_me: failed program was:" >&5
  6050. sed 's/^/| /' conftest.$ac_ext >&5
  6051. lt_cv_cc_needs_belf=no
  6052. fi
  6053. rm -rf conftest.dSYM
  6054. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6055. conftest$ac_exeext conftest.$ac_ext
  6056. ac_ext=c
  6057. ac_cpp='$CPP $CPPFLAGS'
  6058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6061. fi
  6062. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6063. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6064. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6065. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6066. CFLAGS="$SAVE_CFLAGS"
  6067. fi
  6068. ;;
  6069. sparc*-*solaris*)
  6070. # Find out which ABI we are using.
  6071. echo 'int i;' > conftest.$ac_ext
  6072. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6073. (eval $ac_compile) 2>&5
  6074. ac_status=$?
  6075. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6076. (exit $ac_status); }; then
  6077. case `/usr/bin/file conftest.o` in
  6078. *64-bit*)
  6079. case $lt_cv_prog_gnu_ld in
  6080. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6081. *)
  6082. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6083. LD="${LD-ld} -64"
  6084. fi
  6085. ;;
  6086. esac
  6087. ;;
  6088. esac
  6089. fi
  6090. rm -rf conftest*
  6091. ;;
  6092. esac
  6093. need_locks="$enable_libtool_lock"
  6094. case $host_os in
  6095. rhapsody* | darwin*)
  6096. if test -n "$ac_tool_prefix"; then
  6097. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6098. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6099. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6100. $as_echo_n "checking for $ac_word... " >&6; }
  6101. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. if test -n "$DSYMUTIL"; then
  6105. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6106. else
  6107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6108. for as_dir in $PATH
  6109. do
  6110. IFS=$as_save_IFS
  6111. test -z "$as_dir" && as_dir=.
  6112. for ac_exec_ext in '' $ac_executable_extensions; do
  6113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6114. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6115. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6116. break 2
  6117. fi
  6118. done
  6119. done
  6120. IFS=$as_save_IFS
  6121. fi
  6122. fi
  6123. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6124. if test -n "$DSYMUTIL"; then
  6125. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6126. $as_echo "$DSYMUTIL" >&6; }
  6127. else
  6128. { $as_echo "$as_me:$LINENO: result: no" >&5
  6129. $as_echo "no" >&6; }
  6130. fi
  6131. fi
  6132. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6133. ac_ct_DSYMUTIL=$DSYMUTIL
  6134. # Extract the first word of "dsymutil", so it can be a program name with args.
  6135. set dummy dsymutil; ac_word=$2
  6136. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6137. $as_echo_n "checking for $ac_word... " >&6; }
  6138. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. if test -n "$ac_ct_DSYMUTIL"; then
  6142. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6143. else
  6144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6145. for as_dir in $PATH
  6146. do
  6147. IFS=$as_save_IFS
  6148. test -z "$as_dir" && as_dir=.
  6149. for ac_exec_ext in '' $ac_executable_extensions; do
  6150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6151. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6152. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6153. break 2
  6154. fi
  6155. done
  6156. done
  6157. IFS=$as_save_IFS
  6158. fi
  6159. fi
  6160. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6161. if test -n "$ac_ct_DSYMUTIL"; then
  6162. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6163. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6164. else
  6165. { $as_echo "$as_me:$LINENO: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. fi
  6168. if test "x$ac_ct_DSYMUTIL" = x; then
  6169. DSYMUTIL=":"
  6170. else
  6171. case $cross_compiling:$ac_tool_warned in
  6172. yes:)
  6173. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6174. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6175. ac_tool_warned=yes ;;
  6176. esac
  6177. DSYMUTIL=$ac_ct_DSYMUTIL
  6178. fi
  6179. else
  6180. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6181. fi
  6182. if test -n "$ac_tool_prefix"; then
  6183. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6184. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6185. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6186. $as_echo_n "checking for $ac_word... " >&6; }
  6187. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. if test -n "$NMEDIT"; then
  6191. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6192. else
  6193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6194. for as_dir in $PATH
  6195. do
  6196. IFS=$as_save_IFS
  6197. test -z "$as_dir" && as_dir=.
  6198. for ac_exec_ext in '' $ac_executable_extensions; do
  6199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6200. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6201. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6202. break 2
  6203. fi
  6204. done
  6205. done
  6206. IFS=$as_save_IFS
  6207. fi
  6208. fi
  6209. NMEDIT=$ac_cv_prog_NMEDIT
  6210. if test -n "$NMEDIT"; then
  6211. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6212. $as_echo "$NMEDIT" >&6; }
  6213. else
  6214. { $as_echo "$as_me:$LINENO: result: no" >&5
  6215. $as_echo "no" >&6; }
  6216. fi
  6217. fi
  6218. if test -z "$ac_cv_prog_NMEDIT"; then
  6219. ac_ct_NMEDIT=$NMEDIT
  6220. # Extract the first word of "nmedit", so it can be a program name with args.
  6221. set dummy nmedit; ac_word=$2
  6222. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6223. $as_echo_n "checking for $ac_word... " >&6; }
  6224. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6225. $as_echo_n "(cached) " >&6
  6226. else
  6227. if test -n "$ac_ct_NMEDIT"; then
  6228. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6229. else
  6230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6231. for as_dir in $PATH
  6232. do
  6233. IFS=$as_save_IFS
  6234. test -z "$as_dir" && as_dir=.
  6235. for ac_exec_ext in '' $ac_executable_extensions; do
  6236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6237. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6238. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6239. break 2
  6240. fi
  6241. done
  6242. done
  6243. IFS=$as_save_IFS
  6244. fi
  6245. fi
  6246. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6247. if test -n "$ac_ct_NMEDIT"; then
  6248. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6249. $as_echo "$ac_ct_NMEDIT" >&6; }
  6250. else
  6251. { $as_echo "$as_me:$LINENO: result: no" >&5
  6252. $as_echo "no" >&6; }
  6253. fi
  6254. if test "x$ac_ct_NMEDIT" = x; then
  6255. NMEDIT=":"
  6256. else
  6257. case $cross_compiling:$ac_tool_warned in
  6258. yes:)
  6259. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6260. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6261. ac_tool_warned=yes ;;
  6262. esac
  6263. NMEDIT=$ac_ct_NMEDIT
  6264. fi
  6265. else
  6266. NMEDIT="$ac_cv_prog_NMEDIT"
  6267. fi
  6268. if test -n "$ac_tool_prefix"; then
  6269. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6270. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6271. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6272. $as_echo_n "checking for $ac_word... " >&6; }
  6273. if test "${ac_cv_prog_LIPO+set}" = set; then
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. if test -n "$LIPO"; then
  6277. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6278. else
  6279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6280. for as_dir in $PATH
  6281. do
  6282. IFS=$as_save_IFS
  6283. test -z "$as_dir" && as_dir=.
  6284. for ac_exec_ext in '' $ac_executable_extensions; do
  6285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6286. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6287. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6288. break 2
  6289. fi
  6290. done
  6291. done
  6292. IFS=$as_save_IFS
  6293. fi
  6294. fi
  6295. LIPO=$ac_cv_prog_LIPO
  6296. if test -n "$LIPO"; then
  6297. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6298. $as_echo "$LIPO" >&6; }
  6299. else
  6300. { $as_echo "$as_me:$LINENO: result: no" >&5
  6301. $as_echo "no" >&6; }
  6302. fi
  6303. fi
  6304. if test -z "$ac_cv_prog_LIPO"; then
  6305. ac_ct_LIPO=$LIPO
  6306. # Extract the first word of "lipo", so it can be a program name with args.
  6307. set dummy lipo; ac_word=$2
  6308. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6309. $as_echo_n "checking for $ac_word... " >&6; }
  6310. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6311. $as_echo_n "(cached) " >&6
  6312. else
  6313. if test -n "$ac_ct_LIPO"; then
  6314. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6315. else
  6316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6317. for as_dir in $PATH
  6318. do
  6319. IFS=$as_save_IFS
  6320. test -z "$as_dir" && as_dir=.
  6321. for ac_exec_ext in '' $ac_executable_extensions; do
  6322. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6323. ac_cv_prog_ac_ct_LIPO="lipo"
  6324. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6325. break 2
  6326. fi
  6327. done
  6328. done
  6329. IFS=$as_save_IFS
  6330. fi
  6331. fi
  6332. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6333. if test -n "$ac_ct_LIPO"; then
  6334. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6335. $as_echo "$ac_ct_LIPO" >&6; }
  6336. else
  6337. { $as_echo "$as_me:$LINENO: result: no" >&5
  6338. $as_echo "no" >&6; }
  6339. fi
  6340. if test "x$ac_ct_LIPO" = x; then
  6341. LIPO=":"
  6342. else
  6343. case $cross_compiling:$ac_tool_warned in
  6344. yes:)
  6345. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6347. ac_tool_warned=yes ;;
  6348. esac
  6349. LIPO=$ac_ct_LIPO
  6350. fi
  6351. else
  6352. LIPO="$ac_cv_prog_LIPO"
  6353. fi
  6354. if test -n "$ac_tool_prefix"; then
  6355. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6356. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6357. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6358. $as_echo_n "checking for $ac_word... " >&6; }
  6359. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. if test -n "$OTOOL"; then
  6363. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6364. else
  6365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6366. for as_dir in $PATH
  6367. do
  6368. IFS=$as_save_IFS
  6369. test -z "$as_dir" && as_dir=.
  6370. for ac_exec_ext in '' $ac_executable_extensions; do
  6371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6372. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6373. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6374. break 2
  6375. fi
  6376. done
  6377. done
  6378. IFS=$as_save_IFS
  6379. fi
  6380. fi
  6381. OTOOL=$ac_cv_prog_OTOOL
  6382. if test -n "$OTOOL"; then
  6383. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6384. $as_echo "$OTOOL" >&6; }
  6385. else
  6386. { $as_echo "$as_me:$LINENO: result: no" >&5
  6387. $as_echo "no" >&6; }
  6388. fi
  6389. fi
  6390. if test -z "$ac_cv_prog_OTOOL"; then
  6391. ac_ct_OTOOL=$OTOOL
  6392. # Extract the first word of "otool", so it can be a program name with args.
  6393. set dummy otool; ac_word=$2
  6394. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6395. $as_echo_n "checking for $ac_word... " >&6; }
  6396. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6397. $as_echo_n "(cached) " >&6
  6398. else
  6399. if test -n "$ac_ct_OTOOL"; then
  6400. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6401. else
  6402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6403. for as_dir in $PATH
  6404. do
  6405. IFS=$as_save_IFS
  6406. test -z "$as_dir" && as_dir=.
  6407. for ac_exec_ext in '' $ac_executable_extensions; do
  6408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6409. ac_cv_prog_ac_ct_OTOOL="otool"
  6410. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6411. break 2
  6412. fi
  6413. done
  6414. done
  6415. IFS=$as_save_IFS
  6416. fi
  6417. fi
  6418. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6419. if test -n "$ac_ct_OTOOL"; then
  6420. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6421. $as_echo "$ac_ct_OTOOL" >&6; }
  6422. else
  6423. { $as_echo "$as_me:$LINENO: result: no" >&5
  6424. $as_echo "no" >&6; }
  6425. fi
  6426. if test "x$ac_ct_OTOOL" = x; then
  6427. OTOOL=":"
  6428. else
  6429. case $cross_compiling:$ac_tool_warned in
  6430. yes:)
  6431. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6433. ac_tool_warned=yes ;;
  6434. esac
  6435. OTOOL=$ac_ct_OTOOL
  6436. fi
  6437. else
  6438. OTOOL="$ac_cv_prog_OTOOL"
  6439. fi
  6440. if test -n "$ac_tool_prefix"; then
  6441. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6442. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6443. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6444. $as_echo_n "checking for $ac_word... " >&6; }
  6445. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. if test -n "$OTOOL64"; then
  6449. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6450. else
  6451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6452. for as_dir in $PATH
  6453. do
  6454. IFS=$as_save_IFS
  6455. test -z "$as_dir" && as_dir=.
  6456. for ac_exec_ext in '' $ac_executable_extensions; do
  6457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6458. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6459. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6460. break 2
  6461. fi
  6462. done
  6463. done
  6464. IFS=$as_save_IFS
  6465. fi
  6466. fi
  6467. OTOOL64=$ac_cv_prog_OTOOL64
  6468. if test -n "$OTOOL64"; then
  6469. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6470. $as_echo "$OTOOL64" >&6; }
  6471. else
  6472. { $as_echo "$as_me:$LINENO: result: no" >&5
  6473. $as_echo "no" >&6; }
  6474. fi
  6475. fi
  6476. if test -z "$ac_cv_prog_OTOOL64"; then
  6477. ac_ct_OTOOL64=$OTOOL64
  6478. # Extract the first word of "otool64", so it can be a program name with args.
  6479. set dummy otool64; ac_word=$2
  6480. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6481. $as_echo_n "checking for $ac_word... " >&6; }
  6482. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6483. $as_echo_n "(cached) " >&6
  6484. else
  6485. if test -n "$ac_ct_OTOOL64"; then
  6486. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6487. else
  6488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6489. for as_dir in $PATH
  6490. do
  6491. IFS=$as_save_IFS
  6492. test -z "$as_dir" && as_dir=.
  6493. for ac_exec_ext in '' $ac_executable_extensions; do
  6494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6495. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6496. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6497. break 2
  6498. fi
  6499. done
  6500. done
  6501. IFS=$as_save_IFS
  6502. fi
  6503. fi
  6504. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6505. if test -n "$ac_ct_OTOOL64"; then
  6506. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6507. $as_echo "$ac_ct_OTOOL64" >&6; }
  6508. else
  6509. { $as_echo "$as_me:$LINENO: result: no" >&5
  6510. $as_echo "no" >&6; }
  6511. fi
  6512. if test "x$ac_ct_OTOOL64" = x; then
  6513. OTOOL64=":"
  6514. else
  6515. case $cross_compiling:$ac_tool_warned in
  6516. yes:)
  6517. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6519. ac_tool_warned=yes ;;
  6520. esac
  6521. OTOOL64=$ac_ct_OTOOL64
  6522. fi
  6523. else
  6524. OTOOL64="$ac_cv_prog_OTOOL64"
  6525. fi
  6526. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6527. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6528. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6529. $as_echo_n "(cached) " >&6
  6530. else
  6531. lt_cv_apple_cc_single_mod=no
  6532. if test -z "${LT_MULTI_MODULE}"; then
  6533. # By default we will add the -single_module flag. You can override
  6534. # by either setting the environment variable LT_MULTI_MODULE
  6535. # non-empty at configure time, or by adding -multi_module to the
  6536. # link flags.
  6537. rm -rf libconftest.dylib*
  6538. echo "int foo(void){return 1;}" > conftest.c
  6539. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6540. -dynamiclib -Wl,-single_module conftest.c" >&5
  6541. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6542. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6543. _lt_result=$?
  6544. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6545. lt_cv_apple_cc_single_mod=yes
  6546. else
  6547. cat conftest.err >&5
  6548. fi
  6549. rm -rf libconftest.dylib*
  6550. rm -f conftest.*
  6551. fi
  6552. fi
  6553. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6554. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6555. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6556. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6557. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6558. $as_echo_n "(cached) " >&6
  6559. else
  6560. lt_cv_ld_exported_symbols_list=no
  6561. save_LDFLAGS=$LDFLAGS
  6562. echo "_main" > conftest.sym
  6563. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6564. cat >conftest.$ac_ext <<_ACEOF
  6565. /* confdefs.h. */
  6566. _ACEOF
  6567. cat confdefs.h >>conftest.$ac_ext
  6568. cat >>conftest.$ac_ext <<_ACEOF
  6569. /* end confdefs.h. */
  6570. int
  6571. main ()
  6572. {
  6573. ;
  6574. return 0;
  6575. }
  6576. _ACEOF
  6577. rm -f conftest.$ac_objext conftest$ac_exeext
  6578. if { (ac_try="$ac_link"
  6579. case "(($ac_try" in
  6580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6581. *) ac_try_echo=$ac_try;;
  6582. esac
  6583. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6584. $as_echo "$ac_try_echo") >&5
  6585. (eval "$ac_link") 2>conftest.er1
  6586. ac_status=$?
  6587. grep -v '^ *+' conftest.er1 >conftest.err
  6588. rm -f conftest.er1
  6589. cat conftest.err >&5
  6590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6591. (exit $ac_status); } && {
  6592. test -z "$ac_c_werror_flag" ||
  6593. test ! -s conftest.err
  6594. } && test -s conftest$ac_exeext && {
  6595. test "$cross_compiling" = yes ||
  6596. $as_test_x conftest$ac_exeext
  6597. }; then
  6598. lt_cv_ld_exported_symbols_list=yes
  6599. else
  6600. $as_echo "$as_me: failed program was:" >&5
  6601. sed 's/^/| /' conftest.$ac_ext >&5
  6602. lt_cv_ld_exported_symbols_list=no
  6603. fi
  6604. rm -rf conftest.dSYM
  6605. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6606. conftest$ac_exeext conftest.$ac_ext
  6607. LDFLAGS="$save_LDFLAGS"
  6608. fi
  6609. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6610. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6611. case $host_os in
  6612. rhapsody* | darwin1.[012])
  6613. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6614. darwin1.*)
  6615. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6616. darwin*) # darwin 5.x on
  6617. # if running on 10.5 or later, the deployment target defaults
  6618. # to the OS version, if on x86, and 10.4, the deployment
  6619. # target defaults to 10.4. Don't you love it?
  6620. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6621. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6622. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6623. 10.[012]*)
  6624. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6625. 10.*)
  6626. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6627. esac
  6628. ;;
  6629. esac
  6630. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6631. _lt_dar_single_mod='$single_module'
  6632. fi
  6633. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6634. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6635. else
  6636. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6637. fi
  6638. if test "$DSYMUTIL" != ":"; then
  6639. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6640. else
  6641. _lt_dsymutil=
  6642. fi
  6643. ;;
  6644. esac
  6645. ac_ext=c
  6646. ac_cpp='$CPP $CPPFLAGS'
  6647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6650. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6651. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6652. # On Suns, sometimes $CPP names a directory.
  6653. if test -n "$CPP" && test -d "$CPP"; then
  6654. CPP=
  6655. fi
  6656. if test -z "$CPP"; then
  6657. if test "${ac_cv_prog_CPP+set}" = set; then
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. # Double quotes because CPP needs to be expanded
  6661. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6662. do
  6663. ac_preproc_ok=false
  6664. for ac_c_preproc_warn_flag in '' yes
  6665. do
  6666. # Use a header file that comes with gcc, so configuring glibc
  6667. # with a fresh cross-compiler works.
  6668. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6669. # <limits.h> exists even on freestanding compilers.
  6670. # On the NeXT, cc -E runs the code through the compiler's parser,
  6671. # not just through cpp. "Syntax error" is here to catch this case.
  6672. cat >conftest.$ac_ext <<_ACEOF
  6673. /* confdefs.h. */
  6674. _ACEOF
  6675. cat confdefs.h >>conftest.$ac_ext
  6676. cat >>conftest.$ac_ext <<_ACEOF
  6677. /* end confdefs.h. */
  6678. #ifdef __STDC__
  6679. # include <limits.h>
  6680. #else
  6681. # include <assert.h>
  6682. #endif
  6683. Syntax error
  6684. _ACEOF
  6685. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6686. case "(($ac_try" in
  6687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6688. *) ac_try_echo=$ac_try;;
  6689. esac
  6690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6691. $as_echo "$ac_try_echo") >&5
  6692. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6693. ac_status=$?
  6694. grep -v '^ *+' conftest.er1 >conftest.err
  6695. rm -f conftest.er1
  6696. cat conftest.err >&5
  6697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6698. (exit $ac_status); } >/dev/null && {
  6699. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6700. test ! -s conftest.err
  6701. }; then
  6702. :
  6703. else
  6704. $as_echo "$as_me: failed program was:" >&5
  6705. sed 's/^/| /' conftest.$ac_ext >&5
  6706. # Broken: fails on valid input.
  6707. continue
  6708. fi
  6709. rm -f conftest.err conftest.$ac_ext
  6710. # OK, works on sane cases. Now check whether nonexistent headers
  6711. # can be detected and how.
  6712. cat >conftest.$ac_ext <<_ACEOF
  6713. /* confdefs.h. */
  6714. _ACEOF
  6715. cat confdefs.h >>conftest.$ac_ext
  6716. cat >>conftest.$ac_ext <<_ACEOF
  6717. /* end confdefs.h. */
  6718. #include <ac_nonexistent.h>
  6719. _ACEOF
  6720. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6721. case "(($ac_try" in
  6722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6723. *) ac_try_echo=$ac_try;;
  6724. esac
  6725. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6726. $as_echo "$ac_try_echo") >&5
  6727. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6728. ac_status=$?
  6729. grep -v '^ *+' conftest.er1 >conftest.err
  6730. rm -f conftest.er1
  6731. cat conftest.err >&5
  6732. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6733. (exit $ac_status); } >/dev/null && {
  6734. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6735. test ! -s conftest.err
  6736. }; then
  6737. # Broken: success on invalid input.
  6738. continue
  6739. else
  6740. $as_echo "$as_me: failed program was:" >&5
  6741. sed 's/^/| /' conftest.$ac_ext >&5
  6742. # Passes both tests.
  6743. ac_preproc_ok=:
  6744. break
  6745. fi
  6746. rm -f conftest.err conftest.$ac_ext
  6747. done
  6748. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6749. rm -f conftest.err conftest.$ac_ext
  6750. if $ac_preproc_ok; then
  6751. break
  6752. fi
  6753. done
  6754. ac_cv_prog_CPP=$CPP
  6755. fi
  6756. CPP=$ac_cv_prog_CPP
  6757. else
  6758. ac_cv_prog_CPP=$CPP
  6759. fi
  6760. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6761. $as_echo "$CPP" >&6; }
  6762. ac_preproc_ok=false
  6763. for ac_c_preproc_warn_flag in '' yes
  6764. do
  6765. # Use a header file that comes with gcc, so configuring glibc
  6766. # with a fresh cross-compiler works.
  6767. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6768. # <limits.h> exists even on freestanding compilers.
  6769. # On the NeXT, cc -E runs the code through the compiler's parser,
  6770. # not just through cpp. "Syntax error" is here to catch this case.
  6771. cat >conftest.$ac_ext <<_ACEOF
  6772. /* confdefs.h. */
  6773. _ACEOF
  6774. cat confdefs.h >>conftest.$ac_ext
  6775. cat >>conftest.$ac_ext <<_ACEOF
  6776. /* end confdefs.h. */
  6777. #ifdef __STDC__
  6778. # include <limits.h>
  6779. #else
  6780. # include <assert.h>
  6781. #endif
  6782. Syntax error
  6783. _ACEOF
  6784. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6785. case "(($ac_try" in
  6786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6787. *) ac_try_echo=$ac_try;;
  6788. esac
  6789. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6790. $as_echo "$ac_try_echo") >&5
  6791. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6792. ac_status=$?
  6793. grep -v '^ *+' conftest.er1 >conftest.err
  6794. rm -f conftest.er1
  6795. cat conftest.err >&5
  6796. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6797. (exit $ac_status); } >/dev/null && {
  6798. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6799. test ! -s conftest.err
  6800. }; then
  6801. :
  6802. else
  6803. $as_echo "$as_me: failed program was:" >&5
  6804. sed 's/^/| /' conftest.$ac_ext >&5
  6805. # Broken: fails on valid input.
  6806. continue
  6807. fi
  6808. rm -f conftest.err conftest.$ac_ext
  6809. # OK, works on sane cases. Now check whether nonexistent headers
  6810. # can be detected and how.
  6811. cat >conftest.$ac_ext <<_ACEOF
  6812. /* confdefs.h. */
  6813. _ACEOF
  6814. cat confdefs.h >>conftest.$ac_ext
  6815. cat >>conftest.$ac_ext <<_ACEOF
  6816. /* end confdefs.h. */
  6817. #include <ac_nonexistent.h>
  6818. _ACEOF
  6819. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6820. case "(($ac_try" in
  6821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6822. *) ac_try_echo=$ac_try;;
  6823. esac
  6824. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6825. $as_echo "$ac_try_echo") >&5
  6826. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6827. ac_status=$?
  6828. grep -v '^ *+' conftest.er1 >conftest.err
  6829. rm -f conftest.er1
  6830. cat conftest.err >&5
  6831. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6832. (exit $ac_status); } >/dev/null && {
  6833. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6834. test ! -s conftest.err
  6835. }; then
  6836. # Broken: success on invalid input.
  6837. continue
  6838. else
  6839. $as_echo "$as_me: failed program was:" >&5
  6840. sed 's/^/| /' conftest.$ac_ext >&5
  6841. # Passes both tests.
  6842. ac_preproc_ok=:
  6843. break
  6844. fi
  6845. rm -f conftest.err conftest.$ac_ext
  6846. done
  6847. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6848. rm -f conftest.err conftest.$ac_ext
  6849. if $ac_preproc_ok; then
  6850. :
  6851. else
  6852. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  6853. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6854. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6855. See \`config.log' for more details." >&5
  6856. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6857. See \`config.log' for more details." >&2;}
  6858. { (exit 1); exit 1; }; }; }
  6859. fi
  6860. ac_ext=c
  6861. ac_cpp='$CPP $CPPFLAGS'
  6862. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6863. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6864. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6865. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6866. $as_echo_n "checking for ANSI C header files... " >&6; }
  6867. if test "${ac_cv_header_stdc+set}" = set; then
  6868. $as_echo_n "(cached) " >&6
  6869. else
  6870. cat >conftest.$ac_ext <<_ACEOF
  6871. /* confdefs.h. */
  6872. _ACEOF
  6873. cat confdefs.h >>conftest.$ac_ext
  6874. cat >>conftest.$ac_ext <<_ACEOF
  6875. /* end confdefs.h. */
  6876. #include <stdlib.h>
  6877. #include <stdarg.h>
  6878. #include <string.h>
  6879. #include <float.h>
  6880. int
  6881. main ()
  6882. {
  6883. ;
  6884. return 0;
  6885. }
  6886. _ACEOF
  6887. rm -f conftest.$ac_objext
  6888. if { (ac_try="$ac_compile"
  6889. case "(($ac_try" in
  6890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6891. *) ac_try_echo=$ac_try;;
  6892. esac
  6893. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6894. $as_echo "$ac_try_echo") >&5
  6895. (eval "$ac_compile") 2>conftest.er1
  6896. ac_status=$?
  6897. grep -v '^ *+' conftest.er1 >conftest.err
  6898. rm -f conftest.er1
  6899. cat conftest.err >&5
  6900. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6901. (exit $ac_status); } && {
  6902. test -z "$ac_c_werror_flag" ||
  6903. test ! -s conftest.err
  6904. } && test -s conftest.$ac_objext; then
  6905. ac_cv_header_stdc=yes
  6906. else
  6907. $as_echo "$as_me: failed program was:" >&5
  6908. sed 's/^/| /' conftest.$ac_ext >&5
  6909. ac_cv_header_stdc=no
  6910. fi
  6911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6912. if test $ac_cv_header_stdc = yes; then
  6913. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6914. cat >conftest.$ac_ext <<_ACEOF
  6915. /* confdefs.h. */
  6916. _ACEOF
  6917. cat confdefs.h >>conftest.$ac_ext
  6918. cat >>conftest.$ac_ext <<_ACEOF
  6919. /* end confdefs.h. */
  6920. #include <string.h>
  6921. _ACEOF
  6922. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6923. $EGREP "memchr" >/dev/null 2>&1; then
  6924. :
  6925. else
  6926. ac_cv_header_stdc=no
  6927. fi
  6928. rm -f conftest*
  6929. fi
  6930. if test $ac_cv_header_stdc = yes; then
  6931. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6932. cat >conftest.$ac_ext <<_ACEOF
  6933. /* confdefs.h. */
  6934. _ACEOF
  6935. cat confdefs.h >>conftest.$ac_ext
  6936. cat >>conftest.$ac_ext <<_ACEOF
  6937. /* end confdefs.h. */
  6938. #include <stdlib.h>
  6939. _ACEOF
  6940. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6941. $EGREP "free" >/dev/null 2>&1; then
  6942. :
  6943. else
  6944. ac_cv_header_stdc=no
  6945. fi
  6946. rm -f conftest*
  6947. fi
  6948. if test $ac_cv_header_stdc = yes; then
  6949. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6950. if test "$cross_compiling" = yes; then
  6951. :
  6952. else
  6953. cat >conftest.$ac_ext <<_ACEOF
  6954. /* confdefs.h. */
  6955. _ACEOF
  6956. cat confdefs.h >>conftest.$ac_ext
  6957. cat >>conftest.$ac_ext <<_ACEOF
  6958. /* end confdefs.h. */
  6959. #include <ctype.h>
  6960. #include <stdlib.h>
  6961. #if ((' ' & 0x0FF) == 0x020)
  6962. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6963. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6964. #else
  6965. # define ISLOWER(c) \
  6966. (('a' <= (c) && (c) <= 'i') \
  6967. || ('j' <= (c) && (c) <= 'r') \
  6968. || ('s' <= (c) && (c) <= 'z'))
  6969. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6970. #endif
  6971. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6972. int
  6973. main ()
  6974. {
  6975. int i;
  6976. for (i = 0; i < 256; i++)
  6977. if (XOR (islower (i), ISLOWER (i))
  6978. || toupper (i) != TOUPPER (i))
  6979. return 2;
  6980. return 0;
  6981. }
  6982. _ACEOF
  6983. rm -f conftest$ac_exeext
  6984. if { (ac_try="$ac_link"
  6985. case "(($ac_try" in
  6986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6987. *) ac_try_echo=$ac_try;;
  6988. esac
  6989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6990. $as_echo "$ac_try_echo") >&5
  6991. (eval "$ac_link") 2>&5
  6992. ac_status=$?
  6993. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6994. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6995. { (case "(($ac_try" in
  6996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6997. *) ac_try_echo=$ac_try;;
  6998. esac
  6999. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7000. $as_echo "$ac_try_echo") >&5
  7001. (eval "$ac_try") 2>&5
  7002. ac_status=$?
  7003. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7004. (exit $ac_status); }; }; then
  7005. :
  7006. else
  7007. $as_echo "$as_me: program exited with status $ac_status" >&5
  7008. $as_echo "$as_me: failed program was:" >&5
  7009. sed 's/^/| /' conftest.$ac_ext >&5
  7010. ( exit $ac_status )
  7011. ac_cv_header_stdc=no
  7012. fi
  7013. rm -rf conftest.dSYM
  7014. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7015. fi
  7016. fi
  7017. fi
  7018. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7019. $as_echo "$ac_cv_header_stdc" >&6; }
  7020. if test $ac_cv_header_stdc = yes; then
  7021. cat >>confdefs.h <<\_ACEOF
  7022. #define STDC_HEADERS 1
  7023. _ACEOF
  7024. fi
  7025. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7026. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7027. inttypes.h stdint.h unistd.h
  7028. do
  7029. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7030. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7031. $as_echo_n "checking for $ac_header... " >&6; }
  7032. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7033. $as_echo_n "(cached) " >&6
  7034. else
  7035. cat >conftest.$ac_ext <<_ACEOF
  7036. /* confdefs.h. */
  7037. _ACEOF
  7038. cat confdefs.h >>conftest.$ac_ext
  7039. cat >>conftest.$ac_ext <<_ACEOF
  7040. /* end confdefs.h. */
  7041. $ac_includes_default
  7042. #include <$ac_header>
  7043. _ACEOF
  7044. rm -f conftest.$ac_objext
  7045. if { (ac_try="$ac_compile"
  7046. case "(($ac_try" in
  7047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7048. *) ac_try_echo=$ac_try;;
  7049. esac
  7050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7051. $as_echo "$ac_try_echo") >&5
  7052. (eval "$ac_compile") 2>conftest.er1
  7053. ac_status=$?
  7054. grep -v '^ *+' conftest.er1 >conftest.err
  7055. rm -f conftest.er1
  7056. cat conftest.err >&5
  7057. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7058. (exit $ac_status); } && {
  7059. test -z "$ac_c_werror_flag" ||
  7060. test ! -s conftest.err
  7061. } && test -s conftest.$ac_objext; then
  7062. eval "$as_ac_Header=yes"
  7063. else
  7064. $as_echo "$as_me: failed program was:" >&5
  7065. sed 's/^/| /' conftest.$ac_ext >&5
  7066. eval "$as_ac_Header=no"
  7067. fi
  7068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7069. fi
  7070. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7071. $as_echo "$as_val"'`
  7072. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7073. $as_echo "$ac_res" >&6; }
  7074. as_val=`eval 'as_val=${'$as_ac_Header'}
  7075. $as_echo "$as_val"'`
  7076. if test "x$as_val" = x""yes; then
  7077. cat >>confdefs.h <<_ACEOF
  7078. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7079. _ACEOF
  7080. fi
  7081. done
  7082. for ac_header in dlfcn.h
  7083. do
  7084. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7085. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7086. $as_echo_n "checking for $ac_header... " >&6; }
  7087. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7088. $as_echo_n "(cached) " >&6
  7089. else
  7090. cat >conftest.$ac_ext <<_ACEOF
  7091. /* confdefs.h. */
  7092. _ACEOF
  7093. cat confdefs.h >>conftest.$ac_ext
  7094. cat >>conftest.$ac_ext <<_ACEOF
  7095. /* end confdefs.h. */
  7096. $ac_includes_default
  7097. #include <$ac_header>
  7098. _ACEOF
  7099. rm -f conftest.$ac_objext
  7100. if { (ac_try="$ac_compile"
  7101. case "(($ac_try" in
  7102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7103. *) ac_try_echo=$ac_try;;
  7104. esac
  7105. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7106. $as_echo "$ac_try_echo") >&5
  7107. (eval "$ac_compile") 2>conftest.er1
  7108. ac_status=$?
  7109. grep -v '^ *+' conftest.er1 >conftest.err
  7110. rm -f conftest.er1
  7111. cat conftest.err >&5
  7112. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7113. (exit $ac_status); } && {
  7114. test -z "$ac_c_werror_flag" ||
  7115. test ! -s conftest.err
  7116. } && test -s conftest.$ac_objext; then
  7117. eval "$as_ac_Header=yes"
  7118. else
  7119. $as_echo "$as_me: failed program was:" >&5
  7120. sed 's/^/| /' conftest.$ac_ext >&5
  7121. eval "$as_ac_Header=no"
  7122. fi
  7123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7124. fi
  7125. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7126. $as_echo "$as_val"'`
  7127. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7128. $as_echo "$ac_res" >&6; }
  7129. as_val=`eval 'as_val=${'$as_ac_Header'}
  7130. $as_echo "$as_val"'`
  7131. if test "x$as_val" = x""yes; then
  7132. cat >>confdefs.h <<_ACEOF
  7133. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7134. _ACEOF
  7135. fi
  7136. done
  7137. ac_ext=cpp
  7138. ac_cpp='$CXXCPP $CPPFLAGS'
  7139. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7140. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7141. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7142. if test -z "$CXX"; then
  7143. if test -n "$CCC"; then
  7144. CXX=$CCC
  7145. else
  7146. if test -n "$ac_tool_prefix"; then
  7147. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7148. do
  7149. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7150. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7151. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7152. $as_echo_n "checking for $ac_word... " >&6; }
  7153. if test "${ac_cv_prog_CXX+set}" = set; then
  7154. $as_echo_n "(cached) " >&6
  7155. else
  7156. if test -n "$CXX"; then
  7157. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7158. else
  7159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7160. for as_dir in $PATH
  7161. do
  7162. IFS=$as_save_IFS
  7163. test -z "$as_dir" && as_dir=.
  7164. for ac_exec_ext in '' $ac_executable_extensions; do
  7165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7166. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7167. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7168. break 2
  7169. fi
  7170. done
  7171. done
  7172. IFS=$as_save_IFS
  7173. fi
  7174. fi
  7175. CXX=$ac_cv_prog_CXX
  7176. if test -n "$CXX"; then
  7177. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  7178. $as_echo "$CXX" >&6; }
  7179. else
  7180. { $as_echo "$as_me:$LINENO: result: no" >&5
  7181. $as_echo "no" >&6; }
  7182. fi
  7183. test -n "$CXX" && break
  7184. done
  7185. fi
  7186. if test -z "$CXX"; then
  7187. ac_ct_CXX=$CXX
  7188. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7189. do
  7190. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7191. set dummy $ac_prog; ac_word=$2
  7192. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  7193. $as_echo_n "checking for $ac_word... " >&6; }
  7194. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. if test -n "$ac_ct_CXX"; then
  7198. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7199. else
  7200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7201. for as_dir in $PATH
  7202. do
  7203. IFS=$as_save_IFS
  7204. test -z "$as_dir" && as_dir=.
  7205. for ac_exec_ext in '' $ac_executable_extensions; do
  7206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7207. ac_cv_prog_ac_ct_CXX="$ac_prog"
  7208. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7209. break 2
  7210. fi
  7211. done
  7212. done
  7213. IFS=$as_save_IFS
  7214. fi
  7215. fi
  7216. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  7217. if test -n "$ac_ct_CXX"; then
  7218. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  7219. $as_echo "$ac_ct_CXX" >&6; }
  7220. else
  7221. { $as_echo "$as_me:$LINENO: result: no" >&5
  7222. $as_echo "no" >&6; }
  7223. fi
  7224. test -n "$ac_ct_CXX" && break
  7225. done
  7226. if test "x$ac_ct_CXX" = x; then
  7227. CXX="g++"
  7228. else
  7229. case $cross_compiling:$ac_tool_warned in
  7230. yes:)
  7231. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  7232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7233. ac_tool_warned=yes ;;
  7234. esac
  7235. CXX=$ac_ct_CXX
  7236. fi
  7237. fi
  7238. fi
  7239. fi
  7240. # Provide some information about the compiler.
  7241. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  7242. set X $ac_compile
  7243. ac_compiler=$2
  7244. { (ac_try="$ac_compiler --version >&5"
  7245. case "(($ac_try" in
  7246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7247. *) ac_try_echo=$ac_try;;
  7248. esac
  7249. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7250. $as_echo "$ac_try_echo") >&5
  7251. (eval "$ac_compiler --version >&5") 2>&5
  7252. ac_status=$?
  7253. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. (exit $ac_status); }
  7255. { (ac_try="$ac_compiler -v >&5"
  7256. case "(($ac_try" in
  7257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7258. *) ac_try_echo=$ac_try;;
  7259. esac
  7260. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7261. $as_echo "$ac_try_echo") >&5
  7262. (eval "$ac_compiler -v >&5") 2>&5
  7263. ac_status=$?
  7264. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. (exit $ac_status); }
  7266. { (ac_try="$ac_compiler -V >&5"
  7267. case "(($ac_try" in
  7268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7269. *) ac_try_echo=$ac_try;;
  7270. esac
  7271. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7272. $as_echo "$ac_try_echo") >&5
  7273. (eval "$ac_compiler -V >&5") 2>&5
  7274. ac_status=$?
  7275. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7276. (exit $ac_status); }
  7277. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  7278. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7279. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  7280. $as_echo_n "(cached) " >&6
  7281. else
  7282. cat >conftest.$ac_ext <<_ACEOF
  7283. /* confdefs.h. */
  7284. _ACEOF
  7285. cat confdefs.h >>conftest.$ac_ext
  7286. cat >>conftest.$ac_ext <<_ACEOF
  7287. /* end confdefs.h. */
  7288. int
  7289. main ()
  7290. {
  7291. #ifndef __GNUC__
  7292. choke me
  7293. #endif
  7294. ;
  7295. return 0;
  7296. }
  7297. _ACEOF
  7298. rm -f conftest.$ac_objext
  7299. if { (ac_try="$ac_compile"
  7300. case "(($ac_try" in
  7301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7302. *) ac_try_echo=$ac_try;;
  7303. esac
  7304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7305. $as_echo "$ac_try_echo") >&5
  7306. (eval "$ac_compile") 2>conftest.er1
  7307. ac_status=$?
  7308. grep -v '^ *+' conftest.er1 >conftest.err
  7309. rm -f conftest.er1
  7310. cat conftest.err >&5
  7311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7312. (exit $ac_status); } && {
  7313. test -z "$ac_cxx_werror_flag" ||
  7314. test ! -s conftest.err
  7315. } && test -s conftest.$ac_objext; then
  7316. ac_compiler_gnu=yes
  7317. else
  7318. $as_echo "$as_me: failed program was:" >&5
  7319. sed 's/^/| /' conftest.$ac_ext >&5
  7320. ac_compiler_gnu=no
  7321. fi
  7322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7323. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7324. fi
  7325. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  7326. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7327. if test $ac_compiler_gnu = yes; then
  7328. GXX=yes
  7329. else
  7330. GXX=
  7331. fi
  7332. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7333. ac_save_CXXFLAGS=$CXXFLAGS
  7334. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  7335. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7336. if test "${ac_cv_prog_cxx_g+set}" = set; then
  7337. $as_echo_n "(cached) " >&6
  7338. else
  7339. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7340. ac_cxx_werror_flag=yes
  7341. ac_cv_prog_cxx_g=no
  7342. CXXFLAGS="-g"
  7343. cat >conftest.$ac_ext <<_ACEOF
  7344. /* confdefs.h. */
  7345. _ACEOF
  7346. cat confdefs.h >>conftest.$ac_ext
  7347. cat >>conftest.$ac_ext <<_ACEOF
  7348. /* end confdefs.h. */
  7349. int
  7350. main ()
  7351. {
  7352. ;
  7353. return 0;
  7354. }
  7355. _ACEOF
  7356. rm -f conftest.$ac_objext
  7357. if { (ac_try="$ac_compile"
  7358. case "(($ac_try" in
  7359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7360. *) ac_try_echo=$ac_try;;
  7361. esac
  7362. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7363. $as_echo "$ac_try_echo") >&5
  7364. (eval "$ac_compile") 2>conftest.er1
  7365. ac_status=$?
  7366. grep -v '^ *+' conftest.er1 >conftest.err
  7367. rm -f conftest.er1
  7368. cat conftest.err >&5
  7369. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. (exit $ac_status); } && {
  7371. test -z "$ac_cxx_werror_flag" ||
  7372. test ! -s conftest.err
  7373. } && test -s conftest.$ac_objext; then
  7374. ac_cv_prog_cxx_g=yes
  7375. else
  7376. $as_echo "$as_me: failed program was:" >&5
  7377. sed 's/^/| /' conftest.$ac_ext >&5
  7378. CXXFLAGS=""
  7379. cat >conftest.$ac_ext <<_ACEOF
  7380. /* confdefs.h. */
  7381. _ACEOF
  7382. cat confdefs.h >>conftest.$ac_ext
  7383. cat >>conftest.$ac_ext <<_ACEOF
  7384. /* end confdefs.h. */
  7385. int
  7386. main ()
  7387. {
  7388. ;
  7389. return 0;
  7390. }
  7391. _ACEOF
  7392. rm -f conftest.$ac_objext
  7393. if { (ac_try="$ac_compile"
  7394. case "(($ac_try" in
  7395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7396. *) ac_try_echo=$ac_try;;
  7397. esac
  7398. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7399. $as_echo "$ac_try_echo") >&5
  7400. (eval "$ac_compile") 2>conftest.er1
  7401. ac_status=$?
  7402. grep -v '^ *+' conftest.er1 >conftest.err
  7403. rm -f conftest.er1
  7404. cat conftest.err >&5
  7405. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7406. (exit $ac_status); } && {
  7407. test -z "$ac_cxx_werror_flag" ||
  7408. test ! -s conftest.err
  7409. } && test -s conftest.$ac_objext; then
  7410. :
  7411. else
  7412. $as_echo "$as_me: failed program was:" >&5
  7413. sed 's/^/| /' conftest.$ac_ext >&5
  7414. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7415. CXXFLAGS="-g"
  7416. cat >conftest.$ac_ext <<_ACEOF
  7417. /* confdefs.h. */
  7418. _ACEOF
  7419. cat confdefs.h >>conftest.$ac_ext
  7420. cat >>conftest.$ac_ext <<_ACEOF
  7421. /* end confdefs.h. */
  7422. int
  7423. main ()
  7424. {
  7425. ;
  7426. return 0;
  7427. }
  7428. _ACEOF
  7429. rm -f conftest.$ac_objext
  7430. if { (ac_try="$ac_compile"
  7431. case "(($ac_try" in
  7432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7433. *) ac_try_echo=$ac_try;;
  7434. esac
  7435. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7436. $as_echo "$ac_try_echo") >&5
  7437. (eval "$ac_compile") 2>conftest.er1
  7438. ac_status=$?
  7439. grep -v '^ *+' conftest.er1 >conftest.err
  7440. rm -f conftest.er1
  7441. cat conftest.err >&5
  7442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7443. (exit $ac_status); } && {
  7444. test -z "$ac_cxx_werror_flag" ||
  7445. test ! -s conftest.err
  7446. } && test -s conftest.$ac_objext; then
  7447. ac_cv_prog_cxx_g=yes
  7448. else
  7449. $as_echo "$as_me: failed program was:" >&5
  7450. sed 's/^/| /' conftest.$ac_ext >&5
  7451. fi
  7452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7453. fi
  7454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7455. fi
  7456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7457. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7458. fi
  7459. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  7460. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7461. if test "$ac_test_CXXFLAGS" = set; then
  7462. CXXFLAGS=$ac_save_CXXFLAGS
  7463. elif test $ac_cv_prog_cxx_g = yes; then
  7464. if test "$GXX" = yes; then
  7465. CXXFLAGS="-g -O2"
  7466. else
  7467. CXXFLAGS="-g"
  7468. fi
  7469. else
  7470. if test "$GXX" = yes; then
  7471. CXXFLAGS="-O2"
  7472. else
  7473. CXXFLAGS=
  7474. fi
  7475. fi
  7476. ac_ext=c
  7477. ac_cpp='$CPP $CPPFLAGS'
  7478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7481. depcc="$CXX" am_compiler_list=
  7482. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  7483. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7484. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7488. # We make a subdir and do the tests there. Otherwise we can end up
  7489. # making bogus files that we don't know about and never remove. For
  7490. # instance it was reported that on HP-UX the gcc test will end up
  7491. # making a dummy file named `D' -- because `-MD' means `put the output
  7492. # in D'.
  7493. mkdir conftest.dir
  7494. # Copy depcomp to subdir because otherwise we won't find it if we're
  7495. # using a relative directory.
  7496. cp "$am_depcomp" conftest.dir
  7497. cd conftest.dir
  7498. # We will build objects and dependencies in a subdirectory because
  7499. # it helps to detect inapplicable dependency modes. For instance
  7500. # both Tru64's cc and ICC support -MD to output dependencies as a
  7501. # side effect of compilation, but ICC will put the dependencies in
  7502. # the current directory while Tru64 will put them in the object
  7503. # directory.
  7504. mkdir sub
  7505. am_cv_CXX_dependencies_compiler_type=none
  7506. if test "$am_compiler_list" = ""; then
  7507. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7508. fi
  7509. am__universal=false
  7510. case " $depcc " in #(
  7511. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7512. esac
  7513. for depmode in $am_compiler_list; do
  7514. # Setup a source with many dependencies, because some compilers
  7515. # like to wrap large dependency lists on column 80 (with \), and
  7516. # we should not choose a depcomp mode which is confused by this.
  7517. #
  7518. # We need to recreate these files for each test, as the compiler may
  7519. # overwrite some of them when testing with obscure command lines.
  7520. # This happens at least with the AIX C compiler.
  7521. : > sub/conftest.c
  7522. for i in 1 2 3 4 5 6; do
  7523. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7524. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7525. # Solaris 8's {/usr,}/bin/sh.
  7526. touch sub/conftst$i.h
  7527. done
  7528. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7529. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7530. # mode. It turns out that the SunPro C++ compiler does not properly
  7531. # handle `-M -o', and we need to detect this. Also, some Intel
  7532. # versions had trouble with output in subdirs
  7533. am__obj=sub/conftest.${OBJEXT-o}
  7534. am__minus_obj="-o $am__obj"
  7535. case $depmode in
  7536. gcc)
  7537. # This depmode causes a compiler race in universal mode.
  7538. test "$am__universal" = false || continue
  7539. ;;
  7540. nosideeffect)
  7541. # after this tag, mechanisms are not by side-effect, so they'll
  7542. # only be used when explicitly requested
  7543. if test "x$enable_dependency_tracking" = xyes; then
  7544. continue
  7545. else
  7546. break
  7547. fi
  7548. ;;
  7549. msvisualcpp | msvcmsys)
  7550. # This compiler won't grok `-c -o', but also, the minuso test has
  7551. # not run yet. These depmodes are late enough in the game, and
  7552. # so weak that their functioning should not be impacted.
  7553. am__obj=conftest.${OBJEXT-o}
  7554. am__minus_obj=
  7555. ;;
  7556. none) break ;;
  7557. esac
  7558. if depmode=$depmode \
  7559. source=sub/conftest.c object=$am__obj \
  7560. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7561. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7562. >/dev/null 2>conftest.err &&
  7563. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7564. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7565. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7566. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7567. # icc doesn't choke on unknown options, it will just issue warnings
  7568. # or remarks (even with -Werror). So we grep stderr for any message
  7569. # that says an option was ignored or not supported.
  7570. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7571. # icc: Command line warning: ignoring option '-M'; no argument required
  7572. # The diagnosis changed in icc 8.0:
  7573. # icc: Command line remark: option '-MP' not supported
  7574. if (grep 'ignoring option' conftest.err ||
  7575. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7576. am_cv_CXX_dependencies_compiler_type=$depmode
  7577. break
  7578. fi
  7579. fi
  7580. done
  7581. cd ..
  7582. rm -rf conftest.dir
  7583. else
  7584. am_cv_CXX_dependencies_compiler_type=none
  7585. fi
  7586. fi
  7587. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7588. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7589. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7590. if
  7591. test "x$enable_dependency_tracking" != xno \
  7592. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7593. am__fastdepCXX_TRUE=
  7594. am__fastdepCXX_FALSE='#'
  7595. else
  7596. am__fastdepCXX_TRUE='#'
  7597. am__fastdepCXX_FALSE=
  7598. fi
  7599. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7600. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7601. (test "X$CXX" != "Xg++"))) ; then
  7602. ac_ext=cpp
  7603. ac_cpp='$CXXCPP $CPPFLAGS'
  7604. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7605. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7606. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7607. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  7608. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7609. if test -z "$CXXCPP"; then
  7610. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  7611. $as_echo_n "(cached) " >&6
  7612. else
  7613. # Double quotes because CXXCPP needs to be expanded
  7614. for CXXCPP in "$CXX -E" "/lib/cpp"
  7615. do
  7616. ac_preproc_ok=false
  7617. for ac_cxx_preproc_warn_flag in '' yes
  7618. do
  7619. # Use a header file that comes with gcc, so configuring glibc
  7620. # with a fresh cross-compiler works.
  7621. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7622. # <limits.h> exists even on freestanding compilers.
  7623. # On the NeXT, cc -E runs the code through the compiler's parser,
  7624. # not just through cpp. "Syntax error" is here to catch this case.
  7625. cat >conftest.$ac_ext <<_ACEOF
  7626. /* confdefs.h. */
  7627. _ACEOF
  7628. cat confdefs.h >>conftest.$ac_ext
  7629. cat >>conftest.$ac_ext <<_ACEOF
  7630. /* end confdefs.h. */
  7631. #ifdef __STDC__
  7632. # include <limits.h>
  7633. #else
  7634. # include <assert.h>
  7635. #endif
  7636. Syntax error
  7637. _ACEOF
  7638. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7639. case "(($ac_try" in
  7640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7641. *) ac_try_echo=$ac_try;;
  7642. esac
  7643. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7644. $as_echo "$ac_try_echo") >&5
  7645. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7646. ac_status=$?
  7647. grep -v '^ *+' conftest.er1 >conftest.err
  7648. rm -f conftest.er1
  7649. cat conftest.err >&5
  7650. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. (exit $ac_status); } >/dev/null && {
  7652. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7653. test ! -s conftest.err
  7654. }; then
  7655. :
  7656. else
  7657. $as_echo "$as_me: failed program was:" >&5
  7658. sed 's/^/| /' conftest.$ac_ext >&5
  7659. # Broken: fails on valid input.
  7660. continue
  7661. fi
  7662. rm -f conftest.err conftest.$ac_ext
  7663. # OK, works on sane cases. Now check whether nonexistent headers
  7664. # can be detected and how.
  7665. cat >conftest.$ac_ext <<_ACEOF
  7666. /* confdefs.h. */
  7667. _ACEOF
  7668. cat confdefs.h >>conftest.$ac_ext
  7669. cat >>conftest.$ac_ext <<_ACEOF
  7670. /* end confdefs.h. */
  7671. #include <ac_nonexistent.h>
  7672. _ACEOF
  7673. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7674. case "(($ac_try" in
  7675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7676. *) ac_try_echo=$ac_try;;
  7677. esac
  7678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7679. $as_echo "$ac_try_echo") >&5
  7680. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7681. ac_status=$?
  7682. grep -v '^ *+' conftest.er1 >conftest.err
  7683. rm -f conftest.er1
  7684. cat conftest.err >&5
  7685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7686. (exit $ac_status); } >/dev/null && {
  7687. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7688. test ! -s conftest.err
  7689. }; then
  7690. # Broken: success on invalid input.
  7691. continue
  7692. else
  7693. $as_echo "$as_me: failed program was:" >&5
  7694. sed 's/^/| /' conftest.$ac_ext >&5
  7695. # Passes both tests.
  7696. ac_preproc_ok=:
  7697. break
  7698. fi
  7699. rm -f conftest.err conftest.$ac_ext
  7700. done
  7701. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7702. rm -f conftest.err conftest.$ac_ext
  7703. if $ac_preproc_ok; then
  7704. break
  7705. fi
  7706. done
  7707. ac_cv_prog_CXXCPP=$CXXCPP
  7708. fi
  7709. CXXCPP=$ac_cv_prog_CXXCPP
  7710. else
  7711. ac_cv_prog_CXXCPP=$CXXCPP
  7712. fi
  7713. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  7714. $as_echo "$CXXCPP" >&6; }
  7715. ac_preproc_ok=false
  7716. for ac_cxx_preproc_warn_flag in '' yes
  7717. do
  7718. # Use a header file that comes with gcc, so configuring glibc
  7719. # with a fresh cross-compiler works.
  7720. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7721. # <limits.h> exists even on freestanding compilers.
  7722. # On the NeXT, cc -E runs the code through the compiler's parser,
  7723. # not just through cpp. "Syntax error" is here to catch this case.
  7724. cat >conftest.$ac_ext <<_ACEOF
  7725. /* confdefs.h. */
  7726. _ACEOF
  7727. cat confdefs.h >>conftest.$ac_ext
  7728. cat >>conftest.$ac_ext <<_ACEOF
  7729. /* end confdefs.h. */
  7730. #ifdef __STDC__
  7731. # include <limits.h>
  7732. #else
  7733. # include <assert.h>
  7734. #endif
  7735. Syntax error
  7736. _ACEOF
  7737. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7738. case "(($ac_try" in
  7739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7740. *) ac_try_echo=$ac_try;;
  7741. esac
  7742. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7743. $as_echo "$ac_try_echo") >&5
  7744. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7745. ac_status=$?
  7746. grep -v '^ *+' conftest.er1 >conftest.err
  7747. rm -f conftest.er1
  7748. cat conftest.err >&5
  7749. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7750. (exit $ac_status); } >/dev/null && {
  7751. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7752. test ! -s conftest.err
  7753. }; then
  7754. :
  7755. else
  7756. $as_echo "$as_me: failed program was:" >&5
  7757. sed 's/^/| /' conftest.$ac_ext >&5
  7758. # Broken: fails on valid input.
  7759. continue
  7760. fi
  7761. rm -f conftest.err conftest.$ac_ext
  7762. # OK, works on sane cases. Now check whether nonexistent headers
  7763. # can be detected and how.
  7764. cat >conftest.$ac_ext <<_ACEOF
  7765. /* confdefs.h. */
  7766. _ACEOF
  7767. cat confdefs.h >>conftest.$ac_ext
  7768. cat >>conftest.$ac_ext <<_ACEOF
  7769. /* end confdefs.h. */
  7770. #include <ac_nonexistent.h>
  7771. _ACEOF
  7772. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7773. case "(($ac_try" in
  7774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7775. *) ac_try_echo=$ac_try;;
  7776. esac
  7777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7778. $as_echo "$ac_try_echo") >&5
  7779. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7780. ac_status=$?
  7781. grep -v '^ *+' conftest.er1 >conftest.err
  7782. rm -f conftest.er1
  7783. cat conftest.err >&5
  7784. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7785. (exit $ac_status); } >/dev/null && {
  7786. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7787. test ! -s conftest.err
  7788. }; then
  7789. # Broken: success on invalid input.
  7790. continue
  7791. else
  7792. $as_echo "$as_me: failed program was:" >&5
  7793. sed 's/^/| /' conftest.$ac_ext >&5
  7794. # Passes both tests.
  7795. ac_preproc_ok=:
  7796. break
  7797. fi
  7798. rm -f conftest.err conftest.$ac_ext
  7799. done
  7800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7801. rm -f conftest.err conftest.$ac_ext
  7802. if $ac_preproc_ok; then
  7803. :
  7804. else
  7805. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7806. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7807. _lt_caught_CXX_error=yes; }
  7808. fi
  7809. ac_ext=c
  7810. ac_cpp='$CPP $CPPFLAGS'
  7811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7814. else
  7815. _lt_caught_CXX_error=yes
  7816. fi
  7817. # Set options
  7818. enable_dlopen=no
  7819. enable_win32_dll=no
  7820. # Check whether --enable-shared was given.
  7821. if test "${enable_shared+set}" = set; then
  7822. enableval=$enable_shared; p=${PACKAGE-default}
  7823. case $enableval in
  7824. yes) enable_shared=yes ;;
  7825. no) enable_shared=no ;;
  7826. *)
  7827. enable_shared=no
  7828. # Look at the argument we got. We use all the common list separators.
  7829. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7830. for pkg in $enableval; do
  7831. IFS="$lt_save_ifs"
  7832. if test "X$pkg" = "X$p"; then
  7833. enable_shared=yes
  7834. fi
  7835. done
  7836. IFS="$lt_save_ifs"
  7837. ;;
  7838. esac
  7839. else
  7840. enable_shared=yes
  7841. fi
  7842. # Check whether --with-pic was given.
  7843. if test "${with_pic+set}" = set; then
  7844. withval=$with_pic; pic_mode="$withval"
  7845. else
  7846. pic_mode=default
  7847. fi
  7848. test -z "$pic_mode" && pic_mode=default
  7849. # Check whether --enable-fast-install was given.
  7850. if test "${enable_fast_install+set}" = set; then
  7851. enableval=$enable_fast_install; p=${PACKAGE-default}
  7852. case $enableval in
  7853. yes) enable_fast_install=yes ;;
  7854. no) enable_fast_install=no ;;
  7855. *)
  7856. enable_fast_install=no
  7857. # Look at the argument we got. We use all the common list separators.
  7858. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7859. for pkg in $enableval; do
  7860. IFS="$lt_save_ifs"
  7861. if test "X$pkg" = "X$p"; then
  7862. enable_fast_install=yes
  7863. fi
  7864. done
  7865. IFS="$lt_save_ifs"
  7866. ;;
  7867. esac
  7868. else
  7869. enable_fast_install=yes
  7870. fi
  7871. # This can be used to rebuild libtool when needed
  7872. LIBTOOL_DEPS="$ltmain"
  7873. # Always use our own libtool.
  7874. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7875. test -z "$LN_S" && LN_S="ln -s"
  7876. if test -n "${ZSH_VERSION+set}" ; then
  7877. setopt NO_GLOB_SUBST
  7878. fi
  7879. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7880. $as_echo_n "checking for objdir... " >&6; }
  7881. if test "${lt_cv_objdir+set}" = set; then
  7882. $as_echo_n "(cached) " >&6
  7883. else
  7884. rm -f .libs 2>/dev/null
  7885. mkdir .libs 2>/dev/null
  7886. if test -d .libs; then
  7887. lt_cv_objdir=.libs
  7888. else
  7889. # MS-DOS does not allow filenames that begin with a dot.
  7890. lt_cv_objdir=_libs
  7891. fi
  7892. rmdir .libs 2>/dev/null
  7893. fi
  7894. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7895. $as_echo "$lt_cv_objdir" >&6; }
  7896. objdir=$lt_cv_objdir
  7897. cat >>confdefs.h <<_ACEOF
  7898. #define LT_OBJDIR "$lt_cv_objdir/"
  7899. _ACEOF
  7900. case $host_os in
  7901. aix3*)
  7902. # AIX sometimes has problems with the GCC collect2 program. For some
  7903. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7904. # vanish in a puff of smoke.
  7905. if test "X${COLLECT_NAMES+set}" != Xset; then
  7906. COLLECT_NAMES=
  7907. export COLLECT_NAMES
  7908. fi
  7909. ;;
  7910. esac
  7911. # Sed substitution that helps us do robust quoting. It backslashifies
  7912. # metacharacters that are still active within double-quoted strings.
  7913. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7914. # Same as above, but do not quote variable references.
  7915. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7916. # Sed substitution to delay expansion of an escaped shell variable in a
  7917. # double_quote_subst'ed string.
  7918. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7919. # Sed substitution to delay expansion of an escaped single quote.
  7920. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7921. # Sed substitution to avoid accidental globbing in evaled expressions
  7922. no_glob_subst='s/\*/\\\*/g'
  7923. # Global variables:
  7924. ofile=libtool
  7925. can_build_shared=yes
  7926. # All known linkers require a `.a' archive for static linking (except MSVC,
  7927. # which needs '.lib').
  7928. libext=a
  7929. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7930. old_CC="$CC"
  7931. old_CFLAGS="$CFLAGS"
  7932. # Set sane defaults for various variables
  7933. test -z "$CC" && CC=cc
  7934. test -z "$LTCC" && LTCC=$CC
  7935. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7936. test -z "$LD" && LD=ld
  7937. test -z "$ac_objext" && ac_objext=o
  7938. for cc_temp in $compiler""; do
  7939. case $cc_temp in
  7940. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7941. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7942. \-*) ;;
  7943. *) break;;
  7944. esac
  7945. done
  7946. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7947. # Only perform the check for file, if the check method requires it
  7948. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7949. case $deplibs_check_method in
  7950. file_magic*)
  7951. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7952. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7953. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7954. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7955. $as_echo_n "(cached) " >&6
  7956. else
  7957. case $MAGIC_CMD in
  7958. [\\/*] | ?:[\\/]*)
  7959. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7960. ;;
  7961. *)
  7962. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7963. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7964. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7965. for ac_dir in $ac_dummy; do
  7966. IFS="$lt_save_ifs"
  7967. test -z "$ac_dir" && ac_dir=.
  7968. if test -f $ac_dir/${ac_tool_prefix}file; then
  7969. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7970. if test -n "$file_magic_test_file"; then
  7971. case $deplibs_check_method in
  7972. "file_magic "*)
  7973. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7974. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7975. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7976. $EGREP "$file_magic_regex" > /dev/null; then
  7977. :
  7978. else
  7979. cat <<_LT_EOF 1>&2
  7980. *** Warning: the command libtool uses to detect shared libraries,
  7981. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7982. *** The result is that libtool may fail to recognize shared libraries
  7983. *** as such. This will affect the creation of libtool libraries that
  7984. *** depend on shared libraries, but programs linked with such libtool
  7985. *** libraries will work regardless of this problem. Nevertheless, you
  7986. *** may want to report the problem to your system manager and/or to
  7987. *** [email protected]
  7988. _LT_EOF
  7989. fi ;;
  7990. esac
  7991. fi
  7992. break
  7993. fi
  7994. done
  7995. IFS="$lt_save_ifs"
  7996. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7997. ;;
  7998. esac
  7999. fi
  8000. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8001. if test -n "$MAGIC_CMD"; then
  8002. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8003. $as_echo "$MAGIC_CMD" >&6; }
  8004. else
  8005. { $as_echo "$as_me:$LINENO: result: no" >&5
  8006. $as_echo "no" >&6; }
  8007. fi
  8008. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8009. if test -n "$ac_tool_prefix"; then
  8010. { $as_echo "$as_me:$LINENO: checking for file" >&5
  8011. $as_echo_n "checking for file... " >&6; }
  8012. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8013. $as_echo_n "(cached) " >&6
  8014. else
  8015. case $MAGIC_CMD in
  8016. [\\/*] | ?:[\\/]*)
  8017. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8018. ;;
  8019. *)
  8020. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8021. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8022. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8023. for ac_dir in $ac_dummy; do
  8024. IFS="$lt_save_ifs"
  8025. test -z "$ac_dir" && ac_dir=.
  8026. if test -f $ac_dir/file; then
  8027. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8028. if test -n "$file_magic_test_file"; then
  8029. case $deplibs_check_method in
  8030. "file_magic "*)
  8031. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8032. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8033. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8034. $EGREP "$file_magic_regex" > /dev/null; then
  8035. :
  8036. else
  8037. cat <<_LT_EOF 1>&2
  8038. *** Warning: the command libtool uses to detect shared libraries,
  8039. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8040. *** The result is that libtool may fail to recognize shared libraries
  8041. *** as such. This will affect the creation of libtool libraries that
  8042. *** depend on shared libraries, but programs linked with such libtool
  8043. *** libraries will work regardless of this problem. Nevertheless, you
  8044. *** may want to report the problem to your system manager and/or to
  8045. *** [email protected]
  8046. _LT_EOF
  8047. fi ;;
  8048. esac
  8049. fi
  8050. break
  8051. fi
  8052. done
  8053. IFS="$lt_save_ifs"
  8054. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8055. ;;
  8056. esac
  8057. fi
  8058. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8059. if test -n "$MAGIC_CMD"; then
  8060. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8061. $as_echo "$MAGIC_CMD" >&6; }
  8062. else
  8063. { $as_echo "$as_me:$LINENO: result: no" >&5
  8064. $as_echo "no" >&6; }
  8065. fi
  8066. else
  8067. MAGIC_CMD=:
  8068. fi
  8069. fi
  8070. fi
  8071. ;;
  8072. esac
  8073. # Use C for the default configuration in the libtool script
  8074. lt_save_CC="$CC"
  8075. ac_ext=c
  8076. ac_cpp='$CPP $CPPFLAGS'
  8077. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8078. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8079. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8080. # Source file extension for C test sources.
  8081. ac_ext=c
  8082. # Object file extension for compiled C test sources.
  8083. objext=o
  8084. objext=$objext
  8085. # Code to be used in simple compile tests
  8086. lt_simple_compile_test_code="int some_variable = 0;"
  8087. # Code to be used in simple link tests
  8088. lt_simple_link_test_code='int main(){return(0);}'
  8089. # If no C compiler was specified, use CC.
  8090. LTCC=${LTCC-"$CC"}
  8091. # If no C compiler flags were specified, use CFLAGS.
  8092. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8093. # Allow CC to be a program name with arguments.
  8094. compiler=$CC
  8095. # Save the default compiler, since it gets overwritten when the other
  8096. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8097. compiler_DEFAULT=$CC
  8098. # save warnings/boilerplate of simple test code
  8099. ac_outfile=conftest.$ac_objext
  8100. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8101. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8102. _lt_compiler_boilerplate=`cat conftest.err`
  8103. $RM conftest*
  8104. ac_outfile=conftest.$ac_objext
  8105. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8106. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8107. _lt_linker_boilerplate=`cat conftest.err`
  8108. $RM -r conftest*
  8109. ## CAVEAT EMPTOR:
  8110. ## There is no encapsulation within the following macros, do not change
  8111. ## the running order or otherwise move them around unless you know exactly
  8112. ## what you are doing...
  8113. if test -n "$compiler"; then
  8114. lt_prog_compiler_no_builtin_flag=
  8115. if test "$GCC" = yes; then
  8116. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8117. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8118. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8119. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8120. $as_echo_n "(cached) " >&6
  8121. else
  8122. lt_cv_prog_compiler_rtti_exceptions=no
  8123. ac_outfile=conftest.$ac_objext
  8124. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8125. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8126. # Insert the option either (1) after the last *FLAGS variable, or
  8127. # (2) before a word containing "conftest.", or (3) at the end.
  8128. # Note that $ac_compile itself does not contain backslashes and begins
  8129. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8130. # The option is referenced via a variable to avoid confusing sed.
  8131. lt_compile=`echo "$ac_compile" | $SED \
  8132. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8133. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8134. -e 's:$: $lt_compiler_flag:'`
  8135. (eval echo "\"\$as_me:9288: $lt_compile\"" >&5)
  8136. (eval "$lt_compile" 2>conftest.err)
  8137. ac_status=$?
  8138. cat conftest.err >&5
  8139. echo "$as_me:9292: \$? = $ac_status" >&5
  8140. if (exit $ac_status) && test -s "$ac_outfile"; then
  8141. # The compiler can only warn and ignore the option if not recognized
  8142. # So say no if there are warnings other than the usual output.
  8143. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8144. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8145. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8146. lt_cv_prog_compiler_rtti_exceptions=yes
  8147. fi
  8148. fi
  8149. $RM conftest*
  8150. fi
  8151. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8152. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8153. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8154. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8155. else
  8156. :
  8157. fi
  8158. fi
  8159. lt_prog_compiler_wl=
  8160. lt_prog_compiler_pic=
  8161. lt_prog_compiler_static=
  8162. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8163. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8164. if test "$GCC" = yes; then
  8165. lt_prog_compiler_wl='-Wl,'
  8166. lt_prog_compiler_static='-static'
  8167. case $host_os in
  8168. aix*)
  8169. # All AIX code is PIC.
  8170. if test "$host_cpu" = ia64; then
  8171. # AIX 5 now supports IA64 processor
  8172. lt_prog_compiler_static='-Bstatic'
  8173. fi
  8174. ;;
  8175. amigaos*)
  8176. case $host_cpu in
  8177. powerpc)
  8178. # see comment about AmigaOS4 .so support
  8179. lt_prog_compiler_pic='-fPIC'
  8180. ;;
  8181. m68k)
  8182. # FIXME: we need at least 68020 code to build shared libraries, but
  8183. # adding the `-m68020' flag to GCC prevents building anything better,
  8184. # like `-m68040'.
  8185. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8186. ;;
  8187. esac
  8188. ;;
  8189. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8190. # PIC is the default for these OSes.
  8191. ;;
  8192. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8193. # This hack is so that the source file can tell whether it is being
  8194. # built for inclusion in a dll (and should export symbols for example).
  8195. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8196. # (--disable-auto-import) libraries
  8197. lt_prog_compiler_pic='-DDLL_EXPORT'
  8198. ;;
  8199. darwin* | rhapsody*)
  8200. # PIC is the default on this platform
  8201. # Common symbols not allowed in MH_DYLIB files
  8202. lt_prog_compiler_pic='-fno-common'
  8203. ;;
  8204. hpux*)
  8205. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8206. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8207. # sets the default TLS model and affects inlining.
  8208. case $host_cpu in
  8209. hppa*64*)
  8210. # +Z the default
  8211. ;;
  8212. *)
  8213. lt_prog_compiler_pic='-fPIC'
  8214. ;;
  8215. esac
  8216. ;;
  8217. interix[3-9]*)
  8218. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8219. # Instead, we relocate shared libraries at runtime.
  8220. ;;
  8221. msdosdjgpp*)
  8222. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8223. # on systems that don't support them.
  8224. lt_prog_compiler_can_build_shared=no
  8225. enable_shared=no
  8226. ;;
  8227. *nto* | *qnx*)
  8228. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8229. # it will coredump.
  8230. lt_prog_compiler_pic='-fPIC -shared'
  8231. ;;
  8232. sysv4*MP*)
  8233. if test -d /usr/nec; then
  8234. lt_prog_compiler_pic=-Kconform_pic
  8235. fi
  8236. ;;
  8237. *)
  8238. lt_prog_compiler_pic='-fPIC'
  8239. ;;
  8240. esac
  8241. else
  8242. # PORTME Check for flag to pass linker flags through the system compiler.
  8243. case $host_os in
  8244. aix*)
  8245. lt_prog_compiler_wl='-Wl,'
  8246. if test "$host_cpu" = ia64; then
  8247. # AIX 5 now supports IA64 processor
  8248. lt_prog_compiler_static='-Bstatic'
  8249. else
  8250. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8251. fi
  8252. ;;
  8253. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8254. # This hack is so that the source file can tell whether it is being
  8255. # built for inclusion in a dll (and should export symbols for example).
  8256. lt_prog_compiler_pic='-DDLL_EXPORT'
  8257. ;;
  8258. hpux9* | hpux10* | hpux11*)
  8259. lt_prog_compiler_wl='-Wl,'
  8260. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8261. # not for PA HP-UX.
  8262. case $host_cpu in
  8263. hppa*64*|ia64*)
  8264. # +Z the default
  8265. ;;
  8266. *)
  8267. lt_prog_compiler_pic='+Z'
  8268. ;;
  8269. esac
  8270. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8271. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8272. ;;
  8273. irix5* | irix6* | nonstopux*)
  8274. lt_prog_compiler_wl='-Wl,'
  8275. # PIC (with -KPIC) is the default.
  8276. lt_prog_compiler_static='-non_shared'
  8277. ;;
  8278. linux* | k*bsd*-gnu)
  8279. case $cc_basename in
  8280. # old Intel for x86_64 which still supported -KPIC.
  8281. ecc*)
  8282. lt_prog_compiler_wl='-Wl,'
  8283. lt_prog_compiler_pic='-KPIC'
  8284. lt_prog_compiler_static='-static'
  8285. ;;
  8286. # icc used to be incompatible with GCC.
  8287. # ICC 10 doesn't accept -KPIC any more.
  8288. icc* | ifort*)
  8289. lt_prog_compiler_wl='-Wl,'
  8290. lt_prog_compiler_pic='-fPIC'
  8291. lt_prog_compiler_static='-static'
  8292. ;;
  8293. # Lahey Fortran 8.1.
  8294. lf95*)
  8295. lt_prog_compiler_wl='-Wl,'
  8296. lt_prog_compiler_pic='--shared'
  8297. lt_prog_compiler_static='--static'
  8298. ;;
  8299. pgcc* | pgf77* | pgf90* | pgf95*)
  8300. # Portland Group compilers (*not* the Pentium gcc compiler,
  8301. # which looks to be a dead project)
  8302. lt_prog_compiler_wl='-Wl,'
  8303. lt_prog_compiler_pic='-fpic'
  8304. lt_prog_compiler_static='-Bstatic'
  8305. ;;
  8306. ccc*)
  8307. lt_prog_compiler_wl='-Wl,'
  8308. # All Alpha code is PIC.
  8309. lt_prog_compiler_static='-non_shared'
  8310. ;;
  8311. xl*)
  8312. # IBM XL C 8.0/Fortran 10.1 on PPC
  8313. lt_prog_compiler_wl='-Wl,'
  8314. lt_prog_compiler_pic='-qpic'
  8315. lt_prog_compiler_static='-qstaticlink'
  8316. ;;
  8317. *)
  8318. case `$CC -V 2>&1 | sed 5q` in
  8319. *Sun\ C*)
  8320. # Sun C 5.9
  8321. lt_prog_compiler_pic='-KPIC'
  8322. lt_prog_compiler_static='-Bstatic'
  8323. lt_prog_compiler_wl='-Wl,'
  8324. ;;
  8325. *Sun\ F*)
  8326. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8327. lt_prog_compiler_pic='-KPIC'
  8328. lt_prog_compiler_static='-Bstatic'
  8329. lt_prog_compiler_wl=''
  8330. ;;
  8331. esac
  8332. ;;
  8333. esac
  8334. ;;
  8335. newsos6)
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. *nto* | *qnx*)
  8340. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8341. # it will coredump.
  8342. lt_prog_compiler_pic='-fPIC -shared'
  8343. ;;
  8344. osf3* | osf4* | osf5*)
  8345. lt_prog_compiler_wl='-Wl,'
  8346. # All OSF/1 code is PIC.
  8347. lt_prog_compiler_static='-non_shared'
  8348. ;;
  8349. rdos*)
  8350. lt_prog_compiler_static='-non_shared'
  8351. ;;
  8352. solaris*)
  8353. lt_prog_compiler_pic='-KPIC'
  8354. lt_prog_compiler_static='-Bstatic'
  8355. case $cc_basename in
  8356. f77* | f90* | f95*)
  8357. lt_prog_compiler_wl='-Qoption ld ';;
  8358. *)
  8359. lt_prog_compiler_wl='-Wl,';;
  8360. esac
  8361. ;;
  8362. sunos4*)
  8363. lt_prog_compiler_wl='-Qoption ld '
  8364. lt_prog_compiler_pic='-PIC'
  8365. lt_prog_compiler_static='-Bstatic'
  8366. ;;
  8367. sysv4 | sysv4.2uw2* | sysv4.3*)
  8368. lt_prog_compiler_wl='-Wl,'
  8369. lt_prog_compiler_pic='-KPIC'
  8370. lt_prog_compiler_static='-Bstatic'
  8371. ;;
  8372. sysv4*MP*)
  8373. if test -d /usr/nec ;then
  8374. lt_prog_compiler_pic='-Kconform_pic'
  8375. lt_prog_compiler_static='-Bstatic'
  8376. fi
  8377. ;;
  8378. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8379. lt_prog_compiler_wl='-Wl,'
  8380. lt_prog_compiler_pic='-KPIC'
  8381. lt_prog_compiler_static='-Bstatic'
  8382. ;;
  8383. unicos*)
  8384. lt_prog_compiler_wl='-Wl,'
  8385. lt_prog_compiler_can_build_shared=no
  8386. ;;
  8387. uts4*)
  8388. lt_prog_compiler_pic='-pic'
  8389. lt_prog_compiler_static='-Bstatic'
  8390. ;;
  8391. *)
  8392. lt_prog_compiler_can_build_shared=no
  8393. ;;
  8394. esac
  8395. fi
  8396. case $host_os in
  8397. # For platforms which do not support PIC, -DPIC is meaningless:
  8398. *djgpp*)
  8399. lt_prog_compiler_pic=
  8400. ;;
  8401. *)
  8402. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8403. ;;
  8404. esac
  8405. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8406. $as_echo "$lt_prog_compiler_pic" >&6; }
  8407. #
  8408. # Check to make sure the PIC flag actually works.
  8409. #
  8410. if test -n "$lt_prog_compiler_pic"; then
  8411. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8412. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8413. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8414. $as_echo_n "(cached) " >&6
  8415. else
  8416. lt_cv_prog_compiler_pic_works=no
  8417. ac_outfile=conftest.$ac_objext
  8418. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8419. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8420. # Insert the option either (1) after the last *FLAGS variable, or
  8421. # (2) before a word containing "conftest.", or (3) at the end.
  8422. # Note that $ac_compile itself does not contain backslashes and begins
  8423. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8424. # The option is referenced via a variable to avoid confusing sed.
  8425. lt_compile=`echo "$ac_compile" | $SED \
  8426. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8427. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8428. -e 's:$: $lt_compiler_flag:'`
  8429. (eval echo "\"\$as_me:9627: $lt_compile\"" >&5)
  8430. (eval "$lt_compile" 2>conftest.err)
  8431. ac_status=$?
  8432. cat conftest.err >&5
  8433. echo "$as_me:9631: \$? = $ac_status" >&5
  8434. if (exit $ac_status) && test -s "$ac_outfile"; then
  8435. # The compiler can only warn and ignore the option if not recognized
  8436. # So say no if there are warnings other than the usual output.
  8437. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8438. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8439. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8440. lt_cv_prog_compiler_pic_works=yes
  8441. fi
  8442. fi
  8443. $RM conftest*
  8444. fi
  8445. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8446. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8447. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8448. case $lt_prog_compiler_pic in
  8449. "" | " "*) ;;
  8450. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8451. esac
  8452. else
  8453. lt_prog_compiler_pic=
  8454. lt_prog_compiler_can_build_shared=no
  8455. fi
  8456. fi
  8457. #
  8458. # Check to make sure the static flag actually works.
  8459. #
  8460. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8461. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8462. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8463. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8464. $as_echo_n "(cached) " >&6
  8465. else
  8466. lt_cv_prog_compiler_static_works=no
  8467. save_LDFLAGS="$LDFLAGS"
  8468. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8469. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8470. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8471. # The linker can only warn and ignore the option if not recognized
  8472. # So say no if there are warnings
  8473. if test -s conftest.err; then
  8474. # Append any errors to the config.log.
  8475. cat conftest.err 1>&5
  8476. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8477. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8478. if diff conftest.exp conftest.er2 >/dev/null; then
  8479. lt_cv_prog_compiler_static_works=yes
  8480. fi
  8481. else
  8482. lt_cv_prog_compiler_static_works=yes
  8483. fi
  8484. fi
  8485. $RM -r conftest*
  8486. LDFLAGS="$save_LDFLAGS"
  8487. fi
  8488. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8489. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8490. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8491. :
  8492. else
  8493. lt_prog_compiler_static=
  8494. fi
  8495. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8496. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8497. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8498. $as_echo_n "(cached) " >&6
  8499. else
  8500. lt_cv_prog_compiler_c_o=no
  8501. $RM -r conftest 2>/dev/null
  8502. mkdir conftest
  8503. cd conftest
  8504. mkdir out
  8505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8506. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8507. # Insert the option either (1) after the last *FLAGS variable, or
  8508. # (2) before a word containing "conftest.", or (3) at the end.
  8509. # Note that $ac_compile itself does not contain backslashes and begins
  8510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8511. lt_compile=`echo "$ac_compile" | $SED \
  8512. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8513. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8514. -e 's:$: $lt_compiler_flag:'`
  8515. (eval echo "\"\$as_me:9732: $lt_compile\"" >&5)
  8516. (eval "$lt_compile" 2>out/conftest.err)
  8517. ac_status=$?
  8518. cat out/conftest.err >&5
  8519. echo "$as_me:9736: \$? = $ac_status" >&5
  8520. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8521. then
  8522. # The compiler can only warn and ignore the option if not recognized
  8523. # So say no if there are warnings
  8524. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8525. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8526. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8527. lt_cv_prog_compiler_c_o=yes
  8528. fi
  8529. fi
  8530. chmod u+w . 2>&5
  8531. $RM conftest*
  8532. # SGI C++ compiler will create directory out/ii_files/ for
  8533. # template instantiation
  8534. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8535. $RM out/* && rmdir out
  8536. cd ..
  8537. $RM -r conftest
  8538. $RM conftest*
  8539. fi
  8540. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8541. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8542. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8543. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8544. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8545. $as_echo_n "(cached) " >&6
  8546. else
  8547. lt_cv_prog_compiler_c_o=no
  8548. $RM -r conftest 2>/dev/null
  8549. mkdir conftest
  8550. cd conftest
  8551. mkdir out
  8552. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8553. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8554. # Insert the option either (1) after the last *FLAGS variable, or
  8555. # (2) before a word containing "conftest.", or (3) at the end.
  8556. # Note that $ac_compile itself does not contain backslashes and begins
  8557. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8558. lt_compile=`echo "$ac_compile" | $SED \
  8559. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8560. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8561. -e 's:$: $lt_compiler_flag:'`
  8562. (eval echo "\"\$as_me:9787: $lt_compile\"" >&5)
  8563. (eval "$lt_compile" 2>out/conftest.err)
  8564. ac_status=$?
  8565. cat out/conftest.err >&5
  8566. echo "$as_me:9791: \$? = $ac_status" >&5
  8567. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8568. then
  8569. # The compiler can only warn and ignore the option if not recognized
  8570. # So say no if there are warnings
  8571. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8572. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8573. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8574. lt_cv_prog_compiler_c_o=yes
  8575. fi
  8576. fi
  8577. chmod u+w . 2>&5
  8578. $RM conftest*
  8579. # SGI C++ compiler will create directory out/ii_files/ for
  8580. # template instantiation
  8581. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8582. $RM out/* && rmdir out
  8583. cd ..
  8584. $RM -r conftest
  8585. $RM conftest*
  8586. fi
  8587. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8588. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8589. hard_links="nottested"
  8590. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8591. # do not overwrite the value of need_locks provided by the user
  8592. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8593. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8594. hard_links=yes
  8595. $RM conftest*
  8596. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8597. touch conftest.a
  8598. ln conftest.a conftest.b 2>&5 || hard_links=no
  8599. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8600. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8601. $as_echo "$hard_links" >&6; }
  8602. if test "$hard_links" = no; then
  8603. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8604. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8605. need_locks=warn
  8606. fi
  8607. else
  8608. need_locks=no
  8609. fi
  8610. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8611. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8612. runpath_var=
  8613. allow_undefined_flag=
  8614. always_export_symbols=no
  8615. archive_cmds=
  8616. archive_expsym_cmds=
  8617. compiler_needs_object=no
  8618. enable_shared_with_static_runtimes=no
  8619. export_dynamic_flag_spec=
  8620. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8621. hardcode_automatic=no
  8622. hardcode_direct=no
  8623. hardcode_direct_absolute=no
  8624. hardcode_libdir_flag_spec=
  8625. hardcode_libdir_flag_spec_ld=
  8626. hardcode_libdir_separator=
  8627. hardcode_minus_L=no
  8628. hardcode_shlibpath_var=unsupported
  8629. inherit_rpath=no
  8630. link_all_deplibs=unknown
  8631. module_cmds=
  8632. module_expsym_cmds=
  8633. old_archive_from_new_cmds=
  8634. old_archive_from_expsyms_cmds=
  8635. thread_safe_flag_spec=
  8636. whole_archive_flag_spec=
  8637. # include_expsyms should be a list of space-separated symbols to be *always*
  8638. # included in the symbol list
  8639. include_expsyms=
  8640. # exclude_expsyms can be an extended regexp of symbols to exclude
  8641. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8642. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8643. # as well as any symbol that contains `d'.
  8644. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8645. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8646. # platforms (ab)use it in PIC code, but their linkers get confused if
  8647. # the symbol is explicitly referenced. Since portable code cannot
  8648. # rely on this symbol name, it's probably fine to never include it in
  8649. # preloaded symbol tables.
  8650. # Exclude shared library initialization/finalization symbols.
  8651. extract_expsyms_cmds=
  8652. case $host_os in
  8653. cygwin* | mingw* | pw32* | cegcc*)
  8654. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8655. # When not using gcc, we currently assume that we are using
  8656. # Microsoft Visual C++.
  8657. if test "$GCC" != yes; then
  8658. with_gnu_ld=no
  8659. fi
  8660. ;;
  8661. interix*)
  8662. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8663. with_gnu_ld=yes
  8664. ;;
  8665. openbsd*)
  8666. with_gnu_ld=no
  8667. ;;
  8668. esac
  8669. ld_shlibs=yes
  8670. if test "$with_gnu_ld" = yes; then
  8671. # If archive_cmds runs LD, not CC, wlarc should be empty
  8672. wlarc='${wl}'
  8673. # Set some defaults for GNU ld with shared library support. These
  8674. # are reset later if shared libraries are not supported. Putting them
  8675. # here allows them to be overridden if necessary.
  8676. runpath_var=LD_RUN_PATH
  8677. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8678. export_dynamic_flag_spec='${wl}--export-dynamic'
  8679. # ancient GNU ld didn't support --whole-archive et. al.
  8680. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8681. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8682. else
  8683. whole_archive_flag_spec=
  8684. fi
  8685. supports_anon_versioning=no
  8686. case `$LD -v 2>&1` in
  8687. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8688. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8689. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8690. *\ 2.11.*) ;; # other 2.11 versions
  8691. *) supports_anon_versioning=yes ;;
  8692. esac
  8693. # See if GNU ld supports shared libraries.
  8694. case $host_os in
  8695. aix[3-9]*)
  8696. # On AIX/PPC, the GNU linker is very broken
  8697. if test "$host_cpu" != ia64; then
  8698. ld_shlibs=no
  8699. cat <<_LT_EOF 1>&2
  8700. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8701. *** to be unable to reliably create shared libraries on AIX.
  8702. *** Therefore, libtool is disabling shared libraries support. If you
  8703. *** really care for shared libraries, you may want to modify your PATH
  8704. *** so that a non-GNU linker is found, and then restart.
  8705. _LT_EOF
  8706. fi
  8707. ;;
  8708. amigaos*)
  8709. case $host_cpu in
  8710. powerpc)
  8711. # see comment about AmigaOS4 .so support
  8712. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8713. archive_expsym_cmds=''
  8714. ;;
  8715. m68k)
  8716. 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)'
  8717. hardcode_libdir_flag_spec='-L$libdir'
  8718. hardcode_minus_L=yes
  8719. ;;
  8720. esac
  8721. ;;
  8722. beos*)
  8723. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8724. allow_undefined_flag=unsupported
  8725. # Joseph Beckenbach <[email protected]> says some releases of gcc
  8726. # support --undefined. This deserves some investigation. FIXME
  8727. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8728. else
  8729. ld_shlibs=no
  8730. fi
  8731. ;;
  8732. cygwin* | mingw* | pw32* | cegcc*)
  8733. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8734. # as there is no search path for DLLs.
  8735. hardcode_libdir_flag_spec='-L$libdir'
  8736. allow_undefined_flag=unsupported
  8737. always_export_symbols=no
  8738. enable_shared_with_static_runtimes=yes
  8739. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8740. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8741. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8742. # If the export-symbols file already is a .def file (1st line
  8743. # is EXPORTS), use it as is; otherwise, prepend...
  8744. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8745. cp $export_symbols $output_objdir/$soname.def;
  8746. else
  8747. echo EXPORTS > $output_objdir/$soname.def;
  8748. cat $export_symbols >> $output_objdir/$soname.def;
  8749. fi~
  8750. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8751. else
  8752. ld_shlibs=no
  8753. fi
  8754. ;;
  8755. interix[3-9]*)
  8756. hardcode_direct=no
  8757. hardcode_shlibpath_var=no
  8758. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8759. export_dynamic_flag_spec='${wl}-E'
  8760. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8761. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8762. # default) and relocated if they conflict, which is a slow very memory
  8763. # consuming and fragmenting process. To avoid this, we pick a random,
  8764. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8765. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8766. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8767. 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'
  8768. ;;
  8769. gnu* | linux* | tpf* | k*bsd*-gnu)
  8770. tmp_diet=no
  8771. if test "$host_os" = linux-dietlibc; then
  8772. case $cc_basename in
  8773. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8774. esac
  8775. fi
  8776. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8777. && test "$tmp_diet" = no
  8778. then
  8779. tmp_addflag=
  8780. tmp_sharedflag='-shared'
  8781. case $cc_basename,$host_cpu in
  8782. pgcc*) # Portland Group C compiler
  8783. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8784. tmp_addflag=' $pic_flag'
  8785. ;;
  8786. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8787. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8788. tmp_addflag=' $pic_flag -Mnomain' ;;
  8789. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8790. tmp_addflag=' -i_dynamic' ;;
  8791. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8792. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8793. ifc* | ifort*) # Intel Fortran compiler
  8794. tmp_addflag=' -nofor_main' ;;
  8795. lf95*) # Lahey Fortran 8.1
  8796. whole_archive_flag_spec=
  8797. tmp_sharedflag='--shared' ;;
  8798. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8799. tmp_sharedflag='-qmkshrobj'
  8800. tmp_addflag= ;;
  8801. esac
  8802. case `$CC -V 2>&1 | sed 5q` in
  8803. *Sun\ C*) # Sun C 5.9
  8804. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8805. compiler_needs_object=yes
  8806. tmp_sharedflag='-G' ;;
  8807. *Sun\ F*) # Sun Fortran 8.3
  8808. tmp_sharedflag='-G' ;;
  8809. esac
  8810. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8811. if test "x$supports_anon_versioning" = xyes; then
  8812. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8813. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8814. echo "local: *; };" >> $output_objdir/$libname.ver~
  8815. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8816. fi
  8817. case $cc_basename in
  8818. xlf*)
  8819. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8820. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8821. hardcode_libdir_flag_spec=
  8822. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8823. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8824. if test "x$supports_anon_versioning" = xyes; then
  8825. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8826. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8827. echo "local: *; };" >> $output_objdir/$libname.ver~
  8828. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8829. fi
  8830. ;;
  8831. esac
  8832. else
  8833. ld_shlibs=no
  8834. fi
  8835. ;;
  8836. netbsd*)
  8837. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8838. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8839. wlarc=
  8840. else
  8841. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8842. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8843. fi
  8844. ;;
  8845. solaris*)
  8846. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8847. ld_shlibs=no
  8848. cat <<_LT_EOF 1>&2
  8849. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8850. *** create shared libraries on Solaris systems. Therefore, libtool
  8851. *** is disabling shared libraries support. We urge you to upgrade GNU
  8852. *** binutils to release 2.9.1 or newer. Another option is to modify
  8853. *** your PATH or compiler configuration so that the native linker is
  8854. *** used, and then restart.
  8855. _LT_EOF
  8856. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8857. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8858. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8859. else
  8860. ld_shlibs=no
  8861. fi
  8862. ;;
  8863. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8864. case `$LD -v 2>&1` in
  8865. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8866. ld_shlibs=no
  8867. cat <<_LT_EOF 1>&2
  8868. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8869. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8870. *** is disabling shared libraries support. We urge you to upgrade GNU
  8871. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8872. *** your PATH or compiler configuration so that the native linker is
  8873. *** used, and then restart.
  8874. _LT_EOF
  8875. ;;
  8876. *)
  8877. # For security reasons, it is highly recommended that you always
  8878. # use absolute paths for naming shared libraries, and exclude the
  8879. # DT_RUNPATH tag from executables and libraries. But doing so
  8880. # requires that you compile everything twice, which is a pain.
  8881. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8882. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8883. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8884. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8885. else
  8886. ld_shlibs=no
  8887. fi
  8888. ;;
  8889. esac
  8890. ;;
  8891. sunos4*)
  8892. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8893. wlarc=
  8894. hardcode_direct=yes
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. *)
  8898. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8899. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8900. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8901. else
  8902. ld_shlibs=no
  8903. fi
  8904. ;;
  8905. esac
  8906. if test "$ld_shlibs" = no; then
  8907. runpath_var=
  8908. hardcode_libdir_flag_spec=
  8909. export_dynamic_flag_spec=
  8910. whole_archive_flag_spec=
  8911. fi
  8912. else
  8913. # PORTME fill in a description of your system's linker (not GNU ld)
  8914. case $host_os in
  8915. aix3*)
  8916. allow_undefined_flag=unsupported
  8917. always_export_symbols=yes
  8918. 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'
  8919. # Note: this linker hardcodes the directories in LIBPATH if there
  8920. # are no directories specified by -L.
  8921. hardcode_minus_L=yes
  8922. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8923. # Neither direct hardcoding nor static linking is supported with a
  8924. # broken collect2.
  8925. hardcode_direct=unsupported
  8926. fi
  8927. ;;
  8928. aix[4-9]*)
  8929. if test "$host_cpu" = ia64; then
  8930. # On IA64, the linker does run time linking by default, so we don't
  8931. # have to do anything special.
  8932. aix_use_runtimelinking=no
  8933. exp_sym_flag='-Bexport'
  8934. no_entry_flag=""
  8935. else
  8936. # If we're using GNU nm, then we don't want the "-C" option.
  8937. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8938. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8939. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8940. else
  8941. 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'
  8942. fi
  8943. aix_use_runtimelinking=no
  8944. # Test if we are trying to use run time linking or normal
  8945. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8946. # need to do runtime linking.
  8947. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8948. for ld_flag in $LDFLAGS; do
  8949. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8950. aix_use_runtimelinking=yes
  8951. break
  8952. fi
  8953. done
  8954. ;;
  8955. esac
  8956. exp_sym_flag='-bexport'
  8957. no_entry_flag='-bnoentry'
  8958. fi
  8959. # When large executables or shared objects are built, AIX ld can
  8960. # have problems creating the table of contents. If linking a library
  8961. # or program results in "error TOC overflow" add -mminimal-toc to
  8962. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8963. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8964. archive_cmds=''
  8965. hardcode_direct=yes
  8966. hardcode_direct_absolute=yes
  8967. hardcode_libdir_separator=':'
  8968. link_all_deplibs=yes
  8969. file_list_spec='${wl}-f,'
  8970. if test "$GCC" = yes; then
  8971. case $host_os in aix4.[012]|aix4.[012].*)
  8972. # We only want to do this on AIX 4.2 and lower, the check
  8973. # below for broken collect2 doesn't work under 4.3+
  8974. collect2name=`${CC} -print-prog-name=collect2`
  8975. if test -f "$collect2name" &&
  8976. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8977. then
  8978. # We have reworked collect2
  8979. :
  8980. else
  8981. # We have old collect2
  8982. hardcode_direct=unsupported
  8983. # It fails to find uninstalled libraries when the uninstalled
  8984. # path is not listed in the libpath. Setting hardcode_minus_L
  8985. # to unsupported forces relinking
  8986. hardcode_minus_L=yes
  8987. hardcode_libdir_flag_spec='-L$libdir'
  8988. hardcode_libdir_separator=
  8989. fi
  8990. ;;
  8991. esac
  8992. shared_flag='-shared'
  8993. if test "$aix_use_runtimelinking" = yes; then
  8994. shared_flag="$shared_flag "'${wl}-G'
  8995. fi
  8996. else
  8997. # not using gcc
  8998. if test "$host_cpu" = ia64; then
  8999. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9000. # chokes on -Wl,-G. The following line is correct:
  9001. shared_flag='-G'
  9002. else
  9003. if test "$aix_use_runtimelinking" = yes; then
  9004. shared_flag='${wl}-G'
  9005. else
  9006. shared_flag='${wl}-bM:SRE'
  9007. fi
  9008. fi
  9009. fi
  9010. export_dynamic_flag_spec='${wl}-bexpall'
  9011. # It seems that -bexpall does not export symbols beginning with
  9012. # underscore (_), so it is better to generate a list of symbols to export.
  9013. always_export_symbols=yes
  9014. if test "$aix_use_runtimelinking" = yes; then
  9015. # Warning - without using the other runtime loading flags (-brtl),
  9016. # -berok will link without error, but may produce a broken library.
  9017. allow_undefined_flag='-berok'
  9018. # Determine the default libpath from the value encoded in an
  9019. # empty executable.
  9020. cat >conftest.$ac_ext <<_ACEOF
  9021. /* confdefs.h. */
  9022. _ACEOF
  9023. cat confdefs.h >>conftest.$ac_ext
  9024. cat >>conftest.$ac_ext <<_ACEOF
  9025. /* end confdefs.h. */
  9026. int
  9027. main ()
  9028. {
  9029. ;
  9030. return 0;
  9031. }
  9032. _ACEOF
  9033. rm -f conftest.$ac_objext conftest$ac_exeext
  9034. if { (ac_try="$ac_link"
  9035. case "(($ac_try" in
  9036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9037. *) ac_try_echo=$ac_try;;
  9038. esac
  9039. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9040. $as_echo "$ac_try_echo") >&5
  9041. (eval "$ac_link") 2>conftest.er1
  9042. ac_status=$?
  9043. grep -v '^ *+' conftest.er1 >conftest.err
  9044. rm -f conftest.er1
  9045. cat conftest.err >&5
  9046. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9047. (exit $ac_status); } && {
  9048. test -z "$ac_c_werror_flag" ||
  9049. test ! -s conftest.err
  9050. } && test -s conftest$ac_exeext && {
  9051. test "$cross_compiling" = yes ||
  9052. $as_test_x conftest$ac_exeext
  9053. }; then
  9054. lt_aix_libpath_sed='
  9055. /Import File Strings/,/^$/ {
  9056. /^0/ {
  9057. s/^0 *\(.*\)$/\1/
  9058. p
  9059. }
  9060. }'
  9061. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9062. # Check for a 64-bit object if we didn't find anything.
  9063. if test -z "$aix_libpath"; then
  9064. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9065. fi
  9066. else
  9067. $as_echo "$as_me: failed program was:" >&5
  9068. sed 's/^/| /' conftest.$ac_ext >&5
  9069. fi
  9070. rm -rf conftest.dSYM
  9071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9072. conftest$ac_exeext conftest.$ac_ext
  9073. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9074. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9075. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9076. else
  9077. if test "$host_cpu" = ia64; then
  9078. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9079. allow_undefined_flag="-z nodefs"
  9080. 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"
  9081. else
  9082. # Determine the default libpath from the value encoded in an
  9083. # empty executable.
  9084. cat >conftest.$ac_ext <<_ACEOF
  9085. /* confdefs.h. */
  9086. _ACEOF
  9087. cat confdefs.h >>conftest.$ac_ext
  9088. cat >>conftest.$ac_ext <<_ACEOF
  9089. /* end confdefs.h. */
  9090. int
  9091. main ()
  9092. {
  9093. ;
  9094. return 0;
  9095. }
  9096. _ACEOF
  9097. rm -f conftest.$ac_objext conftest$ac_exeext
  9098. if { (ac_try="$ac_link"
  9099. case "(($ac_try" in
  9100. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9101. *) ac_try_echo=$ac_try;;
  9102. esac
  9103. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9104. $as_echo "$ac_try_echo") >&5
  9105. (eval "$ac_link") 2>conftest.er1
  9106. ac_status=$?
  9107. grep -v '^ *+' conftest.er1 >conftest.err
  9108. rm -f conftest.er1
  9109. cat conftest.err >&5
  9110. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9111. (exit $ac_status); } && {
  9112. test -z "$ac_c_werror_flag" ||
  9113. test ! -s conftest.err
  9114. } && test -s conftest$ac_exeext && {
  9115. test "$cross_compiling" = yes ||
  9116. $as_test_x conftest$ac_exeext
  9117. }; then
  9118. lt_aix_libpath_sed='
  9119. /Import File Strings/,/^$/ {
  9120. /^0/ {
  9121. s/^0 *\(.*\)$/\1/
  9122. p
  9123. }
  9124. }'
  9125. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9126. # Check for a 64-bit object if we didn't find anything.
  9127. if test -z "$aix_libpath"; then
  9128. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9129. fi
  9130. else
  9131. $as_echo "$as_me: failed program was:" >&5
  9132. sed 's/^/| /' conftest.$ac_ext >&5
  9133. fi
  9134. rm -rf conftest.dSYM
  9135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9136. conftest$ac_exeext conftest.$ac_ext
  9137. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9138. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9139. # Warning - without using the other run time loading flags,
  9140. # -berok will link without error, but may produce a broken library.
  9141. no_undefined_flag=' ${wl}-bernotok'
  9142. allow_undefined_flag=' ${wl}-berok'
  9143. # Exported symbols can be pulled into shared objects from archives
  9144. whole_archive_flag_spec='$convenience'
  9145. archive_cmds_need_lc=yes
  9146. # This is similar to how AIX traditionally builds its shared libraries.
  9147. 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'
  9148. fi
  9149. fi
  9150. ;;
  9151. amigaos*)
  9152. case $host_cpu in
  9153. powerpc)
  9154. # see comment about AmigaOS4 .so support
  9155. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9156. archive_expsym_cmds=''
  9157. ;;
  9158. m68k)
  9159. 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)'
  9160. hardcode_libdir_flag_spec='-L$libdir'
  9161. hardcode_minus_L=yes
  9162. ;;
  9163. esac
  9164. ;;
  9165. bsdi[45]*)
  9166. export_dynamic_flag_spec=-rdynamic
  9167. ;;
  9168. cygwin* | mingw* | pw32* | cegcc*)
  9169. # When not using gcc, we currently assume that we are using
  9170. # Microsoft Visual C++.
  9171. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9172. # no search path for DLLs.
  9173. hardcode_libdir_flag_spec=' '
  9174. allow_undefined_flag=unsupported
  9175. # Tell ltmain to make .lib files, not .a files.
  9176. libext=lib
  9177. # Tell ltmain to make .dll files, not .so files.
  9178. shrext_cmds=".dll"
  9179. # FIXME: Setting linknames here is a bad hack.
  9180. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9181. # The linker will automatically build a .lib file if we build a DLL.
  9182. old_archive_from_new_cmds='true'
  9183. # FIXME: Should let the user specify the lib program.
  9184. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9185. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9186. enable_shared_with_static_runtimes=yes
  9187. ;;
  9188. darwin* | rhapsody*)
  9189. archive_cmds_need_lc=no
  9190. hardcode_direct=no
  9191. hardcode_automatic=yes
  9192. hardcode_shlibpath_var=unsupported
  9193. whole_archive_flag_spec=''
  9194. link_all_deplibs=yes
  9195. allow_undefined_flag="$_lt_dar_allow_undefined"
  9196. case $cc_basename in
  9197. ifort*) _lt_dar_can_shared=yes ;;
  9198. *) _lt_dar_can_shared=$GCC ;;
  9199. esac
  9200. if test "$_lt_dar_can_shared" = "yes"; then
  9201. output_verbose_link_cmd=echo
  9202. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9203. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9204. 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}"
  9205. 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}"
  9206. else
  9207. ld_shlibs=no
  9208. fi
  9209. ;;
  9210. dgux*)
  9211. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9212. hardcode_libdir_flag_spec='-L$libdir'
  9213. hardcode_shlibpath_var=no
  9214. ;;
  9215. freebsd1*)
  9216. ld_shlibs=no
  9217. ;;
  9218. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9219. # support. Future versions do this automatically, but an explicit c++rt0.o
  9220. # does not break anything, and helps significantly (at the cost of a little
  9221. # extra space).
  9222. freebsd2.2*)
  9223. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9224. hardcode_libdir_flag_spec='-R$libdir'
  9225. hardcode_direct=yes
  9226. hardcode_shlibpath_var=no
  9227. ;;
  9228. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9229. freebsd2*)
  9230. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9231. hardcode_direct=yes
  9232. hardcode_minus_L=yes
  9233. hardcode_shlibpath_var=no
  9234. ;;
  9235. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9236. freebsd* | dragonfly*)
  9237. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9238. hardcode_libdir_flag_spec='-R$libdir'
  9239. hardcode_direct=yes
  9240. hardcode_shlibpath_var=no
  9241. ;;
  9242. hpux9*)
  9243. if test "$GCC" = yes; then
  9244. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9245. else
  9246. 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'
  9247. fi
  9248. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9249. hardcode_libdir_separator=:
  9250. hardcode_direct=yes
  9251. # hardcode_minus_L: Not really in the search PATH,
  9252. # but as the default location of the library.
  9253. hardcode_minus_L=yes
  9254. export_dynamic_flag_spec='${wl}-E'
  9255. ;;
  9256. hpux10*)
  9257. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9258. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9259. else
  9260. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9261. fi
  9262. if test "$with_gnu_ld" = no; then
  9263. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9264. hardcode_libdir_flag_spec_ld='+b $libdir'
  9265. hardcode_libdir_separator=:
  9266. hardcode_direct=yes
  9267. hardcode_direct_absolute=yes
  9268. export_dynamic_flag_spec='${wl}-E'
  9269. # hardcode_minus_L: Not really in the search PATH,
  9270. # but as the default location of the library.
  9271. hardcode_minus_L=yes
  9272. fi
  9273. ;;
  9274. hpux11*)
  9275. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9276. case $host_cpu in
  9277. hppa*64*)
  9278. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9279. ;;
  9280. ia64*)
  9281. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9282. ;;
  9283. *)
  9284. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9285. ;;
  9286. esac
  9287. else
  9288. case $host_cpu in
  9289. hppa*64*)
  9290. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9291. ;;
  9292. ia64*)
  9293. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9294. ;;
  9295. *)
  9296. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9297. ;;
  9298. esac
  9299. fi
  9300. if test "$with_gnu_ld" = no; then
  9301. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9302. hardcode_libdir_separator=:
  9303. case $host_cpu in
  9304. hppa*64*|ia64*)
  9305. hardcode_direct=no
  9306. hardcode_shlibpath_var=no
  9307. ;;
  9308. *)
  9309. hardcode_direct=yes
  9310. hardcode_direct_absolute=yes
  9311. export_dynamic_flag_spec='${wl}-E'
  9312. # hardcode_minus_L: Not really in the search PATH,
  9313. # but as the default location of the library.
  9314. hardcode_minus_L=yes
  9315. ;;
  9316. esac
  9317. fi
  9318. ;;
  9319. irix5* | irix6* | nonstopux*)
  9320. if test "$GCC" = yes; then
  9321. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9322. # Try to use the -exported_symbol ld option, if it does not
  9323. # work, assume that -exports_file does not work either and
  9324. # implicitly export all symbols.
  9325. save_LDFLAGS="$LDFLAGS"
  9326. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9327. cat >conftest.$ac_ext <<_ACEOF
  9328. int foo(void) {}
  9329. _ACEOF
  9330. rm -f conftest.$ac_objext conftest$ac_exeext
  9331. if { (ac_try="$ac_link"
  9332. case "(($ac_try" in
  9333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9334. *) ac_try_echo=$ac_try;;
  9335. esac
  9336. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9337. $as_echo "$ac_try_echo") >&5
  9338. (eval "$ac_link") 2>conftest.er1
  9339. ac_status=$?
  9340. grep -v '^ *+' conftest.er1 >conftest.err
  9341. rm -f conftest.er1
  9342. cat conftest.err >&5
  9343. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9344. (exit $ac_status); } && {
  9345. test -z "$ac_c_werror_flag" ||
  9346. test ! -s conftest.err
  9347. } && test -s conftest$ac_exeext && {
  9348. test "$cross_compiling" = yes ||
  9349. $as_test_x conftest$ac_exeext
  9350. }; then
  9351. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9352. else
  9353. $as_echo "$as_me: failed program was:" >&5
  9354. sed 's/^/| /' conftest.$ac_ext >&5
  9355. fi
  9356. rm -rf conftest.dSYM
  9357. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9358. conftest$ac_exeext conftest.$ac_ext
  9359. LDFLAGS="$save_LDFLAGS"
  9360. else
  9361. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9362. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9363. fi
  9364. archive_cmds_need_lc='no'
  9365. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9366. hardcode_libdir_separator=:
  9367. inherit_rpath=yes
  9368. link_all_deplibs=yes
  9369. ;;
  9370. netbsd*)
  9371. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9372. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9373. else
  9374. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9375. fi
  9376. hardcode_libdir_flag_spec='-R$libdir'
  9377. hardcode_direct=yes
  9378. hardcode_shlibpath_var=no
  9379. ;;
  9380. newsos6)
  9381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9382. hardcode_direct=yes
  9383. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9384. hardcode_libdir_separator=:
  9385. hardcode_shlibpath_var=no
  9386. ;;
  9387. *nto* | *qnx*)
  9388. ;;
  9389. openbsd*)
  9390. if test -f /usr/libexec/ld.so; then
  9391. hardcode_direct=yes
  9392. hardcode_shlibpath_var=no
  9393. hardcode_direct_absolute=yes
  9394. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9395. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9396. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9397. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9398. export_dynamic_flag_spec='${wl}-E'
  9399. else
  9400. case $host_os in
  9401. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9402. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9403. hardcode_libdir_flag_spec='-R$libdir'
  9404. ;;
  9405. *)
  9406. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9407. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9408. ;;
  9409. esac
  9410. fi
  9411. else
  9412. ld_shlibs=no
  9413. fi
  9414. ;;
  9415. os2*)
  9416. hardcode_libdir_flag_spec='-L$libdir'
  9417. hardcode_minus_L=yes
  9418. allow_undefined_flag=unsupported
  9419. 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'
  9420. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9421. ;;
  9422. osf3*)
  9423. if test "$GCC" = yes; then
  9424. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9425. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9426. else
  9427. allow_undefined_flag=' -expect_unresolved \*'
  9428. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9429. fi
  9430. archive_cmds_need_lc='no'
  9431. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9432. hardcode_libdir_separator=:
  9433. ;;
  9434. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9435. if test "$GCC" = yes; then
  9436. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9437. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9438. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9439. else
  9440. allow_undefined_flag=' -expect_unresolved \*'
  9441. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9442. 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~
  9443. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9444. # Both c and cxx compiler support -rpath directly
  9445. hardcode_libdir_flag_spec='-rpath $libdir'
  9446. fi
  9447. archive_cmds_need_lc='no'
  9448. hardcode_libdir_separator=:
  9449. ;;
  9450. solaris*)
  9451. no_undefined_flag=' -z defs'
  9452. if test "$GCC" = yes; then
  9453. wlarc='${wl}'
  9454. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9455. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9456. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9457. else
  9458. case `$CC -V 2>&1` in
  9459. *"Compilers 5.0"*)
  9460. wlarc=''
  9461. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9462. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9463. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9464. ;;
  9465. *)
  9466. wlarc='${wl}'
  9467. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9468. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9469. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9470. ;;
  9471. esac
  9472. fi
  9473. hardcode_libdir_flag_spec='-R$libdir'
  9474. hardcode_shlibpath_var=no
  9475. case $host_os in
  9476. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9477. *)
  9478. # The compiler driver will combine and reorder linker options,
  9479. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9480. # but is careful enough not to reorder.
  9481. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9482. if test "$GCC" = yes; then
  9483. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9484. else
  9485. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9486. fi
  9487. ;;
  9488. esac
  9489. link_all_deplibs=yes
  9490. ;;
  9491. sunos4*)
  9492. if test "x$host_vendor" = xsequent; then
  9493. # Use $CC to link under sequent, because it throws in some extra .o
  9494. # files that make .init and .fini sections work.
  9495. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9496. else
  9497. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9498. fi
  9499. hardcode_libdir_flag_spec='-L$libdir'
  9500. hardcode_direct=yes
  9501. hardcode_minus_L=yes
  9502. hardcode_shlibpath_var=no
  9503. ;;
  9504. sysv4)
  9505. case $host_vendor in
  9506. sni)
  9507. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9508. hardcode_direct=yes # is this really true???
  9509. ;;
  9510. siemens)
  9511. ## LD is ld it makes a PLAMLIB
  9512. ## CC just makes a GrossModule.
  9513. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9514. reload_cmds='$CC -r -o $output$reload_objs'
  9515. hardcode_direct=no
  9516. ;;
  9517. motorola)
  9518. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9519. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9520. ;;
  9521. esac
  9522. runpath_var='LD_RUN_PATH'
  9523. hardcode_shlibpath_var=no
  9524. ;;
  9525. sysv4.3*)
  9526. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9527. hardcode_shlibpath_var=no
  9528. export_dynamic_flag_spec='-Bexport'
  9529. ;;
  9530. sysv4*MP*)
  9531. if test -d /usr/nec; then
  9532. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9533. hardcode_shlibpath_var=no
  9534. runpath_var=LD_RUN_PATH
  9535. hardcode_runpath_var=yes
  9536. ld_shlibs=yes
  9537. fi
  9538. ;;
  9539. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9540. no_undefined_flag='${wl}-z,text'
  9541. archive_cmds_need_lc=no
  9542. hardcode_shlibpath_var=no
  9543. runpath_var='LD_RUN_PATH'
  9544. if test "$GCC" = yes; then
  9545. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9546. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9547. else
  9548. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9549. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9550. fi
  9551. ;;
  9552. sysv5* | sco3.2v5* | sco5v6*)
  9553. # Note: We can NOT use -z defs as we might desire, because we do not
  9554. # link with -lc, and that would cause any symbols used from libc to
  9555. # always be unresolved, which means just about no library would
  9556. # ever link correctly. If we're not using GNU ld we use -z text
  9557. # though, which does catch some bad symbols but isn't as heavy-handed
  9558. # as -z defs.
  9559. no_undefined_flag='${wl}-z,text'
  9560. allow_undefined_flag='${wl}-z,nodefs'
  9561. archive_cmds_need_lc=no
  9562. hardcode_shlibpath_var=no
  9563. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9564. hardcode_libdir_separator=':'
  9565. link_all_deplibs=yes
  9566. export_dynamic_flag_spec='${wl}-Bexport'
  9567. runpath_var='LD_RUN_PATH'
  9568. if test "$GCC" = yes; then
  9569. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9570. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9571. else
  9572. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9573. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9574. fi
  9575. ;;
  9576. uts4*)
  9577. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9578. hardcode_libdir_flag_spec='-L$libdir'
  9579. hardcode_shlibpath_var=no
  9580. ;;
  9581. *)
  9582. ld_shlibs=no
  9583. ;;
  9584. esac
  9585. if test x$host_vendor = xsni; then
  9586. case $host in
  9587. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9588. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9589. ;;
  9590. esac
  9591. fi
  9592. fi
  9593. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9594. $as_echo "$ld_shlibs" >&6; }
  9595. test "$ld_shlibs" = no && can_build_shared=no
  9596. with_gnu_ld=$with_gnu_ld
  9597. #
  9598. # Do we need to explicitly link libc?
  9599. #
  9600. case "x$archive_cmds_need_lc" in
  9601. x|xyes)
  9602. # Assume -lc should be added
  9603. archive_cmds_need_lc=yes
  9604. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9605. case $archive_cmds in
  9606. *'~'*)
  9607. # FIXME: we may have to deal with multi-command sequences.
  9608. ;;
  9609. '$CC '*)
  9610. # Test whether the compiler implicitly links with -lc since on some
  9611. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9612. # to ld, don't add -lc before -lgcc.
  9613. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9614. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9615. $RM conftest*
  9616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9617. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9618. (eval $ac_compile) 2>&5
  9619. ac_status=$?
  9620. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9621. (exit $ac_status); } 2>conftest.err; then
  9622. soname=conftest
  9623. lib=conftest
  9624. libobjs=conftest.$ac_objext
  9625. deplibs=
  9626. wl=$lt_prog_compiler_wl
  9627. pic_flag=$lt_prog_compiler_pic
  9628. compiler_flags=-v
  9629. linker_flags=-v
  9630. verstring=
  9631. output_objdir=.
  9632. libname=conftest
  9633. lt_save_allow_undefined_flag=$allow_undefined_flag
  9634. allow_undefined_flag=
  9635. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9636. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9637. ac_status=$?
  9638. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9639. (exit $ac_status); }
  9640. then
  9641. archive_cmds_need_lc=no
  9642. else
  9643. archive_cmds_need_lc=yes
  9644. fi
  9645. allow_undefined_flag=$lt_save_allow_undefined_flag
  9646. else
  9647. cat conftest.err 1>&5
  9648. fi
  9649. $RM conftest*
  9650. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9651. $as_echo "$archive_cmds_need_lc" >&6; }
  9652. ;;
  9653. esac
  9654. fi
  9655. ;;
  9656. esac
  9657. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9658. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9659. if test "$GCC" = yes; then
  9660. case $host_os in
  9661. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9662. *) lt_awk_arg="/^libraries:/" ;;
  9663. esac
  9664. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9665. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9666. # if the path contains ";" then we assume it to be the separator
  9667. # otherwise default to the standard path separator (i.e. ":") - it is
  9668. # assumed that no part of a normal pathname contains ";" but that should
  9669. # okay in the real world where ";" in dirpaths is itself problematic.
  9670. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9671. else
  9672. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9673. fi
  9674. # Ok, now we have the path, separated by spaces, we can step through it
  9675. # and add multilib dir if necessary.
  9676. lt_tmp_lt_search_path_spec=
  9677. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9678. for lt_sys_path in $lt_search_path_spec; do
  9679. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9680. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9681. else
  9682. test -d "$lt_sys_path" && \
  9683. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9684. fi
  9685. done
  9686. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9687. BEGIN {RS=" "; FS="/|\n";} {
  9688. lt_foo="";
  9689. lt_count=0;
  9690. for (lt_i = NF; lt_i > 0; lt_i--) {
  9691. if ($lt_i != "" && $lt_i != ".") {
  9692. if ($lt_i == "..") {
  9693. lt_count++;
  9694. } else {
  9695. if (lt_count == 0) {
  9696. lt_foo="/" $lt_i lt_foo;
  9697. } else {
  9698. lt_count--;
  9699. }
  9700. }
  9701. }
  9702. }
  9703. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9704. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9705. }'`
  9706. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9707. else
  9708. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9709. fi
  9710. library_names_spec=
  9711. libname_spec='lib$name'
  9712. soname_spec=
  9713. shrext_cmds=".so"
  9714. postinstall_cmds=
  9715. postuninstall_cmds=
  9716. finish_cmds=
  9717. finish_eval=
  9718. shlibpath_var=
  9719. shlibpath_overrides_runpath=unknown
  9720. version_type=none
  9721. dynamic_linker="$host_os ld.so"
  9722. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9723. need_lib_prefix=unknown
  9724. hardcode_into_libs=no
  9725. # when you set need_version to no, make sure it does not cause -set_version
  9726. # flags to be left without arguments
  9727. need_version=unknown
  9728. case $host_os in
  9729. aix3*)
  9730. version_type=linux
  9731. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9732. shlibpath_var=LIBPATH
  9733. # AIX 3 has no versioning support, so we append a major version to the name.
  9734. soname_spec='${libname}${release}${shared_ext}$major'
  9735. ;;
  9736. aix[4-9]*)
  9737. version_type=linux
  9738. need_lib_prefix=no
  9739. need_version=no
  9740. hardcode_into_libs=yes
  9741. if test "$host_cpu" = ia64; then
  9742. # AIX 5 supports IA64
  9743. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9744. shlibpath_var=LD_LIBRARY_PATH
  9745. else
  9746. # With GCC up to 2.95.x, collect2 would create an import file
  9747. # for dependence libraries. The import file would start with
  9748. # the line `#! .'. This would cause the generated library to
  9749. # depend on `.', always an invalid library. This was fixed in
  9750. # development snapshots of GCC prior to 3.0.
  9751. case $host_os in
  9752. aix4 | aix4.[01] | aix4.[01].*)
  9753. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9754. echo ' yes '
  9755. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9756. :
  9757. else
  9758. can_build_shared=no
  9759. fi
  9760. ;;
  9761. esac
  9762. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9763. # soname into executable. Probably we can add versioning support to
  9764. # collect2, so additional links can be useful in future.
  9765. if test "$aix_use_runtimelinking" = yes; then
  9766. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9767. # instead of lib<name>.a to let people know that these are not
  9768. # typical AIX shared libraries.
  9769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9770. else
  9771. # We preserve .a as extension for shared libraries through AIX4.2
  9772. # and later when we are not doing run time linking.
  9773. library_names_spec='${libname}${release}.a $libname.a'
  9774. soname_spec='${libname}${release}${shared_ext}$major'
  9775. fi
  9776. shlibpath_var=LIBPATH
  9777. fi
  9778. ;;
  9779. amigaos*)
  9780. case $host_cpu in
  9781. powerpc)
  9782. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9783. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9785. ;;
  9786. m68k)
  9787. library_names_spec='$libname.ixlibrary $libname.a'
  9788. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9789. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9790. ;;
  9791. esac
  9792. ;;
  9793. beos*)
  9794. library_names_spec='${libname}${shared_ext}'
  9795. dynamic_linker="$host_os ld.so"
  9796. shlibpath_var=LIBRARY_PATH
  9797. ;;
  9798. bsdi[45]*)
  9799. version_type=linux
  9800. need_version=no
  9801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9802. soname_spec='${libname}${release}${shared_ext}$major'
  9803. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9806. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9807. # the default ld.so.conf also contains /usr/contrib/lib and
  9808. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9809. # libtool to hard-code these into programs
  9810. ;;
  9811. cygwin* | mingw* | pw32* | cegcc*)
  9812. version_type=windows
  9813. shrext_cmds=".dll"
  9814. need_version=no
  9815. need_lib_prefix=no
  9816. case $GCC,$host_os in
  9817. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9818. library_names_spec='$libname.dll.a'
  9819. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9820. postinstall_cmds='base_file=`basename \${file}`~
  9821. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9822. dldir=$destdir/`dirname \$dlpath`~
  9823. test -d \$dldir || mkdir -p \$dldir~
  9824. $install_prog $dir/$dlname \$dldir/$dlname~
  9825. chmod a+x \$dldir/$dlname~
  9826. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9827. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9828. fi'
  9829. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9830. dlpath=$dir/\$dldll~
  9831. $RM \$dlpath'
  9832. shlibpath_overrides_runpath=yes
  9833. case $host_os in
  9834. cygwin*)
  9835. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9836. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9837. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9838. ;;
  9839. mingw* | cegcc*)
  9840. # MinGW DLLs use traditional 'lib' prefix
  9841. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9842. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9843. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9844. # It is most probably a Windows format PATH printed by
  9845. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9846. # path with ; separators, and with drive letters. We can handle the
  9847. # drive letters (cygwin fileutils understands them), so leave them,
  9848. # especially as we might pass files found there to a mingw objdump,
  9849. # which wouldn't understand a cygwinified path. Ahh.
  9850. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9851. else
  9852. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9853. fi
  9854. ;;
  9855. pw32*)
  9856. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9857. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9858. ;;
  9859. esac
  9860. ;;
  9861. *)
  9862. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9863. ;;
  9864. esac
  9865. dynamic_linker='Win32 ld.exe'
  9866. # FIXME: first we should search . and the directory the executable is in
  9867. shlibpath_var=PATH
  9868. ;;
  9869. darwin* | rhapsody*)
  9870. dynamic_linker="$host_os dyld"
  9871. version_type=darwin
  9872. need_lib_prefix=no
  9873. need_version=no
  9874. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9875. soname_spec='${libname}${release}${major}$shared_ext'
  9876. shlibpath_overrides_runpath=yes
  9877. shlibpath_var=DYLD_LIBRARY_PATH
  9878. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9879. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9880. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9881. ;;
  9882. dgux*)
  9883. version_type=linux
  9884. need_lib_prefix=no
  9885. need_version=no
  9886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9887. soname_spec='${libname}${release}${shared_ext}$major'
  9888. shlibpath_var=LD_LIBRARY_PATH
  9889. ;;
  9890. freebsd1*)
  9891. dynamic_linker=no
  9892. ;;
  9893. freebsd* | dragonfly*)
  9894. # DragonFly does not have aout. When/if they implement a new
  9895. # versioning mechanism, adjust this.
  9896. if test -x /usr/bin/objformat; then
  9897. objformat=`/usr/bin/objformat`
  9898. else
  9899. case $host_os in
  9900. freebsd[123]*) objformat=aout ;;
  9901. *) objformat=elf ;;
  9902. esac
  9903. fi
  9904. version_type=freebsd-$objformat
  9905. case $version_type in
  9906. freebsd-elf*)
  9907. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9908. need_version=no
  9909. need_lib_prefix=no
  9910. ;;
  9911. freebsd-*)
  9912. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9913. need_version=yes
  9914. ;;
  9915. esac
  9916. shlibpath_var=LD_LIBRARY_PATH
  9917. case $host_os in
  9918. freebsd2*)
  9919. shlibpath_overrides_runpath=yes
  9920. ;;
  9921. freebsd3.[01]* | freebsdelf3.[01]*)
  9922. shlibpath_overrides_runpath=yes
  9923. hardcode_into_libs=yes
  9924. ;;
  9925. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9926. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9927. shlibpath_overrides_runpath=no
  9928. hardcode_into_libs=yes
  9929. ;;
  9930. *) # from 4.6 on, and DragonFly
  9931. shlibpath_overrides_runpath=yes
  9932. hardcode_into_libs=yes
  9933. ;;
  9934. esac
  9935. ;;
  9936. gnu*)
  9937. version_type=linux
  9938. need_lib_prefix=no
  9939. need_version=no
  9940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9941. soname_spec='${libname}${release}${shared_ext}$major'
  9942. shlibpath_var=LD_LIBRARY_PATH
  9943. hardcode_into_libs=yes
  9944. ;;
  9945. hpux9* | hpux10* | hpux11*)
  9946. # Give a soname corresponding to the major version so that dld.sl refuses to
  9947. # link against other versions.
  9948. version_type=sunos
  9949. need_lib_prefix=no
  9950. need_version=no
  9951. case $host_cpu in
  9952. ia64*)
  9953. shrext_cmds='.so'
  9954. hardcode_into_libs=yes
  9955. dynamic_linker="$host_os dld.so"
  9956. shlibpath_var=LD_LIBRARY_PATH
  9957. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9959. soname_spec='${libname}${release}${shared_ext}$major'
  9960. if test "X$HPUX_IA64_MODE" = X32; then
  9961. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9962. else
  9963. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9964. fi
  9965. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9966. ;;
  9967. hppa*64*)
  9968. shrext_cmds='.sl'
  9969. hardcode_into_libs=yes
  9970. dynamic_linker="$host_os dld.sl"
  9971. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9972. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9974. soname_spec='${libname}${release}${shared_ext}$major'
  9975. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9976. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9977. ;;
  9978. *)
  9979. shrext_cmds='.sl'
  9980. dynamic_linker="$host_os dld.sl"
  9981. shlibpath_var=SHLIB_PATH
  9982. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9984. soname_spec='${libname}${release}${shared_ext}$major'
  9985. ;;
  9986. esac
  9987. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9988. postinstall_cmds='chmod 555 $lib'
  9989. ;;
  9990. interix[3-9]*)
  9991. version_type=linux
  9992. need_lib_prefix=no
  9993. need_version=no
  9994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9995. soname_spec='${libname}${release}${shared_ext}$major'
  9996. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9997. shlibpath_var=LD_LIBRARY_PATH
  9998. shlibpath_overrides_runpath=no
  9999. hardcode_into_libs=yes
  10000. ;;
  10001. irix5* | irix6* | nonstopux*)
  10002. case $host_os in
  10003. nonstopux*) version_type=nonstopux ;;
  10004. *)
  10005. if test "$lt_cv_prog_gnu_ld" = yes; then
  10006. version_type=linux
  10007. else
  10008. version_type=irix
  10009. fi ;;
  10010. esac
  10011. need_lib_prefix=no
  10012. need_version=no
  10013. soname_spec='${libname}${release}${shared_ext}$major'
  10014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10015. case $host_os in
  10016. irix5* | nonstopux*)
  10017. libsuff= shlibsuff=
  10018. ;;
  10019. *)
  10020. case $LD in # libtool.m4 will add one of these switches to LD
  10021. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10022. libsuff= shlibsuff= libmagic=32-bit;;
  10023. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10024. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10025. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10026. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10027. *) libsuff= shlibsuff= libmagic=never-match;;
  10028. esac
  10029. ;;
  10030. esac
  10031. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10032. shlibpath_overrides_runpath=no
  10033. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10034. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10035. hardcode_into_libs=yes
  10036. ;;
  10037. # No shared lib support for Linux oldld, aout, or coff.
  10038. linux*oldld* | linux*aout* | linux*coff*)
  10039. dynamic_linker=no
  10040. ;;
  10041. # This must be Linux ELF.
  10042. linux* | k*bsd*-gnu)
  10043. version_type=linux
  10044. need_lib_prefix=no
  10045. need_version=no
  10046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10047. soname_spec='${libname}${release}${shared_ext}$major'
  10048. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10049. shlibpath_var=LD_LIBRARY_PATH
  10050. shlibpath_overrides_runpath=no
  10051. # Some binutils ld are patched to set DT_RUNPATH
  10052. save_LDFLAGS=$LDFLAGS
  10053. save_libdir=$libdir
  10054. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10055. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10056. cat >conftest.$ac_ext <<_ACEOF
  10057. /* confdefs.h. */
  10058. _ACEOF
  10059. cat confdefs.h >>conftest.$ac_ext
  10060. cat >>conftest.$ac_ext <<_ACEOF
  10061. /* end confdefs.h. */
  10062. int
  10063. main ()
  10064. {
  10065. ;
  10066. return 0;
  10067. }
  10068. _ACEOF
  10069. rm -f conftest.$ac_objext conftest$ac_exeext
  10070. if { (ac_try="$ac_link"
  10071. case "(($ac_try" in
  10072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10073. *) ac_try_echo=$ac_try;;
  10074. esac
  10075. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10076. $as_echo "$ac_try_echo") >&5
  10077. (eval "$ac_link") 2>conftest.er1
  10078. ac_status=$?
  10079. grep -v '^ *+' conftest.er1 >conftest.err
  10080. rm -f conftest.er1
  10081. cat conftest.err >&5
  10082. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10083. (exit $ac_status); } && {
  10084. test -z "$ac_c_werror_flag" ||
  10085. test ! -s conftest.err
  10086. } && test -s conftest$ac_exeext && {
  10087. test "$cross_compiling" = yes ||
  10088. $as_test_x conftest$ac_exeext
  10089. }; then
  10090. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  10091. shlibpath_overrides_runpath=yes
  10092. fi
  10093. else
  10094. $as_echo "$as_me: failed program was:" >&5
  10095. sed 's/^/| /' conftest.$ac_ext >&5
  10096. fi
  10097. rm -rf conftest.dSYM
  10098. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10099. conftest$ac_exeext conftest.$ac_ext
  10100. LDFLAGS=$save_LDFLAGS
  10101. libdir=$save_libdir
  10102. # This implies no fast_install, which is unacceptable.
  10103. # Some rework will be needed to allow for fast_install
  10104. # before this can be enabled.
  10105. hardcode_into_libs=yes
  10106. # Add ABI-specific directories to the system library path.
  10107. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10108. # Append ld.so.conf contents to the search path
  10109. if test -f /etc/ld.so.conf; then
  10110. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10111. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10112. fi
  10113. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10114. # powerpc, because MkLinux only supported shared libraries with the
  10115. # GNU dynamic linker. Since this was broken with cross compilers,
  10116. # most powerpc-linux boxes support dynamic linking these days and
  10117. # people can always --disable-shared, the test was removed, and we
  10118. # assume the GNU/Linux dynamic linker is in use.
  10119. dynamic_linker='GNU/Linux ld.so'
  10120. ;;
  10121. netbsd*)
  10122. version_type=sunos
  10123. need_lib_prefix=no
  10124. need_version=no
  10125. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10127. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10128. dynamic_linker='NetBSD (a.out) ld.so'
  10129. else
  10130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10131. soname_spec='${libname}${release}${shared_ext}$major'
  10132. dynamic_linker='NetBSD ld.elf_so'
  10133. fi
  10134. shlibpath_var=LD_LIBRARY_PATH
  10135. shlibpath_overrides_runpath=yes
  10136. hardcode_into_libs=yes
  10137. ;;
  10138. newsos6)
  10139. version_type=linux
  10140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10141. shlibpath_var=LD_LIBRARY_PATH
  10142. shlibpath_overrides_runpath=yes
  10143. ;;
  10144. *nto* | *qnx*)
  10145. version_type=qnx
  10146. need_lib_prefix=no
  10147. need_version=no
  10148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10149. soname_spec='${libname}${release}${shared_ext}$major'
  10150. shlibpath_var=LD_LIBRARY_PATH
  10151. shlibpath_overrides_runpath=no
  10152. hardcode_into_libs=yes
  10153. dynamic_linker='ldqnx.so'
  10154. ;;
  10155. openbsd*)
  10156. version_type=sunos
  10157. sys_lib_dlsearch_path_spec="/usr/lib"
  10158. need_lib_prefix=no
  10159. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10160. case $host_os in
  10161. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10162. *) need_version=no ;;
  10163. esac
  10164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10165. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10166. shlibpath_var=LD_LIBRARY_PATH
  10167. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10168. case $host_os in
  10169. openbsd2.[89] | openbsd2.[89].*)
  10170. shlibpath_overrides_runpath=no
  10171. ;;
  10172. *)
  10173. shlibpath_overrides_runpath=yes
  10174. ;;
  10175. esac
  10176. else
  10177. shlibpath_overrides_runpath=yes
  10178. fi
  10179. ;;
  10180. os2*)
  10181. libname_spec='$name'
  10182. shrext_cmds=".dll"
  10183. need_lib_prefix=no
  10184. library_names_spec='$libname${shared_ext} $libname.a'
  10185. dynamic_linker='OS/2 ld.exe'
  10186. shlibpath_var=LIBPATH
  10187. ;;
  10188. osf3* | osf4* | osf5*)
  10189. version_type=osf
  10190. need_lib_prefix=no
  10191. need_version=no
  10192. soname_spec='${libname}${release}${shared_ext}$major'
  10193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10194. shlibpath_var=LD_LIBRARY_PATH
  10195. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10196. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10197. ;;
  10198. rdos*)
  10199. dynamic_linker=no
  10200. ;;
  10201. solaris*)
  10202. version_type=linux
  10203. need_lib_prefix=no
  10204. need_version=no
  10205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10206. soname_spec='${libname}${release}${shared_ext}$major'
  10207. shlibpath_var=LD_LIBRARY_PATH
  10208. shlibpath_overrides_runpath=yes
  10209. hardcode_into_libs=yes
  10210. # ldd complains unless libraries are executable
  10211. postinstall_cmds='chmod +x $lib'
  10212. ;;
  10213. sunos4*)
  10214. version_type=sunos
  10215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10216. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10217. shlibpath_var=LD_LIBRARY_PATH
  10218. shlibpath_overrides_runpath=yes
  10219. if test "$with_gnu_ld" = yes; then
  10220. need_lib_prefix=no
  10221. fi
  10222. need_version=yes
  10223. ;;
  10224. sysv4 | sysv4.3*)
  10225. version_type=linux
  10226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10227. soname_spec='${libname}${release}${shared_ext}$major'
  10228. shlibpath_var=LD_LIBRARY_PATH
  10229. case $host_vendor in
  10230. sni)
  10231. shlibpath_overrides_runpath=no
  10232. need_lib_prefix=no
  10233. runpath_var=LD_RUN_PATH
  10234. ;;
  10235. siemens)
  10236. need_lib_prefix=no
  10237. ;;
  10238. motorola)
  10239. need_lib_prefix=no
  10240. need_version=no
  10241. shlibpath_overrides_runpath=no
  10242. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10243. ;;
  10244. esac
  10245. ;;
  10246. sysv4*MP*)
  10247. if test -d /usr/nec ;then
  10248. version_type=linux
  10249. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10250. soname_spec='$libname${shared_ext}.$major'
  10251. shlibpath_var=LD_LIBRARY_PATH
  10252. fi
  10253. ;;
  10254. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10255. version_type=freebsd-elf
  10256. need_lib_prefix=no
  10257. need_version=no
  10258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10259. soname_spec='${libname}${release}${shared_ext}$major'
  10260. shlibpath_var=LD_LIBRARY_PATH
  10261. shlibpath_overrides_runpath=yes
  10262. hardcode_into_libs=yes
  10263. if test "$with_gnu_ld" = yes; then
  10264. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10265. else
  10266. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10267. case $host_os in
  10268. sco3.2v5*)
  10269. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10270. ;;
  10271. esac
  10272. fi
  10273. sys_lib_dlsearch_path_spec='/usr/lib'
  10274. ;;
  10275. tpf*)
  10276. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10277. version_type=linux
  10278. need_lib_prefix=no
  10279. need_version=no
  10280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10281. shlibpath_var=LD_LIBRARY_PATH
  10282. shlibpath_overrides_runpath=no
  10283. hardcode_into_libs=yes
  10284. ;;
  10285. uts4*)
  10286. version_type=linux
  10287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10288. soname_spec='${libname}${release}${shared_ext}$major'
  10289. shlibpath_var=LD_LIBRARY_PATH
  10290. ;;
  10291. *)
  10292. dynamic_linker=no
  10293. ;;
  10294. esac
  10295. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10296. $as_echo "$dynamic_linker" >&6; }
  10297. test "$dynamic_linker" = no && can_build_shared=no
  10298. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10299. if test "$GCC" = yes; then
  10300. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10301. fi
  10302. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10303. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10304. fi
  10305. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10306. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10307. fi
  10308. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10309. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10310. hardcode_action=
  10311. if test -n "$hardcode_libdir_flag_spec" ||
  10312. test -n "$runpath_var" ||
  10313. test "X$hardcode_automatic" = "Xyes" ; then
  10314. # We can hardcode non-existent directories.
  10315. if test "$hardcode_direct" != no &&
  10316. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10317. # have to relink, otherwise we might link with an installed library
  10318. # when we should be linking with a yet-to-be-installed one
  10319. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10320. test "$hardcode_minus_L" != no; then
  10321. # Linking always hardcodes the temporary library directory.
  10322. hardcode_action=relink
  10323. else
  10324. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10325. hardcode_action=immediate
  10326. fi
  10327. else
  10328. # We cannot hardcode anything, or else we can only hardcode existing
  10329. # directories.
  10330. hardcode_action=unsupported
  10331. fi
  10332. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10333. $as_echo "$hardcode_action" >&6; }
  10334. if test "$hardcode_action" = relink ||
  10335. test "$inherit_rpath" = yes; then
  10336. # Fast installation is not supported
  10337. enable_fast_install=no
  10338. elif test "$shlibpath_overrides_runpath" = yes ||
  10339. test "$enable_shared" = no; then
  10340. # Fast installation is not necessary
  10341. enable_fast_install=needless
  10342. fi
  10343. if test "x$enable_dlopen" != xyes; then
  10344. enable_dlopen=unknown
  10345. enable_dlopen_self=unknown
  10346. enable_dlopen_self_static=unknown
  10347. else
  10348. lt_cv_dlopen=no
  10349. lt_cv_dlopen_libs=
  10350. case $host_os in
  10351. beos*)
  10352. lt_cv_dlopen="load_add_on"
  10353. lt_cv_dlopen_libs=
  10354. lt_cv_dlopen_self=yes
  10355. ;;
  10356. mingw* | pw32* | cegcc*)
  10357. lt_cv_dlopen="LoadLibrary"
  10358. lt_cv_dlopen_libs=
  10359. ;;
  10360. cygwin*)
  10361. lt_cv_dlopen="dlopen"
  10362. lt_cv_dlopen_libs=
  10363. ;;
  10364. darwin*)
  10365. # if libdl is installed we need to link against it
  10366. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10367. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10368. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10369. $as_echo_n "(cached) " >&6
  10370. else
  10371. ac_check_lib_save_LIBS=$LIBS
  10372. LIBS="-ldl $LIBS"
  10373. cat >conftest.$ac_ext <<_ACEOF
  10374. /* confdefs.h. */
  10375. _ACEOF
  10376. cat confdefs.h >>conftest.$ac_ext
  10377. cat >>conftest.$ac_ext <<_ACEOF
  10378. /* end confdefs.h. */
  10379. /* Override any GCC internal prototype to avoid an error.
  10380. Use char because int might match the return type of a GCC
  10381. builtin and then its argument prototype would still apply. */
  10382. #ifdef __cplusplus
  10383. extern "C"
  10384. #endif
  10385. char dlopen ();
  10386. int
  10387. main ()
  10388. {
  10389. return dlopen ();
  10390. ;
  10391. return 0;
  10392. }
  10393. _ACEOF
  10394. rm -f conftest.$ac_objext conftest$ac_exeext
  10395. if { (ac_try="$ac_link"
  10396. case "(($ac_try" in
  10397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10398. *) ac_try_echo=$ac_try;;
  10399. esac
  10400. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10401. $as_echo "$ac_try_echo") >&5
  10402. (eval "$ac_link") 2>conftest.er1
  10403. ac_status=$?
  10404. grep -v '^ *+' conftest.er1 >conftest.err
  10405. rm -f conftest.er1
  10406. cat conftest.err >&5
  10407. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10408. (exit $ac_status); } && {
  10409. test -z "$ac_c_werror_flag" ||
  10410. test ! -s conftest.err
  10411. } && test -s conftest$ac_exeext && {
  10412. test "$cross_compiling" = yes ||
  10413. $as_test_x conftest$ac_exeext
  10414. }; then
  10415. ac_cv_lib_dl_dlopen=yes
  10416. else
  10417. $as_echo "$as_me: failed program was:" >&5
  10418. sed 's/^/| /' conftest.$ac_ext >&5
  10419. ac_cv_lib_dl_dlopen=no
  10420. fi
  10421. rm -rf conftest.dSYM
  10422. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10423. conftest$ac_exeext conftest.$ac_ext
  10424. LIBS=$ac_check_lib_save_LIBS
  10425. fi
  10426. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10427. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10428. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10429. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10430. else
  10431. lt_cv_dlopen="dyld"
  10432. lt_cv_dlopen_libs=
  10433. lt_cv_dlopen_self=yes
  10434. fi
  10435. ;;
  10436. *)
  10437. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  10438. $as_echo_n "checking for shl_load... " >&6; }
  10439. if test "${ac_cv_func_shl_load+set}" = set; then
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. cat >conftest.$ac_ext <<_ACEOF
  10443. /* confdefs.h. */
  10444. _ACEOF
  10445. cat confdefs.h >>conftest.$ac_ext
  10446. cat >>conftest.$ac_ext <<_ACEOF
  10447. /* end confdefs.h. */
  10448. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10449. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10450. #define shl_load innocuous_shl_load
  10451. /* System header to define __stub macros and hopefully few prototypes,
  10452. which can conflict with char shl_load (); below.
  10453. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10454. <limits.h> exists even on freestanding compilers. */
  10455. #ifdef __STDC__
  10456. # include <limits.h>
  10457. #else
  10458. # include <assert.h>
  10459. #endif
  10460. #undef shl_load
  10461. /* Override any GCC internal prototype to avoid an error.
  10462. Use char because int might match the return type of a GCC
  10463. builtin and then its argument prototype would still apply. */
  10464. #ifdef __cplusplus
  10465. extern "C"
  10466. #endif
  10467. char shl_load ();
  10468. /* The GNU C library defines this for functions which it implements
  10469. to always fail with ENOSYS. Some functions are actually named
  10470. something starting with __ and the normal name is an alias. */
  10471. #if defined __stub_shl_load || defined __stub___shl_load
  10472. choke me
  10473. #endif
  10474. int
  10475. main ()
  10476. {
  10477. return shl_load ();
  10478. ;
  10479. return 0;
  10480. }
  10481. _ACEOF
  10482. rm -f conftest.$ac_objext conftest$ac_exeext
  10483. if { (ac_try="$ac_link"
  10484. case "(($ac_try" in
  10485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10486. *) ac_try_echo=$ac_try;;
  10487. esac
  10488. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10489. $as_echo "$ac_try_echo") >&5
  10490. (eval "$ac_link") 2>conftest.er1
  10491. ac_status=$?
  10492. grep -v '^ *+' conftest.er1 >conftest.err
  10493. rm -f conftest.er1
  10494. cat conftest.err >&5
  10495. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10496. (exit $ac_status); } && {
  10497. test -z "$ac_c_werror_flag" ||
  10498. test ! -s conftest.err
  10499. } && test -s conftest$ac_exeext && {
  10500. test "$cross_compiling" = yes ||
  10501. $as_test_x conftest$ac_exeext
  10502. }; then
  10503. ac_cv_func_shl_load=yes
  10504. else
  10505. $as_echo "$as_me: failed program was:" >&5
  10506. sed 's/^/| /' conftest.$ac_ext >&5
  10507. ac_cv_func_shl_load=no
  10508. fi
  10509. rm -rf conftest.dSYM
  10510. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10511. conftest$ac_exeext conftest.$ac_ext
  10512. fi
  10513. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10514. $as_echo "$ac_cv_func_shl_load" >&6; }
  10515. if test "x$ac_cv_func_shl_load" = x""yes; then
  10516. lt_cv_dlopen="shl_load"
  10517. else
  10518. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10519. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10520. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10521. $as_echo_n "(cached) " >&6
  10522. else
  10523. ac_check_lib_save_LIBS=$LIBS
  10524. LIBS="-ldld $LIBS"
  10525. cat >conftest.$ac_ext <<_ACEOF
  10526. /* confdefs.h. */
  10527. _ACEOF
  10528. cat confdefs.h >>conftest.$ac_ext
  10529. cat >>conftest.$ac_ext <<_ACEOF
  10530. /* end confdefs.h. */
  10531. /* Override any GCC internal prototype to avoid an error.
  10532. Use char because int might match the return type of a GCC
  10533. builtin and then its argument prototype would still apply. */
  10534. #ifdef __cplusplus
  10535. extern "C"
  10536. #endif
  10537. char shl_load ();
  10538. int
  10539. main ()
  10540. {
  10541. return shl_load ();
  10542. ;
  10543. return 0;
  10544. }
  10545. _ACEOF
  10546. rm -f conftest.$ac_objext conftest$ac_exeext
  10547. if { (ac_try="$ac_link"
  10548. case "(($ac_try" in
  10549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10550. *) ac_try_echo=$ac_try;;
  10551. esac
  10552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10553. $as_echo "$ac_try_echo") >&5
  10554. (eval "$ac_link") 2>conftest.er1
  10555. ac_status=$?
  10556. grep -v '^ *+' conftest.er1 >conftest.err
  10557. rm -f conftest.er1
  10558. cat conftest.err >&5
  10559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10560. (exit $ac_status); } && {
  10561. test -z "$ac_c_werror_flag" ||
  10562. test ! -s conftest.err
  10563. } && test -s conftest$ac_exeext && {
  10564. test "$cross_compiling" = yes ||
  10565. $as_test_x conftest$ac_exeext
  10566. }; then
  10567. ac_cv_lib_dld_shl_load=yes
  10568. else
  10569. $as_echo "$as_me: failed program was:" >&5
  10570. sed 's/^/| /' conftest.$ac_ext >&5
  10571. ac_cv_lib_dld_shl_load=no
  10572. fi
  10573. rm -rf conftest.dSYM
  10574. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10575. conftest$ac_exeext conftest.$ac_ext
  10576. LIBS=$ac_check_lib_save_LIBS
  10577. fi
  10578. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10579. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10580. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  10581. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10582. else
  10583. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  10584. $as_echo_n "checking for dlopen... " >&6; }
  10585. if test "${ac_cv_func_dlopen+set}" = set; then
  10586. $as_echo_n "(cached) " >&6
  10587. else
  10588. cat >conftest.$ac_ext <<_ACEOF
  10589. /* confdefs.h. */
  10590. _ACEOF
  10591. cat confdefs.h >>conftest.$ac_ext
  10592. cat >>conftest.$ac_ext <<_ACEOF
  10593. /* end confdefs.h. */
  10594. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10595. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10596. #define dlopen innocuous_dlopen
  10597. /* System header to define __stub macros and hopefully few prototypes,
  10598. which can conflict with char dlopen (); below.
  10599. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10600. <limits.h> exists even on freestanding compilers. */
  10601. #ifdef __STDC__
  10602. # include <limits.h>
  10603. #else
  10604. # include <assert.h>
  10605. #endif
  10606. #undef dlopen
  10607. /* Override any GCC internal prototype to avoid an error.
  10608. Use char because int might match the return type of a GCC
  10609. builtin and then its argument prototype would still apply. */
  10610. #ifdef __cplusplus
  10611. extern "C"
  10612. #endif
  10613. char dlopen ();
  10614. /* The GNU C library defines this for functions which it implements
  10615. to always fail with ENOSYS. Some functions are actually named
  10616. something starting with __ and the normal name is an alias. */
  10617. #if defined __stub_dlopen || defined __stub___dlopen
  10618. choke me
  10619. #endif
  10620. int
  10621. main ()
  10622. {
  10623. return dlopen ();
  10624. ;
  10625. return 0;
  10626. }
  10627. _ACEOF
  10628. rm -f conftest.$ac_objext conftest$ac_exeext
  10629. if { (ac_try="$ac_link"
  10630. case "(($ac_try" in
  10631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10632. *) ac_try_echo=$ac_try;;
  10633. esac
  10634. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10635. $as_echo "$ac_try_echo") >&5
  10636. (eval "$ac_link") 2>conftest.er1
  10637. ac_status=$?
  10638. grep -v '^ *+' conftest.er1 >conftest.err
  10639. rm -f conftest.er1
  10640. cat conftest.err >&5
  10641. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10642. (exit $ac_status); } && {
  10643. test -z "$ac_c_werror_flag" ||
  10644. test ! -s conftest.err
  10645. } && test -s conftest$ac_exeext && {
  10646. test "$cross_compiling" = yes ||
  10647. $as_test_x conftest$ac_exeext
  10648. }; then
  10649. ac_cv_func_dlopen=yes
  10650. else
  10651. $as_echo "$as_me: failed program was:" >&5
  10652. sed 's/^/| /' conftest.$ac_ext >&5
  10653. ac_cv_func_dlopen=no
  10654. fi
  10655. rm -rf conftest.dSYM
  10656. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10657. conftest$ac_exeext conftest.$ac_ext
  10658. fi
  10659. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10660. $as_echo "$ac_cv_func_dlopen" >&6; }
  10661. if test "x$ac_cv_func_dlopen" = x""yes; then
  10662. lt_cv_dlopen="dlopen"
  10663. else
  10664. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10665. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10666. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10667. $as_echo_n "(cached) " >&6
  10668. else
  10669. ac_check_lib_save_LIBS=$LIBS
  10670. LIBS="-ldl $LIBS"
  10671. cat >conftest.$ac_ext <<_ACEOF
  10672. /* confdefs.h. */
  10673. _ACEOF
  10674. cat confdefs.h >>conftest.$ac_ext
  10675. cat >>conftest.$ac_ext <<_ACEOF
  10676. /* end confdefs.h. */
  10677. /* Override any GCC internal prototype to avoid an error.
  10678. Use char because int might match the return type of a GCC
  10679. builtin and then its argument prototype would still apply. */
  10680. #ifdef __cplusplus
  10681. extern "C"
  10682. #endif
  10683. char dlopen ();
  10684. int
  10685. main ()
  10686. {
  10687. return dlopen ();
  10688. ;
  10689. return 0;
  10690. }
  10691. _ACEOF
  10692. rm -f conftest.$ac_objext conftest$ac_exeext
  10693. if { (ac_try="$ac_link"
  10694. case "(($ac_try" in
  10695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10696. *) ac_try_echo=$ac_try;;
  10697. esac
  10698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10699. $as_echo "$ac_try_echo") >&5
  10700. (eval "$ac_link") 2>conftest.er1
  10701. ac_status=$?
  10702. grep -v '^ *+' conftest.er1 >conftest.err
  10703. rm -f conftest.er1
  10704. cat conftest.err >&5
  10705. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10706. (exit $ac_status); } && {
  10707. test -z "$ac_c_werror_flag" ||
  10708. test ! -s conftest.err
  10709. } && test -s conftest$ac_exeext && {
  10710. test "$cross_compiling" = yes ||
  10711. $as_test_x conftest$ac_exeext
  10712. }; then
  10713. ac_cv_lib_dl_dlopen=yes
  10714. else
  10715. $as_echo "$as_me: failed program was:" >&5
  10716. sed 's/^/| /' conftest.$ac_ext >&5
  10717. ac_cv_lib_dl_dlopen=no
  10718. fi
  10719. rm -rf conftest.dSYM
  10720. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10721. conftest$ac_exeext conftest.$ac_ext
  10722. LIBS=$ac_check_lib_save_LIBS
  10723. fi
  10724. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10725. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10726. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10727. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10728. else
  10729. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10730. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10731. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10732. $as_echo_n "(cached) " >&6
  10733. else
  10734. ac_check_lib_save_LIBS=$LIBS
  10735. LIBS="-lsvld $LIBS"
  10736. cat >conftest.$ac_ext <<_ACEOF
  10737. /* confdefs.h. */
  10738. _ACEOF
  10739. cat confdefs.h >>conftest.$ac_ext
  10740. cat >>conftest.$ac_ext <<_ACEOF
  10741. /* end confdefs.h. */
  10742. /* Override any GCC internal prototype to avoid an error.
  10743. Use char because int might match the return type of a GCC
  10744. builtin and then its argument prototype would still apply. */
  10745. #ifdef __cplusplus
  10746. extern "C"
  10747. #endif
  10748. char dlopen ();
  10749. int
  10750. main ()
  10751. {
  10752. return dlopen ();
  10753. ;
  10754. return 0;
  10755. }
  10756. _ACEOF
  10757. rm -f conftest.$ac_objext conftest$ac_exeext
  10758. if { (ac_try="$ac_link"
  10759. case "(($ac_try" in
  10760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10761. *) ac_try_echo=$ac_try;;
  10762. esac
  10763. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10764. $as_echo "$ac_try_echo") >&5
  10765. (eval "$ac_link") 2>conftest.er1
  10766. ac_status=$?
  10767. grep -v '^ *+' conftest.er1 >conftest.err
  10768. rm -f conftest.er1
  10769. cat conftest.err >&5
  10770. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10771. (exit $ac_status); } && {
  10772. test -z "$ac_c_werror_flag" ||
  10773. test ! -s conftest.err
  10774. } && test -s conftest$ac_exeext && {
  10775. test "$cross_compiling" = yes ||
  10776. $as_test_x conftest$ac_exeext
  10777. }; then
  10778. ac_cv_lib_svld_dlopen=yes
  10779. else
  10780. $as_echo "$as_me: failed program was:" >&5
  10781. sed 's/^/| /' conftest.$ac_ext >&5
  10782. ac_cv_lib_svld_dlopen=no
  10783. fi
  10784. rm -rf conftest.dSYM
  10785. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10786. conftest$ac_exeext conftest.$ac_ext
  10787. LIBS=$ac_check_lib_save_LIBS
  10788. fi
  10789. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10790. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10791. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  10792. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10793. else
  10794. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10795. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10796. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10797. $as_echo_n "(cached) " >&6
  10798. else
  10799. ac_check_lib_save_LIBS=$LIBS
  10800. LIBS="-ldld $LIBS"
  10801. cat >conftest.$ac_ext <<_ACEOF
  10802. /* confdefs.h. */
  10803. _ACEOF
  10804. cat confdefs.h >>conftest.$ac_ext
  10805. cat >>conftest.$ac_ext <<_ACEOF
  10806. /* end confdefs.h. */
  10807. /* Override any GCC internal prototype to avoid an error.
  10808. Use char because int might match the return type of a GCC
  10809. builtin and then its argument prototype would still apply. */
  10810. #ifdef __cplusplus
  10811. extern "C"
  10812. #endif
  10813. char dld_link ();
  10814. int
  10815. main ()
  10816. {
  10817. return dld_link ();
  10818. ;
  10819. return 0;
  10820. }
  10821. _ACEOF
  10822. rm -f conftest.$ac_objext conftest$ac_exeext
  10823. if { (ac_try="$ac_link"
  10824. case "(($ac_try" in
  10825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10826. *) ac_try_echo=$ac_try;;
  10827. esac
  10828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10829. $as_echo "$ac_try_echo") >&5
  10830. (eval "$ac_link") 2>conftest.er1
  10831. ac_status=$?
  10832. grep -v '^ *+' conftest.er1 >conftest.err
  10833. rm -f conftest.er1
  10834. cat conftest.err >&5
  10835. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10836. (exit $ac_status); } && {
  10837. test -z "$ac_c_werror_flag" ||
  10838. test ! -s conftest.err
  10839. } && test -s conftest$ac_exeext && {
  10840. test "$cross_compiling" = yes ||
  10841. $as_test_x conftest$ac_exeext
  10842. }; then
  10843. ac_cv_lib_dld_dld_link=yes
  10844. else
  10845. $as_echo "$as_me: failed program was:" >&5
  10846. sed 's/^/| /' conftest.$ac_ext >&5
  10847. ac_cv_lib_dld_dld_link=no
  10848. fi
  10849. rm -rf conftest.dSYM
  10850. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10851. conftest$ac_exeext conftest.$ac_ext
  10852. LIBS=$ac_check_lib_save_LIBS
  10853. fi
  10854. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10855. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10856. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  10857. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10858. fi
  10859. fi
  10860. fi
  10861. fi
  10862. fi
  10863. fi
  10864. ;;
  10865. esac
  10866. if test "x$lt_cv_dlopen" != xno; then
  10867. enable_dlopen=yes
  10868. else
  10869. enable_dlopen=no
  10870. fi
  10871. case $lt_cv_dlopen in
  10872. dlopen)
  10873. save_CPPFLAGS="$CPPFLAGS"
  10874. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10875. save_LDFLAGS="$LDFLAGS"
  10876. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10877. save_LIBS="$LIBS"
  10878. LIBS="$lt_cv_dlopen_libs $LIBS"
  10879. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10880. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10881. if test "${lt_cv_dlopen_self+set}" = set; then
  10882. $as_echo_n "(cached) " >&6
  10883. else
  10884. if test "$cross_compiling" = yes; then :
  10885. lt_cv_dlopen_self=cross
  10886. else
  10887. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10888. lt_status=$lt_dlunknown
  10889. cat > conftest.$ac_ext <<_LT_EOF
  10890. #line 12590 "configure"
  10891. #include "confdefs.h"
  10892. #if HAVE_DLFCN_H
  10893. #include <dlfcn.h>
  10894. #endif
  10895. #include <stdio.h>
  10896. #ifdef RTLD_GLOBAL
  10897. # define LT_DLGLOBAL RTLD_GLOBAL
  10898. #else
  10899. # ifdef DL_GLOBAL
  10900. # define LT_DLGLOBAL DL_GLOBAL
  10901. # else
  10902. # define LT_DLGLOBAL 0
  10903. # endif
  10904. #endif
  10905. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10906. find out it does not work in some platform. */
  10907. #ifndef LT_DLLAZY_OR_NOW
  10908. # ifdef RTLD_LAZY
  10909. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10910. # else
  10911. # ifdef DL_LAZY
  10912. # define LT_DLLAZY_OR_NOW DL_LAZY
  10913. # else
  10914. # ifdef RTLD_NOW
  10915. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10916. # else
  10917. # ifdef DL_NOW
  10918. # define LT_DLLAZY_OR_NOW DL_NOW
  10919. # else
  10920. # define LT_DLLAZY_OR_NOW 0
  10921. # endif
  10922. # endif
  10923. # endif
  10924. # endif
  10925. #endif
  10926. void fnord() { int i=42;}
  10927. int main ()
  10928. {
  10929. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10930. int status = $lt_dlunknown;
  10931. if (self)
  10932. {
  10933. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10934. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10935. /* dlclose (self); */
  10936. }
  10937. else
  10938. puts (dlerror ());
  10939. return status;
  10940. }
  10941. _LT_EOF
  10942. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10943. (eval $ac_link) 2>&5
  10944. ac_status=$?
  10945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10946. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10947. (./conftest; exit; ) >&5 2>/dev/null
  10948. lt_status=$?
  10949. case x$lt_status in
  10950. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10951. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10952. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10953. esac
  10954. else :
  10955. # compilation failed
  10956. lt_cv_dlopen_self=no
  10957. fi
  10958. fi
  10959. rm -fr conftest*
  10960. fi
  10961. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10962. $as_echo "$lt_cv_dlopen_self" >&6; }
  10963. if test "x$lt_cv_dlopen_self" = xyes; then
  10964. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10965. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10966. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10967. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10968. $as_echo_n "(cached) " >&6
  10969. else
  10970. if test "$cross_compiling" = yes; then :
  10971. lt_cv_dlopen_self_static=cross
  10972. else
  10973. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10974. lt_status=$lt_dlunknown
  10975. cat > conftest.$ac_ext <<_LT_EOF
  10976. #line 12686 "configure"
  10977. #include "confdefs.h"
  10978. #if HAVE_DLFCN_H
  10979. #include <dlfcn.h>
  10980. #endif
  10981. #include <stdio.h>
  10982. #ifdef RTLD_GLOBAL
  10983. # define LT_DLGLOBAL RTLD_GLOBAL
  10984. #else
  10985. # ifdef DL_GLOBAL
  10986. # define LT_DLGLOBAL DL_GLOBAL
  10987. # else
  10988. # define LT_DLGLOBAL 0
  10989. # endif
  10990. #endif
  10991. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10992. find out it does not work in some platform. */
  10993. #ifndef LT_DLLAZY_OR_NOW
  10994. # ifdef RTLD_LAZY
  10995. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10996. # else
  10997. # ifdef DL_LAZY
  10998. # define LT_DLLAZY_OR_NOW DL_LAZY
  10999. # else
  11000. # ifdef RTLD_NOW
  11001. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11002. # else
  11003. # ifdef DL_NOW
  11004. # define LT_DLLAZY_OR_NOW DL_NOW
  11005. # else
  11006. # define LT_DLLAZY_OR_NOW 0
  11007. # endif
  11008. # endif
  11009. # endif
  11010. # endif
  11011. #endif
  11012. void fnord() { int i=42;}
  11013. int main ()
  11014. {
  11015. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11016. int status = $lt_dlunknown;
  11017. if (self)
  11018. {
  11019. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11020. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11021. /* dlclose (self); */
  11022. }
  11023. else
  11024. puts (dlerror ());
  11025. return status;
  11026. }
  11027. _LT_EOF
  11028. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11029. (eval $ac_link) 2>&5
  11030. ac_status=$?
  11031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11032. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11033. (./conftest; exit; ) >&5 2>/dev/null
  11034. lt_status=$?
  11035. case x$lt_status in
  11036. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11037. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11038. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11039. esac
  11040. else :
  11041. # compilation failed
  11042. lt_cv_dlopen_self_static=no
  11043. fi
  11044. fi
  11045. rm -fr conftest*
  11046. fi
  11047. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11048. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11049. fi
  11050. CPPFLAGS="$save_CPPFLAGS"
  11051. LDFLAGS="$save_LDFLAGS"
  11052. LIBS="$save_LIBS"
  11053. ;;
  11054. esac
  11055. case $lt_cv_dlopen_self in
  11056. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11057. *) enable_dlopen_self=unknown ;;
  11058. esac
  11059. case $lt_cv_dlopen_self_static in
  11060. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11061. *) enable_dlopen_self_static=unknown ;;
  11062. esac
  11063. fi
  11064. striplib=
  11065. old_striplib=
  11066. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11067. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11068. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11069. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11070. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11071. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11072. $as_echo "yes" >&6; }
  11073. else
  11074. # FIXME - insert some real tests, host_os isn't really good enough
  11075. case $host_os in
  11076. darwin*)
  11077. if test -n "$STRIP" ; then
  11078. striplib="$STRIP -x"
  11079. old_striplib="$STRIP -S"
  11080. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11081. $as_echo "yes" >&6; }
  11082. else
  11083. { $as_echo "$as_me:$LINENO: result: no" >&5
  11084. $as_echo "no" >&6; }
  11085. fi
  11086. ;;
  11087. *)
  11088. { $as_echo "$as_me:$LINENO: result: no" >&5
  11089. $as_echo "no" >&6; }
  11090. ;;
  11091. esac
  11092. fi
  11093. # Report which library types will actually be built
  11094. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11095. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11096. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11097. $as_echo "$can_build_shared" >&6; }
  11098. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11099. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11100. test "$can_build_shared" = "no" && enable_shared=no
  11101. # On AIX, shared libraries and static libraries use the same namespace, and
  11102. # are all built from PIC.
  11103. case $host_os in
  11104. aix3*)
  11105. test "$enable_shared" = yes && enable_static=no
  11106. if test -n "$RANLIB"; then
  11107. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11108. postinstall_cmds='$RANLIB $lib'
  11109. fi
  11110. ;;
  11111. aix[4-9]*)
  11112. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11113. test "$enable_shared" = yes && enable_static=no
  11114. fi
  11115. ;;
  11116. esac
  11117. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  11118. $as_echo "$enable_shared" >&6; }
  11119. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11120. $as_echo_n "checking whether to build static libraries... " >&6; }
  11121. # Make sure either enable_shared or enable_static is yes.
  11122. test "$enable_shared" = yes || enable_static=yes
  11123. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  11124. $as_echo "$enable_static" >&6; }
  11125. fi
  11126. ac_ext=c
  11127. ac_cpp='$CPP $CPPFLAGS'
  11128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11131. CC="$lt_save_CC"
  11132. ac_ext=cpp
  11133. ac_cpp='$CXXCPP $CPPFLAGS'
  11134. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11135. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11136. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11137. archive_cmds_need_lc_CXX=no
  11138. allow_undefined_flag_CXX=
  11139. always_export_symbols_CXX=no
  11140. archive_expsym_cmds_CXX=
  11141. compiler_needs_object_CXX=no
  11142. export_dynamic_flag_spec_CXX=
  11143. hardcode_direct_CXX=no
  11144. hardcode_direct_absolute_CXX=no
  11145. hardcode_libdir_flag_spec_CXX=
  11146. hardcode_libdir_flag_spec_ld_CXX=
  11147. hardcode_libdir_separator_CXX=
  11148. hardcode_minus_L_CXX=no
  11149. hardcode_shlibpath_var_CXX=unsupported
  11150. hardcode_automatic_CXX=no
  11151. inherit_rpath_CXX=no
  11152. module_cmds_CXX=
  11153. module_expsym_cmds_CXX=
  11154. link_all_deplibs_CXX=unknown
  11155. old_archive_cmds_CXX=$old_archive_cmds
  11156. no_undefined_flag_CXX=
  11157. whole_archive_flag_spec_CXX=
  11158. enable_shared_with_static_runtimes_CXX=no
  11159. # Source file extension for C++ test sources.
  11160. ac_ext=cpp
  11161. # Object file extension for compiled C++ test sources.
  11162. objext=o
  11163. objext_CXX=$objext
  11164. # No sense in running all these tests if we already determined that
  11165. # the CXX compiler isn't working. Some variables (like enable_shared)
  11166. # are currently assumed to apply to all compilers on this platform,
  11167. # and will be corrupted by setting them based on a non-working compiler.
  11168. if test "$_lt_caught_CXX_error" != yes; then
  11169. # Code to be used in simple compile tests
  11170. lt_simple_compile_test_code="int some_variable = 0;"
  11171. # Code to be used in simple link tests
  11172. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11173. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11174. # If no C compiler was specified, use CC.
  11175. LTCC=${LTCC-"$CC"}
  11176. # If no C compiler flags were specified, use CFLAGS.
  11177. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11178. # Allow CC to be a program name with arguments.
  11179. compiler=$CC
  11180. # save warnings/boilerplate of simple test code
  11181. ac_outfile=conftest.$ac_objext
  11182. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11183. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11184. _lt_compiler_boilerplate=`cat conftest.err`
  11185. $RM conftest*
  11186. ac_outfile=conftest.$ac_objext
  11187. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11188. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11189. _lt_linker_boilerplate=`cat conftest.err`
  11190. $RM -r conftest*
  11191. # Allow CC to be a program name with arguments.
  11192. lt_save_CC=$CC
  11193. lt_save_LD=$LD
  11194. lt_save_GCC=$GCC
  11195. GCC=$GXX
  11196. lt_save_with_gnu_ld=$with_gnu_ld
  11197. lt_save_path_LD=$lt_cv_path_LD
  11198. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11199. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11200. else
  11201. $as_unset lt_cv_prog_gnu_ld
  11202. fi
  11203. if test -n "${lt_cv_path_LDCXX+set}"; then
  11204. lt_cv_path_LD=$lt_cv_path_LDCXX
  11205. else
  11206. $as_unset lt_cv_path_LD
  11207. fi
  11208. test -z "${LDCXX+set}" || LD=$LDCXX
  11209. CC=${CXX-"c++"}
  11210. compiler=$CC
  11211. compiler_CXX=$CC
  11212. for cc_temp in $compiler""; do
  11213. case $cc_temp in
  11214. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11215. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11216. \-*) ;;
  11217. *) break;;
  11218. esac
  11219. done
  11220. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11221. if test -n "$compiler"; then
  11222. # We don't want -fno-exception when compiling C++ code, so set the
  11223. # no_builtin_flag separately
  11224. if test "$GXX" = yes; then
  11225. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11226. else
  11227. lt_prog_compiler_no_builtin_flag_CXX=
  11228. fi
  11229. if test "$GXX" = yes; then
  11230. # Set up default GNU C++ configuration
  11231. # Check whether --with-gnu-ld was given.
  11232. if test "${with_gnu_ld+set}" = set; then
  11233. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11234. else
  11235. with_gnu_ld=no
  11236. fi
  11237. ac_prog=ld
  11238. if test "$GCC" = yes; then
  11239. # Check if gcc -print-prog-name=ld gives a path.
  11240. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11241. $as_echo_n "checking for ld used by $CC... " >&6; }
  11242. case $host in
  11243. *-*-mingw*)
  11244. # gcc leaves a trailing carriage return which upsets mingw
  11245. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11246. *)
  11247. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11248. esac
  11249. case $ac_prog in
  11250. # Accept absolute paths.
  11251. [\\/]* | ?:[\\/]*)
  11252. re_direlt='/[^/][^/]*/\.\./'
  11253. # Canonicalize the pathname of ld
  11254. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11255. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11256. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11257. done
  11258. test -z "$LD" && LD="$ac_prog"
  11259. ;;
  11260. "")
  11261. # If it fails, then pretend we aren't using GCC.
  11262. ac_prog=ld
  11263. ;;
  11264. *)
  11265. # If it is relative, then search for the first ld in PATH.
  11266. with_gnu_ld=unknown
  11267. ;;
  11268. esac
  11269. elif test "$with_gnu_ld" = yes; then
  11270. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11271. $as_echo_n "checking for GNU ld... " >&6; }
  11272. else
  11273. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11274. $as_echo_n "checking for non-GNU ld... " >&6; }
  11275. fi
  11276. if test "${lt_cv_path_LD+set}" = set; then
  11277. $as_echo_n "(cached) " >&6
  11278. else
  11279. if test -z "$LD"; then
  11280. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11281. for ac_dir in $PATH; do
  11282. IFS="$lt_save_ifs"
  11283. test -z "$ac_dir" && ac_dir=.
  11284. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11285. lt_cv_path_LD="$ac_dir/$ac_prog"
  11286. # Check to see if the program is GNU ld. I'd rather use --version,
  11287. # but apparently some variants of GNU ld only accept -v.
  11288. # Break only if it was the GNU/non-GNU ld that we prefer.
  11289. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11290. *GNU* | *'with BFD'*)
  11291. test "$with_gnu_ld" != no && break
  11292. ;;
  11293. *)
  11294. test "$with_gnu_ld" != yes && break
  11295. ;;
  11296. esac
  11297. fi
  11298. done
  11299. IFS="$lt_save_ifs"
  11300. else
  11301. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11302. fi
  11303. fi
  11304. LD="$lt_cv_path_LD"
  11305. if test -n "$LD"; then
  11306. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11307. $as_echo "$LD" >&6; }
  11308. else
  11309. { $as_echo "$as_me:$LINENO: result: no" >&5
  11310. $as_echo "no" >&6; }
  11311. fi
  11312. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11313. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11314. { (exit 1); exit 1; }; }
  11315. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11316. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11317. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11318. $as_echo_n "(cached) " >&6
  11319. else
  11320. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11321. case `$LD -v 2>&1 </dev/null` in
  11322. *GNU* | *'with BFD'*)
  11323. lt_cv_prog_gnu_ld=yes
  11324. ;;
  11325. *)
  11326. lt_cv_prog_gnu_ld=no
  11327. ;;
  11328. esac
  11329. fi
  11330. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11331. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11332. with_gnu_ld=$lt_cv_prog_gnu_ld
  11333. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11334. # archiving commands below assume that GNU ld is being used.
  11335. if test "$with_gnu_ld" = yes; then
  11336. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11337. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11338. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11339. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11340. # If archive_cmds runs LD, not CC, wlarc should be empty
  11341. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11342. # investigate it a little bit more. (MM)
  11343. wlarc='${wl}'
  11344. # ancient GNU ld didn't support --whole-archive et. al.
  11345. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11346. $GREP 'no-whole-archive' > /dev/null; then
  11347. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11348. else
  11349. whole_archive_flag_spec_CXX=
  11350. fi
  11351. else
  11352. with_gnu_ld=no
  11353. wlarc=
  11354. # A generic and very simple default shared library creation
  11355. # command for GNU C++ for the case where it uses the native
  11356. # linker, instead of GNU ld. If possible, this setting should
  11357. # overridden to take advantage of the native linker features on
  11358. # the platform it is being used on.
  11359. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11360. fi
  11361. # Commands to make compiler produce verbose output that lists
  11362. # what "hidden" libraries, object files and flags are used when
  11363. # linking a shared library.
  11364. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  11365. else
  11366. GXX=no
  11367. with_gnu_ld=no
  11368. wlarc=
  11369. fi
  11370. # PORTME: fill in a description of your system's C++ link characteristics
  11371. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11372. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11373. ld_shlibs_CXX=yes
  11374. case $host_os in
  11375. aix3*)
  11376. # FIXME: insert proper C++ library support
  11377. ld_shlibs_CXX=no
  11378. ;;
  11379. aix[4-9]*)
  11380. if test "$host_cpu" = ia64; then
  11381. # On IA64, the linker does run time linking by default, so we don't
  11382. # have to do anything special.
  11383. aix_use_runtimelinking=no
  11384. exp_sym_flag='-Bexport'
  11385. no_entry_flag=""
  11386. else
  11387. aix_use_runtimelinking=no
  11388. # Test if we are trying to use run time linking or normal
  11389. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11390. # need to do runtime linking.
  11391. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11392. for ld_flag in $LDFLAGS; do
  11393. case $ld_flag in
  11394. *-brtl*)
  11395. aix_use_runtimelinking=yes
  11396. break
  11397. ;;
  11398. esac
  11399. done
  11400. ;;
  11401. esac
  11402. exp_sym_flag='-bexport'
  11403. no_entry_flag='-bnoentry'
  11404. fi
  11405. # When large executables or shared objects are built, AIX ld can
  11406. # have problems creating the table of contents. If linking a library
  11407. # or program results in "error TOC overflow" add -mminimal-toc to
  11408. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11409. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11410. archive_cmds_CXX=''
  11411. hardcode_direct_CXX=yes
  11412. hardcode_direct_absolute_CXX=yes
  11413. hardcode_libdir_separator_CXX=':'
  11414. link_all_deplibs_CXX=yes
  11415. file_list_spec_CXX='${wl}-f,'
  11416. if test "$GXX" = yes; then
  11417. case $host_os in aix4.[012]|aix4.[012].*)
  11418. # We only want to do this on AIX 4.2 and lower, the check
  11419. # below for broken collect2 doesn't work under 4.3+
  11420. collect2name=`${CC} -print-prog-name=collect2`
  11421. if test -f "$collect2name" &&
  11422. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11423. then
  11424. # We have reworked collect2
  11425. :
  11426. else
  11427. # We have old collect2
  11428. hardcode_direct_CXX=unsupported
  11429. # It fails to find uninstalled libraries when the uninstalled
  11430. # path is not listed in the libpath. Setting hardcode_minus_L
  11431. # to unsupported forces relinking
  11432. hardcode_minus_L_CXX=yes
  11433. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11434. hardcode_libdir_separator_CXX=
  11435. fi
  11436. esac
  11437. shared_flag='-shared'
  11438. if test "$aix_use_runtimelinking" = yes; then
  11439. shared_flag="$shared_flag "'${wl}-G'
  11440. fi
  11441. else
  11442. # not using gcc
  11443. if test "$host_cpu" = ia64; then
  11444. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11445. # chokes on -Wl,-G. The following line is correct:
  11446. shared_flag='-G'
  11447. else
  11448. if test "$aix_use_runtimelinking" = yes; then
  11449. shared_flag='${wl}-G'
  11450. else
  11451. shared_flag='${wl}-bM:SRE'
  11452. fi
  11453. fi
  11454. fi
  11455. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11456. # It seems that -bexpall does not export symbols beginning with
  11457. # underscore (_), so it is better to generate a list of symbols to
  11458. # export.
  11459. always_export_symbols_CXX=yes
  11460. if test "$aix_use_runtimelinking" = yes; then
  11461. # Warning - without using the other runtime loading flags (-brtl),
  11462. # -berok will link without error, but may produce a broken library.
  11463. allow_undefined_flag_CXX='-berok'
  11464. # Determine the default libpath from the value encoded in an empty
  11465. # executable.
  11466. cat >conftest.$ac_ext <<_ACEOF
  11467. /* confdefs.h. */
  11468. _ACEOF
  11469. cat confdefs.h >>conftest.$ac_ext
  11470. cat >>conftest.$ac_ext <<_ACEOF
  11471. /* end confdefs.h. */
  11472. int
  11473. main ()
  11474. {
  11475. ;
  11476. return 0;
  11477. }
  11478. _ACEOF
  11479. rm -f conftest.$ac_objext conftest$ac_exeext
  11480. if { (ac_try="$ac_link"
  11481. case "(($ac_try" in
  11482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11483. *) ac_try_echo=$ac_try;;
  11484. esac
  11485. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11486. $as_echo "$ac_try_echo") >&5
  11487. (eval "$ac_link") 2>conftest.er1
  11488. ac_status=$?
  11489. grep -v '^ *+' conftest.er1 >conftest.err
  11490. rm -f conftest.er1
  11491. cat conftest.err >&5
  11492. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11493. (exit $ac_status); } && {
  11494. test -z "$ac_cxx_werror_flag" ||
  11495. test ! -s conftest.err
  11496. } && test -s conftest$ac_exeext && {
  11497. test "$cross_compiling" = yes ||
  11498. $as_test_x conftest$ac_exeext
  11499. }; then
  11500. lt_aix_libpath_sed='
  11501. /Import File Strings/,/^$/ {
  11502. /^0/ {
  11503. s/^0 *\(.*\)$/\1/
  11504. p
  11505. }
  11506. }'
  11507. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11508. # Check for a 64-bit object if we didn't find anything.
  11509. if test -z "$aix_libpath"; then
  11510. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11511. fi
  11512. else
  11513. $as_echo "$as_me: failed program was:" >&5
  11514. sed 's/^/| /' conftest.$ac_ext >&5
  11515. fi
  11516. rm -rf conftest.dSYM
  11517. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11518. conftest$ac_exeext conftest.$ac_ext
  11519. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11520. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11521. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11522. else
  11523. if test "$host_cpu" = ia64; then
  11524. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11525. allow_undefined_flag_CXX="-z nodefs"
  11526. 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"
  11527. else
  11528. # Determine the default libpath from the value encoded in an
  11529. # empty executable.
  11530. cat >conftest.$ac_ext <<_ACEOF
  11531. /* confdefs.h. */
  11532. _ACEOF
  11533. cat confdefs.h >>conftest.$ac_ext
  11534. cat >>conftest.$ac_ext <<_ACEOF
  11535. /* end confdefs.h. */
  11536. int
  11537. main ()
  11538. {
  11539. ;
  11540. return 0;
  11541. }
  11542. _ACEOF
  11543. rm -f conftest.$ac_objext conftest$ac_exeext
  11544. if { (ac_try="$ac_link"
  11545. case "(($ac_try" in
  11546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11547. *) ac_try_echo=$ac_try;;
  11548. esac
  11549. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11550. $as_echo "$ac_try_echo") >&5
  11551. (eval "$ac_link") 2>conftest.er1
  11552. ac_status=$?
  11553. grep -v '^ *+' conftest.er1 >conftest.err
  11554. rm -f conftest.er1
  11555. cat conftest.err >&5
  11556. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11557. (exit $ac_status); } && {
  11558. test -z "$ac_cxx_werror_flag" ||
  11559. test ! -s conftest.err
  11560. } && test -s conftest$ac_exeext && {
  11561. test "$cross_compiling" = yes ||
  11562. $as_test_x conftest$ac_exeext
  11563. }; then
  11564. lt_aix_libpath_sed='
  11565. /Import File Strings/,/^$/ {
  11566. /^0/ {
  11567. s/^0 *\(.*\)$/\1/
  11568. p
  11569. }
  11570. }'
  11571. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11572. # Check for a 64-bit object if we didn't find anything.
  11573. if test -z "$aix_libpath"; then
  11574. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11575. fi
  11576. else
  11577. $as_echo "$as_me: failed program was:" >&5
  11578. sed 's/^/| /' conftest.$ac_ext >&5
  11579. fi
  11580. rm -rf conftest.dSYM
  11581. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11582. conftest$ac_exeext conftest.$ac_ext
  11583. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11584. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11585. # Warning - without using the other run time loading flags,
  11586. # -berok will link without error, but may produce a broken library.
  11587. no_undefined_flag_CXX=' ${wl}-bernotok'
  11588. allow_undefined_flag_CXX=' ${wl}-berok'
  11589. # Exported symbols can be pulled into shared objects from archives
  11590. whole_archive_flag_spec_CXX='$convenience'
  11591. archive_cmds_need_lc_CXX=yes
  11592. # This is similar to how AIX traditionally builds its shared
  11593. # libraries.
  11594. 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'
  11595. fi
  11596. fi
  11597. ;;
  11598. beos*)
  11599. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11600. allow_undefined_flag_CXX=unsupported
  11601. # Joseph Beckenbach <[email protected]> says some releases of gcc
  11602. # support --undefined. This deserves some investigation. FIXME
  11603. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11604. else
  11605. ld_shlibs_CXX=no
  11606. fi
  11607. ;;
  11608. chorus*)
  11609. case $cc_basename in
  11610. *)
  11611. # FIXME: insert proper C++ library support
  11612. ld_shlibs_CXX=no
  11613. ;;
  11614. esac
  11615. ;;
  11616. cygwin* | mingw* | pw32* | cegcc*)
  11617. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11618. # as there is no search path for DLLs.
  11619. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11620. allow_undefined_flag_CXX=unsupported
  11621. always_export_symbols_CXX=no
  11622. enable_shared_with_static_runtimes_CXX=yes
  11623. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11624. 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'
  11625. # If the export-symbols file already is a .def file (1st line
  11626. # is EXPORTS), use it as is; otherwise, prepend...
  11627. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11628. cp $export_symbols $output_objdir/$soname.def;
  11629. else
  11630. echo EXPORTS > $output_objdir/$soname.def;
  11631. cat $export_symbols >> $output_objdir/$soname.def;
  11632. fi~
  11633. $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'
  11634. else
  11635. ld_shlibs_CXX=no
  11636. fi
  11637. ;;
  11638. darwin* | rhapsody*)
  11639. archive_cmds_need_lc_CXX=no
  11640. hardcode_direct_CXX=no
  11641. hardcode_automatic_CXX=yes
  11642. hardcode_shlibpath_var_CXX=unsupported
  11643. whole_archive_flag_spec_CXX=''
  11644. link_all_deplibs_CXX=yes
  11645. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11646. case $cc_basename in
  11647. ifort*) _lt_dar_can_shared=yes ;;
  11648. *) _lt_dar_can_shared=$GCC ;;
  11649. esac
  11650. if test "$_lt_dar_can_shared" = "yes"; then
  11651. output_verbose_link_cmd=echo
  11652. 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}"
  11653. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11654. 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}"
  11655. 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}"
  11656. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11657. 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}"
  11658. 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}"
  11659. fi
  11660. else
  11661. ld_shlibs_CXX=no
  11662. fi
  11663. ;;
  11664. dgux*)
  11665. case $cc_basename in
  11666. ec++*)
  11667. # FIXME: insert proper C++ library support
  11668. ld_shlibs_CXX=no
  11669. ;;
  11670. ghcx*)
  11671. # Green Hills C++ Compiler
  11672. # FIXME: insert proper C++ library support
  11673. ld_shlibs_CXX=no
  11674. ;;
  11675. *)
  11676. # FIXME: insert proper C++ library support
  11677. ld_shlibs_CXX=no
  11678. ;;
  11679. esac
  11680. ;;
  11681. freebsd[12]*)
  11682. # C++ shared libraries reported to be fairly broken before
  11683. # switch to ELF
  11684. ld_shlibs_CXX=no
  11685. ;;
  11686. freebsd-elf*)
  11687. archive_cmds_need_lc_CXX=no
  11688. ;;
  11689. freebsd* | dragonfly*)
  11690. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11691. # conventions
  11692. ld_shlibs_CXX=yes
  11693. ;;
  11694. gnu*)
  11695. ;;
  11696. hpux9*)
  11697. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11698. hardcode_libdir_separator_CXX=:
  11699. export_dynamic_flag_spec_CXX='${wl}-E'
  11700. hardcode_direct_CXX=yes
  11701. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11702. # but as the default
  11703. # location of the library.
  11704. case $cc_basename in
  11705. CC*)
  11706. # FIXME: insert proper C++ library support
  11707. ld_shlibs_CXX=no
  11708. ;;
  11709. aCC*)
  11710. 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'
  11711. # Commands to make compiler produce verbose output that lists
  11712. # what "hidden" libraries, object files and flags are used when
  11713. # linking a shared library.
  11714. #
  11715. # There doesn't appear to be a way to prevent this compiler from
  11716. # explicitly linking system object files so we need to strip them
  11717. # from the output so that they don't get included in the library
  11718. # dependencies.
  11719. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11720. ;;
  11721. *)
  11722. if test "$GXX" = yes; then
  11723. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11724. else
  11725. # FIXME: insert proper C++ library support
  11726. ld_shlibs_CXX=no
  11727. fi
  11728. ;;
  11729. esac
  11730. ;;
  11731. hpux10*|hpux11*)
  11732. if test $with_gnu_ld = no; then
  11733. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11734. hardcode_libdir_separator_CXX=:
  11735. case $host_cpu in
  11736. hppa*64*|ia64*)
  11737. ;;
  11738. *)
  11739. export_dynamic_flag_spec_CXX='${wl}-E'
  11740. ;;
  11741. esac
  11742. fi
  11743. case $host_cpu in
  11744. hppa*64*|ia64*)
  11745. hardcode_direct_CXX=no
  11746. hardcode_shlibpath_var_CXX=no
  11747. ;;
  11748. *)
  11749. hardcode_direct_CXX=yes
  11750. hardcode_direct_absolute_CXX=yes
  11751. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11752. # but as the default
  11753. # location of the library.
  11754. ;;
  11755. esac
  11756. case $cc_basename in
  11757. CC*)
  11758. # FIXME: insert proper C++ library support
  11759. ld_shlibs_CXX=no
  11760. ;;
  11761. aCC*)
  11762. case $host_cpu in
  11763. hppa*64*)
  11764. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11765. ;;
  11766. ia64*)
  11767. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11768. ;;
  11769. *)
  11770. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11771. ;;
  11772. esac
  11773. # Commands to make compiler produce verbose output that lists
  11774. # what "hidden" libraries, object files and flags are used when
  11775. # linking a shared library.
  11776. #
  11777. # There doesn't appear to be a way to prevent this compiler from
  11778. # explicitly linking system object files so we need to strip them
  11779. # from the output so that they don't get included in the library
  11780. # dependencies.
  11781. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11782. ;;
  11783. *)
  11784. if test "$GXX" = yes; then
  11785. if test $with_gnu_ld = no; then
  11786. case $host_cpu in
  11787. hppa*64*)
  11788. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11789. ;;
  11790. ia64*)
  11791. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11792. ;;
  11793. *)
  11794. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11795. ;;
  11796. esac
  11797. fi
  11798. else
  11799. # FIXME: insert proper C++ library support
  11800. ld_shlibs_CXX=no
  11801. fi
  11802. ;;
  11803. esac
  11804. ;;
  11805. interix[3-9]*)
  11806. hardcode_direct_CXX=no
  11807. hardcode_shlibpath_var_CXX=no
  11808. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11809. export_dynamic_flag_spec_CXX='${wl}-E'
  11810. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11811. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11812. # default) and relocated if they conflict, which is a slow very memory
  11813. # consuming and fragmenting process. To avoid this, we pick a random,
  11814. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11815. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11816. 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'
  11817. 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'
  11818. ;;
  11819. irix5* | irix6*)
  11820. case $cc_basename in
  11821. CC*)
  11822. # SGI C++
  11823. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  11824. # Archives containing C++ object files must be created using
  11825. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11826. # necessary to make sure instantiated templates are included
  11827. # in the archive.
  11828. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11829. ;;
  11830. *)
  11831. if test "$GXX" = yes; then
  11832. if test "$with_gnu_ld" = no; then
  11833. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11834. else
  11835. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  11836. fi
  11837. fi
  11838. link_all_deplibs_CXX=yes
  11839. ;;
  11840. esac
  11841. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11842. hardcode_libdir_separator_CXX=:
  11843. inherit_rpath_CXX=yes
  11844. ;;
  11845. linux* | k*bsd*-gnu)
  11846. case $cc_basename in
  11847. KCC*)
  11848. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11849. # KCC will only create a shared library if the output file
  11850. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11851. # to its proper name (with version) after linking.
  11852. 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'
  11853. 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'
  11854. # Commands to make compiler produce verbose output that lists
  11855. # what "hidden" libraries, object files and flags are used when
  11856. # linking a shared library.
  11857. #
  11858. # There doesn't appear to be a way to prevent this compiler from
  11859. # explicitly linking system object files so we need to strip them
  11860. # from the output so that they don't get included in the library
  11861. # dependencies.
  11862. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11863. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11864. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11865. # Archives containing C++ object files must be created using
  11866. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11867. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11868. ;;
  11869. icpc* | ecpc* )
  11870. # Intel C++
  11871. with_gnu_ld=yes
  11872. # version 8.0 and above of icpc choke on multiply defined symbols
  11873. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11874. # earlier do not add the objects themselves.
  11875. case `$CC -V 2>&1` in
  11876. *"Version 7."*)
  11877. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11878. 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'
  11879. ;;
  11880. *) # Version 8.0 or newer
  11881. tmp_idyn=
  11882. case $host_cpu in
  11883. ia64*) tmp_idyn=' -i_dynamic';;
  11884. esac
  11885. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11886. 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'
  11887. ;;
  11888. esac
  11889. archive_cmds_need_lc_CXX=no
  11890. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11891. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11892. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11893. ;;
  11894. pgCC* | pgcpp*)
  11895. # Portland Group C++ compiler
  11896. case `$CC -V` in
  11897. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  11898. prelink_cmds_CXX='tpldir=Template.dir~
  11899. rm -rf $tpldir~
  11900. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11901. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  11902. old_archive_cmds_CXX='tpldir=Template.dir~
  11903. rm -rf $tpldir~
  11904. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11905. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  11906. $RANLIB $oldlib'
  11907. archive_cmds_CXX='tpldir=Template.dir~
  11908. rm -rf $tpldir~
  11909. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11910. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11911. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11912. rm -rf $tpldir~
  11913. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11914. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11915. ;;
  11916. *) # Version 6 will use weak symbols
  11917. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11918. 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'
  11919. ;;
  11920. esac
  11921. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11922. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11923. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11924. ;;
  11925. cxx*)
  11926. # Compaq C++
  11927. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11928. 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'
  11929. runpath_var=LD_RUN_PATH
  11930. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11931. hardcode_libdir_separator_CXX=:
  11932. # Commands to make compiler produce verbose output that lists
  11933. # what "hidden" libraries, object files and flags are used when
  11934. # linking a shared library.
  11935. #
  11936. # There doesn't appear to be a way to prevent this compiler from
  11937. # explicitly linking system object files so we need to strip them
  11938. # from the output so that they don't get included in the library
  11939. # dependencies.
  11940. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  11941. ;;
  11942. xl*)
  11943. # IBM XL 8.0 on PPC, with GNU ld
  11944. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11945. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11946. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11947. if test "x$supports_anon_versioning" = xyes; then
  11948. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11949. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11950. echo "local: *; };" >> $output_objdir/$libname.ver~
  11951. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11952. fi
  11953. ;;
  11954. *)
  11955. case `$CC -V 2>&1 | sed 5q` in
  11956. *Sun\ C*)
  11957. # Sun C++ 5.9
  11958. no_undefined_flag_CXX=' -zdefs'
  11959. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11960. 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'
  11961. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11962. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11963. compiler_needs_object_CXX=yes
  11964. # Not sure whether something based on
  11965. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11966. # would be better.
  11967. output_verbose_link_cmd='echo'
  11968. # Archives containing C++ object files must be created using
  11969. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11970. # necessary to make sure instantiated templates are included
  11971. # in the archive.
  11972. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11973. ;;
  11974. esac
  11975. ;;
  11976. esac
  11977. ;;
  11978. lynxos*)
  11979. # FIXME: insert proper C++ library support
  11980. ld_shlibs_CXX=no
  11981. ;;
  11982. m88k*)
  11983. # FIXME: insert proper C++ library support
  11984. ld_shlibs_CXX=no
  11985. ;;
  11986. mvs*)
  11987. case $cc_basename in
  11988. cxx*)
  11989. # FIXME: insert proper C++ library support
  11990. ld_shlibs_CXX=no
  11991. ;;
  11992. *)
  11993. # FIXME: insert proper C++ library support
  11994. ld_shlibs_CXX=no
  11995. ;;
  11996. esac
  11997. ;;
  11998. netbsd*)
  11999. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12000. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12001. wlarc=
  12002. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12003. hardcode_direct_CXX=yes
  12004. hardcode_shlibpath_var_CXX=no
  12005. fi
  12006. # Workaround some broken pre-1.5 toolchains
  12007. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12008. ;;
  12009. *nto* | *qnx*)
  12010. ld_shlibs_CXX=yes
  12011. ;;
  12012. openbsd2*)
  12013. # C++ shared libraries are fairly broken
  12014. ld_shlibs_CXX=no
  12015. ;;
  12016. openbsd*)
  12017. if test -f /usr/libexec/ld.so; then
  12018. hardcode_direct_CXX=yes
  12019. hardcode_shlibpath_var_CXX=no
  12020. hardcode_direct_absolute_CXX=yes
  12021. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12022. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12023. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12024. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12025. export_dynamic_flag_spec_CXX='${wl}-E'
  12026. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12027. fi
  12028. output_verbose_link_cmd=echo
  12029. else
  12030. ld_shlibs_CXX=no
  12031. fi
  12032. ;;
  12033. osf3* | osf4* | osf5*)
  12034. case $cc_basename in
  12035. KCC*)
  12036. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12037. # KCC will only create a shared library if the output file
  12038. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12039. # to its proper name (with version) after linking.
  12040. 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'
  12041. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12042. hardcode_libdir_separator_CXX=:
  12043. # Archives containing C++ object files must be created using
  12044. # the KAI C++ compiler.
  12045. case $host in
  12046. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12047. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12048. esac
  12049. ;;
  12050. RCC*)
  12051. # Rational C++ 2.4.1
  12052. # FIXME: insert proper C++ library support
  12053. ld_shlibs_CXX=no
  12054. ;;
  12055. cxx*)
  12056. case $host in
  12057. osf3*)
  12058. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12059. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12060. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12061. ;;
  12062. *)
  12063. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12064. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12065. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12066. echo "-hidden">> $lib.exp~
  12067. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  12068. $RM $lib.exp'
  12069. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12070. ;;
  12071. esac
  12072. hardcode_libdir_separator_CXX=:
  12073. # Commands to make compiler produce verbose output that lists
  12074. # what "hidden" libraries, object files and flags are used when
  12075. # linking a shared library.
  12076. #
  12077. # There doesn't appear to be a way to prevent this compiler from
  12078. # explicitly linking system object files so we need to strip them
  12079. # from the output so that they don't get included in the library
  12080. # dependencies.
  12081. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  12082. ;;
  12083. *)
  12084. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12085. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12086. case $host in
  12087. osf3*)
  12088. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12089. ;;
  12090. *)
  12091. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12092. ;;
  12093. esac
  12094. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12095. hardcode_libdir_separator_CXX=:
  12096. # Commands to make compiler produce verbose output that lists
  12097. # what "hidden" libraries, object files and flags are used when
  12098. # linking a shared library.
  12099. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12100. else
  12101. # FIXME: insert proper C++ library support
  12102. ld_shlibs_CXX=no
  12103. fi
  12104. ;;
  12105. esac
  12106. ;;
  12107. psos*)
  12108. # FIXME: insert proper C++ library support
  12109. ld_shlibs_CXX=no
  12110. ;;
  12111. sunos4*)
  12112. case $cc_basename in
  12113. CC*)
  12114. # Sun C++ 4.x
  12115. # FIXME: insert proper C++ library support
  12116. ld_shlibs_CXX=no
  12117. ;;
  12118. lcc*)
  12119. # Lucid
  12120. # FIXME: insert proper C++ library support
  12121. ld_shlibs_CXX=no
  12122. ;;
  12123. *)
  12124. # FIXME: insert proper C++ library support
  12125. ld_shlibs_CXX=no
  12126. ;;
  12127. esac
  12128. ;;
  12129. solaris*)
  12130. case $cc_basename in
  12131. CC*)
  12132. # Sun C++ 4.2, 5.x and Centerline C++
  12133. archive_cmds_need_lc_CXX=yes
  12134. no_undefined_flag_CXX=' -zdefs'
  12135. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12136. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12137. $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'
  12138. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12139. hardcode_shlibpath_var_CXX=no
  12140. case $host_os in
  12141. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12142. *)
  12143. # The compiler driver will combine and reorder linker options,
  12144. # but understands `-z linker_flag'.
  12145. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12146. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12147. ;;
  12148. esac
  12149. link_all_deplibs_CXX=yes
  12150. output_verbose_link_cmd='echo'
  12151. # Archives containing C++ object files must be created using
  12152. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12153. # necessary to make sure instantiated templates are included
  12154. # in the archive.
  12155. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12156. ;;
  12157. gcx*)
  12158. # Green Hills C++ Compiler
  12159. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12160. # The C++ compiler must be used to create the archive.
  12161. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12162. ;;
  12163. *)
  12164. # GNU C++ compiler with Solaris linker
  12165. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12166. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12167. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12168. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12169. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12170. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12171. # Commands to make compiler produce verbose output that lists
  12172. # what "hidden" libraries, object files and flags are used when
  12173. # linking a shared library.
  12174. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12175. else
  12176. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12177. # platform.
  12178. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12179. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12180. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12181. # Commands to make compiler produce verbose output that lists
  12182. # what "hidden" libraries, object files and flags are used when
  12183. # linking a shared library.
  12184. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  12185. fi
  12186. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12187. case $host_os in
  12188. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12189. *)
  12190. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12191. ;;
  12192. esac
  12193. fi
  12194. ;;
  12195. esac
  12196. ;;
  12197. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12198. no_undefined_flag_CXX='${wl}-z,text'
  12199. archive_cmds_need_lc_CXX=no
  12200. hardcode_shlibpath_var_CXX=no
  12201. runpath_var='LD_RUN_PATH'
  12202. case $cc_basename in
  12203. CC*)
  12204. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12205. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12206. ;;
  12207. *)
  12208. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12209. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12210. ;;
  12211. esac
  12212. ;;
  12213. sysv5* | sco3.2v5* | sco5v6*)
  12214. # Note: We can NOT use -z defs as we might desire, because we do not
  12215. # link with -lc, and that would cause any symbols used from libc to
  12216. # always be unresolved, which means just about no library would
  12217. # ever link correctly. If we're not using GNU ld we use -z text
  12218. # though, which does catch some bad symbols but isn't as heavy-handed
  12219. # as -z defs.
  12220. no_undefined_flag_CXX='${wl}-z,text'
  12221. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12222. archive_cmds_need_lc_CXX=no
  12223. hardcode_shlibpath_var_CXX=no
  12224. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12225. hardcode_libdir_separator_CXX=':'
  12226. link_all_deplibs_CXX=yes
  12227. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12228. runpath_var='LD_RUN_PATH'
  12229. case $cc_basename in
  12230. CC*)
  12231. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12232. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12233. ;;
  12234. *)
  12235. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12236. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12237. ;;
  12238. esac
  12239. ;;
  12240. tandem*)
  12241. case $cc_basename in
  12242. NCC*)
  12243. # NonStop-UX NCC 3.20
  12244. # FIXME: insert proper C++ library support
  12245. ld_shlibs_CXX=no
  12246. ;;
  12247. *)
  12248. # FIXME: insert proper C++ library support
  12249. ld_shlibs_CXX=no
  12250. ;;
  12251. esac
  12252. ;;
  12253. vxworks*)
  12254. # FIXME: insert proper C++ library support
  12255. ld_shlibs_CXX=no
  12256. ;;
  12257. *)
  12258. # FIXME: insert proper C++ library support
  12259. ld_shlibs_CXX=no
  12260. ;;
  12261. esac
  12262. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12263. $as_echo "$ld_shlibs_CXX" >&6; }
  12264. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12265. GCC_CXX="$GXX"
  12266. LD_CXX="$LD"
  12267. ## CAVEAT EMPTOR:
  12268. ## There is no encapsulation within the following macros, do not change
  12269. ## the running order or otherwise move them around unless you know exactly
  12270. ## what you are doing...
  12271. # Dependencies to place before and after the object being linked:
  12272. predep_objects_CXX=
  12273. postdep_objects_CXX=
  12274. predeps_CXX=
  12275. postdeps_CXX=
  12276. compiler_lib_search_path_CXX=
  12277. cat > conftest.$ac_ext <<_LT_EOF
  12278. class Foo
  12279. {
  12280. public:
  12281. Foo (void) { a = 0; }
  12282. private:
  12283. int a;
  12284. };
  12285. _LT_EOF
  12286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12287. (eval $ac_compile) 2>&5
  12288. ac_status=$?
  12289. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12290. (exit $ac_status); }; then
  12291. # Parse the compiler output and extract the necessary
  12292. # objects, libraries and library flags.
  12293. # Sentinel used to keep track of whether or not we are before
  12294. # the conftest object file.
  12295. pre_test_object_deps_done=no
  12296. for p in `eval "$output_verbose_link_cmd"`; do
  12297. case $p in
  12298. -L* | -R* | -l*)
  12299. # Some compilers place space between "-{L,R}" and the path.
  12300. # Remove the space.
  12301. if test $p = "-L" ||
  12302. test $p = "-R"; then
  12303. prev=$p
  12304. continue
  12305. else
  12306. prev=
  12307. fi
  12308. if test "$pre_test_object_deps_done" = no; then
  12309. case $p in
  12310. -L* | -R*)
  12311. # Internal compiler library paths should come after those
  12312. # provided the user. The postdeps already come after the
  12313. # user supplied libs so there is no need to process them.
  12314. if test -z "$compiler_lib_search_path_CXX"; then
  12315. compiler_lib_search_path_CXX="${prev}${p}"
  12316. else
  12317. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12318. fi
  12319. ;;
  12320. # The "-l" case would never come before the object being
  12321. # linked, so don't bother handling this case.
  12322. esac
  12323. else
  12324. if test -z "$postdeps_CXX"; then
  12325. postdeps_CXX="${prev}${p}"
  12326. else
  12327. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12328. fi
  12329. fi
  12330. ;;
  12331. *.$objext)
  12332. # This assumes that the test object file only shows up
  12333. # once in the compiler output.
  12334. if test "$p" = "conftest.$objext"; then
  12335. pre_test_object_deps_done=yes
  12336. continue
  12337. fi
  12338. if test "$pre_test_object_deps_done" = no; then
  12339. if test -z "$predep_objects_CXX"; then
  12340. predep_objects_CXX="$p"
  12341. else
  12342. predep_objects_CXX="$predep_objects_CXX $p"
  12343. fi
  12344. else
  12345. if test -z "$postdep_objects_CXX"; then
  12346. postdep_objects_CXX="$p"
  12347. else
  12348. postdep_objects_CXX="$postdep_objects_CXX $p"
  12349. fi
  12350. fi
  12351. ;;
  12352. *) ;; # Ignore the rest.
  12353. esac
  12354. done
  12355. # Clean up.
  12356. rm -f a.out a.exe
  12357. else
  12358. echo "libtool.m4: error: problem compiling CXX test program"
  12359. fi
  12360. $RM -f confest.$objext
  12361. # PORTME: override above test on systems where it is broken
  12362. case $host_os in
  12363. interix[3-9]*)
  12364. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12365. # hack all around it, let's just trust "g++" to DTRT.
  12366. predep_objects_CXX=
  12367. postdep_objects_CXX=
  12368. postdeps_CXX=
  12369. ;;
  12370. linux*)
  12371. case `$CC -V 2>&1 | sed 5q` in
  12372. *Sun\ C*)
  12373. # Sun C++ 5.9
  12374. # The more standards-conforming stlport4 library is
  12375. # incompatible with the Cstd library. Avoid specifying
  12376. # it if it's in CXXFLAGS. Ignore libCrun as
  12377. # -library=stlport4 depends on it.
  12378. case " $CXX $CXXFLAGS " in
  12379. *" -library=stlport4 "*)
  12380. solaris_use_stlport4=yes
  12381. ;;
  12382. esac
  12383. if test "$solaris_use_stlport4" != yes; then
  12384. postdeps_CXX='-library=Cstd -library=Crun'
  12385. fi
  12386. ;;
  12387. esac
  12388. ;;
  12389. solaris*)
  12390. case $cc_basename in
  12391. CC*)
  12392. # The more standards-conforming stlport4 library is
  12393. # incompatible with the Cstd library. Avoid specifying
  12394. # it if it's in CXXFLAGS. Ignore libCrun as
  12395. # -library=stlport4 depends on it.
  12396. case " $CXX $CXXFLAGS " in
  12397. *" -library=stlport4 "*)
  12398. solaris_use_stlport4=yes
  12399. ;;
  12400. esac
  12401. # Adding this requires a known-good setup of shared libraries for
  12402. # Sun compiler versions before 5.6, else PIC objects from an old
  12403. # archive will be linked into the output, leading to subtle bugs.
  12404. if test "$solaris_use_stlport4" != yes; then
  12405. postdeps_CXX='-library=Cstd -library=Crun'
  12406. fi
  12407. ;;
  12408. esac
  12409. ;;
  12410. esac
  12411. case " $postdeps_CXX " in
  12412. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12413. esac
  12414. compiler_lib_search_dirs_CXX=
  12415. if test -n "${compiler_lib_search_path_CXX}"; then
  12416. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12417. fi
  12418. lt_prog_compiler_wl_CXX=
  12419. lt_prog_compiler_pic_CXX=
  12420. lt_prog_compiler_static_CXX=
  12421. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12422. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12423. # C++ specific cases for pic, static, wl, etc.
  12424. if test "$GXX" = yes; then
  12425. lt_prog_compiler_wl_CXX='-Wl,'
  12426. lt_prog_compiler_static_CXX='-static'
  12427. case $host_os in
  12428. aix*)
  12429. # All AIX code is PIC.
  12430. if test "$host_cpu" = ia64; then
  12431. # AIX 5 now supports IA64 processor
  12432. lt_prog_compiler_static_CXX='-Bstatic'
  12433. fi
  12434. ;;
  12435. amigaos*)
  12436. case $host_cpu in
  12437. powerpc)
  12438. # see comment about AmigaOS4 .so support
  12439. lt_prog_compiler_pic_CXX='-fPIC'
  12440. ;;
  12441. m68k)
  12442. # FIXME: we need at least 68020 code to build shared libraries, but
  12443. # adding the `-m68020' flag to GCC prevents building anything better,
  12444. # like `-m68040'.
  12445. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12446. ;;
  12447. esac
  12448. ;;
  12449. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12450. # PIC is the default for these OSes.
  12451. ;;
  12452. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12453. # This hack is so that the source file can tell whether it is being
  12454. # built for inclusion in a dll (and should export symbols for example).
  12455. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12456. # (--disable-auto-import) libraries
  12457. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12458. ;;
  12459. darwin* | rhapsody*)
  12460. # PIC is the default on this platform
  12461. # Common symbols not allowed in MH_DYLIB files
  12462. lt_prog_compiler_pic_CXX='-fno-common'
  12463. ;;
  12464. *djgpp*)
  12465. # DJGPP does not support shared libraries at all
  12466. lt_prog_compiler_pic_CXX=
  12467. ;;
  12468. interix[3-9]*)
  12469. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12470. # Instead, we relocate shared libraries at runtime.
  12471. ;;
  12472. sysv4*MP*)
  12473. if test -d /usr/nec; then
  12474. lt_prog_compiler_pic_CXX=-Kconform_pic
  12475. fi
  12476. ;;
  12477. hpux*)
  12478. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12479. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12480. # sets the default TLS model and affects inlining.
  12481. case $host_cpu in
  12482. hppa*64*)
  12483. ;;
  12484. *)
  12485. lt_prog_compiler_pic_CXX='-fPIC'
  12486. ;;
  12487. esac
  12488. ;;
  12489. *qnx* | *nto*)
  12490. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12491. # it will coredump.
  12492. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12493. ;;
  12494. *)
  12495. lt_prog_compiler_pic_CXX='-fPIC'
  12496. ;;
  12497. esac
  12498. else
  12499. case $host_os in
  12500. aix[4-9]*)
  12501. # All AIX code is PIC.
  12502. if test "$host_cpu" = ia64; then
  12503. # AIX 5 now supports IA64 processor
  12504. lt_prog_compiler_static_CXX='-Bstatic'
  12505. else
  12506. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12507. fi
  12508. ;;
  12509. chorus*)
  12510. case $cc_basename in
  12511. cxch68*)
  12512. # Green Hills C++ Compiler
  12513. # _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"
  12514. ;;
  12515. esac
  12516. ;;
  12517. dgux*)
  12518. case $cc_basename in
  12519. ec++*)
  12520. lt_prog_compiler_pic_CXX='-KPIC'
  12521. ;;
  12522. ghcx*)
  12523. # Green Hills C++ Compiler
  12524. lt_prog_compiler_pic_CXX='-pic'
  12525. ;;
  12526. *)
  12527. ;;
  12528. esac
  12529. ;;
  12530. freebsd* | dragonfly*)
  12531. # FreeBSD uses GNU C++
  12532. ;;
  12533. hpux9* | hpux10* | hpux11*)
  12534. case $cc_basename in
  12535. CC*)
  12536. lt_prog_compiler_wl_CXX='-Wl,'
  12537. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12538. if test "$host_cpu" != ia64; then
  12539. lt_prog_compiler_pic_CXX='+Z'
  12540. fi
  12541. ;;
  12542. aCC*)
  12543. lt_prog_compiler_wl_CXX='-Wl,'
  12544. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12545. case $host_cpu in
  12546. hppa*64*|ia64*)
  12547. # +Z the default
  12548. ;;
  12549. *)
  12550. lt_prog_compiler_pic_CXX='+Z'
  12551. ;;
  12552. esac
  12553. ;;
  12554. *)
  12555. ;;
  12556. esac
  12557. ;;
  12558. interix*)
  12559. # This is c89, which is MS Visual C++ (no shared libs)
  12560. # Anyone wants to do a port?
  12561. ;;
  12562. irix5* | irix6* | nonstopux*)
  12563. case $cc_basename in
  12564. CC*)
  12565. lt_prog_compiler_wl_CXX='-Wl,'
  12566. lt_prog_compiler_static_CXX='-non_shared'
  12567. # CC pic flag -KPIC is the default.
  12568. ;;
  12569. *)
  12570. ;;
  12571. esac
  12572. ;;
  12573. linux* | k*bsd*-gnu)
  12574. case $cc_basename in
  12575. KCC*)
  12576. # KAI C++ Compiler
  12577. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12578. lt_prog_compiler_pic_CXX='-fPIC'
  12579. ;;
  12580. ecpc* )
  12581. # old Intel C++ for x86_64 which still supported -KPIC.
  12582. lt_prog_compiler_wl_CXX='-Wl,'
  12583. lt_prog_compiler_pic_CXX='-KPIC'
  12584. lt_prog_compiler_static_CXX='-static'
  12585. ;;
  12586. icpc* )
  12587. # Intel C++, used to be incompatible with GCC.
  12588. # ICC 10 doesn't accept -KPIC any more.
  12589. lt_prog_compiler_wl_CXX='-Wl,'
  12590. lt_prog_compiler_pic_CXX='-fPIC'
  12591. lt_prog_compiler_static_CXX='-static'
  12592. ;;
  12593. pgCC* | pgcpp*)
  12594. # Portland Group C++ compiler
  12595. lt_prog_compiler_wl_CXX='-Wl,'
  12596. lt_prog_compiler_pic_CXX='-fpic'
  12597. lt_prog_compiler_static_CXX='-Bstatic'
  12598. ;;
  12599. cxx*)
  12600. # Compaq C++
  12601. # Make sure the PIC flag is empty. It appears that all Alpha
  12602. # Linux and Compaq Tru64 Unix objects are PIC.
  12603. lt_prog_compiler_pic_CXX=
  12604. lt_prog_compiler_static_CXX='-non_shared'
  12605. ;;
  12606. xlc* | xlC*)
  12607. # IBM XL 8.0 on PPC
  12608. lt_prog_compiler_wl_CXX='-Wl,'
  12609. lt_prog_compiler_pic_CXX='-qpic'
  12610. lt_prog_compiler_static_CXX='-qstaticlink'
  12611. ;;
  12612. *)
  12613. case `$CC -V 2>&1 | sed 5q` in
  12614. *Sun\ C*)
  12615. # Sun C++ 5.9
  12616. lt_prog_compiler_pic_CXX='-KPIC'
  12617. lt_prog_compiler_static_CXX='-Bstatic'
  12618. lt_prog_compiler_wl_CXX='-Qoption ld '
  12619. ;;
  12620. esac
  12621. ;;
  12622. esac
  12623. ;;
  12624. lynxos*)
  12625. ;;
  12626. m88k*)
  12627. ;;
  12628. mvs*)
  12629. case $cc_basename in
  12630. cxx*)
  12631. lt_prog_compiler_pic_CXX='-W c,exportall'
  12632. ;;
  12633. *)
  12634. ;;
  12635. esac
  12636. ;;
  12637. netbsd*)
  12638. ;;
  12639. *qnx* | *nto*)
  12640. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12641. # it will coredump.
  12642. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12643. ;;
  12644. osf3* | osf4* | osf5*)
  12645. case $cc_basename in
  12646. KCC*)
  12647. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12648. ;;
  12649. RCC*)
  12650. # Rational C++ 2.4.1
  12651. lt_prog_compiler_pic_CXX='-pic'
  12652. ;;
  12653. cxx*)
  12654. # Digital/Compaq C++
  12655. lt_prog_compiler_wl_CXX='-Wl,'
  12656. # Make sure the PIC flag is empty. It appears that all Alpha
  12657. # Linux and Compaq Tru64 Unix objects are PIC.
  12658. lt_prog_compiler_pic_CXX=
  12659. lt_prog_compiler_static_CXX='-non_shared'
  12660. ;;
  12661. *)
  12662. ;;
  12663. esac
  12664. ;;
  12665. psos*)
  12666. ;;
  12667. solaris*)
  12668. case $cc_basename in
  12669. CC*)
  12670. # Sun C++ 4.2, 5.x and Centerline C++
  12671. lt_prog_compiler_pic_CXX='-KPIC'
  12672. lt_prog_compiler_static_CXX='-Bstatic'
  12673. lt_prog_compiler_wl_CXX='-Qoption ld '
  12674. ;;
  12675. gcx*)
  12676. # Green Hills C++ Compiler
  12677. lt_prog_compiler_pic_CXX='-PIC'
  12678. ;;
  12679. *)
  12680. ;;
  12681. esac
  12682. ;;
  12683. sunos4*)
  12684. case $cc_basename in
  12685. CC*)
  12686. # Sun C++ 4.x
  12687. lt_prog_compiler_pic_CXX='-pic'
  12688. lt_prog_compiler_static_CXX='-Bstatic'
  12689. ;;
  12690. lcc*)
  12691. # Lucid
  12692. lt_prog_compiler_pic_CXX='-pic'
  12693. ;;
  12694. *)
  12695. ;;
  12696. esac
  12697. ;;
  12698. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12699. case $cc_basename in
  12700. CC*)
  12701. lt_prog_compiler_wl_CXX='-Wl,'
  12702. lt_prog_compiler_pic_CXX='-KPIC'
  12703. lt_prog_compiler_static_CXX='-Bstatic'
  12704. ;;
  12705. esac
  12706. ;;
  12707. tandem*)
  12708. case $cc_basename in
  12709. NCC*)
  12710. # NonStop-UX NCC 3.20
  12711. lt_prog_compiler_pic_CXX='-KPIC'
  12712. ;;
  12713. *)
  12714. ;;
  12715. esac
  12716. ;;
  12717. vxworks*)
  12718. ;;
  12719. *)
  12720. lt_prog_compiler_can_build_shared_CXX=no
  12721. ;;
  12722. esac
  12723. fi
  12724. case $host_os in
  12725. # For platforms which do not support PIC, -DPIC is meaningless:
  12726. *djgpp*)
  12727. lt_prog_compiler_pic_CXX=
  12728. ;;
  12729. *)
  12730. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12731. ;;
  12732. esac
  12733. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12734. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12735. #
  12736. # Check to make sure the PIC flag actually works.
  12737. #
  12738. if test -n "$lt_prog_compiler_pic_CXX"; then
  12739. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12740. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12741. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  12742. $as_echo_n "(cached) " >&6
  12743. else
  12744. lt_cv_prog_compiler_pic_works_CXX=no
  12745. ac_outfile=conftest.$ac_objext
  12746. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12747. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12748. # Insert the option either (1) after the last *FLAGS variable, or
  12749. # (2) before a word containing "conftest.", or (3) at the end.
  12750. # Note that $ac_compile itself does not contain backslashes and begins
  12751. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12752. # The option is referenced via a variable to avoid confusing sed.
  12753. lt_compile=`echo "$ac_compile" | $SED \
  12754. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12755. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12756. -e 's:$: $lt_compiler_flag:'`
  12757. (eval echo "\"\$as_me:14706: $lt_compile\"" >&5)
  12758. (eval "$lt_compile" 2>conftest.err)
  12759. ac_status=$?
  12760. cat conftest.err >&5
  12761. echo "$as_me:14710: \$? = $ac_status" >&5
  12762. if (exit $ac_status) && test -s "$ac_outfile"; then
  12763. # The compiler can only warn and ignore the option if not recognized
  12764. # So say no if there are warnings other than the usual output.
  12765. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12766. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12767. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12768. lt_cv_prog_compiler_pic_works_CXX=yes
  12769. fi
  12770. fi
  12771. $RM conftest*
  12772. fi
  12773. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12774. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12775. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12776. case $lt_prog_compiler_pic_CXX in
  12777. "" | " "*) ;;
  12778. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12779. esac
  12780. else
  12781. lt_prog_compiler_pic_CXX=
  12782. lt_prog_compiler_can_build_shared_CXX=no
  12783. fi
  12784. fi
  12785. #
  12786. # Check to make sure the static flag actually works.
  12787. #
  12788. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12789. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12790. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12791. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  12792. $as_echo_n "(cached) " >&6
  12793. else
  12794. lt_cv_prog_compiler_static_works_CXX=no
  12795. save_LDFLAGS="$LDFLAGS"
  12796. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12797. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12798. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12799. # The linker can only warn and ignore the option if not recognized
  12800. # So say no if there are warnings
  12801. if test -s conftest.err; then
  12802. # Append any errors to the config.log.
  12803. cat conftest.err 1>&5
  12804. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12805. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12806. if diff conftest.exp conftest.er2 >/dev/null; then
  12807. lt_cv_prog_compiler_static_works_CXX=yes
  12808. fi
  12809. else
  12810. lt_cv_prog_compiler_static_works_CXX=yes
  12811. fi
  12812. fi
  12813. $RM -r conftest*
  12814. LDFLAGS="$save_LDFLAGS"
  12815. fi
  12816. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12817. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12818. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12819. :
  12820. else
  12821. lt_prog_compiler_static_CXX=
  12822. fi
  12823. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12824. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12825. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12826. $as_echo_n "(cached) " >&6
  12827. else
  12828. lt_cv_prog_compiler_c_o_CXX=no
  12829. $RM -r conftest 2>/dev/null
  12830. mkdir conftest
  12831. cd conftest
  12832. mkdir out
  12833. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12834. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12835. # Insert the option either (1) after the last *FLAGS variable, or
  12836. # (2) before a word containing "conftest.", or (3) at the end.
  12837. # Note that $ac_compile itself does not contain backslashes and begins
  12838. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12839. lt_compile=`echo "$ac_compile" | $SED \
  12840. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12841. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12842. -e 's:$: $lt_compiler_flag:'`
  12843. (eval echo "\"\$as_me:14805: $lt_compile\"" >&5)
  12844. (eval "$lt_compile" 2>out/conftest.err)
  12845. ac_status=$?
  12846. cat out/conftest.err >&5
  12847. echo "$as_me:14809: \$? = $ac_status" >&5
  12848. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12849. then
  12850. # The compiler can only warn and ignore the option if not recognized
  12851. # So say no if there are warnings
  12852. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12853. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12854. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12855. lt_cv_prog_compiler_c_o_CXX=yes
  12856. fi
  12857. fi
  12858. chmod u+w . 2>&5
  12859. $RM conftest*
  12860. # SGI C++ compiler will create directory out/ii_files/ for
  12861. # template instantiation
  12862. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12863. $RM out/* && rmdir out
  12864. cd ..
  12865. $RM -r conftest
  12866. $RM conftest*
  12867. fi
  12868. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12869. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12870. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12871. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12872. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12873. $as_echo_n "(cached) " >&6
  12874. else
  12875. lt_cv_prog_compiler_c_o_CXX=no
  12876. $RM -r conftest 2>/dev/null
  12877. mkdir conftest
  12878. cd conftest
  12879. mkdir out
  12880. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12881. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12882. # Insert the option either (1) after the last *FLAGS variable, or
  12883. # (2) before a word containing "conftest.", or (3) at the end.
  12884. # Note that $ac_compile itself does not contain backslashes and begins
  12885. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12886. lt_compile=`echo "$ac_compile" | $SED \
  12887. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12888. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12889. -e 's:$: $lt_compiler_flag:'`
  12890. (eval echo "\"\$as_me:14857: $lt_compile\"" >&5)
  12891. (eval "$lt_compile" 2>out/conftest.err)
  12892. ac_status=$?
  12893. cat out/conftest.err >&5
  12894. echo "$as_me:14861: \$? = $ac_status" >&5
  12895. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12896. then
  12897. # The compiler can only warn and ignore the option if not recognized
  12898. # So say no if there are warnings
  12899. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12900. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12901. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12902. lt_cv_prog_compiler_c_o_CXX=yes
  12903. fi
  12904. fi
  12905. chmod u+w . 2>&5
  12906. $RM conftest*
  12907. # SGI C++ compiler will create directory out/ii_files/ for
  12908. # template instantiation
  12909. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12910. $RM out/* && rmdir out
  12911. cd ..
  12912. $RM -r conftest
  12913. $RM conftest*
  12914. fi
  12915. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12916. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12917. hard_links="nottested"
  12918. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12919. # do not overwrite the value of need_locks provided by the user
  12920. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12921. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12922. hard_links=yes
  12923. $RM conftest*
  12924. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12925. touch conftest.a
  12926. ln conftest.a conftest.b 2>&5 || hard_links=no
  12927. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12928. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  12929. $as_echo "$hard_links" >&6; }
  12930. if test "$hard_links" = no; then
  12931. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12932. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12933. need_locks=warn
  12934. fi
  12935. else
  12936. need_locks=no
  12937. fi
  12938. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12939. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12940. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12941. case $host_os in
  12942. aix[4-9]*)
  12943. # If we're using GNU nm, then we don't want the "-C" option.
  12944. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12945. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12946. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12947. else
  12948. 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'
  12949. fi
  12950. ;;
  12951. pw32*)
  12952. export_symbols_cmds_CXX="$ltdll_cmds"
  12953. ;;
  12954. cygwin* | mingw* | cegcc*)
  12955. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12956. ;;
  12957. *)
  12958. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12959. ;;
  12960. esac
  12961. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12962. { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12963. $as_echo "$ld_shlibs_CXX" >&6; }
  12964. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12965. with_gnu_ld_CXX=$with_gnu_ld
  12966. #
  12967. # Do we need to explicitly link libc?
  12968. #
  12969. case "x$archive_cmds_need_lc_CXX" in
  12970. x|xyes)
  12971. # Assume -lc should be added
  12972. archive_cmds_need_lc_CXX=yes
  12973. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12974. case $archive_cmds_CXX in
  12975. *'~'*)
  12976. # FIXME: we may have to deal with multi-command sequences.
  12977. ;;
  12978. '$CC '*)
  12979. # Test whether the compiler implicitly links with -lc since on some
  12980. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12981. # to ld, don't add -lc before -lgcc.
  12982. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12983. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12984. $RM conftest*
  12985. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12986. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12987. (eval $ac_compile) 2>&5
  12988. ac_status=$?
  12989. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12990. (exit $ac_status); } 2>conftest.err; then
  12991. soname=conftest
  12992. lib=conftest
  12993. libobjs=conftest.$ac_objext
  12994. deplibs=
  12995. wl=$lt_prog_compiler_wl_CXX
  12996. pic_flag=$lt_prog_compiler_pic_CXX
  12997. compiler_flags=-v
  12998. linker_flags=-v
  12999. verstring=
  13000. output_objdir=.
  13001. libname=conftest
  13002. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13003. allow_undefined_flag_CXX=
  13004. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13005. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13006. ac_status=$?
  13007. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13008. (exit $ac_status); }
  13009. then
  13010. archive_cmds_need_lc_CXX=no
  13011. else
  13012. archive_cmds_need_lc_CXX=yes
  13013. fi
  13014. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13015. else
  13016. cat conftest.err 1>&5
  13017. fi
  13018. $RM conftest*
  13019. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  13020. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  13021. ;;
  13022. esac
  13023. fi
  13024. ;;
  13025. esac
  13026. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13027. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13028. library_names_spec=
  13029. libname_spec='lib$name'
  13030. soname_spec=
  13031. shrext_cmds=".so"
  13032. postinstall_cmds=
  13033. postuninstall_cmds=
  13034. finish_cmds=
  13035. finish_eval=
  13036. shlibpath_var=
  13037. shlibpath_overrides_runpath=unknown
  13038. version_type=none
  13039. dynamic_linker="$host_os ld.so"
  13040. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13041. need_lib_prefix=unknown
  13042. hardcode_into_libs=no
  13043. # when you set need_version to no, make sure it does not cause -set_version
  13044. # flags to be left without arguments
  13045. need_version=unknown
  13046. case $host_os in
  13047. aix3*)
  13048. version_type=linux
  13049. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13050. shlibpath_var=LIBPATH
  13051. # AIX 3 has no versioning support, so we append a major version to the name.
  13052. soname_spec='${libname}${release}${shared_ext}$major'
  13053. ;;
  13054. aix[4-9]*)
  13055. version_type=linux
  13056. need_lib_prefix=no
  13057. need_version=no
  13058. hardcode_into_libs=yes
  13059. if test "$host_cpu" = ia64; then
  13060. # AIX 5 supports IA64
  13061. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13062. shlibpath_var=LD_LIBRARY_PATH
  13063. else
  13064. # With GCC up to 2.95.x, collect2 would create an import file
  13065. # for dependence libraries. The import file would start with
  13066. # the line `#! .'. This would cause the generated library to
  13067. # depend on `.', always an invalid library. This was fixed in
  13068. # development snapshots of GCC prior to 3.0.
  13069. case $host_os in
  13070. aix4 | aix4.[01] | aix4.[01].*)
  13071. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13072. echo ' yes '
  13073. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13074. :
  13075. else
  13076. can_build_shared=no
  13077. fi
  13078. ;;
  13079. esac
  13080. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13081. # soname into executable. Probably we can add versioning support to
  13082. # collect2, so additional links can be useful in future.
  13083. if test "$aix_use_runtimelinking" = yes; then
  13084. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13085. # instead of lib<name>.a to let people know that these are not
  13086. # typical AIX shared libraries.
  13087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13088. else
  13089. # We preserve .a as extension for shared libraries through AIX4.2
  13090. # and later when we are not doing run time linking.
  13091. library_names_spec='${libname}${release}.a $libname.a'
  13092. soname_spec='${libname}${release}${shared_ext}$major'
  13093. fi
  13094. shlibpath_var=LIBPATH
  13095. fi
  13096. ;;
  13097. amigaos*)
  13098. case $host_cpu in
  13099. powerpc)
  13100. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13101. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13103. ;;
  13104. m68k)
  13105. library_names_spec='$libname.ixlibrary $libname.a'
  13106. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13107. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13108. ;;
  13109. esac
  13110. ;;
  13111. beos*)
  13112. library_names_spec='${libname}${shared_ext}'
  13113. dynamic_linker="$host_os ld.so"
  13114. shlibpath_var=LIBRARY_PATH
  13115. ;;
  13116. bsdi[45]*)
  13117. version_type=linux
  13118. need_version=no
  13119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13120. soname_spec='${libname}${release}${shared_ext}$major'
  13121. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13122. shlibpath_var=LD_LIBRARY_PATH
  13123. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13124. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13125. # the default ld.so.conf also contains /usr/contrib/lib and
  13126. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13127. # libtool to hard-code these into programs
  13128. ;;
  13129. cygwin* | mingw* | pw32* | cegcc*)
  13130. version_type=windows
  13131. shrext_cmds=".dll"
  13132. need_version=no
  13133. need_lib_prefix=no
  13134. case $GCC,$host_os in
  13135. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13136. library_names_spec='$libname.dll.a'
  13137. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13138. postinstall_cmds='base_file=`basename \${file}`~
  13139. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13140. dldir=$destdir/`dirname \$dlpath`~
  13141. test -d \$dldir || mkdir -p \$dldir~
  13142. $install_prog $dir/$dlname \$dldir/$dlname~
  13143. chmod a+x \$dldir/$dlname~
  13144. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13145. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13146. fi'
  13147. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13148. dlpath=$dir/\$dldll~
  13149. $RM \$dlpath'
  13150. shlibpath_overrides_runpath=yes
  13151. case $host_os in
  13152. cygwin*)
  13153. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13154. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13155. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13156. ;;
  13157. mingw* | cegcc*)
  13158. # MinGW DLLs use traditional 'lib' prefix
  13159. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13160. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13161. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13162. # It is most probably a Windows format PATH printed by
  13163. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13164. # path with ; separators, and with drive letters. We can handle the
  13165. # drive letters (cygwin fileutils understands them), so leave them,
  13166. # especially as we might pass files found there to a mingw objdump,
  13167. # which wouldn't understand a cygwinified path. Ahh.
  13168. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13169. else
  13170. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13171. fi
  13172. ;;
  13173. pw32*)
  13174. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13175. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13176. ;;
  13177. esac
  13178. ;;
  13179. *)
  13180. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13181. ;;
  13182. esac
  13183. dynamic_linker='Win32 ld.exe'
  13184. # FIXME: first we should search . and the directory the executable is in
  13185. shlibpath_var=PATH
  13186. ;;
  13187. darwin* | rhapsody*)
  13188. dynamic_linker="$host_os dyld"
  13189. version_type=darwin
  13190. need_lib_prefix=no
  13191. need_version=no
  13192. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13193. soname_spec='${libname}${release}${major}$shared_ext'
  13194. shlibpath_overrides_runpath=yes
  13195. shlibpath_var=DYLD_LIBRARY_PATH
  13196. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13197. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13198. ;;
  13199. dgux*)
  13200. version_type=linux
  13201. need_lib_prefix=no
  13202. need_version=no
  13203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13204. soname_spec='${libname}${release}${shared_ext}$major'
  13205. shlibpath_var=LD_LIBRARY_PATH
  13206. ;;
  13207. freebsd1*)
  13208. dynamic_linker=no
  13209. ;;
  13210. freebsd* | dragonfly*)
  13211. # DragonFly does not have aout. When/if they implement a new
  13212. # versioning mechanism, adjust this.
  13213. if test -x /usr/bin/objformat; then
  13214. objformat=`/usr/bin/objformat`
  13215. else
  13216. case $host_os in
  13217. freebsd[123]*) objformat=aout ;;
  13218. *) objformat=elf ;;
  13219. esac
  13220. fi
  13221. version_type=freebsd-$objformat
  13222. case $version_type in
  13223. freebsd-elf*)
  13224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13225. need_version=no
  13226. need_lib_prefix=no
  13227. ;;
  13228. freebsd-*)
  13229. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13230. need_version=yes
  13231. ;;
  13232. esac
  13233. shlibpath_var=LD_LIBRARY_PATH
  13234. case $host_os in
  13235. freebsd2*)
  13236. shlibpath_overrides_runpath=yes
  13237. ;;
  13238. freebsd3.[01]* | freebsdelf3.[01]*)
  13239. shlibpath_overrides_runpath=yes
  13240. hardcode_into_libs=yes
  13241. ;;
  13242. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13243. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13244. shlibpath_overrides_runpath=no
  13245. hardcode_into_libs=yes
  13246. ;;
  13247. *) # from 4.6 on, and DragonFly
  13248. shlibpath_overrides_runpath=yes
  13249. hardcode_into_libs=yes
  13250. ;;
  13251. esac
  13252. ;;
  13253. gnu*)
  13254. version_type=linux
  13255. need_lib_prefix=no
  13256. need_version=no
  13257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13258. soname_spec='${libname}${release}${shared_ext}$major'
  13259. shlibpath_var=LD_LIBRARY_PATH
  13260. hardcode_into_libs=yes
  13261. ;;
  13262. hpux9* | hpux10* | hpux11*)
  13263. # Give a soname corresponding to the major version so that dld.sl refuses to
  13264. # link against other versions.
  13265. version_type=sunos
  13266. need_lib_prefix=no
  13267. need_version=no
  13268. case $host_cpu in
  13269. ia64*)
  13270. shrext_cmds='.so'
  13271. hardcode_into_libs=yes
  13272. dynamic_linker="$host_os dld.so"
  13273. shlibpath_var=LD_LIBRARY_PATH
  13274. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13276. soname_spec='${libname}${release}${shared_ext}$major'
  13277. if test "X$HPUX_IA64_MODE" = X32; then
  13278. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13279. else
  13280. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13281. fi
  13282. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13283. ;;
  13284. hppa*64*)
  13285. shrext_cmds='.sl'
  13286. hardcode_into_libs=yes
  13287. dynamic_linker="$host_os dld.sl"
  13288. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13289. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13291. soname_spec='${libname}${release}${shared_ext}$major'
  13292. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13293. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13294. ;;
  13295. *)
  13296. shrext_cmds='.sl'
  13297. dynamic_linker="$host_os dld.sl"
  13298. shlibpath_var=SHLIB_PATH
  13299. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13301. soname_spec='${libname}${release}${shared_ext}$major'
  13302. ;;
  13303. esac
  13304. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13305. postinstall_cmds='chmod 555 $lib'
  13306. ;;
  13307. interix[3-9]*)
  13308. version_type=linux
  13309. need_lib_prefix=no
  13310. need_version=no
  13311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13312. soname_spec='${libname}${release}${shared_ext}$major'
  13313. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13314. shlibpath_var=LD_LIBRARY_PATH
  13315. shlibpath_overrides_runpath=no
  13316. hardcode_into_libs=yes
  13317. ;;
  13318. irix5* | irix6* | nonstopux*)
  13319. case $host_os in
  13320. nonstopux*) version_type=nonstopux ;;
  13321. *)
  13322. if test "$lt_cv_prog_gnu_ld" = yes; then
  13323. version_type=linux
  13324. else
  13325. version_type=irix
  13326. fi ;;
  13327. esac
  13328. need_lib_prefix=no
  13329. need_version=no
  13330. soname_spec='${libname}${release}${shared_ext}$major'
  13331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13332. case $host_os in
  13333. irix5* | nonstopux*)
  13334. libsuff= shlibsuff=
  13335. ;;
  13336. *)
  13337. case $LD in # libtool.m4 will add one of these switches to LD
  13338. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13339. libsuff= shlibsuff= libmagic=32-bit;;
  13340. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13341. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13342. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13343. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13344. *) libsuff= shlibsuff= libmagic=never-match;;
  13345. esac
  13346. ;;
  13347. esac
  13348. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13349. shlibpath_overrides_runpath=no
  13350. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13351. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13352. hardcode_into_libs=yes
  13353. ;;
  13354. # No shared lib support for Linux oldld, aout, or coff.
  13355. linux*oldld* | linux*aout* | linux*coff*)
  13356. dynamic_linker=no
  13357. ;;
  13358. # This must be Linux ELF.
  13359. linux* | k*bsd*-gnu)
  13360. version_type=linux
  13361. need_lib_prefix=no
  13362. need_version=no
  13363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13364. soname_spec='${libname}${release}${shared_ext}$major'
  13365. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13366. shlibpath_var=LD_LIBRARY_PATH
  13367. shlibpath_overrides_runpath=no
  13368. # Some binutils ld are patched to set DT_RUNPATH
  13369. save_LDFLAGS=$LDFLAGS
  13370. save_libdir=$libdir
  13371. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13372. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13373. cat >conftest.$ac_ext <<_ACEOF
  13374. /* confdefs.h. */
  13375. _ACEOF
  13376. cat confdefs.h >>conftest.$ac_ext
  13377. cat >>conftest.$ac_ext <<_ACEOF
  13378. /* end confdefs.h. */
  13379. int
  13380. main ()
  13381. {
  13382. ;
  13383. return 0;
  13384. }
  13385. _ACEOF
  13386. rm -f conftest.$ac_objext conftest$ac_exeext
  13387. if { (ac_try="$ac_link"
  13388. case "(($ac_try" in
  13389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13390. *) ac_try_echo=$ac_try;;
  13391. esac
  13392. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13393. $as_echo "$ac_try_echo") >&5
  13394. (eval "$ac_link") 2>conftest.er1
  13395. ac_status=$?
  13396. grep -v '^ *+' conftest.er1 >conftest.err
  13397. rm -f conftest.er1
  13398. cat conftest.err >&5
  13399. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13400. (exit $ac_status); } && {
  13401. test -z "$ac_cxx_werror_flag" ||
  13402. test ! -s conftest.err
  13403. } && test -s conftest$ac_exeext && {
  13404. test "$cross_compiling" = yes ||
  13405. $as_test_x conftest$ac_exeext
  13406. }; then
  13407. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  13408. shlibpath_overrides_runpath=yes
  13409. fi
  13410. else
  13411. $as_echo "$as_me: failed program was:" >&5
  13412. sed 's/^/| /' conftest.$ac_ext >&5
  13413. fi
  13414. rm -rf conftest.dSYM
  13415. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13416. conftest$ac_exeext conftest.$ac_ext
  13417. LDFLAGS=$save_LDFLAGS
  13418. libdir=$save_libdir
  13419. # This implies no fast_install, which is unacceptable.
  13420. # Some rework will be needed to allow for fast_install
  13421. # before this can be enabled.
  13422. hardcode_into_libs=yes
  13423. # Add ABI-specific directories to the system library path.
  13424. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  13425. # Append ld.so.conf contents to the search path
  13426. if test -f /etc/ld.so.conf; then
  13427. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13428. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  13429. fi
  13430. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13431. # powerpc, because MkLinux only supported shared libraries with the
  13432. # GNU dynamic linker. Since this was broken with cross compilers,
  13433. # most powerpc-linux boxes support dynamic linking these days and
  13434. # people can always --disable-shared, the test was removed, and we
  13435. # assume the GNU/Linux dynamic linker is in use.
  13436. dynamic_linker='GNU/Linux ld.so'
  13437. ;;
  13438. netbsd*)
  13439. version_type=sunos
  13440. need_lib_prefix=no
  13441. need_version=no
  13442. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13444. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13445. dynamic_linker='NetBSD (a.out) ld.so'
  13446. else
  13447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13448. soname_spec='${libname}${release}${shared_ext}$major'
  13449. dynamic_linker='NetBSD ld.elf_so'
  13450. fi
  13451. shlibpath_var=LD_LIBRARY_PATH
  13452. shlibpath_overrides_runpath=yes
  13453. hardcode_into_libs=yes
  13454. ;;
  13455. newsos6)
  13456. version_type=linux
  13457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13458. shlibpath_var=LD_LIBRARY_PATH
  13459. shlibpath_overrides_runpath=yes
  13460. ;;
  13461. *nto* | *qnx*)
  13462. version_type=qnx
  13463. need_lib_prefix=no
  13464. need_version=no
  13465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13466. soname_spec='${libname}${release}${shared_ext}$major'
  13467. shlibpath_var=LD_LIBRARY_PATH
  13468. shlibpath_overrides_runpath=no
  13469. hardcode_into_libs=yes
  13470. dynamic_linker='ldqnx.so'
  13471. ;;
  13472. openbsd*)
  13473. version_type=sunos
  13474. sys_lib_dlsearch_path_spec="/usr/lib"
  13475. need_lib_prefix=no
  13476. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13477. case $host_os in
  13478. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13479. *) need_version=no ;;
  13480. esac
  13481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13483. shlibpath_var=LD_LIBRARY_PATH
  13484. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13485. case $host_os in
  13486. openbsd2.[89] | openbsd2.[89].*)
  13487. shlibpath_overrides_runpath=no
  13488. ;;
  13489. *)
  13490. shlibpath_overrides_runpath=yes
  13491. ;;
  13492. esac
  13493. else
  13494. shlibpath_overrides_runpath=yes
  13495. fi
  13496. ;;
  13497. os2*)
  13498. libname_spec='$name'
  13499. shrext_cmds=".dll"
  13500. need_lib_prefix=no
  13501. library_names_spec='$libname${shared_ext} $libname.a'
  13502. dynamic_linker='OS/2 ld.exe'
  13503. shlibpath_var=LIBPATH
  13504. ;;
  13505. osf3* | osf4* | osf5*)
  13506. version_type=osf
  13507. need_lib_prefix=no
  13508. need_version=no
  13509. soname_spec='${libname}${release}${shared_ext}$major'
  13510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13511. shlibpath_var=LD_LIBRARY_PATH
  13512. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13513. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13514. ;;
  13515. rdos*)
  13516. dynamic_linker=no
  13517. ;;
  13518. solaris*)
  13519. version_type=linux
  13520. need_lib_prefix=no
  13521. need_version=no
  13522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13523. soname_spec='${libname}${release}${shared_ext}$major'
  13524. shlibpath_var=LD_LIBRARY_PATH
  13525. shlibpath_overrides_runpath=yes
  13526. hardcode_into_libs=yes
  13527. # ldd complains unless libraries are executable
  13528. postinstall_cmds='chmod +x $lib'
  13529. ;;
  13530. sunos4*)
  13531. version_type=sunos
  13532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13533. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13534. shlibpath_var=LD_LIBRARY_PATH
  13535. shlibpath_overrides_runpath=yes
  13536. if test "$with_gnu_ld" = yes; then
  13537. need_lib_prefix=no
  13538. fi
  13539. need_version=yes
  13540. ;;
  13541. sysv4 | sysv4.3*)
  13542. version_type=linux
  13543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13544. soname_spec='${libname}${release}${shared_ext}$major'
  13545. shlibpath_var=LD_LIBRARY_PATH
  13546. case $host_vendor in
  13547. sni)
  13548. shlibpath_overrides_runpath=no
  13549. need_lib_prefix=no
  13550. runpath_var=LD_RUN_PATH
  13551. ;;
  13552. siemens)
  13553. need_lib_prefix=no
  13554. ;;
  13555. motorola)
  13556. need_lib_prefix=no
  13557. need_version=no
  13558. shlibpath_overrides_runpath=no
  13559. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13560. ;;
  13561. esac
  13562. ;;
  13563. sysv4*MP*)
  13564. if test -d /usr/nec ;then
  13565. version_type=linux
  13566. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13567. soname_spec='$libname${shared_ext}.$major'
  13568. shlibpath_var=LD_LIBRARY_PATH
  13569. fi
  13570. ;;
  13571. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13572. version_type=freebsd-elf
  13573. need_lib_prefix=no
  13574. need_version=no
  13575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13576. soname_spec='${libname}${release}${shared_ext}$major'
  13577. shlibpath_var=LD_LIBRARY_PATH
  13578. shlibpath_overrides_runpath=yes
  13579. hardcode_into_libs=yes
  13580. if test "$with_gnu_ld" = yes; then
  13581. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13582. else
  13583. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13584. case $host_os in
  13585. sco3.2v5*)
  13586. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13587. ;;
  13588. esac
  13589. fi
  13590. sys_lib_dlsearch_path_spec='/usr/lib'
  13591. ;;
  13592. tpf*)
  13593. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13594. version_type=linux
  13595. need_lib_prefix=no
  13596. need_version=no
  13597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13598. shlibpath_var=LD_LIBRARY_PATH
  13599. shlibpath_overrides_runpath=no
  13600. hardcode_into_libs=yes
  13601. ;;
  13602. uts4*)
  13603. version_type=linux
  13604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13605. soname_spec='${libname}${release}${shared_ext}$major'
  13606. shlibpath_var=LD_LIBRARY_PATH
  13607. ;;
  13608. *)
  13609. dynamic_linker=no
  13610. ;;
  13611. esac
  13612. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13613. $as_echo "$dynamic_linker" >&6; }
  13614. test "$dynamic_linker" = no && can_build_shared=no
  13615. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13616. if test "$GCC" = yes; then
  13617. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13618. fi
  13619. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13620. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13621. fi
  13622. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13623. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13624. fi
  13625. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13626. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13627. hardcode_action_CXX=
  13628. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13629. test -n "$runpath_var_CXX" ||
  13630. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13631. # We can hardcode non-existent directories.
  13632. if test "$hardcode_direct_CXX" != no &&
  13633. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13634. # have to relink, otherwise we might link with an installed library
  13635. # when we should be linking with a yet-to-be-installed one
  13636. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13637. test "$hardcode_minus_L_CXX" != no; then
  13638. # Linking always hardcodes the temporary library directory.
  13639. hardcode_action_CXX=relink
  13640. else
  13641. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13642. hardcode_action_CXX=immediate
  13643. fi
  13644. else
  13645. # We cannot hardcode anything, or else we can only hardcode existing
  13646. # directories.
  13647. hardcode_action_CXX=unsupported
  13648. fi
  13649. { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13650. $as_echo "$hardcode_action_CXX" >&6; }
  13651. if test "$hardcode_action_CXX" = relink ||
  13652. test "$inherit_rpath_CXX" = yes; then
  13653. # Fast installation is not supported
  13654. enable_fast_install=no
  13655. elif test "$shlibpath_overrides_runpath" = yes ||
  13656. test "$enable_shared" = no; then
  13657. # Fast installation is not necessary
  13658. enable_fast_install=needless
  13659. fi
  13660. fi # test -n "$compiler"
  13661. CC=$lt_save_CC
  13662. LDCXX=$LD
  13663. LD=$lt_save_LD
  13664. GCC=$lt_save_GCC
  13665. with_gnu_ld=$lt_save_with_gnu_ld
  13666. lt_cv_path_LDCXX=$lt_cv_path_LD
  13667. lt_cv_path_LD=$lt_save_path_LD
  13668. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13669. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13670. fi # test "$_lt_caught_CXX_error" != yes
  13671. ac_ext=c
  13672. ac_cpp='$CPP $CPPFLAGS'
  13673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13676. ac_config_commands="$ac_config_commands libtool"
  13677. # Only expand once:
  13678. # Checks for header files.
  13679. ac_header_dirent=no
  13680. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  13681. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  13682. { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  13683. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  13684. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13685. $as_echo_n "(cached) " >&6
  13686. else
  13687. cat >conftest.$ac_ext <<_ACEOF
  13688. /* confdefs.h. */
  13689. _ACEOF
  13690. cat confdefs.h >>conftest.$ac_ext
  13691. cat >>conftest.$ac_ext <<_ACEOF
  13692. /* end confdefs.h. */
  13693. #include <sys/types.h>
  13694. #include <$ac_hdr>
  13695. int
  13696. main ()
  13697. {
  13698. if ((DIR *) 0)
  13699. return 0;
  13700. ;
  13701. return 0;
  13702. }
  13703. _ACEOF
  13704. rm -f conftest.$ac_objext
  13705. if { (ac_try="$ac_compile"
  13706. case "(($ac_try" in
  13707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13708. *) ac_try_echo=$ac_try;;
  13709. esac
  13710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13711. $as_echo "$ac_try_echo") >&5
  13712. (eval "$ac_compile") 2>conftest.er1
  13713. ac_status=$?
  13714. grep -v '^ *+' conftest.er1 >conftest.err
  13715. rm -f conftest.er1
  13716. cat conftest.err >&5
  13717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13718. (exit $ac_status); } && {
  13719. test -z "$ac_c_werror_flag" ||
  13720. test ! -s conftest.err
  13721. } && test -s conftest.$ac_objext; then
  13722. eval "$as_ac_Header=yes"
  13723. else
  13724. $as_echo "$as_me: failed program was:" >&5
  13725. sed 's/^/| /' conftest.$ac_ext >&5
  13726. eval "$as_ac_Header=no"
  13727. fi
  13728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13729. fi
  13730. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13731. $as_echo "$as_val"'`
  13732. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13733. $as_echo "$ac_res" >&6; }
  13734. as_val=`eval 'as_val=${'$as_ac_Header'}
  13735. $as_echo "$as_val"'`
  13736. if test "x$as_val" = x""yes; then
  13737. cat >>confdefs.h <<_ACEOF
  13738. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  13739. _ACEOF
  13740. ac_header_dirent=$ac_hdr; break
  13741. fi
  13742. done
  13743. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  13744. if test $ac_header_dirent = dirent.h; then
  13745. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13746. $as_echo_n "checking for library containing opendir... " >&6; }
  13747. if test "${ac_cv_search_opendir+set}" = set; then
  13748. $as_echo_n "(cached) " >&6
  13749. else
  13750. ac_func_search_save_LIBS=$LIBS
  13751. cat >conftest.$ac_ext <<_ACEOF
  13752. /* confdefs.h. */
  13753. _ACEOF
  13754. cat confdefs.h >>conftest.$ac_ext
  13755. cat >>conftest.$ac_ext <<_ACEOF
  13756. /* end confdefs.h. */
  13757. /* Override any GCC internal prototype to avoid an error.
  13758. Use char because int might match the return type of a GCC
  13759. builtin and then its argument prototype would still apply. */
  13760. #ifdef __cplusplus
  13761. extern "C"
  13762. #endif
  13763. char opendir ();
  13764. int
  13765. main ()
  13766. {
  13767. return opendir ();
  13768. ;
  13769. return 0;
  13770. }
  13771. _ACEOF
  13772. for ac_lib in '' dir; do
  13773. if test -z "$ac_lib"; then
  13774. ac_res="none required"
  13775. else
  13776. ac_res=-l$ac_lib
  13777. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13778. fi
  13779. rm -f conftest.$ac_objext conftest$ac_exeext
  13780. if { (ac_try="$ac_link"
  13781. case "(($ac_try" in
  13782. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13783. *) ac_try_echo=$ac_try;;
  13784. esac
  13785. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13786. $as_echo "$ac_try_echo") >&5
  13787. (eval "$ac_link") 2>conftest.er1
  13788. ac_status=$?
  13789. grep -v '^ *+' conftest.er1 >conftest.err
  13790. rm -f conftest.er1
  13791. cat conftest.err >&5
  13792. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13793. (exit $ac_status); } && {
  13794. test -z "$ac_c_werror_flag" ||
  13795. test ! -s conftest.err
  13796. } && test -s conftest$ac_exeext && {
  13797. test "$cross_compiling" = yes ||
  13798. $as_test_x conftest$ac_exeext
  13799. }; then
  13800. ac_cv_search_opendir=$ac_res
  13801. else
  13802. $as_echo "$as_me: failed program was:" >&5
  13803. sed 's/^/| /' conftest.$ac_ext >&5
  13804. fi
  13805. rm -rf conftest.dSYM
  13806. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13807. conftest$ac_exeext
  13808. if test "${ac_cv_search_opendir+set}" = set; then
  13809. break
  13810. fi
  13811. done
  13812. if test "${ac_cv_search_opendir+set}" = set; then
  13813. :
  13814. else
  13815. ac_cv_search_opendir=no
  13816. fi
  13817. rm conftest.$ac_ext
  13818. LIBS=$ac_func_search_save_LIBS
  13819. fi
  13820. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13821. $as_echo "$ac_cv_search_opendir" >&6; }
  13822. ac_res=$ac_cv_search_opendir
  13823. if test "$ac_res" != no; then
  13824. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13825. fi
  13826. else
  13827. { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
  13828. $as_echo_n "checking for library containing opendir... " >&6; }
  13829. if test "${ac_cv_search_opendir+set}" = set; then
  13830. $as_echo_n "(cached) " >&6
  13831. else
  13832. ac_func_search_save_LIBS=$LIBS
  13833. cat >conftest.$ac_ext <<_ACEOF
  13834. /* confdefs.h. */
  13835. _ACEOF
  13836. cat confdefs.h >>conftest.$ac_ext
  13837. cat >>conftest.$ac_ext <<_ACEOF
  13838. /* end confdefs.h. */
  13839. /* Override any GCC internal prototype to avoid an error.
  13840. Use char because int might match the return type of a GCC
  13841. builtin and then its argument prototype would still apply. */
  13842. #ifdef __cplusplus
  13843. extern "C"
  13844. #endif
  13845. char opendir ();
  13846. int
  13847. main ()
  13848. {
  13849. return opendir ();
  13850. ;
  13851. return 0;
  13852. }
  13853. _ACEOF
  13854. for ac_lib in '' x; do
  13855. if test -z "$ac_lib"; then
  13856. ac_res="none required"
  13857. else
  13858. ac_res=-l$ac_lib
  13859. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13860. fi
  13861. rm -f conftest.$ac_objext conftest$ac_exeext
  13862. if { (ac_try="$ac_link"
  13863. case "(($ac_try" in
  13864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13865. *) ac_try_echo=$ac_try;;
  13866. esac
  13867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13868. $as_echo "$ac_try_echo") >&5
  13869. (eval "$ac_link") 2>conftest.er1
  13870. ac_status=$?
  13871. grep -v '^ *+' conftest.er1 >conftest.err
  13872. rm -f conftest.er1
  13873. cat conftest.err >&5
  13874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13875. (exit $ac_status); } && {
  13876. test -z "$ac_c_werror_flag" ||
  13877. test ! -s conftest.err
  13878. } && test -s conftest$ac_exeext && {
  13879. test "$cross_compiling" = yes ||
  13880. $as_test_x conftest$ac_exeext
  13881. }; then
  13882. ac_cv_search_opendir=$ac_res
  13883. else
  13884. $as_echo "$as_me: failed program was:" >&5
  13885. sed 's/^/| /' conftest.$ac_ext >&5
  13886. fi
  13887. rm -rf conftest.dSYM
  13888. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13889. conftest$ac_exeext
  13890. if test "${ac_cv_search_opendir+set}" = set; then
  13891. break
  13892. fi
  13893. done
  13894. if test "${ac_cv_search_opendir+set}" = set; then
  13895. :
  13896. else
  13897. ac_cv_search_opendir=no
  13898. fi
  13899. rm conftest.$ac_ext
  13900. LIBS=$ac_func_search_save_LIBS
  13901. fi
  13902. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  13903. $as_echo "$ac_cv_search_opendir" >&6; }
  13904. ac_res=$ac_cv_search_opendir
  13905. if test "$ac_res" != no; then
  13906. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13907. fi
  13908. fi
  13909. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13910. $as_echo_n "checking for ANSI C header files... " >&6; }
  13911. if test "${ac_cv_header_stdc+set}" = set; then
  13912. $as_echo_n "(cached) " >&6
  13913. else
  13914. cat >conftest.$ac_ext <<_ACEOF
  13915. /* confdefs.h. */
  13916. _ACEOF
  13917. cat confdefs.h >>conftest.$ac_ext
  13918. cat >>conftest.$ac_ext <<_ACEOF
  13919. /* end confdefs.h. */
  13920. #include <stdlib.h>
  13921. #include <stdarg.h>
  13922. #include <string.h>
  13923. #include <float.h>
  13924. int
  13925. main ()
  13926. {
  13927. ;
  13928. return 0;
  13929. }
  13930. _ACEOF
  13931. rm -f conftest.$ac_objext
  13932. if { (ac_try="$ac_compile"
  13933. case "(($ac_try" in
  13934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13935. *) ac_try_echo=$ac_try;;
  13936. esac
  13937. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13938. $as_echo "$ac_try_echo") >&5
  13939. (eval "$ac_compile") 2>conftest.er1
  13940. ac_status=$?
  13941. grep -v '^ *+' conftest.er1 >conftest.err
  13942. rm -f conftest.er1
  13943. cat conftest.err >&5
  13944. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13945. (exit $ac_status); } && {
  13946. test -z "$ac_c_werror_flag" ||
  13947. test ! -s conftest.err
  13948. } && test -s conftest.$ac_objext; then
  13949. ac_cv_header_stdc=yes
  13950. else
  13951. $as_echo "$as_me: failed program was:" >&5
  13952. sed 's/^/| /' conftest.$ac_ext >&5
  13953. ac_cv_header_stdc=no
  13954. fi
  13955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13956. if test $ac_cv_header_stdc = yes; then
  13957. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13958. cat >conftest.$ac_ext <<_ACEOF
  13959. /* confdefs.h. */
  13960. _ACEOF
  13961. cat confdefs.h >>conftest.$ac_ext
  13962. cat >>conftest.$ac_ext <<_ACEOF
  13963. /* end confdefs.h. */
  13964. #include <string.h>
  13965. _ACEOF
  13966. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13967. $EGREP "memchr" >/dev/null 2>&1; then
  13968. :
  13969. else
  13970. ac_cv_header_stdc=no
  13971. fi
  13972. rm -f conftest*
  13973. fi
  13974. if test $ac_cv_header_stdc = yes; then
  13975. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13976. cat >conftest.$ac_ext <<_ACEOF
  13977. /* confdefs.h. */
  13978. _ACEOF
  13979. cat confdefs.h >>conftest.$ac_ext
  13980. cat >>conftest.$ac_ext <<_ACEOF
  13981. /* end confdefs.h. */
  13982. #include <stdlib.h>
  13983. _ACEOF
  13984. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13985. $EGREP "free" >/dev/null 2>&1; then
  13986. :
  13987. else
  13988. ac_cv_header_stdc=no
  13989. fi
  13990. rm -f conftest*
  13991. fi
  13992. if test $ac_cv_header_stdc = yes; then
  13993. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13994. if test "$cross_compiling" = yes; then
  13995. :
  13996. else
  13997. cat >conftest.$ac_ext <<_ACEOF
  13998. /* confdefs.h. */
  13999. _ACEOF
  14000. cat confdefs.h >>conftest.$ac_ext
  14001. cat >>conftest.$ac_ext <<_ACEOF
  14002. /* end confdefs.h. */
  14003. #include <ctype.h>
  14004. #include <stdlib.h>
  14005. #if ((' ' & 0x0FF) == 0x020)
  14006. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14007. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14008. #else
  14009. # define ISLOWER(c) \
  14010. (('a' <= (c) && (c) <= 'i') \
  14011. || ('j' <= (c) && (c) <= 'r') \
  14012. || ('s' <= (c) && (c) <= 'z'))
  14013. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14014. #endif
  14015. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14016. int
  14017. main ()
  14018. {
  14019. int i;
  14020. for (i = 0; i < 256; i++)
  14021. if (XOR (islower (i), ISLOWER (i))
  14022. || toupper (i) != TOUPPER (i))
  14023. return 2;
  14024. return 0;
  14025. }
  14026. _ACEOF
  14027. rm -f conftest$ac_exeext
  14028. if { (ac_try="$ac_link"
  14029. case "(($ac_try" in
  14030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14031. *) ac_try_echo=$ac_try;;
  14032. esac
  14033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14034. $as_echo "$ac_try_echo") >&5
  14035. (eval "$ac_link") 2>&5
  14036. ac_status=$?
  14037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14038. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14039. { (case "(($ac_try" in
  14040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14041. *) ac_try_echo=$ac_try;;
  14042. esac
  14043. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14044. $as_echo "$ac_try_echo") >&5
  14045. (eval "$ac_try") 2>&5
  14046. ac_status=$?
  14047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14048. (exit $ac_status); }; }; then
  14049. :
  14050. else
  14051. $as_echo "$as_me: program exited with status $ac_status" >&5
  14052. $as_echo "$as_me: failed program was:" >&5
  14053. sed 's/^/| /' conftest.$ac_ext >&5
  14054. ( exit $ac_status )
  14055. ac_cv_header_stdc=no
  14056. fi
  14057. rm -rf conftest.dSYM
  14058. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14059. fi
  14060. fi
  14061. fi
  14062. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  14063. $as_echo "$ac_cv_header_stdc" >&6; }
  14064. if test $ac_cv_header_stdc = yes; then
  14065. cat >>confdefs.h <<\_ACEOF
  14066. #define STDC_HEADERS 1
  14067. _ACEOF
  14068. fi
  14069. { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  14070. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  14071. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  14072. $as_echo_n "(cached) " >&6
  14073. else
  14074. cat >conftest.$ac_ext <<_ACEOF
  14075. /* confdefs.h. */
  14076. _ACEOF
  14077. cat confdefs.h >>conftest.$ac_ext
  14078. cat >>conftest.$ac_ext <<_ACEOF
  14079. /* end confdefs.h. */
  14080. #include <sys/types.h>
  14081. #include <sys/wait.h>
  14082. #ifndef WEXITSTATUS
  14083. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  14084. #endif
  14085. #ifndef WIFEXITED
  14086. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  14087. #endif
  14088. int
  14089. main ()
  14090. {
  14091. int s;
  14092. wait (&s);
  14093. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  14094. ;
  14095. return 0;
  14096. }
  14097. _ACEOF
  14098. rm -f conftest.$ac_objext
  14099. if { (ac_try="$ac_compile"
  14100. case "(($ac_try" in
  14101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14102. *) ac_try_echo=$ac_try;;
  14103. esac
  14104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14105. $as_echo "$ac_try_echo") >&5
  14106. (eval "$ac_compile") 2>conftest.er1
  14107. ac_status=$?
  14108. grep -v '^ *+' conftest.er1 >conftest.err
  14109. rm -f conftest.er1
  14110. cat conftest.err >&5
  14111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14112. (exit $ac_status); } && {
  14113. test -z "$ac_c_werror_flag" ||
  14114. test ! -s conftest.err
  14115. } && test -s conftest.$ac_objext; then
  14116. ac_cv_header_sys_wait_h=yes
  14117. else
  14118. $as_echo "$as_me: failed program was:" >&5
  14119. sed 's/^/| /' conftest.$ac_ext >&5
  14120. ac_cv_header_sys_wait_h=no
  14121. fi
  14122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14123. fi
  14124. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  14125. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  14126. if test $ac_cv_header_sys_wait_h = yes; then
  14127. cat >>confdefs.h <<\_ACEOF
  14128. #define HAVE_SYS_WAIT_H 1
  14129. _ACEOF
  14130. fi
  14131. 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
  14132. do
  14133. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14134. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14135. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14136. $as_echo_n "checking for $ac_header... " >&6; }
  14137. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14138. $as_echo_n "(cached) " >&6
  14139. fi
  14140. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14141. $as_echo "$as_val"'`
  14142. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14143. $as_echo "$ac_res" >&6; }
  14144. else
  14145. # Is the header compilable?
  14146. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14147. $as_echo_n "checking $ac_header usability... " >&6; }
  14148. cat >conftest.$ac_ext <<_ACEOF
  14149. /* confdefs.h. */
  14150. _ACEOF
  14151. cat confdefs.h >>conftest.$ac_ext
  14152. cat >>conftest.$ac_ext <<_ACEOF
  14153. /* end confdefs.h. */
  14154. $ac_includes_default
  14155. #include <$ac_header>
  14156. _ACEOF
  14157. rm -f conftest.$ac_objext
  14158. if { (ac_try="$ac_compile"
  14159. case "(($ac_try" in
  14160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14161. *) ac_try_echo=$ac_try;;
  14162. esac
  14163. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14164. $as_echo "$ac_try_echo") >&5
  14165. (eval "$ac_compile") 2>conftest.er1
  14166. ac_status=$?
  14167. grep -v '^ *+' conftest.er1 >conftest.err
  14168. rm -f conftest.er1
  14169. cat conftest.err >&5
  14170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14171. (exit $ac_status); } && {
  14172. test -z "$ac_c_werror_flag" ||
  14173. test ! -s conftest.err
  14174. } && test -s conftest.$ac_objext; then
  14175. ac_header_compiler=yes
  14176. else
  14177. $as_echo "$as_me: failed program was:" >&5
  14178. sed 's/^/| /' conftest.$ac_ext >&5
  14179. ac_header_compiler=no
  14180. fi
  14181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14182. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14183. $as_echo "$ac_header_compiler" >&6; }
  14184. # Is the header present?
  14185. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14186. $as_echo_n "checking $ac_header presence... " >&6; }
  14187. cat >conftest.$ac_ext <<_ACEOF
  14188. /* confdefs.h. */
  14189. _ACEOF
  14190. cat confdefs.h >>conftest.$ac_ext
  14191. cat >>conftest.$ac_ext <<_ACEOF
  14192. /* end confdefs.h. */
  14193. #include <$ac_header>
  14194. _ACEOF
  14195. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14196. case "(($ac_try" in
  14197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14198. *) ac_try_echo=$ac_try;;
  14199. esac
  14200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14201. $as_echo "$ac_try_echo") >&5
  14202. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14203. ac_status=$?
  14204. grep -v '^ *+' conftest.er1 >conftest.err
  14205. rm -f conftest.er1
  14206. cat conftest.err >&5
  14207. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14208. (exit $ac_status); } >/dev/null && {
  14209. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14210. test ! -s conftest.err
  14211. }; then
  14212. ac_header_preproc=yes
  14213. else
  14214. $as_echo "$as_me: failed program was:" >&5
  14215. sed 's/^/| /' conftest.$ac_ext >&5
  14216. ac_header_preproc=no
  14217. fi
  14218. rm -f conftest.err conftest.$ac_ext
  14219. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14220. $as_echo "$ac_header_preproc" >&6; }
  14221. # So? What about this header?
  14222. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14223. yes:no: )
  14224. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14225. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14226. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14227. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14228. ac_header_preproc=yes
  14229. ;;
  14230. no:yes:* )
  14231. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14232. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14233. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14234. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14235. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14236. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14237. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14238. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14239. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14240. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14241. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14242. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14243. ( cat <<\_ASBOX
  14244. ## ------------------------------------------ ##
  14245. ## Report this to http://bugzilla.redhat.com/ ##
  14246. ## ------------------------------------------ ##
  14247. _ASBOX
  14248. ) | sed "s/^/$as_me: WARNING: /" >&2
  14249. ;;
  14250. esac
  14251. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14252. $as_echo_n "checking for $ac_header... " >&6; }
  14253. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14254. $as_echo_n "(cached) " >&6
  14255. else
  14256. eval "$as_ac_Header=\$ac_header_preproc"
  14257. fi
  14258. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14259. $as_echo "$as_val"'`
  14260. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14261. $as_echo "$ac_res" >&6; }
  14262. fi
  14263. as_val=`eval 'as_val=${'$as_ac_Header'}
  14264. $as_echo "$as_val"'`
  14265. if test "x$as_val" = x""yes; then
  14266. cat >>confdefs.h <<_ACEOF
  14267. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14268. _ACEOF
  14269. fi
  14270. done
  14271. # Checks for typedefs, structures, and compiler characteristics.
  14272. { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  14273. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  14274. if test "${ac_cv_header_stat_broken+set}" = set; then
  14275. $as_echo_n "(cached) " >&6
  14276. else
  14277. cat >conftest.$ac_ext <<_ACEOF
  14278. /* confdefs.h. */
  14279. _ACEOF
  14280. cat confdefs.h >>conftest.$ac_ext
  14281. cat >>conftest.$ac_ext <<_ACEOF
  14282. /* end confdefs.h. */
  14283. #include <sys/types.h>
  14284. #include <sys/stat.h>
  14285. #if defined S_ISBLK && defined S_IFDIR
  14286. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  14287. #endif
  14288. #if defined S_ISBLK && defined S_IFCHR
  14289. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  14290. #endif
  14291. #if defined S_ISLNK && defined S_IFREG
  14292. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  14293. #endif
  14294. #if defined S_ISSOCK && defined S_IFREG
  14295. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  14296. #endif
  14297. _ACEOF
  14298. rm -f conftest.$ac_objext
  14299. if { (ac_try="$ac_compile"
  14300. case "(($ac_try" in
  14301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14302. *) ac_try_echo=$ac_try;;
  14303. esac
  14304. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14305. $as_echo "$ac_try_echo") >&5
  14306. (eval "$ac_compile") 2>conftest.er1
  14307. ac_status=$?
  14308. grep -v '^ *+' conftest.er1 >conftest.err
  14309. rm -f conftest.er1
  14310. cat conftest.err >&5
  14311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14312. (exit $ac_status); } && {
  14313. test -z "$ac_c_werror_flag" ||
  14314. test ! -s conftest.err
  14315. } && test -s conftest.$ac_objext; then
  14316. ac_cv_header_stat_broken=no
  14317. else
  14318. $as_echo "$as_me: failed program was:" >&5
  14319. sed 's/^/| /' conftest.$ac_ext >&5
  14320. ac_cv_header_stat_broken=yes
  14321. fi
  14322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14323. fi
  14324. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  14325. $as_echo "$ac_cv_header_stat_broken" >&6; }
  14326. if test $ac_cv_header_stat_broken = yes; then
  14327. cat >>confdefs.h <<\_ACEOF
  14328. #define STAT_MACROS_BROKEN 1
  14329. _ACEOF
  14330. fi
  14331. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  14332. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  14333. if test "${ac_cv_c_const+set}" = set; then
  14334. $as_echo_n "(cached) " >&6
  14335. else
  14336. cat >conftest.$ac_ext <<_ACEOF
  14337. /* confdefs.h. */
  14338. _ACEOF
  14339. cat confdefs.h >>conftest.$ac_ext
  14340. cat >>conftest.$ac_ext <<_ACEOF
  14341. /* end confdefs.h. */
  14342. int
  14343. main ()
  14344. {
  14345. /* FIXME: Include the comments suggested by Paul. */
  14346. #ifndef __cplusplus
  14347. /* Ultrix mips cc rejects this. */
  14348. typedef int charset[2];
  14349. const charset cs;
  14350. /* SunOS 4.1.1 cc rejects this. */
  14351. char const *const *pcpcc;
  14352. char **ppc;
  14353. /* NEC SVR4.0.2 mips cc rejects this. */
  14354. struct point {int x, y;};
  14355. static struct point const zero = {0,0};
  14356. /* AIX XL C 1.02.0.0 rejects this.
  14357. It does not let you subtract one const X* pointer from another in
  14358. an arm of an if-expression whose if-part is not a constant
  14359. expression */
  14360. const char *g = "string";
  14361. pcpcc = &g + (g ? g-g : 0);
  14362. /* HPUX 7.0 cc rejects these. */
  14363. ++pcpcc;
  14364. ppc = (char**) pcpcc;
  14365. pcpcc = (char const *const *) ppc;
  14366. { /* SCO 3.2v4 cc rejects this. */
  14367. char *t;
  14368. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14369. *t++ = 0;
  14370. if (s) return 0;
  14371. }
  14372. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14373. int x[] = {25, 17};
  14374. const int *foo = &x[0];
  14375. ++foo;
  14376. }
  14377. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14378. typedef const int *iptr;
  14379. iptr p = 0;
  14380. ++p;
  14381. }
  14382. { /* AIX XL C 1.02.0.0 rejects this saying
  14383. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14384. struct s { int j; const int *ap[3]; };
  14385. struct s *b; b->j = 5;
  14386. }
  14387. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14388. const int foo = 10;
  14389. if (!foo) return 0;
  14390. }
  14391. return !cs[0] && !zero.x;
  14392. #endif
  14393. ;
  14394. return 0;
  14395. }
  14396. _ACEOF
  14397. rm -f conftest.$ac_objext
  14398. if { (ac_try="$ac_compile"
  14399. case "(($ac_try" in
  14400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14401. *) ac_try_echo=$ac_try;;
  14402. esac
  14403. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14404. $as_echo "$ac_try_echo") >&5
  14405. (eval "$ac_compile") 2>conftest.er1
  14406. ac_status=$?
  14407. grep -v '^ *+' conftest.er1 >conftest.err
  14408. rm -f conftest.er1
  14409. cat conftest.err >&5
  14410. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14411. (exit $ac_status); } && {
  14412. test -z "$ac_c_werror_flag" ||
  14413. test ! -s conftest.err
  14414. } && test -s conftest.$ac_objext; then
  14415. ac_cv_c_const=yes
  14416. else
  14417. $as_echo "$as_me: failed program was:" >&5
  14418. sed 's/^/| /' conftest.$ac_ext >&5
  14419. ac_cv_c_const=no
  14420. fi
  14421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14422. fi
  14423. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  14424. $as_echo "$ac_cv_c_const" >&6; }
  14425. if test $ac_cv_c_const = no; then
  14426. cat >>confdefs.h <<\_ACEOF
  14427. #define const /**/
  14428. _ACEOF
  14429. fi
  14430. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  14431. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14432. if test "${ac_cv_header_stdbool_h+set}" = set; then
  14433. $as_echo_n "(cached) " >&6
  14434. else
  14435. cat >conftest.$ac_ext <<_ACEOF
  14436. /* confdefs.h. */
  14437. _ACEOF
  14438. cat confdefs.h >>conftest.$ac_ext
  14439. cat >>conftest.$ac_ext <<_ACEOF
  14440. /* end confdefs.h. */
  14441. #include <stdbool.h>
  14442. #ifndef bool
  14443. "error: bool is not defined"
  14444. #endif
  14445. #ifndef false
  14446. "error: false is not defined"
  14447. #endif
  14448. #if false
  14449. "error: false is not 0"
  14450. #endif
  14451. #ifndef true
  14452. "error: true is not defined"
  14453. #endif
  14454. #if true != 1
  14455. "error: true is not 1"
  14456. #endif
  14457. #ifndef __bool_true_false_are_defined
  14458. "error: __bool_true_false_are_defined is not defined"
  14459. #endif
  14460. struct s { _Bool s: 1; _Bool t; } s;
  14461. char a[true == 1 ? 1 : -1];
  14462. char b[false == 0 ? 1 : -1];
  14463. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14464. char d[(bool) 0.5 == true ? 1 : -1];
  14465. bool e = &s;
  14466. char f[(_Bool) 0.0 == false ? 1 : -1];
  14467. char g[true];
  14468. char h[sizeof (_Bool)];
  14469. char i[sizeof s.t];
  14470. enum { j = false, k = true, l = false * true, m = true * 256 };
  14471. /* The following fails for
  14472. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14473. _Bool n[m];
  14474. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14475. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14476. # if defined __xlc__ || defined __GNUC__
  14477. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  14478. reported by James Lemley on 2005-10-05; see
  14479. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  14480. This test is not quite right, since xlc is allowed to
  14481. reject this program, as the initializer for xlcbug is
  14482. not one of the forms that C requires support for.
  14483. However, doing the test right would require a runtime
  14484. test, and that would make cross-compilation harder.
  14485. Let us hope that IBM fixes the xlc bug, and also adds
  14486. support for this kind of constant expression. In the
  14487. meantime, this test will reject xlc, which is OK, since
  14488. our stdbool.h substitute should suffice. We also test
  14489. this with GCC, where it should work, to detect more
  14490. quickly whether someone messes up the test in the
  14491. future. */
  14492. char digs[] = "0123456789";
  14493. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  14494. # endif
  14495. /* Catch a bug in an HP-UX C compiler. See
  14496. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14497. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14498. */
  14499. _Bool q = true;
  14500. _Bool *pq = &q;
  14501. int
  14502. main ()
  14503. {
  14504. *pq |= q;
  14505. *pq |= ! q;
  14506. /* Refer to every declared value, to avoid compiler optimizations. */
  14507. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14508. + !m + !n + !o + !p + !q + !pq);
  14509. ;
  14510. return 0;
  14511. }
  14512. _ACEOF
  14513. rm -f conftest.$ac_objext
  14514. if { (ac_try="$ac_compile"
  14515. case "(($ac_try" in
  14516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14517. *) ac_try_echo=$ac_try;;
  14518. esac
  14519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14520. $as_echo "$ac_try_echo") >&5
  14521. (eval "$ac_compile") 2>conftest.er1
  14522. ac_status=$?
  14523. grep -v '^ *+' conftest.er1 >conftest.err
  14524. rm -f conftest.er1
  14525. cat conftest.err >&5
  14526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14527. (exit $ac_status); } && {
  14528. test -z "$ac_c_werror_flag" ||
  14529. test ! -s conftest.err
  14530. } && test -s conftest.$ac_objext; then
  14531. ac_cv_header_stdbool_h=yes
  14532. else
  14533. $as_echo "$as_me: failed program was:" >&5
  14534. sed 's/^/| /' conftest.$ac_ext >&5
  14535. ac_cv_header_stdbool_h=no
  14536. fi
  14537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14538. fi
  14539. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  14540. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14541. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  14542. $as_echo_n "checking for _Bool... " >&6; }
  14543. if test "${ac_cv_type__Bool+set}" = set; then
  14544. $as_echo_n "(cached) " >&6
  14545. else
  14546. ac_cv_type__Bool=no
  14547. cat >conftest.$ac_ext <<_ACEOF
  14548. /* confdefs.h. */
  14549. _ACEOF
  14550. cat confdefs.h >>conftest.$ac_ext
  14551. cat >>conftest.$ac_ext <<_ACEOF
  14552. /* end confdefs.h. */
  14553. $ac_includes_default
  14554. int
  14555. main ()
  14556. {
  14557. if (sizeof (_Bool))
  14558. return 0;
  14559. ;
  14560. return 0;
  14561. }
  14562. _ACEOF
  14563. rm -f conftest.$ac_objext
  14564. if { (ac_try="$ac_compile"
  14565. case "(($ac_try" in
  14566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14567. *) ac_try_echo=$ac_try;;
  14568. esac
  14569. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14570. $as_echo "$ac_try_echo") >&5
  14571. (eval "$ac_compile") 2>conftest.er1
  14572. ac_status=$?
  14573. grep -v '^ *+' conftest.er1 >conftest.err
  14574. rm -f conftest.er1
  14575. cat conftest.err >&5
  14576. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14577. (exit $ac_status); } && {
  14578. test -z "$ac_c_werror_flag" ||
  14579. test ! -s conftest.err
  14580. } && test -s conftest.$ac_objext; then
  14581. cat >conftest.$ac_ext <<_ACEOF
  14582. /* confdefs.h. */
  14583. _ACEOF
  14584. cat confdefs.h >>conftest.$ac_ext
  14585. cat >>conftest.$ac_ext <<_ACEOF
  14586. /* end confdefs.h. */
  14587. $ac_includes_default
  14588. int
  14589. main ()
  14590. {
  14591. if (sizeof ((_Bool)))
  14592. return 0;
  14593. ;
  14594. return 0;
  14595. }
  14596. _ACEOF
  14597. rm -f conftest.$ac_objext
  14598. if { (ac_try="$ac_compile"
  14599. case "(($ac_try" in
  14600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14601. *) ac_try_echo=$ac_try;;
  14602. esac
  14603. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14604. $as_echo "$ac_try_echo") >&5
  14605. (eval "$ac_compile") 2>conftest.er1
  14606. ac_status=$?
  14607. grep -v '^ *+' conftest.er1 >conftest.err
  14608. rm -f conftest.er1
  14609. cat conftest.err >&5
  14610. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14611. (exit $ac_status); } && {
  14612. test -z "$ac_c_werror_flag" ||
  14613. test ! -s conftest.err
  14614. } && test -s conftest.$ac_objext; then
  14615. :
  14616. else
  14617. $as_echo "$as_me: failed program was:" >&5
  14618. sed 's/^/| /' conftest.$ac_ext >&5
  14619. ac_cv_type__Bool=yes
  14620. fi
  14621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14622. else
  14623. $as_echo "$as_me: failed program was:" >&5
  14624. sed 's/^/| /' conftest.$ac_ext >&5
  14625. fi
  14626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14627. fi
  14628. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  14629. $as_echo "$ac_cv_type__Bool" >&6; }
  14630. if test "x$ac_cv_type__Bool" = x""yes; then
  14631. cat >>confdefs.h <<_ACEOF
  14632. #define HAVE__BOOL 1
  14633. _ACEOF
  14634. fi
  14635. if test $ac_cv_header_stdbool_h = yes; then
  14636. cat >>confdefs.h <<\_ACEOF
  14637. #define HAVE_STDBOOL_H 1
  14638. _ACEOF
  14639. fi
  14640. { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  14641. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  14642. if test "${ac_cv_type_uid_t+set}" = set; then
  14643. $as_echo_n "(cached) " >&6
  14644. else
  14645. cat >conftest.$ac_ext <<_ACEOF
  14646. /* confdefs.h. */
  14647. _ACEOF
  14648. cat confdefs.h >>conftest.$ac_ext
  14649. cat >>conftest.$ac_ext <<_ACEOF
  14650. /* end confdefs.h. */
  14651. #include <sys/types.h>
  14652. _ACEOF
  14653. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14654. $EGREP "uid_t" >/dev/null 2>&1; then
  14655. ac_cv_type_uid_t=yes
  14656. else
  14657. ac_cv_type_uid_t=no
  14658. fi
  14659. rm -f conftest*
  14660. fi
  14661. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  14662. $as_echo "$ac_cv_type_uid_t" >&6; }
  14663. if test $ac_cv_type_uid_t = no; then
  14664. cat >>confdefs.h <<\_ACEOF
  14665. #define uid_t int
  14666. _ACEOF
  14667. cat >>confdefs.h <<\_ACEOF
  14668. #define gid_t int
  14669. _ACEOF
  14670. fi
  14671. { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
  14672. $as_echo_n "checking for pid_t... " >&6; }
  14673. if test "${ac_cv_type_pid_t+set}" = set; then
  14674. $as_echo_n "(cached) " >&6
  14675. else
  14676. ac_cv_type_pid_t=no
  14677. cat >conftest.$ac_ext <<_ACEOF
  14678. /* confdefs.h. */
  14679. _ACEOF
  14680. cat confdefs.h >>conftest.$ac_ext
  14681. cat >>conftest.$ac_ext <<_ACEOF
  14682. /* end confdefs.h. */
  14683. $ac_includes_default
  14684. int
  14685. main ()
  14686. {
  14687. if (sizeof (pid_t))
  14688. return 0;
  14689. ;
  14690. return 0;
  14691. }
  14692. _ACEOF
  14693. rm -f conftest.$ac_objext
  14694. if { (ac_try="$ac_compile"
  14695. case "(($ac_try" in
  14696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14697. *) ac_try_echo=$ac_try;;
  14698. esac
  14699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14700. $as_echo "$ac_try_echo") >&5
  14701. (eval "$ac_compile") 2>conftest.er1
  14702. ac_status=$?
  14703. grep -v '^ *+' conftest.er1 >conftest.err
  14704. rm -f conftest.er1
  14705. cat conftest.err >&5
  14706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14707. (exit $ac_status); } && {
  14708. test -z "$ac_c_werror_flag" ||
  14709. test ! -s conftest.err
  14710. } && test -s conftest.$ac_objext; then
  14711. cat >conftest.$ac_ext <<_ACEOF
  14712. /* confdefs.h. */
  14713. _ACEOF
  14714. cat confdefs.h >>conftest.$ac_ext
  14715. cat >>conftest.$ac_ext <<_ACEOF
  14716. /* end confdefs.h. */
  14717. $ac_includes_default
  14718. int
  14719. main ()
  14720. {
  14721. if (sizeof ((pid_t)))
  14722. return 0;
  14723. ;
  14724. return 0;
  14725. }
  14726. _ACEOF
  14727. rm -f conftest.$ac_objext
  14728. if { (ac_try="$ac_compile"
  14729. case "(($ac_try" in
  14730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14731. *) ac_try_echo=$ac_try;;
  14732. esac
  14733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14734. $as_echo "$ac_try_echo") >&5
  14735. (eval "$ac_compile") 2>conftest.er1
  14736. ac_status=$?
  14737. grep -v '^ *+' conftest.er1 >conftest.err
  14738. rm -f conftest.er1
  14739. cat conftest.err >&5
  14740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14741. (exit $ac_status); } && {
  14742. test -z "$ac_c_werror_flag" ||
  14743. test ! -s conftest.err
  14744. } && test -s conftest.$ac_objext; then
  14745. :
  14746. else
  14747. $as_echo "$as_me: failed program was:" >&5
  14748. sed 's/^/| /' conftest.$ac_ext >&5
  14749. ac_cv_type_pid_t=yes
  14750. fi
  14751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14752. else
  14753. $as_echo "$as_me: failed program was:" >&5
  14754. sed 's/^/| /' conftest.$ac_ext >&5
  14755. fi
  14756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14757. fi
  14758. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  14759. $as_echo "$ac_cv_type_pid_t" >&6; }
  14760. if test "x$ac_cv_type_pid_t" = x""yes; then
  14761. :
  14762. else
  14763. cat >>confdefs.h <<_ACEOF
  14764. #define pid_t int
  14765. _ACEOF
  14766. fi
  14767. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  14768. $as_echo_n "checking for size_t... " >&6; }
  14769. if test "${ac_cv_type_size_t+set}" = set; then
  14770. $as_echo_n "(cached) " >&6
  14771. else
  14772. ac_cv_type_size_t=no
  14773. cat >conftest.$ac_ext <<_ACEOF
  14774. /* confdefs.h. */
  14775. _ACEOF
  14776. cat confdefs.h >>conftest.$ac_ext
  14777. cat >>conftest.$ac_ext <<_ACEOF
  14778. /* end confdefs.h. */
  14779. $ac_includes_default
  14780. int
  14781. main ()
  14782. {
  14783. if (sizeof (size_t))
  14784. return 0;
  14785. ;
  14786. return 0;
  14787. }
  14788. _ACEOF
  14789. rm -f conftest.$ac_objext
  14790. if { (ac_try="$ac_compile"
  14791. case "(($ac_try" in
  14792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14793. *) ac_try_echo=$ac_try;;
  14794. esac
  14795. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14796. $as_echo "$ac_try_echo") >&5
  14797. (eval "$ac_compile") 2>conftest.er1
  14798. ac_status=$?
  14799. grep -v '^ *+' conftest.er1 >conftest.err
  14800. rm -f conftest.er1
  14801. cat conftest.err >&5
  14802. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14803. (exit $ac_status); } && {
  14804. test -z "$ac_c_werror_flag" ||
  14805. test ! -s conftest.err
  14806. } && test -s conftest.$ac_objext; then
  14807. cat >conftest.$ac_ext <<_ACEOF
  14808. /* confdefs.h. */
  14809. _ACEOF
  14810. cat confdefs.h >>conftest.$ac_ext
  14811. cat >>conftest.$ac_ext <<_ACEOF
  14812. /* end confdefs.h. */
  14813. $ac_includes_default
  14814. int
  14815. main ()
  14816. {
  14817. if (sizeof ((size_t)))
  14818. return 0;
  14819. ;
  14820. return 0;
  14821. }
  14822. _ACEOF
  14823. rm -f conftest.$ac_objext
  14824. if { (ac_try="$ac_compile"
  14825. case "(($ac_try" in
  14826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14827. *) ac_try_echo=$ac_try;;
  14828. esac
  14829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14830. $as_echo "$ac_try_echo") >&5
  14831. (eval "$ac_compile") 2>conftest.er1
  14832. ac_status=$?
  14833. grep -v '^ *+' conftest.er1 >conftest.err
  14834. rm -f conftest.er1
  14835. cat conftest.err >&5
  14836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14837. (exit $ac_status); } && {
  14838. test -z "$ac_c_werror_flag" ||
  14839. test ! -s conftest.err
  14840. } && test -s conftest.$ac_objext; then
  14841. :
  14842. else
  14843. $as_echo "$as_me: failed program was:" >&5
  14844. sed 's/^/| /' conftest.$ac_ext >&5
  14845. ac_cv_type_size_t=yes
  14846. fi
  14847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14848. else
  14849. $as_echo "$as_me: failed program was:" >&5
  14850. sed 's/^/| /' conftest.$ac_ext >&5
  14851. fi
  14852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14853. fi
  14854. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  14855. $as_echo "$ac_cv_type_size_t" >&6; }
  14856. if test "x$ac_cv_type_size_t" = x""yes; then
  14857. :
  14858. else
  14859. cat >>confdefs.h <<_ACEOF
  14860. #define size_t unsigned int
  14861. _ACEOF
  14862. fi
  14863. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  14864. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  14865. if test "${ac_cv_header_time+set}" = set; then
  14866. $as_echo_n "(cached) " >&6
  14867. else
  14868. cat >conftest.$ac_ext <<_ACEOF
  14869. /* confdefs.h. */
  14870. _ACEOF
  14871. cat confdefs.h >>conftest.$ac_ext
  14872. cat >>conftest.$ac_ext <<_ACEOF
  14873. /* end confdefs.h. */
  14874. #include <sys/types.h>
  14875. #include <sys/time.h>
  14876. #include <time.h>
  14877. int
  14878. main ()
  14879. {
  14880. if ((struct tm *) 0)
  14881. return 0;
  14882. ;
  14883. return 0;
  14884. }
  14885. _ACEOF
  14886. rm -f conftest.$ac_objext
  14887. if { (ac_try="$ac_compile"
  14888. case "(($ac_try" in
  14889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14890. *) ac_try_echo=$ac_try;;
  14891. esac
  14892. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14893. $as_echo "$ac_try_echo") >&5
  14894. (eval "$ac_compile") 2>conftest.er1
  14895. ac_status=$?
  14896. grep -v '^ *+' conftest.er1 >conftest.err
  14897. rm -f conftest.er1
  14898. cat conftest.err >&5
  14899. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14900. (exit $ac_status); } && {
  14901. test -z "$ac_c_werror_flag" ||
  14902. test ! -s conftest.err
  14903. } && test -s conftest.$ac_objext; then
  14904. ac_cv_header_time=yes
  14905. else
  14906. $as_echo "$as_me: failed program was:" >&5
  14907. sed 's/^/| /' conftest.$ac_ext >&5
  14908. ac_cv_header_time=no
  14909. fi
  14910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14911. fi
  14912. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  14913. $as_echo "$ac_cv_header_time" >&6; }
  14914. if test $ac_cv_header_time = yes; then
  14915. cat >>confdefs.h <<\_ACEOF
  14916. #define TIME_WITH_SYS_TIME 1
  14917. _ACEOF
  14918. fi
  14919. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  14920. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14921. if test "${ac_cv_struct_tm+set}" = set; then
  14922. $as_echo_n "(cached) " >&6
  14923. else
  14924. cat >conftest.$ac_ext <<_ACEOF
  14925. /* confdefs.h. */
  14926. _ACEOF
  14927. cat confdefs.h >>conftest.$ac_ext
  14928. cat >>conftest.$ac_ext <<_ACEOF
  14929. /* end confdefs.h. */
  14930. #include <sys/types.h>
  14931. #include <time.h>
  14932. int
  14933. main ()
  14934. {
  14935. struct tm tm;
  14936. int *p = &tm.tm_sec;
  14937. return !p;
  14938. ;
  14939. return 0;
  14940. }
  14941. _ACEOF
  14942. rm -f conftest.$ac_objext
  14943. if { (ac_try="$ac_compile"
  14944. case "(($ac_try" in
  14945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14946. *) ac_try_echo=$ac_try;;
  14947. esac
  14948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14949. $as_echo "$ac_try_echo") >&5
  14950. (eval "$ac_compile") 2>conftest.er1
  14951. ac_status=$?
  14952. grep -v '^ *+' conftest.er1 >conftest.err
  14953. rm -f conftest.er1
  14954. cat conftest.err >&5
  14955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14956. (exit $ac_status); } && {
  14957. test -z "$ac_c_werror_flag" ||
  14958. test ! -s conftest.err
  14959. } && test -s conftest.$ac_objext; then
  14960. ac_cv_struct_tm=time.h
  14961. else
  14962. $as_echo "$as_me: failed program was:" >&5
  14963. sed 's/^/| /' conftest.$ac_ext >&5
  14964. ac_cv_struct_tm=sys/time.h
  14965. fi
  14966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14967. fi
  14968. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  14969. $as_echo "$ac_cv_struct_tm" >&6; }
  14970. if test $ac_cv_struct_tm = sys/time.h; then
  14971. cat >>confdefs.h <<\_ACEOF
  14972. #define TM_IN_SYS_TIME 1
  14973. _ACEOF
  14974. fi
  14975. # Checks for library functions.
  14976. for ac_header in unistd.h
  14977. do
  14978. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14979. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14980. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14981. $as_echo_n "checking for $ac_header... " >&6; }
  14982. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14983. $as_echo_n "(cached) " >&6
  14984. fi
  14985. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14986. $as_echo "$as_val"'`
  14987. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14988. $as_echo "$ac_res" >&6; }
  14989. else
  14990. # Is the header compilable?
  14991. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14992. $as_echo_n "checking $ac_header usability... " >&6; }
  14993. cat >conftest.$ac_ext <<_ACEOF
  14994. /* confdefs.h. */
  14995. _ACEOF
  14996. cat confdefs.h >>conftest.$ac_ext
  14997. cat >>conftest.$ac_ext <<_ACEOF
  14998. /* end confdefs.h. */
  14999. $ac_includes_default
  15000. #include <$ac_header>
  15001. _ACEOF
  15002. rm -f conftest.$ac_objext
  15003. if { (ac_try="$ac_compile"
  15004. case "(($ac_try" in
  15005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15006. *) ac_try_echo=$ac_try;;
  15007. esac
  15008. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15009. $as_echo "$ac_try_echo") >&5
  15010. (eval "$ac_compile") 2>conftest.er1
  15011. ac_status=$?
  15012. grep -v '^ *+' conftest.er1 >conftest.err
  15013. rm -f conftest.er1
  15014. cat conftest.err >&5
  15015. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15016. (exit $ac_status); } && {
  15017. test -z "$ac_c_werror_flag" ||
  15018. test ! -s conftest.err
  15019. } && test -s conftest.$ac_objext; then
  15020. ac_header_compiler=yes
  15021. else
  15022. $as_echo "$as_me: failed program was:" >&5
  15023. sed 's/^/| /' conftest.$ac_ext >&5
  15024. ac_header_compiler=no
  15025. fi
  15026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15027. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15028. $as_echo "$ac_header_compiler" >&6; }
  15029. # Is the header present?
  15030. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15031. $as_echo_n "checking $ac_header presence... " >&6; }
  15032. cat >conftest.$ac_ext <<_ACEOF
  15033. /* confdefs.h. */
  15034. _ACEOF
  15035. cat confdefs.h >>conftest.$ac_ext
  15036. cat >>conftest.$ac_ext <<_ACEOF
  15037. /* end confdefs.h. */
  15038. #include <$ac_header>
  15039. _ACEOF
  15040. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15041. case "(($ac_try" in
  15042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15043. *) ac_try_echo=$ac_try;;
  15044. esac
  15045. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15046. $as_echo "$ac_try_echo") >&5
  15047. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15048. ac_status=$?
  15049. grep -v '^ *+' conftest.er1 >conftest.err
  15050. rm -f conftest.er1
  15051. cat conftest.err >&5
  15052. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15053. (exit $ac_status); } >/dev/null && {
  15054. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15055. test ! -s conftest.err
  15056. }; then
  15057. ac_header_preproc=yes
  15058. else
  15059. $as_echo "$as_me: failed program was:" >&5
  15060. sed 's/^/| /' conftest.$ac_ext >&5
  15061. ac_header_preproc=no
  15062. fi
  15063. rm -f conftest.err conftest.$ac_ext
  15064. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15065. $as_echo "$ac_header_preproc" >&6; }
  15066. # So? What about this header?
  15067. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15068. yes:no: )
  15069. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15070. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15071. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15072. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15073. ac_header_preproc=yes
  15074. ;;
  15075. no:yes:* )
  15076. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15077. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15078. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15079. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15080. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15081. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15082. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15083. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15084. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15085. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15086. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15087. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15088. ( cat <<\_ASBOX
  15089. ## ------------------------------------------ ##
  15090. ## Report this to http://bugzilla.redhat.com/ ##
  15091. ## ------------------------------------------ ##
  15092. _ASBOX
  15093. ) | sed "s/^/$as_me: WARNING: /" >&2
  15094. ;;
  15095. esac
  15096. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15097. $as_echo_n "checking for $ac_header... " >&6; }
  15098. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15099. $as_echo_n "(cached) " >&6
  15100. else
  15101. eval "$as_ac_Header=\$ac_header_preproc"
  15102. fi
  15103. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15104. $as_echo "$as_val"'`
  15105. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15106. $as_echo "$ac_res" >&6; }
  15107. fi
  15108. as_val=`eval 'as_val=${'$as_ac_Header'}
  15109. $as_echo "$as_val"'`
  15110. if test "x$as_val" = x""yes; then
  15111. cat >>confdefs.h <<_ACEOF
  15112. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15113. _ACEOF
  15114. fi
  15115. done
  15116. { $as_echo "$as_me:$LINENO: checking for working chown" >&5
  15117. $as_echo_n "checking for working chown... " >&6; }
  15118. if test "${ac_cv_func_chown_works+set}" = set; then
  15119. $as_echo_n "(cached) " >&6
  15120. else
  15121. if test "$cross_compiling" = yes; then
  15122. ac_cv_func_chown_works=no
  15123. else
  15124. cat >conftest.$ac_ext <<_ACEOF
  15125. /* confdefs.h. */
  15126. _ACEOF
  15127. cat confdefs.h >>conftest.$ac_ext
  15128. cat >>conftest.$ac_ext <<_ACEOF
  15129. /* end confdefs.h. */
  15130. $ac_includes_default
  15131. #include <fcntl.h>
  15132. int
  15133. main ()
  15134. {
  15135. char *f = "conftest.chown";
  15136. struct stat before, after;
  15137. if (creat (f, 0600) < 0)
  15138. return 1;
  15139. if (stat (f, &before) < 0)
  15140. return 1;
  15141. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  15142. return 1;
  15143. if (stat (f, &after) < 0)
  15144. return 1;
  15145. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  15146. ;
  15147. return 0;
  15148. }
  15149. _ACEOF
  15150. rm -f conftest$ac_exeext
  15151. if { (ac_try="$ac_link"
  15152. case "(($ac_try" in
  15153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15154. *) ac_try_echo=$ac_try;;
  15155. esac
  15156. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15157. $as_echo "$ac_try_echo") >&5
  15158. (eval "$ac_link") 2>&5
  15159. ac_status=$?
  15160. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15161. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15162. { (case "(($ac_try" in
  15163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15164. *) ac_try_echo=$ac_try;;
  15165. esac
  15166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15167. $as_echo "$ac_try_echo") >&5
  15168. (eval "$ac_try") 2>&5
  15169. ac_status=$?
  15170. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15171. (exit $ac_status); }; }; then
  15172. ac_cv_func_chown_works=yes
  15173. else
  15174. $as_echo "$as_me: program exited with status $ac_status" >&5
  15175. $as_echo "$as_me: failed program was:" >&5
  15176. sed 's/^/| /' conftest.$ac_ext >&5
  15177. ( exit $ac_status )
  15178. ac_cv_func_chown_works=no
  15179. fi
  15180. rm -rf conftest.dSYM
  15181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15182. fi
  15183. rm -f conftest.chown
  15184. fi
  15185. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
  15186. $as_echo "$ac_cv_func_chown_works" >&6; }
  15187. if test $ac_cv_func_chown_works = yes; then
  15188. cat >>confdefs.h <<\_ACEOF
  15189. #define HAVE_CHOWN 1
  15190. _ACEOF
  15191. fi
  15192. { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
  15193. $as_echo_n "checking whether closedir returns void... " >&6; }
  15194. if test "${ac_cv_func_closedir_void+set}" = set; then
  15195. $as_echo_n "(cached) " >&6
  15196. else
  15197. if test "$cross_compiling" = yes; then
  15198. ac_cv_func_closedir_void=yes
  15199. else
  15200. cat >conftest.$ac_ext <<_ACEOF
  15201. /* confdefs.h. */
  15202. _ACEOF
  15203. cat confdefs.h >>conftest.$ac_ext
  15204. cat >>conftest.$ac_ext <<_ACEOF
  15205. /* end confdefs.h. */
  15206. $ac_includes_default
  15207. #include <$ac_header_dirent>
  15208. #ifndef __cplusplus
  15209. int closedir ();
  15210. #endif
  15211. int
  15212. main ()
  15213. {
  15214. return closedir (opendir (".")) != 0;
  15215. ;
  15216. return 0;
  15217. }
  15218. _ACEOF
  15219. rm -f conftest$ac_exeext
  15220. if { (ac_try="$ac_link"
  15221. case "(($ac_try" in
  15222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15223. *) ac_try_echo=$ac_try;;
  15224. esac
  15225. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15226. $as_echo "$ac_try_echo") >&5
  15227. (eval "$ac_link") 2>&5
  15228. ac_status=$?
  15229. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15230. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15231. { (case "(($ac_try" in
  15232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15233. *) ac_try_echo=$ac_try;;
  15234. esac
  15235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15236. $as_echo "$ac_try_echo") >&5
  15237. (eval "$ac_try") 2>&5
  15238. ac_status=$?
  15239. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15240. (exit $ac_status); }; }; then
  15241. ac_cv_func_closedir_void=no
  15242. else
  15243. $as_echo "$as_me: program exited with status $ac_status" >&5
  15244. $as_echo "$as_me: failed program was:" >&5
  15245. sed 's/^/| /' conftest.$ac_ext >&5
  15246. ( exit $ac_status )
  15247. ac_cv_func_closedir_void=yes
  15248. fi
  15249. rm -rf conftest.dSYM
  15250. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15251. fi
  15252. fi
  15253. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
  15254. $as_echo "$ac_cv_func_closedir_void" >&6; }
  15255. if test $ac_cv_func_closedir_void = yes; then
  15256. cat >>confdefs.h <<\_ACEOF
  15257. #define CLOSEDIR_VOID 1
  15258. _ACEOF
  15259. fi
  15260. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  15261. $as_echo_n "checking for error_at_line... " >&6; }
  15262. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15263. $as_echo_n "(cached) " >&6
  15264. else
  15265. cat >conftest.$ac_ext <<_ACEOF
  15266. /* confdefs.h. */
  15267. _ACEOF
  15268. cat confdefs.h >>conftest.$ac_ext
  15269. cat >>conftest.$ac_ext <<_ACEOF
  15270. /* end confdefs.h. */
  15271. #include <error.h>
  15272. int
  15273. main ()
  15274. {
  15275. error_at_line (0, 0, "", 0, "an error occurred");
  15276. ;
  15277. return 0;
  15278. }
  15279. _ACEOF
  15280. rm -f conftest.$ac_objext conftest$ac_exeext
  15281. if { (ac_try="$ac_link"
  15282. case "(($ac_try" in
  15283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15284. *) ac_try_echo=$ac_try;;
  15285. esac
  15286. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15287. $as_echo "$ac_try_echo") >&5
  15288. (eval "$ac_link") 2>conftest.er1
  15289. ac_status=$?
  15290. grep -v '^ *+' conftest.er1 >conftest.err
  15291. rm -f conftest.er1
  15292. cat conftest.err >&5
  15293. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15294. (exit $ac_status); } && {
  15295. test -z "$ac_c_werror_flag" ||
  15296. test ! -s conftest.err
  15297. } && test -s conftest$ac_exeext && {
  15298. test "$cross_compiling" = yes ||
  15299. $as_test_x conftest$ac_exeext
  15300. }; then
  15301. ac_cv_lib_error_at_line=yes
  15302. else
  15303. $as_echo "$as_me: failed program was:" >&5
  15304. sed 's/^/| /' conftest.$ac_ext >&5
  15305. ac_cv_lib_error_at_line=no
  15306. fi
  15307. rm -rf conftest.dSYM
  15308. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15309. conftest$ac_exeext conftest.$ac_ext
  15310. fi
  15311. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15312. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  15313. if test $ac_cv_lib_error_at_line = no; then
  15314. case " $LIBOBJS " in
  15315. *" error.$ac_objext "* ) ;;
  15316. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15317. ;;
  15318. esac
  15319. fi
  15320. for ac_header in vfork.h
  15321. do
  15322. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15323. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15324. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15325. $as_echo_n "checking for $ac_header... " >&6; }
  15326. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15327. $as_echo_n "(cached) " >&6
  15328. fi
  15329. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15330. $as_echo "$as_val"'`
  15331. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15332. $as_echo "$ac_res" >&6; }
  15333. else
  15334. # Is the header compilable?
  15335. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15336. $as_echo_n "checking $ac_header usability... " >&6; }
  15337. cat >conftest.$ac_ext <<_ACEOF
  15338. /* confdefs.h. */
  15339. _ACEOF
  15340. cat confdefs.h >>conftest.$ac_ext
  15341. cat >>conftest.$ac_ext <<_ACEOF
  15342. /* end confdefs.h. */
  15343. $ac_includes_default
  15344. #include <$ac_header>
  15345. _ACEOF
  15346. rm -f conftest.$ac_objext
  15347. if { (ac_try="$ac_compile"
  15348. case "(($ac_try" in
  15349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15350. *) ac_try_echo=$ac_try;;
  15351. esac
  15352. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15353. $as_echo "$ac_try_echo") >&5
  15354. (eval "$ac_compile") 2>conftest.er1
  15355. ac_status=$?
  15356. grep -v '^ *+' conftest.er1 >conftest.err
  15357. rm -f conftest.er1
  15358. cat conftest.err >&5
  15359. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15360. (exit $ac_status); } && {
  15361. test -z "$ac_c_werror_flag" ||
  15362. test ! -s conftest.err
  15363. } && test -s conftest.$ac_objext; then
  15364. ac_header_compiler=yes
  15365. else
  15366. $as_echo "$as_me: failed program was:" >&5
  15367. sed 's/^/| /' conftest.$ac_ext >&5
  15368. ac_header_compiler=no
  15369. fi
  15370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15371. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15372. $as_echo "$ac_header_compiler" >&6; }
  15373. # Is the header present?
  15374. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15375. $as_echo_n "checking $ac_header presence... " >&6; }
  15376. cat >conftest.$ac_ext <<_ACEOF
  15377. /* confdefs.h. */
  15378. _ACEOF
  15379. cat confdefs.h >>conftest.$ac_ext
  15380. cat >>conftest.$ac_ext <<_ACEOF
  15381. /* end confdefs.h. */
  15382. #include <$ac_header>
  15383. _ACEOF
  15384. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15385. case "(($ac_try" in
  15386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15387. *) ac_try_echo=$ac_try;;
  15388. esac
  15389. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15390. $as_echo "$ac_try_echo") >&5
  15391. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15392. ac_status=$?
  15393. grep -v '^ *+' conftest.er1 >conftest.err
  15394. rm -f conftest.er1
  15395. cat conftest.err >&5
  15396. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15397. (exit $ac_status); } >/dev/null && {
  15398. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15399. test ! -s conftest.err
  15400. }; then
  15401. ac_header_preproc=yes
  15402. else
  15403. $as_echo "$as_me: failed program was:" >&5
  15404. sed 's/^/| /' conftest.$ac_ext >&5
  15405. ac_header_preproc=no
  15406. fi
  15407. rm -f conftest.err conftest.$ac_ext
  15408. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15409. $as_echo "$ac_header_preproc" >&6; }
  15410. # So? What about this header?
  15411. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15412. yes:no: )
  15413. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15414. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15415. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15416. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15417. ac_header_preproc=yes
  15418. ;;
  15419. no:yes:* )
  15420. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15421. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15422. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15423. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15424. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15425. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15426. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15427. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15428. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15429. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15430. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15431. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15432. ( cat <<\_ASBOX
  15433. ## ------------------------------------------ ##
  15434. ## Report this to http://bugzilla.redhat.com/ ##
  15435. ## ------------------------------------------ ##
  15436. _ASBOX
  15437. ) | sed "s/^/$as_me: WARNING: /" >&2
  15438. ;;
  15439. esac
  15440. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15441. $as_echo_n "checking for $ac_header... " >&6; }
  15442. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15443. $as_echo_n "(cached) " >&6
  15444. else
  15445. eval "$as_ac_Header=\$ac_header_preproc"
  15446. fi
  15447. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15448. $as_echo "$as_val"'`
  15449. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15450. $as_echo "$ac_res" >&6; }
  15451. fi
  15452. as_val=`eval 'as_val=${'$as_ac_Header'}
  15453. $as_echo "$as_val"'`
  15454. if test "x$as_val" = x""yes; then
  15455. cat >>confdefs.h <<_ACEOF
  15456. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15457. _ACEOF
  15458. fi
  15459. done
  15460. for ac_func in fork vfork
  15461. do
  15462. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15463. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15464. $as_echo_n "checking for $ac_func... " >&6; }
  15465. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15466. $as_echo_n "(cached) " >&6
  15467. else
  15468. cat >conftest.$ac_ext <<_ACEOF
  15469. /* confdefs.h. */
  15470. _ACEOF
  15471. cat confdefs.h >>conftest.$ac_ext
  15472. cat >>conftest.$ac_ext <<_ACEOF
  15473. /* end confdefs.h. */
  15474. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15475. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15476. #define $ac_func innocuous_$ac_func
  15477. /* System header to define __stub macros and hopefully few prototypes,
  15478. which can conflict with char $ac_func (); below.
  15479. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15480. <limits.h> exists even on freestanding compilers. */
  15481. #ifdef __STDC__
  15482. # include <limits.h>
  15483. #else
  15484. # include <assert.h>
  15485. #endif
  15486. #undef $ac_func
  15487. /* Override any GCC internal prototype to avoid an error.
  15488. Use char because int might match the return type of a GCC
  15489. builtin and then its argument prototype would still apply. */
  15490. #ifdef __cplusplus
  15491. extern "C"
  15492. #endif
  15493. char $ac_func ();
  15494. /* The GNU C library defines this for functions which it implements
  15495. to always fail with ENOSYS. Some functions are actually named
  15496. something starting with __ and the normal name is an alias. */
  15497. #if defined __stub_$ac_func || defined __stub___$ac_func
  15498. choke me
  15499. #endif
  15500. int
  15501. main ()
  15502. {
  15503. return $ac_func ();
  15504. ;
  15505. return 0;
  15506. }
  15507. _ACEOF
  15508. rm -f conftest.$ac_objext conftest$ac_exeext
  15509. if { (ac_try="$ac_link"
  15510. case "(($ac_try" in
  15511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15512. *) ac_try_echo=$ac_try;;
  15513. esac
  15514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15515. $as_echo "$ac_try_echo") >&5
  15516. (eval "$ac_link") 2>conftest.er1
  15517. ac_status=$?
  15518. grep -v '^ *+' conftest.er1 >conftest.err
  15519. rm -f conftest.er1
  15520. cat conftest.err >&5
  15521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15522. (exit $ac_status); } && {
  15523. test -z "$ac_c_werror_flag" ||
  15524. test ! -s conftest.err
  15525. } && test -s conftest$ac_exeext && {
  15526. test "$cross_compiling" = yes ||
  15527. $as_test_x conftest$ac_exeext
  15528. }; then
  15529. eval "$as_ac_var=yes"
  15530. else
  15531. $as_echo "$as_me: failed program was:" >&5
  15532. sed 's/^/| /' conftest.$ac_ext >&5
  15533. eval "$as_ac_var=no"
  15534. fi
  15535. rm -rf conftest.dSYM
  15536. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15537. conftest$ac_exeext conftest.$ac_ext
  15538. fi
  15539. ac_res=`eval 'as_val=${'$as_ac_var'}
  15540. $as_echo "$as_val"'`
  15541. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15542. $as_echo "$ac_res" >&6; }
  15543. as_val=`eval 'as_val=${'$as_ac_var'}
  15544. $as_echo "$as_val"'`
  15545. if test "x$as_val" = x""yes; then
  15546. cat >>confdefs.h <<_ACEOF
  15547. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15548. _ACEOF
  15549. fi
  15550. done
  15551. if test "x$ac_cv_func_fork" = xyes; then
  15552. { $as_echo "$as_me:$LINENO: checking for working fork" >&5
  15553. $as_echo_n "checking for working fork... " >&6; }
  15554. if test "${ac_cv_func_fork_works+set}" = set; then
  15555. $as_echo_n "(cached) " >&6
  15556. else
  15557. if test "$cross_compiling" = yes; then
  15558. ac_cv_func_fork_works=cross
  15559. else
  15560. cat >conftest.$ac_ext <<_ACEOF
  15561. /* confdefs.h. */
  15562. _ACEOF
  15563. cat confdefs.h >>conftest.$ac_ext
  15564. cat >>conftest.$ac_ext <<_ACEOF
  15565. /* end confdefs.h. */
  15566. $ac_includes_default
  15567. int
  15568. main ()
  15569. {
  15570. /* By Ruediger Kuhlmann. */
  15571. return fork () < 0;
  15572. ;
  15573. return 0;
  15574. }
  15575. _ACEOF
  15576. rm -f conftest$ac_exeext
  15577. if { (ac_try="$ac_link"
  15578. case "(($ac_try" in
  15579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15580. *) ac_try_echo=$ac_try;;
  15581. esac
  15582. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15583. $as_echo "$ac_try_echo") >&5
  15584. (eval "$ac_link") 2>&5
  15585. ac_status=$?
  15586. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15587. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15588. { (case "(($ac_try" in
  15589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15590. *) ac_try_echo=$ac_try;;
  15591. esac
  15592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15593. $as_echo "$ac_try_echo") >&5
  15594. (eval "$ac_try") 2>&5
  15595. ac_status=$?
  15596. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15597. (exit $ac_status); }; }; then
  15598. ac_cv_func_fork_works=yes
  15599. else
  15600. $as_echo "$as_me: program exited with status $ac_status" >&5
  15601. $as_echo "$as_me: failed program was:" >&5
  15602. sed 's/^/| /' conftest.$ac_ext >&5
  15603. ( exit $ac_status )
  15604. ac_cv_func_fork_works=no
  15605. fi
  15606. rm -rf conftest.dSYM
  15607. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15608. fi
  15609. fi
  15610. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  15611. $as_echo "$ac_cv_func_fork_works" >&6; }
  15612. else
  15613. ac_cv_func_fork_works=$ac_cv_func_fork
  15614. fi
  15615. if test "x$ac_cv_func_fork_works" = xcross; then
  15616. case $host in
  15617. *-*-amigaos* | *-*-msdosdjgpp*)
  15618. # Override, as these systems have only a dummy fork() stub
  15619. ac_cv_func_fork_works=no
  15620. ;;
  15621. *)
  15622. ac_cv_func_fork_works=yes
  15623. ;;
  15624. esac
  15625. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  15626. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  15627. fi
  15628. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15629. if test "x$ac_cv_func_vfork" = xyes; then
  15630. { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
  15631. $as_echo_n "checking for working vfork... " >&6; }
  15632. if test "${ac_cv_func_vfork_works+set}" = set; then
  15633. $as_echo_n "(cached) " >&6
  15634. else
  15635. if test "$cross_compiling" = yes; then
  15636. ac_cv_func_vfork_works=cross
  15637. else
  15638. cat >conftest.$ac_ext <<_ACEOF
  15639. /* confdefs.h. */
  15640. _ACEOF
  15641. cat confdefs.h >>conftest.$ac_ext
  15642. cat >>conftest.$ac_ext <<_ACEOF
  15643. /* end confdefs.h. */
  15644. /* Thanks to Paul Eggert for this test. */
  15645. $ac_includes_default
  15646. #include <sys/wait.h>
  15647. #ifdef HAVE_VFORK_H
  15648. # include <vfork.h>
  15649. #endif
  15650. /* On some sparc systems, changes by the child to local and incoming
  15651. argument registers are propagated back to the parent. The compiler
  15652. is told about this with #include <vfork.h>, but some compilers
  15653. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  15654. static variable whose address is put into a register that is
  15655. clobbered by the vfork. */
  15656. static void
  15657. #ifdef __cplusplus
  15658. sparc_address_test (int arg)
  15659. # else
  15660. sparc_address_test (arg) int arg;
  15661. #endif
  15662. {
  15663. static pid_t child;
  15664. if (!child) {
  15665. child = vfork ();
  15666. if (child < 0) {
  15667. perror ("vfork");
  15668. _exit(2);
  15669. }
  15670. if (!child) {
  15671. arg = getpid();
  15672. write(-1, "", 0);
  15673. _exit (arg);
  15674. }
  15675. }
  15676. }
  15677. int
  15678. main ()
  15679. {
  15680. pid_t parent = getpid ();
  15681. pid_t child;
  15682. sparc_address_test (0);
  15683. child = vfork ();
  15684. if (child == 0) {
  15685. /* Here is another test for sparc vfork register problems. This
  15686. test uses lots of local variables, at least as many local
  15687. variables as main has allocated so far including compiler
  15688. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  15689. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  15690. reuse the register of parent for one of the local variables,
  15691. since it will think that parent can't possibly be used any more
  15692. in this routine. Assigning to the local variable will thus
  15693. munge parent in the parent process. */
  15694. pid_t
  15695. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  15696. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  15697. /* Convince the compiler that p..p7 are live; otherwise, it might
  15698. use the same hardware register for all 8 local variables. */
  15699. if (p != p1 || p != p2 || p != p3 || p != p4
  15700. || p != p5 || p != p6 || p != p7)
  15701. _exit(1);
  15702. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  15703. from child file descriptors. If the child closes a descriptor
  15704. before it execs or exits, this munges the parent's descriptor
  15705. as well. Test for this by closing stdout in the child. */
  15706. _exit(close(fileno(stdout)) != 0);
  15707. } else {
  15708. int status;
  15709. struct stat st;
  15710. while (wait(&status) != child)
  15711. ;
  15712. return (
  15713. /* Was there some problem with vforking? */
  15714. child < 0
  15715. /* Did the child fail? (This shouldn't happen.) */
  15716. || status
  15717. /* Did the vfork/compiler bug occur? */
  15718. || parent != getpid()
  15719. /* Did the file descriptor bug occur? */
  15720. || fstat(fileno(stdout), &st) != 0
  15721. );
  15722. }
  15723. }
  15724. _ACEOF
  15725. rm -f conftest$ac_exeext
  15726. if { (ac_try="$ac_link"
  15727. case "(($ac_try" in
  15728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15729. *) ac_try_echo=$ac_try;;
  15730. esac
  15731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15732. $as_echo "$ac_try_echo") >&5
  15733. (eval "$ac_link") 2>&5
  15734. ac_status=$?
  15735. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15736. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15737. { (case "(($ac_try" in
  15738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15739. *) ac_try_echo=$ac_try;;
  15740. esac
  15741. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15742. $as_echo "$ac_try_echo") >&5
  15743. (eval "$ac_try") 2>&5
  15744. ac_status=$?
  15745. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15746. (exit $ac_status); }; }; then
  15747. ac_cv_func_vfork_works=yes
  15748. else
  15749. $as_echo "$as_me: program exited with status $ac_status" >&5
  15750. $as_echo "$as_me: failed program was:" >&5
  15751. sed 's/^/| /' conftest.$ac_ext >&5
  15752. ( exit $ac_status )
  15753. ac_cv_func_vfork_works=no
  15754. fi
  15755. rm -rf conftest.dSYM
  15756. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15757. fi
  15758. fi
  15759. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  15760. $as_echo "$ac_cv_func_vfork_works" >&6; }
  15761. fi;
  15762. if test "x$ac_cv_func_fork_works" = xcross; then
  15763. ac_cv_func_vfork_works=$ac_cv_func_vfork
  15764. { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  15765. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  15766. fi
  15767. if test "x$ac_cv_func_vfork_works" = xyes; then
  15768. cat >>confdefs.h <<\_ACEOF
  15769. #define HAVE_WORKING_VFORK 1
  15770. _ACEOF
  15771. else
  15772. cat >>confdefs.h <<\_ACEOF
  15773. #define vfork fork
  15774. _ACEOF
  15775. fi
  15776. if test "x$ac_cv_func_fork_works" = xyes; then
  15777. cat >>confdefs.h <<\_ACEOF
  15778. #define HAVE_WORKING_FORK 1
  15779. _ACEOF
  15780. fi
  15781. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15782. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15783. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15784. $as_echo_n "(cached) " >&6
  15785. else
  15786. rm -f conftest.sym conftest.file
  15787. echo >conftest.file
  15788. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15789. if test "$cross_compiling" = yes; then
  15790. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15791. else
  15792. cat >conftest.$ac_ext <<_ACEOF
  15793. /* confdefs.h. */
  15794. _ACEOF
  15795. cat confdefs.h >>conftest.$ac_ext
  15796. cat >>conftest.$ac_ext <<_ACEOF
  15797. /* end confdefs.h. */
  15798. $ac_includes_default
  15799. int
  15800. main ()
  15801. {
  15802. struct stat sbuf;
  15803. /* Linux will dereference the symlink and fail.
  15804. That is better in the sense that it means we will not
  15805. have to compile and use the lstat wrapper. */
  15806. return lstat ("conftest.sym/", &sbuf) == 0;
  15807. ;
  15808. return 0;
  15809. }
  15810. _ACEOF
  15811. rm -f conftest$ac_exeext
  15812. if { (ac_try="$ac_link"
  15813. case "(($ac_try" in
  15814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15815. *) ac_try_echo=$ac_try;;
  15816. esac
  15817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15818. $as_echo "$ac_try_echo") >&5
  15819. (eval "$ac_link") 2>&5
  15820. ac_status=$?
  15821. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15822. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15823. { (case "(($ac_try" in
  15824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15825. *) ac_try_echo=$ac_try;;
  15826. esac
  15827. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15828. $as_echo "$ac_try_echo") >&5
  15829. (eval "$ac_try") 2>&5
  15830. ac_status=$?
  15831. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15832. (exit $ac_status); }; }; then
  15833. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15834. else
  15835. $as_echo "$as_me: program exited with status $ac_status" >&5
  15836. $as_echo "$as_me: failed program was:" >&5
  15837. sed 's/^/| /' conftest.$ac_ext >&5
  15838. ( exit $ac_status )
  15839. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15840. fi
  15841. rm -rf conftest.dSYM
  15842. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15843. fi
  15844. else
  15845. # If the `ln -s' command failed, then we probably don't even
  15846. # have an lstat function.
  15847. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15848. fi
  15849. rm -f conftest.sym conftest.file
  15850. fi
  15851. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15852. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15853. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15854. cat >>confdefs.h <<_ACEOF
  15855. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15856. _ACEOF
  15857. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15858. case " $LIBOBJS " in
  15859. *" lstat.$ac_objext "* ) ;;
  15860. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15861. ;;
  15862. esac
  15863. fi
  15864. { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  15865. $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
  15866. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  15867. $as_echo_n "(cached) " >&6
  15868. else
  15869. if test "$cross_compiling" = yes; then
  15870. ac_cv_func_lstat_empty_string_bug=yes
  15871. else
  15872. cat >conftest.$ac_ext <<_ACEOF
  15873. /* confdefs.h. */
  15874. _ACEOF
  15875. cat confdefs.h >>conftest.$ac_ext
  15876. cat >>conftest.$ac_ext <<_ACEOF
  15877. /* end confdefs.h. */
  15878. $ac_includes_default
  15879. int
  15880. main ()
  15881. {
  15882. struct stat sbuf;
  15883. return lstat ("", &sbuf) == 0;
  15884. ;
  15885. return 0;
  15886. }
  15887. _ACEOF
  15888. rm -f conftest$ac_exeext
  15889. if { (ac_try="$ac_link"
  15890. case "(($ac_try" in
  15891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15892. *) ac_try_echo=$ac_try;;
  15893. esac
  15894. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15895. $as_echo "$ac_try_echo") >&5
  15896. (eval "$ac_link") 2>&5
  15897. ac_status=$?
  15898. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15899. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15900. { (case "(($ac_try" in
  15901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15902. *) ac_try_echo=$ac_try;;
  15903. esac
  15904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15905. $as_echo "$ac_try_echo") >&5
  15906. (eval "$ac_try") 2>&5
  15907. ac_status=$?
  15908. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15909. (exit $ac_status); }; }; then
  15910. ac_cv_func_lstat_empty_string_bug=no
  15911. else
  15912. $as_echo "$as_me: program exited with status $ac_status" >&5
  15913. $as_echo "$as_me: failed program was:" >&5
  15914. sed 's/^/| /' conftest.$ac_ext >&5
  15915. ( exit $ac_status )
  15916. ac_cv_func_lstat_empty_string_bug=yes
  15917. fi
  15918. rm -rf conftest.dSYM
  15919. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15920. fi
  15921. fi
  15922. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  15923. $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
  15924. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  15925. case " $LIBOBJS " in
  15926. *" lstat.$ac_objext "* ) ;;
  15927. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15928. ;;
  15929. esac
  15930. cat >>confdefs.h <<_ACEOF
  15931. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  15932. _ACEOF
  15933. fi
  15934. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15935. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  15936. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15937. $as_echo_n "(cached) " >&6
  15938. else
  15939. rm -f conftest.sym conftest.file
  15940. echo >conftest.file
  15941. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15942. if test "$cross_compiling" = yes; then
  15943. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15944. else
  15945. cat >conftest.$ac_ext <<_ACEOF
  15946. /* confdefs.h. */
  15947. _ACEOF
  15948. cat confdefs.h >>conftest.$ac_ext
  15949. cat >>conftest.$ac_ext <<_ACEOF
  15950. /* end confdefs.h. */
  15951. $ac_includes_default
  15952. int
  15953. main ()
  15954. {
  15955. struct stat sbuf;
  15956. /* Linux will dereference the symlink and fail.
  15957. That is better in the sense that it means we will not
  15958. have to compile and use the lstat wrapper. */
  15959. return lstat ("conftest.sym/", &sbuf) == 0;
  15960. ;
  15961. return 0;
  15962. }
  15963. _ACEOF
  15964. rm -f conftest$ac_exeext
  15965. if { (ac_try="$ac_link"
  15966. case "(($ac_try" in
  15967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15968. *) ac_try_echo=$ac_try;;
  15969. esac
  15970. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15971. $as_echo "$ac_try_echo") >&5
  15972. (eval "$ac_link") 2>&5
  15973. ac_status=$?
  15974. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15975. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15976. { (case "(($ac_try" in
  15977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15978. *) ac_try_echo=$ac_try;;
  15979. esac
  15980. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15981. $as_echo "$ac_try_echo") >&5
  15982. (eval "$ac_try") 2>&5
  15983. ac_status=$?
  15984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15985. (exit $ac_status); }; }; then
  15986. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15987. else
  15988. $as_echo "$as_me: program exited with status $ac_status" >&5
  15989. $as_echo "$as_me: failed program was:" >&5
  15990. sed 's/^/| /' conftest.$ac_ext >&5
  15991. ( exit $ac_status )
  15992. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15993. fi
  15994. rm -rf conftest.dSYM
  15995. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15996. fi
  15997. else
  15998. # If the `ln -s' command failed, then we probably don't even
  15999. # have an lstat function.
  16000. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16001. fi
  16002. rm -f conftest.sym conftest.file
  16003. fi
  16004. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  16005. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  16006. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  16007. cat >>confdefs.h <<_ACEOF
  16008. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  16009. _ACEOF
  16010. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  16011. case " $LIBOBJS " in
  16012. *" lstat.$ac_objext "* ) ;;
  16013. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  16014. ;;
  16015. esac
  16016. fi
  16017. for ac_header in stdlib.h
  16018. do
  16019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16020. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16021. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16022. $as_echo_n "checking for $ac_header... " >&6; }
  16023. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16024. $as_echo_n "(cached) " >&6
  16025. fi
  16026. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16027. $as_echo "$as_val"'`
  16028. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16029. $as_echo "$ac_res" >&6; }
  16030. else
  16031. # Is the header compilable?
  16032. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16033. $as_echo_n "checking $ac_header usability... " >&6; }
  16034. cat >conftest.$ac_ext <<_ACEOF
  16035. /* confdefs.h. */
  16036. _ACEOF
  16037. cat confdefs.h >>conftest.$ac_ext
  16038. cat >>conftest.$ac_ext <<_ACEOF
  16039. /* end confdefs.h. */
  16040. $ac_includes_default
  16041. #include <$ac_header>
  16042. _ACEOF
  16043. rm -f conftest.$ac_objext
  16044. if { (ac_try="$ac_compile"
  16045. case "(($ac_try" in
  16046. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16047. *) ac_try_echo=$ac_try;;
  16048. esac
  16049. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16050. $as_echo "$ac_try_echo") >&5
  16051. (eval "$ac_compile") 2>conftest.er1
  16052. ac_status=$?
  16053. grep -v '^ *+' conftest.er1 >conftest.err
  16054. rm -f conftest.er1
  16055. cat conftest.err >&5
  16056. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16057. (exit $ac_status); } && {
  16058. test -z "$ac_c_werror_flag" ||
  16059. test ! -s conftest.err
  16060. } && test -s conftest.$ac_objext; then
  16061. ac_header_compiler=yes
  16062. else
  16063. $as_echo "$as_me: failed program was:" >&5
  16064. sed 's/^/| /' conftest.$ac_ext >&5
  16065. ac_header_compiler=no
  16066. fi
  16067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16068. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16069. $as_echo "$ac_header_compiler" >&6; }
  16070. # Is the header present?
  16071. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16072. $as_echo_n "checking $ac_header presence... " >&6; }
  16073. cat >conftest.$ac_ext <<_ACEOF
  16074. /* confdefs.h. */
  16075. _ACEOF
  16076. cat confdefs.h >>conftest.$ac_ext
  16077. cat >>conftest.$ac_ext <<_ACEOF
  16078. /* end confdefs.h. */
  16079. #include <$ac_header>
  16080. _ACEOF
  16081. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16082. case "(($ac_try" in
  16083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16084. *) ac_try_echo=$ac_try;;
  16085. esac
  16086. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16087. $as_echo "$ac_try_echo") >&5
  16088. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16089. ac_status=$?
  16090. grep -v '^ *+' conftest.er1 >conftest.err
  16091. rm -f conftest.er1
  16092. cat conftest.err >&5
  16093. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16094. (exit $ac_status); } >/dev/null && {
  16095. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16096. test ! -s conftest.err
  16097. }; then
  16098. ac_header_preproc=yes
  16099. else
  16100. $as_echo "$as_me: failed program was:" >&5
  16101. sed 's/^/| /' conftest.$ac_ext >&5
  16102. ac_header_preproc=no
  16103. fi
  16104. rm -f conftest.err conftest.$ac_ext
  16105. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16106. $as_echo "$ac_header_preproc" >&6; }
  16107. # So? What about this header?
  16108. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16109. yes:no: )
  16110. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16111. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16112. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16113. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16114. ac_header_preproc=yes
  16115. ;;
  16116. no:yes:* )
  16117. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16118. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16119. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16120. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16121. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16122. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16123. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16124. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16125. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16126. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16127. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16128. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16129. ( cat <<\_ASBOX
  16130. ## ------------------------------------------ ##
  16131. ## Report this to http://bugzilla.redhat.com/ ##
  16132. ## ------------------------------------------ ##
  16133. _ASBOX
  16134. ) | sed "s/^/$as_me: WARNING: /" >&2
  16135. ;;
  16136. esac
  16137. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16138. $as_echo_n "checking for $ac_header... " >&6; }
  16139. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16140. $as_echo_n "(cached) " >&6
  16141. else
  16142. eval "$as_ac_Header=\$ac_header_preproc"
  16143. fi
  16144. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16145. $as_echo "$as_val"'`
  16146. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16147. $as_echo "$ac_res" >&6; }
  16148. fi
  16149. as_val=`eval 'as_val=${'$as_ac_Header'}
  16150. $as_echo "$as_val"'`
  16151. if test "x$as_val" = x""yes; then
  16152. cat >>confdefs.h <<_ACEOF
  16153. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16154. _ACEOF
  16155. fi
  16156. done
  16157. { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16158. $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  16159. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16160. $as_echo_n "(cached) " >&6
  16161. else
  16162. if test "$cross_compiling" = yes; then
  16163. ac_cv_func_malloc_0_nonnull=no
  16164. else
  16165. cat >conftest.$ac_ext <<_ACEOF
  16166. /* confdefs.h. */
  16167. _ACEOF
  16168. cat confdefs.h >>conftest.$ac_ext
  16169. cat >>conftest.$ac_ext <<_ACEOF
  16170. /* end confdefs.h. */
  16171. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16172. # include <stdlib.h>
  16173. #else
  16174. char *malloc ();
  16175. #endif
  16176. int
  16177. main ()
  16178. {
  16179. return ! malloc (0);
  16180. ;
  16181. return 0;
  16182. }
  16183. _ACEOF
  16184. rm -f conftest$ac_exeext
  16185. if { (ac_try="$ac_link"
  16186. case "(($ac_try" in
  16187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16188. *) ac_try_echo=$ac_try;;
  16189. esac
  16190. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16191. $as_echo "$ac_try_echo") >&5
  16192. (eval "$ac_link") 2>&5
  16193. ac_status=$?
  16194. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16195. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16196. { (case "(($ac_try" in
  16197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16198. *) ac_try_echo=$ac_try;;
  16199. esac
  16200. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16201. $as_echo "$ac_try_echo") >&5
  16202. (eval "$ac_try") 2>&5
  16203. ac_status=$?
  16204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16205. (exit $ac_status); }; }; then
  16206. ac_cv_func_malloc_0_nonnull=yes
  16207. else
  16208. $as_echo "$as_me: program exited with status $ac_status" >&5
  16209. $as_echo "$as_me: failed program was:" >&5
  16210. sed 's/^/| /' conftest.$ac_ext >&5
  16211. ( exit $ac_status )
  16212. ac_cv_func_malloc_0_nonnull=no
  16213. fi
  16214. rm -rf conftest.dSYM
  16215. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16216. fi
  16217. fi
  16218. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16219. $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  16220. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16221. cat >>confdefs.h <<\_ACEOF
  16222. #define HAVE_MALLOC 1
  16223. _ACEOF
  16224. else
  16225. cat >>confdefs.h <<\_ACEOF
  16226. #define HAVE_MALLOC 0
  16227. _ACEOF
  16228. case " $LIBOBJS " in
  16229. *" malloc.$ac_objext "* ) ;;
  16230. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16231. ;;
  16232. esac
  16233. cat >>confdefs.h <<\_ACEOF
  16234. #define malloc rpl_malloc
  16235. _ACEOF
  16236. fi
  16237. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  16238. $as_echo_n "checking for working memcmp... " >&6; }
  16239. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16240. $as_echo_n "(cached) " >&6
  16241. else
  16242. if test "$cross_compiling" = yes; then
  16243. ac_cv_func_memcmp_working=no
  16244. else
  16245. cat >conftest.$ac_ext <<_ACEOF
  16246. /* confdefs.h. */
  16247. _ACEOF
  16248. cat confdefs.h >>conftest.$ac_ext
  16249. cat >>conftest.$ac_ext <<_ACEOF
  16250. /* end confdefs.h. */
  16251. $ac_includes_default
  16252. int
  16253. main ()
  16254. {
  16255. /* Some versions of memcmp are not 8-bit clean. */
  16256. char c0 = '\100', c1 = '\200', c2 = '\201';
  16257. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16258. return 1;
  16259. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16260. or more and with at least one buffer not starting on a 4-byte boundary.
  16261. William Lewis provided this test program. */
  16262. {
  16263. char foo[21];
  16264. char bar[21];
  16265. int i;
  16266. for (i = 0; i < 4; i++)
  16267. {
  16268. char *a = foo + i;
  16269. char *b = bar + i;
  16270. strcpy (a, "--------01111111");
  16271. strcpy (b, "--------10000000");
  16272. if (memcmp (a, b, 16) >= 0)
  16273. return 1;
  16274. }
  16275. return 0;
  16276. }
  16277. ;
  16278. return 0;
  16279. }
  16280. _ACEOF
  16281. rm -f conftest$ac_exeext
  16282. if { (ac_try="$ac_link"
  16283. case "(($ac_try" in
  16284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16285. *) ac_try_echo=$ac_try;;
  16286. esac
  16287. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16288. $as_echo "$ac_try_echo") >&5
  16289. (eval "$ac_link") 2>&5
  16290. ac_status=$?
  16291. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16292. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16293. { (case "(($ac_try" in
  16294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16295. *) ac_try_echo=$ac_try;;
  16296. esac
  16297. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16298. $as_echo "$ac_try_echo") >&5
  16299. (eval "$ac_try") 2>&5
  16300. ac_status=$?
  16301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16302. (exit $ac_status); }; }; then
  16303. ac_cv_func_memcmp_working=yes
  16304. else
  16305. $as_echo "$as_me: program exited with status $ac_status" >&5
  16306. $as_echo "$as_me: failed program was:" >&5
  16307. sed 's/^/| /' conftest.$ac_ext >&5
  16308. ( exit $ac_status )
  16309. ac_cv_func_memcmp_working=no
  16310. fi
  16311. rm -rf conftest.dSYM
  16312. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16313. fi
  16314. fi
  16315. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16316. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16317. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16318. *" memcmp.$ac_objext "* ) ;;
  16319. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16320. ;;
  16321. esac
  16322. for ac_header in stdlib.h unistd.h
  16323. do
  16324. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16325. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16326. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16327. $as_echo_n "checking for $ac_header... " >&6; }
  16328. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16329. $as_echo_n "(cached) " >&6
  16330. fi
  16331. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16332. $as_echo "$as_val"'`
  16333. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16334. $as_echo "$ac_res" >&6; }
  16335. else
  16336. # Is the header compilable?
  16337. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16338. $as_echo_n "checking $ac_header usability... " >&6; }
  16339. cat >conftest.$ac_ext <<_ACEOF
  16340. /* confdefs.h. */
  16341. _ACEOF
  16342. cat confdefs.h >>conftest.$ac_ext
  16343. cat >>conftest.$ac_ext <<_ACEOF
  16344. /* end confdefs.h. */
  16345. $ac_includes_default
  16346. #include <$ac_header>
  16347. _ACEOF
  16348. rm -f conftest.$ac_objext
  16349. if { (ac_try="$ac_compile"
  16350. case "(($ac_try" in
  16351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16352. *) ac_try_echo=$ac_try;;
  16353. esac
  16354. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16355. $as_echo "$ac_try_echo") >&5
  16356. (eval "$ac_compile") 2>conftest.er1
  16357. ac_status=$?
  16358. grep -v '^ *+' conftest.er1 >conftest.err
  16359. rm -f conftest.er1
  16360. cat conftest.err >&5
  16361. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16362. (exit $ac_status); } && {
  16363. test -z "$ac_c_werror_flag" ||
  16364. test ! -s conftest.err
  16365. } && test -s conftest.$ac_objext; then
  16366. ac_header_compiler=yes
  16367. else
  16368. $as_echo "$as_me: failed program was:" >&5
  16369. sed 's/^/| /' conftest.$ac_ext >&5
  16370. ac_header_compiler=no
  16371. fi
  16372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16373. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16374. $as_echo "$ac_header_compiler" >&6; }
  16375. # Is the header present?
  16376. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16377. $as_echo_n "checking $ac_header presence... " >&6; }
  16378. cat >conftest.$ac_ext <<_ACEOF
  16379. /* confdefs.h. */
  16380. _ACEOF
  16381. cat confdefs.h >>conftest.$ac_ext
  16382. cat >>conftest.$ac_ext <<_ACEOF
  16383. /* end confdefs.h. */
  16384. #include <$ac_header>
  16385. _ACEOF
  16386. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16387. case "(($ac_try" in
  16388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16389. *) ac_try_echo=$ac_try;;
  16390. esac
  16391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16392. $as_echo "$ac_try_echo") >&5
  16393. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16394. ac_status=$?
  16395. grep -v '^ *+' conftest.er1 >conftest.err
  16396. rm -f conftest.er1
  16397. cat conftest.err >&5
  16398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16399. (exit $ac_status); } >/dev/null && {
  16400. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16401. test ! -s conftest.err
  16402. }; then
  16403. ac_header_preproc=yes
  16404. else
  16405. $as_echo "$as_me: failed program was:" >&5
  16406. sed 's/^/| /' conftest.$ac_ext >&5
  16407. ac_header_preproc=no
  16408. fi
  16409. rm -f conftest.err conftest.$ac_ext
  16410. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16411. $as_echo "$ac_header_preproc" >&6; }
  16412. # So? What about this header?
  16413. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16414. yes:no: )
  16415. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16416. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16417. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16418. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16419. ac_header_preproc=yes
  16420. ;;
  16421. no:yes:* )
  16422. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16423. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16424. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16425. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16426. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16427. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16428. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16429. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16430. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16431. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16432. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16433. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16434. ( cat <<\_ASBOX
  16435. ## ------------------------------------------ ##
  16436. ## Report this to http://bugzilla.redhat.com/ ##
  16437. ## ------------------------------------------ ##
  16438. _ASBOX
  16439. ) | sed "s/^/$as_me: WARNING: /" >&2
  16440. ;;
  16441. esac
  16442. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16443. $as_echo_n "checking for $ac_header... " >&6; }
  16444. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16445. $as_echo_n "(cached) " >&6
  16446. else
  16447. eval "$as_ac_Header=\$ac_header_preproc"
  16448. fi
  16449. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16450. $as_echo "$as_val"'`
  16451. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16452. $as_echo "$ac_res" >&6; }
  16453. fi
  16454. as_val=`eval 'as_val=${'$as_ac_Header'}
  16455. $as_echo "$as_val"'`
  16456. if test "x$as_val" = x""yes; then
  16457. cat >>confdefs.h <<_ACEOF
  16458. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16459. _ACEOF
  16460. fi
  16461. done
  16462. for ac_func in getpagesize
  16463. do
  16464. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16465. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16466. $as_echo_n "checking for $ac_func... " >&6; }
  16467. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16468. $as_echo_n "(cached) " >&6
  16469. else
  16470. cat >conftest.$ac_ext <<_ACEOF
  16471. /* confdefs.h. */
  16472. _ACEOF
  16473. cat confdefs.h >>conftest.$ac_ext
  16474. cat >>conftest.$ac_ext <<_ACEOF
  16475. /* end confdefs.h. */
  16476. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16477. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16478. #define $ac_func innocuous_$ac_func
  16479. /* System header to define __stub macros and hopefully few prototypes,
  16480. which can conflict with char $ac_func (); below.
  16481. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16482. <limits.h> exists even on freestanding compilers. */
  16483. #ifdef __STDC__
  16484. # include <limits.h>
  16485. #else
  16486. # include <assert.h>
  16487. #endif
  16488. #undef $ac_func
  16489. /* Override any GCC internal prototype to avoid an error.
  16490. Use char because int might match the return type of a GCC
  16491. builtin and then its argument prototype would still apply. */
  16492. #ifdef __cplusplus
  16493. extern "C"
  16494. #endif
  16495. char $ac_func ();
  16496. /* The GNU C library defines this for functions which it implements
  16497. to always fail with ENOSYS. Some functions are actually named
  16498. something starting with __ and the normal name is an alias. */
  16499. #if defined __stub_$ac_func || defined __stub___$ac_func
  16500. choke me
  16501. #endif
  16502. int
  16503. main ()
  16504. {
  16505. return $ac_func ();
  16506. ;
  16507. return 0;
  16508. }
  16509. _ACEOF
  16510. rm -f conftest.$ac_objext conftest$ac_exeext
  16511. if { (ac_try="$ac_link"
  16512. case "(($ac_try" in
  16513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16514. *) ac_try_echo=$ac_try;;
  16515. esac
  16516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16517. $as_echo "$ac_try_echo") >&5
  16518. (eval "$ac_link") 2>conftest.er1
  16519. ac_status=$?
  16520. grep -v '^ *+' conftest.er1 >conftest.err
  16521. rm -f conftest.er1
  16522. cat conftest.err >&5
  16523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16524. (exit $ac_status); } && {
  16525. test -z "$ac_c_werror_flag" ||
  16526. test ! -s conftest.err
  16527. } && test -s conftest$ac_exeext && {
  16528. test "$cross_compiling" = yes ||
  16529. $as_test_x conftest$ac_exeext
  16530. }; then
  16531. eval "$as_ac_var=yes"
  16532. else
  16533. $as_echo "$as_me: failed program was:" >&5
  16534. sed 's/^/| /' conftest.$ac_ext >&5
  16535. eval "$as_ac_var=no"
  16536. fi
  16537. rm -rf conftest.dSYM
  16538. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16539. conftest$ac_exeext conftest.$ac_ext
  16540. fi
  16541. ac_res=`eval 'as_val=${'$as_ac_var'}
  16542. $as_echo "$as_val"'`
  16543. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16544. $as_echo "$ac_res" >&6; }
  16545. as_val=`eval 'as_val=${'$as_ac_var'}
  16546. $as_echo "$as_val"'`
  16547. if test "x$as_val" = x""yes; then
  16548. cat >>confdefs.h <<_ACEOF
  16549. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16550. _ACEOF
  16551. fi
  16552. done
  16553. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  16554. $as_echo_n "checking for working mmap... " >&6; }
  16555. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16556. $as_echo_n "(cached) " >&6
  16557. else
  16558. if test "$cross_compiling" = yes; then
  16559. ac_cv_func_mmap_fixed_mapped=no
  16560. else
  16561. cat >conftest.$ac_ext <<_ACEOF
  16562. /* confdefs.h. */
  16563. _ACEOF
  16564. cat confdefs.h >>conftest.$ac_ext
  16565. cat >>conftest.$ac_ext <<_ACEOF
  16566. /* end confdefs.h. */
  16567. $ac_includes_default
  16568. /* malloc might have been renamed as rpl_malloc. */
  16569. #undef malloc
  16570. /* Thanks to Mike Haertel and Jim Avera for this test.
  16571. Here is a matrix of mmap possibilities:
  16572. mmap private not fixed
  16573. mmap private fixed at somewhere currently unmapped
  16574. mmap private fixed at somewhere already mapped
  16575. mmap shared not fixed
  16576. mmap shared fixed at somewhere currently unmapped
  16577. mmap shared fixed at somewhere already mapped
  16578. For private mappings, we should verify that changes cannot be read()
  16579. back from the file, nor mmap's back from the file at a different
  16580. address. (There have been systems where private was not correctly
  16581. implemented like the infamous i386 svr4.0, and systems where the
  16582. VM page cache was not coherent with the file system buffer cache
  16583. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16584. For shared mappings, we should conversely verify that changes get
  16585. propagated back to all the places they're supposed to be.
  16586. Grep wants private fixed already mapped.
  16587. The main things grep needs to know about mmap are:
  16588. * does it exist and is it safe to write into the mmap'd area
  16589. * how to use it (BSD variants) */
  16590. #include <fcntl.h>
  16591. #include <sys/mman.h>
  16592. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16593. char *malloc ();
  16594. #endif
  16595. /* This mess was copied from the GNU getpagesize.h. */
  16596. #ifndef HAVE_GETPAGESIZE
  16597. /* Assume that all systems that can run configure have sys/param.h. */
  16598. # ifndef HAVE_SYS_PARAM_H
  16599. # define HAVE_SYS_PARAM_H 1
  16600. # endif
  16601. # ifdef _SC_PAGESIZE
  16602. # define getpagesize() sysconf(_SC_PAGESIZE)
  16603. # else /* no _SC_PAGESIZE */
  16604. # ifdef HAVE_SYS_PARAM_H
  16605. # include <sys/param.h>
  16606. # ifdef EXEC_PAGESIZE
  16607. # define getpagesize() EXEC_PAGESIZE
  16608. # else /* no EXEC_PAGESIZE */
  16609. # ifdef NBPG
  16610. # define getpagesize() NBPG * CLSIZE
  16611. # ifndef CLSIZE
  16612. # define CLSIZE 1
  16613. # endif /* no CLSIZE */
  16614. # else /* no NBPG */
  16615. # ifdef NBPC
  16616. # define getpagesize() NBPC
  16617. # else /* no NBPC */
  16618. # ifdef PAGESIZE
  16619. # define getpagesize() PAGESIZE
  16620. # endif /* PAGESIZE */
  16621. # endif /* no NBPC */
  16622. # endif /* no NBPG */
  16623. # endif /* no EXEC_PAGESIZE */
  16624. # else /* no HAVE_SYS_PARAM_H */
  16625. # define getpagesize() 8192 /* punt totally */
  16626. # endif /* no HAVE_SYS_PARAM_H */
  16627. # endif /* no _SC_PAGESIZE */
  16628. #endif /* no HAVE_GETPAGESIZE */
  16629. int
  16630. main ()
  16631. {
  16632. char *data, *data2, *data3;
  16633. int i, pagesize;
  16634. int fd;
  16635. pagesize = getpagesize ();
  16636. /* First, make a file with some known garbage in it. */
  16637. data = (char *) malloc (pagesize);
  16638. if (!data)
  16639. return 1;
  16640. for (i = 0; i < pagesize; ++i)
  16641. *(data + i) = rand ();
  16642. umask (0);
  16643. fd = creat ("conftest.mmap", 0600);
  16644. if (fd < 0)
  16645. return 1;
  16646. if (write (fd, data, pagesize) != pagesize)
  16647. return 1;
  16648. close (fd);
  16649. /* Next, try to mmap the file at a fixed address which already has
  16650. something else allocated at it. If we can, also make sure that
  16651. we see the same garbage. */
  16652. fd = open ("conftest.mmap", O_RDWR);
  16653. if (fd < 0)
  16654. return 1;
  16655. data2 = (char *) malloc (2 * pagesize);
  16656. if (!data2)
  16657. return 1;
  16658. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16659. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16660. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16661. return 1;
  16662. for (i = 0; i < pagesize; ++i)
  16663. if (*(data + i) != *(data2 + i))
  16664. return 1;
  16665. /* Finally, make sure that changes to the mapped area do not
  16666. percolate back to the file as seen by read(). (This is a bug on
  16667. some variants of i386 svr4.0.) */
  16668. for (i = 0; i < pagesize; ++i)
  16669. *(data2 + i) = *(data2 + i) + 1;
  16670. data3 = (char *) malloc (pagesize);
  16671. if (!data3)
  16672. return 1;
  16673. if (read (fd, data3, pagesize) != pagesize)
  16674. return 1;
  16675. for (i = 0; i < pagesize; ++i)
  16676. if (*(data + i) != *(data3 + i))
  16677. return 1;
  16678. close (fd);
  16679. return 0;
  16680. }
  16681. _ACEOF
  16682. rm -f conftest$ac_exeext
  16683. if { (ac_try="$ac_link"
  16684. case "(($ac_try" in
  16685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16686. *) ac_try_echo=$ac_try;;
  16687. esac
  16688. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16689. $as_echo "$ac_try_echo") >&5
  16690. (eval "$ac_link") 2>&5
  16691. ac_status=$?
  16692. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16693. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16694. { (case "(($ac_try" in
  16695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16696. *) ac_try_echo=$ac_try;;
  16697. esac
  16698. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16699. $as_echo "$ac_try_echo") >&5
  16700. (eval "$ac_try") 2>&5
  16701. ac_status=$?
  16702. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16703. (exit $ac_status); }; }; then
  16704. ac_cv_func_mmap_fixed_mapped=yes
  16705. else
  16706. $as_echo "$as_me: program exited with status $ac_status" >&5
  16707. $as_echo "$as_me: failed program was:" >&5
  16708. sed 's/^/| /' conftest.$ac_ext >&5
  16709. ( exit $ac_status )
  16710. ac_cv_func_mmap_fixed_mapped=no
  16711. fi
  16712. rm -rf conftest.dSYM
  16713. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16714. fi
  16715. fi
  16716. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16717. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  16718. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16719. cat >>confdefs.h <<\_ACEOF
  16720. #define HAVE_MMAP 1
  16721. _ACEOF
  16722. fi
  16723. rm -f conftest.mmap
  16724. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  16725. $as_echo_n "checking return type of signal handlers... " >&6; }
  16726. if test "${ac_cv_type_signal+set}" = set; then
  16727. $as_echo_n "(cached) " >&6
  16728. else
  16729. cat >conftest.$ac_ext <<_ACEOF
  16730. /* confdefs.h. */
  16731. _ACEOF
  16732. cat confdefs.h >>conftest.$ac_ext
  16733. cat >>conftest.$ac_ext <<_ACEOF
  16734. /* end confdefs.h. */
  16735. #include <sys/types.h>
  16736. #include <signal.h>
  16737. int
  16738. main ()
  16739. {
  16740. return *(signal (0, 0)) (0) == 1;
  16741. ;
  16742. return 0;
  16743. }
  16744. _ACEOF
  16745. rm -f conftest.$ac_objext
  16746. if { (ac_try="$ac_compile"
  16747. case "(($ac_try" in
  16748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16749. *) ac_try_echo=$ac_try;;
  16750. esac
  16751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16752. $as_echo "$ac_try_echo") >&5
  16753. (eval "$ac_compile") 2>conftest.er1
  16754. ac_status=$?
  16755. grep -v '^ *+' conftest.er1 >conftest.err
  16756. rm -f conftest.er1
  16757. cat conftest.err >&5
  16758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16759. (exit $ac_status); } && {
  16760. test -z "$ac_c_werror_flag" ||
  16761. test ! -s conftest.err
  16762. } && test -s conftest.$ac_objext; then
  16763. ac_cv_type_signal=int
  16764. else
  16765. $as_echo "$as_me: failed program was:" >&5
  16766. sed 's/^/| /' conftest.$ac_ext >&5
  16767. ac_cv_type_signal=void
  16768. fi
  16769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16770. fi
  16771. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  16772. $as_echo "$ac_cv_type_signal" >&6; }
  16773. cat >>confdefs.h <<_ACEOF
  16774. #define RETSIGTYPE $ac_cv_type_signal
  16775. _ACEOF
  16776. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  16777. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  16778. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  16779. $as_echo_n "(cached) " >&6
  16780. else
  16781. if test "$cross_compiling" = yes; then
  16782. ac_cv_func_stat_empty_string_bug=yes
  16783. else
  16784. cat >conftest.$ac_ext <<_ACEOF
  16785. /* confdefs.h. */
  16786. _ACEOF
  16787. cat confdefs.h >>conftest.$ac_ext
  16788. cat >>conftest.$ac_ext <<_ACEOF
  16789. /* end confdefs.h. */
  16790. $ac_includes_default
  16791. int
  16792. main ()
  16793. {
  16794. struct stat sbuf;
  16795. return stat ("", &sbuf) == 0;
  16796. ;
  16797. return 0;
  16798. }
  16799. _ACEOF
  16800. rm -f conftest$ac_exeext
  16801. if { (ac_try="$ac_link"
  16802. case "(($ac_try" in
  16803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16804. *) ac_try_echo=$ac_try;;
  16805. esac
  16806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16807. $as_echo "$ac_try_echo") >&5
  16808. (eval "$ac_link") 2>&5
  16809. ac_status=$?
  16810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16811. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16812. { (case "(($ac_try" in
  16813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16814. *) ac_try_echo=$ac_try;;
  16815. esac
  16816. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16817. $as_echo "$ac_try_echo") >&5
  16818. (eval "$ac_try") 2>&5
  16819. ac_status=$?
  16820. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16821. (exit $ac_status); }; }; then
  16822. ac_cv_func_stat_empty_string_bug=no
  16823. else
  16824. $as_echo "$as_me: program exited with status $ac_status" >&5
  16825. $as_echo "$as_me: failed program was:" >&5
  16826. sed 's/^/| /' conftest.$ac_ext >&5
  16827. ( exit $ac_status )
  16828. ac_cv_func_stat_empty_string_bug=yes
  16829. fi
  16830. rm -rf conftest.dSYM
  16831. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16832. fi
  16833. fi
  16834. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  16835. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  16836. if test $ac_cv_func_stat_empty_string_bug = yes; then
  16837. case " $LIBOBJS " in
  16838. *" stat.$ac_objext "* ) ;;
  16839. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  16840. ;;
  16841. esac
  16842. cat >>confdefs.h <<_ACEOF
  16843. #define HAVE_STAT_EMPTY_STRING_BUG 1
  16844. _ACEOF
  16845. fi
  16846. { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
  16847. $as_echo_n "checking whether strerror_r is declared... " >&6; }
  16848. if test "${ac_cv_have_decl_strerror_r+set}" = set; then
  16849. $as_echo_n "(cached) " >&6
  16850. else
  16851. cat >conftest.$ac_ext <<_ACEOF
  16852. /* confdefs.h. */
  16853. _ACEOF
  16854. cat confdefs.h >>conftest.$ac_ext
  16855. cat >>conftest.$ac_ext <<_ACEOF
  16856. /* end confdefs.h. */
  16857. $ac_includes_default
  16858. int
  16859. main ()
  16860. {
  16861. #ifndef strerror_r
  16862. (void) strerror_r;
  16863. #endif
  16864. ;
  16865. return 0;
  16866. }
  16867. _ACEOF
  16868. rm -f conftest.$ac_objext
  16869. if { (ac_try="$ac_compile"
  16870. case "(($ac_try" in
  16871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16872. *) ac_try_echo=$ac_try;;
  16873. esac
  16874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16875. $as_echo "$ac_try_echo") >&5
  16876. (eval "$ac_compile") 2>conftest.er1
  16877. ac_status=$?
  16878. grep -v '^ *+' conftest.er1 >conftest.err
  16879. rm -f conftest.er1
  16880. cat conftest.err >&5
  16881. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16882. (exit $ac_status); } && {
  16883. test -z "$ac_c_werror_flag" ||
  16884. test ! -s conftest.err
  16885. } && test -s conftest.$ac_objext; then
  16886. ac_cv_have_decl_strerror_r=yes
  16887. else
  16888. $as_echo "$as_me: failed program was:" >&5
  16889. sed 's/^/| /' conftest.$ac_ext >&5
  16890. ac_cv_have_decl_strerror_r=no
  16891. fi
  16892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16893. fi
  16894. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
  16895. $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
  16896. if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
  16897. cat >>confdefs.h <<_ACEOF
  16898. #define HAVE_DECL_STRERROR_R 1
  16899. _ACEOF
  16900. else
  16901. cat >>confdefs.h <<_ACEOF
  16902. #define HAVE_DECL_STRERROR_R 0
  16903. _ACEOF
  16904. fi
  16905. for ac_func in strerror_r
  16906. do
  16907. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16908. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16909. $as_echo_n "checking for $ac_func... " >&6; }
  16910. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16911. $as_echo_n "(cached) " >&6
  16912. else
  16913. cat >conftest.$ac_ext <<_ACEOF
  16914. /* confdefs.h. */
  16915. _ACEOF
  16916. cat confdefs.h >>conftest.$ac_ext
  16917. cat >>conftest.$ac_ext <<_ACEOF
  16918. /* end confdefs.h. */
  16919. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16920. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16921. #define $ac_func innocuous_$ac_func
  16922. /* System header to define __stub macros and hopefully few prototypes,
  16923. which can conflict with char $ac_func (); below.
  16924. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16925. <limits.h> exists even on freestanding compilers. */
  16926. #ifdef __STDC__
  16927. # include <limits.h>
  16928. #else
  16929. # include <assert.h>
  16930. #endif
  16931. #undef $ac_func
  16932. /* Override any GCC internal prototype to avoid an error.
  16933. Use char because int might match the return type of a GCC
  16934. builtin and then its argument prototype would still apply. */
  16935. #ifdef __cplusplus
  16936. extern "C"
  16937. #endif
  16938. char $ac_func ();
  16939. /* The GNU C library defines this for functions which it implements
  16940. to always fail with ENOSYS. Some functions are actually named
  16941. something starting with __ and the normal name is an alias. */
  16942. #if defined __stub_$ac_func || defined __stub___$ac_func
  16943. choke me
  16944. #endif
  16945. int
  16946. main ()
  16947. {
  16948. return $ac_func ();
  16949. ;
  16950. return 0;
  16951. }
  16952. _ACEOF
  16953. rm -f conftest.$ac_objext conftest$ac_exeext
  16954. if { (ac_try="$ac_link"
  16955. case "(($ac_try" in
  16956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16957. *) ac_try_echo=$ac_try;;
  16958. esac
  16959. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16960. $as_echo "$ac_try_echo") >&5
  16961. (eval "$ac_link") 2>conftest.er1
  16962. ac_status=$?
  16963. grep -v '^ *+' conftest.er1 >conftest.err
  16964. rm -f conftest.er1
  16965. cat conftest.err >&5
  16966. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16967. (exit $ac_status); } && {
  16968. test -z "$ac_c_werror_flag" ||
  16969. test ! -s conftest.err
  16970. } && test -s conftest$ac_exeext && {
  16971. test "$cross_compiling" = yes ||
  16972. $as_test_x conftest$ac_exeext
  16973. }; then
  16974. eval "$as_ac_var=yes"
  16975. else
  16976. $as_echo "$as_me: failed program was:" >&5
  16977. sed 's/^/| /' conftest.$ac_ext >&5
  16978. eval "$as_ac_var=no"
  16979. fi
  16980. rm -rf conftest.dSYM
  16981. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16982. conftest$ac_exeext conftest.$ac_ext
  16983. fi
  16984. ac_res=`eval 'as_val=${'$as_ac_var'}
  16985. $as_echo "$as_val"'`
  16986. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16987. $as_echo "$ac_res" >&6; }
  16988. as_val=`eval 'as_val=${'$as_ac_var'}
  16989. $as_echo "$as_val"'`
  16990. if test "x$as_val" = x""yes; then
  16991. cat >>confdefs.h <<_ACEOF
  16992. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16993. _ACEOF
  16994. fi
  16995. done
  16996. { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
  16997. $as_echo_n "checking whether strerror_r returns char *... " >&6; }
  16998. if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
  16999. $as_echo_n "(cached) " >&6
  17000. else
  17001. ac_cv_func_strerror_r_char_p=no
  17002. if test $ac_cv_have_decl_strerror_r = yes; then
  17003. cat >conftest.$ac_ext <<_ACEOF
  17004. /* confdefs.h. */
  17005. _ACEOF
  17006. cat confdefs.h >>conftest.$ac_ext
  17007. cat >>conftest.$ac_ext <<_ACEOF
  17008. /* end confdefs.h. */
  17009. $ac_includes_default
  17010. int
  17011. main ()
  17012. {
  17013. char buf[100];
  17014. char x = *strerror_r (0, buf, sizeof buf);
  17015. char *p = strerror_r (0, buf, sizeof buf);
  17016. return !p || x;
  17017. ;
  17018. return 0;
  17019. }
  17020. _ACEOF
  17021. rm -f conftest.$ac_objext
  17022. if { (ac_try="$ac_compile"
  17023. case "(($ac_try" in
  17024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17025. *) ac_try_echo=$ac_try;;
  17026. esac
  17027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17028. $as_echo "$ac_try_echo") >&5
  17029. (eval "$ac_compile") 2>conftest.er1
  17030. ac_status=$?
  17031. grep -v '^ *+' conftest.er1 >conftest.err
  17032. rm -f conftest.er1
  17033. cat conftest.err >&5
  17034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17035. (exit $ac_status); } && {
  17036. test -z "$ac_c_werror_flag" ||
  17037. test ! -s conftest.err
  17038. } && test -s conftest.$ac_objext; then
  17039. ac_cv_func_strerror_r_char_p=yes
  17040. else
  17041. $as_echo "$as_me: failed program was:" >&5
  17042. sed 's/^/| /' conftest.$ac_ext >&5
  17043. fi
  17044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17045. else
  17046. # strerror_r is not declared. Choose between
  17047. # systems that have relatively inaccessible declarations for the
  17048. # function. BeOS and DEC UNIX 4.0 fall in this category, but the
  17049. # former has a strerror_r that returns char*, while the latter
  17050. # has a strerror_r that returns `int'.
  17051. # This test should segfault on the DEC system.
  17052. if test "$cross_compiling" = yes; then
  17053. :
  17054. else
  17055. cat >conftest.$ac_ext <<_ACEOF
  17056. /* confdefs.h. */
  17057. _ACEOF
  17058. cat confdefs.h >>conftest.$ac_ext
  17059. cat >>conftest.$ac_ext <<_ACEOF
  17060. /* end confdefs.h. */
  17061. $ac_includes_default
  17062. extern char *strerror_r ();
  17063. int
  17064. main ()
  17065. {
  17066. char buf[100];
  17067. char x = *strerror_r (0, buf, sizeof buf);
  17068. return ! isalpha (x);
  17069. ;
  17070. return 0;
  17071. }
  17072. _ACEOF
  17073. rm -f conftest$ac_exeext
  17074. if { (ac_try="$ac_link"
  17075. case "(($ac_try" in
  17076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17077. *) ac_try_echo=$ac_try;;
  17078. esac
  17079. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17080. $as_echo "$ac_try_echo") >&5
  17081. (eval "$ac_link") 2>&5
  17082. ac_status=$?
  17083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17084. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17085. { (case "(($ac_try" in
  17086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17087. *) ac_try_echo=$ac_try;;
  17088. esac
  17089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17090. $as_echo "$ac_try_echo") >&5
  17091. (eval "$ac_try") 2>&5
  17092. ac_status=$?
  17093. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17094. (exit $ac_status); }; }; then
  17095. ac_cv_func_strerror_r_char_p=yes
  17096. else
  17097. $as_echo "$as_me: program exited with status $ac_status" >&5
  17098. $as_echo "$as_me: failed program was:" >&5
  17099. sed 's/^/| /' conftest.$ac_ext >&5
  17100. fi
  17101. rm -rf conftest.dSYM
  17102. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17103. fi
  17104. fi
  17105. fi
  17106. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
  17107. $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
  17108. if test $ac_cv_func_strerror_r_char_p = yes; then
  17109. cat >>confdefs.h <<\_ACEOF
  17110. #define STRERROR_R_CHAR_P 1
  17111. _ACEOF
  17112. fi
  17113. for ac_func in strftime
  17114. do
  17115. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17116. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17117. $as_echo_n "checking for $ac_func... " >&6; }
  17118. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17119. $as_echo_n "(cached) " >&6
  17120. else
  17121. cat >conftest.$ac_ext <<_ACEOF
  17122. /* confdefs.h. */
  17123. _ACEOF
  17124. cat confdefs.h >>conftest.$ac_ext
  17125. cat >>conftest.$ac_ext <<_ACEOF
  17126. /* end confdefs.h. */
  17127. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17128. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17129. #define $ac_func innocuous_$ac_func
  17130. /* System header to define __stub macros and hopefully few prototypes,
  17131. which can conflict with char $ac_func (); below.
  17132. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17133. <limits.h> exists even on freestanding compilers. */
  17134. #ifdef __STDC__
  17135. # include <limits.h>
  17136. #else
  17137. # include <assert.h>
  17138. #endif
  17139. #undef $ac_func
  17140. /* Override any GCC internal prototype to avoid an error.
  17141. Use char because int might match the return type of a GCC
  17142. builtin and then its argument prototype would still apply. */
  17143. #ifdef __cplusplus
  17144. extern "C"
  17145. #endif
  17146. char $ac_func ();
  17147. /* The GNU C library defines this for functions which it implements
  17148. to always fail with ENOSYS. Some functions are actually named
  17149. something starting with __ and the normal name is an alias. */
  17150. #if defined __stub_$ac_func || defined __stub___$ac_func
  17151. choke me
  17152. #endif
  17153. int
  17154. main ()
  17155. {
  17156. return $ac_func ();
  17157. ;
  17158. return 0;
  17159. }
  17160. _ACEOF
  17161. rm -f conftest.$ac_objext conftest$ac_exeext
  17162. if { (ac_try="$ac_link"
  17163. case "(($ac_try" in
  17164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17165. *) ac_try_echo=$ac_try;;
  17166. esac
  17167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17168. $as_echo "$ac_try_echo") >&5
  17169. (eval "$ac_link") 2>conftest.er1
  17170. ac_status=$?
  17171. grep -v '^ *+' conftest.er1 >conftest.err
  17172. rm -f conftest.er1
  17173. cat conftest.err >&5
  17174. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17175. (exit $ac_status); } && {
  17176. test -z "$ac_c_werror_flag" ||
  17177. test ! -s conftest.err
  17178. } && test -s conftest$ac_exeext && {
  17179. test "$cross_compiling" = yes ||
  17180. $as_test_x conftest$ac_exeext
  17181. }; then
  17182. eval "$as_ac_var=yes"
  17183. else
  17184. $as_echo "$as_me: failed program was:" >&5
  17185. sed 's/^/| /' conftest.$ac_ext >&5
  17186. eval "$as_ac_var=no"
  17187. fi
  17188. rm -rf conftest.dSYM
  17189. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17190. conftest$ac_exeext conftest.$ac_ext
  17191. fi
  17192. ac_res=`eval 'as_val=${'$as_ac_var'}
  17193. $as_echo "$as_val"'`
  17194. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17195. $as_echo "$ac_res" >&6; }
  17196. as_val=`eval 'as_val=${'$as_ac_var'}
  17197. $as_echo "$as_val"'`
  17198. if test "x$as_val" = x""yes; then
  17199. cat >>confdefs.h <<_ACEOF
  17200. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17201. _ACEOF
  17202. else
  17203. # strftime is in -lintl on SCO UNIX.
  17204. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17205. $as_echo_n "checking for strftime in -lintl... " >&6; }
  17206. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17207. $as_echo_n "(cached) " >&6
  17208. else
  17209. ac_check_lib_save_LIBS=$LIBS
  17210. LIBS="-lintl $LIBS"
  17211. cat >conftest.$ac_ext <<_ACEOF
  17212. /* confdefs.h. */
  17213. _ACEOF
  17214. cat confdefs.h >>conftest.$ac_ext
  17215. cat >>conftest.$ac_ext <<_ACEOF
  17216. /* end confdefs.h. */
  17217. /* Override any GCC internal prototype to avoid an error.
  17218. Use char because int might match the return type of a GCC
  17219. builtin and then its argument prototype would still apply. */
  17220. #ifdef __cplusplus
  17221. extern "C"
  17222. #endif
  17223. char strftime ();
  17224. int
  17225. main ()
  17226. {
  17227. return strftime ();
  17228. ;
  17229. return 0;
  17230. }
  17231. _ACEOF
  17232. rm -f conftest.$ac_objext conftest$ac_exeext
  17233. if { (ac_try="$ac_link"
  17234. case "(($ac_try" in
  17235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17236. *) ac_try_echo=$ac_try;;
  17237. esac
  17238. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17239. $as_echo "$ac_try_echo") >&5
  17240. (eval "$ac_link") 2>conftest.er1
  17241. ac_status=$?
  17242. grep -v '^ *+' conftest.er1 >conftest.err
  17243. rm -f conftest.er1
  17244. cat conftest.err >&5
  17245. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17246. (exit $ac_status); } && {
  17247. test -z "$ac_c_werror_flag" ||
  17248. test ! -s conftest.err
  17249. } && test -s conftest$ac_exeext && {
  17250. test "$cross_compiling" = yes ||
  17251. $as_test_x conftest$ac_exeext
  17252. }; then
  17253. ac_cv_lib_intl_strftime=yes
  17254. else
  17255. $as_echo "$as_me: failed program was:" >&5
  17256. sed 's/^/| /' conftest.$ac_ext >&5
  17257. ac_cv_lib_intl_strftime=no
  17258. fi
  17259. rm -rf conftest.dSYM
  17260. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17261. conftest$ac_exeext conftest.$ac_ext
  17262. LIBS=$ac_check_lib_save_LIBS
  17263. fi
  17264. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17265. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  17266. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  17267. cat >>confdefs.h <<\_ACEOF
  17268. #define HAVE_STRFTIME 1
  17269. _ACEOF
  17270. LIBS="-lintl $LIBS"
  17271. fi
  17272. fi
  17273. done
  17274. for ac_func in vprintf
  17275. do
  17276. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17277. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17278. $as_echo_n "checking for $ac_func... " >&6; }
  17279. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17280. $as_echo_n "(cached) " >&6
  17281. else
  17282. cat >conftest.$ac_ext <<_ACEOF
  17283. /* confdefs.h. */
  17284. _ACEOF
  17285. cat confdefs.h >>conftest.$ac_ext
  17286. cat >>conftest.$ac_ext <<_ACEOF
  17287. /* end confdefs.h. */
  17288. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17289. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17290. #define $ac_func innocuous_$ac_func
  17291. /* System header to define __stub macros and hopefully few prototypes,
  17292. which can conflict with char $ac_func (); below.
  17293. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17294. <limits.h> exists even on freestanding compilers. */
  17295. #ifdef __STDC__
  17296. # include <limits.h>
  17297. #else
  17298. # include <assert.h>
  17299. #endif
  17300. #undef $ac_func
  17301. /* Override any GCC internal prototype to avoid an error.
  17302. Use char because int might match the return type of a GCC
  17303. builtin and then its argument prototype would still apply. */
  17304. #ifdef __cplusplus
  17305. extern "C"
  17306. #endif
  17307. char $ac_func ();
  17308. /* The GNU C library defines this for functions which it implements
  17309. to always fail with ENOSYS. Some functions are actually named
  17310. something starting with __ and the normal name is an alias. */
  17311. #if defined __stub_$ac_func || defined __stub___$ac_func
  17312. choke me
  17313. #endif
  17314. int
  17315. main ()
  17316. {
  17317. return $ac_func ();
  17318. ;
  17319. return 0;
  17320. }
  17321. _ACEOF
  17322. rm -f conftest.$ac_objext conftest$ac_exeext
  17323. if { (ac_try="$ac_link"
  17324. case "(($ac_try" in
  17325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17326. *) ac_try_echo=$ac_try;;
  17327. esac
  17328. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17329. $as_echo "$ac_try_echo") >&5
  17330. (eval "$ac_link") 2>conftest.er1
  17331. ac_status=$?
  17332. grep -v '^ *+' conftest.er1 >conftest.err
  17333. rm -f conftest.er1
  17334. cat conftest.err >&5
  17335. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17336. (exit $ac_status); } && {
  17337. test -z "$ac_c_werror_flag" ||
  17338. test ! -s conftest.err
  17339. } && test -s conftest$ac_exeext && {
  17340. test "$cross_compiling" = yes ||
  17341. $as_test_x conftest$ac_exeext
  17342. }; then
  17343. eval "$as_ac_var=yes"
  17344. else
  17345. $as_echo "$as_me: failed program was:" >&5
  17346. sed 's/^/| /' conftest.$ac_ext >&5
  17347. eval "$as_ac_var=no"
  17348. fi
  17349. rm -rf conftest.dSYM
  17350. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17351. conftest$ac_exeext conftest.$ac_ext
  17352. fi
  17353. ac_res=`eval 'as_val=${'$as_ac_var'}
  17354. $as_echo "$as_val"'`
  17355. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17356. $as_echo "$ac_res" >&6; }
  17357. as_val=`eval 'as_val=${'$as_ac_var'}
  17358. $as_echo "$as_val"'`
  17359. if test "x$as_val" = x""yes; then
  17360. cat >>confdefs.h <<_ACEOF
  17361. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17362. _ACEOF
  17363. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  17364. $as_echo_n "checking for _doprnt... " >&6; }
  17365. if test "${ac_cv_func__doprnt+set}" = set; then
  17366. $as_echo_n "(cached) " >&6
  17367. else
  17368. cat >conftest.$ac_ext <<_ACEOF
  17369. /* confdefs.h. */
  17370. _ACEOF
  17371. cat confdefs.h >>conftest.$ac_ext
  17372. cat >>conftest.$ac_ext <<_ACEOF
  17373. /* end confdefs.h. */
  17374. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17375. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17376. #define _doprnt innocuous__doprnt
  17377. /* System header to define __stub macros and hopefully few prototypes,
  17378. which can conflict with char _doprnt (); below.
  17379. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17380. <limits.h> exists even on freestanding compilers. */
  17381. #ifdef __STDC__
  17382. # include <limits.h>
  17383. #else
  17384. # include <assert.h>
  17385. #endif
  17386. #undef _doprnt
  17387. /* Override any GCC internal prototype to avoid an error.
  17388. Use char because int might match the return type of a GCC
  17389. builtin and then its argument prototype would still apply. */
  17390. #ifdef __cplusplus
  17391. extern "C"
  17392. #endif
  17393. char _doprnt ();
  17394. /* The GNU C library defines this for functions which it implements
  17395. to always fail with ENOSYS. Some functions are actually named
  17396. something starting with __ and the normal name is an alias. */
  17397. #if defined __stub__doprnt || defined __stub____doprnt
  17398. choke me
  17399. #endif
  17400. int
  17401. main ()
  17402. {
  17403. return _doprnt ();
  17404. ;
  17405. return 0;
  17406. }
  17407. _ACEOF
  17408. rm -f conftest.$ac_objext conftest$ac_exeext
  17409. if { (ac_try="$ac_link"
  17410. case "(($ac_try" in
  17411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17412. *) ac_try_echo=$ac_try;;
  17413. esac
  17414. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17415. $as_echo "$ac_try_echo") >&5
  17416. (eval "$ac_link") 2>conftest.er1
  17417. ac_status=$?
  17418. grep -v '^ *+' conftest.er1 >conftest.err
  17419. rm -f conftest.er1
  17420. cat conftest.err >&5
  17421. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17422. (exit $ac_status); } && {
  17423. test -z "$ac_c_werror_flag" ||
  17424. test ! -s conftest.err
  17425. } && test -s conftest$ac_exeext && {
  17426. test "$cross_compiling" = yes ||
  17427. $as_test_x conftest$ac_exeext
  17428. }; then
  17429. ac_cv_func__doprnt=yes
  17430. else
  17431. $as_echo "$as_me: failed program was:" >&5
  17432. sed 's/^/| /' conftest.$ac_ext >&5
  17433. ac_cv_func__doprnt=no
  17434. fi
  17435. rm -rf conftest.dSYM
  17436. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17437. conftest$ac_exeext conftest.$ac_ext
  17438. fi
  17439. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17440. $as_echo "$ac_cv_func__doprnt" >&6; }
  17441. if test "x$ac_cv_func__doprnt" = x""yes; then
  17442. cat >>confdefs.h <<\_ACEOF
  17443. #define HAVE_DOPRNT 1
  17444. _ACEOF
  17445. fi
  17446. fi
  17447. done
  17448. 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
  17449. do
  17450. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17451. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17452. $as_echo_n "checking for $ac_func... " >&6; }
  17453. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17454. $as_echo_n "(cached) " >&6
  17455. else
  17456. cat >conftest.$ac_ext <<_ACEOF
  17457. /* confdefs.h. */
  17458. _ACEOF
  17459. cat confdefs.h >>conftest.$ac_ext
  17460. cat >>conftest.$ac_ext <<_ACEOF
  17461. /* end confdefs.h. */
  17462. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17463. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17464. #define $ac_func innocuous_$ac_func
  17465. /* System header to define __stub macros and hopefully few prototypes,
  17466. which can conflict with char $ac_func (); below.
  17467. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17468. <limits.h> exists even on freestanding compilers. */
  17469. #ifdef __STDC__
  17470. # include <limits.h>
  17471. #else
  17472. # include <assert.h>
  17473. #endif
  17474. #undef $ac_func
  17475. /* Override any GCC internal prototype to avoid an error.
  17476. Use char because int might match the return type of a GCC
  17477. builtin and then its argument prototype would still apply. */
  17478. #ifdef __cplusplus
  17479. extern "C"
  17480. #endif
  17481. char $ac_func ();
  17482. /* The GNU C library defines this for functions which it implements
  17483. to always fail with ENOSYS. Some functions are actually named
  17484. something starting with __ and the normal name is an alias. */
  17485. #if defined __stub_$ac_func || defined __stub___$ac_func
  17486. choke me
  17487. #endif
  17488. int
  17489. main ()
  17490. {
  17491. return $ac_func ();
  17492. ;
  17493. return 0;
  17494. }
  17495. _ACEOF
  17496. rm -f conftest.$ac_objext conftest$ac_exeext
  17497. if { (ac_try="$ac_link"
  17498. case "(($ac_try" in
  17499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17500. *) ac_try_echo=$ac_try;;
  17501. esac
  17502. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17503. $as_echo "$ac_try_echo") >&5
  17504. (eval "$ac_link") 2>conftest.er1
  17505. ac_status=$?
  17506. grep -v '^ *+' conftest.er1 >conftest.err
  17507. rm -f conftest.er1
  17508. cat conftest.err >&5
  17509. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17510. (exit $ac_status); } && {
  17511. test -z "$ac_c_werror_flag" ||
  17512. test ! -s conftest.err
  17513. } && test -s conftest$ac_exeext && {
  17514. test "$cross_compiling" = yes ||
  17515. $as_test_x conftest$ac_exeext
  17516. }; then
  17517. eval "$as_ac_var=yes"
  17518. else
  17519. $as_echo "$as_me: failed program was:" >&5
  17520. sed 's/^/| /' conftest.$ac_ext >&5
  17521. eval "$as_ac_var=no"
  17522. fi
  17523. rm -rf conftest.dSYM
  17524. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17525. conftest$ac_exeext conftest.$ac_ext
  17526. fi
  17527. ac_res=`eval 'as_val=${'$as_ac_var'}
  17528. $as_echo "$as_val"'`
  17529. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17530. $as_echo "$ac_res" >&6; }
  17531. as_val=`eval 'as_val=${'$as_ac_var'}
  17532. $as_echo "$as_val"'`
  17533. if test "x$as_val" = x""yes; then
  17534. cat >>confdefs.h <<_ACEOF
  17535. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17536. _ACEOF
  17537. fi
  17538. done
  17539. { $as_echo "$as_me:$LINENO: checking for --enable-debug" >&5
  17540. $as_echo_n "checking for --enable-debug... " >&6; }
  17541. # Check whether --enable-debug was given.
  17542. if test "${enable_debug+set}" = set; then
  17543. enableval=$enable_debug;
  17544. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17545. $as_echo "yes" >&6; }
  17546. debug_defs="-DDEBUG -DMCC_DEBUG"
  17547. else
  17548. { $as_echo "$as_me:$LINENO: result: no" >&5
  17549. $as_echo "no" >&6; }
  17550. debug_defs=""
  17551. fi
  17552. # Used for legacy style packaging where we bundle all of the dependencies.
  17553. { $as_echo "$as_me:$LINENO: checking for --enable-bundle" >&5
  17554. $as_echo_n "checking for --enable-bundle... " >&6; }
  17555. # Check whether --enable-bundle was given.
  17556. if test "${enable_bundle+set}" = set; then
  17557. enableval=$enable_bundle;
  17558. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17559. $as_echo "yes" >&6; }
  17560. bundle="1";
  17561. else
  17562. { $as_echo "$as_me:$LINENO: result: no" >&5
  17563. $as_echo "no" >&6; }
  17564. bundle="";
  17565. fi
  17566. if test "$bundle" = "1"; then
  17567. BUNDLE_TRUE=
  17568. BUNDLE_FALSE='#'
  17569. else
  17570. BUNDLE_TRUE='#'
  17571. BUNDLE_FALSE=
  17572. fi
  17573. # these enables are for optional or experimental features
  17574. if test -z "$enable_pam_passthru" ; then
  17575. enable_pam_passthru=yes # if not set on cmdline, set default
  17576. fi
  17577. { $as_echo "$as_me:$LINENO: checking for --enable-pam-passthru" >&5
  17578. $as_echo_n "checking for --enable-pam-passthru... " >&6; }
  17579. # Check whether --enable-pam-passthru was given.
  17580. if test "${enable_pam_passthru+set}" = set; then
  17581. enableval=$enable_pam_passthru;
  17582. fi
  17583. if test "$enable_pam_passthru" = yes ; then
  17584. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17585. $as_echo "yes" >&6; }
  17586. cat >>confdefs.h <<\_ACEOF
  17587. #define ENABLE_PAM_PASSTHRU 1
  17588. _ACEOF
  17589. else
  17590. { $as_echo "$as_me:$LINENO: result: no" >&5
  17591. $as_echo "no" >&6; }
  17592. fi
  17593. if test "$enable_pam_passthru" = "yes"; then
  17594. enable_pam_passthru_TRUE=
  17595. enable_pam_passthru_FALSE='#'
  17596. else
  17597. enable_pam_passthru_TRUE='#'
  17598. enable_pam_passthru_FALSE=
  17599. fi
  17600. if test -z "$enable_dna" ; then
  17601. enable_dna=yes # if not set on cmdline, set default
  17602. fi
  17603. { $as_echo "$as_me:$LINENO: checking for --enable-dna" >&5
  17604. $as_echo_n "checking for --enable-dna... " >&6; }
  17605. # Check whether --enable-dna was given.
  17606. if test "${enable_dna+set}" = set; then
  17607. enableval=$enable_dna;
  17608. fi
  17609. if test "$enable_dna" = yes ; then
  17610. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17611. $as_echo "yes" >&6; }
  17612. cat >>confdefs.h <<\_ACEOF
  17613. #define ENABLE_DNA 1
  17614. _ACEOF
  17615. else
  17616. { $as_echo "$as_me:$LINENO: result: no" >&5
  17617. $as_echo "no" >&6; }
  17618. fi
  17619. if test "$enable_dna" = "yes"; then
  17620. enable_dna_TRUE=
  17621. enable_dna_FALSE='#'
  17622. else
  17623. enable_dna_TRUE='#'
  17624. enable_dna_FALSE=
  17625. fi
  17626. if test -z "$enable_ldapi" ; then
  17627. enable_ldapi=yes # if not set on cmdline, set default
  17628. fi
  17629. { $as_echo "$as_me:$LINENO: checking for --enable-ldapi" >&5
  17630. $as_echo_n "checking for --enable-ldapi... " >&6; }
  17631. # Check whether --enable-ldapi was given.
  17632. if test "${enable_ldapi+set}" = set; then
  17633. enableval=$enable_ldapi;
  17634. fi
  17635. if test "$enable_ldapi" = yes ; then
  17636. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17637. $as_echo "yes" >&6; }
  17638. cat >>confdefs.h <<\_ACEOF
  17639. #define ENABLE_LDAPI 1
  17640. _ACEOF
  17641. else
  17642. { $as_echo "$as_me:$LINENO: result: no" >&5
  17643. $as_echo "no" >&6; }
  17644. fi
  17645. if test "$enable_ldapi" = "yes"; then
  17646. enable_ldapi_TRUE=
  17647. enable_ldapi_FALSE='#'
  17648. else
  17649. enable_ldapi_TRUE='#'
  17650. enable_ldapi_FALSE=
  17651. fi
  17652. if test -z "$enable_autobind" ; then
  17653. enable_autobind=no # if not set on cmdline, set default
  17654. fi
  17655. { $as_echo "$as_me:$LINENO: checking for --enable-autobind" >&5
  17656. $as_echo_n "checking for --enable-autobind... " >&6; }
  17657. # Check whether --enable-autobind was given.
  17658. if test "${enable_autobind+set}" = set; then
  17659. enableval=$enable_autobind;
  17660. fi
  17661. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes ; then
  17662. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17663. $as_echo "yes" >&6; }
  17664. cat >>confdefs.h <<\_ACEOF
  17665. #define ENABLE_AUTOBIND 1
  17666. _ACEOF
  17667. else
  17668. { $as_echo "$as_me:$LINENO: result: no" >&5
  17669. $as_echo "no" >&6; }
  17670. fi
  17671. if test "$enable_autobind" = "yes"; then
  17672. enable_autobind_TRUE=
  17673. enable_autobind_FALSE='#'
  17674. else
  17675. enable_autobind_TRUE='#'
  17676. enable_autobind_FALSE=
  17677. fi
  17678. if test -z "$enable_auto_dn_suffix" ; then
  17679. enable_auto_dn_suffix=no # if not set on cmdline, set default
  17680. fi
  17681. { $as_echo "$as_me:$LINENO: checking for --enable-auto-dn-suffix" >&5
  17682. $as_echo_n "checking for --enable-auto-dn-suffix... " >&6; }
  17683. # Check whether --enable-autobind was given.
  17684. if test "${enable_autobind+set}" = set; then
  17685. enableval=$enable_autobind;
  17686. fi
  17687. if test "$enable_ldapi" = yes -a "$enable_autobind" = yes -a "$enable_auto_dn_suffix" = "yes"; then
  17688. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17689. $as_echo "yes" >&6; }
  17690. cat >>confdefs.h <<\_ACEOF
  17691. #define ENABLE_AUTO_DN_SUFFIX 1
  17692. _ACEOF
  17693. else
  17694. { $as_echo "$as_me:$LINENO: result: no" >&5
  17695. $as_echo "no" >&6; }
  17696. fi
  17697. if test "$enable_auto_dn_suffix" = "yes"; then
  17698. enable_auto_dn_suffix_TRUE=
  17699. enable_auto_dn_suffix_FALSE='#'
  17700. else
  17701. enable_auto_dn_suffix_TRUE='#'
  17702. enable_auto_dn_suffix_FALSE=
  17703. fi
  17704. if test -z "$enable_bitwise" ; then
  17705. enable_bitwise=yes # if not set on cmdline, set default
  17706. fi
  17707. { $as_echo "$as_me:$LINENO: checking for --enable-bitwise" >&5
  17708. $as_echo_n "checking for --enable-bitwise... " >&6; }
  17709. # Check whether --enable-bitwise was given.
  17710. if test "${enable_bitwise+set}" = set; then
  17711. enableval=$enable_bitwise;
  17712. fi
  17713. if test "$enable_bitwise" = yes ; then
  17714. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17715. $as_echo "yes" >&6; }
  17716. cat >>confdefs.h <<\_ACEOF
  17717. #define ENABLE_BITWISE 1
  17718. _ACEOF
  17719. else
  17720. { $as_echo "$as_me:$LINENO: result: no" >&5
  17721. $as_echo "no" >&6; }
  17722. fi
  17723. if test "$enable_bitwise" = "yes"; then
  17724. enable_bitwise_TRUE=
  17725. enable_bitwise_FALSE='#'
  17726. else
  17727. enable_bitwise_TRUE='#'
  17728. enable_bitwise_FALSE=
  17729. fi
  17730. if test -z "$enable_presence" ; then
  17731. enable_presence=no # if not set on cmdline, set default
  17732. fi
  17733. { $as_echo "$as_me:$LINENO: checking for --enable-presence" >&5
  17734. $as_echo_n "checking for --enable-presence... " >&6; }
  17735. # Check whether --enable-presence was given.
  17736. if test "${enable_presence+set}" = set; then
  17737. enableval=$enable_presence;
  17738. fi
  17739. if test "$enable_presence" = yes ; then
  17740. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17741. $as_echo "yes" >&6; }
  17742. cat >>confdefs.h <<\_ACEOF
  17743. #define ENABLE_PRESENCE 1
  17744. _ACEOF
  17745. else
  17746. { $as_echo "$as_me:$LINENO: result: no" >&5
  17747. $as_echo "no" >&6; }
  17748. fi
  17749. if test "$enable_presence" = "yes"; then
  17750. enable_presence_TRUE=
  17751. enable_presence_FALSE='#'
  17752. else
  17753. enable_presence_TRUE='#'
  17754. enable_presence_FALSE=
  17755. fi
  17756. if test -z "$enable_acctpolicy" ; then
  17757. enable_acctpolicy=yes # if not set on cmdline, set default
  17758. fi
  17759. { $as_echo "$as_me:$LINENO: checking for --enable-acctpolicy" >&5
  17760. $as_echo_n "checking for --enable-acctpolicy... " >&6; }
  17761. # Check whether --enable-acctpolicy was given.
  17762. if test "${enable_acctpolicy+set}" = set; then
  17763. enableval=$enable_acctpolicy;
  17764. fi
  17765. if test "$enable_acctpolicy" = yes ; then
  17766. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17767. $as_echo "yes" >&6; }
  17768. cat >>confdefs.h <<\_ACEOF
  17769. #define ENABLE_ACCTPOLICY 1
  17770. _ACEOF
  17771. else
  17772. { $as_echo "$as_me:$LINENO: result: no" >&5
  17773. $as_echo "no" >&6; }
  17774. fi
  17775. if test "$enable_acctpolicy" = "yes"; then
  17776. enable_acctpolicy_TRUE=
  17777. enable_acctpolicy_FALSE='#'
  17778. else
  17779. enable_acctpolicy_TRUE='#'
  17780. enable_acctpolicy_FALSE=
  17781. fi
  17782. # the default prefix - override with --prefix or --with-fhs
  17783. # BEGIN COPYRIGHT BLOCK
  17784. # Copyright (C) 2006 Red Hat, Inc.
  17785. # All rights reserved.
  17786. #
  17787. # This program is free software; you can redistribute it and/or
  17788. # modify it under the terms of the GNU General Public License
  17789. # as published by the Free Software Foundation; either version 2
  17790. # of the License, or (at your option) any later version.
  17791. #
  17792. # This program is distributed in the hope that it will be useful,
  17793. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17794. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17795. # GNU General Public License for more details.
  17796. #
  17797. # You should have received a copy of the GNU General Public License
  17798. # along with this program; if not, write to the Free Software
  17799. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17800. #
  17801. # END COPYRIGHT BLOCK
  17802. { $as_echo "$as_me:$LINENO: checking for FHS..." >&5
  17803. $as_echo "$as_me: checking for FHS..." >&6;}
  17804. # check for --with-fhs
  17805. { $as_echo "$as_me:$LINENO: checking for --with-fhs" >&5
  17806. $as_echo_n "checking for --with-fhs... " >&6; }
  17807. # Check whether --with-fhs was given.
  17808. if test "${with_fhs+set}" = set; then
  17809. withval=$with_fhs;
  17810. with_fhs=yes
  17811. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17812. $as_echo "yes" >&6; }
  17813. else
  17814. { $as_echo "$as_me:$LINENO: result: no" >&5
  17815. $as_echo "no" >&6; }
  17816. fi
  17817. if test "$with_fhs" = "yes"; then
  17818. cat >>confdefs.h <<\_ACEOF
  17819. #define IS_FHS 1
  17820. _ACEOF
  17821. fi
  17822. # check for --with-fhs-opt
  17823. { $as_echo "$as_me:$LINENO: checking for --with-fhs-opt" >&5
  17824. $as_echo_n "checking for --with-fhs-opt... " >&6; }
  17825. # Check whether --with-fhs-opt was given.
  17826. if test "${with_fhs_opt+set}" = set; then
  17827. withval=$with_fhs_opt;
  17828. with_fhs_opt=yes
  17829. { $as_echo "$as_me:$LINENO: result: yes" >&5
  17830. $as_echo "yes" >&6; }
  17831. else
  17832. { $as_echo "$as_me:$LINENO: result: no" >&5
  17833. $as_echo "no" >&6; }
  17834. fi
  17835. if test "$with_fhs_opt" = "yes"; then
  17836. cat >>confdefs.h <<\_ACEOF
  17837. #define IS_FHS_OPT 1
  17838. _ACEOF
  17839. fi
  17840. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  17841. { { $as_echo "$as_me:$LINENO: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&5
  17842. $as_echo "$as_me: error: Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options." >&2;}
  17843. { (exit 1); exit 1; }; }
  17844. fi
  17845. # installation paths - by default, we store everything
  17846. # under the prefix. The with-fhs option will use /usr,
  17847. # /etc, and /var. The with-fhs-opt option will use the
  17848. # prefix, but it's sysconfdir and localstatedir will be
  17849. # /etc/opt, and /var/opt.
  17850. if test "$with_fhs_opt" = "yes"; then
  17851. # Override sysconfdir and localstatedir if FHS optional
  17852. # package was requested.
  17853. sysconfdir='/etc/opt'
  17854. localstatedir='/var/opt'
  17855. # relative to datadir
  17856. sampledatadir=/data
  17857. # relative to datadir
  17858. scripttemplatedir=/script-templates
  17859. # relative to datadir
  17860. updatedir=/updates
  17861. # relative to libdir
  17862. serverdir=
  17863. # relative to includedir
  17864. serverincdir=
  17865. # relative to libdir
  17866. serverplugindir=/plugins
  17867. # relative to datadir
  17868. infdir=/inf
  17869. # relative to datadir
  17870. mibdir=/mibs
  17871. # location of property/resource files, relative to datadir
  17872. propertydir=/properties
  17873. # relative to libdir
  17874. perldir=/perl
  17875. else
  17876. if test "$with_fhs" = "yes"; then
  17877. ac_default_prefix=/usr
  17878. prefix=$ac_default_prefix
  17879. exec_prefix=$prefix
  17880. sysconfdir='/etc'
  17881. localstatedir='/var'
  17882. fi
  17883. # relative to datadir
  17884. sampledatadir=/$PACKAGE_NAME/data
  17885. # relative to datadir
  17886. scripttemplatedir=/$PACKAGE_NAME/script-templates
  17887. # relative to datadir
  17888. updatedir=/$PACKAGE_NAME/updates
  17889. # relative to libdir
  17890. serverdir=/$PACKAGE_NAME
  17891. # relative to includedir
  17892. serverincdir=/$PACKAGE_NAME
  17893. # relative to libdir
  17894. serverplugindir=/$PACKAGE_NAME/plugins
  17895. # relative to datadir
  17896. infdir=/$PACKAGE_NAME/inf
  17897. # relative to datadir
  17898. mibdir=/$PACKAGE_NAME/mibs
  17899. # location of property/resource files, relative to datadir
  17900. propertydir=/$PACKAGE_NAME/properties
  17901. # relative to libdir
  17902. perldir=/$PACKAGE_NAME/perl
  17903. fi
  17904. # if mandir is the default value, override it
  17905. # otherwise, the user must have set it - just use it
  17906. if test X"$mandir" = X'${prefix}/man' ; then
  17907. mandir='$(datadir)/man'
  17908. fi
  17909. # Shared paths for all layouts
  17910. # relative to sysconfdir
  17911. configdir=/$PACKAGE_NAME/config
  17912. # relative to sysconfdir
  17913. schemadir=/$PACKAGE_NAME/schema
  17914. # default user, group
  17915. defaultuser=nobody
  17916. defaultgroup=nobody
  17917. if test -z "$with_tmpfiles_d" ; then
  17918. if test -d $sysconfdir/tmpfiles.d ; then
  17919. with_tmpfiles_d='$(sysconfdir)/tmpfiles.d'
  17920. fi
  17921. fi
  17922. { $as_echo "$as_me:$LINENO: checking for --with-tmpfiles-d" >&5
  17923. $as_echo_n "checking for --with-tmpfiles-d... " >&6; }
  17924. # Check whether --with-tmpfiles-d was given.
  17925. if test "${with_tmpfiles_d+set}" = set; then
  17926. withval=$with_tmpfiles_d;
  17927. fi
  17928. if test "$with_tmpfiles_d" = yes ; then
  17929. { { $as_echo "$as_me:$LINENO: error: You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" >&5
  17930. $as_echo "$as_me: error: You must specify --with-tmpfiles-d=/full/path/to/tmpfiles.d directory" >&2;}
  17931. { (exit 1); exit 1; }; }
  17932. elif test "$with_tmpfiles_d" = no ; then
  17933. with_tmpfiles_d=
  17934. else
  17935. { $as_echo "$as_me:$LINENO: result: $with_tmpfiles_d" >&5
  17936. $as_echo "$with_tmpfiles_d" >&6; }
  17937. fi
  17938. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  17939. if test -n "$ac_tool_prefix"; then
  17940. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17941. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17942. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17943. $as_echo_n "checking for $ac_word... " >&6; }
  17944. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  17945. $as_echo_n "(cached) " >&6
  17946. else
  17947. case $PKG_CONFIG in
  17948. [\\/]* | ?:[\\/]*)
  17949. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17950. ;;
  17951. *)
  17952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17953. for as_dir in $PATH
  17954. do
  17955. IFS=$as_save_IFS
  17956. test -z "$as_dir" && as_dir=.
  17957. for ac_exec_ext in '' $ac_executable_extensions; do
  17958. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17959. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17960. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17961. break 2
  17962. fi
  17963. done
  17964. done
  17965. IFS=$as_save_IFS
  17966. ;;
  17967. esac
  17968. fi
  17969. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17970. if test -n "$PKG_CONFIG"; then
  17971. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  17972. $as_echo "$PKG_CONFIG" >&6; }
  17973. else
  17974. { $as_echo "$as_me:$LINENO: result: no" >&5
  17975. $as_echo "no" >&6; }
  17976. fi
  17977. fi
  17978. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17979. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17980. # Extract the first word of "pkg-config", so it can be a program name with args.
  17981. set dummy pkg-config; ac_word=$2
  17982. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  17983. $as_echo_n "checking for $ac_word... " >&6; }
  17984. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  17985. $as_echo_n "(cached) " >&6
  17986. else
  17987. case $ac_pt_PKG_CONFIG in
  17988. [\\/]* | ?:[\\/]*)
  17989. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17990. ;;
  17991. *)
  17992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17993. for as_dir in $PATH
  17994. do
  17995. IFS=$as_save_IFS
  17996. test -z "$as_dir" && as_dir=.
  17997. for ac_exec_ext in '' $ac_executable_extensions; do
  17998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17999. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18000. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18001. break 2
  18002. fi
  18003. done
  18004. done
  18005. IFS=$as_save_IFS
  18006. ;;
  18007. esac
  18008. fi
  18009. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  18010. if test -n "$ac_pt_PKG_CONFIG"; then
  18011. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  18012. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  18013. else
  18014. { $as_echo "$as_me:$LINENO: result: no" >&5
  18015. $as_echo "no" >&6; }
  18016. fi
  18017. if test "x$ac_pt_PKG_CONFIG" = x; then
  18018. PKG_CONFIG=""
  18019. else
  18020. case $cross_compiling:$ac_tool_warned in
  18021. yes:)
  18022. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  18023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18024. ac_tool_warned=yes ;;
  18025. esac
  18026. PKG_CONFIG=$ac_pt_PKG_CONFIG
  18027. fi
  18028. else
  18029. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  18030. fi
  18031. fi
  18032. if test -n "$PKG_CONFIG"; then
  18033. _pkg_min_version=0.9.0
  18034. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  18035. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  18036. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  18037. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18038. $as_echo "yes" >&6; }
  18039. else
  18040. { $as_echo "$as_me:$LINENO: result: no" >&5
  18041. $as_echo "no" >&6; }
  18042. PKG_CONFIG=""
  18043. fi
  18044. fi
  18045. if test -n "$PKG_CONFIG" ; then
  18046. default_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd`
  18047. default_systemdsystemconfdir=`$PKG_CONFIG --variable=systemdsystemconfdir systemd`
  18048. fi
  18049. { $as_echo "$as_me:$LINENO: checking for --with-systemdsystemunitdir" >&5
  18050. $as_echo_n "checking for --with-systemdsystemunitdir... " >&6; }
  18051. # Check whether --with-systemdsystemunitdir was given.
  18052. if test "${with_systemdsystemunitdir+set}" = set; then
  18053. withval=$with_systemdsystemunitdir;
  18054. fi
  18055. if test "$with_systemdsystemunitdir" = yes ; then
  18056. if test -n "$default_systemdsystemunitdir" ; then
  18057. with_systemdsystemunitdir=$default_systemdsystemunitdir
  18058. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemunitdir" >&5
  18059. $as_echo "$with_systemdsystemunitdir" >&6; }
  18060. else
  18061. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&5
  18062. $as_echo "$as_me: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&2;}
  18063. { (exit 1); exit 1; }; }
  18064. fi
  18065. elif test "$with_systemdsystemunitdir" = no ; then
  18066. with_systemdsystemunitdir=
  18067. else
  18068. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemunitdir" >&5
  18069. $as_echo "$with_systemdsystemunitdir" >&6; }
  18070. fi
  18071. { $as_echo "$as_me:$LINENO: checking for --with-systemdsystemconfdir" >&5
  18072. $as_echo_n "checking for --with-systemdsystemconfdir... " >&6; }
  18073. # Check whether --with-systemdsystemconfdir was given.
  18074. if test "${with_systemdsystemconfdir+set}" = set; then
  18075. withval=$with_systemdsystemconfdir;
  18076. fi
  18077. if test "$with_systemdsystemconfdir" = yes ; then
  18078. if test -n "$default_systemdsystemconfdir" ; then
  18079. with_systemdsystemconfdir=$default_systemdsystemconfdir
  18080. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemconfdir" >&5
  18081. $as_echo "$with_systemdsystemconfdir" >&6; }
  18082. else
  18083. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&5
  18084. $as_echo "$as_me: error: You must specify --with-systemdsystemconfdir=/full/path/to/systemd/system directory" >&2;}
  18085. { (exit 1); exit 1; }; }
  18086. fi
  18087. elif test "$with_systemdsystemconfdir" = no ; then
  18088. with_systemdsystemconfdir=
  18089. else
  18090. { $as_echo "$as_me:$LINENO: result: $with_systemdsystemconfdir" >&5
  18091. $as_echo "$with_systemdsystemconfdir" >&6; }
  18092. fi
  18093. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir" ; then
  18094. if test -z "$with_systemdgroupname" ; then
  18095. with_systemdgroupname=$PACKAGE_NAME.target
  18096. fi
  18097. { $as_echo "$as_me:$LINENO: checking for --with-systemdgroupname" >&5
  18098. $as_echo_n "checking for --with-systemdgroupname... " >&6; }
  18099. # Check whether --with-systemdgroupname was given.
  18100. if test "${with_systemdgroupname+set}" = set; then
  18101. withval=$with_systemdgroupname;
  18102. fi
  18103. if test "$with_systemdgroupname" = yes ; then
  18104. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdgroupname=name.of.group" >&5
  18105. $as_echo "$as_me: error: You must specify --with-systemdgroupname=name.of.group" >&2;}
  18106. { (exit 1); exit 1; }; }
  18107. elif test "$with_systemdgroupname" = no ; then
  18108. { { $as_echo "$as_me:$LINENO: error: You must specify --with-systemdgroupname=name.of.group" >&5
  18109. $as_echo "$as_me: error: You must specify --with-systemdgroupname=name.of.group" >&2;}
  18110. { (exit 1); exit 1; }; }
  18111. else
  18112. { $as_echo "$as_me:$LINENO: result: $with_systemdgroupname" >&5
  18113. $as_echo "$with_systemdgroupname" >&6; }
  18114. fi
  18115. fi
  18116. # check for --with-instconfigdir
  18117. { $as_echo "$as_me:$LINENO: checking for --with-instconfigdir" >&5
  18118. $as_echo_n "checking for --with-instconfigdir... " >&6; }
  18119. # Check whether --with-instconfigdir was given.
  18120. if test "${with_instconfigdir+set}" = set; then
  18121. withval=$with_instconfigdir;
  18122. if test $withval = yes ; then
  18123. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-instconfigdir" >&5
  18124. $as_echo "$as_me: error: Please specify a full path with --with-instconfigdir" >&2;}
  18125. { (exit 1); exit 1; }; }
  18126. fi
  18127. instconfigdir="$withval"
  18128. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  18129. $as_echo "$withval" >&6; }
  18130. else
  18131. instconfigdir='$(sysconfdir)/$(PACKAGE_NAME)'
  18132. { $as_echo "$as_me:$LINENO: result: no" >&5
  18133. $as_echo "no" >&6; }
  18134. fi
  18135. # WINNT should be true if building on Windows system not using
  18136. # cygnus, mingw, or the like and using cmd.exe as the shell
  18137. if false; then
  18138. WINNT_TRUE=
  18139. WINNT_FALSE='#'
  18140. else
  18141. WINNT_TRUE='#'
  18142. WINNT_FALSE=
  18143. fi
  18144. # Deal with platform dependent defines
  18145. # initdir is the location for the SysV init scripts - very heavily platform
  18146. # dependent and not specified in fhs or lsb
  18147. # and not used if systemd is used
  18148. initdir='$(sysconfdir)/rc.d'
  18149. { $as_echo "$as_me:$LINENO: checking for --with-initddir" >&5
  18150. $as_echo_n "checking for --with-initddir... " >&6; }
  18151. # Check whether --with-initddir was given.
  18152. if test "${with_initddir+set}" = set; then
  18153. withval=$with_initddir;
  18154. if test "$withval" = yes -o "$withval" = no ; then
  18155. { { $as_echo "$as_me:$LINENO: error: Please specify a full path with --with-initddir" >&5
  18156. $as_echo "$as_me: error: Please specify a full path with --with-initddir" >&2;}
  18157. { (exit 1); exit 1; }; }
  18158. fi
  18159. { $as_echo "$as_me:$LINENO: result: $withval" >&5
  18160. $as_echo "$withval" >&6; }
  18161. else
  18162. { $as_echo "$as_me:$LINENO: result: no" >&5
  18163. $as_echo "no" >&6; }
  18164. fi
  18165. # on most platforms, we will just use perl from PATH
  18166. # On some platforms, we cannot. Why not just use any old
  18167. # perl? Because of perldap. We use a perldap that is
  18168. # compiled to either 32bit or 64bit, so we must use a native
  18169. # perl binary compiled with the same bitsize. On Solaris
  18170. # and HP-UX, /usr/bin/perl is 32 bit, so we cannot use
  18171. # those with our 64 bit compiled product.
  18172. perlexec='/usr/bin/env perl'
  18173. # we use stty in perl scripts to disable password echo
  18174. # this doesn't work unless the full absolute path of the
  18175. # stty command is used e.g. system("stty -echo") does not
  18176. # work but system("/bin/stty -echo") does work
  18177. # since the path of stty may not be the same on all
  18178. # platforms, we set the default here to /bin/stty and
  18179. # allow that value to be overridden in the platform
  18180. # specific section below
  18181. sttyexec=/bin/stty
  18182. case $host in
  18183. *-*-linux*)
  18184. cat >>confdefs.h <<\_ACEOF
  18185. #define XP_UNIX 1
  18186. _ACEOF
  18187. cat >>confdefs.h <<\_ACEOF
  18188. #define Linux 1
  18189. _ACEOF
  18190. cat >>confdefs.h <<\_ACEOF
  18191. #define LINUX 1
  18192. _ACEOF
  18193. cat >>confdefs.h <<\_ACEOF
  18194. #define LINUX2_0 1
  18195. _ACEOF
  18196. cat >>confdefs.h <<\_ACEOF
  18197. #define LINUX2_2 1
  18198. _ACEOF
  18199. cat >>confdefs.h <<\_ACEOF
  18200. #define LINUX2_4 1
  18201. _ACEOF
  18202. cat >>confdefs.h <<\_ACEOF
  18203. #define _GNU_SOURCE 1
  18204. _ACEOF
  18205. platform="linux"
  18206. initdir='$(sysconfdir)/rc.d/init.d'
  18207. # do arch specific linux stuff here
  18208. case $host in
  18209. i*86-*-linux*)
  18210. cat >>confdefs.h <<\_ACEOF
  18211. #define CPU_x86 /**/
  18212. _ACEOF
  18213. cat >>confdefs.h <<\_ACEOF
  18214. #define ATOMIC_64BIT_OPERATIONS 1
  18215. _ACEOF
  18216. ;;
  18217. x86_64-*-linux*)
  18218. cat >>confdefs.h <<\_ACEOF
  18219. #define CPU_x86_64 /**/
  18220. _ACEOF
  18221. cat >>confdefs.h <<\_ACEOF
  18222. #define ATOMIC_64BIT_OPERATIONS 1
  18223. _ACEOF
  18224. ;;
  18225. esac
  18226. { $as_echo "$as_me:$LINENO: checking for GCC provided 64-bit atomic bool cas function ..." >&5
  18227. $as_echo_n "checking for GCC provided 64-bit atomic bool cas function ...... " >&6; }
  18228. cat >conftest.$ac_ext <<_ACEOF
  18229. /* confdefs.h. */
  18230. _ACEOF
  18231. cat confdefs.h >>conftest.$ac_ext
  18232. cat >>conftest.$ac_ext <<_ACEOF
  18233. /* end confdefs.h. */
  18234. int
  18235. main ()
  18236. {
  18237. long long ptrval = 0, val = 0, newval = 1; (void)__sync_bool_compare_and_swap_8(&ptrval, val, newval);
  18238. ;
  18239. return 0;
  18240. }
  18241. _ACEOF
  18242. rm -f conftest.$ac_objext conftest$ac_exeext
  18243. if { (ac_try="$ac_link"
  18244. case "(($ac_try" in
  18245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18246. *) ac_try_echo=$ac_try;;
  18247. esac
  18248. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18249. $as_echo "$ac_try_echo") >&5
  18250. (eval "$ac_link") 2>conftest.er1
  18251. ac_status=$?
  18252. grep -v '^ *+' conftest.er1 >conftest.err
  18253. rm -f conftest.er1
  18254. cat conftest.err >&5
  18255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18256. (exit $ac_status); } && {
  18257. test -z "$ac_c_werror_flag" ||
  18258. test ! -s conftest.err
  18259. } && test -s conftest$ac_exeext && {
  18260. test "$cross_compiling" = yes ||
  18261. $as_test_x conftest$ac_exeext
  18262. }; then
  18263. cat >>confdefs.h <<\_ACEOF
  18264. #define HAVE_64BIT_ATOMIC_CAS_FUNC 1
  18265. _ACEOF
  18266. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18267. $as_echo "yes" >&6; }
  18268. else
  18269. $as_echo "$as_me: failed program was:" >&5
  18270. sed 's/^/| /' conftest.$ac_ext >&5
  18271. { $as_echo "$as_me:$LINENO: result: no" >&5
  18272. $as_echo "no" >&6; }
  18273. fi
  18274. rm -rf conftest.dSYM
  18275. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18276. conftest$ac_exeext conftest.$ac_ext
  18277. { $as_echo "$as_me:$LINENO: checking for GCC provided 64-bit atomic ops functions ..." >&5
  18278. $as_echo_n "checking for GCC provided 64-bit atomic ops functions ...... " >&6; }
  18279. cat >conftest.$ac_ext <<_ACEOF
  18280. /* confdefs.h. */
  18281. _ACEOF
  18282. cat confdefs.h >>conftest.$ac_ext
  18283. cat >>conftest.$ac_ext <<_ACEOF
  18284. /* end confdefs.h. */
  18285. int
  18286. main ()
  18287. {
  18288. long long ptrval = 0, val = 0; (void)__sync_add_and_fetch_8(&ptrval, val);
  18289. ;
  18290. return 0;
  18291. }
  18292. _ACEOF
  18293. rm -f conftest.$ac_objext conftest$ac_exeext
  18294. if { (ac_try="$ac_link"
  18295. case "(($ac_try" in
  18296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18297. *) ac_try_echo=$ac_try;;
  18298. esac
  18299. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18300. $as_echo "$ac_try_echo") >&5
  18301. (eval "$ac_link") 2>conftest.er1
  18302. ac_status=$?
  18303. grep -v '^ *+' conftest.er1 >conftest.err
  18304. rm -f conftest.er1
  18305. cat conftest.err >&5
  18306. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18307. (exit $ac_status); } && {
  18308. test -z "$ac_c_werror_flag" ||
  18309. test ! -s conftest.err
  18310. } && test -s conftest$ac_exeext && {
  18311. test "$cross_compiling" = yes ||
  18312. $as_test_x conftest$ac_exeext
  18313. }; then
  18314. cat >>confdefs.h <<\_ACEOF
  18315. #define HAVE_64BIT_ATOMIC_OP_FUNCS 1
  18316. _ACEOF
  18317. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18318. $as_echo "yes" >&6; }
  18319. else
  18320. $as_echo "$as_me: failed program was:" >&5
  18321. sed 's/^/| /' conftest.$ac_ext >&5
  18322. { $as_echo "$as_me:$LINENO: result: no" >&5
  18323. $as_echo "no" >&6; }
  18324. fi
  18325. rm -rf conftest.dSYM
  18326. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18327. conftest$ac_exeext conftest.$ac_ext
  18328. # some programs use the native thread library directly
  18329. THREADLIB=-lpthread
  18330. THREADLIB=$THREADLIB
  18331. LIBCRYPT=-lcrypt
  18332. LIBCRYPT=$LIBCRYPT
  18333. cat >>confdefs.h <<\_ACEOF
  18334. #define USE_POSIX_RWLOCKS 1
  18335. _ACEOF
  18336. ;;
  18337. ia64-hp-hpux*)
  18338. cat >>confdefs.h <<\_ACEOF
  18339. #define XP_UNIX 1
  18340. _ACEOF
  18341. cat >>confdefs.h <<\_ACEOF
  18342. #define hpux 1
  18343. _ACEOF
  18344. cat >>confdefs.h <<\_ACEOF
  18345. #define HPUX 1
  18346. _ACEOF
  18347. cat >>confdefs.h <<\_ACEOF
  18348. #define HPUX11 1
  18349. _ACEOF
  18350. cat >>confdefs.h <<\_ACEOF
  18351. #define HPUX11_23 1
  18352. _ACEOF
  18353. cat >>confdefs.h <<\_ACEOF
  18354. #define CPU_ia64 /**/
  18355. _ACEOF
  18356. cat >>confdefs.h <<\_ACEOF
  18357. #define OS_hpux 1
  18358. _ACEOF
  18359. cat >>confdefs.h <<\_ACEOF
  18360. #define _POSIX_C_SOURCE 199506L
  18361. _ACEOF
  18362. cat >>confdefs.h <<\_ACEOF
  18363. #define _HPUX_SOURCE 1
  18364. _ACEOF
  18365. cat >>confdefs.h <<\_ACEOF
  18366. #define _INCLUDE_STDC__SOURCE_199901 1
  18367. _ACEOF
  18368. # assume 64 bit
  18369. perlexec='/opt/perl_64/bin/perl'
  18370. platform="hpux"
  18371. initconfigdir="/$PACKAGE_NAME/config"
  18372. # HPUX doesn't use /etc for this
  18373. initdir=/init.d
  18374. ;;
  18375. hppa*-hp-hpux*)
  18376. cat >>confdefs.h <<\_ACEOF
  18377. #define XP_UNIX 1
  18378. _ACEOF
  18379. cat >>confdefs.h <<\_ACEOF
  18380. #define hpux 1
  18381. _ACEOF
  18382. cat >>confdefs.h <<\_ACEOF
  18383. #define HPUX 1
  18384. _ACEOF
  18385. cat >>confdefs.h <<\_ACEOF
  18386. #define HPUX11 1
  18387. _ACEOF
  18388. cat >>confdefs.h <<\_ACEOF
  18389. #define HPUX11_11 1
  18390. _ACEOF
  18391. cat >>confdefs.h <<\_ACEOF
  18392. #define CPU_hppa /**/
  18393. _ACEOF
  18394. cat >>confdefs.h <<\_ACEOF
  18395. #define OS_hpux 1
  18396. _ACEOF
  18397. cat >>confdefs.h <<\_ACEOF
  18398. #define _POSIX_C_SOURCE 199506L
  18399. _ACEOF
  18400. cat >>confdefs.h <<\_ACEOF
  18401. #define _HPUX_SOURCE 1
  18402. _ACEOF
  18403. cat >>confdefs.h <<\_ACEOF
  18404. #define _INCLUDE_STDC__SOURCE_199901 1
  18405. _ACEOF
  18406. cat >>confdefs.h <<\_ACEOF
  18407. #define ATOMIC_64BIT_OPERATIONS 1
  18408. _ACEOF
  18409. # assume 64 bit
  18410. initconfigdir="/$PACKAGE_NAME/config"
  18411. perlexec='/opt/perl_64/bin/perl'
  18412. platform="hpux"
  18413. # HPUX doesn't use /etc for this
  18414. initdir=/init.d
  18415. ;;
  18416. sparc-sun-solaris*)
  18417. cat >>confdefs.h <<\_ACEOF
  18418. #define XP_UNIX 1
  18419. _ACEOF
  18420. cat >>confdefs.h <<\_ACEOF
  18421. #define SVR4 1
  18422. _ACEOF
  18423. cat >>confdefs.h <<\_ACEOF
  18424. #define __svr4 1
  18425. _ACEOF
  18426. cat >>confdefs.h <<\_ACEOF
  18427. #define __svr4__ 1
  18428. _ACEOF
  18429. cat >>confdefs.h <<\_ACEOF
  18430. #define _SVID_GETTOD 1
  18431. _ACEOF
  18432. cat >>confdefs.h <<\_ACEOF
  18433. #define SOLARIS 1
  18434. _ACEOF
  18435. cat >>confdefs.h <<\_ACEOF
  18436. #define CPU_sparc /**/
  18437. _ACEOF
  18438. cat >>confdefs.h <<\_ACEOF
  18439. #define OS_solaris 1
  18440. _ACEOF
  18441. cat >>confdefs.h <<\_ACEOF
  18442. #define sunos5 1
  18443. _ACEOF
  18444. cat >>confdefs.h <<\_ACEOF
  18445. #define OSVERSION 509
  18446. _ACEOF
  18447. cat >>confdefs.h <<\_ACEOF
  18448. #define _REENTRANT 1
  18449. _ACEOF
  18450. cat >>confdefs.h <<\_ACEOF
  18451. #define NO_DOMAINNAME 1
  18452. _ACEOF
  18453. cat >>confdefs.h <<\_ACEOF
  18454. #define ATOMIC_64BIT_OPERATIONS 1
  18455. _ACEOF
  18456. LIBSOCKET=-lsocket
  18457. LIBSOCKET=$LIBSOCKET
  18458. LIBNSL=-lnsl
  18459. LIBNSL=$LIBNSL
  18460. LIBDL=-ldl
  18461. LIBDL=$LIBDL
  18462. LIBCSTD=-lCstd
  18463. LIBCSTD=$LIBCSTD
  18464. LIBCRUN=-lCrun
  18465. LIBCRUN=$LIBCRUN
  18466. platform="solaris"
  18467. # assume 64 bit
  18468. perlexec='/usr/lib/sparcv9/dirsec/perl5x/bin/perl'
  18469. initdir='$(sysconfdir)/init.d'
  18470. ;;
  18471. *)
  18472. platform=""
  18473. ;;
  18474. esac
  18475. # cmd line overrides default setting above
  18476. if test -n "$with_initddir" ; then
  18477. initdir="$with_initddir"
  18478. fi
  18479. # sysv init scripts not used when systemd is used
  18480. # set default initconfigdir if not already set
  18481. # value will be set so as to be relative to $(sysconfdir)
  18482. if test -z "$initconfigdir" ; then
  18483. if test -d /etc/sysconfig ; then
  18484. initconfigdir=/sysconfig
  18485. elif test -d /etc/default ; then
  18486. initconfigdir=/default
  18487. else
  18488. initconfigdir="/$PACKAGE_NAME/config"
  18489. fi
  18490. fi
  18491. if test "$platform" = "hpux"; then
  18492. HPUX_TRUE=
  18493. HPUX_FALSE='#'
  18494. else
  18495. HPUX_TRUE='#'
  18496. HPUX_FALSE=
  18497. fi
  18498. if test "$platform" = "solaris"; then
  18499. SOLARIS_TRUE=
  18500. SOLARIS_FALSE='#'
  18501. else
  18502. SOLARIS_TRUE='#'
  18503. SOLARIS_FALSE=
  18504. fi
  18505. if test -n "$with_systemdsystemunitdir" -o -n "$with_systemdsystemconfdir"; then
  18506. SYSTEMD_TRUE=
  18507. SYSTEMD_FALSE='#'
  18508. else
  18509. SYSTEMD_TRUE='#'
  18510. SYSTEMD_FALSE=
  18511. fi
  18512. # Check for library dependencies
  18513. # BEGIN COPYRIGHT BLOCK
  18514. # Copyright (C) 2007 Red Hat, Inc.
  18515. # All rights reserved.
  18516. #
  18517. # This program is free software; you can redistribute it and/or
  18518. # modify it under the terms of the GNU General Public License
  18519. # as published by the Free Software Foundation; either version 2
  18520. # of the License, or (at your option) any later version.
  18521. #
  18522. # This program is distributed in the hope that it will be useful,
  18523. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18524. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18525. # GNU General Public License for more details.
  18526. #
  18527. # You should have received a copy of the GNU General Public License
  18528. # along with this program; if not, write to the Free Software
  18529. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18530. #
  18531. # END COPYRIGHT BLOCK
  18532. { $as_echo "$as_me:$LINENO: checking for NSPR..." >&5
  18533. $as_echo "$as_me: checking for NSPR..." >&6;}
  18534. # check for --with-nspr
  18535. { $as_echo "$as_me:$LINENO: checking for --with-nspr" >&5
  18536. $as_echo_n "checking for --with-nspr... " >&6; }
  18537. # Check whether --with-nspr was given.
  18538. if test "${with_nspr+set}" = set; then
  18539. withval=$with_nspr;
  18540. if test "$withval" = "yes"
  18541. then
  18542. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18543. $as_echo "yes" >&6; }
  18544. elif test "$withval" = "no"
  18545. then
  18546. { $as_echo "$as_me:$LINENO: result: no" >&5
  18547. $as_echo "no" >&6; }
  18548. { { $as_echo "$as_me:$LINENO: error: NSPR is required." >&5
  18549. $as_echo "$as_me: error: NSPR is required." >&2;}
  18550. { (exit 1); exit 1; }; }
  18551. elif test -e "$withval"/include/nspr.h -a -d "$withval"/lib
  18552. then
  18553. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18554. $as_echo "using $withval" >&6; }
  18555. NSPRDIR=$withval
  18556. nspr_inc="-I$NSPRDIR/include"
  18557. nspr_lib="-L$NSPRDIR/lib"
  18558. nspr_libdir="$NSPRDIR/lib"
  18559. else
  18560. echo
  18561. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18562. $as_echo "$as_me: error: $withval not found" >&2;}
  18563. { (exit 1); exit 1; }; }
  18564. fi
  18565. else
  18566. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18567. $as_echo "yes" >&6; }
  18568. fi
  18569. # check for --with-nspr-inc
  18570. { $as_echo "$as_me:$LINENO: checking for --with-nspr-inc" >&5
  18571. $as_echo_n "checking for --with-nspr-inc... " >&6; }
  18572. # Check whether --with-nspr-inc was given.
  18573. if test "${with_nspr_inc+set}" = set; then
  18574. withval=$with_nspr_inc;
  18575. if test -e "$withval"/nspr.h
  18576. then
  18577. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18578. $as_echo "using $withval" >&6; }
  18579. nspr_inc="-I$withval"
  18580. else
  18581. echo
  18582. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18583. $as_echo "$as_me: error: $withval not found" >&2;}
  18584. { (exit 1); exit 1; }; }
  18585. fi
  18586. else
  18587. { $as_echo "$as_me:$LINENO: result: no" >&5
  18588. $as_echo "no" >&6; }
  18589. fi
  18590. # check for --with-nspr-lib
  18591. { $as_echo "$as_me:$LINENO: checking for --with-nspr-lib" >&5
  18592. $as_echo_n "checking for --with-nspr-lib... " >&6; }
  18593. # Check whether --with-nspr-lib was given.
  18594. if test "${with_nspr_lib+set}" = set; then
  18595. withval=$with_nspr_lib;
  18596. if test -d "$withval"
  18597. then
  18598. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18599. $as_echo "using $withval" >&6; }
  18600. nspr_lib="-L$withval"
  18601. nspr_libdir="$withval"
  18602. else
  18603. echo
  18604. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18605. $as_echo "$as_me: error: $withval not found" >&2;}
  18606. { (exit 1); exit 1; }; }
  18607. fi
  18608. else
  18609. { $as_echo "$as_me:$LINENO: result: no" >&5
  18610. $as_echo "no" >&6; }
  18611. fi
  18612. # if NSPR is not found yet, try pkg-config
  18613. # last resort
  18614. if test -z "$nspr_inc" -o -z "$nspr_lib" -o -z "$nspr_libdir"; then
  18615. # Extract the first word of "pkg-config", so it can be a program name with args.
  18616. set dummy pkg-config; ac_word=$2
  18617. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18618. $as_echo_n "checking for $ac_word... " >&6; }
  18619. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18620. $as_echo_n "(cached) " >&6
  18621. else
  18622. case $PKG_CONFIG in
  18623. [\\/]* | ?:[\\/]*)
  18624. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18625. ;;
  18626. *)
  18627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18628. for as_dir in $PATH
  18629. do
  18630. IFS=$as_save_IFS
  18631. test -z "$as_dir" && as_dir=.
  18632. for ac_exec_ext in '' $ac_executable_extensions; do
  18633. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18634. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18635. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18636. break 2
  18637. fi
  18638. done
  18639. done
  18640. IFS=$as_save_IFS
  18641. ;;
  18642. esac
  18643. fi
  18644. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18645. if test -n "$PKG_CONFIG"; then
  18646. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18647. $as_echo "$PKG_CONFIG" >&6; }
  18648. else
  18649. { $as_echo "$as_me:$LINENO: result: no" >&5
  18650. $as_echo "no" >&6; }
  18651. fi
  18652. { $as_echo "$as_me:$LINENO: checking for nspr with pkg-config" >&5
  18653. $as_echo_n "checking for nspr with pkg-config... " >&6; }
  18654. if test -n "$PKG_CONFIG"; then
  18655. if $PKG_CONFIG --exists nspr; then
  18656. nspr_inc=`$PKG_CONFIG --cflags-only-I nspr`
  18657. nspr_lib=`$PKG_CONFIG --libs-only-L nspr`
  18658. nspr_libdir=`$PKG_CONFIG --libs-only-L nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18659. { $as_echo "$as_me:$LINENO: result: using system NSPR" >&5
  18660. $as_echo "using system NSPR" >&6; }
  18661. elif $PKG_CONFIG --exists dirsec-nspr; then
  18662. nspr_inc=`$PKG_CONFIG --cflags-only-I dirsec-nspr`
  18663. nspr_lib=`$PKG_CONFIG --libs-only-L dirsec-nspr`
  18664. nspr_libdir=`$PKG_CONFIG --libs-only-L dirsec-nspr | sed -e s/-L// | sed -e s/\ .*$//`
  18665. { $as_echo "$as_me:$LINENO: result: using system dirsec NSPR" >&5
  18666. $as_echo "using system dirsec NSPR" >&6; }
  18667. else
  18668. { { $as_echo "$as_me:$LINENO: error: NSPR not found, specify with --with-nspr." >&5
  18669. $as_echo "$as_me: error: NSPR not found, specify with --with-nspr." >&2;}
  18670. { (exit 1); exit 1; }; }
  18671. fi
  18672. fi
  18673. fi
  18674. # BEGIN COPYRIGHT BLOCK
  18675. # Copyright (C) 2007 Red Hat, Inc.
  18676. # All rights reserved.
  18677. #
  18678. # This program is free software; you can redistribute it and/or
  18679. # modify it under the terms of the GNU General Public License
  18680. # as published by the Free Software Foundation; either version 2
  18681. # of the License, or (at your option) any later version.
  18682. #
  18683. # This program is distributed in the hope that it will be useful,
  18684. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18685. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18686. # GNU General Public License for more details.
  18687. #
  18688. # You should have received a copy of the GNU General Public License
  18689. # along with this program; if not, write to the Free Software
  18690. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18691. #
  18692. # END COPYRIGHT BLOCK
  18693. { $as_echo "$as_me:$LINENO: checking for NSS..." >&5
  18694. $as_echo "$as_me: checking for NSS..." >&6;}
  18695. # check for --with-nss
  18696. { $as_echo "$as_me:$LINENO: checking for --with-nss" >&5
  18697. $as_echo_n "checking for --with-nss... " >&6; }
  18698. # Check whether --with-nss was given.
  18699. if test "${with_nss+set}" = set; then
  18700. withval=$with_nss;
  18701. if test "$withval" = "yes"
  18702. then
  18703. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18704. $as_echo "yes" >&6; }
  18705. elif test "$withval" = "no"
  18706. then
  18707. { $as_echo "$as_me:$LINENO: result: no" >&5
  18708. $as_echo "no" >&6; }
  18709. { { $as_echo "$as_me:$LINENO: error: NSS is required." >&5
  18710. $as_echo "$as_me: error: NSS is required." >&2;}
  18711. { (exit 1); exit 1; }; }
  18712. elif test -e "$withval"/include/nss.h -a -d "$withval"/lib
  18713. then
  18714. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18715. $as_echo "using $withval" >&6; }
  18716. NSSDIR=$withval
  18717. nss_inc="-I$NSSDIR/include"
  18718. nss_lib="-L$NSSDIR/lib"
  18719. nss_libdir="$NSSDIR/lib"
  18720. else
  18721. echo
  18722. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18723. $as_echo "$as_me: error: $withval not found" >&2;}
  18724. { (exit 1); exit 1; }; }
  18725. fi
  18726. else
  18727. { $as_echo "$as_me:$LINENO: result: yes" >&5
  18728. $as_echo "yes" >&6; }
  18729. fi
  18730. # check for --with-nss-inc
  18731. { $as_echo "$as_me:$LINENO: checking for --with-nss-inc" >&5
  18732. $as_echo_n "checking for --with-nss-inc... " >&6; }
  18733. # Check whether --with-nss-inc was given.
  18734. if test "${with_nss_inc+set}" = set; then
  18735. withval=$with_nss_inc;
  18736. if test -e "$withval"/nss.h
  18737. then
  18738. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18739. $as_echo "using $withval" >&6; }
  18740. nss_inc="-I$withval"
  18741. else
  18742. echo
  18743. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18744. $as_echo "$as_me: error: $withval not found" >&2;}
  18745. { (exit 1); exit 1; }; }
  18746. fi
  18747. else
  18748. { $as_echo "$as_me:$LINENO: result: no" >&5
  18749. $as_echo "no" >&6; }
  18750. fi
  18751. # check for --with-nss-lib
  18752. { $as_echo "$as_me:$LINENO: checking for --with-nss-lib" >&5
  18753. $as_echo_n "checking for --with-nss-lib... " >&6; }
  18754. # Check whether --with-nss-lib was given.
  18755. if test "${with_nss_lib+set}" = set; then
  18756. withval=$with_nss_lib;
  18757. if test -d "$withval"
  18758. then
  18759. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18760. $as_echo "using $withval" >&6; }
  18761. nss_lib="-L$withval"
  18762. nss_libdir="$withval"
  18763. else
  18764. echo
  18765. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18766. $as_echo "$as_me: error: $withval not found" >&2;}
  18767. { (exit 1); exit 1; }; }
  18768. fi
  18769. else
  18770. { $as_echo "$as_me:$LINENO: result: no" >&5
  18771. $as_echo "no" >&6; }
  18772. fi
  18773. # if NSS is not found yet, try pkg-config
  18774. # last resort
  18775. if test -z "$nss_inc" -o -z "$nss_lib" -o -z "$nss_libdir"; then
  18776. # Extract the first word of "pkg-config", so it can be a program name with args.
  18777. set dummy pkg-config; ac_word=$2
  18778. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18779. $as_echo_n "checking for $ac_word... " >&6; }
  18780. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18781. $as_echo_n "(cached) " >&6
  18782. else
  18783. case $PKG_CONFIG in
  18784. [\\/]* | ?:[\\/]*)
  18785. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18786. ;;
  18787. *)
  18788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18789. for as_dir in $PATH
  18790. do
  18791. IFS=$as_save_IFS
  18792. test -z "$as_dir" && as_dir=.
  18793. for ac_exec_ext in '' $ac_executable_extensions; do
  18794. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18795. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18796. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18797. break 2
  18798. fi
  18799. done
  18800. done
  18801. IFS=$as_save_IFS
  18802. ;;
  18803. esac
  18804. fi
  18805. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18806. if test -n "$PKG_CONFIG"; then
  18807. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18808. $as_echo "$PKG_CONFIG" >&6; }
  18809. else
  18810. { $as_echo "$as_me:$LINENO: result: no" >&5
  18811. $as_echo "no" >&6; }
  18812. fi
  18813. { $as_echo "$as_me:$LINENO: checking for nss with pkg-config" >&5
  18814. $as_echo_n "checking for nss with pkg-config... " >&6; }
  18815. if test -n "$PKG_CONFIG"; then
  18816. if $PKG_CONFIG --exists nss; then
  18817. nss_inc=`$PKG_CONFIG --cflags-only-I nss`
  18818. nss_lib=`$PKG_CONFIG --libs-only-L nss`
  18819. nss_libdir=`$PKG_CONFIG --libs-only-L nss | sed -e s/-L// | sed -e s/\ .*$//`
  18820. { $as_echo "$as_me:$LINENO: result: using system NSS" >&5
  18821. $as_echo "using system NSS" >&6; }
  18822. elif $PKG_CONFIG --exists dirsec-nss; then
  18823. nss_inc=`$PKG_CONFIG --cflags-only-I dirsec-nss`
  18824. nss_lib=`$PKG_CONFIG --libs-only-L dirsec-nss`
  18825. nss_libdir=`$PKG_CONFIG --libs-only-L dirsec-nss | sed -e s/-L// | sed -e s/\ .*$//`
  18826. { $as_echo "$as_me:$LINENO: result: using system dirsec NSS" >&5
  18827. $as_echo "using system dirsec NSS" >&6; }
  18828. else
  18829. { { $as_echo "$as_me:$LINENO: error: NSS not found, specify with --with-nss." >&5
  18830. $as_echo "$as_me: error: NSS not found, specify with --with-nss." >&2;}
  18831. { (exit 1); exit 1; }; }
  18832. fi
  18833. fi
  18834. fi
  18835. # BEGIN COPYRIGHT BLOCK
  18836. # Copyright (C) 2009 Red Hat, Inc.
  18837. # All rights reserved.
  18838. #
  18839. # This program is free software; you can redistribute it and/or
  18840. # modify it under the terms of the GNU General Public License
  18841. # as published by the Free Software Foundation; either version 2
  18842. # of the License, or (at your option) any later version.
  18843. #
  18844. # This program is distributed in the hope that it will be useful,
  18845. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18846. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18847. # GNU General Public License for more details.
  18848. #
  18849. # You should have received a copy of the GNU General Public License
  18850. # along with this program; if not, write to the Free Software
  18851. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18852. #
  18853. # END COPYRIGHT BLOCK
  18854. { $as_echo "$as_me:$LINENO: checking for OpenLDAP..." >&5
  18855. $as_echo "$as_me: checking for OpenLDAP..." >&6;}
  18856. # check for --with-openldap
  18857. { $as_echo "$as_me:$LINENO: checking for --with-openldap" >&5
  18858. $as_echo_n "checking for --with-openldap... " >&6; }
  18859. # Check whether --with-openldap was given.
  18860. if test "${with_openldap+set}" = set; then
  18861. withval=$with_openldap;
  18862. if test "$withval" = yes
  18863. then
  18864. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP" >&5
  18865. $as_echo "using system OpenLDAP" >&6; }
  18866. elif test "$withval" = no
  18867. then
  18868. { $as_echo "$as_me:$LINENO: result: no" >&5
  18869. $as_echo "no" >&6; }
  18870. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  18871. then
  18872. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18873. $as_echo "using $withval" >&6; }
  18874. OPENLDAPDIR=$withval
  18875. openldap_incdir="$OPENLDAPDIR/include"
  18876. openldap_inc="-I$openldap_incdir"
  18877. openldap_lib="-L$OPENLDAPDIR/lib"
  18878. openldap_libdir="$OPENLDAPDIR/lib"
  18879. openldap_bindir="$OPENLDAPDIR/bin"
  18880. with_openldap=yes
  18881. else
  18882. echo
  18883. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18884. $as_echo "$as_me: error: $withval not found" >&2;}
  18885. { (exit 1); exit 1; }; }
  18886. fi
  18887. else
  18888. { $as_echo "$as_me:$LINENO: result: no" >&5
  18889. $as_echo "no" >&6; }
  18890. fi
  18891. # check for --with-openldap-inc
  18892. { $as_echo "$as_me:$LINENO: checking for --with-openldap-inc" >&5
  18893. $as_echo_n "checking for --with-openldap-inc... " >&6; }
  18894. # Check whether --with-openldap-inc was given.
  18895. if test "${with_openldap_inc+set}" = set; then
  18896. withval=$with_openldap_inc;
  18897. if test -e "$withval"/ldap.h
  18898. then
  18899. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18900. $as_echo "using $withval" >&6; }
  18901. openldap_incdir="$withval"
  18902. openldap_inc="-I$withval"
  18903. with_openldap=yes
  18904. else
  18905. echo
  18906. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18907. $as_echo "$as_me: error: $withval not found" >&2;}
  18908. { (exit 1); exit 1; }; }
  18909. fi
  18910. else
  18911. { $as_echo "$as_me:$LINENO: result: no" >&5
  18912. $as_echo "no" >&6; }
  18913. fi
  18914. # check for --with-openldap-lib
  18915. { $as_echo "$as_me:$LINENO: checking for --with-openldap-lib" >&5
  18916. $as_echo_n "checking for --with-openldap-lib... " >&6; }
  18917. # Check whether --with-openldap-lib was given.
  18918. if test "${with_openldap_lib+set}" = set; then
  18919. withval=$with_openldap_lib;
  18920. if test -d "$withval"
  18921. then
  18922. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18923. $as_echo "using $withval" >&6; }
  18924. openldap_lib="-L$withval"
  18925. openldap_libdir="$withval"
  18926. with_openldap=yes
  18927. else
  18928. echo
  18929. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18930. $as_echo "$as_me: error: $withval not found" >&2;}
  18931. { (exit 1); exit 1; }; }
  18932. fi
  18933. else
  18934. { $as_echo "$as_me:$LINENO: result: no" >&5
  18935. $as_echo "no" >&6; }
  18936. fi
  18937. # check for --with-openldap-bin
  18938. { $as_echo "$as_me:$LINENO: checking for --with-openldap-bin" >&5
  18939. $as_echo_n "checking for --with-openldap-bin... " >&6; }
  18940. # Check whether --with-openldap-bin was given.
  18941. if test "${with_openldap_bin+set}" = set; then
  18942. withval=$with_openldap_bin;
  18943. if test -d "$withval"
  18944. then
  18945. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  18946. $as_echo "using $withval" >&6; }
  18947. openldap_bindir="$withval"
  18948. with_openldap=yes
  18949. else
  18950. echo
  18951. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  18952. $as_echo "$as_me: error: $withval not found" >&2;}
  18953. { (exit 1); exit 1; }; }
  18954. fi
  18955. else
  18956. { $as_echo "$as_me:$LINENO: result: no" >&5
  18957. $as_echo "no" >&6; }
  18958. fi
  18959. # if OPENLDAP is not found yet, try pkg-config
  18960. if test "$with_openldap" = yes ; then # user wants to use openldap, but didn't specify paths
  18961. if test -z "$openldap_inc" -o -z "$openldap_lib" -o -z "$openldap_libdir" -o -z "$openldap_bindir"; then
  18962. # Extract the first word of "pkg-config", so it can be a program name with args.
  18963. set dummy pkg-config; ac_word=$2
  18964. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  18965. $as_echo_n "checking for $ac_word... " >&6; }
  18966. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  18967. $as_echo_n "(cached) " >&6
  18968. else
  18969. case $PKG_CONFIG in
  18970. [\\/]* | ?:[\\/]*)
  18971. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18972. ;;
  18973. *)
  18974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18975. for as_dir in $PATH
  18976. do
  18977. IFS=$as_save_IFS
  18978. test -z "$as_dir" && as_dir=.
  18979. for ac_exec_ext in '' $ac_executable_extensions; do
  18980. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18981. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18982. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18983. break 2
  18984. fi
  18985. done
  18986. done
  18987. IFS=$as_save_IFS
  18988. ;;
  18989. esac
  18990. fi
  18991. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18992. if test -n "$PKG_CONFIG"; then
  18993. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  18994. $as_echo "$PKG_CONFIG" >&6; }
  18995. else
  18996. { $as_echo "$as_me:$LINENO: result: no" >&5
  18997. $as_echo "no" >&6; }
  18998. fi
  18999. { $as_echo "$as_me:$LINENO: checking for OpenLDAP with pkg-config" >&5
  19000. $as_echo_n "checking for OpenLDAP with pkg-config... " >&6; }
  19001. if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists openldap; then
  19002. openldap_inc=`$PKG_CONFIG --cflags-only-I openldap`
  19003. openldap_lib=`$PKG_CONFIG --libs-only-L openldap`
  19004. openldap_libdir=`$PKG_CONFIG --libs-only-L openldap | sed -e s/-L// | sed -e s/\ .*$//`
  19005. openldap_bindir=`$PKG_CONFIG --variable=bindir openldap`
  19006. openldap_incdir=`$PKG_CONFIG --variable=includedir openldap`
  19007. { $as_echo "$as_me:$LINENO: result: using system OpenLDAP from pkg-config" >&5
  19008. $as_echo "using system OpenLDAP from pkg-config" >&6; }
  19009. else
  19010. openldap_incdir="/usr/include"
  19011. openldap_inc="-I$openldap_incdir"
  19012. { $as_echo "$as_me:$LINENO: result: no OpenLDAP pkg-config files" >&5
  19013. $as_echo "no OpenLDAP pkg-config files" >&6; }
  19014. fi
  19015. fi
  19016. fi
  19017. if test "$with_openldap" = yes ; then
  19018. save_cppflags="$CPPFLAGS"
  19019. CPPFLAGS="$openldap_inc $nss_inc $nspr_inc"
  19020. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  19021. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  19022. $as_echo_n "checking for ldap_features.h... " >&6; }
  19023. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  19024. $as_echo_n "(cached) " >&6
  19025. fi
  19026. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  19027. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  19028. else
  19029. # Is the header compilable?
  19030. { $as_echo "$as_me:$LINENO: checking ldap_features.h usability" >&5
  19031. $as_echo_n "checking ldap_features.h usability... " >&6; }
  19032. cat >conftest.$ac_ext <<_ACEOF
  19033. /* confdefs.h. */
  19034. _ACEOF
  19035. cat confdefs.h >>conftest.$ac_ext
  19036. cat >>conftest.$ac_ext <<_ACEOF
  19037. /* end confdefs.h. */
  19038. $ac_includes_default
  19039. #include <ldap_features.h>
  19040. _ACEOF
  19041. rm -f conftest.$ac_objext
  19042. if { (ac_try="$ac_compile"
  19043. case "(($ac_try" in
  19044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19045. *) ac_try_echo=$ac_try;;
  19046. esac
  19047. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19048. $as_echo "$ac_try_echo") >&5
  19049. (eval "$ac_compile") 2>conftest.er1
  19050. ac_status=$?
  19051. grep -v '^ *+' conftest.er1 >conftest.err
  19052. rm -f conftest.er1
  19053. cat conftest.err >&5
  19054. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19055. (exit $ac_status); } && {
  19056. test -z "$ac_c_werror_flag" ||
  19057. test ! -s conftest.err
  19058. } && test -s conftest.$ac_objext; then
  19059. ac_header_compiler=yes
  19060. else
  19061. $as_echo "$as_me: failed program was:" >&5
  19062. sed 's/^/| /' conftest.$ac_ext >&5
  19063. ac_header_compiler=no
  19064. fi
  19065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19066. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19067. $as_echo "$ac_header_compiler" >&6; }
  19068. # Is the header present?
  19069. { $as_echo "$as_me:$LINENO: checking ldap_features.h presence" >&5
  19070. $as_echo_n "checking ldap_features.h presence... " >&6; }
  19071. cat >conftest.$ac_ext <<_ACEOF
  19072. /* confdefs.h. */
  19073. _ACEOF
  19074. cat confdefs.h >>conftest.$ac_ext
  19075. cat >>conftest.$ac_ext <<_ACEOF
  19076. /* end confdefs.h. */
  19077. #include <ldap_features.h>
  19078. _ACEOF
  19079. if { (ac_try="$ac_cpp conftest.$ac_ext"
  19080. case "(($ac_try" in
  19081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19082. *) ac_try_echo=$ac_try;;
  19083. esac
  19084. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19085. $as_echo "$ac_try_echo") >&5
  19086. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  19087. ac_status=$?
  19088. grep -v '^ *+' conftest.er1 >conftest.err
  19089. rm -f conftest.er1
  19090. cat conftest.err >&5
  19091. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19092. (exit $ac_status); } >/dev/null && {
  19093. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  19094. test ! -s conftest.err
  19095. }; then
  19096. ac_header_preproc=yes
  19097. else
  19098. $as_echo "$as_me: failed program was:" >&5
  19099. sed 's/^/| /' conftest.$ac_ext >&5
  19100. ac_header_preproc=no
  19101. fi
  19102. rm -f conftest.err conftest.$ac_ext
  19103. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19104. $as_echo "$ac_header_preproc" >&6; }
  19105. # So? What about this header?
  19106. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19107. yes:no: )
  19108. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&5
  19109. $as_echo "$as_me: WARNING: ldap_features.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19110. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the compiler's result" >&5
  19111. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the compiler's result" >&2;}
  19112. ac_header_preproc=yes
  19113. ;;
  19114. no:yes:* )
  19115. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: present but cannot be compiled" >&5
  19116. $as_echo "$as_me: WARNING: ldap_features.h: present but cannot be compiled" >&2;}
  19117. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: check for missing prerequisite headers?" >&5
  19118. $as_echo "$as_me: WARNING: ldap_features.h: check for missing prerequisite headers?" >&2;}
  19119. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: see the Autoconf documentation" >&5
  19120. $as_echo "$as_me: WARNING: ldap_features.h: see the Autoconf documentation" >&2;}
  19121. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&5
  19122. $as_echo "$as_me: WARNING: ldap_features.h: section \"Present But Cannot Be Compiled\"" >&2;}
  19123. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&5
  19124. $as_echo "$as_me: WARNING: ldap_features.h: proceeding with the preprocessor's result" >&2;}
  19125. { $as_echo "$as_me:$LINENO: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&5
  19126. $as_echo "$as_me: WARNING: ldap_features.h: in the future, the compiler will take precedence" >&2;}
  19127. ( cat <<\_ASBOX
  19128. ## ------------------------------------------ ##
  19129. ## Report this to http://bugzilla.redhat.com/ ##
  19130. ## ------------------------------------------ ##
  19131. _ASBOX
  19132. ) | sed "s/^/$as_me: WARNING: /" >&2
  19133. ;;
  19134. esac
  19135. { $as_echo "$as_me:$LINENO: checking for ldap_features.h" >&5
  19136. $as_echo_n "checking for ldap_features.h... " >&6; }
  19137. if test "${ac_cv_header_ldap_features_h+set}" = set; then
  19138. $as_echo_n "(cached) " >&6
  19139. else
  19140. ac_cv_header_ldap_features_h=$ac_header_preproc
  19141. fi
  19142. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_features_h" >&5
  19143. $as_echo "$ac_cv_header_ldap_features_h" >&6; }
  19144. fi
  19145. if test "x$ac_cv_header_ldap_features_h" = x""yes; then
  19146. :
  19147. else
  19148. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but ldap_features.h not found" >&5
  19149. $as_echo "$as_me: error: specified with-openldap but ldap_features.h not found" >&2;}
  19150. { (exit 1); exit 1; }; }
  19151. fi
  19152. ol_ver_maj=`grep LDAP_VENDOR_VERSION_MAJOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  19153. ol_ver_min=`grep LDAP_VENDOR_VERSION_MINOR $openldap_incdir/ldap_features.h | awk '{print $3}'`
  19154. ol_ver_pat=`grep LDAP_VENDOR_VERSION_PATCH $openldap_incdir/ldap_features.h | awk '{print $3}'`
  19155. ol_libver="-${ol_ver_maj}.${ol_ver_min}"
  19156. save_ldflags="$LDFLAGS"
  19157. LDFLAGS="$openldap_lib $LDFLAGS"
  19158. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_initialize" | $as_tr_sh`
  19159. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap$ol_libver" >&5
  19160. $as_echo_n "checking for ldap_initialize in -lldap$ol_libver... " >&6; }
  19161. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19162. $as_echo_n "(cached) " >&6
  19163. else
  19164. ac_check_lib_save_LIBS=$LIBS
  19165. LIBS="-lldap$ol_libver $LIBS"
  19166. cat >conftest.$ac_ext <<_ACEOF
  19167. /* confdefs.h. */
  19168. _ACEOF
  19169. cat confdefs.h >>conftest.$ac_ext
  19170. cat >>conftest.$ac_ext <<_ACEOF
  19171. /* end confdefs.h. */
  19172. /* Override any GCC internal prototype to avoid an error.
  19173. Use char because int might match the return type of a GCC
  19174. builtin and then its argument prototype would still apply. */
  19175. #ifdef __cplusplus
  19176. extern "C"
  19177. #endif
  19178. char ldap_initialize ();
  19179. int
  19180. main ()
  19181. {
  19182. return ldap_initialize ();
  19183. ;
  19184. return 0;
  19185. }
  19186. _ACEOF
  19187. rm -f conftest.$ac_objext conftest$ac_exeext
  19188. if { (ac_try="$ac_link"
  19189. case "(($ac_try" in
  19190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19191. *) ac_try_echo=$ac_try;;
  19192. esac
  19193. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19194. $as_echo "$ac_try_echo") >&5
  19195. (eval "$ac_link") 2>conftest.er1
  19196. ac_status=$?
  19197. grep -v '^ *+' conftest.er1 >conftest.err
  19198. rm -f conftest.er1
  19199. cat conftest.err >&5
  19200. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19201. (exit $ac_status); } && {
  19202. test -z "$ac_c_werror_flag" ||
  19203. test ! -s conftest.err
  19204. } && test -s conftest$ac_exeext && {
  19205. test "$cross_compiling" = yes ||
  19206. $as_test_x conftest$ac_exeext
  19207. }; then
  19208. eval "$as_ac_Lib=yes"
  19209. else
  19210. $as_echo "$as_me: failed program was:" >&5
  19211. sed 's/^/| /' conftest.$ac_ext >&5
  19212. eval "$as_ac_Lib=no"
  19213. fi
  19214. rm -rf conftest.dSYM
  19215. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19216. conftest$ac_exeext conftest.$ac_ext
  19217. LIBS=$ac_check_lib_save_LIBS
  19218. fi
  19219. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19220. $as_echo "$as_val"'`
  19221. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19222. $as_echo "$ac_res" >&6; }
  19223. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19224. $as_echo "$as_val"'`
  19225. if test "x$as_val" = x""yes; then
  19226. have_ldap_lib=1
  19227. fi
  19228. if test -z "$have_ldap_lib" ; then
  19229. { $as_echo "$as_me:$LINENO: checking for ldap_initialize in -lldap" >&5
  19230. $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
  19231. if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then
  19232. $as_echo_n "(cached) " >&6
  19233. else
  19234. ac_check_lib_save_LIBS=$LIBS
  19235. LIBS="-lldap $LIBS"
  19236. cat >conftest.$ac_ext <<_ACEOF
  19237. /* confdefs.h. */
  19238. _ACEOF
  19239. cat confdefs.h >>conftest.$ac_ext
  19240. cat >>conftest.$ac_ext <<_ACEOF
  19241. /* end confdefs.h. */
  19242. /* Override any GCC internal prototype to avoid an error.
  19243. Use char because int might match the return type of a GCC
  19244. builtin and then its argument prototype would still apply. */
  19245. #ifdef __cplusplus
  19246. extern "C"
  19247. #endif
  19248. char ldap_initialize ();
  19249. int
  19250. main ()
  19251. {
  19252. return ldap_initialize ();
  19253. ;
  19254. return 0;
  19255. }
  19256. _ACEOF
  19257. rm -f conftest.$ac_objext conftest$ac_exeext
  19258. if { (ac_try="$ac_link"
  19259. case "(($ac_try" in
  19260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19261. *) ac_try_echo=$ac_try;;
  19262. esac
  19263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19264. $as_echo "$ac_try_echo") >&5
  19265. (eval "$ac_link") 2>conftest.er1
  19266. ac_status=$?
  19267. grep -v '^ *+' conftest.er1 >conftest.err
  19268. rm -f conftest.er1
  19269. cat conftest.err >&5
  19270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19271. (exit $ac_status); } && {
  19272. test -z "$ac_c_werror_flag" ||
  19273. test ! -s conftest.err
  19274. } && test -s conftest$ac_exeext && {
  19275. test "$cross_compiling" = yes ||
  19276. $as_test_x conftest$ac_exeext
  19277. }; then
  19278. ac_cv_lib_ldap_ldap_initialize=yes
  19279. else
  19280. $as_echo "$as_me: failed program was:" >&5
  19281. sed 's/^/| /' conftest.$ac_ext >&5
  19282. ac_cv_lib_ldap_ldap_initialize=no
  19283. fi
  19284. rm -rf conftest.dSYM
  19285. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19286. conftest$ac_exeext conftest.$ac_ext
  19287. LIBS=$ac_check_lib_save_LIBS
  19288. fi
  19289. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  19290. $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  19291. if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then
  19292. unset ol_libver
  19293. else
  19294. { { $as_echo "$as_me:$LINENO: error: specified with-openldap but libldap not found" >&5
  19295. $as_echo "$as_me: error: specified with-openldap but libldap not found" >&2;}
  19296. { (exit 1); exit 1; }; }
  19297. fi
  19298. fi
  19299. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldap_url_parse_ext" | $as_tr_sh`
  19300. { $as_echo "$as_me:$LINENO: checking for ldap_url_parse_ext in -lldap$ol_libver" >&5
  19301. $as_echo_n "checking for ldap_url_parse_ext in -lldap$ol_libver... " >&6; }
  19302. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19303. $as_echo_n "(cached) " >&6
  19304. else
  19305. ac_check_lib_save_LIBS=$LIBS
  19306. LIBS="-lldap$ol_libver $LIBS"
  19307. cat >conftest.$ac_ext <<_ACEOF
  19308. /* confdefs.h. */
  19309. _ACEOF
  19310. cat confdefs.h >>conftest.$ac_ext
  19311. cat >>conftest.$ac_ext <<_ACEOF
  19312. /* end confdefs.h. */
  19313. /* Override any GCC internal prototype to avoid an error.
  19314. Use char because int might match the return type of a GCC
  19315. builtin and then its argument prototype would still apply. */
  19316. #ifdef __cplusplus
  19317. extern "C"
  19318. #endif
  19319. char ldap_url_parse_ext ();
  19320. int
  19321. main ()
  19322. {
  19323. return ldap_url_parse_ext ();
  19324. ;
  19325. return 0;
  19326. }
  19327. _ACEOF
  19328. rm -f conftest.$ac_objext conftest$ac_exeext
  19329. if { (ac_try="$ac_link"
  19330. case "(($ac_try" in
  19331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19332. *) ac_try_echo=$ac_try;;
  19333. esac
  19334. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19335. $as_echo "$ac_try_echo") >&5
  19336. (eval "$ac_link") 2>conftest.er1
  19337. ac_status=$?
  19338. grep -v '^ *+' conftest.er1 >conftest.err
  19339. rm -f conftest.er1
  19340. cat conftest.err >&5
  19341. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19342. (exit $ac_status); } && {
  19343. test -z "$ac_c_werror_flag" ||
  19344. test ! -s conftest.err
  19345. } && test -s conftest$ac_exeext && {
  19346. test "$cross_compiling" = yes ||
  19347. $as_test_x conftest$ac_exeext
  19348. }; then
  19349. eval "$as_ac_Lib=yes"
  19350. else
  19351. $as_echo "$as_me: failed program was:" >&5
  19352. sed 's/^/| /' conftest.$ac_ext >&5
  19353. eval "$as_ac_Lib=no"
  19354. fi
  19355. rm -rf conftest.dSYM
  19356. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19357. conftest$ac_exeext conftest.$ac_ext
  19358. LIBS=$ac_check_lib_save_LIBS
  19359. fi
  19360. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19361. $as_echo "$as_val"'`
  19362. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19363. $as_echo "$ac_res" >&6; }
  19364. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19365. $as_echo "$as_val"'`
  19366. if test "x$as_val" = x""yes; then
  19367. cat >>confdefs.h <<\_ACEOF
  19368. #define HAVE_LDAP_URL_PARSE_EXT 1
  19369. _ACEOF
  19370. fi
  19371. ldap_lib_ldif=""
  19372. LDFLAGS="$LDFLAGS"
  19373. as_ac_Lib=`$as_echo "ac_cv_lib_ldap$ol_libver''_ldif_open" | $as_tr_sh`
  19374. { $as_echo "$as_me:$LINENO: checking for ldif_open in -lldap$ol_libver" >&5
  19375. $as_echo_n "checking for ldif_open in -lldap$ol_libver... " >&6; }
  19376. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19377. $as_echo_n "(cached) " >&6
  19378. else
  19379. ac_check_lib_save_LIBS=$LIBS
  19380. LIBS="-lldap$ol_libver $LIBS"
  19381. cat >conftest.$ac_ext <<_ACEOF
  19382. /* confdefs.h. */
  19383. _ACEOF
  19384. cat confdefs.h >>conftest.$ac_ext
  19385. cat >>conftest.$ac_ext <<_ACEOF
  19386. /* end confdefs.h. */
  19387. /* Override any GCC internal prototype to avoid an error.
  19388. Use char because int might match the return type of a GCC
  19389. builtin and then its argument prototype would still apply. */
  19390. #ifdef __cplusplus
  19391. extern "C"
  19392. #endif
  19393. char ldif_open ();
  19394. int
  19395. main ()
  19396. {
  19397. return ldif_open ();
  19398. ;
  19399. return 0;
  19400. }
  19401. _ACEOF
  19402. rm -f conftest.$ac_objext conftest$ac_exeext
  19403. if { (ac_try="$ac_link"
  19404. case "(($ac_try" in
  19405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19406. *) ac_try_echo=$ac_try;;
  19407. esac
  19408. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19409. $as_echo "$ac_try_echo") >&5
  19410. (eval "$ac_link") 2>conftest.er1
  19411. ac_status=$?
  19412. grep -v '^ *+' conftest.er1 >conftest.err
  19413. rm -f conftest.er1
  19414. cat conftest.err >&5
  19415. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19416. (exit $ac_status); } && {
  19417. test -z "$ac_c_werror_flag" ||
  19418. test ! -s conftest.err
  19419. } && test -s conftest$ac_exeext && {
  19420. test "$cross_compiling" = yes ||
  19421. $as_test_x conftest$ac_exeext
  19422. }; then
  19423. eval "$as_ac_Lib=yes"
  19424. else
  19425. $as_echo "$as_me: failed program was:" >&5
  19426. sed 's/^/| /' conftest.$ac_ext >&5
  19427. eval "$as_ac_Lib=no"
  19428. fi
  19429. rm -rf conftest.dSYM
  19430. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19431. conftest$ac_exeext conftest.$ac_ext
  19432. LIBS=$ac_check_lib_save_LIBS
  19433. fi
  19434. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19435. $as_echo "$as_val"'`
  19436. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19437. $as_echo "$ac_res" >&6; }
  19438. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19439. $as_echo "$as_val"'`
  19440. if test "x$as_val" = x""yes; then
  19441. ldap_lib_ldif=
  19442. else
  19443. ldap_lib_ldif=-lldif$ol_libver
  19444. fi
  19445. LDFLAGS="$save_ldflags"
  19446. CPPFLAGS="$save_cppflags"
  19447. cat >>confdefs.h <<\_ACEOF
  19448. #define USE_OPENLDAP 1
  19449. _ACEOF
  19450. # where to find ldapsearch, et. al.
  19451. ldaptool_bindir=$openldap_bindir
  19452. # default options to pass to the tools
  19453. # use -x because all of our scripts use simple bind
  19454. ldaptool_opts=-x
  19455. # get plain output from ldapsearch - no version, no comments
  19456. plainldif_opts=-LLL
  19457. fi
  19458. # BEGIN COPYRIGHT BLOCK
  19459. # Copyright (C) 2007 Red Hat, Inc.
  19460. # All rights reserved.
  19461. #
  19462. # This program is free software; you can redistribute it and/or
  19463. # modify it under the terms of the GNU General Public License
  19464. # as published by the Free Software Foundation; either version 2
  19465. # of the License, or (at your option) any later version.
  19466. #
  19467. # This program is distributed in the hope that it will be useful,
  19468. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19469. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19470. # GNU General Public License for more details.
  19471. #
  19472. # You should have received a copy of the GNU General Public License
  19473. # along with this program; if not, write to the Free Software
  19474. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19475. #
  19476. # END COPYRIGHT BLOCK
  19477. { $as_echo "$as_me:$LINENO: checking for Mozilla LDAPSDK..." >&5
  19478. $as_echo "$as_me: checking for Mozilla LDAPSDK..." >&6;}
  19479. # check for --with-ldapsdk
  19480. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk" >&5
  19481. $as_echo_n "checking for --with-ldapsdk... " >&6; }
  19482. # Check whether --with-ldapsdk was given.
  19483. if test "${with_ldapsdk+set}" = set; then
  19484. withval=$with_ldapsdk;
  19485. if test "$withval" = yes
  19486. then
  19487. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19488. $as_echo "yes" >&6; }
  19489. elif test "$withval" = no
  19490. then
  19491. { $as_echo "$as_me:$LINENO: result: no" >&5
  19492. $as_echo "no" >&6; }
  19493. elif test -e "$withval"/include/ldap.h -a -d "$withval"/lib
  19494. then
  19495. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19496. $as_echo "using $withval" >&6; }
  19497. LDAPSDKDIR=$withval
  19498. ldapsdk_inc="-I$LDAPSDKDIR/include"
  19499. ldapsdk_lib="-L$LDAPSDKDIR/lib"
  19500. ldapsdk_libdir="$LDAPSDKDIR/lib"
  19501. ldapsdk_bindir="$LDAPSDKDIR/bin"
  19502. with_ldapsdk=yes
  19503. else
  19504. echo
  19505. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19506. $as_echo "$as_me: error: $withval not found" >&2;}
  19507. { (exit 1); exit 1; }; }
  19508. fi
  19509. if test "$with_ldapsdk" = yes -a "$with_openldap" = yes
  19510. then
  19511. { { $as_echo "$as_me:$LINENO: error: Cannot use both LDAPSDK and OpenLDAP." >&5
  19512. $as_echo "$as_me: error: Cannot use both LDAPSDK and OpenLDAP." >&2;}
  19513. { (exit 1); exit 1; }; }
  19514. fi
  19515. if test "$with_ldapsdk" != yes -a "$with_openldap" != yes
  19516. then
  19517. { { $as_echo "$as_me:$LINENO: error: Either LDAPSDK or OpenLDAP must be used." >&5
  19518. $as_echo "$as_me: error: Either LDAPSDK or OpenLDAP must be used." >&2;}
  19519. { (exit 1); exit 1; }; }
  19520. fi
  19521. else
  19522. if test "$with_openldap" = yes
  19523. then
  19524. { $as_echo "$as_me:$LINENO: result: no" >&5
  19525. $as_echo "no" >&6; }
  19526. else
  19527. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19528. $as_echo "yes" >&6; }
  19529. with_ldapsdk=yes
  19530. fi
  19531. fi
  19532. # check for --with-ldapsdk-inc
  19533. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-inc" >&5
  19534. $as_echo_n "checking for --with-ldapsdk-inc... " >&6; }
  19535. # Check whether --with-ldapsdk-inc was given.
  19536. if test "${with_ldapsdk_inc+set}" = set; then
  19537. withval=$with_ldapsdk_inc;
  19538. if test -e "$withval"/ldap.h
  19539. then
  19540. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19541. $as_echo "using $withval" >&6; }
  19542. ldapsdk_inc="-I$withval"
  19543. with_ldapsdk=yes
  19544. else
  19545. echo
  19546. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19547. $as_echo "$as_me: error: $withval not found" >&2;}
  19548. { (exit 1); exit 1; }; }
  19549. fi
  19550. else
  19551. { $as_echo "$as_me:$LINENO: result: no" >&5
  19552. $as_echo "no" >&6; }
  19553. fi
  19554. # check for --with-ldapsdk-lib
  19555. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-lib" >&5
  19556. $as_echo_n "checking for --with-ldapsdk-lib... " >&6; }
  19557. # Check whether --with-ldapsdk-lib was given.
  19558. if test "${with_ldapsdk_lib+set}" = set; then
  19559. withval=$with_ldapsdk_lib;
  19560. if test -d "$withval"
  19561. then
  19562. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19563. $as_echo "using $withval" >&6; }
  19564. ldapsdk_lib="-L$withval"
  19565. ldapsdk_libdir="$withval"
  19566. with_ldapsdk=yes
  19567. else
  19568. echo
  19569. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19570. $as_echo "$as_me: error: $withval not found" >&2;}
  19571. { (exit 1); exit 1; }; }
  19572. fi
  19573. else
  19574. { $as_echo "$as_me:$LINENO: result: no" >&5
  19575. $as_echo "no" >&6; }
  19576. fi
  19577. # check for --with-ldapsdk-bin
  19578. { $as_echo "$as_me:$LINENO: checking for --with-ldapsdk-bin" >&5
  19579. $as_echo_n "checking for --with-ldapsdk-bin... " >&6; }
  19580. # Check whether --with-ldapsdk-bin was given.
  19581. if test "${with_ldapsdk_bin+set}" = set; then
  19582. withval=$with_ldapsdk_bin;
  19583. if test -d "$withval"
  19584. then
  19585. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19586. $as_echo "using $withval" >&6; }
  19587. ldapsdk_bindir="$withval"
  19588. with_ldapsdk=yes
  19589. else
  19590. echo
  19591. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19592. $as_echo "$as_me: error: $withval not found" >&2;}
  19593. { (exit 1); exit 1; }; }
  19594. fi
  19595. else
  19596. { $as_echo "$as_me:$LINENO: result: no" >&5
  19597. $as_echo "no" >&6; }
  19598. fi
  19599. # if LDAPSDK is not found yet, try pkg-config
  19600. # last resort
  19601. if test "$with_ldapsdk" = yes ; then
  19602. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib" -o -z "$ldapsdk_libdir" -o -z "$ldapsdk_bindir"; then
  19603. # Extract the first word of "pkg-config", so it can be a program name with args.
  19604. set dummy pkg-config; ac_word=$2
  19605. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  19606. $as_echo_n "checking for $ac_word... " >&6; }
  19607. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  19608. $as_echo_n "(cached) " >&6
  19609. else
  19610. case $PKG_CONFIG in
  19611. [\\/]* | ?:[\\/]*)
  19612. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19613. ;;
  19614. *)
  19615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19616. for as_dir in $PATH
  19617. do
  19618. IFS=$as_save_IFS
  19619. test -z "$as_dir" && as_dir=.
  19620. for ac_exec_ext in '' $ac_executable_extensions; do
  19621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19622. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19623. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19624. break 2
  19625. fi
  19626. done
  19627. done
  19628. IFS=$as_save_IFS
  19629. ;;
  19630. esac
  19631. fi
  19632. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19633. if test -n "$PKG_CONFIG"; then
  19634. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  19635. $as_echo "$PKG_CONFIG" >&6; }
  19636. else
  19637. { $as_echo "$as_me:$LINENO: result: no" >&5
  19638. $as_echo "no" >&6; }
  19639. fi
  19640. { $as_echo "$as_me:$LINENO: checking for mozldap with pkg-config" >&5
  19641. $as_echo_n "checking for mozldap with pkg-config... " >&6; }
  19642. if test -n "$PKG_CONFIG"; then
  19643. if $PKG_CONFIG --exists mozldap6; then
  19644. mozldappkg=mozldap6
  19645. elif $PKG_CONFIG --exists mozldap; then
  19646. mozldappkg=mozldap
  19647. else
  19648. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19649. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19650. { (exit 1); exit 1; }; }
  19651. fi
  19652. ldapsdk_inc=`$PKG_CONFIG --cflags-only-I $mozldappkg`
  19653. ldapsdk_lib=`$PKG_CONFIG --libs-only-L $mozldappkg`
  19654. ldapsdk_libdir=`$PKG_CONFIG --libs-only-L $mozldappkg | sed -e s/-L// | sed -e s/\ .*$//`
  19655. ldapsdk_bindir=`$PKG_CONFIG --variable=bindir $mozldappkg`
  19656. { $as_echo "$as_me:$LINENO: result: using system $mozldappkg" >&5
  19657. $as_echo "using system $mozldappkg" >&6; }
  19658. fi
  19659. fi
  19660. fi
  19661. if test "$with_ldapsdk" = yes ; then
  19662. if test -z "$ldapsdk_inc" -o -z "$ldapsdk_lib"; then
  19663. { { $as_echo "$as_me:$LINENO: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&5
  19664. $as_echo "$as_me: error: LDAPSDK not found, specify with --with-ldapsdk-inc|-lib|-bin." >&2;}
  19665. { (exit 1); exit 1; }; }
  19666. fi
  19667. if test -z "$ldapsdk_bindir" ; then
  19668. if -d $libdir/mozldap6 ; then
  19669. ldapsdk_bindir=$libdir/mozldap6
  19670. else
  19671. ldapsdk_bindir=$libdir/mozldap
  19672. fi
  19673. fi
  19674. save_cppflags="$CPPFLAGS"
  19675. CPPFLAGS="$ldapsdk_inc $nss_inc $nspr_inc"
  19676. { $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  19677. $as_echo_n "checking for ldap.h... " >&6; }
  19678. if test "${ac_cv_header_ldap_h+set}" = set; then
  19679. $as_echo_n "(cached) " >&6
  19680. else
  19681. cat >conftest.$ac_ext <<_ACEOF
  19682. /* confdefs.h. */
  19683. _ACEOF
  19684. cat confdefs.h >>conftest.$ac_ext
  19685. cat >>conftest.$ac_ext <<_ACEOF
  19686. /* end confdefs.h. */
  19687. #include <ldap-standard.h>
  19688. #if LDAP_VENDOR_VERSION < 600
  19689. #error The LDAP C SDK version is not supported
  19690. #endif
  19691. #include <ldap.h>
  19692. _ACEOF
  19693. rm -f conftest.$ac_objext
  19694. if { (ac_try="$ac_compile"
  19695. case "(($ac_try" in
  19696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19697. *) ac_try_echo=$ac_try;;
  19698. esac
  19699. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19700. $as_echo "$ac_try_echo") >&5
  19701. (eval "$ac_compile") 2>conftest.er1
  19702. ac_status=$?
  19703. grep -v '^ *+' conftest.er1 >conftest.err
  19704. rm -f conftest.er1
  19705. cat conftest.err >&5
  19706. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19707. (exit $ac_status); } && {
  19708. test -z "$ac_c_werror_flag" ||
  19709. test ! -s conftest.err
  19710. } && test -s conftest.$ac_objext; then
  19711. ac_cv_header_ldap_h=yes
  19712. else
  19713. $as_echo "$as_me: failed program was:" >&5
  19714. sed 's/^/| /' conftest.$ac_ext >&5
  19715. ac_cv_header_ldap_h=no
  19716. fi
  19717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19718. fi
  19719. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
  19720. $as_echo "$ac_cv_header_ldap_h" >&6; }
  19721. if test "x$ac_cv_header_ldap_h" = x""yes; then
  19722. isversion6=1
  19723. else
  19724. isversion6=
  19725. fi
  19726. CPPFLAGS="$save_cppflags"
  19727. if test -z "$isversion6" ; then
  19728. { { $as_echo "$as_me:$LINENO: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&5
  19729. $as_echo "$as_me: error: The LDAPSDK version in $ldapsdk_inc/ldap-standard.h is not supported" >&2;}
  19730. { (exit 1); exit 1; }; }
  19731. fi
  19732. cat >>confdefs.h <<\_ACEOF
  19733. #define USE_MOZLDAP 1
  19734. _ACEOF
  19735. cat >>confdefs.h <<\_ACEOF
  19736. #define HAVE_LDAP_URL_PARSE_NO_DEFAULTS 1
  19737. _ACEOF
  19738. # where to find ldapsearch, et. al.
  19739. ldaptool_bindir=$ldapsdk_bindir
  19740. # default options to pass to the tools
  19741. ldaptool_opts=
  19742. # get plain output from ldapsearch - no version
  19743. plainldif_opts=-1
  19744. fi
  19745. # BEGIN COPYRIGHT BLOCK
  19746. # Copyright (C) 2007 Red Hat, Inc.
  19747. # All rights reserved.
  19748. #
  19749. # This program is free software; you can redistribute it and/or
  19750. # modify it under the terms of the GNU General Public License
  19751. # as published by the Free Software Foundation; either version 2
  19752. # of the License, or (at your option) any later version.
  19753. #
  19754. # This program is distributed in the hope that it will be useful,
  19755. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19756. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19757. # GNU General Public License for more details.
  19758. #
  19759. # You should have received a copy of the GNU General Public License
  19760. # along with this program; if not, write to the Free Software
  19761. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19762. #
  19763. # END COPYRIGHT BLOCK
  19764. { $as_echo "$as_me:$LINENO: checking for db..." >&5
  19765. $as_echo "$as_me: checking for db..." >&6;}
  19766. { $as_echo "$as_me:$LINENO: checking for --with-db" >&5
  19767. $as_echo_n "checking for --with-db... " >&6; }
  19768. # Check whether --with-db was given.
  19769. if test "${with_db+set}" = set; then
  19770. withval=$with_db;
  19771. if test "$withval" = "yes"; then
  19772. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19773. $as_echo "yes" >&6; }
  19774. elif test "$withval" = "no"; then
  19775. { $as_echo "$as_me:$LINENO: result: no" >&5
  19776. $as_echo "no" >&6; }
  19777. { { $as_echo "$as_me:$LINENO: error: db is required." >&5
  19778. $as_echo "$as_me: error: db is required." >&2;}
  19779. { (exit 1); exit 1; }; }
  19780. elif test -d "$withval"/include -a -d "$withval"/lib; then
  19781. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19782. $as_echo "using $withval" >&6; }
  19783. DBDIR=$withval
  19784. db_lib="-L$DBDIR/lib"
  19785. db_libdir="$DBDIR/lib"
  19786. db_incdir="$DBDIR/include"
  19787. if ! test -e "$db_incdir/db.h" ; then
  19788. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  19789. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  19790. { (exit 1); exit 1; }; }
  19791. fi
  19792. db_inc="-I$db_incdir"
  19793. else
  19794. echo
  19795. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19796. $as_echo "$as_me: error: $withval not found" >&2;}
  19797. { (exit 1); exit 1; }; }
  19798. fi
  19799. else
  19800. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19801. $as_echo "yes" >&6; }
  19802. fi
  19803. # check for --with-db-inc
  19804. { $as_echo "$as_me:$LINENO: checking for --with-db-inc" >&5
  19805. $as_echo_n "checking for --with-db-inc... " >&6; }
  19806. # Check whether --with-db-inc was given.
  19807. if test "${with_db_inc+set}" = set; then
  19808. withval=$with_db_inc;
  19809. if test -e "$withval"/db.h
  19810. then
  19811. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19812. $as_echo "using $withval" >&6; }
  19813. db_incdir="$withval"
  19814. db_inc="-I$withval"
  19815. else
  19816. echo
  19817. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19818. $as_echo "$as_me: error: $withval not found" >&2;}
  19819. { (exit 1); exit 1; }; }
  19820. fi
  19821. else
  19822. { $as_echo "$as_me:$LINENO: result: no" >&5
  19823. $as_echo "no" >&6; }
  19824. fi
  19825. # check for --with-db-lib
  19826. { $as_echo "$as_me:$LINENO: checking for --with-db-lib" >&5
  19827. $as_echo_n "checking for --with-db-lib... " >&6; }
  19828. # Check whether --with-db-lib was given.
  19829. if test "${with_db_lib+set}" = set; then
  19830. withval=$with_db_lib;
  19831. if test -d "$withval"
  19832. then
  19833. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  19834. $as_echo "using $withval" >&6; }
  19835. db_lib="-L$withval"
  19836. db_libdir="$withval"
  19837. else
  19838. echo
  19839. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  19840. $as_echo "$as_me: error: $withval not found" >&2;}
  19841. { (exit 1); exit 1; }; }
  19842. fi
  19843. else
  19844. { $as_echo "$as_me:$LINENO: result: no" >&5
  19845. $as_echo "no" >&6; }
  19846. fi
  19847. if test -z "$db_inc"; then
  19848. { $as_echo "$as_me:$LINENO: checking for db.h" >&5
  19849. $as_echo_n "checking for db.h... " >&6; }
  19850. if test -f "/usr/include/db4/db.h"; then
  19851. { $as_echo "$as_me:$LINENO: result: using /usr/include/db4/db.h" >&5
  19852. $as_echo "using /usr/include/db4/db.h" >&6; }
  19853. db_incdir="/usr/include/db4"
  19854. db_inc="-I/usr/include/db4"
  19855. db_lib='-L$(libdir)'
  19856. db_libdir='$(libdir)'
  19857. elif test -f "/usr/include/db.h"; then
  19858. { $as_echo "$as_me:$LINENO: result: using /usr/include/db.h" >&5
  19859. $as_echo "using /usr/include/db.h" >&6; }
  19860. db_incdir="/usr/include"
  19861. db_inc="-I/usr/include"
  19862. db_lib='-L$(libdir)'
  19863. db_libdir='$(libdir)'
  19864. else
  19865. { $as_echo "$as_me:$LINENO: result: no" >&5
  19866. $as_echo "no" >&6; }
  19867. { { $as_echo "$as_me:$LINENO: error: db not found, specify with --with-db." >&5
  19868. $as_echo "$as_me: error: db not found, specify with --with-db." >&2;}
  19869. { (exit 1); exit 1; }; }
  19870. fi
  19871. fi
  19872. db_ver_maj=`grep DB_VERSION_MAJOR $db_incdir/db.h | awk '{print $3}'`
  19873. db_ver_min=`grep DB_VERSION_MINOR $db_incdir/db.h | awk '{print $3}'`
  19874. db_ver_pat=`grep DB_VERSION_PATCH $db_incdir/db.h | awk '{print $3}'`
  19875. db_libver=${db_ver_maj}.${db_ver_min}
  19876. save_ldflags="$LDFLAGS"
  19877. LDFLAGS="$db_lib $LDFLAGS"
  19878. as_ac_Lib=`$as_echo "ac_cv_lib_db-$db_libver''_db_create" | $as_tr_sh`
  19879. { $as_echo "$as_me:$LINENO: checking for db_create in -ldb-$db_libver" >&5
  19880. $as_echo_n "checking for db_create in -ldb-$db_libver... " >&6; }
  19881. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
  19882. $as_echo_n "(cached) " >&6
  19883. else
  19884. ac_check_lib_save_LIBS=$LIBS
  19885. LIBS="-ldb-$db_libver $LIBNSL $LIBS"
  19886. cat >conftest.$ac_ext <<_ACEOF
  19887. /* confdefs.h. */
  19888. _ACEOF
  19889. cat confdefs.h >>conftest.$ac_ext
  19890. cat >>conftest.$ac_ext <<_ACEOF
  19891. /* end confdefs.h. */
  19892. /* Override any GCC internal prototype to avoid an error.
  19893. Use char because int might match the return type of a GCC
  19894. builtin and then its argument prototype would still apply. */
  19895. #ifdef __cplusplus
  19896. extern "C"
  19897. #endif
  19898. char db_create ();
  19899. int
  19900. main ()
  19901. {
  19902. return db_create ();
  19903. ;
  19904. return 0;
  19905. }
  19906. _ACEOF
  19907. rm -f conftest.$ac_objext conftest$ac_exeext
  19908. if { (ac_try="$ac_link"
  19909. case "(($ac_try" in
  19910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19911. *) ac_try_echo=$ac_try;;
  19912. esac
  19913. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19914. $as_echo "$ac_try_echo") >&5
  19915. (eval "$ac_link") 2>conftest.er1
  19916. ac_status=$?
  19917. grep -v '^ *+' conftest.er1 >conftest.err
  19918. rm -f conftest.er1
  19919. cat conftest.err >&5
  19920. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19921. (exit $ac_status); } && {
  19922. test -z "$ac_c_werror_flag" ||
  19923. test ! -s conftest.err
  19924. } && test -s conftest$ac_exeext && {
  19925. test "$cross_compiling" = yes ||
  19926. $as_test_x conftest$ac_exeext
  19927. }; then
  19928. eval "$as_ac_Lib=yes"
  19929. else
  19930. $as_echo "$as_me: failed program was:" >&5
  19931. sed 's/^/| /' conftest.$ac_ext >&5
  19932. eval "$as_ac_Lib=no"
  19933. fi
  19934. rm -rf conftest.dSYM
  19935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19936. conftest$ac_exeext conftest.$ac_ext
  19937. LIBS=$ac_check_lib_save_LIBS
  19938. fi
  19939. ac_res=`eval 'as_val=${'$as_ac_Lib'}
  19940. $as_echo "$as_val"'`
  19941. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19942. $as_echo "$ac_res" >&6; }
  19943. as_val=`eval 'as_val=${'$as_ac_Lib'}
  19944. $as_echo "$as_val"'`
  19945. if test "x$as_val" = x""yes; then
  19946. true
  19947. else
  19948. { { $as_echo "$as_me:$LINENO: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&5
  19949. $as_echo "$as_me: error: $db_incdir/db.h is version $db_libver but libdb-$db_libver not found" >&2;}
  19950. { (exit 1); exit 1; }; }
  19951. fi
  19952. LDFLAGS="$save_ldflags"
  19953. # if DB is not found yet, try pkg-config
  19954. # last resort
  19955. # Although the other db_* variables are correctly assigned at this point,
  19956. # db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris)
  19957. if test -n "$PKG_CONFIG"; then
  19958. if $PKG_CONFIG --exists db; then
  19959. db_bindir=`$PKG_CONFIG --variable=bindir db`
  19960. else
  19961. db_bindir=/usr/bin
  19962. fi
  19963. else
  19964. db_bindir=/usr/bin
  19965. fi
  19966. # BEGIN COPYRIGHT BLOCK
  19967. # Copyright (C) 2007 Red Hat, Inc.
  19968. # All rights reserved.
  19969. #
  19970. # This program is free software; you can redistribute it and/or
  19971. # modify it under the terms of the GNU General Public License
  19972. # as published by the Free Software Foundation; either version 2
  19973. # of the License, or (at your option) any later version.
  19974. #
  19975. # This program is distributed in the hope that it will be useful,
  19976. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19977. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19978. # GNU General Public License for more details.
  19979. #
  19980. # You should have received a copy of the GNU General Public License
  19981. # along with this program; if not, write to the Free Software
  19982. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19983. #
  19984. # END COPYRIGHT BLOCK
  19985. # -*- tab-width: 4; -*-
  19986. # Configure paths for SASL
  19987. { $as_echo "$as_me:$LINENO: checking for SASL..." >&5
  19988. $as_echo "$as_me: checking for SASL..." >&6;}
  19989. { $as_echo "$as_me:$LINENO: checking for --with-sasl" >&5
  19990. $as_echo_n "checking for --with-sasl... " >&6; }
  19991. # Check whether --with-sasl was given.
  19992. if test "${with_sasl+set}" = set; then
  19993. withval=$with_sasl;
  19994. if test "$withval" = "yes"; then
  19995. { $as_echo "$as_me:$LINENO: result: yes" >&5
  19996. $as_echo "yes" >&6; }
  19997. elif test "$withval" = "no"; then
  19998. { $as_echo "$as_me:$LINENO: result: no" >&5
  19999. $as_echo "no" >&6; }
  20000. { { $as_echo "$as_me:$LINENO: error: SASL is required." >&5
  20001. $as_echo "$as_me: error: SASL is required." >&2;}
  20002. { (exit 1); exit 1; }; }
  20003. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  20004. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20005. $as_echo "using $withval" >&6; }
  20006. if test -f "$withval/include/sasl/sasl.h"; then
  20007. sasl_inc="-I$withval/include/sasl"
  20008. elif test -f "$withval/include/sasl.h"; then
  20009. sasl_inc="-I$withval/include"
  20010. else
  20011. { { $as_echo "$as_me:$LINENO: error: sasl.h not found" >&5
  20012. $as_echo "$as_me: error: sasl.h not found" >&2;}
  20013. { (exit 1); exit 1; }; }
  20014. fi
  20015. sasl_lib="-L$withval/lib"
  20016. sasl_libdir="$withval/lib"
  20017. else
  20018. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20019. $as_echo "yes" >&6; }
  20020. { { $as_echo "$as_me:$LINENO: error: SASL not found in $withval" >&5
  20021. $as_echo "$as_me: error: SASL not found in $withval" >&2;}
  20022. { (exit 1); exit 1; }; }
  20023. fi
  20024. else
  20025. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20026. $as_echo "yes" >&6; }
  20027. fi
  20028. { $as_echo "$as_me:$LINENO: checking for --with-sasl-inc" >&5
  20029. $as_echo_n "checking for --with-sasl-inc... " >&6; }
  20030. # Check whether --with-sasl-inc was given.
  20031. if test "${with_sasl_inc+set}" = set; then
  20032. withval=$with_sasl_inc;
  20033. if test -f "$withval"/sasl.h; then
  20034. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20035. $as_echo "using $withval" >&6; }
  20036. sasl_inc="-I$withval"
  20037. else
  20038. echo
  20039. { { $as_echo "$as_me:$LINENO: error: $withval/sasl.h not found" >&5
  20040. $as_echo "$as_me: error: $withval/sasl.h not found" >&2;}
  20041. { (exit 1); exit 1; }; }
  20042. fi
  20043. else
  20044. { $as_echo "$as_me:$LINENO: result: no" >&5
  20045. $as_echo "no" >&6; }
  20046. fi
  20047. { $as_echo "$as_me:$LINENO: checking for --with-sasl-lib" >&5
  20048. $as_echo_n "checking for --with-sasl-lib... " >&6; }
  20049. # Check whether --with-sasl-lib was given.
  20050. if test "${with_sasl_lib+set}" = set; then
  20051. withval=$with_sasl_lib;
  20052. if test -d "$withval"; then
  20053. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20054. $as_echo "using $withval" >&6; }
  20055. sasl_lib="-L$withval"
  20056. sasl_libdir="$withval"
  20057. else
  20058. echo
  20059. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20060. $as_echo "$as_me: error: $withval not found" >&2;}
  20061. { (exit 1); exit 1; }; }
  20062. fi
  20063. else
  20064. { $as_echo "$as_me:$LINENO: result: no" >&5
  20065. $as_echo "no" >&6; }
  20066. fi
  20067. if test -z "$sasl_inc"; then
  20068. { $as_echo "$as_me:$LINENO: checking for sasl.h" >&5
  20069. $as_echo_n "checking for sasl.h... " >&6; }
  20070. if test -f /usr/include/sasl/sasl.h; then
  20071. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl/sasl.h" >&5
  20072. $as_echo "using /usr/include/sasl/sasl.h" >&6; }
  20073. sasl_inc="-I/usr/include/sasl"
  20074. elif test -f /usr/include/sasl.h; then
  20075. { $as_echo "$as_me:$LINENO: result: using /usr/include/sasl.h" >&5
  20076. $as_echo "using /usr/include/sasl.h" >&6; }
  20077. sasl_inc="-I/usr/include"
  20078. else
  20079. { $as_echo "$as_me:$LINENO: result: no" >&5
  20080. $as_echo "no" >&6; }
  20081. { { $as_echo "$as_me:$LINENO: error: SASL not found, specify with --with-sasl." >&5
  20082. $as_echo "$as_me: error: SASL not found, specify with --with-sasl." >&2;}
  20083. { (exit 1); exit 1; }; }
  20084. fi
  20085. fi
  20086. # BEGIN COPYRIGHT BLOCK
  20087. # Copyright (C) 2007 Red Hat, Inc.
  20088. # All rights reserved.
  20089. #
  20090. # This program is free software; you can redistribute it and/or
  20091. # modify it under the terms of the GNU General Public License
  20092. # as published by the Free Software Foundation; either version 2
  20093. # of the License, or (at your option) any later version.
  20094. #
  20095. # This program is distributed in the hope that it will be useful,
  20096. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20097. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20098. # GNU General Public License for more details.
  20099. #
  20100. # You should have received a copy of the GNU General Public License
  20101. # along with this program; if not, write to the Free Software
  20102. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20103. #
  20104. # END COPYRIGHT BLOCK
  20105. #
  20106. # Configure paths for SVRCORE
  20107. { $as_echo "$as_me:$LINENO: checking for SVRCORE..." >&5
  20108. $as_echo "$as_me: checking for SVRCORE..." >&6;}
  20109. { $as_echo "$as_me:$LINENO: checking for --with-svrcore" >&5
  20110. $as_echo_n "checking for --with-svrcore... " >&6; }
  20111. # Check whether --with-svrcore was given.
  20112. if test "${with_svrcore+set}" = set; then
  20113. withval=$with_svrcore;
  20114. if test "$withval" = "yes"; then
  20115. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20116. $as_echo "yes" >&6; }
  20117. elif test "$withval" = "no"; then
  20118. { $as_echo "$as_me:$LINENO: result: no" >&5
  20119. $as_echo "no" >&6; }
  20120. { { $as_echo "$as_me:$LINENO: error: SVRCORE is required." >&5
  20121. $as_echo "$as_me: error: SVRCORE is required." >&2;}
  20122. { (exit 1); exit 1; }; }
  20123. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  20124. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20125. $as_echo "using $withval" >&6; }
  20126. if test -f "$withval/include/svrcore.h"; then
  20127. svrcore_inc="-I$withval/include"
  20128. else
  20129. { { $as_echo "$as_me:$LINENO: error: svrcore.h not found" >&5
  20130. $as_echo "$as_me: error: svrcore.h not found" >&2;}
  20131. { (exit 1); exit 1; }; }
  20132. fi
  20133. svrcore_lib="-L$withval/lib"
  20134. else
  20135. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20136. $as_echo "yes" >&6; }
  20137. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found in $withval" >&5
  20138. $as_echo "$as_me: error: SVRCORE not found in $withval" >&2;}
  20139. { (exit 1); exit 1; }; }
  20140. fi
  20141. else
  20142. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20143. $as_echo "yes" >&6; }
  20144. fi
  20145. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-inc" >&5
  20146. $as_echo_n "checking for --with-svrcore-inc... " >&6; }
  20147. # Check whether --with-svrcore-inc was given.
  20148. if test "${with_svrcore_inc+set}" = set; then
  20149. withval=$with_svrcore_inc;
  20150. if test -f "$withval"/svrcore.h; then
  20151. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20152. $as_echo "using $withval" >&6; }
  20153. svrcore_inc="-I$withval"
  20154. else
  20155. echo
  20156. { { $as_echo "$as_me:$LINENO: error: $withval/svrcore.h not found" >&5
  20157. $as_echo "$as_me: error: $withval/svrcore.h not found" >&2;}
  20158. { (exit 1); exit 1; }; }
  20159. fi
  20160. else
  20161. { $as_echo "$as_me:$LINENO: result: no" >&5
  20162. $as_echo "no" >&6; }
  20163. fi
  20164. { $as_echo "$as_me:$LINENO: checking for --with-svrcore-lib" >&5
  20165. $as_echo_n "checking for --with-svrcore-lib... " >&6; }
  20166. # Check whether --with-svrcore-lib was given.
  20167. if test "${with_svrcore_lib+set}" = set; then
  20168. withval=$with_svrcore_lib;
  20169. if test -d "$withval"; then
  20170. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20171. $as_echo "using $withval" >&6; }
  20172. svrcore_lib="-L$withval"
  20173. else
  20174. echo
  20175. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20176. $as_echo "$as_me: error: $withval not found" >&2;}
  20177. { (exit 1); exit 1; }; }
  20178. fi
  20179. else
  20180. { $as_echo "$as_me:$LINENO: result: no" >&5
  20181. $as_echo "no" >&6; }
  20182. fi
  20183. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20184. # Extract the first word of "pkg-config", so it can be a program name with args.
  20185. set dummy pkg-config; ac_word=$2
  20186. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20187. $as_echo_n "checking for $ac_word... " >&6; }
  20188. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  20189. $as_echo_n "(cached) " >&6
  20190. else
  20191. case $PKG_CONFIG in
  20192. [\\/]* | ?:[\\/]*)
  20193. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20194. ;;
  20195. *)
  20196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20197. for as_dir in $PATH
  20198. do
  20199. IFS=$as_save_IFS
  20200. test -z "$as_dir" && as_dir=.
  20201. for ac_exec_ext in '' $ac_executable_extensions; do
  20202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20203. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20204. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20205. break 2
  20206. fi
  20207. done
  20208. done
  20209. IFS=$as_save_IFS
  20210. ;;
  20211. esac
  20212. fi
  20213. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20214. if test -n "$PKG_CONFIG"; then
  20215. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  20216. $as_echo "$PKG_CONFIG" >&6; }
  20217. else
  20218. { $as_echo "$as_me:$LINENO: result: no" >&5
  20219. $as_echo "no" >&6; }
  20220. fi
  20221. { $as_echo "$as_me:$LINENO: checking for SVRCORE with pkg-config" >&5
  20222. $as_echo_n "checking for SVRCORE with pkg-config... " >&6; }
  20223. if test -n "$PKG_CONFIG"; then
  20224. if $PKG_CONFIG --exists svrcore; then
  20225. svrcore_inc=`$PKG_CONFIG --cflags-only-I svrcore`
  20226. svrcore_lib=`$PKG_CONFIG --libs-only-L svrcore`
  20227. { $as_echo "$as_me:$LINENO: result: using system svrcore" >&5
  20228. $as_echo "using system svrcore" >&6; }
  20229. fi
  20230. fi
  20231. fi
  20232. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20233. { $as_echo "$as_me:$LINENO: checking for SVRCORE_GetRegisteredPinObj in -lsvrcore" >&5
  20234. $as_echo_n "checking for SVRCORE_GetRegisteredPinObj in -lsvrcore... " >&6; }
  20235. if test "${ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj+set}" = set; then
  20236. $as_echo_n "(cached) " >&6
  20237. else
  20238. ac_check_lib_save_LIBS=$LIBS
  20239. LIBS="-lsvrcore $nss_inc $nspr_inc $nss_lib -lnss3 -lsoftokn3 $nspr_lib -lplds4 -lplc4 -lnspr4 $LIBS"
  20240. cat >conftest.$ac_ext <<_ACEOF
  20241. /* confdefs.h. */
  20242. _ACEOF
  20243. cat confdefs.h >>conftest.$ac_ext
  20244. cat >>conftest.$ac_ext <<_ACEOF
  20245. /* end confdefs.h. */
  20246. /* Override any GCC internal prototype to avoid an error.
  20247. Use char because int might match the return type of a GCC
  20248. builtin and then its argument prototype would still apply. */
  20249. #ifdef __cplusplus
  20250. extern "C"
  20251. #endif
  20252. char SVRCORE_GetRegisteredPinObj ();
  20253. int
  20254. main ()
  20255. {
  20256. return SVRCORE_GetRegisteredPinObj ();
  20257. ;
  20258. return 0;
  20259. }
  20260. _ACEOF
  20261. rm -f conftest.$ac_objext conftest$ac_exeext
  20262. if { (ac_try="$ac_link"
  20263. case "(($ac_try" in
  20264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20265. *) ac_try_echo=$ac_try;;
  20266. esac
  20267. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20268. $as_echo "$ac_try_echo") >&5
  20269. (eval "$ac_link") 2>conftest.er1
  20270. ac_status=$?
  20271. grep -v '^ *+' conftest.er1 >conftest.err
  20272. rm -f conftest.er1
  20273. cat conftest.err >&5
  20274. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20275. (exit $ac_status); } && {
  20276. test -z "$ac_c_werror_flag" ||
  20277. test ! -s conftest.err
  20278. } && test -s conftest$ac_exeext && {
  20279. test "$cross_compiling" = yes ||
  20280. $as_test_x conftest$ac_exeext
  20281. }; then
  20282. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=yes
  20283. else
  20284. $as_echo "$as_me: failed program was:" >&5
  20285. sed 's/^/| /' conftest.$ac_ext >&5
  20286. ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj=no
  20287. fi
  20288. rm -rf conftest.dSYM
  20289. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20290. conftest$ac_exeext conftest.$ac_ext
  20291. LIBS=$ac_check_lib_save_LIBS
  20292. fi
  20293. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&5
  20294. $as_echo "$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" >&6; }
  20295. if test "x$ac_cv_lib_svrcore_SVRCORE_GetRegisteredPinObj" = x""yes; then
  20296. havesvrcore=1
  20297. fi
  20298. if test -n "$havesvrcore" ; then
  20299. save_cppflags="$CPPFLAGS"
  20300. CPPFLAGS="$nss_inc $nspr_inc"
  20301. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20302. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  20303. $as_echo_n "checking for svrcore.h... " >&6; }
  20304. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20305. $as_echo_n "(cached) " >&6
  20306. fi
  20307. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  20308. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  20309. else
  20310. # Is the header compilable?
  20311. { $as_echo "$as_me:$LINENO: checking svrcore.h usability" >&5
  20312. $as_echo_n "checking svrcore.h usability... " >&6; }
  20313. cat >conftest.$ac_ext <<_ACEOF
  20314. /* confdefs.h. */
  20315. _ACEOF
  20316. cat confdefs.h >>conftest.$ac_ext
  20317. cat >>conftest.$ac_ext <<_ACEOF
  20318. /* end confdefs.h. */
  20319. $ac_includes_default
  20320. #include <svrcore.h>
  20321. _ACEOF
  20322. rm -f conftest.$ac_objext
  20323. if { (ac_try="$ac_compile"
  20324. case "(($ac_try" in
  20325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20326. *) ac_try_echo=$ac_try;;
  20327. esac
  20328. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20329. $as_echo "$ac_try_echo") >&5
  20330. (eval "$ac_compile") 2>conftest.er1
  20331. ac_status=$?
  20332. grep -v '^ *+' conftest.er1 >conftest.err
  20333. rm -f conftest.er1
  20334. cat conftest.err >&5
  20335. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20336. (exit $ac_status); } && {
  20337. test -z "$ac_c_werror_flag" ||
  20338. test ! -s conftest.err
  20339. } && test -s conftest.$ac_objext; then
  20340. ac_header_compiler=yes
  20341. else
  20342. $as_echo "$as_me: failed program was:" >&5
  20343. sed 's/^/| /' conftest.$ac_ext >&5
  20344. ac_header_compiler=no
  20345. fi
  20346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20347. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20348. $as_echo "$ac_header_compiler" >&6; }
  20349. # Is the header present?
  20350. { $as_echo "$as_me:$LINENO: checking svrcore.h presence" >&5
  20351. $as_echo_n "checking svrcore.h presence... " >&6; }
  20352. cat >conftest.$ac_ext <<_ACEOF
  20353. /* confdefs.h. */
  20354. _ACEOF
  20355. cat confdefs.h >>conftest.$ac_ext
  20356. cat >>conftest.$ac_ext <<_ACEOF
  20357. /* end confdefs.h. */
  20358. #include <svrcore.h>
  20359. _ACEOF
  20360. if { (ac_try="$ac_cpp conftest.$ac_ext"
  20361. case "(($ac_try" in
  20362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20363. *) ac_try_echo=$ac_try;;
  20364. esac
  20365. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20366. $as_echo "$ac_try_echo") >&5
  20367. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  20368. ac_status=$?
  20369. grep -v '^ *+' conftest.er1 >conftest.err
  20370. rm -f conftest.er1
  20371. cat conftest.err >&5
  20372. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20373. (exit $ac_status); } >/dev/null && {
  20374. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  20375. test ! -s conftest.err
  20376. }; then
  20377. ac_header_preproc=yes
  20378. else
  20379. $as_echo "$as_me: failed program was:" >&5
  20380. sed 's/^/| /' conftest.$ac_ext >&5
  20381. ac_header_preproc=no
  20382. fi
  20383. rm -f conftest.err conftest.$ac_ext
  20384. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20385. $as_echo "$ac_header_preproc" >&6; }
  20386. # So? What about this header?
  20387. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20388. yes:no: )
  20389. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&5
  20390. $as_echo "$as_me: WARNING: svrcore.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20391. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the compiler's result" >&5
  20392. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the compiler's result" >&2;}
  20393. ac_header_preproc=yes
  20394. ;;
  20395. no:yes:* )
  20396. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: present but cannot be compiled" >&5
  20397. $as_echo "$as_me: WARNING: svrcore.h: present but cannot be compiled" >&2;}
  20398. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: check for missing prerequisite headers?" >&5
  20399. $as_echo "$as_me: WARNING: svrcore.h: check for missing prerequisite headers?" >&2;}
  20400. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: see the Autoconf documentation" >&5
  20401. $as_echo "$as_me: WARNING: svrcore.h: see the Autoconf documentation" >&2;}
  20402. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&5
  20403. $as_echo "$as_me: WARNING: svrcore.h: section \"Present But Cannot Be Compiled\"" >&2;}
  20404. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: proceeding with the preprocessor's result" >&5
  20405. $as_echo "$as_me: WARNING: svrcore.h: proceeding with the preprocessor's result" >&2;}
  20406. { $as_echo "$as_me:$LINENO: WARNING: svrcore.h: in the future, the compiler will take precedence" >&5
  20407. $as_echo "$as_me: WARNING: svrcore.h: in the future, the compiler will take precedence" >&2;}
  20408. ( cat <<\_ASBOX
  20409. ## ------------------------------------------ ##
  20410. ## Report this to http://bugzilla.redhat.com/ ##
  20411. ## ------------------------------------------ ##
  20412. _ASBOX
  20413. ) | sed "s/^/$as_me: WARNING: /" >&2
  20414. ;;
  20415. esac
  20416. { $as_echo "$as_me:$LINENO: checking for svrcore.h" >&5
  20417. $as_echo_n "checking for svrcore.h... " >&6; }
  20418. if test "${ac_cv_header_svrcore_h+set}" = set; then
  20419. $as_echo_n "(cached) " >&6
  20420. else
  20421. ac_cv_header_svrcore_h=$ac_header_preproc
  20422. fi
  20423. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_svrcore_h" >&5
  20424. $as_echo "$ac_cv_header_svrcore_h" >&6; }
  20425. fi
  20426. if test "x$ac_cv_header_svrcore_h" = x""yes; then
  20427. havesvrcore=1
  20428. else
  20429. havesvrcore=
  20430. fi
  20431. CPPFLAGS="$save_cppflags"
  20432. fi
  20433. if test -z "$havesvrcore" ; then
  20434. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20435. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20436. { (exit 1); exit 1; }; }
  20437. fi
  20438. fi
  20439. if test -z "$svrcore_inc" -o -z "$svrcore_lib"; then
  20440. if test -f /usr/include/svrcore.h; then
  20441. svrcore_inc="-I/usr/include"
  20442. svrcore_lib="-L/usr/lib"
  20443. else
  20444. { { $as_echo "$as_me:$LINENO: error: SVRCORE not found, specify with --with-svrcore." >&5
  20445. $as_echo "$as_me: error: SVRCORE not found, specify with --with-svrcore." >&2;}
  20446. { (exit 1); exit 1; }; }
  20447. fi
  20448. fi
  20449. # BEGIN COPYRIGHT BLOCK
  20450. # Copyright (C) 2006 Red Hat, Inc.
  20451. # All rights reserved.
  20452. #
  20453. # This program is free software; you can redistribute it and/or
  20454. # modify it under the terms of the GNU General Public License
  20455. # as published by the Free Software Foundation; either version 2
  20456. # of the License, or (at your option) any later version.
  20457. #
  20458. # This program is distributed in the hope that it will be useful,
  20459. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20460. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20461. # GNU General Public License for more details.
  20462. #
  20463. # You should have received a copy of the GNU General Public License
  20464. # along with this program; if not, write to the Free Software
  20465. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20466. #
  20467. # END COPYRIGHT BLOCK
  20468. { $as_echo "$as_me:$LINENO: checking for LIBICU..." >&5
  20469. $as_echo "$as_me: checking for LIBICU..." >&6;}
  20470. # check for --with-icu
  20471. { $as_echo "$as_me:$LINENO: checking for --with-icu" >&5
  20472. $as_echo_n "checking for --with-icu... " >&6; }
  20473. # Check whether --with-icu was given.
  20474. if test "${with_icu+set}" = set; then
  20475. withval=$with_icu;
  20476. if test "$withval" = "yes"
  20477. then
  20478. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20479. $as_echo "yes" >&6; }
  20480. elif test "$withval" = "no"
  20481. then
  20482. { $as_echo "$as_me:$LINENO: result: no" >&5
  20483. $as_echo "no" >&6; }
  20484. { { $as_echo "$as_me:$LINENO: error: ICU is required." >&5
  20485. $as_echo "$as_me: error: ICU is required." >&2;}
  20486. { (exit 1); exit 1; }; }
  20487. elif test -d "$withval"/lib
  20488. then
  20489. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20490. $as_echo "using $withval" >&6; }
  20491. ICUDIR=$withval
  20492. icu_lib="-L$ICUDIR/lib"
  20493. icu_inc="-I$withval/include"
  20494. icu_bin="$withval/bin"
  20495. else
  20496. echo
  20497. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20498. $as_echo "$as_me: error: $withval not found" >&2;}
  20499. { (exit 1); exit 1; }; }
  20500. fi
  20501. else
  20502. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20503. $as_echo "yes" >&6; }
  20504. fi
  20505. # check for --with-icu-inc
  20506. { $as_echo "$as_me:$LINENO: checking for --with-icu-inc" >&5
  20507. $as_echo_n "checking for --with-icu-inc... " >&6; }
  20508. # Check whether --with-icu-inc was given.
  20509. if test "${with_icu_inc+set}" = set; then
  20510. withval=$with_icu_inc;
  20511. if test -d "$withval"
  20512. then
  20513. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20514. $as_echo "using $withval" >&6; }
  20515. icu_inc="-I$withval"
  20516. else
  20517. echo
  20518. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20519. $as_echo "$as_me: error: $withval not found" >&2;}
  20520. { (exit 1); exit 1; }; }
  20521. fi
  20522. else
  20523. { $as_echo "$as_me:$LINENO: result: no" >&5
  20524. $as_echo "no" >&6; }
  20525. fi
  20526. # check for --with-icu-lib
  20527. { $as_echo "$as_me:$LINENO: checking for --with-icu-lib" >&5
  20528. $as_echo_n "checking for --with-icu-lib... " >&6; }
  20529. # Check whether --with-icu-lib was given.
  20530. if test "${with_icu_lib+set}" = set; then
  20531. withval=$with_icu_lib;
  20532. if test -d "$withval"
  20533. then
  20534. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20535. $as_echo "using $withval" >&6; }
  20536. icu_lib="-L$withval"
  20537. else
  20538. echo
  20539. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20540. $as_echo "$as_me: error: $withval not found" >&2;}
  20541. { (exit 1); exit 1; }; }
  20542. fi
  20543. else
  20544. { $as_echo "$as_me:$LINENO: result: no" >&5
  20545. $as_echo "no" >&6; }
  20546. fi
  20547. # check for --with-icu-bin
  20548. { $as_echo "$as_me:$LINENO: checking for --with-icu-bin" >&5
  20549. $as_echo_n "checking for --with-icu-bin... " >&6; }
  20550. # Check whether --with-icu-bin was given.
  20551. if test "${with_icu_bin+set}" = set; then
  20552. withval=$with_icu_bin;
  20553. if test -d "$withval"
  20554. then
  20555. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20556. $as_echo "using $withval" >&6; }
  20557. icu_bin="$withval"
  20558. else
  20559. echo
  20560. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20561. $as_echo "$as_me: error: $withval not found" >&2;}
  20562. { (exit 1); exit 1; }; }
  20563. fi
  20564. else
  20565. { $as_echo "$as_me:$LINENO: result: no" >&5
  20566. $as_echo "no" >&6; }
  20567. fi
  20568. # if ICU is not found yet, try pkg-config
  20569. # last resort
  20570. if test -z "$icu_lib"; then
  20571. # Extract the first word of "icu-config", so it can be a program name with args.
  20572. set dummy icu-config; ac_word=$2
  20573. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20574. $as_echo_n "checking for $ac_word... " >&6; }
  20575. if test "${ac_cv_path_ICU_CONFIG+set}" = set; then
  20576. $as_echo_n "(cached) " >&6
  20577. else
  20578. case $ICU_CONFIG in
  20579. [\\/]* | ?:[\\/]*)
  20580. ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
  20581. ;;
  20582. *)
  20583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20584. for as_dir in $PATH
  20585. do
  20586. IFS=$as_save_IFS
  20587. test -z "$as_dir" && as_dir=.
  20588. for ac_exec_ext in '' $ac_executable_extensions; do
  20589. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20590. ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20591. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20592. break 2
  20593. fi
  20594. done
  20595. done
  20596. IFS=$as_save_IFS
  20597. ;;
  20598. esac
  20599. fi
  20600. ICU_CONFIG=$ac_cv_path_ICU_CONFIG
  20601. if test -n "$ICU_CONFIG"; then
  20602. { $as_echo "$as_me:$LINENO: result: $ICU_CONFIG" >&5
  20603. $as_echo "$ICU_CONFIG" >&6; }
  20604. else
  20605. { $as_echo "$as_me:$LINENO: result: no" >&5
  20606. $as_echo "no" >&6; }
  20607. fi
  20608. { $as_echo "$as_me:$LINENO: checking for icu with icu-config" >&5
  20609. $as_echo_n "checking for icu with icu-config... " >&6; }
  20610. if test -n "$ICU_CONFIG"; then
  20611. icu_lib=`$ICU_CONFIG --ldflags-searchpath`
  20612. icu_inc=`$ICU_CONFIG --cppflags-searchpath`
  20613. icu_bin=`$ICU_CONFIG --bindir`
  20614. { $as_echo "$as_me:$LINENO: result: using system ICU" >&5
  20615. $as_echo "using system ICU" >&6; }
  20616. else
  20617. { { $as_echo "$as_me:$LINENO: error: ICU not found, specify with --with-icu." >&5
  20618. $as_echo "$as_me: error: ICU not found, specify with --with-icu." >&2;}
  20619. { (exit 1); exit 1; }; }
  20620. fi
  20621. fi
  20622. # BEGIN COPYRIGHT BLOCK
  20623. # Copyright (C) 2006 Red Hat, Inc.
  20624. # All rights reserved.
  20625. #
  20626. # This program is free software; you can redistribute it and/or
  20627. # modify it under the terms of the GNU General Public License
  20628. # as published by the Free Software Foundation; either version 2
  20629. # of the License, or (at your option) any later version.
  20630. #
  20631. # This program is distributed in the hope that it will be useful,
  20632. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20633. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20634. # GNU General Public License for more details.
  20635. #
  20636. # You should have received a copy of the GNU General Public License
  20637. # along with this program; if not, write to the Free Software
  20638. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20639. #
  20640. # END COPYRIGHT BLOCK
  20641. { $as_echo "$as_me:$LINENO: checking for Net-SNMP..." >&5
  20642. $as_echo "$as_me: checking for Net-SNMP..." >&6;}
  20643. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp" >&5
  20644. $as_echo_n "checking for --with-netsnmp... " >&6; }
  20645. # Check whether --with-netsnmp was given.
  20646. if test "${with_netsnmp+set}" = set; then
  20647. withval=$with_netsnmp;
  20648. if test "$withval" = "yes"; then
  20649. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20650. $as_echo "yes" >&6; }
  20651. elif test "$withval" = "no"; then
  20652. { $as_echo "$as_me:$LINENO: result: no" >&5
  20653. $as_echo "no" >&6; }
  20654. { { $as_echo "$as_me:$LINENO: error: Net-SNMP is required." >&5
  20655. $as_echo "$as_me: error: Net-SNMP is required." >&2;}
  20656. { (exit 1); exit 1; }; }
  20657. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include"; then
  20658. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20659. $as_echo "using $withval" >&6; }
  20660. NETSNMPDIR=$withval
  20661. if test -f "$withval/include/net-snmp/net-snmp-includes.h"; then
  20662. netsnmp_inc="-I$withval/include"
  20663. else
  20664. { { $as_echo "$as_me:$LINENO: error: net-snmp-config.h not found" >&5
  20665. $as_echo "$as_me: error: net-snmp-config.h not found" >&2;}
  20666. { (exit 1); exit 1; }; }
  20667. fi
  20668. netsnmp_lib="-L$withval/lib"
  20669. netsnmp_libdir="$withval/lib"
  20670. else
  20671. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20672. $as_echo "yes" >&6; }
  20673. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20674. $as_echo "$as_me: error: $withval not found" >&2;}
  20675. { (exit 1); exit 1; }; }
  20676. fi
  20677. else
  20678. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20679. $as_echo "yes" >&6; }
  20680. fi
  20681. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-inc" >&5
  20682. $as_echo_n "checking for --with-netsnmp-inc... " >&6; }
  20683. # Check whether --with-netsnmp-inc was given.
  20684. if test "${with_netsnmp_inc+set}" = set; then
  20685. withval=$with_netsnmp_inc;
  20686. if test -f "$withval/net-snmp/net-snmp-includes.h"; then
  20687. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20688. $as_echo "using $withval" >&6; }
  20689. netsnmp_inc="-I$withval"
  20690. else
  20691. echo
  20692. { { $as_echo "$as_me:$LINENO: error: $withval/net-snmp/net-snmp-includes.h not found" >&5
  20693. $as_echo "$as_me: error: $withval/net-snmp/net-snmp-includes.h not found" >&2;}
  20694. { (exit 1); exit 1; }; }
  20695. fi
  20696. else
  20697. { $as_echo "$as_me:$LINENO: result: no" >&5
  20698. $as_echo "no" >&6; }
  20699. fi
  20700. { $as_echo "$as_me:$LINENO: checking for --with-netsnmp-lib" >&5
  20701. $as_echo_n "checking for --with-netsnmp-lib... " >&6; }
  20702. # Check whether --with-netsnmp-lib was given.
  20703. if test "${with_netsnmp_lib+set}" = set; then
  20704. withval=$with_netsnmp_lib;
  20705. if test -d "$withval"
  20706. then
  20707. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20708. $as_echo "using $withval" >&6; }
  20709. netsnmp_lib="-L$withval"
  20710. netsnmp_libdir="$withval"
  20711. else
  20712. echo
  20713. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20714. $as_echo "$as_me: error: $withval not found" >&2;}
  20715. { (exit 1); exit 1; }; }
  20716. fi
  20717. else
  20718. { $as_echo "$as_me:$LINENO: result: no" >&5
  20719. $as_echo "no" >&6; }
  20720. fi
  20721. if test -z "$netsnmp_inc" -o -z "$netsnmp_lib"; then
  20722. { $as_echo "$as_me:$LINENO: checking for net-snmp-includes.h" >&5
  20723. $as_echo_n "checking for net-snmp-includes.h... " >&6; }
  20724. if test -f /usr/include/net-snmp/net-snmp-includes.h; then
  20725. { $as_echo "$as_me:$LINENO: result: using /usr/include/net-snmp/net-snmp-includes.h" >&5
  20726. $as_echo "using /usr/include/net-snmp/net-snmp-includes.h" >&6; }
  20727. netsnmp_inc="-I/usr/include"
  20728. else
  20729. { $as_echo "$as_me:$LINENO: result: no" >&5
  20730. $as_echo "no" >&6; }
  20731. { { $as_echo "$as_me:$LINENO: error: net-snmp not found, specify with --with-netsnmp." >&5
  20732. $as_echo "$as_me: error: net-snmp not found, specify with --with-netsnmp." >&2;}
  20733. { (exit 1); exit 1; }; }
  20734. fi
  20735. fi
  20736. if test -n "$netsnmp_inc"; then
  20737. if test -x "$NETSNMPDIR/bin/net-snmp-config"; then
  20738. NETSNMP_CONFIG=$NETSNMPDIR/bin/net-snmp-config
  20739. else
  20740. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  20741. set dummy net-snmp-config; ac_word=$2
  20742. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20743. $as_echo_n "checking for $ac_word... " >&6; }
  20744. if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
  20745. $as_echo_n "(cached) " >&6
  20746. else
  20747. case $NETSNMP_CONFIG in
  20748. [\\/]* | ?:[\\/]*)
  20749. ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
  20750. ;;
  20751. *)
  20752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20753. for as_dir in $PATH
  20754. do
  20755. IFS=$as_save_IFS
  20756. test -z "$as_dir" && as_dir=.
  20757. for ac_exec_ext in '' $ac_executable_extensions; do
  20758. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20759. ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20760. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20761. break 2
  20762. fi
  20763. done
  20764. done
  20765. IFS=$as_save_IFS
  20766. ;;
  20767. esac
  20768. fi
  20769. NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
  20770. if test -n "$NETSNMP_CONFIG"; then
  20771. { $as_echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
  20772. $as_echo "$NETSNMP_CONFIG" >&6; }
  20773. else
  20774. { $as_echo "$as_me:$LINENO: result: no" >&5
  20775. $as_echo "no" >&6; }
  20776. fi
  20777. fi
  20778. if test -n "$NETSNMP_CONFIG"; then
  20779. netsnmp_link=`$NETSNMP_CONFIG --agent-libs`
  20780. else
  20781. { { $as_echo "$as_me:$LINENO: error: net-snmp-config not found, specify with --with-netsnmp." >&5
  20782. $as_echo "$as_me: error: net-snmp-config not found, specify with --with-netsnmp." >&2;}
  20783. { (exit 1); exit 1; }; }
  20784. fi
  20785. else
  20786. { { $as_echo "$as_me:$LINENO: error: Net-SNMP not found, specify with --with-netsnmp." >&5
  20787. $as_echo "$as_me: error: Net-SNMP not found, specify with --with-netsnmp." >&2;}
  20788. { (exit 1); exit 1; }; }
  20789. fi
  20790. # BEGIN COPYRIGHT BLOCK
  20791. # Copyright (C) 2008 Red Hat, Inc.
  20792. # All rights reserved.
  20793. #
  20794. # This program is free software; you can redistribute it and/or
  20795. # modify it under the terms of the GNU General Public License
  20796. # as published by the Free Software Foundation; either version 2
  20797. # of the License, or (at your option) any later version.
  20798. #
  20799. # This program is distributed in the hope that it will be useful,
  20800. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20801. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20802. # GNU General Public License for more details.
  20803. #
  20804. # You should have received a copy of the GNU General Public License
  20805. # along with this program; if not, write to the Free Software
  20806. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20807. #
  20808. # END COPYRIGHT BLOCK
  20809. # -*- tab-width: 4; -*-
  20810. # Configure paths for Kerberos
  20811. { $as_echo "$as_me:$LINENO: checking for Kerberos..." >&5
  20812. $as_echo "$as_me: checking for Kerberos..." >&6;}
  20813. if test -z "$with_kerberos" ; then
  20814. with_kerberos=yes # if not set on cmdline, set default
  20815. fi
  20816. { $as_echo "$as_me:$LINENO: checking for --with-kerberos" >&5
  20817. $as_echo_n "checking for --with-kerberos... " >&6; }
  20818. # Check whether --with-kerberos was given.
  20819. if test "${with_kerberos+set}" = set; then
  20820. withval=$with_kerberos;
  20821. if test "x$withval" = "xyes"; then
  20822. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20823. $as_echo "yes" >&6; }
  20824. elif test "x$withval" = "xno"; then
  20825. { $as_echo "$as_me:$LINENO: result: no" >&5
  20826. $as_echo "no" >&6; }
  20827. with_kerberos=
  20828. elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then
  20829. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20830. $as_echo "using $withval" >&6; }
  20831. kerberos_incdir="$withval/include"
  20832. kerberos_libdir="$withval/lib"
  20833. else
  20834. { $as_echo "$as_me:$LINENO: result: yes" >&5
  20835. $as_echo "yes" >&6; }
  20836. { { $as_echo "$as_me:$LINENO: error: kerberos not found in $withval" >&5
  20837. $as_echo "$as_me: error: kerberos not found in $withval" >&2;}
  20838. { (exit 1); exit 1; }; }
  20839. fi
  20840. else
  20841. { $as_echo "$as_me:$LINENO: result: no" >&5
  20842. $as_echo "no" >&6; }
  20843. with_kerberos=
  20844. fi
  20845. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-inc" >&5
  20846. $as_echo_n "checking for --with-kerberos-inc... " >&6; }
  20847. # Check whether --with-kerberos-inc was given.
  20848. if test "${with_kerberos_inc+set}" = set; then
  20849. withval=$with_kerberos_inc;
  20850. if test -f "$withval"/krb5.h; then
  20851. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20852. $as_echo "using $withval" >&6; }
  20853. kerberos_incdir="$withval"
  20854. with_kerberos=yes # implies use of kerberos
  20855. else
  20856. echo
  20857. { { $as_echo "$as_me:$LINENO: error: $withval/krb5.h not found" >&5
  20858. $as_echo "$as_me: error: $withval/krb5.h not found" >&2;}
  20859. { (exit 1); exit 1; }; }
  20860. fi
  20861. else
  20862. { $as_echo "$as_me:$LINENO: result: no" >&5
  20863. $as_echo "no" >&6; }
  20864. fi
  20865. { $as_echo "$as_me:$LINENO: checking for --with-kerberos-lib" >&5
  20866. $as_echo_n "checking for --with-kerberos-lib... " >&6; }
  20867. # Check whether --with-kerberos-lib was given.
  20868. if test "${with_kerberos_lib+set}" = set; then
  20869. withval=$with_kerberos_lib;
  20870. if test -d "$withval"; then
  20871. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  20872. $as_echo "using $withval" >&6; }
  20873. kerberos_libdir="$withval"
  20874. with_kerberos=yes # implies use of kerberos
  20875. else
  20876. echo
  20877. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  20878. $as_echo "$as_me: error: $withval not found" >&2;}
  20879. { (exit 1); exit 1; }; }
  20880. fi
  20881. else
  20882. { $as_echo "$as_me:$LINENO: result: no" >&5
  20883. $as_echo "no" >&6; }
  20884. fi
  20885. if test -n "$with_kerberos" ; then
  20886. if test -z "$kerberos_incdir" -o -z "$kerberos_libdir" ; then
  20887. if test -z "$KRB5_CONFIG_BIN" ; then
  20888. # Extract the first word of "krb5-config", so it can be a program name with args.
  20889. set dummy krb5-config; ac_word=$2
  20890. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  20891. $as_echo_n "checking for $ac_word... " >&6; }
  20892. if test "${ac_cv_path_KRB5_CONFIG_BIN+set}" = set; then
  20893. $as_echo_n "(cached) " >&6
  20894. else
  20895. case $KRB5_CONFIG_BIN in
  20896. [\\/]* | ?:[\\/]*)
  20897. ac_cv_path_KRB5_CONFIG_BIN="$KRB5_CONFIG_BIN" # Let the user override the test with a path.
  20898. ;;
  20899. *)
  20900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20901. for as_dir in $PATH
  20902. do
  20903. IFS=$as_save_IFS
  20904. test -z "$as_dir" && as_dir=.
  20905. for ac_exec_ext in '' $ac_executable_extensions; do
  20906. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20907. ac_cv_path_KRB5_CONFIG_BIN="$as_dir/$ac_word$ac_exec_ext"
  20908. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20909. break 2
  20910. fi
  20911. done
  20912. done
  20913. IFS=$as_save_IFS
  20914. ;;
  20915. esac
  20916. fi
  20917. KRB5_CONFIG_BIN=$ac_cv_path_KRB5_CONFIG_BIN
  20918. if test -n "$KRB5_CONFIG_BIN"; then
  20919. { $as_echo "$as_me:$LINENO: result: $KRB5_CONFIG_BIN" >&5
  20920. $as_echo "$KRB5_CONFIG_BIN" >&6; }
  20921. else
  20922. { $as_echo "$as_me:$LINENO: result: no" >&5
  20923. $as_echo "no" >&6; }
  20924. fi
  20925. fi
  20926. if test -n "$KRB5_CONFIG_BIN" ; then
  20927. { $as_echo "$as_me:$LINENO: checking for kerberos with $KRB5_CONFIG_BIN" >&5
  20928. $as_echo_n "checking for kerberos with $KRB5_CONFIG_BIN... " >&6; }
  20929. if test -z "$kerberos_libdir" ; then
  20930. kerberos_lib=`$KRB5_CONFIG_BIN --libs krb5`
  20931. fi
  20932. if test -z "$kerberos_incdir" ; then
  20933. kerberos_inc=`$KRB5_CONFIG_BIN --cflags krb5`
  20934. fi
  20935. if test -n "$kerberos_lib" ; then
  20936. { $as_echo "$as_me:$LINENO: result: using kerberos found with $KRB5_CONFIG_BIN" >&5
  20937. $as_echo "using kerberos found with $KRB5_CONFIG_BIN" >&6; }
  20938. have_krb5=yes
  20939. fi
  20940. fi
  20941. fi
  20942. fi
  20943. if test -n "$with_kerberos" -a -z "$kerberos_lib" ; then
  20944. # save these in order to set them to use the check macros below
  20945. # like AC_CHECK_HEADERS, AC_CHECK_LIB, and AC_CHECK_FUNCS
  20946. save_CPPFLAGS="$CPPFLAGS"
  20947. if test -n "$kerberos_incdir" ; then
  20948. CPPFLAGS="-I$kerberos_incdir $CPPFLAGS"
  20949. fi
  20950. save_LDFLAGS="$LDFLAGS"
  20951. if test -n "$kerberos_libdir" ; then
  20952. LDFLAGS="-L$kerberos_libdir $LDFLAGS"
  20953. fi
  20954. krb5_impl=mit
  20955. for ac_header in heim_err.h
  20956. do
  20957. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20958. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20959. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  20960. $as_echo_n "checking for $ac_header... " >&6; }
  20961. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  20962. $as_echo_n "(cached) " >&6
  20963. fi
  20964. ac_res=`eval 'as_val=${'$as_ac_Header'}
  20965. $as_echo "$as_val"'`
  20966. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20967. $as_echo "$ac_res" >&6; }
  20968. else
  20969. # Is the header compilable?
  20970. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20971. $as_echo_n "checking $ac_header usability... " >&6; }
  20972. cat >conftest.$ac_ext <<_ACEOF
  20973. /* confdefs.h. */
  20974. _ACEOF
  20975. cat confdefs.h >>conftest.$ac_ext
  20976. cat >>conftest.$ac_ext <<_ACEOF
  20977. /* end confdefs.h. */
  20978. $ac_includes_default
  20979. #include <$ac_header>
  20980. _ACEOF
  20981. rm -f conftest.$ac_objext
  20982. if { (ac_try="$ac_compile"
  20983. case "(($ac_try" in
  20984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20985. *) ac_try_echo=$ac_try;;
  20986. esac
  20987. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20988. $as_echo "$ac_try_echo") >&5
  20989. (eval "$ac_compile") 2>conftest.er1
  20990. ac_status=$?
  20991. grep -v '^ *+' conftest.er1 >conftest.err
  20992. rm -f conftest.er1
  20993. cat conftest.err >&5
  20994. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20995. (exit $ac_status); } && {
  20996. test -z "$ac_c_werror_flag" ||
  20997. test ! -s conftest.err
  20998. } && test -s conftest.$ac_objext; then
  20999. ac_header_compiler=yes
  21000. else
  21001. $as_echo "$as_me: failed program was:" >&5
  21002. sed 's/^/| /' conftest.$ac_ext >&5
  21003. ac_header_compiler=no
  21004. fi
  21005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21006. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  21007. $as_echo "$ac_header_compiler" >&6; }
  21008. # Is the header present?
  21009. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  21010. $as_echo_n "checking $ac_header presence... " >&6; }
  21011. cat >conftest.$ac_ext <<_ACEOF
  21012. /* confdefs.h. */
  21013. _ACEOF
  21014. cat confdefs.h >>conftest.$ac_ext
  21015. cat >>conftest.$ac_ext <<_ACEOF
  21016. /* end confdefs.h. */
  21017. #include <$ac_header>
  21018. _ACEOF
  21019. if { (ac_try="$ac_cpp conftest.$ac_ext"
  21020. case "(($ac_try" in
  21021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21022. *) ac_try_echo=$ac_try;;
  21023. esac
  21024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21025. $as_echo "$ac_try_echo") >&5
  21026. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  21027. ac_status=$?
  21028. grep -v '^ *+' conftest.er1 >conftest.err
  21029. rm -f conftest.er1
  21030. cat conftest.err >&5
  21031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21032. (exit $ac_status); } >/dev/null && {
  21033. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  21034. test ! -s conftest.err
  21035. }; then
  21036. ac_header_preproc=yes
  21037. else
  21038. $as_echo "$as_me: failed program was:" >&5
  21039. sed 's/^/| /' conftest.$ac_ext >&5
  21040. ac_header_preproc=no
  21041. fi
  21042. rm -f conftest.err conftest.$ac_ext
  21043. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  21044. $as_echo "$ac_header_preproc" >&6; }
  21045. # So? What about this header?
  21046. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  21047. yes:no: )
  21048. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  21049. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  21050. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  21051. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  21052. ac_header_preproc=yes
  21053. ;;
  21054. no:yes:* )
  21055. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  21056. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  21057. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  21058. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  21059. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  21060. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  21061. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  21062. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  21063. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  21064. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  21065. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  21066. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  21067. ( cat <<\_ASBOX
  21068. ## ------------------------------------------ ##
  21069. ## Report this to http://bugzilla.redhat.com/ ##
  21070. ## ------------------------------------------ ##
  21071. _ASBOX
  21072. ) | sed "s/^/$as_me: WARNING: /" >&2
  21073. ;;
  21074. esac
  21075. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  21076. $as_echo_n "checking for $ac_header... " >&6; }
  21077. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  21078. $as_echo_n "(cached) " >&6
  21079. else
  21080. eval "$as_ac_Header=\$ac_header_preproc"
  21081. fi
  21082. ac_res=`eval 'as_val=${'$as_ac_Header'}
  21083. $as_echo "$as_val"'`
  21084. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21085. $as_echo "$ac_res" >&6; }
  21086. fi
  21087. as_val=`eval 'as_val=${'$as_ac_Header'}
  21088. $as_echo "$as_val"'`
  21089. if test "x$as_val" = x""yes; then
  21090. cat >>confdefs.h <<_ACEOF
  21091. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21092. _ACEOF
  21093. fi
  21094. done
  21095. if test $ac_cv_header_heim_err_h = yes ; then
  21096. krb5_impl=heimdal
  21097. fi
  21098. if test "x$krb5_impl" = "xmit"; then
  21099. { $as_echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
  21100. $as_echo_n "checking for main in -lk5crypto... " >&6; }
  21101. if test "${ac_cv_lib_k5crypto_main+set}" = set; then
  21102. $as_echo_n "(cached) " >&6
  21103. else
  21104. ac_check_lib_save_LIBS=$LIBS
  21105. LIBS="-lk5crypto $LIBS"
  21106. cat >conftest.$ac_ext <<_ACEOF
  21107. /* confdefs.h. */
  21108. _ACEOF
  21109. cat confdefs.h >>conftest.$ac_ext
  21110. cat >>conftest.$ac_ext <<_ACEOF
  21111. /* end confdefs.h. */
  21112. int
  21113. main ()
  21114. {
  21115. return main ();
  21116. ;
  21117. return 0;
  21118. }
  21119. _ACEOF
  21120. rm -f conftest.$ac_objext conftest$ac_exeext
  21121. if { (ac_try="$ac_link"
  21122. case "(($ac_try" in
  21123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21124. *) ac_try_echo=$ac_try;;
  21125. esac
  21126. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21127. $as_echo "$ac_try_echo") >&5
  21128. (eval "$ac_link") 2>conftest.er1
  21129. ac_status=$?
  21130. grep -v '^ *+' conftest.er1 >conftest.err
  21131. rm -f conftest.er1
  21132. cat conftest.err >&5
  21133. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21134. (exit $ac_status); } && {
  21135. test -z "$ac_c_werror_flag" ||
  21136. test ! -s conftest.err
  21137. } && test -s conftest$ac_exeext && {
  21138. test "$cross_compiling" = yes ||
  21139. $as_test_x conftest$ac_exeext
  21140. }; then
  21141. ac_cv_lib_k5crypto_main=yes
  21142. else
  21143. $as_echo "$as_me: failed program was:" >&5
  21144. sed 's/^/| /' conftest.$ac_ext >&5
  21145. ac_cv_lib_k5crypto_main=no
  21146. fi
  21147. rm -rf conftest.dSYM
  21148. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21149. conftest$ac_exeext conftest.$ac_ext
  21150. LIBS=$ac_check_lib_save_LIBS
  21151. fi
  21152. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
  21153. $as_echo "$ac_cv_lib_k5crypto_main" >&6; }
  21154. if test "x$ac_cv_lib_k5crypto_main" = x""yes; then
  21155. krb5crypto=k5crypto
  21156. else
  21157. krb5crypto=crypto
  21158. fi
  21159. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  21160. $as_echo_n "checking for main in -lkrb5... " >&6; }
  21161. if test "${ac_cv_lib_krb5_main+set}" = set; then
  21162. $as_echo_n "(cached) " >&6
  21163. else
  21164. ac_check_lib_save_LIBS=$LIBS
  21165. LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
  21166. cat >conftest.$ac_ext <<_ACEOF
  21167. /* confdefs.h. */
  21168. _ACEOF
  21169. cat confdefs.h >>conftest.$ac_ext
  21170. cat >>conftest.$ac_ext <<_ACEOF
  21171. /* end confdefs.h. */
  21172. int
  21173. main ()
  21174. {
  21175. return main ();
  21176. ;
  21177. return 0;
  21178. }
  21179. _ACEOF
  21180. rm -f conftest.$ac_objext conftest$ac_exeext
  21181. if { (ac_try="$ac_link"
  21182. case "(($ac_try" in
  21183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21184. *) ac_try_echo=$ac_try;;
  21185. esac
  21186. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21187. $as_echo "$ac_try_echo") >&5
  21188. (eval "$ac_link") 2>conftest.er1
  21189. ac_status=$?
  21190. grep -v '^ *+' conftest.er1 >conftest.err
  21191. rm -f conftest.er1
  21192. cat conftest.err >&5
  21193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21194. (exit $ac_status); } && {
  21195. test -z "$ac_c_werror_flag" ||
  21196. test ! -s conftest.err
  21197. } && test -s conftest$ac_exeext && {
  21198. test "$cross_compiling" = yes ||
  21199. $as_test_x conftest$ac_exeext
  21200. }; then
  21201. ac_cv_lib_krb5_main=yes
  21202. else
  21203. $as_echo "$as_me: failed program was:" >&5
  21204. sed 's/^/| /' conftest.$ac_ext >&5
  21205. ac_cv_lib_krb5_main=no
  21206. fi
  21207. rm -rf conftest.dSYM
  21208. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21209. conftest$ac_exeext conftest.$ac_ext
  21210. LIBS=$ac_check_lib_save_LIBS
  21211. fi
  21212. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  21213. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  21214. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  21215. have_krb5=yes
  21216. kerberos_lib="-lkrb5 -l$krb5crypto -lcom_err"
  21217. else
  21218. have_krb5=no
  21219. fi
  21220. elif test "x$krb5_impl" = "xheimdal"; then
  21221. { $as_echo "$as_me:$LINENO: checking for main in -ldes" >&5
  21222. $as_echo_n "checking for main in -ldes... " >&6; }
  21223. if test "${ac_cv_lib_des_main+set}" = set; then
  21224. $as_echo_n "(cached) " >&6
  21225. else
  21226. ac_check_lib_save_LIBS=$LIBS
  21227. LIBS="-ldes $LIBS"
  21228. cat >conftest.$ac_ext <<_ACEOF
  21229. /* confdefs.h. */
  21230. _ACEOF
  21231. cat confdefs.h >>conftest.$ac_ext
  21232. cat >>conftest.$ac_ext <<_ACEOF
  21233. /* end confdefs.h. */
  21234. int
  21235. main ()
  21236. {
  21237. return main ();
  21238. ;
  21239. return 0;
  21240. }
  21241. _ACEOF
  21242. rm -f conftest.$ac_objext conftest$ac_exeext
  21243. if { (ac_try="$ac_link"
  21244. case "(($ac_try" in
  21245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21246. *) ac_try_echo=$ac_try;;
  21247. esac
  21248. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21249. $as_echo "$ac_try_echo") >&5
  21250. (eval "$ac_link") 2>conftest.er1
  21251. ac_status=$?
  21252. grep -v '^ *+' conftest.er1 >conftest.err
  21253. rm -f conftest.er1
  21254. cat conftest.err >&5
  21255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21256. (exit $ac_status); } && {
  21257. test -z "$ac_c_werror_flag" ||
  21258. test ! -s conftest.err
  21259. } && test -s conftest$ac_exeext && {
  21260. test "$cross_compiling" = yes ||
  21261. $as_test_x conftest$ac_exeext
  21262. }; then
  21263. ac_cv_lib_des_main=yes
  21264. else
  21265. $as_echo "$as_me: failed program was:" >&5
  21266. sed 's/^/| /' conftest.$ac_ext >&5
  21267. ac_cv_lib_des_main=no
  21268. fi
  21269. rm -rf conftest.dSYM
  21270. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21271. conftest$ac_exeext conftest.$ac_ext
  21272. LIBS=$ac_check_lib_save_LIBS
  21273. fi
  21274. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
  21275. $as_echo "$ac_cv_lib_des_main" >&6; }
  21276. if test "x$ac_cv_lib_des_main" = x""yes; then
  21277. krb5crypto=des
  21278. else
  21279. krb5crypto=crypto
  21280. fi
  21281. { $as_echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
  21282. $as_echo_n "checking for main in -lkrb5... " >&6; }
  21283. if test "${ac_cv_lib_krb5_main+set}" = set; then
  21284. $as_echo_n "(cached) " >&6
  21285. else
  21286. ac_check_lib_save_LIBS=$LIBS
  21287. LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
  21288. cat >conftest.$ac_ext <<_ACEOF
  21289. /* confdefs.h. */
  21290. _ACEOF
  21291. cat confdefs.h >>conftest.$ac_ext
  21292. cat >>conftest.$ac_ext <<_ACEOF
  21293. /* end confdefs.h. */
  21294. int
  21295. main ()
  21296. {
  21297. return main ();
  21298. ;
  21299. return 0;
  21300. }
  21301. _ACEOF
  21302. rm -f conftest.$ac_objext conftest$ac_exeext
  21303. if { (ac_try="$ac_link"
  21304. case "(($ac_try" in
  21305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21306. *) ac_try_echo=$ac_try;;
  21307. esac
  21308. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21309. $as_echo "$ac_try_echo") >&5
  21310. (eval "$ac_link") 2>conftest.er1
  21311. ac_status=$?
  21312. grep -v '^ *+' conftest.er1 >conftest.err
  21313. rm -f conftest.er1
  21314. cat conftest.err >&5
  21315. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21316. (exit $ac_status); } && {
  21317. test -z "$ac_c_werror_flag" ||
  21318. test ! -s conftest.err
  21319. } && test -s conftest$ac_exeext && {
  21320. test "$cross_compiling" = yes ||
  21321. $as_test_x conftest$ac_exeext
  21322. }; then
  21323. ac_cv_lib_krb5_main=yes
  21324. else
  21325. $as_echo "$as_me: failed program was:" >&5
  21326. sed 's/^/| /' conftest.$ac_ext >&5
  21327. ac_cv_lib_krb5_main=no
  21328. fi
  21329. rm -rf conftest.dSYM
  21330. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21331. conftest$ac_exeext conftest.$ac_ext
  21332. LIBS=$ac_check_lib_save_LIBS
  21333. fi
  21334. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
  21335. $as_echo "$ac_cv_lib_krb5_main" >&6; }
  21336. if test "x$ac_cv_lib_krb5_main" = x""yes; then
  21337. have_krb5=yes
  21338. kerberos_lib="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
  21339. else
  21340. have_krb5=no
  21341. fi
  21342. cat >>confdefs.h <<\_ACEOF
  21343. #define HAVE_HEIMDAL_KERBEROS 1
  21344. _ACEOF
  21345. else
  21346. have_krb5=no
  21347. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
  21348. $as_echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
  21349. fi
  21350. # reset to original values
  21351. CPPFLAGS="$save_CPPFLAGS"
  21352. LDFLAGS="$save_LDFLAGS"
  21353. if test -n "$kerberos_incdir" ; then
  21354. kerberos_inc="-I$kerberos_incdir"
  21355. fi
  21356. if test -n "$kerberos_libdir" ; then
  21357. kerberos_lib="-L$kerberos_libdir $kerberos_lib"
  21358. fi
  21359. fi
  21360. if test -n "$with_kerberos" ; then
  21361. if test "x$have_krb5" = "xyes" ; then
  21362. cat >>confdefs.h <<\_ACEOF
  21363. #define HAVE_KRB5 1
  21364. _ACEOF
  21365. else
  21366. { { $as_echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
  21367. $as_echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
  21368. { (exit 1); exit 1; }; }
  21369. fi
  21370. save_LIBS="$LIBS"
  21371. LIBS="$kerberos_lib"
  21372. save_CPPFLAGS="$CPPFLAGS"
  21373. CPPFLAGS="$kerberos_inc $CPPFLAGS"
  21374. for ac_func in krb5_cc_new_unique
  21375. do
  21376. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21377. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  21378. $as_echo_n "checking for $ac_func... " >&6; }
  21379. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  21380. $as_echo_n "(cached) " >&6
  21381. else
  21382. cat >conftest.$ac_ext <<_ACEOF
  21383. /* confdefs.h. */
  21384. _ACEOF
  21385. cat confdefs.h >>conftest.$ac_ext
  21386. cat >>conftest.$ac_ext <<_ACEOF
  21387. /* end confdefs.h. */
  21388. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  21389. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  21390. #define $ac_func innocuous_$ac_func
  21391. /* System header to define __stub macros and hopefully few prototypes,
  21392. which can conflict with char $ac_func (); below.
  21393. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21394. <limits.h> exists even on freestanding compilers. */
  21395. #ifdef __STDC__
  21396. # include <limits.h>
  21397. #else
  21398. # include <assert.h>
  21399. #endif
  21400. #undef $ac_func
  21401. /* Override any GCC internal prototype to avoid an error.
  21402. Use char because int might match the return type of a GCC
  21403. builtin and then its argument prototype would still apply. */
  21404. #ifdef __cplusplus
  21405. extern "C"
  21406. #endif
  21407. char $ac_func ();
  21408. /* The GNU C library defines this for functions which it implements
  21409. to always fail with ENOSYS. Some functions are actually named
  21410. something starting with __ and the normal name is an alias. */
  21411. #if defined __stub_$ac_func || defined __stub___$ac_func
  21412. choke me
  21413. #endif
  21414. int
  21415. main ()
  21416. {
  21417. return $ac_func ();
  21418. ;
  21419. return 0;
  21420. }
  21421. _ACEOF
  21422. rm -f conftest.$ac_objext conftest$ac_exeext
  21423. if { (ac_try="$ac_link"
  21424. case "(($ac_try" in
  21425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21426. *) ac_try_echo=$ac_try;;
  21427. esac
  21428. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  21429. $as_echo "$ac_try_echo") >&5
  21430. (eval "$ac_link") 2>conftest.er1
  21431. ac_status=$?
  21432. grep -v '^ *+' conftest.er1 >conftest.err
  21433. rm -f conftest.er1
  21434. cat conftest.err >&5
  21435. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21436. (exit $ac_status); } && {
  21437. test -z "$ac_c_werror_flag" ||
  21438. test ! -s conftest.err
  21439. } && test -s conftest$ac_exeext && {
  21440. test "$cross_compiling" = yes ||
  21441. $as_test_x conftest$ac_exeext
  21442. }; then
  21443. eval "$as_ac_var=yes"
  21444. else
  21445. $as_echo "$as_me: failed program was:" >&5
  21446. sed 's/^/| /' conftest.$ac_ext >&5
  21447. eval "$as_ac_var=no"
  21448. fi
  21449. rm -rf conftest.dSYM
  21450. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  21451. conftest$ac_exeext conftest.$ac_ext
  21452. fi
  21453. ac_res=`eval 'as_val=${'$as_ac_var'}
  21454. $as_echo "$as_val"'`
  21455. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  21456. $as_echo "$ac_res" >&6; }
  21457. as_val=`eval 'as_val=${'$as_ac_var'}
  21458. $as_echo "$as_val"'`
  21459. if test "x$as_val" = x""yes; then
  21460. cat >>confdefs.h <<_ACEOF
  21461. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21462. _ACEOF
  21463. fi
  21464. done
  21465. LIBS="$save_LIBS"
  21466. CPPFLAGS="$save_CPPFLAGS"
  21467. fi
  21468. # BEGIN COPYRIGHT BLOCK
  21469. # Copyright (C) 2007 Red Hat, Inc.
  21470. # All rights reserved.
  21471. #
  21472. # This program is free software; you can redistribute it and/or
  21473. # modify it under the terms of the GNU General Public License
  21474. # as published by the Free Software Foundation; either version 2
  21475. # of the License, or (at your option) any later version.
  21476. #
  21477. # This program is distributed in the hope that it will be useful,
  21478. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21479. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21480. # GNU General Public License for more details.
  21481. #
  21482. # You should have received a copy of the GNU General Public License
  21483. # along with this program; if not, write to the Free Software
  21484. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21485. #
  21486. # END COPYRIGHT BLOCK
  21487. { $as_echo "$as_me:$LINENO: checking for PCRE..." >&5
  21488. $as_echo "$as_me: checking for PCRE..." >&6;}
  21489. { $as_echo "$as_me:$LINENO: checking for --with-pcre" >&5
  21490. $as_echo_n "checking for --with-pcre... " >&6; }
  21491. # Check whether --with-pcre was given.
  21492. if test "${with_pcre+set}" = set; then
  21493. withval=$with_pcre;
  21494. if test "$withval" = "yes"; then
  21495. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21496. $as_echo "yes" >&6; }
  21497. elif test "$withval" = "no"; then
  21498. { $as_echo "$as_me:$LINENO: result: no" >&5
  21499. $as_echo "no" >&6; }
  21500. { { $as_echo "$as_me:$LINENO: error: PCRE is required." >&5
  21501. $as_echo "$as_me: error: PCRE is required." >&2;}
  21502. { (exit 1); exit 1; }; }
  21503. elif test -d "$withval"/include -a -d "$withval"/lib; then
  21504. { $as_echo "$as_me:$LINENO: result: using $withval" >&5
  21505. $as_echo "using $withval" >&6; }
  21506. PCREDIR=$withval
  21507. pcre_lib="-L$PCREDIR/lib"
  21508. pcre_libdir="$PCREDIR/lib"
  21509. pcre_incdir="$PCREDIR/include"
  21510. if ! test -e "$pcre_incdir/pcre.h" ; then
  21511. { { $as_echo "$as_me:$LINENO: error: $withval include dir not found" >&5
  21512. $as_echo "$as_me: error: $withval include dir not found" >&2;}
  21513. { (exit 1); exit 1; }; }
  21514. fi
  21515. pcre_inc="-I$pcre_incdir"
  21516. else
  21517. echo
  21518. { { $as_echo "$as_me:$LINENO: error: $withval not found" >&5
  21519. $as_echo "$as_me: error: $withval not found" >&2;}
  21520. { (exit 1); exit 1; }; }
  21521. fi
  21522. else
  21523. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21524. $as_echo "yes" >&6; }
  21525. fi
  21526. #
  21527. # if PCRE is not found yet, try pkg-config
  21528. if test -z "$pcre_inc" -o -z "$pcre_lib" -o -z "$pcre_libdir"; then
  21529. # Extract the first word of "pkg-config", so it can be a program name with args.
  21530. set dummy pkg-config; ac_word=$2
  21531. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  21532. $as_echo_n "checking for $ac_word... " >&6; }
  21533. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  21534. $as_echo_n "(cached) " >&6
  21535. else
  21536. case $PKG_CONFIG in
  21537. [\\/]* | ?:[\\/]*)
  21538. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  21539. ;;
  21540. *)
  21541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21542. for as_dir in $PATH
  21543. do
  21544. IFS=$as_save_IFS
  21545. test -z "$as_dir" && as_dir=.
  21546. for ac_exec_ext in '' $ac_executable_extensions; do
  21547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21548. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  21549. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21550. break 2
  21551. fi
  21552. done
  21553. done
  21554. IFS=$as_save_IFS
  21555. ;;
  21556. esac
  21557. fi
  21558. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  21559. if test -n "$PKG_CONFIG"; then
  21560. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  21561. $as_echo "$PKG_CONFIG" >&6; }
  21562. else
  21563. { $as_echo "$as_me:$LINENO: result: no" >&5
  21564. $as_echo "no" >&6; }
  21565. fi
  21566. { $as_echo "$as_me:$LINENO: checking for pcre with pkg-config" >&5
  21567. $as_echo_n "checking for pcre with pkg-config... " >&6; }
  21568. if test -n "$PKG_CONFIG"; then
  21569. if $PKG_CONFIG --exists pcre; then
  21570. pcre_inc=`$PKG_CONFIG --cflags-only-I pcre`
  21571. pcre_lib=`$PKG_CONFIG --libs-only-L pcre`
  21572. pcre_libdir=`$PKG_CONFIG --libs-only-L pcre | sed -e s/-L// | sed -e s/\ .*$//`
  21573. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21574. $as_echo "using system PCRE" >&6; }
  21575. elif $PKG_CONFIG --exists libpcre; then
  21576. pcre_inc=`$PKG_CONFIG --cflags-only-I libpcre`
  21577. pcre_lib=`$PKG_CONFIG --libs-only-L libpcre`
  21578. pcre_libdir=`$PKG_CONFIG --libs-only-L libpcre | sed -e s/-L// | sed -e s/\ .*$//`
  21579. { $as_echo "$as_me:$LINENO: result: using system PCRE" >&5
  21580. $as_echo "using system PCRE" >&6; }
  21581. else
  21582. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21583. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21584. { (exit 1); exit 1; }; }
  21585. fi
  21586. fi
  21587. fi
  21588. if test -z "$pcre_inc"; then
  21589. { $as_echo "$as_me:$LINENO: checking for pcre.h" >&5
  21590. $as_echo_n "checking for pcre.h... " >&6; }
  21591. if test -f "/usr/include/pcre/pcre.h"; then
  21592. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre/pcre.h" >&5
  21593. $as_echo "using /usr/include/pcre/pcre.h" >&6; }
  21594. pcre_incdir="/usr/include/pcre"
  21595. pcre_inc="-I/usr/include/pcre"
  21596. pcre_lib='-L$(libdir)'
  21597. pcre_libdir='$(libdir)'
  21598. elif test -f "/usr/include/pcre.h"; then
  21599. { $as_echo "$as_me:$LINENO: result: using /usr/include/pcre.h" >&5
  21600. $as_echo "using /usr/include/pcre.h" >&6; }
  21601. pcre_incdir="/usr/include"
  21602. pcre_inc="-I/usr/include"
  21603. pcre_lib='-L$(libdir)'
  21604. pcre_libdir='$(libdir)'
  21605. else
  21606. { $as_echo "$as_me:$LINENO: result: no" >&5
  21607. $as_echo "no" >&6; }
  21608. { { $as_echo "$as_me:$LINENO: error: PCRE not found, specify with --with-pcre." >&5
  21609. $as_echo "$as_me: error: PCRE not found, specify with --with-pcre." >&2;}
  21610. { (exit 1); exit 1; }; }
  21611. fi
  21612. fi
  21613. # BEGIN COPYRIGHT BLOCK
  21614. # Copyright (C) 2009 Red Hat, Inc.
  21615. # All rights reserved.
  21616. #
  21617. # This program is free software; you can redistribute it and/or
  21618. # modify it under the terms of the GNU General Public License
  21619. # as published by the Free Software Foundation; either version 2
  21620. # of the License, or (at your option) any later version.
  21621. #
  21622. # This program is distributed in the hope that it will be useful,
  21623. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21624. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21625. # GNU General Public License for more details.
  21626. #
  21627. # You should have received a copy of the GNU General Public License
  21628. # along with this program; if not, write to the Free Software
  21629. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  21630. #
  21631. # END COPYRIGHT BLOCK
  21632. { $as_echo "$as_me:$LINENO: checking for SELinux..." >&5
  21633. $as_echo "$as_me: checking for SELinux..." >&6;}
  21634. # check for --with-selinux
  21635. { $as_echo "$as_me:$LINENO: checking for --with-selinux" >&5
  21636. $as_echo_n "checking for --with-selinux... " >&6; }
  21637. # Check whether --with-selinux was given.
  21638. if test "${with_selinux+set}" = set; then
  21639. withval=$with_selinux;
  21640. if test "$withval" = "no"; then
  21641. { $as_echo "$as_me:$LINENO: result: no" >&5
  21642. $as_echo "no" >&6; }
  21643. else
  21644. with_selinux=yes
  21645. { $as_echo "$as_me:$LINENO: result: yes" >&5
  21646. $as_echo "yes" >&6; }
  21647. fi
  21648. else
  21649. { $as_echo "$as_me:$LINENO: result: no" >&5
  21650. $as_echo "no" >&6; }
  21651. fi
  21652. PACKAGE_BASE_VERSION=`echo $PACKAGE_VERSION | awk -F\. '{print $1"."$2}'`
  21653. # set sasl_path for wrapper scripts
  21654. if test -z "$sasl_libdir" ; then
  21655. sasl_path="$libdir/sasl2"
  21656. else
  21657. sasl_path="$sasl_libdir/sasl2"
  21658. fi
  21659. if test "$with_selinux" = "yes"; then
  21660. SELINUX_TRUE=
  21661. SELINUX_FALSE='#'
  21662. else
  21663. SELINUX_TRUE='#'
  21664. SELINUX_FALSE=
  21665. fi
  21666. if test "$with_openldap" = "yes"; then
  21667. OPENLDAP_TRUE=
  21668. OPENLDAP_FALSE='#'
  21669. else
  21670. OPENLDAP_TRUE='#'
  21671. OPENLDAP_FALSE=
  21672. fi
  21673. # write out paths for binary components
  21674. cat >>confdefs.h <<\_ACEOF
  21675. #define LDAP_DEBUG 1
  21676. _ACEOF
  21677. cat >>confdefs.h <<\_ACEOF
  21678. #define LDAP_DONT_USE_SMARTHEAP 1
  21679. _ACEOF
  21680. # libtool on fedora/rhel contains some gcc-isms which cause problems
  21681. # if not using gcc (e.g. Forte on Solaris, aCC on HP-UX)
  21682. # we remove them here
  21683. if test "$GCC" != yes ; then
  21684. { $as_echo "$as_me:$LINENO: Not using gcc - fixing libtool to remove gcc-isms . . ." >&5
  21685. $as_echo "$as_me: Not using gcc - fixing libtool to remove gcc-isms . . ." >&6;}
  21686. cp -p libtool libtool.orig
  21687. cp -p libtool libtool.tmp
  21688. # dnl note the special chars [ and ] - since m4 treats [ and ] specially,
  21689. # we have to use the quadrigraph [ for [ and ] for ] - and you thought
  21690. # perl produced write-only code . . .
  21691. sed -e '/^gcc_dir/ d' \
  21692. -e '/^gcc_ver/ d' \
  21693. -e 's/^predep_objects=.*echo \("[^"]*"\).*$/predep_objects=\1/' \
  21694. -e 's/^postdep_objects=.*echo \("[^"]*"\).*$/postdep_objects=\1/' \
  21695. -e 's/^compiler_lib_search_path=.*echo \("[^"]*"\).*$/compiler_lib_search_path=\1/' \
  21696. -e 's/^sys_lib_search_path_spec=.*echo \("[^"]*"\).*$/sys_lib_search_path_spec=\1/' \
  21697. libtool > libtool.tmp
  21698. cp -p libtool.tmp libtool
  21699. rm -f libtool.tmp
  21700. fi
  21701. ac_config_files="$ac_config_files Makefile"
  21702. cat >confcache <<\_ACEOF
  21703. # This file is a shell script that caches the results of configure
  21704. # tests run on this system so they can be shared between configure
  21705. # scripts and configure runs, see configure's option --config-cache.
  21706. # It is not useful on other systems. If it contains results you don't
  21707. # want to keep, you may remove or edit it.
  21708. #
  21709. # config.status only pays attention to the cache file if you give it
  21710. # the --recheck option to rerun configure.
  21711. #
  21712. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21713. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21714. # following values.
  21715. _ACEOF
  21716. # The following way of writing the cache mishandles newlines in values,
  21717. # but we know of no workaround that is simple, portable, and efficient.
  21718. # So, we kill variables containing newlines.
  21719. # Ultrix sh set writes to stderr and can't be redirected directly,
  21720. # and sets the high bit in the cache file unless we assign to the vars.
  21721. (
  21722. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21723. eval ac_val=\$$ac_var
  21724. case $ac_val in #(
  21725. *${as_nl}*)
  21726. case $ac_var in #(
  21727. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  21728. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21729. esac
  21730. case $ac_var in #(
  21731. _ | IFS | as_nl) ;; #(
  21732. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21733. *) $as_unset $ac_var ;;
  21734. esac ;;
  21735. esac
  21736. done
  21737. (set) 2>&1 |
  21738. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21739. *${as_nl}ac_space=\ *)
  21740. # `set' does not quote correctly, so add quotes (double-quote
  21741. # substitution turns \\\\ into \\, and sed turns \\ into \).
  21742. sed -n \
  21743. "s/'/'\\\\''/g;
  21744. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21745. ;; #(
  21746. *)
  21747. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21748. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21749. ;;
  21750. esac |
  21751. sort
  21752. ) |
  21753. sed '
  21754. /^ac_cv_env_/b end
  21755. t clear
  21756. :clear
  21757. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21758. t end
  21759. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21760. :end' >>confcache
  21761. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21762. if test -w "$cache_file"; then
  21763. test "x$cache_file" != "x/dev/null" &&
  21764. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  21765. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21766. cat confcache >$cache_file
  21767. else
  21768. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  21769. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21770. fi
  21771. fi
  21772. rm -f confcache
  21773. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21774. # Let make expand exec_prefix.
  21775. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21776. DEFS=-DHAVE_CONFIG_H
  21777. ac_libobjs=
  21778. ac_ltlibobjs=
  21779. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21780. # 1. Remove the extension, and $U if already installed.
  21781. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21782. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21783. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21784. # will be set to the directory where LIBOBJS objects are built.
  21785. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21786. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  21787. done
  21788. LIBOBJS=$ac_libobjs
  21789. LTLIBOBJS=$ac_ltlibobjs
  21790. if test -n "$EXEEXT"; then
  21791. am__EXEEXT_TRUE=
  21792. am__EXEEXT_FALSE='#'
  21793. else
  21794. am__EXEEXT_TRUE='#'
  21795. am__EXEEXT_FALSE=
  21796. fi
  21797. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  21798. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  21799. Usually this means the macro was only invoked conditionally." >&5
  21800. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  21801. Usually this means the macro was only invoked conditionally." >&2;}
  21802. { (exit 1); exit 1; }; }
  21803. fi
  21804. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  21805. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  21806. Usually this means the macro was only invoked conditionally." >&5
  21807. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  21808. Usually this means the macro was only invoked conditionally." >&2;}
  21809. { (exit 1); exit 1; }; }
  21810. fi
  21811. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21812. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21813. Usually this means the macro was only invoked conditionally." >&5
  21814. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21815. Usually this means the macro was only invoked conditionally." >&2;}
  21816. { (exit 1); exit 1; }; }
  21817. fi
  21818. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  21819. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  21820. Usually this means the macro was only invoked conditionally." >&5
  21821. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  21822. Usually this means the macro was only invoked conditionally." >&2;}
  21823. { (exit 1); exit 1; }; }
  21824. fi
  21825. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  21826. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  21827. Usually this means the macro was only invoked conditionally." >&5
  21828. $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  21829. Usually this means the macro was only invoked conditionally." >&2;}
  21830. { (exit 1); exit 1; }; }
  21831. fi
  21832. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  21833. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  21834. Usually this means the macro was only invoked conditionally." >&5
  21835. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  21836. Usually this means the macro was only invoked conditionally." >&2;}
  21837. { (exit 1); exit 1; }; }
  21838. fi
  21839. if test -z "${BUNDLE_TRUE}" && test -z "${BUNDLE_FALSE}"; then
  21840. { { $as_echo "$as_me:$LINENO: error: conditional \"BUNDLE\" was never defined.
  21841. Usually this means the macro was only invoked conditionally." >&5
  21842. $as_echo "$as_me: error: conditional \"BUNDLE\" was never defined.
  21843. Usually this means the macro was only invoked conditionally." >&2;}
  21844. { (exit 1); exit 1; }; }
  21845. fi
  21846. if test -z "${enable_pam_passthru_TRUE}" && test -z "${enable_pam_passthru_FALSE}"; then
  21847. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_pam_passthru\" was never defined.
  21848. Usually this means the macro was only invoked conditionally." >&5
  21849. $as_echo "$as_me: error: conditional \"enable_pam_passthru\" was never defined.
  21850. Usually this means the macro was only invoked conditionally." >&2;}
  21851. { (exit 1); exit 1; }; }
  21852. fi
  21853. if test -z "${enable_dna_TRUE}" && test -z "${enable_dna_FALSE}"; then
  21854. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_dna\" was never defined.
  21855. Usually this means the macro was only invoked conditionally." >&5
  21856. $as_echo "$as_me: error: conditional \"enable_dna\" was never defined.
  21857. Usually this means the macro was only invoked conditionally." >&2;}
  21858. { (exit 1); exit 1; }; }
  21859. fi
  21860. if test -z "${enable_ldapi_TRUE}" && test -z "${enable_ldapi_FALSE}"; then
  21861. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_ldapi\" was never defined.
  21862. Usually this means the macro was only invoked conditionally." >&5
  21863. $as_echo "$as_me: error: conditional \"enable_ldapi\" was never defined.
  21864. Usually this means the macro was only invoked conditionally." >&2;}
  21865. { (exit 1); exit 1; }; }
  21866. fi
  21867. if test -z "${enable_autobind_TRUE}" && test -z "${enable_autobind_FALSE}"; then
  21868. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_autobind\" was never defined.
  21869. Usually this means the macro was only invoked conditionally." >&5
  21870. $as_echo "$as_me: error: conditional \"enable_autobind\" was never defined.
  21871. Usually this means the macro was only invoked conditionally." >&2;}
  21872. { (exit 1); exit 1; }; }
  21873. fi
  21874. if test -z "${enable_auto_dn_suffix_TRUE}" && test -z "${enable_auto_dn_suffix_FALSE}"; then
  21875. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_auto_dn_suffix\" was never defined.
  21876. Usually this means the macro was only invoked conditionally." >&5
  21877. $as_echo "$as_me: error: conditional \"enable_auto_dn_suffix\" was never defined.
  21878. Usually this means the macro was only invoked conditionally." >&2;}
  21879. { (exit 1); exit 1; }; }
  21880. fi
  21881. if test -z "${enable_bitwise_TRUE}" && test -z "${enable_bitwise_FALSE}"; then
  21882. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_bitwise\" was never defined.
  21883. Usually this means the macro was only invoked conditionally." >&5
  21884. $as_echo "$as_me: error: conditional \"enable_bitwise\" was never defined.
  21885. Usually this means the macro was only invoked conditionally." >&2;}
  21886. { (exit 1); exit 1; }; }
  21887. fi
  21888. if test -z "${enable_presence_TRUE}" && test -z "${enable_presence_FALSE}"; then
  21889. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_presence\" was never defined.
  21890. Usually this means the macro was only invoked conditionally." >&5
  21891. $as_echo "$as_me: error: conditional \"enable_presence\" was never defined.
  21892. Usually this means the macro was only invoked conditionally." >&2;}
  21893. { (exit 1); exit 1; }; }
  21894. fi
  21895. if test -z "${enable_acctpolicy_TRUE}" && test -z "${enable_acctpolicy_FALSE}"; then
  21896. { { $as_echo "$as_me:$LINENO: error: conditional \"enable_acctpolicy\" was never defined.
  21897. Usually this means the macro was only invoked conditionally." >&5
  21898. $as_echo "$as_me: error: conditional \"enable_acctpolicy\" was never defined.
  21899. Usually this means the macro was only invoked conditionally." >&2;}
  21900. { (exit 1); exit 1; }; }
  21901. fi
  21902. if test -z "${WINNT_TRUE}" && test -z "${WINNT_FALSE}"; then
  21903. { { $as_echo "$as_me:$LINENO: error: conditional \"WINNT\" was never defined.
  21904. Usually this means the macro was only invoked conditionally." >&5
  21905. $as_echo "$as_me: error: conditional \"WINNT\" was never defined.
  21906. Usually this means the macro was only invoked conditionally." >&2;}
  21907. { (exit 1); exit 1; }; }
  21908. fi
  21909. if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then
  21910. { { $as_echo "$as_me:$LINENO: error: conditional \"HPUX\" was never defined.
  21911. Usually this means the macro was only invoked conditionally." >&5
  21912. $as_echo "$as_me: error: conditional \"HPUX\" was never defined.
  21913. Usually this means the macro was only invoked conditionally." >&2;}
  21914. { (exit 1); exit 1; }; }
  21915. fi
  21916. if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
  21917. { { $as_echo "$as_me:$LINENO: error: conditional \"SOLARIS\" was never defined.
  21918. Usually this means the macro was only invoked conditionally." >&5
  21919. $as_echo "$as_me: error: conditional \"SOLARIS\" was never defined.
  21920. Usually this means the macro was only invoked conditionally." >&2;}
  21921. { (exit 1); exit 1; }; }
  21922. fi
  21923. if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
  21924. { { $as_echo "$as_me:$LINENO: error: conditional \"SYSTEMD\" was never defined.
  21925. Usually this means the macro was only invoked conditionally." >&5
  21926. $as_echo "$as_me: error: conditional \"SYSTEMD\" was never defined.
  21927. Usually this means the macro was only invoked conditionally." >&2;}
  21928. { (exit 1); exit 1; }; }
  21929. fi
  21930. if test -z "${SELINUX_TRUE}" && test -z "${SELINUX_FALSE}"; then
  21931. { { $as_echo "$as_me:$LINENO: error: conditional \"SELINUX\" was never defined.
  21932. Usually this means the macro was only invoked conditionally." >&5
  21933. $as_echo "$as_me: error: conditional \"SELINUX\" was never defined.
  21934. Usually this means the macro was only invoked conditionally." >&2;}
  21935. { (exit 1); exit 1; }; }
  21936. fi
  21937. if test -z "${OPENLDAP_TRUE}" && test -z "${OPENLDAP_FALSE}"; then
  21938. { { $as_echo "$as_me:$LINENO: error: conditional \"OPENLDAP\" was never defined.
  21939. Usually this means the macro was only invoked conditionally." >&5
  21940. $as_echo "$as_me: error: conditional \"OPENLDAP\" was never defined.
  21941. Usually this means the macro was only invoked conditionally." >&2;}
  21942. { (exit 1); exit 1; }; }
  21943. fi
  21944. : ${CONFIG_STATUS=./config.status}
  21945. ac_write_fail=0
  21946. ac_clean_files_save=$ac_clean_files
  21947. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21948. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21949. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21950. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21951. #! $SHELL
  21952. # Generated by $as_me.
  21953. # Run this file to recreate the current configuration.
  21954. # Compiler output produced by configure, useful for debugging
  21955. # configure, is in config.log if it exists.
  21956. debug=false
  21957. ac_cs_recheck=false
  21958. ac_cs_silent=false
  21959. SHELL=\${CONFIG_SHELL-$SHELL}
  21960. _ACEOF
  21961. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21962. ## --------------------- ##
  21963. ## M4sh Initialization. ##
  21964. ## --------------------- ##
  21965. # Be more Bourne compatible
  21966. DUALCASE=1; export DUALCASE # for MKS sh
  21967. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21968. emulate sh
  21969. NULLCMD=:
  21970. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21971. # is contrary to our usage. Disable this feature.
  21972. alias -g '${1+"$@"}'='"$@"'
  21973. setopt NO_GLOB_SUBST
  21974. else
  21975. case `(set -o) 2>/dev/null` in
  21976. *posix*) set -o posix ;;
  21977. esac
  21978. fi
  21979. # PATH needs CR
  21980. # Avoid depending upon Character Ranges.
  21981. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21982. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21983. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21984. as_cr_digits='0123456789'
  21985. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21986. as_nl='
  21987. '
  21988. export as_nl
  21989. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21990. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21991. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21992. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21993. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21994. as_echo='printf %s\n'
  21995. as_echo_n='printf %s'
  21996. else
  21997. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21998. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21999. as_echo_n='/usr/ucb/echo -n'
  22000. else
  22001. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22002. as_echo_n_body='eval
  22003. arg=$1;
  22004. case $arg in
  22005. *"$as_nl"*)
  22006. expr "X$arg" : "X\\(.*\\)$as_nl";
  22007. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22008. esac;
  22009. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22010. '
  22011. export as_echo_n_body
  22012. as_echo_n='sh -c $as_echo_n_body as_echo'
  22013. fi
  22014. export as_echo_body
  22015. as_echo='sh -c $as_echo_body as_echo'
  22016. fi
  22017. # The user is always right.
  22018. if test "${PATH_SEPARATOR+set}" != set; then
  22019. PATH_SEPARATOR=:
  22020. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22021. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22022. PATH_SEPARATOR=';'
  22023. }
  22024. fi
  22025. # Support unset when possible.
  22026. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22027. as_unset=unset
  22028. else
  22029. as_unset=false
  22030. fi
  22031. # IFS
  22032. # We need space, tab and new line, in precisely that order. Quoting is
  22033. # there to prevent editors from complaining about space-tab.
  22034. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22035. # splitting by setting IFS to empty value.)
  22036. IFS=" "" $as_nl"
  22037. # Find who we are. Look in the path if we contain no directory separator.
  22038. case $0 in
  22039. *[\\/]* ) as_myself=$0 ;;
  22040. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22041. for as_dir in $PATH
  22042. do
  22043. IFS=$as_save_IFS
  22044. test -z "$as_dir" && as_dir=.
  22045. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22046. done
  22047. IFS=$as_save_IFS
  22048. ;;
  22049. esac
  22050. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22051. # in which case we are not to be found in the path.
  22052. if test "x$as_myself" = x; then
  22053. as_myself=$0
  22054. fi
  22055. if test ! -f "$as_myself"; then
  22056. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22057. { (exit 1); exit 1; }
  22058. fi
  22059. # Work around bugs in pre-3.0 UWIN ksh.
  22060. for as_var in ENV MAIL MAILPATH
  22061. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  22062. done
  22063. PS1='$ '
  22064. PS2='> '
  22065. PS4='+ '
  22066. # NLS nuisances.
  22067. LC_ALL=C
  22068. export LC_ALL
  22069. LANGUAGE=C
  22070. export LANGUAGE
  22071. # Required to use basename.
  22072. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22073. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22074. as_expr=expr
  22075. else
  22076. as_expr=false
  22077. fi
  22078. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22079. as_basename=basename
  22080. else
  22081. as_basename=false
  22082. fi
  22083. # Name of the executable.
  22084. as_me=`$as_basename -- "$0" ||
  22085. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22086. X"$0" : 'X\(//\)$' \| \
  22087. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22088. $as_echo X/"$0" |
  22089. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22090. s//\1/
  22091. q
  22092. }
  22093. /^X\/\(\/\/\)$/{
  22094. s//\1/
  22095. q
  22096. }
  22097. /^X\/\(\/\).*/{
  22098. s//\1/
  22099. q
  22100. }
  22101. s/.*/./; q'`
  22102. # CDPATH.
  22103. $as_unset CDPATH
  22104. as_lineno_1=$LINENO
  22105. as_lineno_2=$LINENO
  22106. test "x$as_lineno_1" != "x$as_lineno_2" &&
  22107. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  22108. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  22109. # uniformly replaced by the line number. The first 'sed' inserts a
  22110. # line-number line after each line using $LINENO; the second 'sed'
  22111. # does the real work. The second script uses 'N' to pair each
  22112. # line-number line with the line containing $LINENO, and appends
  22113. # trailing '-' during substitution so that $LINENO is not a special
  22114. # case at line end.
  22115. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  22116. # scripts with optimization help from Paolo Bonzini. Blame Lee
  22117. # E. McMahon (1931-1989) for sed's syntax. :-)
  22118. sed -n '
  22119. p
  22120. /[$]LINENO/=
  22121. ' <$as_myself |
  22122. sed '
  22123. s/[$]LINENO.*/&-/
  22124. t lineno
  22125. b
  22126. :lineno
  22127. N
  22128. :loop
  22129. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  22130. t loop
  22131. s/-\n.*//
  22132. ' >$as_me.lineno &&
  22133. chmod +x "$as_me.lineno" ||
  22134. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  22135. { (exit 1); exit 1; }; }
  22136. # Don't try to exec as it changes $[0], causing all sort of problems
  22137. # (the dirname of $[0] is not the place where we might find the
  22138. # original and so on. Autoconf is especially sensitive to this).
  22139. . "./$as_me.lineno"
  22140. # Exit status is that of the last command.
  22141. exit
  22142. }
  22143. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22144. as_dirname=dirname
  22145. else
  22146. as_dirname=false
  22147. fi
  22148. ECHO_C= ECHO_N= ECHO_T=
  22149. case `echo -n x` in
  22150. -n*)
  22151. case `echo 'x\c'` in
  22152. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22153. *) ECHO_C='\c';;
  22154. esac;;
  22155. *)
  22156. ECHO_N='-n';;
  22157. esac
  22158. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22159. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22160. as_expr=expr
  22161. else
  22162. as_expr=false
  22163. fi
  22164. rm -f conf$$ conf$$.exe conf$$.file
  22165. if test -d conf$$.dir; then
  22166. rm -f conf$$.dir/conf$$.file
  22167. else
  22168. rm -f conf$$.dir
  22169. mkdir conf$$.dir 2>/dev/null
  22170. fi
  22171. if (echo >conf$$.file) 2>/dev/null; then
  22172. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22173. as_ln_s='ln -s'
  22174. # ... but there are two gotchas:
  22175. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22176. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22177. # In both cases, we have to default to `cp -p'.
  22178. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22179. as_ln_s='cp -p'
  22180. elif ln conf$$.file conf$$ 2>/dev/null; then
  22181. as_ln_s=ln
  22182. else
  22183. as_ln_s='cp -p'
  22184. fi
  22185. else
  22186. as_ln_s='cp -p'
  22187. fi
  22188. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22189. rmdir conf$$.dir 2>/dev/null
  22190. if mkdir -p . 2>/dev/null; then
  22191. as_mkdir_p=:
  22192. else
  22193. test -d ./-p && rmdir ./-p
  22194. as_mkdir_p=false
  22195. fi
  22196. if test -x / >/dev/null 2>&1; then
  22197. as_test_x='test -x'
  22198. else
  22199. if ls -dL / >/dev/null 2>&1; then
  22200. as_ls_L_option=L
  22201. else
  22202. as_ls_L_option=
  22203. fi
  22204. as_test_x='
  22205. eval sh -c '\''
  22206. if test -d "$1"; then
  22207. test -d "$1/.";
  22208. else
  22209. case $1 in
  22210. -*)set "./$1";;
  22211. esac;
  22212. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  22213. ???[sx]*):;;*)false;;esac;fi
  22214. '\'' sh
  22215. '
  22216. fi
  22217. as_executable_p=$as_test_x
  22218. # Sed expression to map a string onto a valid CPP name.
  22219. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22220. # Sed expression to map a string onto a valid variable name.
  22221. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22222. exec 6>&1
  22223. # Save the log message, to keep $[0] and so on meaningful, and to
  22224. # report actual input values of CONFIG_FILES etc. instead of their
  22225. # values after options handling.
  22226. ac_log="
  22227. This file was extended by dirsrv $as_me 1.0, which was
  22228. generated by GNU Autoconf 2.63. Invocation command line was
  22229. CONFIG_FILES = $CONFIG_FILES
  22230. CONFIG_HEADERS = $CONFIG_HEADERS
  22231. CONFIG_LINKS = $CONFIG_LINKS
  22232. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22233. $ $0 $@
  22234. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22235. "
  22236. _ACEOF
  22237. case $ac_config_files in *"
  22238. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22239. esac
  22240. case $ac_config_headers in *"
  22241. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22242. esac
  22243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22244. # Files that config.status was made for.
  22245. config_files="$ac_config_files"
  22246. config_headers="$ac_config_headers"
  22247. config_commands="$ac_config_commands"
  22248. _ACEOF
  22249. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22250. ac_cs_usage="\
  22251. \`$as_me' instantiates files from templates according to the
  22252. current configuration.
  22253. Usage: $0 [OPTION]... [FILE]...
  22254. -h, --help print this help, then exit
  22255. -V, --version print version number and configuration settings, then exit
  22256. -q, --quiet, --silent
  22257. do not print progress messages
  22258. -d, --debug don't remove temporary files
  22259. --recheck update $as_me by reconfiguring in the same conditions
  22260. --file=FILE[:TEMPLATE]
  22261. instantiate the configuration file FILE
  22262. --header=FILE[:TEMPLATE]
  22263. instantiate the configuration header FILE
  22264. Configuration files:
  22265. $config_files
  22266. Configuration headers:
  22267. $config_headers
  22268. Configuration commands:
  22269. $config_commands
  22270. Report bugs to <[email protected]>."
  22271. _ACEOF
  22272. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22273. ac_cs_version="\\
  22274. dirsrv config.status 1.0
  22275. configured by $0, generated by GNU Autoconf 2.63,
  22276. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  22277. Copyright (C) 2008 Free Software Foundation, Inc.
  22278. This config.status script is free software; the Free Software Foundation
  22279. gives unlimited permission to copy, distribute and modify it."
  22280. ac_pwd='$ac_pwd'
  22281. srcdir='$srcdir'
  22282. INSTALL='$INSTALL'
  22283. MKDIR_P='$MKDIR_P'
  22284. AWK='$AWK'
  22285. test -n "\$AWK" || AWK=awk
  22286. _ACEOF
  22287. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22288. # The default lists apply if the user does not specify any file.
  22289. ac_need_defaults=:
  22290. while test $# != 0
  22291. do
  22292. case $1 in
  22293. --*=*)
  22294. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22295. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22296. ac_shift=:
  22297. ;;
  22298. *)
  22299. ac_option=$1
  22300. ac_optarg=$2
  22301. ac_shift=shift
  22302. ;;
  22303. esac
  22304. case $ac_option in
  22305. # Handling of the options.
  22306. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22307. ac_cs_recheck=: ;;
  22308. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22309. $as_echo "$ac_cs_version"; exit ;;
  22310. --debug | --debu | --deb | --de | --d | -d )
  22311. debug=: ;;
  22312. --file | --fil | --fi | --f )
  22313. $ac_shift
  22314. case $ac_optarg in
  22315. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22316. esac
  22317. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  22318. ac_need_defaults=false;;
  22319. --header | --heade | --head | --hea )
  22320. $ac_shift
  22321. case $ac_optarg in
  22322. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22323. esac
  22324. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  22325. ac_need_defaults=false;;
  22326. --he | --h)
  22327. # Conflict between --help and --header
  22328. { $as_echo "$as_me: error: ambiguous option: $1
  22329. Try \`$0 --help' for more information." >&2
  22330. { (exit 1); exit 1; }; };;
  22331. --help | --hel | -h )
  22332. $as_echo "$ac_cs_usage"; exit ;;
  22333. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22334. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22335. ac_cs_silent=: ;;
  22336. # This is an error.
  22337. -*) { $as_echo "$as_me: error: unrecognized option: $1
  22338. Try \`$0 --help' for more information." >&2
  22339. { (exit 1); exit 1; }; } ;;
  22340. *) ac_config_targets="$ac_config_targets $1"
  22341. ac_need_defaults=false ;;
  22342. esac
  22343. shift
  22344. done
  22345. ac_configure_extra_args=
  22346. if $ac_cs_silent; then
  22347. exec 6>/dev/null
  22348. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22349. fi
  22350. _ACEOF
  22351. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22352. if \$ac_cs_recheck; then
  22353. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22354. shift
  22355. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22356. CONFIG_SHELL='$SHELL'
  22357. export CONFIG_SHELL
  22358. exec "\$@"
  22359. fi
  22360. _ACEOF
  22361. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22362. exec 5>>config.log
  22363. {
  22364. echo
  22365. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22366. ## Running $as_me. ##
  22367. _ASBOX
  22368. $as_echo "$ac_log"
  22369. } >&5
  22370. _ACEOF
  22371. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22372. #
  22373. # INIT-COMMANDS
  22374. #
  22375. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22376. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22377. # if CDPATH is set.
  22378. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22379. sed_quote_subst='$sed_quote_subst'
  22380. double_quote_subst='$double_quote_subst'
  22381. delay_variable_subst='$delay_variable_subst'
  22382. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  22383. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  22384. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  22385. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  22386. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  22387. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  22388. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22389. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  22390. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  22391. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  22392. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  22393. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  22394. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  22395. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  22396. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  22397. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22398. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  22399. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  22400. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  22401. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  22402. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  22403. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  22404. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  22405. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  22406. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  22407. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  22408. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22409. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22410. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  22411. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  22412. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  22413. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  22414. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22415. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  22416. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  22417. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22418. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22419. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22420. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  22421. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  22422. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  22423. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  22424. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  22425. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  22426. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  22427. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22428. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  22429. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  22430. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  22431. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  22432. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22433. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  22434. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  22435. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  22436. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  22437. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  22438. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  22439. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  22440. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  22441. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  22442. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  22443. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  22444. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22445. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22446. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  22447. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  22448. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22449. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22450. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  22451. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22452. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22453. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22454. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22455. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22456. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22457. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22458. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22459. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  22460. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22461. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  22462. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  22463. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  22464. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  22465. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  22466. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22467. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  22468. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  22469. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  22470. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  22471. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  22472. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22473. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22474. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  22475. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22476. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22477. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  22478. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  22479. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  22480. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  22481. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22482. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  22483. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  22484. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22485. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22486. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22487. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22488. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22489. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  22490. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  22491. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  22492. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22493. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  22494. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  22495. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  22496. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  22497. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  22498. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22499. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  22500. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  22501. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22502. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  22503. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  22504. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  22505. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  22506. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22507. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22508. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22509. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22510. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22511. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22512. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22513. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22514. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22515. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22516. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22517. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22518. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22519. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22520. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22521. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22522. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22523. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22524. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22525. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22526. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22527. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22528. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22529. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22530. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22531. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22532. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22533. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22534. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22535. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22536. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22537. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22538. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22539. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22540. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22541. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22542. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22543. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22544. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22545. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22546. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22547. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22548. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22549. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22550. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22551. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22552. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  22553. LTCC='$LTCC'
  22554. LTCFLAGS='$LTCFLAGS'
  22555. compiler='$compiler_DEFAULT'
  22556. # Quote evaled strings.
  22557. for var in SED \
  22558. GREP \
  22559. EGREP \
  22560. FGREP \
  22561. LD \
  22562. NM \
  22563. LN_S \
  22564. lt_SP2NL \
  22565. lt_NL2SP \
  22566. reload_flag \
  22567. OBJDUMP \
  22568. deplibs_check_method \
  22569. file_magic_cmd \
  22570. AR \
  22571. AR_FLAGS \
  22572. STRIP \
  22573. RANLIB \
  22574. CC \
  22575. CFLAGS \
  22576. compiler \
  22577. lt_cv_sys_global_symbol_pipe \
  22578. lt_cv_sys_global_symbol_to_cdecl \
  22579. lt_cv_sys_global_symbol_to_c_name_address \
  22580. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22581. SHELL \
  22582. ECHO \
  22583. lt_prog_compiler_no_builtin_flag \
  22584. lt_prog_compiler_wl \
  22585. lt_prog_compiler_pic \
  22586. lt_prog_compiler_static \
  22587. lt_cv_prog_compiler_c_o \
  22588. need_locks \
  22589. DSYMUTIL \
  22590. NMEDIT \
  22591. LIPO \
  22592. OTOOL \
  22593. OTOOL64 \
  22594. shrext_cmds \
  22595. export_dynamic_flag_spec \
  22596. whole_archive_flag_spec \
  22597. compiler_needs_object \
  22598. with_gnu_ld \
  22599. allow_undefined_flag \
  22600. no_undefined_flag \
  22601. hardcode_libdir_flag_spec \
  22602. hardcode_libdir_flag_spec_ld \
  22603. hardcode_libdir_separator \
  22604. fix_srcfile_path \
  22605. exclude_expsyms \
  22606. include_expsyms \
  22607. file_list_spec \
  22608. variables_saved_for_relink \
  22609. libname_spec \
  22610. library_names_spec \
  22611. soname_spec \
  22612. finish_eval \
  22613. old_striplib \
  22614. striplib \
  22615. compiler_lib_search_dirs \
  22616. predep_objects \
  22617. postdep_objects \
  22618. predeps \
  22619. postdeps \
  22620. compiler_lib_search_path \
  22621. LD_CXX \
  22622. compiler_CXX \
  22623. lt_prog_compiler_no_builtin_flag_CXX \
  22624. lt_prog_compiler_wl_CXX \
  22625. lt_prog_compiler_pic_CXX \
  22626. lt_prog_compiler_static_CXX \
  22627. lt_cv_prog_compiler_c_o_CXX \
  22628. export_dynamic_flag_spec_CXX \
  22629. whole_archive_flag_spec_CXX \
  22630. compiler_needs_object_CXX \
  22631. with_gnu_ld_CXX \
  22632. allow_undefined_flag_CXX \
  22633. no_undefined_flag_CXX \
  22634. hardcode_libdir_flag_spec_CXX \
  22635. hardcode_libdir_flag_spec_ld_CXX \
  22636. hardcode_libdir_separator_CXX \
  22637. fix_srcfile_path_CXX \
  22638. exclude_expsyms_CXX \
  22639. include_expsyms_CXX \
  22640. file_list_spec_CXX \
  22641. compiler_lib_search_dirs_CXX \
  22642. predep_objects_CXX \
  22643. postdep_objects_CXX \
  22644. predeps_CXX \
  22645. postdeps_CXX \
  22646. compiler_lib_search_path_CXX; do
  22647. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22648. *[\\\\\\\`\\"\\\$]*)
  22649. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22650. ;;
  22651. *)
  22652. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22653. ;;
  22654. esac
  22655. done
  22656. # Double-quote double-evaled strings.
  22657. for var in reload_cmds \
  22658. old_postinstall_cmds \
  22659. old_postuninstall_cmds \
  22660. old_archive_cmds \
  22661. extract_expsyms_cmds \
  22662. old_archive_from_new_cmds \
  22663. old_archive_from_expsyms_cmds \
  22664. archive_cmds \
  22665. archive_expsym_cmds \
  22666. module_cmds \
  22667. module_expsym_cmds \
  22668. export_symbols_cmds \
  22669. prelink_cmds \
  22670. postinstall_cmds \
  22671. postuninstall_cmds \
  22672. finish_cmds \
  22673. sys_lib_search_path_spec \
  22674. sys_lib_dlsearch_path_spec \
  22675. old_archive_cmds_CXX \
  22676. old_archive_from_new_cmds_CXX \
  22677. old_archive_from_expsyms_cmds_CXX \
  22678. archive_cmds_CXX \
  22679. archive_expsym_cmds_CXX \
  22680. module_cmds_CXX \
  22681. module_expsym_cmds_CXX \
  22682. export_symbols_cmds_CXX \
  22683. prelink_cmds_CXX; do
  22684. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  22685. *[\\\\\\\`\\"\\\$]*)
  22686. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22687. ;;
  22688. *)
  22689. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22690. ;;
  22691. esac
  22692. done
  22693. # Fix-up fallback echo if it was mangled by the above quoting rules.
  22694. case \$lt_ECHO in
  22695. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  22696. ;;
  22697. esac
  22698. ac_aux_dir='$ac_aux_dir'
  22699. xsi_shell='$xsi_shell'
  22700. lt_shell_append='$lt_shell_append'
  22701. # See if we are running on zsh, and set the options which allow our
  22702. # commands through without removal of \ escapes INIT.
  22703. if test -n "\${ZSH_VERSION+set}" ; then
  22704. setopt NO_GLOB_SUBST
  22705. fi
  22706. PACKAGE='$PACKAGE'
  22707. VERSION='$VERSION'
  22708. TIMESTAMP='$TIMESTAMP'
  22709. RM='$RM'
  22710. ofile='$ofile'
  22711. _ACEOF
  22712. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22713. # Handling of arguments.
  22714. for ac_config_target in $ac_config_targets
  22715. do
  22716. case $ac_config_target in
  22717. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22718. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22719. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22720. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22721. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  22722. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  22723. { (exit 1); exit 1; }; };;
  22724. esac
  22725. done
  22726. # If the user did not use the arguments to specify the items to instantiate,
  22727. # then the envvar interface is used. Set only those that are not.
  22728. # We use the long form for the default assignment because of an extremely
  22729. # bizarre bug on SunOS 4.1.3.
  22730. if $ac_need_defaults; then
  22731. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22732. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22733. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22734. fi
  22735. # Have a temporary directory for convenience. Make it in the build tree
  22736. # simply because there is no reason against having it here, and in addition,
  22737. # creating and moving files from /tmp can sometimes cause problems.
  22738. # Hook for its removal unless debugging.
  22739. # Note that there is a small window in which the directory will not be cleaned:
  22740. # after its creation but before its name has been assigned to `$tmp'.
  22741. $debug ||
  22742. {
  22743. tmp=
  22744. trap 'exit_status=$?
  22745. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22746. ' 0
  22747. trap '{ (exit 1); exit 1; }' 1 2 13 15
  22748. }
  22749. # Create a (secure) tmp directory for tmp files.
  22750. {
  22751. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22752. test -n "$tmp" && test -d "$tmp"
  22753. } ||
  22754. {
  22755. tmp=./conf$$-$RANDOM
  22756. (umask 077 && mkdir "$tmp")
  22757. } ||
  22758. {
  22759. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  22760. { (exit 1); exit 1; }
  22761. }
  22762. # Set up the scripts for CONFIG_FILES section.
  22763. # No need to generate them if there are no CONFIG_FILES.
  22764. # This happens for instance with `./config.status config.h'.
  22765. if test -n "$CONFIG_FILES"; then
  22766. ac_cr=' '
  22767. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22768. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22769. ac_cs_awk_cr='\\r'
  22770. else
  22771. ac_cs_awk_cr=$ac_cr
  22772. fi
  22773. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  22774. _ACEOF
  22775. {
  22776. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22777. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22778. echo "_ACEOF"
  22779. } >conf$$subs.sh ||
  22780. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22781. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22782. { (exit 1); exit 1; }; }
  22783. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  22784. ac_delim='%!_!# '
  22785. for ac_last_try in false false false false false :; do
  22786. . ./conf$$subs.sh ||
  22787. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22788. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22789. { (exit 1); exit 1; }; }
  22790. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22791. if test $ac_delim_n = $ac_delim_num; then
  22792. break
  22793. elif $ac_last_try; then
  22794. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  22795. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  22796. { (exit 1); exit 1; }; }
  22797. else
  22798. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22799. fi
  22800. done
  22801. rm -f conf$$subs.sh
  22802. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22803. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  22804. _ACEOF
  22805. sed -n '
  22806. h
  22807. s/^/S["/; s/!.*/"]=/
  22808. p
  22809. g
  22810. s/^[^!]*!//
  22811. :repl
  22812. t repl
  22813. s/'"$ac_delim"'$//
  22814. t delim
  22815. :nl
  22816. h
  22817. s/\(.\{148\}\).*/\1/
  22818. t more1
  22819. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22820. p
  22821. n
  22822. b repl
  22823. :more1
  22824. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22825. p
  22826. g
  22827. s/.\{148\}//
  22828. t nl
  22829. :delim
  22830. h
  22831. s/\(.\{148\}\).*/\1/
  22832. t more2
  22833. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22834. p
  22835. b
  22836. :more2
  22837. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22838. p
  22839. g
  22840. s/.\{148\}//
  22841. t delim
  22842. ' <conf$$subs.awk | sed '
  22843. /^[^""]/{
  22844. N
  22845. s/\n//
  22846. }
  22847. ' >>$CONFIG_STATUS || ac_write_fail=1
  22848. rm -f conf$$subs.awk
  22849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22850. _ACAWK
  22851. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  22852. for (key in S) S_is_set[key] = 1
  22853. FS = ""
  22854. }
  22855. {
  22856. line = $ 0
  22857. nfields = split(line, field, "@")
  22858. substed = 0
  22859. len = length(field[1])
  22860. for (i = 2; i < nfields; i++) {
  22861. key = field[i]
  22862. keylen = length(key)
  22863. if (S_is_set[key]) {
  22864. value = S[key]
  22865. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22866. len += length(value) + length(field[++i])
  22867. substed = 1
  22868. } else
  22869. len += 1 + keylen
  22870. }
  22871. print line
  22872. }
  22873. _ACAWK
  22874. _ACEOF
  22875. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22876. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22877. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22878. else
  22879. cat
  22880. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  22881. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  22882. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  22883. { (exit 1); exit 1; }; }
  22884. _ACEOF
  22885. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  22886. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  22887. # trailing colons and then remove the whole line if VPATH becomes empty
  22888. # (actually we leave an empty line to preserve line numbers).
  22889. if test "x$srcdir" = x.; then
  22890. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  22891. s/:*\$(srcdir):*/:/
  22892. s/:*\${srcdir}:*/:/
  22893. s/:*@srcdir@:*/:/
  22894. s/^\([^=]*=[ ]*\):*/\1/
  22895. s/:*$//
  22896. s/^[^=]*=[ ]*$//
  22897. }'
  22898. fi
  22899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22900. fi # test -n "$CONFIG_FILES"
  22901. # Set up the scripts for CONFIG_HEADERS section.
  22902. # No need to generate them if there are no CONFIG_HEADERS.
  22903. # This happens for instance with `./config.status Makefile'.
  22904. if test -n "$CONFIG_HEADERS"; then
  22905. cat >"$tmp/defines.awk" <<\_ACAWK ||
  22906. BEGIN {
  22907. _ACEOF
  22908. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22909. # here-document in config.status, that substitutes the proper values into
  22910. # config.h.in to produce config.h.
  22911. # Create a delimiter string that does not exist in confdefs.h, to ease
  22912. # handling of long lines.
  22913. ac_delim='%!_!# '
  22914. for ac_last_try in false false :; do
  22915. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  22916. if test -z "$ac_t"; then
  22917. break
  22918. elif $ac_last_try; then
  22919. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  22920. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  22921. { (exit 1); exit 1; }; }
  22922. else
  22923. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22924. fi
  22925. done
  22926. # For the awk script, D is an array of macro values keyed by name,
  22927. # likewise P contains macro parameters if any. Preserve backslash
  22928. # newline sequences.
  22929. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22930. sed -n '
  22931. s/.\{148\}/&'"$ac_delim"'/g
  22932. t rset
  22933. :rset
  22934. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22935. t def
  22936. d
  22937. :def
  22938. s/\\$//
  22939. t bsnl
  22940. s/["\\]/\\&/g
  22941. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22942. D["\1"]=" \3"/p
  22943. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22944. d
  22945. :bsnl
  22946. s/["\\]/\\&/g
  22947. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22948. D["\1"]=" \3\\\\\\n"\\/p
  22949. t cont
  22950. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22951. t cont
  22952. d
  22953. :cont
  22954. n
  22955. s/.\{148\}/&'"$ac_delim"'/g
  22956. t clear
  22957. :clear
  22958. s/\\$//
  22959. t bsnlc
  22960. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22961. d
  22962. :bsnlc
  22963. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22964. b cont
  22965. ' <confdefs.h | sed '
  22966. s/'"$ac_delim"'/"\\\
  22967. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22968. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22969. for (key in D) D_is_set[key] = 1
  22970. FS = ""
  22971. }
  22972. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22973. line = \$ 0
  22974. split(line, arg, " ")
  22975. if (arg[1] == "#") {
  22976. defundef = arg[2]
  22977. mac1 = arg[3]
  22978. } else {
  22979. defundef = substr(arg[1], 2)
  22980. mac1 = arg[2]
  22981. }
  22982. split(mac1, mac2, "(") #)
  22983. macro = mac2[1]
  22984. prefix = substr(line, 1, index(line, defundef) - 1)
  22985. if (D_is_set[macro]) {
  22986. # Preserve the white space surrounding the "#".
  22987. print prefix "define", macro P[macro] D[macro]
  22988. next
  22989. } else {
  22990. # Replace #undef with comments. This is necessary, for example,
  22991. # in the case of _POSIX_SOURCE, which is predefined and required
  22992. # on some systems where configure will not decide to define it.
  22993. if (defundef == "undef") {
  22994. print "/*", prefix defundef, macro, "*/"
  22995. next
  22996. }
  22997. }
  22998. }
  22999. { print }
  23000. _ACAWK
  23001. _ACEOF
  23002. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23003. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  23004. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  23005. { (exit 1); exit 1; }; }
  23006. fi # test -n "$CONFIG_HEADERS"
  23007. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23008. shift
  23009. for ac_tag
  23010. do
  23011. case $ac_tag in
  23012. :[FHLC]) ac_mode=$ac_tag; continue;;
  23013. esac
  23014. case $ac_mode$ac_tag in
  23015. :[FHL]*:*);;
  23016. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  23017. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  23018. { (exit 1); exit 1; }; };;
  23019. :[FH]-) ac_tag=-:-;;
  23020. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23021. esac
  23022. ac_save_IFS=$IFS
  23023. IFS=:
  23024. set x $ac_tag
  23025. IFS=$ac_save_IFS
  23026. shift
  23027. ac_file=$1
  23028. shift
  23029. case $ac_mode in
  23030. :L) ac_source=$1;;
  23031. :[FH])
  23032. ac_file_inputs=
  23033. for ac_f
  23034. do
  23035. case $ac_f in
  23036. -) ac_f="$tmp/stdin";;
  23037. *) # Look for the file first in the build tree, then in the source tree
  23038. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23039. # because $ac_f cannot contain `:'.
  23040. test -f "$ac_f" ||
  23041. case $ac_f in
  23042. [\\/$]*) false;;
  23043. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23044. esac ||
  23045. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  23046. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  23047. { (exit 1); exit 1; }; };;
  23048. esac
  23049. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23050. ac_file_inputs="$ac_file_inputs '$ac_f'"
  23051. done
  23052. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23053. # use $as_me), people would be surprised to read:
  23054. # /* config.h. Generated by config.status. */
  23055. configure_input='Generated from '`
  23056. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23057. `' by configure.'
  23058. if test x"$ac_file" != x-; then
  23059. configure_input="$ac_file. $configure_input"
  23060. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  23061. $as_echo "$as_me: creating $ac_file" >&6;}
  23062. fi
  23063. # Neutralize special characters interpreted by sed in replacement strings.
  23064. case $configure_input in #(
  23065. *\&* | *\|* | *\\* )
  23066. ac_sed_conf_input=`$as_echo "$configure_input" |
  23067. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23068. *) ac_sed_conf_input=$configure_input;;
  23069. esac
  23070. case $ac_tag in
  23071. *:-:* | *:-) cat >"$tmp/stdin" \
  23072. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23073. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23074. { (exit 1); exit 1; }; } ;;
  23075. esac
  23076. ;;
  23077. esac
  23078. ac_dir=`$as_dirname -- "$ac_file" ||
  23079. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23080. X"$ac_file" : 'X\(//\)[^/]' \| \
  23081. X"$ac_file" : 'X\(//\)$' \| \
  23082. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23083. $as_echo X"$ac_file" |
  23084. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23085. s//\1/
  23086. q
  23087. }
  23088. /^X\(\/\/\)[^/].*/{
  23089. s//\1/
  23090. q
  23091. }
  23092. /^X\(\/\/\)$/{
  23093. s//\1/
  23094. q
  23095. }
  23096. /^X\(\/\).*/{
  23097. s//\1/
  23098. q
  23099. }
  23100. s/.*/./; q'`
  23101. { as_dir="$ac_dir"
  23102. case $as_dir in #(
  23103. -*) as_dir=./$as_dir;;
  23104. esac
  23105. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23106. as_dirs=
  23107. while :; do
  23108. case $as_dir in #(
  23109. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23110. *) as_qdir=$as_dir;;
  23111. esac
  23112. as_dirs="'$as_qdir' $as_dirs"
  23113. as_dir=`$as_dirname -- "$as_dir" ||
  23114. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23115. X"$as_dir" : 'X\(//\)[^/]' \| \
  23116. X"$as_dir" : 'X\(//\)$' \| \
  23117. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23118. $as_echo X"$as_dir" |
  23119. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23120. s//\1/
  23121. q
  23122. }
  23123. /^X\(\/\/\)[^/].*/{
  23124. s//\1/
  23125. q
  23126. }
  23127. /^X\(\/\/\)$/{
  23128. s//\1/
  23129. q
  23130. }
  23131. /^X\(\/\).*/{
  23132. s//\1/
  23133. q
  23134. }
  23135. s/.*/./; q'`
  23136. test -d "$as_dir" && break
  23137. done
  23138. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23139. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23140. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23141. { (exit 1); exit 1; }; }; }
  23142. ac_builddir=.
  23143. case "$ac_dir" in
  23144. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23145. *)
  23146. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23147. # A ".." for each directory in $ac_dir_suffix.
  23148. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23149. case $ac_top_builddir_sub in
  23150. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23151. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23152. esac ;;
  23153. esac
  23154. ac_abs_top_builddir=$ac_pwd
  23155. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23156. # for backward compatibility:
  23157. ac_top_builddir=$ac_top_build_prefix
  23158. case $srcdir in
  23159. .) # We are building in place.
  23160. ac_srcdir=.
  23161. ac_top_srcdir=$ac_top_builddir_sub
  23162. ac_abs_top_srcdir=$ac_pwd ;;
  23163. [\\/]* | ?:[\\/]* ) # Absolute name.
  23164. ac_srcdir=$srcdir$ac_dir_suffix;
  23165. ac_top_srcdir=$srcdir
  23166. ac_abs_top_srcdir=$srcdir ;;
  23167. *) # Relative name.
  23168. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23169. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23170. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23171. esac
  23172. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23173. case $ac_mode in
  23174. :F)
  23175. #
  23176. # CONFIG_FILE
  23177. #
  23178. case $INSTALL in
  23179. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23180. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23181. esac
  23182. ac_MKDIR_P=$MKDIR_P
  23183. case $MKDIR_P in
  23184. [\\/$]* | ?:[\\/]* ) ;;
  23185. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23186. esac
  23187. _ACEOF
  23188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23189. # If the template does not know about datarootdir, expand it.
  23190. # FIXME: This hack should be removed a few years after 2.60.
  23191. ac_datarootdir_hack=; ac_datarootdir_seen=
  23192. ac_sed_dataroot='
  23193. /datarootdir/ {
  23194. p
  23195. q
  23196. }
  23197. /@datadir@/p
  23198. /@docdir@/p
  23199. /@infodir@/p
  23200. /@localedir@/p
  23201. /@mandir@/p
  23202. '
  23203. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23204. *datarootdir*) ac_datarootdir_seen=yes;;
  23205. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23206. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23207. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23208. _ACEOF
  23209. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23210. ac_datarootdir_hack='
  23211. s&@datadir@&$datadir&g
  23212. s&@docdir@&$docdir&g
  23213. s&@infodir@&$infodir&g
  23214. s&@localedir@&$localedir&g
  23215. s&@mandir@&$mandir&g
  23216. s&\\\${datarootdir}&$datarootdir&g' ;;
  23217. esac
  23218. _ACEOF
  23219. # Neutralize VPATH when `$srcdir' = `.'.
  23220. # Shell code in configure.ac might set extrasub.
  23221. # FIXME: do we really want to maintain this feature?
  23222. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23223. ac_sed_extra="$ac_vpsub
  23224. $extrasub
  23225. _ACEOF
  23226. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23227. :t
  23228. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23229. s|@configure_input@|$ac_sed_conf_input|;t t
  23230. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23231. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23232. s&@srcdir@&$ac_srcdir&;t t
  23233. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23234. s&@top_srcdir@&$ac_top_srcdir&;t t
  23235. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23236. s&@builddir@&$ac_builddir&;t t
  23237. s&@abs_builddir@&$ac_abs_builddir&;t t
  23238. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23239. s&@INSTALL@&$ac_INSTALL&;t t
  23240. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23241. $ac_datarootdir_hack
  23242. "
  23243. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  23244. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23245. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23246. { (exit 1); exit 1; }; }
  23247. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23248. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  23249. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  23250. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23251. which seems to be undefined. Please make sure it is defined." >&5
  23252. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23253. which seems to be undefined. Please make sure it is defined." >&2;}
  23254. rm -f "$tmp/stdin"
  23255. case $ac_file in
  23256. -) cat "$tmp/out" && rm -f "$tmp/out";;
  23257. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  23258. esac \
  23259. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23260. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23261. { (exit 1); exit 1; }; }
  23262. ;;
  23263. :H)
  23264. #
  23265. # CONFIG_HEADER
  23266. #
  23267. if test x"$ac_file" != x-; then
  23268. {
  23269. $as_echo "/* $configure_input */" \
  23270. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  23271. } >"$tmp/config.h" \
  23272. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23273. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23274. { (exit 1); exit 1; }; }
  23275. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23276. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  23277. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23278. else
  23279. rm -f "$ac_file"
  23280. mv "$tmp/config.h" "$ac_file" \
  23281. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  23282. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  23283. { (exit 1); exit 1; }; }
  23284. fi
  23285. else
  23286. $as_echo "/* $configure_input */" \
  23287. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23288. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  23289. $as_echo "$as_me: error: could not create -" >&2;}
  23290. { (exit 1); exit 1; }; }
  23291. fi
  23292. # Compute "$ac_file"'s index in $config_headers.
  23293. _am_arg="$ac_file"
  23294. _am_stamp_count=1
  23295. for _am_header in $config_headers :; do
  23296. case $_am_header in
  23297. $_am_arg | $_am_arg:* )
  23298. break ;;
  23299. * )
  23300. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23301. esac
  23302. done
  23303. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23304. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23305. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23306. X"$_am_arg" : 'X\(//\)$' \| \
  23307. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23308. $as_echo X"$_am_arg" |
  23309. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23310. s//\1/
  23311. q
  23312. }
  23313. /^X\(\/\/\)[^/].*/{
  23314. s//\1/
  23315. q
  23316. }
  23317. /^X\(\/\/\)$/{
  23318. s//\1/
  23319. q
  23320. }
  23321. /^X\(\/\).*/{
  23322. s//\1/
  23323. q
  23324. }
  23325. s/.*/./; q'`/stamp-h$_am_stamp_count
  23326. ;;
  23327. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  23328. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23329. ;;
  23330. esac
  23331. case $ac_file$ac_mode in
  23332. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23333. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23334. # are listed without --file. Let's play safe and only enable the eval
  23335. # if we detect the quoting.
  23336. case $CONFIG_FILES in
  23337. *\'*) eval set x "$CONFIG_FILES" ;;
  23338. *) set x $CONFIG_FILES ;;
  23339. esac
  23340. shift
  23341. for mf
  23342. do
  23343. # Strip MF so we end up with the name of the file.
  23344. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23345. # Check whether this is an Automake generated Makefile or not.
  23346. # We used to match only the files named `Makefile.in', but
  23347. # some people rename them; so instead we look at the file content.
  23348. # Grep'ing the first line is not enough: some people post-process
  23349. # each Makefile.in and add a new line on top of each file to say so.
  23350. # Grep'ing the whole file is not good either: AIX grep has a line
  23351. # limit of 2048, but all sed's we know have understand at least 4000.
  23352. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23353. dirpart=`$as_dirname -- "$mf" ||
  23354. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23355. X"$mf" : 'X\(//\)[^/]' \| \
  23356. X"$mf" : 'X\(//\)$' \| \
  23357. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23358. $as_echo X"$mf" |
  23359. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23360. s//\1/
  23361. q
  23362. }
  23363. /^X\(\/\/\)[^/].*/{
  23364. s//\1/
  23365. q
  23366. }
  23367. /^X\(\/\/\)$/{
  23368. s//\1/
  23369. q
  23370. }
  23371. /^X\(\/\).*/{
  23372. s//\1/
  23373. q
  23374. }
  23375. s/.*/./; q'`
  23376. else
  23377. continue
  23378. fi
  23379. # Extract the definition of DEPDIR, am__include, and am__quote
  23380. # from the Makefile without running `make'.
  23381. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23382. test -z "$DEPDIR" && continue
  23383. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23384. test -z "am__include" && continue
  23385. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23386. # When using ansi2knr, U may be empty or an underscore; expand it
  23387. U=`sed -n 's/^U = //p' < "$mf"`
  23388. # Find all dependency output files, they are included files with
  23389. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23390. # simplest approach to changing $(DEPDIR) to its actual value in the
  23391. # expansion.
  23392. for file in `sed -n "
  23393. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23394. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23395. # Make sure the directory exists.
  23396. test -f "$dirpart/$file" && continue
  23397. fdir=`$as_dirname -- "$file" ||
  23398. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23399. X"$file" : 'X\(//\)[^/]' \| \
  23400. X"$file" : 'X\(//\)$' \| \
  23401. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23402. $as_echo X"$file" |
  23403. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23404. s//\1/
  23405. q
  23406. }
  23407. /^X\(\/\/\)[^/].*/{
  23408. s//\1/
  23409. q
  23410. }
  23411. /^X\(\/\/\)$/{
  23412. s//\1/
  23413. q
  23414. }
  23415. /^X\(\/\).*/{
  23416. s//\1/
  23417. q
  23418. }
  23419. s/.*/./; q'`
  23420. { as_dir=$dirpart/$fdir
  23421. case $as_dir in #(
  23422. -*) as_dir=./$as_dir;;
  23423. esac
  23424. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  23425. as_dirs=
  23426. while :; do
  23427. case $as_dir in #(
  23428. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  23429. *) as_qdir=$as_dir;;
  23430. esac
  23431. as_dirs="'$as_qdir' $as_dirs"
  23432. as_dir=`$as_dirname -- "$as_dir" ||
  23433. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23434. X"$as_dir" : 'X\(//\)[^/]' \| \
  23435. X"$as_dir" : 'X\(//\)$' \| \
  23436. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  23437. $as_echo X"$as_dir" |
  23438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23439. s//\1/
  23440. q
  23441. }
  23442. /^X\(\/\/\)[^/].*/{
  23443. s//\1/
  23444. q
  23445. }
  23446. /^X\(\/\/\)$/{
  23447. s//\1/
  23448. q
  23449. }
  23450. /^X\(\/\).*/{
  23451. s//\1/
  23452. q
  23453. }
  23454. s/.*/./; q'`
  23455. test -d "$as_dir" && break
  23456. done
  23457. test -z "$as_dirs" || eval "mkdir $as_dirs"
  23458. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  23459. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  23460. { (exit 1); exit 1; }; }; }
  23461. # echo "creating $dirpart/$file"
  23462. echo '# dummy' > "$dirpart/$file"
  23463. done
  23464. done
  23465. }
  23466. ;;
  23467. "libtool":C)
  23468. # See if we are running on zsh, and set the options which allow our
  23469. # commands through without removal of \ escapes.
  23470. if test -n "${ZSH_VERSION+set}" ; then
  23471. setopt NO_GLOB_SUBST
  23472. fi
  23473. cfgfile="${ofile}T"
  23474. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23475. $RM "$cfgfile"
  23476. cat <<_LT_EOF >> "$cfgfile"
  23477. #! $SHELL
  23478. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23479. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23480. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23481. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23482. #
  23483. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23484. # 2006, 2007, 2008 Free Software Foundation, Inc.
  23485. # Written by Gordon Matzigkeit, 1996
  23486. #
  23487. # This file is part of GNU Libtool.
  23488. #
  23489. # GNU Libtool is free software; you can redistribute it and/or
  23490. # modify it under the terms of the GNU General Public License as
  23491. # published by the Free Software Foundation; either version 2 of
  23492. # the License, or (at your option) any later version.
  23493. #
  23494. # As a special exception to the GNU General Public License,
  23495. # if you distribute this file as part of a program or library that
  23496. # is built using GNU Libtool, you may include this file under the
  23497. # same distribution terms that you use for the rest of that program.
  23498. #
  23499. # GNU Libtool is distributed in the hope that it will be useful,
  23500. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23501. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23502. # GNU General Public License for more details.
  23503. #
  23504. # You should have received a copy of the GNU General Public License
  23505. # along with GNU Libtool; see the file COPYING. If not, a copy
  23506. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23507. # obtained by writing to the Free Software Foundation, Inc.,
  23508. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23509. # The names of the tagged configurations supported by this script.
  23510. available_tags="CXX "
  23511. # ### BEGIN LIBTOOL CONFIG
  23512. # Whether or not to build static libraries.
  23513. build_old_libs=$enable_static
  23514. # Which release of libtool.m4 was used?
  23515. macro_version=$macro_version
  23516. macro_revision=$macro_revision
  23517. # Whether or not to build shared libraries.
  23518. build_libtool_libs=$enable_shared
  23519. # What type of objects to build.
  23520. pic_mode=$pic_mode
  23521. # Whether or not to optimize for fast installation.
  23522. fast_install=$enable_fast_install
  23523. # The host system.
  23524. host_alias=$host_alias
  23525. host=$host
  23526. host_os=$host_os
  23527. # The build system.
  23528. build_alias=$build_alias
  23529. build=$build
  23530. build_os=$build_os
  23531. # A sed program that does not truncate output.
  23532. SED=$lt_SED
  23533. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23534. Xsed="\$SED -e 1s/^X//"
  23535. # A grep program that handles long lines.
  23536. GREP=$lt_GREP
  23537. # An ERE matcher.
  23538. EGREP=$lt_EGREP
  23539. # A literal string matcher.
  23540. FGREP=$lt_FGREP
  23541. # A BSD- or MS-compatible name lister.
  23542. NM=$lt_NM
  23543. # Whether we need soft or hard links.
  23544. LN_S=$lt_LN_S
  23545. # What is the maximum length of a command?
  23546. max_cmd_len=$max_cmd_len
  23547. # Object file suffix (normally "o").
  23548. objext=$ac_objext
  23549. # Executable file suffix (normally "").
  23550. exeext=$exeext
  23551. # whether the shell understands "unset".
  23552. lt_unset=$lt_unset
  23553. # turn spaces into newlines.
  23554. SP2NL=$lt_lt_SP2NL
  23555. # turn newlines into spaces.
  23556. NL2SP=$lt_lt_NL2SP
  23557. # How to create reloadable object files.
  23558. reload_flag=$lt_reload_flag
  23559. reload_cmds=$lt_reload_cmds
  23560. # An object symbol dumper.
  23561. OBJDUMP=$lt_OBJDUMP
  23562. # Method to check whether dependent libraries are shared objects.
  23563. deplibs_check_method=$lt_deplibs_check_method
  23564. # Command to use when deplibs_check_method == "file_magic".
  23565. file_magic_cmd=$lt_file_magic_cmd
  23566. # The archiver.
  23567. AR=$lt_AR
  23568. AR_FLAGS=$lt_AR_FLAGS
  23569. # A symbol stripping program.
  23570. STRIP=$lt_STRIP
  23571. # Commands used to install an old-style archive.
  23572. RANLIB=$lt_RANLIB
  23573. old_postinstall_cmds=$lt_old_postinstall_cmds
  23574. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23575. # A C compiler.
  23576. LTCC=$lt_CC
  23577. # LTCC compiler flags.
  23578. LTCFLAGS=$lt_CFLAGS
  23579. # Take the output of nm and produce a listing of raw symbols and C names.
  23580. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23581. # Transform the output of nm in a proper C declaration.
  23582. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23583. # Transform the output of nm in a C name address pair.
  23584. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23585. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23586. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23587. # The name of the directory that contains temporary libtool files.
  23588. objdir=$objdir
  23589. # Shell to use when invoking shell scripts.
  23590. SHELL=$lt_SHELL
  23591. # An echo program that does not interpret backslashes.
  23592. ECHO=$lt_ECHO
  23593. # Used to examine libraries when file_magic_cmd begins with "file".
  23594. MAGIC_CMD=$MAGIC_CMD
  23595. # Must we lock files when doing compilation?
  23596. need_locks=$lt_need_locks
  23597. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23598. DSYMUTIL=$lt_DSYMUTIL
  23599. # Tool to change global to local symbols on Mac OS X.
  23600. NMEDIT=$lt_NMEDIT
  23601. # Tool to manipulate fat objects and archives on Mac OS X.
  23602. LIPO=$lt_LIPO
  23603. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23604. OTOOL=$lt_OTOOL
  23605. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23606. OTOOL64=$lt_OTOOL64
  23607. # Old archive suffix (normally "a").
  23608. libext=$libext
  23609. # Shared library suffix (normally ".so").
  23610. shrext_cmds=$lt_shrext_cmds
  23611. # The commands to extract the exported symbol list from a shared archive.
  23612. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23613. # Variables whose values should be saved in libtool wrapper scripts and
  23614. # restored at link time.
  23615. variables_saved_for_relink=$lt_variables_saved_for_relink
  23616. # Do we need the "lib" prefix for modules?
  23617. need_lib_prefix=$need_lib_prefix
  23618. # Do we need a version for libraries?
  23619. need_version=$need_version
  23620. # Library versioning type.
  23621. version_type=$version_type
  23622. # Shared library runtime path variable.
  23623. runpath_var=$runpath_var
  23624. # Shared library path variable.
  23625. shlibpath_var=$shlibpath_var
  23626. # Is shlibpath searched before the hard-coded library search path?
  23627. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23628. # Format of library name prefix.
  23629. libname_spec=$lt_libname_spec
  23630. # List of archive names. First name is the real one, the rest are links.
  23631. # The last name is the one that the linker finds with -lNAME
  23632. library_names_spec=$lt_library_names_spec
  23633. # The coded name of the library, if different from the real name.
  23634. soname_spec=$lt_soname_spec
  23635. # Command to use after installation of a shared archive.
  23636. postinstall_cmds=$lt_postinstall_cmds
  23637. # Command to use after uninstallation of a shared archive.
  23638. postuninstall_cmds=$lt_postuninstall_cmds
  23639. # Commands used to finish a libtool library installation in a directory.
  23640. finish_cmds=$lt_finish_cmds
  23641. # As "finish_cmds", except a single script fragment to be evaled but
  23642. # not shown.
  23643. finish_eval=$lt_finish_eval
  23644. # Whether we should hardcode library paths into libraries.
  23645. hardcode_into_libs=$hardcode_into_libs
  23646. # Compile-time system search path for libraries.
  23647. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23648. # Run-time system search path for libraries.
  23649. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23650. # Whether dlopen is supported.
  23651. dlopen_support=$enable_dlopen
  23652. # Whether dlopen of programs is supported.
  23653. dlopen_self=$enable_dlopen_self
  23654. # Whether dlopen of statically linked programs is supported.
  23655. dlopen_self_static=$enable_dlopen_self_static
  23656. # Commands to strip libraries.
  23657. old_striplib=$lt_old_striplib
  23658. striplib=$lt_striplib
  23659. # The linker used to build libraries.
  23660. LD=$lt_LD
  23661. # Commands used to build an old-style archive.
  23662. old_archive_cmds=$lt_old_archive_cmds
  23663. # A language specific compiler.
  23664. CC=$lt_compiler
  23665. # Is the compiler the GNU compiler?
  23666. with_gcc=$GCC
  23667. # Compiler flag to turn off builtin functions.
  23668. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23669. # How to pass a linker flag through the compiler.
  23670. wl=$lt_lt_prog_compiler_wl
  23671. # Additional compiler flags for building library objects.
  23672. pic_flag=$lt_lt_prog_compiler_pic
  23673. # Compiler flag to prevent dynamic linking.
  23674. link_static_flag=$lt_lt_prog_compiler_static
  23675. # Does compiler simultaneously support -c and -o options?
  23676. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23677. # Whether or not to add -lc for building shared libraries.
  23678. build_libtool_need_lc=$archive_cmds_need_lc
  23679. # Whether or not to disallow shared libs when runtime libs are static.
  23680. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23681. # Compiler flag to allow reflexive dlopens.
  23682. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23683. # Compiler flag to generate shared objects directly from archives.
  23684. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23685. # Whether the compiler copes with passing no objects directly.
  23686. compiler_needs_object=$lt_compiler_needs_object
  23687. # Create an old-style archive from a shared archive.
  23688. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23689. # Create a temporary old-style archive to link instead of a shared archive.
  23690. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23691. # Commands used to build a shared archive.
  23692. archive_cmds=$lt_archive_cmds
  23693. archive_expsym_cmds=$lt_archive_expsym_cmds
  23694. # Commands used to build a loadable module if different from building
  23695. # a shared archive.
  23696. module_cmds=$lt_module_cmds
  23697. module_expsym_cmds=$lt_module_expsym_cmds
  23698. # Whether we are building with GNU ld or not.
  23699. with_gnu_ld=$lt_with_gnu_ld
  23700. # Flag that allows shared libraries with undefined symbols to be built.
  23701. allow_undefined_flag=$lt_allow_undefined_flag
  23702. # Flag that enforces no undefined symbols.
  23703. no_undefined_flag=$lt_no_undefined_flag
  23704. # Flag to hardcode \$libdir into a binary during linking.
  23705. # This must work even if \$libdir does not exist
  23706. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23707. # If ld is used when linking, flag to hardcode \$libdir into a binary
  23708. # during linking. This must work even if \$libdir does not exist.
  23709. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  23710. # Whether we need a single "-rpath" flag with a separated argument.
  23711. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23712. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23713. # DIR into the resulting binary.
  23714. hardcode_direct=$hardcode_direct
  23715. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23716. # DIR into the resulting binary and the resulting library dependency is
  23717. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23718. # library is relocated.
  23719. hardcode_direct_absolute=$hardcode_direct_absolute
  23720. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23721. # into the resulting binary.
  23722. hardcode_minus_L=$hardcode_minus_L
  23723. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23724. # into the resulting binary.
  23725. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23726. # Set to "yes" if building a shared library automatically hardcodes DIR
  23727. # into the library and all subsequent libraries and executables linked
  23728. # against it.
  23729. hardcode_automatic=$hardcode_automatic
  23730. # Set to yes if linker adds runtime paths of dependent libraries
  23731. # to runtime path list.
  23732. inherit_rpath=$inherit_rpath
  23733. # Whether libtool must link a program against all its dependency libraries.
  23734. link_all_deplibs=$link_all_deplibs
  23735. # Fix the shell variable \$srcfile for the compiler.
  23736. fix_srcfile_path=$lt_fix_srcfile_path
  23737. # Set to "yes" if exported symbols are required.
  23738. always_export_symbols=$always_export_symbols
  23739. # The commands to list exported symbols.
  23740. export_symbols_cmds=$lt_export_symbols_cmds
  23741. # Symbols that should not be listed in the preloaded symbols.
  23742. exclude_expsyms=$lt_exclude_expsyms
  23743. # Symbols that must always be exported.
  23744. include_expsyms=$lt_include_expsyms
  23745. # Commands necessary for linking programs (against libraries) with templates.
  23746. prelink_cmds=$lt_prelink_cmds
  23747. # Specify filename containing input files.
  23748. file_list_spec=$lt_file_list_spec
  23749. # How to hardcode a shared library path into an executable.
  23750. hardcode_action=$hardcode_action
  23751. # The directories searched by this compiler when creating a shared library.
  23752. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23753. # Dependencies to place before and after the objects being linked to
  23754. # create a shared library.
  23755. predep_objects=$lt_predep_objects
  23756. postdep_objects=$lt_postdep_objects
  23757. predeps=$lt_predeps
  23758. postdeps=$lt_postdeps
  23759. # The library search path used internally by the compiler when linking
  23760. # a shared library.
  23761. compiler_lib_search_path=$lt_compiler_lib_search_path
  23762. # ### END LIBTOOL CONFIG
  23763. _LT_EOF
  23764. case $host_os in
  23765. aix3*)
  23766. cat <<\_LT_EOF >> "$cfgfile"
  23767. # AIX sometimes has problems with the GCC collect2 program. For some
  23768. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23769. # vanish in a puff of smoke.
  23770. if test "X${COLLECT_NAMES+set}" != Xset; then
  23771. COLLECT_NAMES=
  23772. export COLLECT_NAMES
  23773. fi
  23774. _LT_EOF
  23775. ;;
  23776. esac
  23777. ltmain="$ac_aux_dir/ltmain.sh"
  23778. # We use sed instead of cat because bash on DJGPP gets confused if
  23779. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23780. # text mode, it properly converts lines to CR/LF. This bash problem
  23781. # is reportedly fixed, but why not run on old versions too?
  23782. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  23783. || (rm -f "$cfgfile"; exit 1)
  23784. case $xsi_shell in
  23785. yes)
  23786. cat << \_LT_EOF >> "$cfgfile"
  23787. # func_dirname file append nondir_replacement
  23788. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23789. # otherwise set result to NONDIR_REPLACEMENT.
  23790. func_dirname ()
  23791. {
  23792. case ${1} in
  23793. */*) func_dirname_result="${1%/*}${2}" ;;
  23794. * ) func_dirname_result="${3}" ;;
  23795. esac
  23796. }
  23797. # func_basename file
  23798. func_basename ()
  23799. {
  23800. func_basename_result="${1##*/}"
  23801. }
  23802. # func_dirname_and_basename file append nondir_replacement
  23803. # perform func_basename and func_dirname in a single function
  23804. # call:
  23805. # dirname: Compute the dirname of FILE. If nonempty,
  23806. # add APPEND to the result, otherwise set result
  23807. # to NONDIR_REPLACEMENT.
  23808. # value returned in "$func_dirname_result"
  23809. # basename: Compute filename of FILE.
  23810. # value retuned in "$func_basename_result"
  23811. # Implementation must be kept synchronized with func_dirname
  23812. # and func_basename. For efficiency, we do not delegate to
  23813. # those functions but instead duplicate the functionality here.
  23814. func_dirname_and_basename ()
  23815. {
  23816. case ${1} in
  23817. */*) func_dirname_result="${1%/*}${2}" ;;
  23818. * ) func_dirname_result="${3}" ;;
  23819. esac
  23820. func_basename_result="${1##*/}"
  23821. }
  23822. # func_stripname prefix suffix name
  23823. # strip PREFIX and SUFFIX off of NAME.
  23824. # PREFIX and SUFFIX must not contain globbing or regex special
  23825. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23826. # dot (in which case that matches only a dot).
  23827. func_stripname ()
  23828. {
  23829. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  23830. # positional parameters, so assign one to ordinary parameter first.
  23831. func_stripname_result=${3}
  23832. func_stripname_result=${func_stripname_result#"${1}"}
  23833. func_stripname_result=${func_stripname_result%"${2}"}
  23834. }
  23835. # func_opt_split
  23836. func_opt_split ()
  23837. {
  23838. func_opt_split_opt=${1%%=*}
  23839. func_opt_split_arg=${1#*=}
  23840. }
  23841. # func_lo2o object
  23842. func_lo2o ()
  23843. {
  23844. case ${1} in
  23845. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  23846. *) func_lo2o_result=${1} ;;
  23847. esac
  23848. }
  23849. # func_xform libobj-or-source
  23850. func_xform ()
  23851. {
  23852. func_xform_result=${1%.*}.lo
  23853. }
  23854. # func_arith arithmetic-term...
  23855. func_arith ()
  23856. {
  23857. func_arith_result=$(( $* ))
  23858. }
  23859. # func_len string
  23860. # STRING may not start with a hyphen.
  23861. func_len ()
  23862. {
  23863. func_len_result=${#1}
  23864. }
  23865. _LT_EOF
  23866. ;;
  23867. *) # Bourne compatible functions.
  23868. cat << \_LT_EOF >> "$cfgfile"
  23869. # func_dirname file append nondir_replacement
  23870. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  23871. # otherwise set result to NONDIR_REPLACEMENT.
  23872. func_dirname ()
  23873. {
  23874. # Extract subdirectory from the argument.
  23875. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  23876. if test "X$func_dirname_result" = "X${1}"; then
  23877. func_dirname_result="${3}"
  23878. else
  23879. func_dirname_result="$func_dirname_result${2}"
  23880. fi
  23881. }
  23882. # func_basename file
  23883. func_basename ()
  23884. {
  23885. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  23886. }
  23887. # func_stripname prefix suffix name
  23888. # strip PREFIX and SUFFIX off of NAME.
  23889. # PREFIX and SUFFIX must not contain globbing or regex special
  23890. # characters, hashes, percent signs, but SUFFIX may contain a leading
  23891. # dot (in which case that matches only a dot).
  23892. # func_strip_suffix prefix name
  23893. func_stripname ()
  23894. {
  23895. case ${2} in
  23896. .*) func_stripname_result=`$ECHO "X${3}" \
  23897. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  23898. *) func_stripname_result=`$ECHO "X${3}" \
  23899. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  23900. esac
  23901. }
  23902. # sed scripts:
  23903. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  23904. my_sed_long_arg='1s/^-[^=]*=//'
  23905. # func_opt_split
  23906. func_opt_split ()
  23907. {
  23908. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  23909. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  23910. }
  23911. # func_lo2o object
  23912. func_lo2o ()
  23913. {
  23914. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  23915. }
  23916. # func_xform libobj-or-source
  23917. func_xform ()
  23918. {
  23919. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  23920. }
  23921. # func_arith arithmetic-term...
  23922. func_arith ()
  23923. {
  23924. func_arith_result=`expr "$@"`
  23925. }
  23926. # func_len string
  23927. # STRING may not start with a hyphen.
  23928. func_len ()
  23929. {
  23930. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  23931. }
  23932. _LT_EOF
  23933. esac
  23934. case $lt_shell_append in
  23935. yes)
  23936. cat << \_LT_EOF >> "$cfgfile"
  23937. # func_append var value
  23938. # Append VALUE to the end of shell variable VAR.
  23939. func_append ()
  23940. {
  23941. eval "$1+=\$2"
  23942. }
  23943. _LT_EOF
  23944. ;;
  23945. *)
  23946. cat << \_LT_EOF >> "$cfgfile"
  23947. # func_append var value
  23948. # Append VALUE to the end of shell variable VAR.
  23949. func_append ()
  23950. {
  23951. eval "$1=\$$1\$2"
  23952. }
  23953. _LT_EOF
  23954. ;;
  23955. esac
  23956. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  23957. || (rm -f "$cfgfile"; exit 1)
  23958. mv -f "$cfgfile" "$ofile" ||
  23959. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23960. chmod +x "$ofile"
  23961. cat <<_LT_EOF >> "$ofile"
  23962. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23963. # The linker used to build libraries.
  23964. LD=$lt_LD_CXX
  23965. # Commands used to build an old-style archive.
  23966. old_archive_cmds=$lt_old_archive_cmds_CXX
  23967. # A language specific compiler.
  23968. CC=$lt_compiler_CXX
  23969. # Is the compiler the GNU compiler?
  23970. with_gcc=$GCC_CXX
  23971. # Compiler flag to turn off builtin functions.
  23972. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23973. # How to pass a linker flag through the compiler.
  23974. wl=$lt_lt_prog_compiler_wl_CXX
  23975. # Additional compiler flags for building library objects.
  23976. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23977. # Compiler flag to prevent dynamic linking.
  23978. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23979. # Does compiler simultaneously support -c and -o options?
  23980. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23981. # Whether or not to add -lc for building shared libraries.
  23982. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23983. # Whether or not to disallow shared libs when runtime libs are static.
  23984. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23985. # Compiler flag to allow reflexive dlopens.
  23986. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23987. # Compiler flag to generate shared objects directly from archives.
  23988. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23989. # Whether the compiler copes with passing no objects directly.
  23990. compiler_needs_object=$lt_compiler_needs_object_CXX
  23991. # Create an old-style archive from a shared archive.
  23992. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23993. # Create a temporary old-style archive to link instead of a shared archive.
  23994. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23995. # Commands used to build a shared archive.
  23996. archive_cmds=$lt_archive_cmds_CXX
  23997. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23998. # Commands used to build a loadable module if different from building
  23999. # a shared archive.
  24000. module_cmds=$lt_module_cmds_CXX
  24001. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24002. # Whether we are building with GNU ld or not.
  24003. with_gnu_ld=$lt_with_gnu_ld_CXX
  24004. # Flag that allows shared libraries with undefined symbols to be built.
  24005. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24006. # Flag that enforces no undefined symbols.
  24007. no_undefined_flag=$lt_no_undefined_flag_CXX
  24008. # Flag to hardcode \$libdir into a binary during linking.
  24009. # This must work even if \$libdir does not exist
  24010. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24011. # If ld is used when linking, flag to hardcode \$libdir into a binary
  24012. # during linking. This must work even if \$libdir does not exist.
  24013. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  24014. # Whether we need a single "-rpath" flag with a separated argument.
  24015. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24016. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24017. # DIR into the resulting binary.
  24018. hardcode_direct=$hardcode_direct_CXX
  24019. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24020. # DIR into the resulting binary and the resulting library dependency is
  24021. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24022. # library is relocated.
  24023. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24024. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24025. # into the resulting binary.
  24026. hardcode_minus_L=$hardcode_minus_L_CXX
  24027. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24028. # into the resulting binary.
  24029. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24030. # Set to "yes" if building a shared library automatically hardcodes DIR
  24031. # into the library and all subsequent libraries and executables linked
  24032. # against it.
  24033. hardcode_automatic=$hardcode_automatic_CXX
  24034. # Set to yes if linker adds runtime paths of dependent libraries
  24035. # to runtime path list.
  24036. inherit_rpath=$inherit_rpath_CXX
  24037. # Whether libtool must link a program against all its dependency libraries.
  24038. link_all_deplibs=$link_all_deplibs_CXX
  24039. # Fix the shell variable \$srcfile for the compiler.
  24040. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  24041. # Set to "yes" if exported symbols are required.
  24042. always_export_symbols=$always_export_symbols_CXX
  24043. # The commands to list exported symbols.
  24044. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24045. # Symbols that should not be listed in the preloaded symbols.
  24046. exclude_expsyms=$lt_exclude_expsyms_CXX
  24047. # Symbols that must always be exported.
  24048. include_expsyms=$lt_include_expsyms_CXX
  24049. # Commands necessary for linking programs (against libraries) with templates.
  24050. prelink_cmds=$lt_prelink_cmds_CXX
  24051. # Specify filename containing input files.
  24052. file_list_spec=$lt_file_list_spec_CXX
  24053. # How to hardcode a shared library path into an executable.
  24054. hardcode_action=$hardcode_action_CXX
  24055. # The directories searched by this compiler when creating a shared library.
  24056. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24057. # Dependencies to place before and after the objects being linked to
  24058. # create a shared library.
  24059. predep_objects=$lt_predep_objects_CXX
  24060. postdep_objects=$lt_postdep_objects_CXX
  24061. predeps=$lt_predeps_CXX
  24062. postdeps=$lt_postdeps_CXX
  24063. # The library search path used internally by the compiler when linking
  24064. # a shared library.
  24065. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24066. # ### END LIBTOOL TAG CONFIG: CXX
  24067. _LT_EOF
  24068. ;;
  24069. esac
  24070. done # for ac_tag
  24071. { (exit 0); exit 0; }
  24072. _ACEOF
  24073. chmod +x $CONFIG_STATUS
  24074. ac_clean_files=$ac_clean_files_save
  24075. test $ac_write_fail = 0 ||
  24076. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  24077. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  24078. { (exit 1); exit 1; }; }
  24079. # configure is writing to config.log, and then calls config.status.
  24080. # config.status does its own redirection, appending to config.log.
  24081. # Unfortunately, on DOS this fails, as config.log is still kept open
  24082. # by configure, so config.status won't be able to write to it; its
  24083. # output is simply discarded. So we exec the FD to /dev/null,
  24084. # effectively closing config.log, so it can be properly (re)opened and
  24085. # appended to by config.status. When coming back to configure, we
  24086. # need to make the FD available again.
  24087. if test "$no_create" != yes; then
  24088. ac_cs_success=:
  24089. ac_config_status_args=
  24090. test "$silent" = yes &&
  24091. ac_config_status_args="$ac_config_status_args --quiet"
  24092. exec 5>/dev/null
  24093. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24094. exec 5>>config.log
  24095. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24096. # would make configure fail if this is the last instruction.
  24097. $ac_cs_success || { (exit 1); exit 1; }
  24098. fi
  24099. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24100. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24101. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24102. fi