configure 695 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for Linux-PAM 1.5.2.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  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*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='Linux-PAM'
  539. PACKAGE_TARNAME='Linux-PAM'
  540. PACKAGE_VERSION='1.5.2'
  541. PACKAGE_STRING='Linux-PAM 1.5.2'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="conf/pam_conv1/pam_conv_y.y"
  545. ac_default_prefix=/usr
  546. # Factoring default headers for most tests.
  547. ac_includes_default="\
  548. #include <stdio.h>
  549. #ifdef HAVE_SYS_TYPES_H
  550. # include <sys/types.h>
  551. #endif
  552. #ifdef HAVE_SYS_STAT_H
  553. # include <sys/stat.h>
  554. #endif
  555. #ifdef STDC_HEADERS
  556. # include <stdlib.h>
  557. # include <stddef.h>
  558. #else
  559. # ifdef HAVE_STDLIB_H
  560. # include <stdlib.h>
  561. # endif
  562. #endif
  563. #ifdef HAVE_STRING_H
  564. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  565. # include <memory.h>
  566. # endif
  567. # include <string.h>
  568. #endif
  569. #ifdef HAVE_STRINGS_H
  570. # include <strings.h>
  571. #endif
  572. #ifdef HAVE_INTTYPES_H
  573. # include <inttypes.h>
  574. #endif
  575. #ifdef HAVE_STDINT_H
  576. # include <stdint.h>
  577. #endif
  578. #ifdef HAVE_UNISTD_H
  579. # include <unistd.h>
  580. #endif"
  581. gt_needs=
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. COND_BUILD_PAM_USERDB_FALSE
  586. COND_BUILD_PAM_USERDB_TRUE
  587. COND_BUILD_PAM_UNIX_FALSE
  588. COND_BUILD_PAM_UNIX_TRUE
  589. COND_BUILD_PAM_TTY_AUDIT_FALSE
  590. COND_BUILD_PAM_TTY_AUDIT_TRUE
  591. COND_BUILD_PAM_SETQUOTA_FALSE
  592. COND_BUILD_PAM_SETQUOTA_TRUE
  593. COND_BUILD_PAM_SEPERMIT_FALSE
  594. COND_BUILD_PAM_SEPERMIT_TRUE
  595. COND_BUILD_PAM_SELINUX_FALSE
  596. COND_BUILD_PAM_SELINUX_TRUE
  597. COND_BUILD_PAM_RHOSTS_FALSE
  598. COND_BUILD_PAM_RHOSTS_TRUE
  599. COND_BUILD_PAM_NAMESPACE_FALSE
  600. COND_BUILD_PAM_NAMESPACE_TRUE
  601. COND_BUILD_PAM_LASTLOG_FALSE
  602. COND_BUILD_PAM_LASTLOG_TRUE
  603. COND_BUILD_PAM_KEYINIT_FALSE
  604. COND_BUILD_PAM_KEYINIT_TRUE
  605. systemdunitdir
  606. POSUB
  607. LTLIBINTL
  608. LIBINTL
  609. INTLLIBS
  610. LTLIBICONV
  611. LIBICONV
  612. INTL_MACOSX_LIBS
  613. XGETTEXT_EXTRA_OPTIONS
  614. MSGMERGE
  615. XGETTEXT_015
  616. XGETTEXT
  617. GMSGFMT_015
  618. MSGFMT_015
  619. GMSGFMT
  620. MSGFMT
  621. GETTEXT_MACRO_VERSION
  622. USE_NLS
  623. ENABLE_GENERATE_PDF_FALSE
  624. ENABLE_GENERATE_PDF_TRUE
  625. ENABLE_REGENERATE_MAN_FALSE
  626. ENABLE_REGENERATE_MAN_TRUE
  627. FO2PDF
  628. BROWSER
  629. XMLCATALOG
  630. XML_CATALOG_FILE
  631. XMLLINT
  632. XSLTPROC
  633. LIBOBJS
  634. COND_USE_OPENSSL_FALSE
  635. COND_USE_OPENSSL_TRUE
  636. STRINGPARAM_HMAC
  637. CRYPTO_LIBS
  638. STRINGPARAM_VENDORDIR
  639. ECONF_LIBS
  640. ECONF_CFLAGS
  641. LIBSELINUX
  642. NIS_LIBS
  643. NIS_CFLAGS
  644. NSL_LIBS
  645. NSL_CFLAGS
  646. TIRPC_LIBS
  647. TIRPC_CFLAGS
  648. LIBDB
  649. LIBCRYPT
  650. CRYPT_LIBS
  651. CRYPT_CFLAGS
  652. PKG_CONFIG_LIBDIR
  653. PKG_CONFIG_PATH
  654. PKG_CONFIG
  655. LIBAUDIT
  656. LIBDL
  657. pam_xauth_path
  658. SCONFIGDIR
  659. SECUREDIR
  660. LIBPRELUDE_CONFIG_PREFIX
  661. LIBPRELUDE_PREFIX
  662. LIBPRELUDE_LIBS
  663. LIBPRELUDE_LDFLAGS
  664. LIBPRELUDE_PTHREAD_CFLAGS
  665. LIBPRELUDE_CFLAGS
  666. LIBPRELUDE_CONFIG
  667. HAVE_DOC_FALSE
  668. HAVE_DOC_TRUE
  669. EXE_LDFLAGS
  670. EXE_CFLAGS
  671. HAVE_VERSIONING_FALSE
  672. HAVE_VERSIONING_TRUE
  673. BUILD_LDFLAGS
  674. BUILD_CFLAGS
  675. BUILD_CPPFLAGS
  676. CC_FOR_BUILD
  677. WARN_CFLAGS
  678. LEXLIB
  679. LEX_OUTPUT_ROOT
  680. LEX
  681. YFLAGS
  682. YACC
  683. LT_SYS_LIBRARY_PATH
  684. OTOOL64
  685. OTOOL
  686. LIPO
  687. NMEDIT
  688. DSYMUTIL
  689. MANIFEST_TOOL
  690. RANLIB
  691. ac_ct_AR
  692. AR
  693. DLLTOOL
  694. OBJDUMP
  695. LN_S
  696. NM
  697. ac_ct_DUMPBIN
  698. DUMPBIN
  699. LD
  700. FGREP
  701. SED
  702. LIBTOOL
  703. EGREP
  704. GREP
  705. CPP
  706. am__fastdepCC_FALSE
  707. am__fastdepCC_TRUE
  708. CCDEPMODE
  709. am__nodep
  710. AMDEPBACKSLASH
  711. AMDEP_FALSE
  712. AMDEP_TRUE
  713. am__include
  714. DEPDIR
  715. OBJEXT
  716. EXEEXT
  717. ac_ct_CC
  718. CPPFLAGS
  719. LDFLAGS
  720. CFLAGS
  721. CC
  722. host_os
  723. host_vendor
  724. host_cpu
  725. host
  726. build_os
  727. build_vendor
  728. build_cpu
  729. build
  730. AM_BACKSLASH
  731. AM_DEFAULT_VERBOSITY
  732. AM_DEFAULT_V
  733. AM_V
  734. am__untar
  735. am__tar
  736. AMTAR
  737. am__leading_dot
  738. SET_MAKE
  739. AWK
  740. mkdir_p
  741. MKDIR_P
  742. INSTALL_STRIP_PROGRAM
  743. STRIP
  744. install_sh
  745. MAKEINFO
  746. AUTOHEADER
  747. AUTOMAKE
  748. AUTOCONF
  749. ACLOCAL
  750. VERSION
  751. PACKAGE
  752. CYGPATH_W
  753. am__isrc
  754. INSTALL_DATA
  755. INSTALL_SCRIPT
  756. INSTALL_PROGRAM
  757. target_alias
  758. host_alias
  759. build_alias
  760. LIBS
  761. ECHO_T
  762. ECHO_N
  763. ECHO_C
  764. DEFS
  765. mandir
  766. localedir
  767. libdir
  768. psdir
  769. pdfdir
  770. dvidir
  771. htmldir
  772. infodir
  773. docdir
  774. oldincludedir
  775. includedir
  776. localstatedir
  777. sharedstatedir
  778. sysconfdir
  779. datadir
  780. datarootdir
  781. libexecdir
  782. sbindir
  783. bindir
  784. program_transform_name
  785. prefix
  786. exec_prefix
  787. PACKAGE_URL
  788. PACKAGE_BUGREPORT
  789. PACKAGE_STRING
  790. PACKAGE_VERSION
  791. PACKAGE_TARNAME
  792. PACKAGE_NAME
  793. PATH_SEPARATOR
  794. SHELL
  795. am__quote'
  796. ac_subst_files=''
  797. ac_user_opts='
  798. enable_option_checking
  799. enable_silent_rules
  800. enable_dependency_tracking
  801. enable_static
  802. enable_shared
  803. with_pic
  804. enable_fast_install
  805. with_aix_soname
  806. with_gnu_ld
  807. with_sysroot
  808. enable_libtool_lock
  809. enable_largefile
  810. enable_Werror
  811. enable_pie
  812. enable_doc
  813. enable_prelude
  814. with_libprelude_prefix
  815. enable_debug
  816. enable_securedir
  817. enable_isadir
  818. enable_sconfigdir
  819. enable_pamlocking
  820. enable_read_both_confs
  821. enable_lckpwdf
  822. with_mailspool
  823. with_xauth
  824. enable_audit
  825. with_randomdev
  826. enable_db
  827. with_db_uniquename
  828. enable_nis
  829. enable_usergroups
  830. enable_selinux
  831. enable_econf
  832. enable_vendordir
  833. enable_openssl
  834. enable_regenerate_docu
  835. with_xml_catalog
  836. enable_nls
  837. enable_rpath
  838. with_libiconv_prefix
  839. with_libintl_prefix
  840. with_uidmin
  841. with_sysuidmin
  842. with_kernel_overflow_uid
  843. with_systemdunitdir
  844. enable_unix
  845. with_misc_conv_bufsize
  846. '
  847. ac_precious_vars='build_alias
  848. host_alias
  849. target_alias
  850. CC
  851. CFLAGS
  852. LDFLAGS
  853. LIBS
  854. CPPFLAGS
  855. CPP
  856. LT_SYS_LIBRARY_PATH
  857. YACC
  858. YFLAGS
  859. PKG_CONFIG
  860. PKG_CONFIG_PATH
  861. PKG_CONFIG_LIBDIR
  862. CRYPT_CFLAGS
  863. CRYPT_LIBS
  864. TIRPC_CFLAGS
  865. TIRPC_LIBS
  866. NSL_CFLAGS
  867. NSL_LIBS
  868. ECONF_CFLAGS
  869. ECONF_LIBS'
  870. # Initialize some variables set by options.
  871. ac_init_help=
  872. ac_init_version=false
  873. ac_unrecognized_opts=
  874. ac_unrecognized_sep=
  875. # The variables have the same names as the options, with
  876. # dashes changed to underlines.
  877. cache_file=/dev/null
  878. exec_prefix=NONE
  879. no_create=
  880. no_recursion=
  881. prefix=NONE
  882. program_prefix=NONE
  883. program_suffix=NONE
  884. program_transform_name=s,x,x,
  885. silent=
  886. site=
  887. srcdir=
  888. verbose=
  889. x_includes=NONE
  890. x_libraries=NONE
  891. # Installation directory options.
  892. # These are left unexpanded so users can "make install exec_prefix=/foo"
  893. # and all the variables that are supposed to be based on exec_prefix
  894. # by default will actually change.
  895. # Use braces instead of parens because sh, perl, etc. also accept them.
  896. # (The list follows the same order as the GNU Coding Standards.)
  897. bindir='${exec_prefix}/bin'
  898. sbindir='${exec_prefix}/sbin'
  899. libexecdir='${exec_prefix}/libexec'
  900. datarootdir='${prefix}/share'
  901. datadir='${datarootdir}'
  902. sysconfdir='${prefix}/etc'
  903. sharedstatedir='${prefix}/com'
  904. localstatedir='${prefix}/var'
  905. includedir='${prefix}/include'
  906. oldincludedir='/usr/include'
  907. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  908. infodir='${datarootdir}/info'
  909. htmldir='${docdir}'
  910. dvidir='${docdir}'
  911. pdfdir='${docdir}'
  912. psdir='${docdir}'
  913. libdir='${exec_prefix}/lib'
  914. localedir='${datarootdir}/locale'
  915. mandir='${datarootdir}/man'
  916. ac_prev=
  917. ac_dashdash=
  918. for ac_option
  919. do
  920. # If the previous option needs an argument, assign it.
  921. if test -n "$ac_prev"; then
  922. eval $ac_prev=\$ac_option
  923. ac_prev=
  924. continue
  925. fi
  926. case $ac_option in
  927. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  928. *=) ac_optarg= ;;
  929. *) ac_optarg=yes ;;
  930. esac
  931. # Accept the important Cygnus configure options, so we can diagnose typos.
  932. case $ac_dashdash$ac_option in
  933. --)
  934. ac_dashdash=yes ;;
  935. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  936. ac_prev=bindir ;;
  937. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  938. bindir=$ac_optarg ;;
  939. -build | --build | --buil | --bui | --bu)
  940. ac_prev=build_alias ;;
  941. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  942. build_alias=$ac_optarg ;;
  943. -cache-file | --cache-file | --cache-fil | --cache-fi \
  944. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  945. ac_prev=cache_file ;;
  946. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  947. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  948. cache_file=$ac_optarg ;;
  949. --config-cache | -C)
  950. cache_file=config.cache ;;
  951. -datadir | --datadir | --datadi | --datad)
  952. ac_prev=datadir ;;
  953. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  954. datadir=$ac_optarg ;;
  955. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  956. | --dataroo | --dataro | --datar)
  957. ac_prev=datarootdir ;;
  958. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  959. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  960. datarootdir=$ac_optarg ;;
  961. -disable-* | --disable-*)
  962. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  965. as_fn_error $? "invalid feature name: $ac_useropt"
  966. ac_useropt_orig=$ac_useropt
  967. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  968. case $ac_user_opts in
  969. *"
  970. "enable_$ac_useropt"
  971. "*) ;;
  972. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  973. ac_unrecognized_sep=', ';;
  974. esac
  975. eval enable_$ac_useropt=no ;;
  976. -docdir | --docdir | --docdi | --doc | --do)
  977. ac_prev=docdir ;;
  978. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  979. docdir=$ac_optarg ;;
  980. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  981. ac_prev=dvidir ;;
  982. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  983. dvidir=$ac_optarg ;;
  984. -enable-* | --enable-*)
  985. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  988. as_fn_error $? "invalid feature name: $ac_useropt"
  989. ac_useropt_orig=$ac_useropt
  990. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  991. case $ac_user_opts in
  992. *"
  993. "enable_$ac_useropt"
  994. "*) ;;
  995. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  996. ac_unrecognized_sep=', ';;
  997. esac
  998. eval enable_$ac_useropt=\$ac_optarg ;;
  999. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1000. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1001. | --exec | --exe | --ex)
  1002. ac_prev=exec_prefix ;;
  1003. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1004. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1005. | --exec=* | --exe=* | --ex=*)
  1006. exec_prefix=$ac_optarg ;;
  1007. -gas | --gas | --ga | --g)
  1008. # Obsolete; use --with-gas.
  1009. with_gas=yes ;;
  1010. -help | --help | --hel | --he | -h)
  1011. ac_init_help=long ;;
  1012. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1013. ac_init_help=recursive ;;
  1014. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1015. ac_init_help=short ;;
  1016. -host | --host | --hos | --ho)
  1017. ac_prev=host_alias ;;
  1018. -host=* | --host=* | --hos=* | --ho=*)
  1019. host_alias=$ac_optarg ;;
  1020. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1021. ac_prev=htmldir ;;
  1022. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1023. | --ht=*)
  1024. htmldir=$ac_optarg ;;
  1025. -includedir | --includedir | --includedi | --included | --include \
  1026. | --includ | --inclu | --incl | --inc)
  1027. ac_prev=includedir ;;
  1028. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1029. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1030. includedir=$ac_optarg ;;
  1031. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1032. ac_prev=infodir ;;
  1033. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1034. infodir=$ac_optarg ;;
  1035. -libdir | --libdir | --libdi | --libd)
  1036. ac_prev=libdir ;;
  1037. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1038. libdir=$ac_optarg ;;
  1039. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1040. | --libexe | --libex | --libe)
  1041. ac_prev=libexecdir ;;
  1042. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1043. | --libexe=* | --libex=* | --libe=*)
  1044. libexecdir=$ac_optarg ;;
  1045. -localedir | --localedir | --localedi | --localed | --locale)
  1046. ac_prev=localedir ;;
  1047. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1048. localedir=$ac_optarg ;;
  1049. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1050. | --localstate | --localstat | --localsta | --localst | --locals)
  1051. ac_prev=localstatedir ;;
  1052. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1053. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1054. localstatedir=$ac_optarg ;;
  1055. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1056. ac_prev=mandir ;;
  1057. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1058. mandir=$ac_optarg ;;
  1059. -nfp | --nfp | --nf)
  1060. # Obsolete; use --without-fp.
  1061. with_fp=no ;;
  1062. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1063. | --no-cr | --no-c | -n)
  1064. no_create=yes ;;
  1065. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1066. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1067. no_recursion=yes ;;
  1068. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1069. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1070. | --oldin | --oldi | --old | --ol | --o)
  1071. ac_prev=oldincludedir ;;
  1072. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1073. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1074. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1075. oldincludedir=$ac_optarg ;;
  1076. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1077. ac_prev=prefix ;;
  1078. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1079. prefix=$ac_optarg ;;
  1080. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1081. | --program-pre | --program-pr | --program-p)
  1082. ac_prev=program_prefix ;;
  1083. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1084. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1085. program_prefix=$ac_optarg ;;
  1086. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1087. | --program-suf | --program-su | --program-s)
  1088. ac_prev=program_suffix ;;
  1089. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1090. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1091. program_suffix=$ac_optarg ;;
  1092. -program-transform-name | --program-transform-name \
  1093. | --program-transform-nam | --program-transform-na \
  1094. | --program-transform-n | --program-transform- \
  1095. | --program-transform | --program-transfor \
  1096. | --program-transfo | --program-transf \
  1097. | --program-trans | --program-tran \
  1098. | --progr-tra | --program-tr | --program-t)
  1099. ac_prev=program_transform_name ;;
  1100. -program-transform-name=* | --program-transform-name=* \
  1101. | --program-transform-nam=* | --program-transform-na=* \
  1102. | --program-transform-n=* | --program-transform-=* \
  1103. | --program-transform=* | --program-transfor=* \
  1104. | --program-transfo=* | --program-transf=* \
  1105. | --program-trans=* | --program-tran=* \
  1106. | --progr-tra=* | --program-tr=* | --program-t=*)
  1107. program_transform_name=$ac_optarg ;;
  1108. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1109. ac_prev=pdfdir ;;
  1110. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1111. pdfdir=$ac_optarg ;;
  1112. -psdir | --psdir | --psdi | --psd | --ps)
  1113. ac_prev=psdir ;;
  1114. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1115. psdir=$ac_optarg ;;
  1116. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1117. | -silent | --silent | --silen | --sile | --sil)
  1118. silent=yes ;;
  1119. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1120. ac_prev=sbindir ;;
  1121. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1122. | --sbi=* | --sb=*)
  1123. sbindir=$ac_optarg ;;
  1124. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1125. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1126. | --sharedst | --shareds | --shared | --share | --shar \
  1127. | --sha | --sh)
  1128. ac_prev=sharedstatedir ;;
  1129. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1130. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1131. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1132. | --sha=* | --sh=*)
  1133. sharedstatedir=$ac_optarg ;;
  1134. -site | --site | --sit)
  1135. ac_prev=site ;;
  1136. -site=* | --site=* | --sit=*)
  1137. site=$ac_optarg ;;
  1138. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1139. ac_prev=srcdir ;;
  1140. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1141. srcdir=$ac_optarg ;;
  1142. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1143. | --syscon | --sysco | --sysc | --sys | --sy)
  1144. ac_prev=sysconfdir ;;
  1145. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1146. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1147. sysconfdir=$ac_optarg ;;
  1148. -target | --target | --targe | --targ | --tar | --ta | --t)
  1149. ac_prev=target_alias ;;
  1150. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1151. target_alias=$ac_optarg ;;
  1152. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1153. verbose=yes ;;
  1154. -version | --version | --versio | --versi | --vers | -V)
  1155. ac_init_version=: ;;
  1156. -with-* | --with-*)
  1157. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1158. # Reject names that are not valid shell variable names.
  1159. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1160. as_fn_error $? "invalid package name: $ac_useropt"
  1161. ac_useropt_orig=$ac_useropt
  1162. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1163. case $ac_user_opts in
  1164. *"
  1165. "with_$ac_useropt"
  1166. "*) ;;
  1167. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1168. ac_unrecognized_sep=', ';;
  1169. esac
  1170. eval with_$ac_useropt=\$ac_optarg ;;
  1171. -without-* | --without-*)
  1172. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1173. # Reject names that are not valid shell variable names.
  1174. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1175. as_fn_error $? "invalid package name: $ac_useropt"
  1176. ac_useropt_orig=$ac_useropt
  1177. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1178. case $ac_user_opts in
  1179. *"
  1180. "with_$ac_useropt"
  1181. "*) ;;
  1182. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1183. ac_unrecognized_sep=', ';;
  1184. esac
  1185. eval with_$ac_useropt=no ;;
  1186. --x)
  1187. # Obsolete; use --with-x.
  1188. with_x=yes ;;
  1189. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1190. | --x-incl | --x-inc | --x-in | --x-i)
  1191. ac_prev=x_includes ;;
  1192. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1193. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1194. x_includes=$ac_optarg ;;
  1195. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1196. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1197. ac_prev=x_libraries ;;
  1198. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1199. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1200. x_libraries=$ac_optarg ;;
  1201. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1202. Try \`$0 --help' for more information"
  1203. ;;
  1204. *=*)
  1205. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1206. # Reject names that are not valid shell variable names.
  1207. case $ac_envvar in #(
  1208. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1209. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1210. esac
  1211. eval $ac_envvar=\$ac_optarg
  1212. export $ac_envvar ;;
  1213. *)
  1214. # FIXME: should be removed in autoconf 3.0.
  1215. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1216. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1217. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1218. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1219. ;;
  1220. esac
  1221. done
  1222. if test -n "$ac_prev"; then
  1223. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1224. as_fn_error $? "missing argument to $ac_option"
  1225. fi
  1226. if test -n "$ac_unrecognized_opts"; then
  1227. case $enable_option_checking in
  1228. no) ;;
  1229. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1230. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1231. esac
  1232. fi
  1233. # Check all directory arguments for consistency.
  1234. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1235. datadir sysconfdir sharedstatedir localstatedir includedir \
  1236. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1237. libdir localedir mandir
  1238. do
  1239. eval ac_val=\$$ac_var
  1240. # Remove trailing slashes.
  1241. case $ac_val in
  1242. */ )
  1243. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1244. eval $ac_var=\$ac_val;;
  1245. esac
  1246. # Be sure to have absolute directory names.
  1247. case $ac_val in
  1248. [\\/$]* | ?:[\\/]* ) continue;;
  1249. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1250. esac
  1251. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1252. done
  1253. # There might be people who depend on the old broken behavior: `$host'
  1254. # used to hold the argument of --host etc.
  1255. # FIXME: To remove some day.
  1256. build=$build_alias
  1257. host=$host_alias
  1258. target=$target_alias
  1259. # FIXME: To remove some day.
  1260. if test "x$host_alias" != x; then
  1261. if test "x$build_alias" = x; then
  1262. cross_compiling=maybe
  1263. elif test "x$build_alias" != "x$host_alias"; then
  1264. cross_compiling=yes
  1265. fi
  1266. fi
  1267. ac_tool_prefix=
  1268. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1269. test "$silent" = yes && exec 6>/dev/null
  1270. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1271. ac_ls_di=`ls -di .` &&
  1272. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1273. as_fn_error $? "working directory cannot be determined"
  1274. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1275. as_fn_error $? "pwd does not report name of working directory"
  1276. # Find the source files, if location was not specified.
  1277. if test -z "$srcdir"; then
  1278. ac_srcdir_defaulted=yes
  1279. # Try the directory containing this script, then the parent directory.
  1280. ac_confdir=`$as_dirname -- "$as_myself" ||
  1281. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1282. X"$as_myself" : 'X\(//\)[^/]' \| \
  1283. X"$as_myself" : 'X\(//\)$' \| \
  1284. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1285. $as_echo X"$as_myself" |
  1286. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1287. s//\1/
  1288. q
  1289. }
  1290. /^X\(\/\/\)[^/].*/{
  1291. s//\1/
  1292. q
  1293. }
  1294. /^X\(\/\/\)$/{
  1295. s//\1/
  1296. q
  1297. }
  1298. /^X\(\/\).*/{
  1299. s//\1/
  1300. q
  1301. }
  1302. s/.*/./; q'`
  1303. srcdir=$ac_confdir
  1304. if test ! -r "$srcdir/$ac_unique_file"; then
  1305. srcdir=..
  1306. fi
  1307. else
  1308. ac_srcdir_defaulted=no
  1309. fi
  1310. if test ! -r "$srcdir/$ac_unique_file"; then
  1311. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1312. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1313. fi
  1314. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1315. ac_abs_confdir=`(
  1316. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1317. pwd)`
  1318. # When building in place, set srcdir=.
  1319. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1320. srcdir=.
  1321. fi
  1322. # Remove unnecessary trailing slashes from srcdir.
  1323. # Double slashes in file names in object file debugging info
  1324. # mess up M-x gdb in Emacs.
  1325. case $srcdir in
  1326. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1327. esac
  1328. for ac_var in $ac_precious_vars; do
  1329. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1330. eval ac_env_${ac_var}_value=\$${ac_var}
  1331. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1332. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1333. done
  1334. #
  1335. # Report the --help message.
  1336. #
  1337. if test "$ac_init_help" = "long"; then
  1338. # Omit some internal or obsolete options to make the list less imposing.
  1339. # This message is too long to be a string in the A/UX 3.1 sh.
  1340. cat <<_ACEOF
  1341. \`configure' configures Linux-PAM 1.5.2 to adapt to many kinds of systems.
  1342. Usage: $0 [OPTION]... [VAR=VALUE]...
  1343. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1344. VAR=VALUE. See below for descriptions of some of the useful variables.
  1345. Defaults for the options are specified in brackets.
  1346. Configuration:
  1347. -h, --help display this help and exit
  1348. --help=short display options specific to this package
  1349. --help=recursive display the short help of all the included packages
  1350. -V, --version display version information and exit
  1351. -q, --quiet, --silent do not print \`checking ...' messages
  1352. --cache-file=FILE cache test results in FILE [disabled]
  1353. -C, --config-cache alias for \`--cache-file=config.cache'
  1354. -n, --no-create do not create output files
  1355. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1356. Installation directories:
  1357. --prefix=PREFIX install architecture-independent files in PREFIX
  1358. [$ac_default_prefix]
  1359. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1360. [PREFIX]
  1361. By default, \`make install' will install all the files in
  1362. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1363. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1364. for instance \`--prefix=\$HOME'.
  1365. For better control, use the options below.
  1366. Fine tuning of the installation directories:
  1367. --bindir=DIR user executables [EPREFIX/bin]
  1368. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1369. --libexecdir=DIR program executables [EPREFIX/libexec]
  1370. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1371. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1372. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1373. --libdir=DIR object code libraries [EPREFIX/lib]
  1374. --includedir=DIR C header files [PREFIX/include]
  1375. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1376. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1377. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1378. --infodir=DIR info documentation [DATAROOTDIR/info]
  1379. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1380. --mandir=DIR man documentation [DATAROOTDIR/man]
  1381. --docdir=DIR documentation root [DATAROOTDIR/doc/Linux-PAM]
  1382. --htmldir=DIR html documentation [DOCDIR]
  1383. --dvidir=DIR dvi documentation [DOCDIR]
  1384. --pdfdir=DIR pdf documentation [DOCDIR]
  1385. --psdir=DIR ps documentation [DOCDIR]
  1386. _ACEOF
  1387. cat <<\_ACEOF
  1388. Program names:
  1389. --program-prefix=PREFIX prepend PREFIX to installed program names
  1390. --program-suffix=SUFFIX append SUFFIX to installed program names
  1391. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1392. System types:
  1393. --build=BUILD configure for building on BUILD [guessed]
  1394. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1395. _ACEOF
  1396. fi
  1397. if test -n "$ac_init_help"; then
  1398. case $ac_init_help in
  1399. short | recursive ) echo "Configuration of Linux-PAM 1.5.2:";;
  1400. esac
  1401. cat <<\_ACEOF
  1402. Optional Features:
  1403. --disable-option-checking ignore unrecognized --enable/--with options
  1404. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1405. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1406. --enable-silent-rules less verbose build output (undo: "make V=1")
  1407. --disable-silent-rules verbose build output (undo: "make V=0")
  1408. --enable-dependency-tracking
  1409. do not reject slow dependency extractors
  1410. --disable-dependency-tracking
  1411. speeds up one-time build
  1412. --enable-static[=PKGS] build static libraries [default=no]
  1413. --enable-shared[=PKGS] build shared libraries [default=yes]
  1414. --enable-fast-install[=PKGS]
  1415. optimize for fast installation [default=yes]
  1416. --disable-libtool-lock avoid locking (might break parallel builds)
  1417. --disable-largefile omit support for large files
  1418. --enable-Werror turn on -Werror compiler option
  1419. --disable-pie disable position-independent executables (PIE)
  1420. --disable-doc Do not generate or install documentation
  1421. --disable-prelude do not use prelude
  1422. --enable-debug specify you are building with debugging on
  1423. --enable-securedir=DIR path to location of PAMs [default=$libdir/security]
  1424. --enable-isadir=DIR path to arch-specific module files
  1425. [default=../../(basename of $libdir)/security]
  1426. --enable-sconfigdir=DIR path to module conf files
  1427. [default=$sysconfdir/security]
  1428. --enable-pamlocking configure libpam to observe a global authentication
  1429. lock
  1430. --enable-read-both-confs
  1431. read both /etc/pam.d and /etc/pam.conf files
  1432. --disable-lckpwdf do not use the lckpwdf function
  1433. --disable-audit do not enable audit support
  1434. --enable-db=(db|ndbm|yes|no)
  1435. Default behavior 'yes', which is to check for libdb
  1436. first, followed by ndbm. Use 'no' to disable db
  1437. support.
  1438. --disable-nis Disable building NIS/YP support in pam_unix
  1439. --enable-usergroups sets the usergroups option default to enabled
  1440. --disable-selinux do not use SELinux
  1441. --disable-econf do not use libeconf
  1442. --enable-vendordir=DIR Directory for distribution provided configuration
  1443. files
  1444. --enable-openssl use OpenSSL crypto libraries
  1445. --disable-regenerate-docu
  1446. Don't re-build documentation from XML sources
  1447. --disable-nls do not use Native Language Support
  1448. --disable-rpath do not hardcode runtime library paths
  1449. --disable-unix do not build pam_unix module
  1450. Optional Packages:
  1451. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1452. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1453. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1454. both]
  1455. --with-aix-soname=aix|svr4|both
  1456. shared library versioning (aka "SONAME") variant to
  1457. provide on AIX, [default=aix].
  1458. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1459. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1460. compiler's sysroot if not specified).
  1461. --with-libprelude-prefix=PFX
  1462. Prefix where libprelude is installed (optional)
  1463. --with-mailspool path to mail spool directory
  1464. default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
  1465. --with-xauth additional path to check for xauth when it is called from pam_xauth
  1466. added to the default of /usr/X11R6/bin/xauth, /usr/bin/xauth, /usr/bin/X11/xauth
  1467. --with-randomdev=(<path>|yes|no)
  1468. use specified random device instead of /dev/urandom
  1469. or 'no' to disable
  1470. --with-db-uniquename=extension
  1471. Unique name for db libraries and functions.
  1472. --with-xml-catalog=CATALOG
  1473. path to xml catalog to use
  1474. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1475. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1476. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1477. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1478. --without-libintl-prefix don't search for libintl in includedir and libdir
  1479. --with-uidmin=<number> default value for regular user min uid (1000)
  1480. --with-sysuidmin=<number>
  1481. default value for system user min uid (101)
  1482. --with-kernel-overflow-uid=<number>
  1483. kernel overflow uid, default (uint16_t)-2=65534
  1484. --with-systemdunitdir=DIR
  1485. path to systemd service directory
  1486. --with-misc-conv-bufsize=<number>
  1487. Size of input buffer for libpam_misc's misc_conv()
  1488. conversation function, default=4096
  1489. Some influential environment variables:
  1490. CC C compiler command
  1491. CFLAGS C compiler flags
  1492. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1493. nonstandard directory <lib dir>
  1494. LIBS libraries to pass to the linker, e.g. -l<library>
  1495. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1496. you have headers in a nonstandard directory <include dir>
  1497. CPP C preprocessor
  1498. LT_SYS_LIBRARY_PATH
  1499. User-defined run-time library search path.
  1500. YACC The `Yet Another Compiler Compiler' implementation to use.
  1501. Defaults to the first program found out of: `bison -y', `byacc',
  1502. `yacc'.
  1503. YFLAGS The list of arguments that will be passed by default to $YACC.
  1504. This script will default YFLAGS to the empty string to avoid a
  1505. default value of `-d' given by some make applications.
  1506. PKG_CONFIG path to pkg-config utility
  1507. PKG_CONFIG_PATH
  1508. directories to add to pkg-config's search path
  1509. PKG_CONFIG_LIBDIR
  1510. path overriding pkg-config's built-in search path
  1511. CRYPT_CFLAGS
  1512. C compiler flags for CRYPT, overriding pkg-config
  1513. CRYPT_LIBS linker flags for CRYPT, overriding pkg-config
  1514. TIRPC_CFLAGS
  1515. C compiler flags for TIRPC, overriding pkg-config
  1516. TIRPC_LIBS linker flags for TIRPC, overriding pkg-config
  1517. NSL_CFLAGS C compiler flags for NSL, overriding pkg-config
  1518. NSL_LIBS linker flags for NSL, overriding pkg-config
  1519. ECONF_CFLAGS
  1520. C compiler flags for ECONF, overriding pkg-config
  1521. ECONF_LIBS linker flags for ECONF, overriding pkg-config
  1522. Use these variables to override the choices made by `configure' or to help
  1523. it to find libraries and programs with nonstandard names/locations.
  1524. Report bugs to the package provider.
  1525. _ACEOF
  1526. ac_status=$?
  1527. fi
  1528. if test "$ac_init_help" = "recursive"; then
  1529. # If there are subdirs, report their specific --help.
  1530. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1531. test -d "$ac_dir" ||
  1532. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1533. continue
  1534. ac_builddir=.
  1535. case "$ac_dir" in
  1536. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1537. *)
  1538. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1539. # A ".." for each directory in $ac_dir_suffix.
  1540. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1541. case $ac_top_builddir_sub in
  1542. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1543. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1544. esac ;;
  1545. esac
  1546. ac_abs_top_builddir=$ac_pwd
  1547. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1548. # for backward compatibility:
  1549. ac_top_builddir=$ac_top_build_prefix
  1550. case $srcdir in
  1551. .) # We are building in place.
  1552. ac_srcdir=.
  1553. ac_top_srcdir=$ac_top_builddir_sub
  1554. ac_abs_top_srcdir=$ac_pwd ;;
  1555. [\\/]* | ?:[\\/]* ) # Absolute name.
  1556. ac_srcdir=$srcdir$ac_dir_suffix;
  1557. ac_top_srcdir=$srcdir
  1558. ac_abs_top_srcdir=$srcdir ;;
  1559. *) # Relative name.
  1560. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1561. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1562. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1563. esac
  1564. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1565. cd "$ac_dir" || { ac_status=$?; continue; }
  1566. # Check for guested configure.
  1567. if test -f "$ac_srcdir/configure.gnu"; then
  1568. echo &&
  1569. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1570. elif test -f "$ac_srcdir/configure"; then
  1571. echo &&
  1572. $SHELL "$ac_srcdir/configure" --help=recursive
  1573. else
  1574. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1575. fi || ac_status=$?
  1576. cd "$ac_pwd" || { ac_status=$?; break; }
  1577. done
  1578. fi
  1579. test -n "$ac_init_help" && exit $ac_status
  1580. if $ac_init_version; then
  1581. cat <<\_ACEOF
  1582. Linux-PAM configure 1.5.2
  1583. generated by GNU Autoconf 2.69
  1584. Copyright (C) 2012 Free Software Foundation, Inc.
  1585. This configure script is free software; the Free Software Foundation
  1586. gives unlimited permission to copy, distribute and modify it.
  1587. _ACEOF
  1588. exit
  1589. fi
  1590. ## ------------------------ ##
  1591. ## Autoconf initialization. ##
  1592. ## ------------------------ ##
  1593. # ac_fn_c_try_compile LINENO
  1594. # --------------------------
  1595. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1596. ac_fn_c_try_compile ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. rm -f conftest.$ac_objext
  1600. if { { ac_try="$ac_compile"
  1601. case "(($ac_try" in
  1602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1603. *) ac_try_echo=$ac_try;;
  1604. esac
  1605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1606. $as_echo "$ac_try_echo"; } >&5
  1607. (eval "$ac_compile") 2>conftest.err
  1608. ac_status=$?
  1609. if test -s conftest.err; then
  1610. grep -v '^ *+' conftest.err >conftest.er1
  1611. cat conftest.er1 >&5
  1612. mv -f conftest.er1 conftest.err
  1613. fi
  1614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1615. test $ac_status = 0; } && {
  1616. test -z "$ac_c_werror_flag" ||
  1617. test ! -s conftest.err
  1618. } && test -s conftest.$ac_objext; then :
  1619. ac_retval=0
  1620. else
  1621. $as_echo "$as_me: failed program was:" >&5
  1622. sed 's/^/| /' conftest.$ac_ext >&5
  1623. ac_retval=1
  1624. fi
  1625. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1626. as_fn_set_status $ac_retval
  1627. } # ac_fn_c_try_compile
  1628. # ac_fn_c_try_cpp LINENO
  1629. # ----------------------
  1630. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1631. ac_fn_c_try_cpp ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1635. case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1640. $as_echo "$ac_try_echo"; } >&5
  1641. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1642. ac_status=$?
  1643. if test -s conftest.err; then
  1644. grep -v '^ *+' conftest.err >conftest.er1
  1645. cat conftest.er1 >&5
  1646. mv -f conftest.er1 conftest.err
  1647. fi
  1648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1649. test $ac_status = 0; } > conftest.i && {
  1650. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1651. test ! -s conftest.err
  1652. }; then :
  1653. ac_retval=0
  1654. else
  1655. $as_echo "$as_me: failed program was:" >&5
  1656. sed 's/^/| /' conftest.$ac_ext >&5
  1657. ac_retval=1
  1658. fi
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_c_try_cpp
  1662. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1663. # -------------------------------------------------------
  1664. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1665. # the include files in INCLUDES and setting the cache variable VAR
  1666. # accordingly.
  1667. ac_fn_c_check_header_mongrel ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. if eval \${$3+:} false; then :
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if eval \${$3+:} false; then :
  1674. $as_echo_n "(cached) " >&6
  1675. fi
  1676. eval ac_res=\$$3
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1678. $as_echo "$ac_res" >&6; }
  1679. else
  1680. # Is the header compilable?
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1682. $as_echo_n "checking $2 usability... " >&6; }
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h. */
  1685. $4
  1686. #include <$2>
  1687. _ACEOF
  1688. if ac_fn_c_try_compile "$LINENO"; then :
  1689. ac_header_compiler=yes
  1690. else
  1691. ac_header_compiler=no
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1695. $as_echo "$ac_header_compiler" >&6; }
  1696. # Is the header present?
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1698. $as_echo_n "checking $2 presence... " >&6; }
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. #include <$2>
  1702. _ACEOF
  1703. if ac_fn_c_try_cpp "$LINENO"; then :
  1704. ac_header_preproc=yes
  1705. else
  1706. ac_header_preproc=no
  1707. fi
  1708. rm -f conftest.err conftest.i conftest.$ac_ext
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1710. $as_echo "$ac_header_preproc" >&6; }
  1711. # So? What about this header?
  1712. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1713. yes:no: )
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1715. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1717. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1718. ;;
  1719. no:yes:* )
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1721. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1723. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1724. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1725. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1727. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1729. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1730. ;;
  1731. esac
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1733. $as_echo_n "checking for $2... " >&6; }
  1734. if eval \${$3+:} false; then :
  1735. $as_echo_n "(cached) " >&6
  1736. else
  1737. eval "$3=\$ac_header_compiler"
  1738. fi
  1739. eval ac_res=\$$3
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1741. $as_echo "$ac_res" >&6; }
  1742. fi
  1743. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1744. } # ac_fn_c_check_header_mongrel
  1745. # ac_fn_c_try_run LINENO
  1746. # ----------------------
  1747. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1748. # that executables *can* be run.
  1749. ac_fn_c_try_run ()
  1750. {
  1751. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1752. if { { ac_try="$ac_link"
  1753. case "(($ac_try" in
  1754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1755. *) ac_try_echo=$ac_try;;
  1756. esac
  1757. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1758. $as_echo "$ac_try_echo"; } >&5
  1759. (eval "$ac_link") 2>&5
  1760. ac_status=$?
  1761. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1762. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1763. { { case "(($ac_try" in
  1764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1765. *) ac_try_echo=$ac_try;;
  1766. esac
  1767. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1768. $as_echo "$ac_try_echo"; } >&5
  1769. (eval "$ac_try") 2>&5
  1770. ac_status=$?
  1771. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1772. test $ac_status = 0; }; }; then :
  1773. ac_retval=0
  1774. else
  1775. $as_echo "$as_me: program exited with status $ac_status" >&5
  1776. $as_echo "$as_me: failed program was:" >&5
  1777. sed 's/^/| /' conftest.$ac_ext >&5
  1778. ac_retval=$ac_status
  1779. fi
  1780. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1781. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782. as_fn_set_status $ac_retval
  1783. } # ac_fn_c_try_run
  1784. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1785. # -------------------------------------------------------
  1786. # Tests whether HEADER exists and can be compiled using the include files in
  1787. # INCLUDES, setting the cache variable VAR accordingly.
  1788. ac_fn_c_check_header_compile ()
  1789. {
  1790. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1792. $as_echo_n "checking for $2... " >&6; }
  1793. if eval \${$3+:} false; then :
  1794. $as_echo_n "(cached) " >&6
  1795. else
  1796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1797. /* end confdefs.h. */
  1798. $4
  1799. #include <$2>
  1800. _ACEOF
  1801. if ac_fn_c_try_compile "$LINENO"; then :
  1802. eval "$3=yes"
  1803. else
  1804. eval "$3=no"
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1807. fi
  1808. eval ac_res=\$$3
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1810. $as_echo "$ac_res" >&6; }
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. } # ac_fn_c_check_header_compile
  1813. # ac_fn_c_try_link LINENO
  1814. # -----------------------
  1815. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1816. ac_fn_c_try_link ()
  1817. {
  1818. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1819. rm -f conftest.$ac_objext conftest$ac_exeext
  1820. if { { ac_try="$ac_link"
  1821. case "(($ac_try" in
  1822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1823. *) ac_try_echo=$ac_try;;
  1824. esac
  1825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1826. $as_echo "$ac_try_echo"; } >&5
  1827. (eval "$ac_link") 2>conftest.err
  1828. ac_status=$?
  1829. if test -s conftest.err; then
  1830. grep -v '^ *+' conftest.err >conftest.er1
  1831. cat conftest.er1 >&5
  1832. mv -f conftest.er1 conftest.err
  1833. fi
  1834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1835. test $ac_status = 0; } && {
  1836. test -z "$ac_c_werror_flag" ||
  1837. test ! -s conftest.err
  1838. } && test -s conftest$ac_exeext && {
  1839. test "$cross_compiling" = yes ||
  1840. test -x conftest$ac_exeext
  1841. }; then :
  1842. ac_retval=0
  1843. else
  1844. $as_echo "$as_me: failed program was:" >&5
  1845. sed 's/^/| /' conftest.$ac_ext >&5
  1846. ac_retval=1
  1847. fi
  1848. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1849. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1850. # interfere with the next link command; also delete a directory that is
  1851. # left behind by Apple's compiler. We do this before executing the actions.
  1852. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1853. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1854. as_fn_set_status $ac_retval
  1855. } # ac_fn_c_try_link
  1856. # ac_fn_c_check_func LINENO FUNC VAR
  1857. # ----------------------------------
  1858. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1859. ac_fn_c_check_func ()
  1860. {
  1861. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1863. $as_echo_n "checking for $2... " >&6; }
  1864. if eval \${$3+:} false; then :
  1865. $as_echo_n "(cached) " >&6
  1866. else
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1870. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1871. #define $2 innocuous_$2
  1872. /* Tell GNU C headers to include stubs. */
  1873. #define __need_GNU_STUBS_H
  1874. /* System header to define __stub macros and hopefully few prototypes,
  1875. which can conflict with char $2 (); below.
  1876. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1877. <limits.h> exists even on freestanding compilers. */
  1878. #ifdef __STDC__
  1879. # include <limits.h>
  1880. #else
  1881. # include <assert.h>
  1882. #endif
  1883. #undef $2
  1884. /* Override any GCC internal prototype to avoid an error.
  1885. Use char because int might match the return type of a GCC
  1886. builtin and then its argument prototype would still apply. */
  1887. #ifdef __cplusplus
  1888. extern "C"
  1889. #endif
  1890. char $2 ();
  1891. /* The GNU C library defines this for functions which it implements
  1892. to always fail with ENOSYS. Some functions are actually named
  1893. something starting with __ and the normal name is an alias. */
  1894. #if defined __stub_$2 || defined __stub___$2
  1895. choke me
  1896. #endif
  1897. int
  1898. main ()
  1899. {
  1900. return $2 ();
  1901. ;
  1902. return 0;
  1903. }
  1904. _ACEOF
  1905. if ac_fn_c_try_link "$LINENO"; then :
  1906. eval "$3=yes"
  1907. else
  1908. if test "$GCC" = yes; then
  1909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1910. /* end confdefs.h. */
  1911. #undef $2
  1912. /* Declare this function with the same prototype as __builtin_$2.
  1913. This removes a warning about conflicting types for built-in function $2 */
  1914. __typeof__(__builtin_$2) $2;
  1915. __typeof__(__builtin_$2) *volatile f = $2;
  1916. int
  1917. main ()
  1918. {
  1919. return f != $2;
  1920. ;
  1921. return 0;
  1922. }
  1923. _ACEOF
  1924. if ac_fn_c_try_link "$LINENO"; then :
  1925. eval "$3=yes"
  1926. else
  1927. eval "$3=no"
  1928. fi
  1929. rm -f core conftest.err conftest.$ac_objext \
  1930. conftest$ac_exeext conftest.$ac_ext
  1931. else
  1932. eval "$3=no"
  1933. fi
  1934. fi
  1935. rm -f core conftest.err conftest.$ac_objext \
  1936. conftest$ac_exeext conftest.$ac_ext
  1937. fi
  1938. eval ac_res=\$$3
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1940. $as_echo "$ac_res" >&6; }
  1941. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1942. } # ac_fn_c_check_func
  1943. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1944. # -------------------------------------------
  1945. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1946. # variable VAR accordingly.
  1947. ac_fn_c_check_type ()
  1948. {
  1949. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1951. $as_echo_n "checking for $2... " >&6; }
  1952. if eval \${$3+:} false; then :
  1953. $as_echo_n "(cached) " >&6
  1954. else
  1955. eval "$3=no"
  1956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1957. /* end confdefs.h. */
  1958. $4
  1959. int
  1960. main ()
  1961. {
  1962. if (sizeof ($2))
  1963. return 0;
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_c_try_compile "$LINENO"; then :
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. $4
  1972. int
  1973. main ()
  1974. {
  1975. if (sizeof (($2)))
  1976. return 0;
  1977. ;
  1978. return 0;
  1979. }
  1980. _ACEOF
  1981. if ac_fn_c_try_compile "$LINENO"; then :
  1982. else
  1983. eval "$3=yes"
  1984. fi
  1985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1986. fi
  1987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1988. fi
  1989. eval ac_res=\$$3
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1991. $as_echo "$ac_res" >&6; }
  1992. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1993. } # ac_fn_c_check_type
  1994. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1995. # ----------------------------------------------------
  1996. # Tries to find if the field MEMBER exists in type AGGR, after including
  1997. # INCLUDES, setting cache variable VAR accordingly.
  1998. ac_fn_c_check_member ()
  1999. {
  2000. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2002. $as_echo_n "checking for $2.$3... " >&6; }
  2003. if eval \${$4+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2007. /* end confdefs.h. */
  2008. $5
  2009. int
  2010. main ()
  2011. {
  2012. static $2 ac_aggr;
  2013. if (ac_aggr.$3)
  2014. return 0;
  2015. ;
  2016. return 0;
  2017. }
  2018. _ACEOF
  2019. if ac_fn_c_try_compile "$LINENO"; then :
  2020. eval "$4=yes"
  2021. else
  2022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2023. /* end confdefs.h. */
  2024. $5
  2025. int
  2026. main ()
  2027. {
  2028. static $2 ac_aggr;
  2029. if (sizeof ac_aggr.$3)
  2030. return 0;
  2031. ;
  2032. return 0;
  2033. }
  2034. _ACEOF
  2035. if ac_fn_c_try_compile "$LINENO"; then :
  2036. eval "$4=yes"
  2037. else
  2038. eval "$4=no"
  2039. fi
  2040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2041. fi
  2042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2043. fi
  2044. eval ac_res=\$$4
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2046. $as_echo "$ac_res" >&6; }
  2047. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2048. } # ac_fn_c_check_member
  2049. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2050. # ---------------------------------------------
  2051. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2052. # accordingly.
  2053. ac_fn_c_check_decl ()
  2054. {
  2055. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2056. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2057. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2059. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2060. if eval \${$3+:} false; then :
  2061. $as_echo_n "(cached) " >&6
  2062. else
  2063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2064. /* end confdefs.h. */
  2065. $4
  2066. int
  2067. main ()
  2068. {
  2069. #ifndef $as_decl_name
  2070. #ifdef __cplusplus
  2071. (void) $as_decl_use;
  2072. #else
  2073. (void) $as_decl_name;
  2074. #endif
  2075. #endif
  2076. ;
  2077. return 0;
  2078. }
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. eval "$3=yes"
  2082. else
  2083. eval "$3=no"
  2084. fi
  2085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086. fi
  2087. eval ac_res=\$$3
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2089. $as_echo "$ac_res" >&6; }
  2090. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2091. } # ac_fn_c_check_decl
  2092. cat >config.log <<_ACEOF
  2093. This file contains any messages produced by compilers while
  2094. running configure, to aid debugging if configure makes a mistake.
  2095. It was created by Linux-PAM $as_me 1.5.2, which was
  2096. generated by GNU Autoconf 2.69. Invocation command line was
  2097. $ $0 $@
  2098. _ACEOF
  2099. exec 5>>config.log
  2100. {
  2101. cat <<_ASUNAME
  2102. ## --------- ##
  2103. ## Platform. ##
  2104. ## --------- ##
  2105. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2106. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2107. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2108. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2109. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2110. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2111. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2112. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2113. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2114. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2115. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2116. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2117. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2118. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2119. _ASUNAME
  2120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2121. for as_dir in $PATH
  2122. do
  2123. IFS=$as_save_IFS
  2124. test -z "$as_dir" && as_dir=.
  2125. $as_echo "PATH: $as_dir"
  2126. done
  2127. IFS=$as_save_IFS
  2128. } >&5
  2129. cat >&5 <<_ACEOF
  2130. ## ----------- ##
  2131. ## Core tests. ##
  2132. ## ----------- ##
  2133. _ACEOF
  2134. # Keep a trace of the command line.
  2135. # Strip out --no-create and --no-recursion so they do not pile up.
  2136. # Strip out --silent because we don't want to record it for future runs.
  2137. # Also quote any args containing shell meta-characters.
  2138. # Make two passes to allow for proper duplicate-argument suppression.
  2139. ac_configure_args=
  2140. ac_configure_args0=
  2141. ac_configure_args1=
  2142. ac_must_keep_next=false
  2143. for ac_pass in 1 2
  2144. do
  2145. for ac_arg
  2146. do
  2147. case $ac_arg in
  2148. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2149. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2150. | -silent | --silent | --silen | --sile | --sil)
  2151. continue ;;
  2152. *\'*)
  2153. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2154. esac
  2155. case $ac_pass in
  2156. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2157. 2)
  2158. as_fn_append ac_configure_args1 " '$ac_arg'"
  2159. if test $ac_must_keep_next = true; then
  2160. ac_must_keep_next=false # Got value, back to normal.
  2161. else
  2162. case $ac_arg in
  2163. *=* | --config-cache | -C | -disable-* | --disable-* \
  2164. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2165. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2166. | -with-* | --with-* | -without-* | --without-* | --x)
  2167. case "$ac_configure_args0 " in
  2168. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2169. esac
  2170. ;;
  2171. -* ) ac_must_keep_next=true ;;
  2172. esac
  2173. fi
  2174. as_fn_append ac_configure_args " '$ac_arg'"
  2175. ;;
  2176. esac
  2177. done
  2178. done
  2179. { ac_configure_args0=; unset ac_configure_args0;}
  2180. { ac_configure_args1=; unset ac_configure_args1;}
  2181. # When interrupted or exit'd, cleanup temporary files, and complete
  2182. # config.log. We remove comments because anyway the quotes in there
  2183. # would cause problems or look ugly.
  2184. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2185. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2186. trap 'exit_status=$?
  2187. # Sanitize IFS.
  2188. IFS=" "" $as_nl"
  2189. # Save into config.log some information that might help in debugging.
  2190. {
  2191. echo
  2192. $as_echo "## ---------------- ##
  2193. ## Cache variables. ##
  2194. ## ---------------- ##"
  2195. echo
  2196. # The following way of writing the cache mishandles newlines in values,
  2197. (
  2198. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2199. eval ac_val=\$$ac_var
  2200. case $ac_val in #(
  2201. *${as_nl}*)
  2202. case $ac_var in #(
  2203. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2204. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2205. esac
  2206. case $ac_var in #(
  2207. _ | IFS | as_nl) ;; #(
  2208. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2209. *) { eval $ac_var=; unset $ac_var;} ;;
  2210. esac ;;
  2211. esac
  2212. done
  2213. (set) 2>&1 |
  2214. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2215. *${as_nl}ac_space=\ *)
  2216. sed -n \
  2217. "s/'\''/'\''\\\\'\'''\''/g;
  2218. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2219. ;; #(
  2220. *)
  2221. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2222. ;;
  2223. esac |
  2224. sort
  2225. )
  2226. echo
  2227. $as_echo "## ----------------- ##
  2228. ## Output variables. ##
  2229. ## ----------------- ##"
  2230. echo
  2231. for ac_var in $ac_subst_vars
  2232. do
  2233. eval ac_val=\$$ac_var
  2234. case $ac_val in
  2235. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2236. esac
  2237. $as_echo "$ac_var='\''$ac_val'\''"
  2238. done | sort
  2239. echo
  2240. if test -n "$ac_subst_files"; then
  2241. $as_echo "## ------------------- ##
  2242. ## File substitutions. ##
  2243. ## ------------------- ##"
  2244. echo
  2245. for ac_var in $ac_subst_files
  2246. do
  2247. eval ac_val=\$$ac_var
  2248. case $ac_val in
  2249. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2250. esac
  2251. $as_echo "$ac_var='\''$ac_val'\''"
  2252. done | sort
  2253. echo
  2254. fi
  2255. if test -s confdefs.h; then
  2256. $as_echo "## ----------- ##
  2257. ## confdefs.h. ##
  2258. ## ----------- ##"
  2259. echo
  2260. cat confdefs.h
  2261. echo
  2262. fi
  2263. test "$ac_signal" != 0 &&
  2264. $as_echo "$as_me: caught signal $ac_signal"
  2265. $as_echo "$as_me: exit $exit_status"
  2266. } >&5
  2267. rm -f core *.core core.conftest.* &&
  2268. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2269. exit $exit_status
  2270. ' 0
  2271. for ac_signal in 1 2 13 15; do
  2272. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2273. done
  2274. ac_signal=0
  2275. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2276. rm -f -r conftest* confdefs.h
  2277. $as_echo "/* confdefs.h */" > confdefs.h
  2278. # Predefined preprocessor variables.
  2279. cat >>confdefs.h <<_ACEOF
  2280. #define PACKAGE_NAME "$PACKAGE_NAME"
  2281. _ACEOF
  2282. cat >>confdefs.h <<_ACEOF
  2283. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2284. _ACEOF
  2285. cat >>confdefs.h <<_ACEOF
  2286. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2287. _ACEOF
  2288. cat >>confdefs.h <<_ACEOF
  2289. #define PACKAGE_STRING "$PACKAGE_STRING"
  2290. _ACEOF
  2291. cat >>confdefs.h <<_ACEOF
  2292. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2293. _ACEOF
  2294. cat >>confdefs.h <<_ACEOF
  2295. #define PACKAGE_URL "$PACKAGE_URL"
  2296. _ACEOF
  2297. # Let the site file select an alternate cache file if it wants to.
  2298. # Prefer an explicitly selected file to automatically selected ones.
  2299. ac_site_file1=NONE
  2300. ac_site_file2=NONE
  2301. if test -n "$CONFIG_SITE"; then
  2302. # We do not want a PATH search for config.site.
  2303. case $CONFIG_SITE in #((
  2304. -*) ac_site_file1=./$CONFIG_SITE;;
  2305. */*) ac_site_file1=$CONFIG_SITE;;
  2306. *) ac_site_file1=./$CONFIG_SITE;;
  2307. esac
  2308. elif test "x$prefix" != xNONE; then
  2309. ac_site_file1=$prefix/share/config.site
  2310. ac_site_file2=$prefix/etc/config.site
  2311. else
  2312. ac_site_file1=$ac_default_prefix/share/config.site
  2313. ac_site_file2=$ac_default_prefix/etc/config.site
  2314. fi
  2315. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2316. do
  2317. test "x$ac_site_file" = xNONE && continue
  2318. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2320. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2321. sed 's/^/| /' "$ac_site_file" >&5
  2322. . "$ac_site_file" \
  2323. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2324. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2325. as_fn_error $? "failed to load site script $ac_site_file
  2326. See \`config.log' for more details" "$LINENO" 5; }
  2327. fi
  2328. done
  2329. if test -r "$cache_file"; then
  2330. # Some versions of bash will fail to source /dev/null (special files
  2331. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2332. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2334. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2335. case $cache_file in
  2336. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2337. *) . "./$cache_file";;
  2338. esac
  2339. fi
  2340. else
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2342. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2343. >$cache_file
  2344. fi
  2345. gt_needs="$gt_needs "
  2346. # Check that the precious variables saved in the cache have kept the same
  2347. # value.
  2348. ac_cache_corrupted=false
  2349. for ac_var in $ac_precious_vars; do
  2350. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2351. eval ac_new_set=\$ac_env_${ac_var}_set
  2352. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2353. eval ac_new_val=\$ac_env_${ac_var}_value
  2354. case $ac_old_set,$ac_new_set in
  2355. set,)
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2357. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2358. ac_cache_corrupted=: ;;
  2359. ,set)
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2361. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2362. ac_cache_corrupted=: ;;
  2363. ,);;
  2364. *)
  2365. if test "x$ac_old_val" != "x$ac_new_val"; then
  2366. # differences in whitespace do not lead to failure.
  2367. ac_old_val_w=`echo x $ac_old_val`
  2368. ac_new_val_w=`echo x $ac_new_val`
  2369. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2370. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2371. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2372. ac_cache_corrupted=:
  2373. else
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2375. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2376. eval $ac_var=\$ac_old_val
  2377. fi
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2379. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2381. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2382. fi;;
  2383. esac
  2384. # Pass precious variables to config.status.
  2385. if test "$ac_new_set" = set; then
  2386. case $ac_new_val in
  2387. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2388. *) ac_arg=$ac_var=$ac_new_val ;;
  2389. esac
  2390. case " $ac_configure_args " in
  2391. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2392. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2393. esac
  2394. fi
  2395. done
  2396. if $ac_cache_corrupted; then
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2398. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2400. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2401. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2402. fi
  2403. ## -------------------- ##
  2404. ## Main body of script. ##
  2405. ## -------------------- ##
  2406. ac_ext=c
  2407. ac_cpp='$CPP $CPPFLAGS'
  2408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2411. ac_aux_dir=
  2412. for ac_dir in build-aux "$srcdir"/build-aux; do
  2413. if test -f "$ac_dir/install-sh"; then
  2414. ac_aux_dir=$ac_dir
  2415. ac_install_sh="$ac_aux_dir/install-sh -c"
  2416. break
  2417. elif test -f "$ac_dir/install.sh"; then
  2418. ac_aux_dir=$ac_dir
  2419. ac_install_sh="$ac_aux_dir/install.sh -c"
  2420. break
  2421. elif test -f "$ac_dir/shtool"; then
  2422. ac_aux_dir=$ac_dir
  2423. ac_install_sh="$ac_aux_dir/shtool install -c"
  2424. break
  2425. fi
  2426. done
  2427. if test -z "$ac_aux_dir"; then
  2428. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2429. fi
  2430. # These three variables are undocumented and unsupported,
  2431. # and are intended to be withdrawn in a future Autoconf release.
  2432. # They can cause serious problems if a builder's source tree is in a directory
  2433. # whose full name contains unusual characters.
  2434. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2435. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2436. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2437. am__api_version='1.16'
  2438. # Find a good install program. We prefer a C program (faster),
  2439. # so one script is as good as another. But avoid the broken or
  2440. # incompatible versions:
  2441. # SysV /etc/install, /usr/sbin/install
  2442. # SunOS /usr/etc/install
  2443. # IRIX /sbin/install
  2444. # AIX /bin/install
  2445. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2446. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2447. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2448. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2449. # OS/2's system install, which has a completely different semantic
  2450. # ./install, which can be erroneously created by make from ./install.sh.
  2451. # Reject install programs that cannot install multiple files.
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2453. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2454. if test -z "$INSTALL"; then
  2455. if ${ac_cv_path_install+:} false; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2459. for as_dir in $PATH
  2460. do
  2461. IFS=$as_save_IFS
  2462. test -z "$as_dir" && as_dir=.
  2463. # Account for people who put trailing slashes in PATH elements.
  2464. case $as_dir/ in #((
  2465. ./ | .// | /[cC]/* | \
  2466. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2467. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2468. /usr/ucb/* ) ;;
  2469. *)
  2470. # OSF1 and SCO ODT 3.0 have their own names for install.
  2471. # Don't use installbsd from OSF since it installs stuff as root
  2472. # by default.
  2473. for ac_prog in ginstall scoinst install; do
  2474. for ac_exec_ext in '' $ac_executable_extensions; do
  2475. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2476. if test $ac_prog = install &&
  2477. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2478. # AIX install. It has an incompatible calling convention.
  2479. :
  2480. elif test $ac_prog = install &&
  2481. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2482. # program-specific install script used by HP pwplus--don't use.
  2483. :
  2484. else
  2485. rm -rf conftest.one conftest.two conftest.dir
  2486. echo one > conftest.one
  2487. echo two > conftest.two
  2488. mkdir conftest.dir
  2489. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2490. test -s conftest.one && test -s conftest.two &&
  2491. test -s conftest.dir/conftest.one &&
  2492. test -s conftest.dir/conftest.two
  2493. then
  2494. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2495. break 3
  2496. fi
  2497. fi
  2498. fi
  2499. done
  2500. done
  2501. ;;
  2502. esac
  2503. done
  2504. IFS=$as_save_IFS
  2505. rm -rf conftest.one conftest.two conftest.dir
  2506. fi
  2507. if test "${ac_cv_path_install+set}" = set; then
  2508. INSTALL=$ac_cv_path_install
  2509. else
  2510. # As a last resort, use the slow shell script. Don't cache a
  2511. # value for INSTALL within a source directory, because that will
  2512. # break other packages using the cache if that directory is
  2513. # removed, or if the value is a relative name.
  2514. INSTALL=$ac_install_sh
  2515. fi
  2516. fi
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2518. $as_echo "$INSTALL" >&6; }
  2519. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2520. # It thinks the first close brace ends the variable substitution.
  2521. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2522. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2523. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2525. $as_echo_n "checking whether build environment is sane... " >&6; }
  2526. # Reject unsafe characters in $srcdir or the absolute working directory
  2527. # name. Accept space and tab only in the latter.
  2528. am_lf='
  2529. '
  2530. case `pwd` in
  2531. *[\\\"\#\$\&\'\`$am_lf]*)
  2532. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2533. esac
  2534. case $srcdir in
  2535. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2536. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2537. esac
  2538. # Do 'set' in a subshell so we don't clobber the current shell's
  2539. # arguments. Must try -L first in case configure is actually a
  2540. # symlink; some systems play weird games with the mod time of symlinks
  2541. # (eg FreeBSD returns the mod time of the symlink's containing
  2542. # directory).
  2543. if (
  2544. am_has_slept=no
  2545. for am_try in 1 2; do
  2546. echo "timestamp, slept: $am_has_slept" > conftest.file
  2547. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2548. if test "$*" = "X"; then
  2549. # -L didn't work.
  2550. set X `ls -t "$srcdir/configure" conftest.file`
  2551. fi
  2552. if test "$*" != "X $srcdir/configure conftest.file" \
  2553. && test "$*" != "X conftest.file $srcdir/configure"; then
  2554. # If neither matched, then we have a broken ls. This can happen
  2555. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2556. # broken ls alias from the environment. This has actually
  2557. # happened. Such a system could not be considered "sane".
  2558. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2559. alias in your environment" "$LINENO" 5
  2560. fi
  2561. if test "$2" = conftest.file || test $am_try -eq 2; then
  2562. break
  2563. fi
  2564. # Just in case.
  2565. sleep 1
  2566. am_has_slept=yes
  2567. done
  2568. test "$2" = conftest.file
  2569. )
  2570. then
  2571. # Ok.
  2572. :
  2573. else
  2574. as_fn_error $? "newly created file is older than distributed files!
  2575. Check your system clock" "$LINENO" 5
  2576. fi
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2578. $as_echo "yes" >&6; }
  2579. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2580. # generated files are strictly newer.
  2581. am_sleep_pid=
  2582. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2583. ( sleep 1 ) &
  2584. am_sleep_pid=$!
  2585. fi
  2586. rm -f conftest.file
  2587. test "$program_prefix" != NONE &&
  2588. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2589. # Use a double $ so make ignores it.
  2590. test "$program_suffix" != NONE &&
  2591. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2592. # Double any \ or $.
  2593. # By default was `s,x,x', remove it if useless.
  2594. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2595. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2596. # Expand $ac_aux_dir to an absolute path.
  2597. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2598. if test x"${MISSING+set}" != xset; then
  2599. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2600. fi
  2601. # Use eval to expand $SHELL
  2602. if eval "$MISSING --is-lightweight"; then
  2603. am_missing_run="$MISSING "
  2604. else
  2605. am_missing_run=
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2607. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2608. fi
  2609. if test x"${install_sh+set}" != xset; then
  2610. case $am_aux_dir in
  2611. *\ * | *\ *)
  2612. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2613. *)
  2614. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2615. esac
  2616. fi
  2617. # Installed binaries are usually stripped using 'strip' when the user
  2618. # run "make install-strip". However 'strip' might not be the right
  2619. # tool to use in cross-compilation environments, therefore Automake
  2620. # will honor the 'STRIP' environment variable to overrule this program.
  2621. if test "$cross_compiling" != no; then
  2622. if test -n "$ac_tool_prefix"; then
  2623. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2624. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2626. $as_echo_n "checking for $ac_word... " >&6; }
  2627. if ${ac_cv_prog_STRIP+:} false; then :
  2628. $as_echo_n "(cached) " >&6
  2629. else
  2630. if test -n "$STRIP"; then
  2631. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2632. else
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636. IFS=$as_save_IFS
  2637. test -z "$as_dir" && as_dir=.
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. fi
  2649. STRIP=$ac_cv_prog_STRIP
  2650. if test -n "$STRIP"; then
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2652. $as_echo "$STRIP" >&6; }
  2653. else
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. $as_echo "no" >&6; }
  2656. fi
  2657. fi
  2658. if test -z "$ac_cv_prog_STRIP"; then
  2659. ac_ct_STRIP=$STRIP
  2660. # Extract the first word of "strip", so it can be a program name with args.
  2661. set dummy strip; ac_word=$2
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2663. $as_echo_n "checking for $ac_word... " >&6; }
  2664. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2665. $as_echo_n "(cached) " >&6
  2666. else
  2667. if test -n "$ac_ct_STRIP"; then
  2668. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2669. else
  2670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2671. for as_dir in $PATH
  2672. do
  2673. IFS=$as_save_IFS
  2674. test -z "$as_dir" && as_dir=.
  2675. for ac_exec_ext in '' $ac_executable_extensions; do
  2676. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2677. ac_cv_prog_ac_ct_STRIP="strip"
  2678. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2679. break 2
  2680. fi
  2681. done
  2682. done
  2683. IFS=$as_save_IFS
  2684. fi
  2685. fi
  2686. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2687. if test -n "$ac_ct_STRIP"; then
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2689. $as_echo "$ac_ct_STRIP" >&6; }
  2690. else
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2692. $as_echo "no" >&6; }
  2693. fi
  2694. if test "x$ac_ct_STRIP" = x; then
  2695. STRIP=":"
  2696. else
  2697. case $cross_compiling:$ac_tool_warned in
  2698. yes:)
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2700. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2701. ac_tool_warned=yes ;;
  2702. esac
  2703. STRIP=$ac_ct_STRIP
  2704. fi
  2705. else
  2706. STRIP="$ac_cv_prog_STRIP"
  2707. fi
  2708. fi
  2709. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2711. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2712. if test -z "$MKDIR_P"; then
  2713. if ${ac_cv_path_mkdir+:} false; then :
  2714. $as_echo_n "(cached) " >&6
  2715. else
  2716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2717. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2718. do
  2719. IFS=$as_save_IFS
  2720. test -z "$as_dir" && as_dir=.
  2721. for ac_prog in mkdir gmkdir; do
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2724. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2725. 'mkdir (GNU coreutils) '* | \
  2726. 'mkdir (coreutils) '* | \
  2727. 'mkdir (fileutils) '4.1*)
  2728. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2729. break 3;;
  2730. esac
  2731. done
  2732. done
  2733. done
  2734. IFS=$as_save_IFS
  2735. fi
  2736. test -d ./--version && rmdir ./--version
  2737. if test "${ac_cv_path_mkdir+set}" = set; then
  2738. MKDIR_P="$ac_cv_path_mkdir -p"
  2739. else
  2740. # As a last resort, use the slow shell script. Don't cache a
  2741. # value for MKDIR_P within a source directory, because that will
  2742. # break other packages using the cache if that directory is
  2743. # removed, or if the value is a relative name.
  2744. MKDIR_P="$ac_install_sh -d"
  2745. fi
  2746. fi
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2748. $as_echo "$MKDIR_P" >&6; }
  2749. for ac_prog in gawk mawk nawk awk
  2750. do
  2751. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2752. set dummy $ac_prog; ac_word=$2
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2754. $as_echo_n "checking for $ac_word... " >&6; }
  2755. if ${ac_cv_prog_AWK+:} false; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. if test -n "$AWK"; then
  2759. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2760. else
  2761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2762. for as_dir in $PATH
  2763. do
  2764. IFS=$as_save_IFS
  2765. test -z "$as_dir" && as_dir=.
  2766. for ac_exec_ext in '' $ac_executable_extensions; do
  2767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2768. ac_cv_prog_AWK="$ac_prog"
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2770. break 2
  2771. fi
  2772. done
  2773. done
  2774. IFS=$as_save_IFS
  2775. fi
  2776. fi
  2777. AWK=$ac_cv_prog_AWK
  2778. if test -n "$AWK"; then
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2780. $as_echo "$AWK" >&6; }
  2781. else
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2783. $as_echo "no" >&6; }
  2784. fi
  2785. test -n "$AWK" && break
  2786. done
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2788. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2789. set x ${MAKE-make}
  2790. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2791. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. cat >conftest.make <<\_ACEOF
  2795. SHELL = /bin/sh
  2796. all:
  2797. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2798. _ACEOF
  2799. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2800. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2801. *@@@%%%=?*=@@@%%%*)
  2802. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2803. *)
  2804. eval ac_cv_prog_make_${ac_make}_set=no;;
  2805. esac
  2806. rm -f conftest.make
  2807. fi
  2808. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2810. $as_echo "yes" >&6; }
  2811. SET_MAKE=
  2812. else
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. SET_MAKE="MAKE=${MAKE-make}"
  2816. fi
  2817. rm -rf .tst 2>/dev/null
  2818. mkdir .tst 2>/dev/null
  2819. if test -d .tst; then
  2820. am__leading_dot=.
  2821. else
  2822. am__leading_dot=_
  2823. fi
  2824. rmdir .tst 2>/dev/null
  2825. # Check whether --enable-silent-rules was given.
  2826. if test "${enable_silent_rules+set}" = set; then :
  2827. enableval=$enable_silent_rules;
  2828. fi
  2829. case $enable_silent_rules in # (((
  2830. yes) AM_DEFAULT_VERBOSITY=0;;
  2831. no) AM_DEFAULT_VERBOSITY=1;;
  2832. *) AM_DEFAULT_VERBOSITY=1;;
  2833. esac
  2834. am_make=${MAKE-make}
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2836. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2837. if ${am_cv_make_support_nested_variables+:} false; then :
  2838. $as_echo_n "(cached) " >&6
  2839. else
  2840. if $as_echo 'TRUE=$(BAR$(V))
  2841. BAR0=false
  2842. BAR1=true
  2843. V=1
  2844. am__doit:
  2845. @$(TRUE)
  2846. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2847. am_cv_make_support_nested_variables=yes
  2848. else
  2849. am_cv_make_support_nested_variables=no
  2850. fi
  2851. fi
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2853. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2854. if test $am_cv_make_support_nested_variables = yes; then
  2855. AM_V='$(V)'
  2856. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2857. else
  2858. AM_V=$AM_DEFAULT_VERBOSITY
  2859. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2860. fi
  2861. AM_BACKSLASH='\'
  2862. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2863. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2864. # is not polluted with repeated "-I."
  2865. am__isrc=' -I$(srcdir)'
  2866. # test to see if srcdir already configured
  2867. if test -f $srcdir/config.status; then
  2868. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2869. fi
  2870. fi
  2871. # test whether we have cygpath
  2872. if test -z "$CYGPATH_W"; then
  2873. if (cygpath --version) >/dev/null 2>/dev/null; then
  2874. CYGPATH_W='cygpath -w'
  2875. else
  2876. CYGPATH_W=echo
  2877. fi
  2878. fi
  2879. # Define the identity of the package.
  2880. PACKAGE='Linux-PAM'
  2881. VERSION='1.5.2'
  2882. cat >>confdefs.h <<_ACEOF
  2883. #define PACKAGE "$PACKAGE"
  2884. _ACEOF
  2885. cat >>confdefs.h <<_ACEOF
  2886. #define VERSION "$VERSION"
  2887. _ACEOF
  2888. # Some tools Automake needs.
  2889. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2890. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2891. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2892. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2893. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2894. # For better backward compatibility. To be removed once Automake 1.9.x
  2895. # dies out for good. For more background, see:
  2896. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2897. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2898. mkdir_p='$(MKDIR_P)'
  2899. # We need awk for the "check" target (and possibly the TAP driver). The
  2900. # system "awk" is bad on some platforms.
  2901. # Always define AMTAR for backward compatibility. Yes, it's still used
  2902. # in the wild :-( We should find a proper way to deprecate it ...
  2903. AMTAR='$${TAR-tar}'
  2904. # We'll loop over all known methods to create a tar archive until one works.
  2905. _am_tools='gnutar pax cpio none'
  2906. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2907. # POSIX will say in a future version that running "rm -f" with no argument
  2908. # is OK; and we want to be able to make that assumption in our Makefile
  2909. # recipes. So use an aggressive probe to check that the usage we want is
  2910. # actually supported "in the wild" to an acceptable degree.
  2911. # See automake bug#10828.
  2912. # To make any issue more visible, cause the running configure to be aborted
  2913. # by default if the 'rm' program in use doesn't match our expectations; the
  2914. # user can still override this though.
  2915. if rm -f && rm -fr && rm -rf; then : OK; else
  2916. cat >&2 <<'END'
  2917. Oops!
  2918. Your 'rm' program seems unable to run without file operands specified
  2919. on the command line, even when the '-f' option is present. This is contrary
  2920. to the behaviour of most rm programs out there, and not conforming with
  2921. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2922. Please tell bug-automake@gnu.org about your system, including the value
  2923. of your $PATH and any error possibly output before this message. This
  2924. can help us improve future automake versions.
  2925. END
  2926. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2927. echo 'Configuration will proceed anyway, since you have set the' >&2
  2928. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2929. echo >&2
  2930. else
  2931. cat >&2 <<'END'
  2932. Aborting the configuration process, to ensure you take notice of the issue.
  2933. You can download and install GNU coreutils to get an 'rm' implementation
  2934. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2935. If you want to complete the configuration process using your problematic
  2936. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2937. to "yes", and re-run configure.
  2938. END
  2939. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2940. fi
  2941. fi
  2942. ac_config_headers="$ac_config_headers config.h"
  2943. # Make sure we can run config.sub.
  2944. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2945. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2947. $as_echo_n "checking build system type... " >&6; }
  2948. if ${ac_cv_build+:} false; then :
  2949. $as_echo_n "(cached) " >&6
  2950. else
  2951. ac_build_alias=$build_alias
  2952. test "x$ac_build_alias" = x &&
  2953. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2954. test "x$ac_build_alias" = x &&
  2955. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2956. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2957. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2958. fi
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2960. $as_echo "$ac_cv_build" >&6; }
  2961. case $ac_cv_build in
  2962. *-*-*) ;;
  2963. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2964. esac
  2965. build=$ac_cv_build
  2966. ac_save_IFS=$IFS; IFS='-'
  2967. set x $ac_cv_build
  2968. shift
  2969. build_cpu=$1
  2970. build_vendor=$2
  2971. shift; shift
  2972. # Remember, the first character of IFS is used to create $*,
  2973. # except with old shells:
  2974. build_os=$*
  2975. IFS=$ac_save_IFS
  2976. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2978. $as_echo_n "checking host system type... " >&6; }
  2979. if ${ac_cv_host+:} false; then :
  2980. $as_echo_n "(cached) " >&6
  2981. else
  2982. if test "x$host_alias" = x; then
  2983. ac_cv_host=$ac_cv_build
  2984. else
  2985. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2986. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2987. fi
  2988. fi
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2990. $as_echo "$ac_cv_host" >&6; }
  2991. case $ac_cv_host in
  2992. *-*-*) ;;
  2993. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2994. esac
  2995. host=$ac_cv_host
  2996. ac_save_IFS=$IFS; IFS='-'
  2997. set x $ac_cv_host
  2998. shift
  2999. host_cpu=$1
  3000. host_vendor=$2
  3001. shift; shift
  3002. # Remember, the first character of IFS is used to create $*,
  3003. # except with old shells:
  3004. host_os=$*
  3005. IFS=$ac_save_IFS
  3006. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3007. test "${prefix}" = "NONE" && prefix="/usr"
  3008. if test ${prefix} = '/usr'
  3009. then
  3010. if test ${sysconfdir} = '${prefix}/etc'
  3011. then
  3012. sysconfdir="/etc"
  3013. fi
  3014. if test ${libdir} = '${exec_prefix}/lib'
  3015. then
  3016. case "$host_cpu" in
  3017. x86_64|ppc64|s390x|sparc64)
  3018. libdir="/lib64" ;;
  3019. *)
  3020. libdir="/lib" ;;
  3021. esac
  3022. fi
  3023. if test ${sbindir} = '${exec_prefix}/sbin'
  3024. then
  3025. sbindir="/sbin"
  3026. fi
  3027. if test ${mandir} = '${prefix}/man'
  3028. then
  3029. mandir='${prefix}/share/man'
  3030. fi
  3031. if test ${includedir} = '${prefix}/include'
  3032. then
  3033. includedir="${prefix}/include/security"
  3034. fi
  3035. if test ${localstatedir} = '${prefix}/var'
  3036. then
  3037. localstatedir="/var"
  3038. fi
  3039. fi
  3040. DEPDIR="${am__leading_dot}deps"
  3041. ac_config_commands="$ac_config_commands depfiles"
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3043. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3044. cat > confinc.mk << 'END'
  3045. am__doit:
  3046. @echo this is the am__doit target >confinc.out
  3047. .PHONY: am__doit
  3048. END
  3049. am__include="#"
  3050. am__quote=
  3051. # BSD make does it like this.
  3052. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3053. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3054. echo 'include confinc.mk # ignored' > confmf.GNU
  3055. _am_result=no
  3056. for s in GNU BSD; do
  3057. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3058. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3059. ac_status=$?
  3060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3061. (exit $ac_status); }
  3062. case $?:`cat confinc.out 2>/dev/null` in #(
  3063. '0:this is the am__doit target') :
  3064. case $s in #(
  3065. BSD) :
  3066. am__include='.include' am__quote='"' ;; #(
  3067. *) :
  3068. am__include='include' am__quote='' ;;
  3069. esac ;; #(
  3070. *) :
  3071. ;;
  3072. esac
  3073. if test "$am__include" != "#"; then
  3074. _am_result="yes ($s style)"
  3075. break
  3076. fi
  3077. done
  3078. rm -f confinc.* confmf.*
  3079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3080. $as_echo "${_am_result}" >&6; }
  3081. # Check whether --enable-dependency-tracking was given.
  3082. if test "${enable_dependency_tracking+set}" = set; then :
  3083. enableval=$enable_dependency_tracking;
  3084. fi
  3085. if test "x$enable_dependency_tracking" != xno; then
  3086. am_depcomp="$ac_aux_dir/depcomp"
  3087. AMDEPBACKSLASH='\'
  3088. am__nodep='_no'
  3089. fi
  3090. if test "x$enable_dependency_tracking" != xno; then
  3091. AMDEP_TRUE=
  3092. AMDEP_FALSE='#'
  3093. else
  3094. AMDEP_TRUE='#'
  3095. AMDEP_FALSE=
  3096. fi
  3097. ac_ext=c
  3098. ac_cpp='$CPP $CPPFLAGS'
  3099. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3100. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3101. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3102. if test -n "$ac_tool_prefix"; then
  3103. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3104. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3106. $as_echo_n "checking for $ac_word... " >&6; }
  3107. if ${ac_cv_prog_CC+:} false; then :
  3108. $as_echo_n "(cached) " >&6
  3109. else
  3110. if test -n "$CC"; then
  3111. ac_cv_prog_CC="$CC" # Let the user override the test.
  3112. else
  3113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3114. for as_dir in $PATH
  3115. do
  3116. IFS=$as_save_IFS
  3117. test -z "$as_dir" && as_dir=.
  3118. for ac_exec_ext in '' $ac_executable_extensions; do
  3119. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3120. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3121. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3122. break 2
  3123. fi
  3124. done
  3125. done
  3126. IFS=$as_save_IFS
  3127. fi
  3128. fi
  3129. CC=$ac_cv_prog_CC
  3130. if test -n "$CC"; then
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3132. $as_echo "$CC" >&6; }
  3133. else
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3135. $as_echo "no" >&6; }
  3136. fi
  3137. fi
  3138. if test -z "$ac_cv_prog_CC"; then
  3139. ac_ct_CC=$CC
  3140. # Extract the first word of "gcc", so it can be a program name with args.
  3141. set dummy gcc; ac_word=$2
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3143. $as_echo_n "checking for $ac_word... " >&6; }
  3144. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3145. $as_echo_n "(cached) " >&6
  3146. else
  3147. if test -n "$ac_ct_CC"; then
  3148. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3149. else
  3150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3151. for as_dir in $PATH
  3152. do
  3153. IFS=$as_save_IFS
  3154. test -z "$as_dir" && as_dir=.
  3155. for ac_exec_ext in '' $ac_executable_extensions; do
  3156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3157. ac_cv_prog_ac_ct_CC="gcc"
  3158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3159. break 2
  3160. fi
  3161. done
  3162. done
  3163. IFS=$as_save_IFS
  3164. fi
  3165. fi
  3166. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3167. if test -n "$ac_ct_CC"; then
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3169. $as_echo "$ac_ct_CC" >&6; }
  3170. else
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3172. $as_echo "no" >&6; }
  3173. fi
  3174. if test "x$ac_ct_CC" = x; then
  3175. CC=""
  3176. else
  3177. case $cross_compiling:$ac_tool_warned in
  3178. yes:)
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3180. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3181. ac_tool_warned=yes ;;
  3182. esac
  3183. CC=$ac_ct_CC
  3184. fi
  3185. else
  3186. CC="$ac_cv_prog_CC"
  3187. fi
  3188. if test -z "$CC"; then
  3189. if test -n "$ac_tool_prefix"; then
  3190. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3191. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3193. $as_echo_n "checking for $ac_word... " >&6; }
  3194. if ${ac_cv_prog_CC+:} false; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. if test -n "$CC"; then
  3198. ac_cv_prog_CC="$CC" # Let the user override the test.
  3199. else
  3200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3201. for as_dir in $PATH
  3202. do
  3203. IFS=$as_save_IFS
  3204. test -z "$as_dir" && as_dir=.
  3205. for ac_exec_ext in '' $ac_executable_extensions; do
  3206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3207. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3209. break 2
  3210. fi
  3211. done
  3212. done
  3213. IFS=$as_save_IFS
  3214. fi
  3215. fi
  3216. CC=$ac_cv_prog_CC
  3217. if test -n "$CC"; then
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3219. $as_echo "$CC" >&6; }
  3220. else
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3222. $as_echo "no" >&6; }
  3223. fi
  3224. fi
  3225. fi
  3226. if test -z "$CC"; then
  3227. # Extract the first word of "cc", so it can be a program name with args.
  3228. set dummy cc; ac_word=$2
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3230. $as_echo_n "checking for $ac_word... " >&6; }
  3231. if ${ac_cv_prog_CC+:} false; then :
  3232. $as_echo_n "(cached) " >&6
  3233. else
  3234. if test -n "$CC"; then
  3235. ac_cv_prog_CC="$CC" # Let the user override the test.
  3236. else
  3237. ac_prog_rejected=no
  3238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3239. for as_dir in $PATH
  3240. do
  3241. IFS=$as_save_IFS
  3242. test -z "$as_dir" && as_dir=.
  3243. for ac_exec_ext in '' $ac_executable_extensions; do
  3244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3245. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3246. ac_prog_rejected=yes
  3247. continue
  3248. fi
  3249. ac_cv_prog_CC="cc"
  3250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3251. break 2
  3252. fi
  3253. done
  3254. done
  3255. IFS=$as_save_IFS
  3256. if test $ac_prog_rejected = yes; then
  3257. # We found a bogon in the path, so make sure we never use it.
  3258. set dummy $ac_cv_prog_CC
  3259. shift
  3260. if test $# != 0; then
  3261. # We chose a different compiler from the bogus one.
  3262. # However, it has the same basename, so the bogon will be chosen
  3263. # first if we set CC to just the basename; use the full file name.
  3264. shift
  3265. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3266. fi
  3267. fi
  3268. fi
  3269. fi
  3270. CC=$ac_cv_prog_CC
  3271. if test -n "$CC"; then
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3273. $as_echo "$CC" >&6; }
  3274. else
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3276. $as_echo "no" >&6; }
  3277. fi
  3278. fi
  3279. if test -z "$CC"; then
  3280. if test -n "$ac_tool_prefix"; then
  3281. for ac_prog in cl.exe
  3282. do
  3283. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3284. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3286. $as_echo_n "checking for $ac_word... " >&6; }
  3287. if ${ac_cv_prog_CC+:} false; then :
  3288. $as_echo_n "(cached) " >&6
  3289. else
  3290. if test -n "$CC"; then
  3291. ac_cv_prog_CC="$CC" # Let the user override the test.
  3292. else
  3293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3294. for as_dir in $PATH
  3295. do
  3296. IFS=$as_save_IFS
  3297. test -z "$as_dir" && as_dir=.
  3298. for ac_exec_ext in '' $ac_executable_extensions; do
  3299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3300. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3302. break 2
  3303. fi
  3304. done
  3305. done
  3306. IFS=$as_save_IFS
  3307. fi
  3308. fi
  3309. CC=$ac_cv_prog_CC
  3310. if test -n "$CC"; then
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3312. $as_echo "$CC" >&6; }
  3313. else
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3315. $as_echo "no" >&6; }
  3316. fi
  3317. test -n "$CC" && break
  3318. done
  3319. fi
  3320. if test -z "$CC"; then
  3321. ac_ct_CC=$CC
  3322. for ac_prog in cl.exe
  3323. do
  3324. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3325. set dummy $ac_prog; ac_word=$2
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3327. $as_echo_n "checking for $ac_word... " >&6; }
  3328. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3329. $as_echo_n "(cached) " >&6
  3330. else
  3331. if test -n "$ac_ct_CC"; then
  3332. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3333. else
  3334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3335. for as_dir in $PATH
  3336. do
  3337. IFS=$as_save_IFS
  3338. test -z "$as_dir" && as_dir=.
  3339. for ac_exec_ext in '' $ac_executable_extensions; do
  3340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3341. ac_cv_prog_ac_ct_CC="$ac_prog"
  3342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3343. break 2
  3344. fi
  3345. done
  3346. done
  3347. IFS=$as_save_IFS
  3348. fi
  3349. fi
  3350. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3351. if test -n "$ac_ct_CC"; then
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3353. $as_echo "$ac_ct_CC" >&6; }
  3354. else
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3356. $as_echo "no" >&6; }
  3357. fi
  3358. test -n "$ac_ct_CC" && break
  3359. done
  3360. if test "x$ac_ct_CC" = x; then
  3361. CC=""
  3362. else
  3363. case $cross_compiling:$ac_tool_warned in
  3364. yes:)
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3367. ac_tool_warned=yes ;;
  3368. esac
  3369. CC=$ac_ct_CC
  3370. fi
  3371. fi
  3372. fi
  3373. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3374. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3375. as_fn_error $? "no acceptable C compiler found in \$PATH
  3376. See \`config.log' for more details" "$LINENO" 5; }
  3377. # Provide some information about the compiler.
  3378. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3379. set X $ac_compile
  3380. ac_compiler=$2
  3381. for ac_option in --version -v -V -qversion; do
  3382. { { ac_try="$ac_compiler $ac_option >&5"
  3383. case "(($ac_try" in
  3384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3385. *) ac_try_echo=$ac_try;;
  3386. esac
  3387. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3388. $as_echo "$ac_try_echo"; } >&5
  3389. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3390. ac_status=$?
  3391. if test -s conftest.err; then
  3392. sed '10a\
  3393. ... rest of stderr output deleted ...
  3394. 10q' conftest.err >conftest.er1
  3395. cat conftest.er1 >&5
  3396. fi
  3397. rm -f conftest.er1 conftest.err
  3398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3399. test $ac_status = 0; }
  3400. done
  3401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3402. /* end confdefs.h. */
  3403. int
  3404. main ()
  3405. {
  3406. ;
  3407. return 0;
  3408. }
  3409. _ACEOF
  3410. ac_clean_files_save=$ac_clean_files
  3411. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3412. # Try to create an executable without -o first, disregard a.out.
  3413. # It will help us diagnose broken compilers, and finding out an intuition
  3414. # of exeext.
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3416. $as_echo_n "checking whether the C compiler works... " >&6; }
  3417. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3418. # The possible output files:
  3419. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3420. ac_rmfiles=
  3421. for ac_file in $ac_files
  3422. do
  3423. case $ac_file in
  3424. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3425. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3426. esac
  3427. done
  3428. rm -f $ac_rmfiles
  3429. if { { ac_try="$ac_link_default"
  3430. case "(($ac_try" in
  3431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3432. *) ac_try_echo=$ac_try;;
  3433. esac
  3434. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3435. $as_echo "$ac_try_echo"; } >&5
  3436. (eval "$ac_link_default") 2>&5
  3437. ac_status=$?
  3438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3439. test $ac_status = 0; }; then :
  3440. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3441. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3442. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3443. # so that the user can short-circuit this test for compilers unknown to
  3444. # Autoconf.
  3445. for ac_file in $ac_files ''
  3446. do
  3447. test -f "$ac_file" || continue
  3448. case $ac_file in
  3449. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3450. ;;
  3451. [ab].out )
  3452. # We found the default executable, but exeext='' is most
  3453. # certainly right.
  3454. break;;
  3455. *.* )
  3456. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3457. then :; else
  3458. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3459. fi
  3460. # We set ac_cv_exeext here because the later test for it is not
  3461. # safe: cross compilers may not add the suffix if given an `-o'
  3462. # argument, so we may need to know it at that point already.
  3463. # Even if this section looks crufty: it has the advantage of
  3464. # actually working.
  3465. break;;
  3466. * )
  3467. break;;
  3468. esac
  3469. done
  3470. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3471. else
  3472. ac_file=''
  3473. fi
  3474. if test -z "$ac_file"; then :
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3476. $as_echo "no" >&6; }
  3477. $as_echo "$as_me: failed program was:" >&5
  3478. sed 's/^/| /' conftest.$ac_ext >&5
  3479. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3480. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3481. as_fn_error 77 "C compiler cannot create executables
  3482. See \`config.log' for more details" "$LINENO" 5; }
  3483. else
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3485. $as_echo "yes" >&6; }
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3488. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3490. $as_echo "$ac_file" >&6; }
  3491. ac_exeext=$ac_cv_exeext
  3492. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3493. ac_clean_files=$ac_clean_files_save
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3495. $as_echo_n "checking for suffix of executables... " >&6; }
  3496. if { { ac_try="$ac_link"
  3497. case "(($ac_try" in
  3498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3499. *) ac_try_echo=$ac_try;;
  3500. esac
  3501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3502. $as_echo "$ac_try_echo"; } >&5
  3503. (eval "$ac_link") 2>&5
  3504. ac_status=$?
  3505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3506. test $ac_status = 0; }; then :
  3507. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3508. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3509. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3510. # `rm'.
  3511. for ac_file in conftest.exe conftest conftest.*; do
  3512. test -f "$ac_file" || continue
  3513. case $ac_file in
  3514. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3515. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3516. break;;
  3517. * ) break;;
  3518. esac
  3519. done
  3520. else
  3521. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3522. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3523. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3524. See \`config.log' for more details" "$LINENO" 5; }
  3525. fi
  3526. rm -f conftest conftest$ac_cv_exeext
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3528. $as_echo "$ac_cv_exeext" >&6; }
  3529. rm -f conftest.$ac_ext
  3530. EXEEXT=$ac_cv_exeext
  3531. ac_exeext=$EXEEXT
  3532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3533. /* end confdefs.h. */
  3534. #include <stdio.h>
  3535. int
  3536. main ()
  3537. {
  3538. FILE *f = fopen ("conftest.out", "w");
  3539. return ferror (f) || fclose (f) != 0;
  3540. ;
  3541. return 0;
  3542. }
  3543. _ACEOF
  3544. ac_clean_files="$ac_clean_files conftest.out"
  3545. # Check that the compiler produces executables we can run. If not, either
  3546. # the compiler is broken, or we cross compile.
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3548. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3549. if test "$cross_compiling" != yes; then
  3550. { { ac_try="$ac_link"
  3551. case "(($ac_try" in
  3552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3553. *) ac_try_echo=$ac_try;;
  3554. esac
  3555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3556. $as_echo "$ac_try_echo"; } >&5
  3557. (eval "$ac_link") 2>&5
  3558. ac_status=$?
  3559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3560. test $ac_status = 0; }
  3561. if { ac_try='./conftest$ac_cv_exeext'
  3562. { { case "(($ac_try" in
  3563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3564. *) ac_try_echo=$ac_try;;
  3565. esac
  3566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3567. $as_echo "$ac_try_echo"; } >&5
  3568. (eval "$ac_try") 2>&5
  3569. ac_status=$?
  3570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3571. test $ac_status = 0; }; }; then
  3572. cross_compiling=no
  3573. else
  3574. if test "$cross_compiling" = maybe; then
  3575. cross_compiling=yes
  3576. else
  3577. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3579. as_fn_error $? "cannot run C compiled programs.
  3580. If you meant to cross compile, use \`--host'.
  3581. See \`config.log' for more details" "$LINENO" 5; }
  3582. fi
  3583. fi
  3584. fi
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3586. $as_echo "$cross_compiling" >&6; }
  3587. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3588. ac_clean_files=$ac_clean_files_save
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3590. $as_echo_n "checking for suffix of object files... " >&6; }
  3591. if ${ac_cv_objext+:} false; then :
  3592. $as_echo_n "(cached) " >&6
  3593. else
  3594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3595. /* end confdefs.h. */
  3596. int
  3597. main ()
  3598. {
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. rm -f conftest.o conftest.obj
  3604. if { { ac_try="$ac_compile"
  3605. case "(($ac_try" in
  3606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3607. *) ac_try_echo=$ac_try;;
  3608. esac
  3609. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3610. $as_echo "$ac_try_echo"; } >&5
  3611. (eval "$ac_compile") 2>&5
  3612. ac_status=$?
  3613. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3614. test $ac_status = 0; }; then :
  3615. for ac_file in conftest.o conftest.obj conftest.*; do
  3616. test -f "$ac_file" || continue;
  3617. case $ac_file in
  3618. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3619. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3620. break;;
  3621. esac
  3622. done
  3623. else
  3624. $as_echo "$as_me: failed program was:" >&5
  3625. sed 's/^/| /' conftest.$ac_ext >&5
  3626. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3627. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3628. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3629. See \`config.log' for more details" "$LINENO" 5; }
  3630. fi
  3631. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3632. fi
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3634. $as_echo "$ac_cv_objext" >&6; }
  3635. OBJEXT=$ac_cv_objext
  3636. ac_objext=$OBJEXT
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3638. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3639. if ${ac_cv_c_compiler_gnu+:} false; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3643. /* end confdefs.h. */
  3644. int
  3645. main ()
  3646. {
  3647. #ifndef __GNUC__
  3648. choke me
  3649. #endif
  3650. ;
  3651. return 0;
  3652. }
  3653. _ACEOF
  3654. if ac_fn_c_try_compile "$LINENO"; then :
  3655. ac_compiler_gnu=yes
  3656. else
  3657. ac_compiler_gnu=no
  3658. fi
  3659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3660. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3661. fi
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3663. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3664. if test $ac_compiler_gnu = yes; then
  3665. GCC=yes
  3666. else
  3667. GCC=
  3668. fi
  3669. ac_test_CFLAGS=${CFLAGS+set}
  3670. ac_save_CFLAGS=$CFLAGS
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3672. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3673. if ${ac_cv_prog_cc_g+:} false; then :
  3674. $as_echo_n "(cached) " >&6
  3675. else
  3676. ac_save_c_werror_flag=$ac_c_werror_flag
  3677. ac_c_werror_flag=yes
  3678. ac_cv_prog_cc_g=no
  3679. CFLAGS="-g"
  3680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3681. /* end confdefs.h. */
  3682. int
  3683. main ()
  3684. {
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. if ac_fn_c_try_compile "$LINENO"; then :
  3690. ac_cv_prog_cc_g=yes
  3691. else
  3692. CFLAGS=""
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. int
  3696. main ()
  3697. {
  3698. ;
  3699. return 0;
  3700. }
  3701. _ACEOF
  3702. if ac_fn_c_try_compile "$LINENO"; then :
  3703. else
  3704. ac_c_werror_flag=$ac_save_c_werror_flag
  3705. CFLAGS="-g"
  3706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3707. /* end confdefs.h. */
  3708. int
  3709. main ()
  3710. {
  3711. ;
  3712. return 0;
  3713. }
  3714. _ACEOF
  3715. if ac_fn_c_try_compile "$LINENO"; then :
  3716. ac_cv_prog_cc_g=yes
  3717. fi
  3718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3719. fi
  3720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3721. fi
  3722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3723. ac_c_werror_flag=$ac_save_c_werror_flag
  3724. fi
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3726. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3727. if test "$ac_test_CFLAGS" = set; then
  3728. CFLAGS=$ac_save_CFLAGS
  3729. elif test $ac_cv_prog_cc_g = yes; then
  3730. if test "$GCC" = yes; then
  3731. CFLAGS="-g -O2"
  3732. else
  3733. CFLAGS="-g"
  3734. fi
  3735. else
  3736. if test "$GCC" = yes; then
  3737. CFLAGS="-O2"
  3738. else
  3739. CFLAGS=
  3740. fi
  3741. fi
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3743. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3744. if ${ac_cv_prog_cc_c89+:} false; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. ac_cv_prog_cc_c89=no
  3748. ac_save_CC=$CC
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. #include <stdarg.h>
  3752. #include <stdio.h>
  3753. struct stat;
  3754. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3755. struct buf { int x; };
  3756. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3757. static char *e (p, i)
  3758. char **p;
  3759. int i;
  3760. {
  3761. return p[i];
  3762. }
  3763. static char *f (char * (*g) (char **, int), char **p, ...)
  3764. {
  3765. char *s;
  3766. va_list v;
  3767. va_start (v,p);
  3768. s = g (p, va_arg (v,int));
  3769. va_end (v);
  3770. return s;
  3771. }
  3772. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3773. function prototypes and stuff, but not '\xHH' hex character constants.
  3774. These don't provoke an error unfortunately, instead are silently treated
  3775. as 'x'. The following induces an error, until -std is added to get
  3776. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3777. array size at least. It's necessary to write '\x00'==0 to get something
  3778. that's true only with -std. */
  3779. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3780. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3781. inside strings and character constants. */
  3782. #define FOO(x) 'x'
  3783. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3784. int test (int i, double x);
  3785. struct s1 {int (*f) (int a);};
  3786. struct s2 {int (*f) (double a);};
  3787. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3788. int argc;
  3789. char **argv;
  3790. int
  3791. main ()
  3792. {
  3793. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3794. ;
  3795. return 0;
  3796. }
  3797. _ACEOF
  3798. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3799. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3800. do
  3801. CC="$ac_save_CC $ac_arg"
  3802. if ac_fn_c_try_compile "$LINENO"; then :
  3803. ac_cv_prog_cc_c89=$ac_arg
  3804. fi
  3805. rm -f core conftest.err conftest.$ac_objext
  3806. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3807. done
  3808. rm -f conftest.$ac_ext
  3809. CC=$ac_save_CC
  3810. fi
  3811. # AC_CACHE_VAL
  3812. case "x$ac_cv_prog_cc_c89" in
  3813. x)
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3815. $as_echo "none needed" >&6; } ;;
  3816. xno)
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3818. $as_echo "unsupported" >&6; } ;;
  3819. *)
  3820. CC="$CC $ac_cv_prog_cc_c89"
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3822. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3823. esac
  3824. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3825. fi
  3826. ac_ext=c
  3827. ac_cpp='$CPP $CPPFLAGS'
  3828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3831. ac_ext=c
  3832. ac_cpp='$CPP $CPPFLAGS'
  3833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3837. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3838. if ${am_cv_prog_cc_c_o+:} false; then :
  3839. $as_echo_n "(cached) " >&6
  3840. else
  3841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3842. /* end confdefs.h. */
  3843. int
  3844. main ()
  3845. {
  3846. ;
  3847. return 0;
  3848. }
  3849. _ACEOF
  3850. # Make sure it works both with $CC and with simple cc.
  3851. # Following AC_PROG_CC_C_O, we do the test twice because some
  3852. # compilers refuse to overwrite an existing .o file with -o,
  3853. # though they will create one.
  3854. am_cv_prog_cc_c_o=yes
  3855. for am_i in 1 2; do
  3856. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3857. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3858. ac_status=$?
  3859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3860. (exit $ac_status); } \
  3861. && test -f conftest2.$ac_objext; then
  3862. : OK
  3863. else
  3864. am_cv_prog_cc_c_o=no
  3865. break
  3866. fi
  3867. done
  3868. rm -f core conftest*
  3869. unset am_i
  3870. fi
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3872. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3873. if test "$am_cv_prog_cc_c_o" != yes; then
  3874. # Losing compiler, so override with the script.
  3875. # FIXME: It is wrong to rewrite CC.
  3876. # But if we don't then we get into trouble of one sort or another.
  3877. # A longer-term fix would be to have automake use am__CC in this case,
  3878. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3879. CC="$am_aux_dir/compile $CC"
  3880. fi
  3881. ac_ext=c
  3882. ac_cpp='$CPP $CPPFLAGS'
  3883. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3884. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3885. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3886. depcc="$CC" am_compiler_list=
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3888. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3889. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3890. $as_echo_n "(cached) " >&6
  3891. else
  3892. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3893. # We make a subdir and do the tests there. Otherwise we can end up
  3894. # making bogus files that we don't know about and never remove. For
  3895. # instance it was reported that on HP-UX the gcc test will end up
  3896. # making a dummy file named 'D' -- because '-MD' means "put the output
  3897. # in D".
  3898. rm -rf conftest.dir
  3899. mkdir conftest.dir
  3900. # Copy depcomp to subdir because otherwise we won't find it if we're
  3901. # using a relative directory.
  3902. cp "$am_depcomp" conftest.dir
  3903. cd conftest.dir
  3904. # We will build objects and dependencies in a subdirectory because
  3905. # it helps to detect inapplicable dependency modes. For instance
  3906. # both Tru64's cc and ICC support -MD to output dependencies as a
  3907. # side effect of compilation, but ICC will put the dependencies in
  3908. # the current directory while Tru64 will put them in the object
  3909. # directory.
  3910. mkdir sub
  3911. am_cv_CC_dependencies_compiler_type=none
  3912. if test "$am_compiler_list" = ""; then
  3913. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3914. fi
  3915. am__universal=false
  3916. case " $depcc " in #(
  3917. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3918. esac
  3919. for depmode in $am_compiler_list; do
  3920. # Setup a source with many dependencies, because some compilers
  3921. # like to wrap large dependency lists on column 80 (with \), and
  3922. # we should not choose a depcomp mode which is confused by this.
  3923. #
  3924. # We need to recreate these files for each test, as the compiler may
  3925. # overwrite some of them when testing with obscure command lines.
  3926. # This happens at least with the AIX C compiler.
  3927. : > sub/conftest.c
  3928. for i in 1 2 3 4 5 6; do
  3929. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3930. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3931. # Solaris 10 /bin/sh.
  3932. echo '/* dummy */' > sub/conftst$i.h
  3933. done
  3934. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3935. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3936. # mode. It turns out that the SunPro C++ compiler does not properly
  3937. # handle '-M -o', and we need to detect this. Also, some Intel
  3938. # versions had trouble with output in subdirs.
  3939. am__obj=sub/conftest.${OBJEXT-o}
  3940. am__minus_obj="-o $am__obj"
  3941. case $depmode in
  3942. gcc)
  3943. # This depmode causes a compiler race in universal mode.
  3944. test "$am__universal" = false || continue
  3945. ;;
  3946. nosideeffect)
  3947. # After this tag, mechanisms are not by side-effect, so they'll
  3948. # only be used when explicitly requested.
  3949. if test "x$enable_dependency_tracking" = xyes; then
  3950. continue
  3951. else
  3952. break
  3953. fi
  3954. ;;
  3955. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3956. # This compiler won't grok '-c -o', but also, the minuso test has
  3957. # not run yet. These depmodes are late enough in the game, and
  3958. # so weak that their functioning should not be impacted.
  3959. am__obj=conftest.${OBJEXT-o}
  3960. am__minus_obj=
  3961. ;;
  3962. none) break ;;
  3963. esac
  3964. if depmode=$depmode \
  3965. source=sub/conftest.c object=$am__obj \
  3966. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3967. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3968. >/dev/null 2>conftest.err &&
  3969. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3970. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3971. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3972. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3973. # icc doesn't choke on unknown options, it will just issue warnings
  3974. # or remarks (even with -Werror). So we grep stderr for any message
  3975. # that says an option was ignored or not supported.
  3976. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3977. # icc: Command line warning: ignoring option '-M'; no argument required
  3978. # The diagnosis changed in icc 8.0:
  3979. # icc: Command line remark: option '-MP' not supported
  3980. if (grep 'ignoring option' conftest.err ||
  3981. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3982. am_cv_CC_dependencies_compiler_type=$depmode
  3983. break
  3984. fi
  3985. fi
  3986. done
  3987. cd ..
  3988. rm -rf conftest.dir
  3989. else
  3990. am_cv_CC_dependencies_compiler_type=none
  3991. fi
  3992. fi
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3994. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3995. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3996. if
  3997. test "x$enable_dependency_tracking" != xno \
  3998. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3999. am__fastdepCC_TRUE=
  4000. am__fastdepCC_FALSE='#'
  4001. else
  4002. am__fastdepCC_TRUE='#'
  4003. am__fastdepCC_FALSE=
  4004. fi
  4005. ac_ext=c
  4006. ac_cpp='$CPP $CPPFLAGS'
  4007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4011. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4012. # On Suns, sometimes $CPP names a directory.
  4013. if test -n "$CPP" && test -d "$CPP"; then
  4014. CPP=
  4015. fi
  4016. if test -z "$CPP"; then
  4017. if ${ac_cv_prog_CPP+:} false; then :
  4018. $as_echo_n "(cached) " >&6
  4019. else
  4020. # Double quotes because CPP needs to be expanded
  4021. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4022. do
  4023. ac_preproc_ok=false
  4024. for ac_c_preproc_warn_flag in '' yes
  4025. do
  4026. # Use a header file that comes with gcc, so configuring glibc
  4027. # with a fresh cross-compiler works.
  4028. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4029. # <limits.h> exists even on freestanding compilers.
  4030. # On the NeXT, cc -E runs the code through the compiler's parser,
  4031. # not just through cpp. "Syntax error" is here to catch this case.
  4032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4033. /* end confdefs.h. */
  4034. #ifdef __STDC__
  4035. # include <limits.h>
  4036. #else
  4037. # include <assert.h>
  4038. #endif
  4039. Syntax error
  4040. _ACEOF
  4041. if ac_fn_c_try_cpp "$LINENO"; then :
  4042. else
  4043. # Broken: fails on valid input.
  4044. continue
  4045. fi
  4046. rm -f conftest.err conftest.i conftest.$ac_ext
  4047. # OK, works on sane cases. Now check whether nonexistent headers
  4048. # can be detected and how.
  4049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4050. /* end confdefs.h. */
  4051. #include <ac_nonexistent.h>
  4052. _ACEOF
  4053. if ac_fn_c_try_cpp "$LINENO"; then :
  4054. # Broken: success on invalid input.
  4055. continue
  4056. else
  4057. # Passes both tests.
  4058. ac_preproc_ok=:
  4059. break
  4060. fi
  4061. rm -f conftest.err conftest.i conftest.$ac_ext
  4062. done
  4063. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4064. rm -f conftest.i conftest.err conftest.$ac_ext
  4065. if $ac_preproc_ok; then :
  4066. break
  4067. fi
  4068. done
  4069. ac_cv_prog_CPP=$CPP
  4070. fi
  4071. CPP=$ac_cv_prog_CPP
  4072. else
  4073. ac_cv_prog_CPP=$CPP
  4074. fi
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4076. $as_echo "$CPP" >&6; }
  4077. ac_preproc_ok=false
  4078. for ac_c_preproc_warn_flag in '' yes
  4079. do
  4080. # Use a header file that comes with gcc, so configuring glibc
  4081. # with a fresh cross-compiler works.
  4082. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4083. # <limits.h> exists even on freestanding compilers.
  4084. # On the NeXT, cc -E runs the code through the compiler's parser,
  4085. # not just through cpp. "Syntax error" is here to catch this case.
  4086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4087. /* end confdefs.h. */
  4088. #ifdef __STDC__
  4089. # include <limits.h>
  4090. #else
  4091. # include <assert.h>
  4092. #endif
  4093. Syntax error
  4094. _ACEOF
  4095. if ac_fn_c_try_cpp "$LINENO"; then :
  4096. else
  4097. # Broken: fails on valid input.
  4098. continue
  4099. fi
  4100. rm -f conftest.err conftest.i conftest.$ac_ext
  4101. # OK, works on sane cases. Now check whether nonexistent headers
  4102. # can be detected and how.
  4103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4104. /* end confdefs.h. */
  4105. #include <ac_nonexistent.h>
  4106. _ACEOF
  4107. if ac_fn_c_try_cpp "$LINENO"; then :
  4108. # Broken: success on invalid input.
  4109. continue
  4110. else
  4111. # Passes both tests.
  4112. ac_preproc_ok=:
  4113. break
  4114. fi
  4115. rm -f conftest.err conftest.i conftest.$ac_ext
  4116. done
  4117. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4118. rm -f conftest.i conftest.err conftest.$ac_ext
  4119. if $ac_preproc_ok; then :
  4120. else
  4121. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4122. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4123. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4124. See \`config.log' for more details" "$LINENO" 5; }
  4125. fi
  4126. ac_ext=c
  4127. ac_cpp='$CPP $CPPFLAGS'
  4128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4132. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4133. if ${ac_cv_path_GREP+:} false; then :
  4134. $as_echo_n "(cached) " >&6
  4135. else
  4136. if test -z "$GREP"; then
  4137. ac_path_GREP_found=false
  4138. # Loop through the user's path and test for each of PROGNAME-LIST
  4139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4140. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4141. do
  4142. IFS=$as_save_IFS
  4143. test -z "$as_dir" && as_dir=.
  4144. for ac_prog in grep ggrep; do
  4145. for ac_exec_ext in '' $ac_executable_extensions; do
  4146. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4147. as_fn_executable_p "$ac_path_GREP" || continue
  4148. # Check for GNU ac_path_GREP and select it if it is found.
  4149. # Check for GNU $ac_path_GREP
  4150. case `"$ac_path_GREP" --version 2>&1` in
  4151. *GNU*)
  4152. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4153. *)
  4154. ac_count=0
  4155. $as_echo_n 0123456789 >"conftest.in"
  4156. while :
  4157. do
  4158. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4159. mv "conftest.tmp" "conftest.in"
  4160. cp "conftest.in" "conftest.nl"
  4161. $as_echo 'GREP' >> "conftest.nl"
  4162. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4163. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4164. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4165. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4166. # Best one so far, save it but keep looking for a better one
  4167. ac_cv_path_GREP="$ac_path_GREP"
  4168. ac_path_GREP_max=$ac_count
  4169. fi
  4170. # 10*(2^10) chars as input seems more than enough
  4171. test $ac_count -gt 10 && break
  4172. done
  4173. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4174. esac
  4175. $ac_path_GREP_found && break 3
  4176. done
  4177. done
  4178. done
  4179. IFS=$as_save_IFS
  4180. if test -z "$ac_cv_path_GREP"; then
  4181. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4182. fi
  4183. else
  4184. ac_cv_path_GREP=$GREP
  4185. fi
  4186. fi
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4188. $as_echo "$ac_cv_path_GREP" >&6; }
  4189. GREP="$ac_cv_path_GREP"
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4191. $as_echo_n "checking for egrep... " >&6; }
  4192. if ${ac_cv_path_EGREP+:} false; then :
  4193. $as_echo_n "(cached) " >&6
  4194. else
  4195. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4196. then ac_cv_path_EGREP="$GREP -E"
  4197. else
  4198. if test -z "$EGREP"; then
  4199. ac_path_EGREP_found=false
  4200. # Loop through the user's path and test for each of PROGNAME-LIST
  4201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4202. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4203. do
  4204. IFS=$as_save_IFS
  4205. test -z "$as_dir" && as_dir=.
  4206. for ac_prog in egrep; do
  4207. for ac_exec_ext in '' $ac_executable_extensions; do
  4208. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4209. as_fn_executable_p "$ac_path_EGREP" || continue
  4210. # Check for GNU ac_path_EGREP and select it if it is found.
  4211. # Check for GNU $ac_path_EGREP
  4212. case `"$ac_path_EGREP" --version 2>&1` in
  4213. *GNU*)
  4214. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4215. *)
  4216. ac_count=0
  4217. $as_echo_n 0123456789 >"conftest.in"
  4218. while :
  4219. do
  4220. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4221. mv "conftest.tmp" "conftest.in"
  4222. cp "conftest.in" "conftest.nl"
  4223. $as_echo 'EGREP' >> "conftest.nl"
  4224. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4225. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4226. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4227. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4228. # Best one so far, save it but keep looking for a better one
  4229. ac_cv_path_EGREP="$ac_path_EGREP"
  4230. ac_path_EGREP_max=$ac_count
  4231. fi
  4232. # 10*(2^10) chars as input seems more than enough
  4233. test $ac_count -gt 10 && break
  4234. done
  4235. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4236. esac
  4237. $ac_path_EGREP_found && break 3
  4238. done
  4239. done
  4240. done
  4241. IFS=$as_save_IFS
  4242. if test -z "$ac_cv_path_EGREP"; then
  4243. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4244. fi
  4245. else
  4246. ac_cv_path_EGREP=$EGREP
  4247. fi
  4248. fi
  4249. fi
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4251. $as_echo "$ac_cv_path_EGREP" >&6; }
  4252. EGREP="$ac_cv_path_EGREP"
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4254. $as_echo_n "checking for ANSI C header files... " >&6; }
  4255. if ${ac_cv_header_stdc+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4259. /* end confdefs.h. */
  4260. #include <stdlib.h>
  4261. #include <stdarg.h>
  4262. #include <string.h>
  4263. #include <float.h>
  4264. int
  4265. main ()
  4266. {
  4267. ;
  4268. return 0;
  4269. }
  4270. _ACEOF
  4271. if ac_fn_c_try_compile "$LINENO"; then :
  4272. ac_cv_header_stdc=yes
  4273. else
  4274. ac_cv_header_stdc=no
  4275. fi
  4276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4277. if test $ac_cv_header_stdc = yes; then
  4278. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4280. /* end confdefs.h. */
  4281. #include <string.h>
  4282. _ACEOF
  4283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4284. $EGREP "memchr" >/dev/null 2>&1; then :
  4285. else
  4286. ac_cv_header_stdc=no
  4287. fi
  4288. rm -f conftest*
  4289. fi
  4290. if test $ac_cv_header_stdc = yes; then
  4291. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4293. /* end confdefs.h. */
  4294. #include <stdlib.h>
  4295. _ACEOF
  4296. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4297. $EGREP "free" >/dev/null 2>&1; then :
  4298. else
  4299. ac_cv_header_stdc=no
  4300. fi
  4301. rm -f conftest*
  4302. fi
  4303. if test $ac_cv_header_stdc = yes; then
  4304. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4305. if test "$cross_compiling" = yes; then :
  4306. :
  4307. else
  4308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4309. /* end confdefs.h. */
  4310. #include <ctype.h>
  4311. #include <stdlib.h>
  4312. #if ((' ' & 0x0FF) == 0x020)
  4313. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4314. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4315. #else
  4316. # define ISLOWER(c) \
  4317. (('a' <= (c) && (c) <= 'i') \
  4318. || ('j' <= (c) && (c) <= 'r') \
  4319. || ('s' <= (c) && (c) <= 'z'))
  4320. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4321. #endif
  4322. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4323. int
  4324. main ()
  4325. {
  4326. int i;
  4327. for (i = 0; i < 256; i++)
  4328. if (XOR (islower (i), ISLOWER (i))
  4329. || toupper (i) != TOUPPER (i))
  4330. return 2;
  4331. return 0;
  4332. }
  4333. _ACEOF
  4334. if ac_fn_c_try_run "$LINENO"; then :
  4335. else
  4336. ac_cv_header_stdc=no
  4337. fi
  4338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4339. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4340. fi
  4341. fi
  4342. fi
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4344. $as_echo "$ac_cv_header_stdc" >&6; }
  4345. if test $ac_cv_header_stdc = yes; then
  4346. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4347. fi
  4348. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4349. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4350. inttypes.h stdint.h unistd.h
  4351. do :
  4352. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4353. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4354. "
  4355. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4356. cat >>confdefs.h <<_ACEOF
  4357. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4358. _ACEOF
  4359. fi
  4360. done
  4361. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4362. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4363. MINIX=yes
  4364. else
  4365. MINIX=
  4366. fi
  4367. if test "$MINIX" = yes; then
  4368. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4369. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4370. $as_echo "#define _MINIX 1" >>confdefs.h
  4371. fi
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4373. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4374. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4378. /* end confdefs.h. */
  4379. # define __EXTENSIONS__ 1
  4380. $ac_includes_default
  4381. int
  4382. main ()
  4383. {
  4384. ;
  4385. return 0;
  4386. }
  4387. _ACEOF
  4388. if ac_fn_c_try_compile "$LINENO"; then :
  4389. ac_cv_safe_to_define___extensions__=yes
  4390. else
  4391. ac_cv_safe_to_define___extensions__=no
  4392. fi
  4393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4394. fi
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4396. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4397. test $ac_cv_safe_to_define___extensions__ = yes &&
  4398. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4399. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4400. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4401. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4402. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4403. case `pwd` in
  4404. *\ * | *\ *)
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4406. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4407. esac
  4408. macro_version='2.4.6'
  4409. macro_revision='2.4.6'
  4410. ltmain=$ac_aux_dir/ltmain.sh
  4411. # Backslashify metacharacters that are still active within
  4412. # double-quoted strings.
  4413. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4414. # Same as above, but do not quote variable references.
  4415. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4416. # Sed substitution to delay expansion of an escaped shell variable in a
  4417. # double_quote_subst'ed string.
  4418. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4419. # Sed substitution to delay expansion of an escaped single quote.
  4420. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4421. # Sed substitution to avoid accidental globbing in evaled expressions
  4422. no_glob_subst='s/\*/\\\*/g'
  4423. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4424. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4425. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4427. $as_echo_n "checking how to print strings... " >&6; }
  4428. # Test print first, because it will be a builtin if present.
  4429. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4430. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4431. ECHO='print -r --'
  4432. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4433. ECHO='printf %s\n'
  4434. else
  4435. # Use this function as a fallback that always works.
  4436. func_fallback_echo ()
  4437. {
  4438. eval 'cat <<_LTECHO_EOF
  4439. $1
  4440. _LTECHO_EOF'
  4441. }
  4442. ECHO='func_fallback_echo'
  4443. fi
  4444. # func_echo_all arg...
  4445. # Invoke $ECHO with all args, space-separated.
  4446. func_echo_all ()
  4447. {
  4448. $ECHO ""
  4449. }
  4450. case $ECHO in
  4451. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4452. $as_echo "printf" >&6; } ;;
  4453. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4454. $as_echo "print -r" >&6; } ;;
  4455. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4456. $as_echo "cat" >&6; } ;;
  4457. esac
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4459. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4460. if ${ac_cv_path_SED+:} false; then :
  4461. $as_echo_n "(cached) " >&6
  4462. else
  4463. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4464. for ac_i in 1 2 3 4 5 6 7; do
  4465. ac_script="$ac_script$as_nl$ac_script"
  4466. done
  4467. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4468. { ac_script=; unset ac_script;}
  4469. if test -z "$SED"; then
  4470. ac_path_SED_found=false
  4471. # Loop through the user's path and test for each of PROGNAME-LIST
  4472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4473. for as_dir in $PATH
  4474. do
  4475. IFS=$as_save_IFS
  4476. test -z "$as_dir" && as_dir=.
  4477. for ac_prog in sed gsed; do
  4478. for ac_exec_ext in '' $ac_executable_extensions; do
  4479. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4480. as_fn_executable_p "$ac_path_SED" || continue
  4481. # Check for GNU ac_path_SED and select it if it is found.
  4482. # Check for GNU $ac_path_SED
  4483. case `"$ac_path_SED" --version 2>&1` in
  4484. *GNU*)
  4485. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4486. *)
  4487. ac_count=0
  4488. $as_echo_n 0123456789 >"conftest.in"
  4489. while :
  4490. do
  4491. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4492. mv "conftest.tmp" "conftest.in"
  4493. cp "conftest.in" "conftest.nl"
  4494. $as_echo '' >> "conftest.nl"
  4495. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4496. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4497. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4498. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4499. # Best one so far, save it but keep looking for a better one
  4500. ac_cv_path_SED="$ac_path_SED"
  4501. ac_path_SED_max=$ac_count
  4502. fi
  4503. # 10*(2^10) chars as input seems more than enough
  4504. test $ac_count -gt 10 && break
  4505. done
  4506. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4507. esac
  4508. $ac_path_SED_found && break 3
  4509. done
  4510. done
  4511. done
  4512. IFS=$as_save_IFS
  4513. if test -z "$ac_cv_path_SED"; then
  4514. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4515. fi
  4516. else
  4517. ac_cv_path_SED=$SED
  4518. fi
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4521. $as_echo "$ac_cv_path_SED" >&6; }
  4522. SED="$ac_cv_path_SED"
  4523. rm -f conftest.sed
  4524. test -z "$SED" && SED=sed
  4525. Xsed="$SED -e 1s/^X//"
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4527. $as_echo_n "checking for fgrep... " >&6; }
  4528. if ${ac_cv_path_FGREP+:} false; then :
  4529. $as_echo_n "(cached) " >&6
  4530. else
  4531. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4532. then ac_cv_path_FGREP="$GREP -F"
  4533. else
  4534. if test -z "$FGREP"; then
  4535. ac_path_FGREP_found=false
  4536. # Loop through the user's path and test for each of PROGNAME-LIST
  4537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4538. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4539. do
  4540. IFS=$as_save_IFS
  4541. test -z "$as_dir" && as_dir=.
  4542. for ac_prog in fgrep; do
  4543. for ac_exec_ext in '' $ac_executable_extensions; do
  4544. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4545. as_fn_executable_p "$ac_path_FGREP" || continue
  4546. # Check for GNU ac_path_FGREP and select it if it is found.
  4547. # Check for GNU $ac_path_FGREP
  4548. case `"$ac_path_FGREP" --version 2>&1` in
  4549. *GNU*)
  4550. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4551. *)
  4552. ac_count=0
  4553. $as_echo_n 0123456789 >"conftest.in"
  4554. while :
  4555. do
  4556. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4557. mv "conftest.tmp" "conftest.in"
  4558. cp "conftest.in" "conftest.nl"
  4559. $as_echo 'FGREP' >> "conftest.nl"
  4560. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4561. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4562. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4563. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4564. # Best one so far, save it but keep looking for a better one
  4565. ac_cv_path_FGREP="$ac_path_FGREP"
  4566. ac_path_FGREP_max=$ac_count
  4567. fi
  4568. # 10*(2^10) chars as input seems more than enough
  4569. test $ac_count -gt 10 && break
  4570. done
  4571. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4572. esac
  4573. $ac_path_FGREP_found && break 3
  4574. done
  4575. done
  4576. done
  4577. IFS=$as_save_IFS
  4578. if test -z "$ac_cv_path_FGREP"; then
  4579. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4580. fi
  4581. else
  4582. ac_cv_path_FGREP=$FGREP
  4583. fi
  4584. fi
  4585. fi
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4587. $as_echo "$ac_cv_path_FGREP" >&6; }
  4588. FGREP="$ac_cv_path_FGREP"
  4589. test -z "$GREP" && GREP=grep
  4590. # Check whether --with-gnu-ld was given.
  4591. if test "${with_gnu_ld+set}" = set; then :
  4592. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4593. else
  4594. with_gnu_ld=no
  4595. fi
  4596. ac_prog=ld
  4597. if test yes = "$GCC"; then
  4598. # Check if gcc -print-prog-name=ld gives a path.
  4599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4600. $as_echo_n "checking for ld used by $CC... " >&6; }
  4601. case $host in
  4602. *-*-mingw*)
  4603. # gcc leaves a trailing carriage return, which upsets mingw
  4604. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4605. *)
  4606. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4607. esac
  4608. case $ac_prog in
  4609. # Accept absolute paths.
  4610. [\\/]* | ?:[\\/]*)
  4611. re_direlt='/[^/][^/]*/\.\./'
  4612. # Canonicalize the pathname of ld
  4613. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4614. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4615. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4616. done
  4617. test -z "$LD" && LD=$ac_prog
  4618. ;;
  4619. "")
  4620. # If it fails, then pretend we aren't using GCC.
  4621. ac_prog=ld
  4622. ;;
  4623. *)
  4624. # If it is relative, then search for the first ld in PATH.
  4625. with_gnu_ld=unknown
  4626. ;;
  4627. esac
  4628. elif test yes = "$with_gnu_ld"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4630. $as_echo_n "checking for GNU ld... " >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4633. $as_echo_n "checking for non-GNU ld... " >&6; }
  4634. fi
  4635. if ${lt_cv_path_LD+:} false; then :
  4636. $as_echo_n "(cached) " >&6
  4637. else
  4638. if test -z "$LD"; then
  4639. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4640. for ac_dir in $PATH; do
  4641. IFS=$lt_save_ifs
  4642. test -z "$ac_dir" && ac_dir=.
  4643. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4644. lt_cv_path_LD=$ac_dir/$ac_prog
  4645. # Check to see if the program is GNU ld. I'd rather use --version,
  4646. # but apparently some variants of GNU ld only accept -v.
  4647. # Break only if it was the GNU/non-GNU ld that we prefer.
  4648. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4649. *GNU* | *'with BFD'*)
  4650. test no != "$with_gnu_ld" && break
  4651. ;;
  4652. *)
  4653. test yes != "$with_gnu_ld" && break
  4654. ;;
  4655. esac
  4656. fi
  4657. done
  4658. IFS=$lt_save_ifs
  4659. else
  4660. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4661. fi
  4662. fi
  4663. LD=$lt_cv_path_LD
  4664. if test -n "$LD"; then
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4666. $as_echo "$LD" >&6; }
  4667. else
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4669. $as_echo "no" >&6; }
  4670. fi
  4671. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4673. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4674. if ${lt_cv_prog_gnu_ld+:} false; then :
  4675. $as_echo_n "(cached) " >&6
  4676. else
  4677. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4678. case `$LD -v 2>&1 </dev/null` in
  4679. *GNU* | *'with BFD'*)
  4680. lt_cv_prog_gnu_ld=yes
  4681. ;;
  4682. *)
  4683. lt_cv_prog_gnu_ld=no
  4684. ;;
  4685. esac
  4686. fi
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4688. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4689. with_gnu_ld=$lt_cv_prog_gnu_ld
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4691. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4692. if ${lt_cv_path_NM+:} false; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. if test -n "$NM"; then
  4696. # Let the user override the test.
  4697. lt_cv_path_NM=$NM
  4698. else
  4699. lt_nm_to_check=${ac_tool_prefix}nm
  4700. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4701. lt_nm_to_check="$lt_nm_to_check nm"
  4702. fi
  4703. for lt_tmp_nm in $lt_nm_to_check; do
  4704. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4705. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4706. IFS=$lt_save_ifs
  4707. test -z "$ac_dir" && ac_dir=.
  4708. tmp_nm=$ac_dir/$lt_tmp_nm
  4709. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4710. # Check to see if the nm accepts a BSD-compat flag.
  4711. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4712. # nm: unknown option "B" ignored
  4713. # Tru64's nm complains that /dev/null is an invalid object file
  4714. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4715. case $build_os in
  4716. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4717. *) lt_bad_file=/dev/null ;;
  4718. esac
  4719. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4720. *$lt_bad_file* | *'Invalid file or object type'*)
  4721. lt_cv_path_NM="$tmp_nm -B"
  4722. break 2
  4723. ;;
  4724. *)
  4725. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4726. */dev/null*)
  4727. lt_cv_path_NM="$tmp_nm -p"
  4728. break 2
  4729. ;;
  4730. *)
  4731. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4732. continue # so that we can try to find one that supports BSD flags
  4733. ;;
  4734. esac
  4735. ;;
  4736. esac
  4737. fi
  4738. done
  4739. IFS=$lt_save_ifs
  4740. done
  4741. : ${lt_cv_path_NM=no}
  4742. fi
  4743. fi
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4745. $as_echo "$lt_cv_path_NM" >&6; }
  4746. if test no != "$lt_cv_path_NM"; then
  4747. NM=$lt_cv_path_NM
  4748. else
  4749. # Didn't find any BSD compatible name lister, look for dumpbin.
  4750. if test -n "$DUMPBIN"; then :
  4751. # Let the user override the test.
  4752. else
  4753. if test -n "$ac_tool_prefix"; then
  4754. for ac_prog in dumpbin "link -dump"
  4755. do
  4756. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4757. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4759. $as_echo_n "checking for $ac_word... " >&6; }
  4760. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. if test -n "$DUMPBIN"; then
  4764. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4765. else
  4766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4767. for as_dir in $PATH
  4768. do
  4769. IFS=$as_save_IFS
  4770. test -z "$as_dir" && as_dir=.
  4771. for ac_exec_ext in '' $ac_executable_extensions; do
  4772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4773. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4775. break 2
  4776. fi
  4777. done
  4778. done
  4779. IFS=$as_save_IFS
  4780. fi
  4781. fi
  4782. DUMPBIN=$ac_cv_prog_DUMPBIN
  4783. if test -n "$DUMPBIN"; then
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4785. $as_echo "$DUMPBIN" >&6; }
  4786. else
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4788. $as_echo "no" >&6; }
  4789. fi
  4790. test -n "$DUMPBIN" && break
  4791. done
  4792. fi
  4793. if test -z "$DUMPBIN"; then
  4794. ac_ct_DUMPBIN=$DUMPBIN
  4795. for ac_prog in dumpbin "link -dump"
  4796. do
  4797. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4798. set dummy $ac_prog; ac_word=$2
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4800. $as_echo_n "checking for $ac_word... " >&6; }
  4801. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. if test -n "$ac_ct_DUMPBIN"; then
  4805. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4806. else
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in $PATH
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for ac_exec_ext in '' $ac_executable_extensions; do
  4813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4814. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4816. break 2
  4817. fi
  4818. done
  4819. done
  4820. IFS=$as_save_IFS
  4821. fi
  4822. fi
  4823. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4824. if test -n "$ac_ct_DUMPBIN"; then
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4826. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4827. else
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4829. $as_echo "no" >&6; }
  4830. fi
  4831. test -n "$ac_ct_DUMPBIN" && break
  4832. done
  4833. if test "x$ac_ct_DUMPBIN" = x; then
  4834. DUMPBIN=":"
  4835. else
  4836. case $cross_compiling:$ac_tool_warned in
  4837. yes:)
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4839. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4840. ac_tool_warned=yes ;;
  4841. esac
  4842. DUMPBIN=$ac_ct_DUMPBIN
  4843. fi
  4844. fi
  4845. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4846. *COFF*)
  4847. DUMPBIN="$DUMPBIN -symbols -headers"
  4848. ;;
  4849. *)
  4850. DUMPBIN=:
  4851. ;;
  4852. esac
  4853. fi
  4854. if test : != "$DUMPBIN"; then
  4855. NM=$DUMPBIN
  4856. fi
  4857. fi
  4858. test -z "$NM" && NM=nm
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4860. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4861. if ${lt_cv_nm_interface+:} false; then :
  4862. $as_echo_n "(cached) " >&6
  4863. else
  4864. lt_cv_nm_interface="BSD nm"
  4865. echo "int some_variable = 0;" > conftest.$ac_ext
  4866. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4867. (eval "$ac_compile" 2>conftest.err)
  4868. cat conftest.err >&5
  4869. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4870. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4871. cat conftest.err >&5
  4872. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4873. cat conftest.out >&5
  4874. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4875. lt_cv_nm_interface="MS dumpbin"
  4876. fi
  4877. rm -f conftest*
  4878. fi
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4880. $as_echo "$lt_cv_nm_interface" >&6; }
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4882. $as_echo_n "checking whether ln -s works... " >&6; }
  4883. LN_S=$as_ln_s
  4884. if test "$LN_S" = "ln -s"; then
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4886. $as_echo "yes" >&6; }
  4887. else
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4889. $as_echo "no, using $LN_S" >&6; }
  4890. fi
  4891. # find the maximum length of command line arguments
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4893. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4894. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4895. $as_echo_n "(cached) " >&6
  4896. else
  4897. i=0
  4898. teststring=ABCD
  4899. case $build_os in
  4900. msdosdjgpp*)
  4901. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4902. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4903. # during glob expansion). Even if it were fixed, the result of this
  4904. # check would be larger than it should be.
  4905. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4906. ;;
  4907. gnu*)
  4908. # Under GNU Hurd, this test is not required because there is
  4909. # no limit to the length of command line arguments.
  4910. # Libtool will interpret -1 as no limit whatsoever
  4911. lt_cv_sys_max_cmd_len=-1;
  4912. ;;
  4913. cygwin* | mingw* | cegcc*)
  4914. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4915. # about 5 minutes as the teststring grows exponentially.
  4916. # Worse, since 9x/ME are not pre-emptively multitasking,
  4917. # you end up with a "frozen" computer, even though with patience
  4918. # the test eventually succeeds (with a max line length of 256k).
  4919. # Instead, let's just punt: use the minimum linelength reported by
  4920. # all of the supported platforms: 8192 (on NT/2K/XP).
  4921. lt_cv_sys_max_cmd_len=8192;
  4922. ;;
  4923. mint*)
  4924. # On MiNT this can take a long time and run out of memory.
  4925. lt_cv_sys_max_cmd_len=8192;
  4926. ;;
  4927. amigaos*)
  4928. # On AmigaOS with pdksh, this test takes hours, literally.
  4929. # So we just punt and use a minimum line length of 8192.
  4930. lt_cv_sys_max_cmd_len=8192;
  4931. ;;
  4932. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4933. # This has been around since 386BSD, at least. Likely further.
  4934. if test -x /sbin/sysctl; then
  4935. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4936. elif test -x /usr/sbin/sysctl; then
  4937. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4938. else
  4939. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4940. fi
  4941. # And add a safety zone
  4942. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4943. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4944. ;;
  4945. interix*)
  4946. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4947. lt_cv_sys_max_cmd_len=196608
  4948. ;;
  4949. os2*)
  4950. # The test takes a long time on OS/2.
  4951. lt_cv_sys_max_cmd_len=8192
  4952. ;;
  4953. osf*)
  4954. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4955. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4956. # nice to cause kernel panics so lets avoid the loop below.
  4957. # First set a reasonable default.
  4958. lt_cv_sys_max_cmd_len=16384
  4959. #
  4960. if test -x /sbin/sysconfig; then
  4961. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4962. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4963. esac
  4964. fi
  4965. ;;
  4966. sco3.2v5*)
  4967. lt_cv_sys_max_cmd_len=102400
  4968. ;;
  4969. sysv5* | sco5v6* | sysv4.2uw2*)
  4970. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4971. if test -n "$kargmax"; then
  4972. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4973. else
  4974. lt_cv_sys_max_cmd_len=32768
  4975. fi
  4976. ;;
  4977. *)
  4978. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4979. if test -n "$lt_cv_sys_max_cmd_len" && \
  4980. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4981. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4982. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4983. else
  4984. # Make teststring a little bigger before we do anything with it.
  4985. # a 1K string should be a reasonable start.
  4986. for i in 1 2 3 4 5 6 7 8; do
  4987. teststring=$teststring$teststring
  4988. done
  4989. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4990. # If test is not a shell built-in, we'll probably end up computing a
  4991. # maximum length that is only half of the actual maximum length, but
  4992. # we can't tell.
  4993. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4994. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4995. test 17 != "$i" # 1/2 MB should be enough
  4996. do
  4997. i=`expr $i + 1`
  4998. teststring=$teststring$teststring
  4999. done
  5000. # Only check the string length outside the loop.
  5001. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5002. teststring=
  5003. # Add a significant safety factor because C++ compilers can tack on
  5004. # massive amounts of additional arguments before passing them to the
  5005. # linker. It appears as though 1/2 is a usable value.
  5006. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5007. fi
  5008. ;;
  5009. esac
  5010. fi
  5011. if test -n "$lt_cv_sys_max_cmd_len"; then
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5013. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5014. else
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5016. $as_echo "none" >&6; }
  5017. fi
  5018. max_cmd_len=$lt_cv_sys_max_cmd_len
  5019. : ${CP="cp -f"}
  5020. : ${MV="mv -f"}
  5021. : ${RM="rm -f"}
  5022. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5023. lt_unset=unset
  5024. else
  5025. lt_unset=false
  5026. fi
  5027. # test EBCDIC or ASCII
  5028. case `echo X|tr X '\101'` in
  5029. A) # ASCII based system
  5030. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5031. lt_SP2NL='tr \040 \012'
  5032. lt_NL2SP='tr \015\012 \040\040'
  5033. ;;
  5034. *) # EBCDIC based system
  5035. lt_SP2NL='tr \100 \n'
  5036. lt_NL2SP='tr \r\n \100\100'
  5037. ;;
  5038. esac
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5040. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5041. if ${lt_cv_to_host_file_cmd+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. case $host in
  5045. *-*-mingw* )
  5046. case $build in
  5047. *-*-mingw* ) # actually msys
  5048. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5049. ;;
  5050. *-*-cygwin* )
  5051. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5052. ;;
  5053. * ) # otherwise, assume *nix
  5054. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5055. ;;
  5056. esac
  5057. ;;
  5058. *-*-cygwin* )
  5059. case $build in
  5060. *-*-mingw* ) # actually msys
  5061. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5062. ;;
  5063. *-*-cygwin* )
  5064. lt_cv_to_host_file_cmd=func_convert_file_noop
  5065. ;;
  5066. * ) # otherwise, assume *nix
  5067. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5068. ;;
  5069. esac
  5070. ;;
  5071. * ) # unhandled hosts (and "normal" native builds)
  5072. lt_cv_to_host_file_cmd=func_convert_file_noop
  5073. ;;
  5074. esac
  5075. fi
  5076. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5078. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5080. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5081. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5082. $as_echo_n "(cached) " >&6
  5083. else
  5084. #assume ordinary cross tools, or native build.
  5085. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5086. case $host in
  5087. *-*-mingw* )
  5088. case $build in
  5089. *-*-mingw* ) # actually msys
  5090. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5091. ;;
  5092. esac
  5093. ;;
  5094. esac
  5095. fi
  5096. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5098. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5100. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5101. if ${lt_cv_ld_reload_flag+:} false; then :
  5102. $as_echo_n "(cached) " >&6
  5103. else
  5104. lt_cv_ld_reload_flag='-r'
  5105. fi
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5107. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5108. reload_flag=$lt_cv_ld_reload_flag
  5109. case $reload_flag in
  5110. "" | " "*) ;;
  5111. *) reload_flag=" $reload_flag" ;;
  5112. esac
  5113. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5114. case $host_os in
  5115. cygwin* | mingw* | pw32* | cegcc*)
  5116. if test yes != "$GCC"; then
  5117. reload_cmds=false
  5118. fi
  5119. ;;
  5120. darwin*)
  5121. if test yes = "$GCC"; then
  5122. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5123. else
  5124. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5125. fi
  5126. ;;
  5127. esac
  5128. if test -n "$ac_tool_prefix"; then
  5129. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5130. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5132. $as_echo_n "checking for $ac_word... " >&6; }
  5133. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. if test -n "$OBJDUMP"; then
  5137. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5138. else
  5139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5140. for as_dir in $PATH
  5141. do
  5142. IFS=$as_save_IFS
  5143. test -z "$as_dir" && as_dir=.
  5144. for ac_exec_ext in '' $ac_executable_extensions; do
  5145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5146. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5148. break 2
  5149. fi
  5150. done
  5151. done
  5152. IFS=$as_save_IFS
  5153. fi
  5154. fi
  5155. OBJDUMP=$ac_cv_prog_OBJDUMP
  5156. if test -n "$OBJDUMP"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5158. $as_echo "$OBJDUMP" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. fi
  5164. if test -z "$ac_cv_prog_OBJDUMP"; then
  5165. ac_ct_OBJDUMP=$OBJDUMP
  5166. # Extract the first word of "objdump", so it can be a program name with args.
  5167. set dummy objdump; ac_word=$2
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5169. $as_echo_n "checking for $ac_word... " >&6; }
  5170. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. if test -n "$ac_ct_OBJDUMP"; then
  5174. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5175. else
  5176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5177. for as_dir in $PATH
  5178. do
  5179. IFS=$as_save_IFS
  5180. test -z "$as_dir" && as_dir=.
  5181. for ac_exec_ext in '' $ac_executable_extensions; do
  5182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5183. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5185. break 2
  5186. fi
  5187. done
  5188. done
  5189. IFS=$as_save_IFS
  5190. fi
  5191. fi
  5192. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5193. if test -n "$ac_ct_OBJDUMP"; then
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5195. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5196. else
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5198. $as_echo "no" >&6; }
  5199. fi
  5200. if test "x$ac_ct_OBJDUMP" = x; then
  5201. OBJDUMP="false"
  5202. else
  5203. case $cross_compiling:$ac_tool_warned in
  5204. yes:)
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5206. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5207. ac_tool_warned=yes ;;
  5208. esac
  5209. OBJDUMP=$ac_ct_OBJDUMP
  5210. fi
  5211. else
  5212. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5213. fi
  5214. test -z "$OBJDUMP" && OBJDUMP=objdump
  5215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5216. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5217. if ${lt_cv_deplibs_check_method+:} false; then :
  5218. $as_echo_n "(cached) " >&6
  5219. else
  5220. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5221. lt_cv_file_magic_test_file=
  5222. lt_cv_deplibs_check_method='unknown'
  5223. # Need to set the preceding variable on all platforms that support
  5224. # interlibrary dependencies.
  5225. # 'none' -- dependencies not supported.
  5226. # 'unknown' -- same as none, but documents that we really don't know.
  5227. # 'pass_all' -- all dependencies passed with no checks.
  5228. # 'test_compile' -- check by making test program.
  5229. # 'file_magic [[regex]]' -- check by looking for files in library path
  5230. # that responds to the $file_magic_cmd with a given extended regex.
  5231. # If you have 'file' or equivalent on your system and you're not sure
  5232. # whether 'pass_all' will *always* work, you probably want this one.
  5233. case $host_os in
  5234. aix[4-9]*)
  5235. lt_cv_deplibs_check_method=pass_all
  5236. ;;
  5237. beos*)
  5238. lt_cv_deplibs_check_method=pass_all
  5239. ;;
  5240. bsdi[45]*)
  5241. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5242. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5243. lt_cv_file_magic_test_file=/shlib/libc.so
  5244. ;;
  5245. cygwin*)
  5246. # func_win32_libid is a shell function defined in ltmain.sh
  5247. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5248. lt_cv_file_magic_cmd='func_win32_libid'
  5249. ;;
  5250. mingw* | pw32*)
  5251. # Base MSYS/MinGW do not provide the 'file' command needed by
  5252. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5253. # unless we find 'file', for example because we are cross-compiling.
  5254. if ( file / ) >/dev/null 2>&1; then
  5255. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5256. lt_cv_file_magic_cmd='func_win32_libid'
  5257. else
  5258. # Keep this pattern in sync with the one in func_win32_libid.
  5259. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5260. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5261. fi
  5262. ;;
  5263. cegcc*)
  5264. # use the weaker test based on 'objdump'. See mingw*.
  5265. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5266. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5267. ;;
  5268. darwin* | rhapsody*)
  5269. lt_cv_deplibs_check_method=pass_all
  5270. ;;
  5271. freebsd* | dragonfly*)
  5272. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5273. case $host_cpu in
  5274. i*86 )
  5275. # Not sure whether the presence of OpenBSD here was a mistake.
  5276. # Let's accept both of them until this is cleared up.
  5277. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5278. lt_cv_file_magic_cmd=/usr/bin/file
  5279. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5280. ;;
  5281. esac
  5282. else
  5283. lt_cv_deplibs_check_method=pass_all
  5284. fi
  5285. ;;
  5286. haiku*)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. hpux10.20* | hpux11*)
  5290. lt_cv_file_magic_cmd=/usr/bin/file
  5291. case $host_cpu in
  5292. ia64*)
  5293. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5294. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5295. ;;
  5296. hppa*64*)
  5297. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5298. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5299. ;;
  5300. *)
  5301. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5302. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5303. ;;
  5304. esac
  5305. ;;
  5306. interix[3-9]*)
  5307. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5308. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5309. ;;
  5310. irix5* | irix6* | nonstopux*)
  5311. case $LD in
  5312. *-32|*"-32 ") libmagic=32-bit;;
  5313. *-n32|*"-n32 ") libmagic=N32;;
  5314. *-64|*"-64 ") libmagic=64-bit;;
  5315. *) libmagic=never-match;;
  5316. esac
  5317. lt_cv_deplibs_check_method=pass_all
  5318. ;;
  5319. # This must be glibc/ELF.
  5320. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5321. lt_cv_deplibs_check_method=pass_all
  5322. ;;
  5323. netbsd*)
  5324. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5326. else
  5327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5328. fi
  5329. ;;
  5330. newos6*)
  5331. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5332. lt_cv_file_magic_cmd=/usr/bin/file
  5333. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5334. ;;
  5335. *nto* | *qnx*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. openbsd* | bitrig*)
  5339. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5341. else
  5342. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5343. fi
  5344. ;;
  5345. osf3* | osf4* | osf5*)
  5346. lt_cv_deplibs_check_method=pass_all
  5347. ;;
  5348. rdos*)
  5349. lt_cv_deplibs_check_method=pass_all
  5350. ;;
  5351. solaris*)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5355. lt_cv_deplibs_check_method=pass_all
  5356. ;;
  5357. sysv4 | sysv4.3*)
  5358. case $host_vendor in
  5359. motorola)
  5360. 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]'
  5361. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5362. ;;
  5363. ncr)
  5364. lt_cv_deplibs_check_method=pass_all
  5365. ;;
  5366. sequent)
  5367. lt_cv_file_magic_cmd='/bin/file'
  5368. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5369. ;;
  5370. sni)
  5371. lt_cv_file_magic_cmd='/bin/file'
  5372. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5373. lt_cv_file_magic_test_file=/lib/libc.so
  5374. ;;
  5375. siemens)
  5376. lt_cv_deplibs_check_method=pass_all
  5377. ;;
  5378. pc)
  5379. lt_cv_deplibs_check_method=pass_all
  5380. ;;
  5381. esac
  5382. ;;
  5383. tpf*)
  5384. lt_cv_deplibs_check_method=pass_all
  5385. ;;
  5386. os2*)
  5387. lt_cv_deplibs_check_method=pass_all
  5388. ;;
  5389. esac
  5390. fi
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5392. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5393. file_magic_glob=
  5394. want_nocaseglob=no
  5395. if test "$build" = "$host"; then
  5396. case $host_os in
  5397. mingw* | pw32*)
  5398. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5399. want_nocaseglob=yes
  5400. else
  5401. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5402. fi
  5403. ;;
  5404. esac
  5405. fi
  5406. file_magic_cmd=$lt_cv_file_magic_cmd
  5407. deplibs_check_method=$lt_cv_deplibs_check_method
  5408. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5409. if test -n "$ac_tool_prefix"; then
  5410. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5411. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5413. $as_echo_n "checking for $ac_word... " >&6; }
  5414. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5415. $as_echo_n "(cached) " >&6
  5416. else
  5417. if test -n "$DLLTOOL"; then
  5418. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5419. else
  5420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5421. for as_dir in $PATH
  5422. do
  5423. IFS=$as_save_IFS
  5424. test -z "$as_dir" && as_dir=.
  5425. for ac_exec_ext in '' $ac_executable_extensions; do
  5426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5427. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5429. break 2
  5430. fi
  5431. done
  5432. done
  5433. IFS=$as_save_IFS
  5434. fi
  5435. fi
  5436. DLLTOOL=$ac_cv_prog_DLLTOOL
  5437. if test -n "$DLLTOOL"; then
  5438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5439. $as_echo "$DLLTOOL" >&6; }
  5440. else
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5442. $as_echo "no" >&6; }
  5443. fi
  5444. fi
  5445. if test -z "$ac_cv_prog_DLLTOOL"; then
  5446. ac_ct_DLLTOOL=$DLLTOOL
  5447. # Extract the first word of "dlltool", so it can be a program name with args.
  5448. set dummy dlltool; ac_word=$2
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5450. $as_echo_n "checking for $ac_word... " >&6; }
  5451. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5452. $as_echo_n "(cached) " >&6
  5453. else
  5454. if test -n "$ac_ct_DLLTOOL"; then
  5455. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5456. else
  5457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5458. for as_dir in $PATH
  5459. do
  5460. IFS=$as_save_IFS
  5461. test -z "$as_dir" && as_dir=.
  5462. for ac_exec_ext in '' $ac_executable_extensions; do
  5463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5464. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5466. break 2
  5467. fi
  5468. done
  5469. done
  5470. IFS=$as_save_IFS
  5471. fi
  5472. fi
  5473. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5474. if test -n "$ac_ct_DLLTOOL"; then
  5475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5476. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5477. else
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5479. $as_echo "no" >&6; }
  5480. fi
  5481. if test "x$ac_ct_DLLTOOL" = x; then
  5482. DLLTOOL="false"
  5483. else
  5484. case $cross_compiling:$ac_tool_warned in
  5485. yes:)
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5487. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5488. ac_tool_warned=yes ;;
  5489. esac
  5490. DLLTOOL=$ac_ct_DLLTOOL
  5491. fi
  5492. else
  5493. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5494. fi
  5495. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5497. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5498. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5502. case $host_os in
  5503. cygwin* | mingw* | pw32* | cegcc*)
  5504. # two different shell functions defined in ltmain.sh;
  5505. # decide which one to use based on capabilities of $DLLTOOL
  5506. case `$DLLTOOL --help 2>&1` in
  5507. *--identify-strict*)
  5508. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5509. ;;
  5510. *)
  5511. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5512. ;;
  5513. esac
  5514. ;;
  5515. *)
  5516. # fallback: assume linklib IS sharedlib
  5517. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5518. ;;
  5519. esac
  5520. fi
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5522. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5523. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5524. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5525. if test -n "$ac_tool_prefix"; then
  5526. for ac_prog in ar
  5527. do
  5528. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5529. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5531. $as_echo_n "checking for $ac_word... " >&6; }
  5532. if ${ac_cv_prog_AR+:} false; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. if test -n "$AR"; then
  5536. ac_cv_prog_AR="$AR" # Let the user override the test.
  5537. else
  5538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5539. for as_dir in $PATH
  5540. do
  5541. IFS=$as_save_IFS
  5542. test -z "$as_dir" && as_dir=.
  5543. for ac_exec_ext in '' $ac_executable_extensions; do
  5544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5545. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5547. break 2
  5548. fi
  5549. done
  5550. done
  5551. IFS=$as_save_IFS
  5552. fi
  5553. fi
  5554. AR=$ac_cv_prog_AR
  5555. if test -n "$AR"; then
  5556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5557. $as_echo "$AR" >&6; }
  5558. else
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5560. $as_echo "no" >&6; }
  5561. fi
  5562. test -n "$AR" && break
  5563. done
  5564. fi
  5565. if test -z "$AR"; then
  5566. ac_ct_AR=$AR
  5567. for ac_prog in ar
  5568. do
  5569. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5570. set dummy $ac_prog; ac_word=$2
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5572. $as_echo_n "checking for $ac_word... " >&6; }
  5573. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. if test -n "$ac_ct_AR"; then
  5577. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5586. ac_cv_prog_ac_ct_AR="$ac_prog"
  5587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5596. if test -n "$ac_ct_AR"; then
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5598. $as_echo "$ac_ct_AR" >&6; }
  5599. else
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. $as_echo "no" >&6; }
  5602. fi
  5603. test -n "$ac_ct_AR" && break
  5604. done
  5605. if test "x$ac_ct_AR" = x; then
  5606. AR="false"
  5607. else
  5608. case $cross_compiling:$ac_tool_warned in
  5609. yes:)
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5612. ac_tool_warned=yes ;;
  5613. esac
  5614. AR=$ac_ct_AR
  5615. fi
  5616. fi
  5617. : ${AR=ar}
  5618. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  5619. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  5620. # higher priority because thats what people were doing historically (setting
  5621. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  5622. # variable obsoleted/removed.
  5623. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  5624. lt_ar_flags=$AR_FLAGS
  5625. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  5626. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5628. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5629. if ${lt_cv_ar_at_file+:} false; then :
  5630. $as_echo_n "(cached) " >&6
  5631. else
  5632. lt_cv_ar_at_file=no
  5633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5634. /* end confdefs.h. */
  5635. int
  5636. main ()
  5637. {
  5638. ;
  5639. return 0;
  5640. }
  5641. _ACEOF
  5642. if ac_fn_c_try_compile "$LINENO"; then :
  5643. echo conftest.$ac_objext > conftest.lst
  5644. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5645. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5646. (eval $lt_ar_try) 2>&5
  5647. ac_status=$?
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5649. test $ac_status = 0; }
  5650. if test 0 -eq "$ac_status"; then
  5651. # Ensure the archiver fails upon bogus file names.
  5652. rm -f conftest.$ac_objext libconftest.a
  5653. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5654. (eval $lt_ar_try) 2>&5
  5655. ac_status=$?
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5657. test $ac_status = 0; }
  5658. if test 0 -ne "$ac_status"; then
  5659. lt_cv_ar_at_file=@
  5660. fi
  5661. fi
  5662. rm -f conftest.* libconftest.a
  5663. fi
  5664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5665. fi
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5667. $as_echo "$lt_cv_ar_at_file" >&6; }
  5668. if test no = "$lt_cv_ar_at_file"; then
  5669. archiver_list_spec=
  5670. else
  5671. archiver_list_spec=$lt_cv_ar_at_file
  5672. fi
  5673. if test -n "$ac_tool_prefix"; then
  5674. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5675. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5677. $as_echo_n "checking for $ac_word... " >&6; }
  5678. if ${ac_cv_prog_STRIP+:} false; then :
  5679. $as_echo_n "(cached) " >&6
  5680. else
  5681. if test -n "$STRIP"; then
  5682. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5683. else
  5684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5685. for as_dir in $PATH
  5686. do
  5687. IFS=$as_save_IFS
  5688. test -z "$as_dir" && as_dir=.
  5689. for ac_exec_ext in '' $ac_executable_extensions; do
  5690. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5691. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5693. break 2
  5694. fi
  5695. done
  5696. done
  5697. IFS=$as_save_IFS
  5698. fi
  5699. fi
  5700. STRIP=$ac_cv_prog_STRIP
  5701. if test -n "$STRIP"; then
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5703. $as_echo "$STRIP" >&6; }
  5704. else
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5706. $as_echo "no" >&6; }
  5707. fi
  5708. fi
  5709. if test -z "$ac_cv_prog_STRIP"; then
  5710. ac_ct_STRIP=$STRIP
  5711. # Extract the first word of "strip", so it can be a program name with args.
  5712. set dummy strip; ac_word=$2
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5714. $as_echo_n "checking for $ac_word... " >&6; }
  5715. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. if test -n "$ac_ct_STRIP"; then
  5719. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5720. else
  5721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5722. for as_dir in $PATH
  5723. do
  5724. IFS=$as_save_IFS
  5725. test -z "$as_dir" && as_dir=.
  5726. for ac_exec_ext in '' $ac_executable_extensions; do
  5727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5728. ac_cv_prog_ac_ct_STRIP="strip"
  5729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5730. break 2
  5731. fi
  5732. done
  5733. done
  5734. IFS=$as_save_IFS
  5735. fi
  5736. fi
  5737. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5738. if test -n "$ac_ct_STRIP"; then
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5740. $as_echo "$ac_ct_STRIP" >&6; }
  5741. else
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5743. $as_echo "no" >&6; }
  5744. fi
  5745. if test "x$ac_ct_STRIP" = x; then
  5746. STRIP=":"
  5747. else
  5748. case $cross_compiling:$ac_tool_warned in
  5749. yes:)
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5751. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5752. ac_tool_warned=yes ;;
  5753. esac
  5754. STRIP=$ac_ct_STRIP
  5755. fi
  5756. else
  5757. STRIP="$ac_cv_prog_STRIP"
  5758. fi
  5759. test -z "$STRIP" && STRIP=:
  5760. if test -n "$ac_tool_prefix"; then
  5761. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5762. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5764. $as_echo_n "checking for $ac_word... " >&6; }
  5765. if ${ac_cv_prog_RANLIB+:} false; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. if test -n "$RANLIB"; then
  5769. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5770. else
  5771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5772. for as_dir in $PATH
  5773. do
  5774. IFS=$as_save_IFS
  5775. test -z "$as_dir" && as_dir=.
  5776. for ac_exec_ext in '' $ac_executable_extensions; do
  5777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5778. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5780. break 2
  5781. fi
  5782. done
  5783. done
  5784. IFS=$as_save_IFS
  5785. fi
  5786. fi
  5787. RANLIB=$ac_cv_prog_RANLIB
  5788. if test -n "$RANLIB"; then
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5790. $as_echo "$RANLIB" >&6; }
  5791. else
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5793. $as_echo "no" >&6; }
  5794. fi
  5795. fi
  5796. if test -z "$ac_cv_prog_RANLIB"; then
  5797. ac_ct_RANLIB=$RANLIB
  5798. # Extract the first word of "ranlib", so it can be a program name with args.
  5799. set dummy ranlib; ac_word=$2
  5800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5801. $as_echo_n "checking for $ac_word... " >&6; }
  5802. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5803. $as_echo_n "(cached) " >&6
  5804. else
  5805. if test -n "$ac_ct_RANLIB"; then
  5806. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5807. else
  5808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5809. for as_dir in $PATH
  5810. do
  5811. IFS=$as_save_IFS
  5812. test -z "$as_dir" && as_dir=.
  5813. for ac_exec_ext in '' $ac_executable_extensions; do
  5814. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5815. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5817. break 2
  5818. fi
  5819. done
  5820. done
  5821. IFS=$as_save_IFS
  5822. fi
  5823. fi
  5824. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5825. if test -n "$ac_ct_RANLIB"; then
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5827. $as_echo "$ac_ct_RANLIB" >&6; }
  5828. else
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5830. $as_echo "no" >&6; }
  5831. fi
  5832. if test "x$ac_ct_RANLIB" = x; then
  5833. RANLIB=":"
  5834. else
  5835. case $cross_compiling:$ac_tool_warned in
  5836. yes:)
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5838. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5839. ac_tool_warned=yes ;;
  5840. esac
  5841. RANLIB=$ac_ct_RANLIB
  5842. fi
  5843. else
  5844. RANLIB="$ac_cv_prog_RANLIB"
  5845. fi
  5846. test -z "$RANLIB" && RANLIB=:
  5847. # Determine commands to create old-style static archives.
  5848. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5849. old_postinstall_cmds='chmod 644 $oldlib'
  5850. old_postuninstall_cmds=
  5851. if test -n "$RANLIB"; then
  5852. case $host_os in
  5853. bitrig* | openbsd*)
  5854. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5855. ;;
  5856. *)
  5857. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5858. ;;
  5859. esac
  5860. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5861. fi
  5862. case $host_os in
  5863. darwin*)
  5864. lock_old_archive_extraction=yes ;;
  5865. *)
  5866. lock_old_archive_extraction=no ;;
  5867. esac
  5868. # If no C compiler was specified, use CC.
  5869. LTCC=${LTCC-"$CC"}
  5870. # If no C compiler flags were specified, use CFLAGS.
  5871. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5872. # Allow CC to be a program name with arguments.
  5873. compiler=$CC
  5874. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5876. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5877. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5878. $as_echo_n "(cached) " >&6
  5879. else
  5880. # These are sane defaults that work on at least a few old systems.
  5881. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5882. # Character class describing NM global symbol codes.
  5883. symcode='[BCDEGRST]'
  5884. # Regexp to match symbols that can be accessed directly from C.
  5885. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5886. # Define system-specific variables.
  5887. case $host_os in
  5888. aix*)
  5889. symcode='[BCDT]'
  5890. ;;
  5891. cygwin* | mingw* | pw32* | cegcc*)
  5892. symcode='[ABCDGISTW]'
  5893. ;;
  5894. hpux*)
  5895. if test ia64 = "$host_cpu"; then
  5896. symcode='[ABCDEGRST]'
  5897. fi
  5898. ;;
  5899. irix* | nonstopux*)
  5900. symcode='[BCDEGRST]'
  5901. ;;
  5902. osf*)
  5903. symcode='[BCDEGQRST]'
  5904. ;;
  5905. solaris*)
  5906. symcode='[BDRT]'
  5907. ;;
  5908. sco3.2v5*)
  5909. symcode='[DT]'
  5910. ;;
  5911. sysv4.2uw2*)
  5912. symcode='[DT]'
  5913. ;;
  5914. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5915. symcode='[ABDT]'
  5916. ;;
  5917. sysv4)
  5918. symcode='[DFNSTU]'
  5919. ;;
  5920. esac
  5921. # If we're using GNU nm, then use its standard symbol codes.
  5922. case `$NM -V 2>&1` in
  5923. *GNU* | *'with BFD'*)
  5924. symcode='[ABCDGIRSTW]' ;;
  5925. esac
  5926. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5927. # Gets list of data symbols to import.
  5928. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5929. # Adjust the below global symbol transforms to fixup imported variables.
  5930. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5931. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5932. lt_c_name_lib_hook="\
  5933. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5934. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5935. else
  5936. # Disable hooks by default.
  5937. lt_cv_sys_global_symbol_to_import=
  5938. lt_cdecl_hook=
  5939. lt_c_name_hook=
  5940. lt_c_name_lib_hook=
  5941. fi
  5942. # Transform an extracted symbol line into a proper C declaration.
  5943. # Some systems (esp. on ia64) link data and code symbols differently,
  5944. # so use this general approach.
  5945. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5946. $lt_cdecl_hook\
  5947. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5948. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5949. # Transform an extracted symbol line into symbol name and symbol address
  5950. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5951. $lt_c_name_hook\
  5952. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5953. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5954. # Transform an extracted symbol line into symbol name with lib prefix and
  5955. # symbol address.
  5956. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5957. $lt_c_name_lib_hook\
  5958. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5959. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5960. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5961. # Handle CRLF in mingw tool chain
  5962. opt_cr=
  5963. case $build_os in
  5964. mingw*)
  5965. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5966. ;;
  5967. esac
  5968. # Try without a prefix underscore, then with it.
  5969. for ac_symprfx in "" "_"; do
  5970. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5971. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5972. # Write the raw and C identifiers.
  5973. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5974. # Fake it for dumpbin and say T for any non-static function,
  5975. # D for any global variable and I for any imported variable.
  5976. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  5977. # which start with @ or ?.
  5978. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5979. " {last_section=section; section=\$ 3};"\
  5980. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5981. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5982. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5983. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5984. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5985. " \$ 0!~/External *\|/{next};"\
  5986. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5987. " {if(hide[section]) next};"\
  5988. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5989. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5990. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5991. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5992. " ' prfx=^$ac_symprfx"
  5993. else
  5994. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5995. fi
  5996. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5997. # Check to see that the pipe works correctly.
  5998. pipe_works=no
  5999. rm -f conftest*
  6000. cat > conftest.$ac_ext <<_LT_EOF
  6001. #ifdef __cplusplus
  6002. extern "C" {
  6003. #endif
  6004. char nm_test_var;
  6005. void nm_test_func(void);
  6006. void nm_test_func(void){}
  6007. #ifdef __cplusplus
  6008. }
  6009. #endif
  6010. int main(){nm_test_var='a';nm_test_func();return(0);}
  6011. _LT_EOF
  6012. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6013. (eval $ac_compile) 2>&5
  6014. ac_status=$?
  6015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6016. test $ac_status = 0; }; then
  6017. # Now try to grab the symbols.
  6018. nlist=conftest.nm
  6019. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6020. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6021. ac_status=$?
  6022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6023. test $ac_status = 0; } && test -s "$nlist"; then
  6024. # Try sorting and uniquifying the output.
  6025. if sort "$nlist" | uniq > "$nlist"T; then
  6026. mv -f "$nlist"T "$nlist"
  6027. else
  6028. rm -f "$nlist"T
  6029. fi
  6030. # Make sure that we snagged all the symbols we need.
  6031. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6032. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6033. cat <<_LT_EOF > conftest.$ac_ext
  6034. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6035. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6036. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6037. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6038. # define LT_DLSYM_CONST
  6039. #elif defined __osf__
  6040. /* This system does not cope well with relocations in const data. */
  6041. # define LT_DLSYM_CONST
  6042. #else
  6043. # define LT_DLSYM_CONST const
  6044. #endif
  6045. #ifdef __cplusplus
  6046. extern "C" {
  6047. #endif
  6048. _LT_EOF
  6049. # Now generate the symbol file.
  6050. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6051. cat <<_LT_EOF >> conftest.$ac_ext
  6052. /* The mapping between symbol names and symbols. */
  6053. LT_DLSYM_CONST struct {
  6054. const char *name;
  6055. void *address;
  6056. }
  6057. lt__PROGRAM__LTX_preloaded_symbols[] =
  6058. {
  6059. { "@PROGRAM@", (void *) 0 },
  6060. _LT_EOF
  6061. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6062. cat <<\_LT_EOF >> conftest.$ac_ext
  6063. {0, (void *) 0}
  6064. };
  6065. /* This works around a problem in FreeBSD linker */
  6066. #ifdef FREEBSD_WORKAROUND
  6067. static const void *lt_preloaded_setup() {
  6068. return lt__PROGRAM__LTX_preloaded_symbols;
  6069. }
  6070. #endif
  6071. #ifdef __cplusplus
  6072. }
  6073. #endif
  6074. _LT_EOF
  6075. # Now try linking the two files.
  6076. mv conftest.$ac_objext conftstm.$ac_objext
  6077. lt_globsym_save_LIBS=$LIBS
  6078. lt_globsym_save_CFLAGS=$CFLAGS
  6079. LIBS=conftstm.$ac_objext
  6080. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6081. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6082. (eval $ac_link) 2>&5
  6083. ac_status=$?
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6085. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6086. pipe_works=yes
  6087. fi
  6088. LIBS=$lt_globsym_save_LIBS
  6089. CFLAGS=$lt_globsym_save_CFLAGS
  6090. else
  6091. echo "cannot find nm_test_func in $nlist" >&5
  6092. fi
  6093. else
  6094. echo "cannot find nm_test_var in $nlist" >&5
  6095. fi
  6096. else
  6097. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6098. fi
  6099. else
  6100. echo "$progname: failed program was:" >&5
  6101. cat conftest.$ac_ext >&5
  6102. fi
  6103. rm -rf conftest* conftst*
  6104. # Do not use the global_symbol_pipe unless it works.
  6105. if test yes = "$pipe_works"; then
  6106. break
  6107. else
  6108. lt_cv_sys_global_symbol_pipe=
  6109. fi
  6110. done
  6111. fi
  6112. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6113. lt_cv_sys_global_symbol_to_cdecl=
  6114. fi
  6115. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6117. $as_echo "failed" >&6; }
  6118. else
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6120. $as_echo "ok" >&6; }
  6121. fi
  6122. # Response file support.
  6123. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6124. nm_file_list_spec='@'
  6125. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6126. nm_file_list_spec='@'
  6127. fi
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6129. $as_echo_n "checking for sysroot... " >&6; }
  6130. # Check whether --with-sysroot was given.
  6131. if test "${with_sysroot+set}" = set; then :
  6132. withval=$with_sysroot;
  6133. else
  6134. with_sysroot=no
  6135. fi
  6136. lt_sysroot=
  6137. case $with_sysroot in #(
  6138. yes)
  6139. if test yes = "$GCC"; then
  6140. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6141. fi
  6142. ;; #(
  6143. /*)
  6144. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6145. ;; #(
  6146. no|'')
  6147. ;; #(
  6148. *)
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6150. $as_echo "$with_sysroot" >&6; }
  6151. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6152. ;;
  6153. esac
  6154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6155. $as_echo "${lt_sysroot:-no}" >&6; }
  6156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6157. $as_echo_n "checking for a working dd... " >&6; }
  6158. if ${ac_cv_path_lt_DD+:} false; then :
  6159. $as_echo_n "(cached) " >&6
  6160. else
  6161. printf 0123456789abcdef0123456789abcdef >conftest.i
  6162. cat conftest.i conftest.i >conftest2.i
  6163. : ${lt_DD:=$DD}
  6164. if test -z "$lt_DD"; then
  6165. ac_path_lt_DD_found=false
  6166. # Loop through the user's path and test for each of PROGNAME-LIST
  6167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6168. for as_dir in $PATH
  6169. do
  6170. IFS=$as_save_IFS
  6171. test -z "$as_dir" && as_dir=.
  6172. for ac_prog in dd; do
  6173. for ac_exec_ext in '' $ac_executable_extensions; do
  6174. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6175. as_fn_executable_p "$ac_path_lt_DD" || continue
  6176. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6177. cmp -s conftest.i conftest.out \
  6178. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6179. fi
  6180. $ac_path_lt_DD_found && break 3
  6181. done
  6182. done
  6183. done
  6184. IFS=$as_save_IFS
  6185. if test -z "$ac_cv_path_lt_DD"; then
  6186. :
  6187. fi
  6188. else
  6189. ac_cv_path_lt_DD=$lt_DD
  6190. fi
  6191. rm -f conftest.i conftest2.i conftest.out
  6192. fi
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6194. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6196. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6197. if ${lt_cv_truncate_bin+:} false; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. printf 0123456789abcdef0123456789abcdef >conftest.i
  6201. cat conftest.i conftest.i >conftest2.i
  6202. lt_cv_truncate_bin=
  6203. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6204. cmp -s conftest.i conftest.out \
  6205. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6206. fi
  6207. rm -f conftest.i conftest2.i conftest.out
  6208. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6209. fi
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6211. $as_echo "$lt_cv_truncate_bin" >&6; }
  6212. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6213. func_cc_basename ()
  6214. {
  6215. for cc_temp in $*""; do
  6216. case $cc_temp in
  6217. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6218. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6219. \-*) ;;
  6220. *) break;;
  6221. esac
  6222. done
  6223. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6224. }
  6225. # Check whether --enable-libtool-lock was given.
  6226. if test "${enable_libtool_lock+set}" = set; then :
  6227. enableval=$enable_libtool_lock;
  6228. fi
  6229. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6230. # Some flags need to be propagated to the compiler or linker for good
  6231. # libtool support.
  6232. case $host in
  6233. ia64-*-hpux*)
  6234. # Find out what ABI is being produced by ac_compile, and set mode
  6235. # options accordingly.
  6236. echo 'int i;' > conftest.$ac_ext
  6237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6238. (eval $ac_compile) 2>&5
  6239. ac_status=$?
  6240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6241. test $ac_status = 0; }; then
  6242. case `/usr/bin/file conftest.$ac_objext` in
  6243. *ELF-32*)
  6244. HPUX_IA64_MODE=32
  6245. ;;
  6246. *ELF-64*)
  6247. HPUX_IA64_MODE=64
  6248. ;;
  6249. esac
  6250. fi
  6251. rm -rf conftest*
  6252. ;;
  6253. *-*-irix6*)
  6254. # Find out what ABI is being produced by ac_compile, and set linker
  6255. # options accordingly.
  6256. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6258. (eval $ac_compile) 2>&5
  6259. ac_status=$?
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6261. test $ac_status = 0; }; then
  6262. if test yes = "$lt_cv_prog_gnu_ld"; then
  6263. case `/usr/bin/file conftest.$ac_objext` in
  6264. *32-bit*)
  6265. LD="${LD-ld} -melf32bsmip"
  6266. ;;
  6267. *N32*)
  6268. LD="${LD-ld} -melf32bmipn32"
  6269. ;;
  6270. *64-bit*)
  6271. LD="${LD-ld} -melf64bmip"
  6272. ;;
  6273. esac
  6274. else
  6275. case `/usr/bin/file conftest.$ac_objext` in
  6276. *32-bit*)
  6277. LD="${LD-ld} -32"
  6278. ;;
  6279. *N32*)
  6280. LD="${LD-ld} -n32"
  6281. ;;
  6282. *64-bit*)
  6283. LD="${LD-ld} -64"
  6284. ;;
  6285. esac
  6286. fi
  6287. fi
  6288. rm -rf conftest*
  6289. ;;
  6290. mips64*-*linux*)
  6291. # Find out what ABI is being produced by ac_compile, and set linker
  6292. # options accordingly.
  6293. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6294. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6295. (eval $ac_compile) 2>&5
  6296. ac_status=$?
  6297. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6298. test $ac_status = 0; }; then
  6299. emul=elf
  6300. case `/usr/bin/file conftest.$ac_objext` in
  6301. *32-bit*)
  6302. emul="${emul}32"
  6303. ;;
  6304. *64-bit*)
  6305. libsuff=64
  6306. emul="${emul}64"
  6307. ;;
  6308. esac
  6309. case `/usr/bin/file conftest.$ac_objext` in
  6310. *MSB*)
  6311. emul="${emul}btsmip"
  6312. ;;
  6313. *LSB*)
  6314. emul="${emul}ltsmip"
  6315. ;;
  6316. esac
  6317. case `/usr/bin/file conftest.$ac_objext` in
  6318. *N32*)
  6319. libsuff=n32
  6320. emul="${emul}n32"
  6321. ;;
  6322. esac
  6323. LD="${LD-ld} -m $emul"
  6324. fi
  6325. rm -rf conftest*
  6326. ;;
  6327. aarch64*-*linux*|x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6328. riscv64*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6329. # Find out what ABI is being produced by ac_compile, and set linker
  6330. # options accordingly. Note that the listed cases only cover the
  6331. # situations where additional linker options are needed (such as when
  6332. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6333. # vice versa); the common cases where no linker options are needed do
  6334. # not appear in the list.
  6335. echo 'int i;' > conftest.$ac_ext
  6336. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6337. (eval $ac_compile) 2>&5
  6338. ac_status=$?
  6339. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6340. test $ac_status = 0; }; then
  6341. case `/usr/bin/file conftest.o` in
  6342. *32-bit*)
  6343. case $host in
  6344. x86_64-*kfreebsd*-gnu)
  6345. LD="${LD-ld} -m elf_i386_fbsd"
  6346. ;;
  6347. x86_64-*linux*-gnux32)
  6348. libsuff=x32
  6349. LD="${LD-ld} -m elf32_x86_64"
  6350. ;;
  6351. x86_64-*linux*)
  6352. case `/usr/bin/file conftest.o` in
  6353. *x86-64*)
  6354. LD="${LD-ld} -m elf32_x86_64"
  6355. ;;
  6356. *)
  6357. LD="${LD-ld} -m elf_i386"
  6358. ;;
  6359. esac
  6360. ;;
  6361. powerpc64le-*linux*)
  6362. LD="${LD-ld} -m elf32lppclinux"
  6363. ;;
  6364. powerpc64-*linux*)
  6365. LD="${LD-ld} -m elf32ppclinux"
  6366. ;;
  6367. s390x-*linux*)
  6368. LD="${LD-ld} -m elf_s390"
  6369. ;;
  6370. sparc64-*linux*)
  6371. LD="${LD-ld} -m elf32_sparc"
  6372. ;;
  6373. esac
  6374. ;;
  6375. *64-bit*)
  6376. libsuff=64
  6377. case $host in
  6378. x86_64-*kfreebsd*-gnu)
  6379. LD="${LD-ld} -m elf_x86_64_fbsd"
  6380. ;;
  6381. x86_64-*linux*)
  6382. LD="${LD-ld} -m elf_x86_64"
  6383. ;;
  6384. powerpcle-*linux*)
  6385. LD="${LD-ld} -m elf64lppc"
  6386. ;;
  6387. powerpc-*linux*)
  6388. LD="${LD-ld} -m elf64ppc"
  6389. ;;
  6390. s390*-*linux*|s390*-*tpf*)
  6391. LD="${LD-ld} -m elf64_s390"
  6392. ;;
  6393. sparc*-*linux*)
  6394. LD="${LD-ld} -m elf64_sparc"
  6395. ;;
  6396. esac
  6397. ;;
  6398. esac
  6399. fi
  6400. rm -rf conftest*
  6401. ;;
  6402. *-*-sco3.2v5*)
  6403. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6404. SAVE_CFLAGS=$CFLAGS
  6405. CFLAGS="$CFLAGS -belf"
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6407. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6408. if ${lt_cv_cc_needs_belf+:} false; then :
  6409. $as_echo_n "(cached) " >&6
  6410. else
  6411. ac_ext=c
  6412. ac_cpp='$CPP $CPPFLAGS'
  6413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6417. /* end confdefs.h. */
  6418. int
  6419. main ()
  6420. {
  6421. ;
  6422. return 0;
  6423. }
  6424. _ACEOF
  6425. if ac_fn_c_try_link "$LINENO"; then :
  6426. lt_cv_cc_needs_belf=yes
  6427. else
  6428. lt_cv_cc_needs_belf=no
  6429. fi
  6430. rm -f core conftest.err conftest.$ac_objext \
  6431. conftest$ac_exeext conftest.$ac_ext
  6432. ac_ext=c
  6433. ac_cpp='$CPP $CPPFLAGS'
  6434. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6435. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6436. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6437. fi
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6439. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6440. if test yes != "$lt_cv_cc_needs_belf"; then
  6441. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6442. CFLAGS=$SAVE_CFLAGS
  6443. fi
  6444. ;;
  6445. *-*solaris*)
  6446. # Find out what ABI is being produced by ac_compile, and set linker
  6447. # options accordingly.
  6448. echo 'int i;' > conftest.$ac_ext
  6449. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6450. (eval $ac_compile) 2>&5
  6451. ac_status=$?
  6452. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6453. test $ac_status = 0; }; then
  6454. case `/usr/bin/file conftest.o` in
  6455. *64-bit*)
  6456. case $lt_cv_prog_gnu_ld in
  6457. yes*)
  6458. case $host in
  6459. i?86-*-solaris*|x86_64-*-solaris*)
  6460. LD="${LD-ld} -m elf_x86_64"
  6461. ;;
  6462. sparc*-*-solaris*)
  6463. LD="${LD-ld} -m elf64_sparc"
  6464. ;;
  6465. esac
  6466. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6467. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6468. LD=${LD-ld}_sol2
  6469. fi
  6470. ;;
  6471. *)
  6472. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6473. LD="${LD-ld} -64"
  6474. fi
  6475. ;;
  6476. esac
  6477. ;;
  6478. esac
  6479. fi
  6480. rm -rf conftest*
  6481. ;;
  6482. esac
  6483. need_locks=$enable_libtool_lock
  6484. if test -n "$ac_tool_prefix"; then
  6485. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6486. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6488. $as_echo_n "checking for $ac_word... " >&6; }
  6489. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6490. $as_echo_n "(cached) " >&6
  6491. else
  6492. if test -n "$MANIFEST_TOOL"; then
  6493. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6494. else
  6495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6496. for as_dir in $PATH
  6497. do
  6498. IFS=$as_save_IFS
  6499. test -z "$as_dir" && as_dir=.
  6500. for ac_exec_ext in '' $ac_executable_extensions; do
  6501. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6502. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6503. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6504. break 2
  6505. fi
  6506. done
  6507. done
  6508. IFS=$as_save_IFS
  6509. fi
  6510. fi
  6511. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6512. if test -n "$MANIFEST_TOOL"; then
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6514. $as_echo "$MANIFEST_TOOL" >&6; }
  6515. else
  6516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6517. $as_echo "no" >&6; }
  6518. fi
  6519. fi
  6520. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6521. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6522. # Extract the first word of "mt", so it can be a program name with args.
  6523. set dummy mt; ac_word=$2
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6525. $as_echo_n "checking for $ac_word... " >&6; }
  6526. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6530. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6531. else
  6532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6533. for as_dir in $PATH
  6534. do
  6535. IFS=$as_save_IFS
  6536. test -z "$as_dir" && as_dir=.
  6537. for ac_exec_ext in '' $ac_executable_extensions; do
  6538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6539. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6541. break 2
  6542. fi
  6543. done
  6544. done
  6545. IFS=$as_save_IFS
  6546. fi
  6547. fi
  6548. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6549. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6551. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6552. else
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6554. $as_echo "no" >&6; }
  6555. fi
  6556. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6557. MANIFEST_TOOL=":"
  6558. else
  6559. case $cross_compiling:$ac_tool_warned in
  6560. yes:)
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6562. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6563. ac_tool_warned=yes ;;
  6564. esac
  6565. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6566. fi
  6567. else
  6568. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6569. fi
  6570. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6572. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6573. if ${lt_cv_path_mainfest_tool+:} false; then :
  6574. $as_echo_n "(cached) " >&6
  6575. else
  6576. lt_cv_path_mainfest_tool=no
  6577. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6578. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6579. cat conftest.err >&5
  6580. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6581. lt_cv_path_mainfest_tool=yes
  6582. fi
  6583. rm -f conftest*
  6584. fi
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6586. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6587. if test yes != "$lt_cv_path_mainfest_tool"; then
  6588. MANIFEST_TOOL=:
  6589. fi
  6590. case $host_os in
  6591. rhapsody* | darwin*)
  6592. if test -n "$ac_tool_prefix"; then
  6593. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6594. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6596. $as_echo_n "checking for $ac_word... " >&6; }
  6597. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6598. $as_echo_n "(cached) " >&6
  6599. else
  6600. if test -n "$DSYMUTIL"; then
  6601. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6602. else
  6603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6604. for as_dir in $PATH
  6605. do
  6606. IFS=$as_save_IFS
  6607. test -z "$as_dir" && as_dir=.
  6608. for ac_exec_ext in '' $ac_executable_extensions; do
  6609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6610. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6612. break 2
  6613. fi
  6614. done
  6615. done
  6616. IFS=$as_save_IFS
  6617. fi
  6618. fi
  6619. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6620. if test -n "$DSYMUTIL"; then
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6622. $as_echo "$DSYMUTIL" >&6; }
  6623. else
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6625. $as_echo "no" >&6; }
  6626. fi
  6627. fi
  6628. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6629. ac_ct_DSYMUTIL=$DSYMUTIL
  6630. # Extract the first word of "dsymutil", so it can be a program name with args.
  6631. set dummy dsymutil; ac_word=$2
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6633. $as_echo_n "checking for $ac_word... " >&6; }
  6634. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6635. $as_echo_n "(cached) " >&6
  6636. else
  6637. if test -n "$ac_ct_DSYMUTIL"; then
  6638. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6639. else
  6640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6641. for as_dir in $PATH
  6642. do
  6643. IFS=$as_save_IFS
  6644. test -z "$as_dir" && as_dir=.
  6645. for ac_exec_ext in '' $ac_executable_extensions; do
  6646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6647. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6649. break 2
  6650. fi
  6651. done
  6652. done
  6653. IFS=$as_save_IFS
  6654. fi
  6655. fi
  6656. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6657. if test -n "$ac_ct_DSYMUTIL"; then
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6659. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6660. else
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6662. $as_echo "no" >&6; }
  6663. fi
  6664. if test "x$ac_ct_DSYMUTIL" = x; then
  6665. DSYMUTIL=":"
  6666. else
  6667. case $cross_compiling:$ac_tool_warned in
  6668. yes:)
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6670. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6671. ac_tool_warned=yes ;;
  6672. esac
  6673. DSYMUTIL=$ac_ct_DSYMUTIL
  6674. fi
  6675. else
  6676. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6677. fi
  6678. if test -n "$ac_tool_prefix"; then
  6679. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6680. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6682. $as_echo_n "checking for $ac_word... " >&6; }
  6683. if ${ac_cv_prog_NMEDIT+:} false; then :
  6684. $as_echo_n "(cached) " >&6
  6685. else
  6686. if test -n "$NMEDIT"; then
  6687. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6688. else
  6689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6690. for as_dir in $PATH
  6691. do
  6692. IFS=$as_save_IFS
  6693. test -z "$as_dir" && as_dir=.
  6694. for ac_exec_ext in '' $ac_executable_extensions; do
  6695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6696. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6698. break 2
  6699. fi
  6700. done
  6701. done
  6702. IFS=$as_save_IFS
  6703. fi
  6704. fi
  6705. NMEDIT=$ac_cv_prog_NMEDIT
  6706. if test -n "$NMEDIT"; then
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6708. $as_echo "$NMEDIT" >&6; }
  6709. else
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6711. $as_echo "no" >&6; }
  6712. fi
  6713. fi
  6714. if test -z "$ac_cv_prog_NMEDIT"; then
  6715. ac_ct_NMEDIT=$NMEDIT
  6716. # Extract the first word of "nmedit", so it can be a program name with args.
  6717. set dummy nmedit; ac_word=$2
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6719. $as_echo_n "checking for $ac_word... " >&6; }
  6720. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. if test -n "$ac_ct_NMEDIT"; then
  6724. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6725. else
  6726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6727. for as_dir in $PATH
  6728. do
  6729. IFS=$as_save_IFS
  6730. test -z "$as_dir" && as_dir=.
  6731. for ac_exec_ext in '' $ac_executable_extensions; do
  6732. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6733. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6735. break 2
  6736. fi
  6737. done
  6738. done
  6739. IFS=$as_save_IFS
  6740. fi
  6741. fi
  6742. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6743. if test -n "$ac_ct_NMEDIT"; then
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6745. $as_echo "$ac_ct_NMEDIT" >&6; }
  6746. else
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6748. $as_echo "no" >&6; }
  6749. fi
  6750. if test "x$ac_ct_NMEDIT" = x; then
  6751. NMEDIT=":"
  6752. else
  6753. case $cross_compiling:$ac_tool_warned in
  6754. yes:)
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6756. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6757. ac_tool_warned=yes ;;
  6758. esac
  6759. NMEDIT=$ac_ct_NMEDIT
  6760. fi
  6761. else
  6762. NMEDIT="$ac_cv_prog_NMEDIT"
  6763. fi
  6764. if test -n "$ac_tool_prefix"; then
  6765. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6766. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6768. $as_echo_n "checking for $ac_word... " >&6; }
  6769. if ${ac_cv_prog_LIPO+:} false; then :
  6770. $as_echo_n "(cached) " >&6
  6771. else
  6772. if test -n "$LIPO"; then
  6773. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6774. else
  6775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6776. for as_dir in $PATH
  6777. do
  6778. IFS=$as_save_IFS
  6779. test -z "$as_dir" && as_dir=.
  6780. for ac_exec_ext in '' $ac_executable_extensions; do
  6781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6782. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6784. break 2
  6785. fi
  6786. done
  6787. done
  6788. IFS=$as_save_IFS
  6789. fi
  6790. fi
  6791. LIPO=$ac_cv_prog_LIPO
  6792. if test -n "$LIPO"; then
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6794. $as_echo "$LIPO" >&6; }
  6795. else
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6797. $as_echo "no" >&6; }
  6798. fi
  6799. fi
  6800. if test -z "$ac_cv_prog_LIPO"; then
  6801. ac_ct_LIPO=$LIPO
  6802. # Extract the first word of "lipo", so it can be a program name with args.
  6803. set dummy lipo; ac_word=$2
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6805. $as_echo_n "checking for $ac_word... " >&6; }
  6806. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6807. $as_echo_n "(cached) " >&6
  6808. else
  6809. if test -n "$ac_ct_LIPO"; then
  6810. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6811. else
  6812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6813. for as_dir in $PATH
  6814. do
  6815. IFS=$as_save_IFS
  6816. test -z "$as_dir" && as_dir=.
  6817. for ac_exec_ext in '' $ac_executable_extensions; do
  6818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6819. ac_cv_prog_ac_ct_LIPO="lipo"
  6820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6821. break 2
  6822. fi
  6823. done
  6824. done
  6825. IFS=$as_save_IFS
  6826. fi
  6827. fi
  6828. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6829. if test -n "$ac_ct_LIPO"; then
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6831. $as_echo "$ac_ct_LIPO" >&6; }
  6832. else
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6834. $as_echo "no" >&6; }
  6835. fi
  6836. if test "x$ac_ct_LIPO" = x; then
  6837. LIPO=":"
  6838. else
  6839. case $cross_compiling:$ac_tool_warned in
  6840. yes:)
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6843. ac_tool_warned=yes ;;
  6844. esac
  6845. LIPO=$ac_ct_LIPO
  6846. fi
  6847. else
  6848. LIPO="$ac_cv_prog_LIPO"
  6849. fi
  6850. if test -n "$ac_tool_prefix"; then
  6851. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6852. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6854. $as_echo_n "checking for $ac_word... " >&6; }
  6855. if ${ac_cv_prog_OTOOL+:} false; then :
  6856. $as_echo_n "(cached) " >&6
  6857. else
  6858. if test -n "$OTOOL"; then
  6859. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. test -z "$as_dir" && as_dir=.
  6866. for ac_exec_ext in '' $ac_executable_extensions; do
  6867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6868. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6870. break 2
  6871. fi
  6872. done
  6873. done
  6874. IFS=$as_save_IFS
  6875. fi
  6876. fi
  6877. OTOOL=$ac_cv_prog_OTOOL
  6878. if test -n "$OTOOL"; then
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6880. $as_echo "$OTOOL" >&6; }
  6881. else
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6883. $as_echo "no" >&6; }
  6884. fi
  6885. fi
  6886. if test -z "$ac_cv_prog_OTOOL"; then
  6887. ac_ct_OTOOL=$OTOOL
  6888. # Extract the first word of "otool", so it can be a program name with args.
  6889. set dummy otool; ac_word=$2
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6891. $as_echo_n "checking for $ac_word... " >&6; }
  6892. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6893. $as_echo_n "(cached) " >&6
  6894. else
  6895. if test -n "$ac_ct_OTOOL"; then
  6896. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6897. else
  6898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6899. for as_dir in $PATH
  6900. do
  6901. IFS=$as_save_IFS
  6902. test -z "$as_dir" && as_dir=.
  6903. for ac_exec_ext in '' $ac_executable_extensions; do
  6904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6905. ac_cv_prog_ac_ct_OTOOL="otool"
  6906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6907. break 2
  6908. fi
  6909. done
  6910. done
  6911. IFS=$as_save_IFS
  6912. fi
  6913. fi
  6914. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6915. if test -n "$ac_ct_OTOOL"; then
  6916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6917. $as_echo "$ac_ct_OTOOL" >&6; }
  6918. else
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6920. $as_echo "no" >&6; }
  6921. fi
  6922. if test "x$ac_ct_OTOOL" = x; then
  6923. OTOOL=":"
  6924. else
  6925. case $cross_compiling:$ac_tool_warned in
  6926. yes:)
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6928. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6929. ac_tool_warned=yes ;;
  6930. esac
  6931. OTOOL=$ac_ct_OTOOL
  6932. fi
  6933. else
  6934. OTOOL="$ac_cv_prog_OTOOL"
  6935. fi
  6936. if test -n "$ac_tool_prefix"; then
  6937. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6938. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6940. $as_echo_n "checking for $ac_word... " >&6; }
  6941. if ${ac_cv_prog_OTOOL64+:} false; then :
  6942. $as_echo_n "(cached) " >&6
  6943. else
  6944. if test -n "$OTOOL64"; then
  6945. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6946. else
  6947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6948. for as_dir in $PATH
  6949. do
  6950. IFS=$as_save_IFS
  6951. test -z "$as_dir" && as_dir=.
  6952. for ac_exec_ext in '' $ac_executable_extensions; do
  6953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6954. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6956. break 2
  6957. fi
  6958. done
  6959. done
  6960. IFS=$as_save_IFS
  6961. fi
  6962. fi
  6963. OTOOL64=$ac_cv_prog_OTOOL64
  6964. if test -n "$OTOOL64"; then
  6965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6966. $as_echo "$OTOOL64" >&6; }
  6967. else
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6969. $as_echo "no" >&6; }
  6970. fi
  6971. fi
  6972. if test -z "$ac_cv_prog_OTOOL64"; then
  6973. ac_ct_OTOOL64=$OTOOL64
  6974. # Extract the first word of "otool64", so it can be a program name with args.
  6975. set dummy otool64; ac_word=$2
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6977. $as_echo_n "checking for $ac_word... " >&6; }
  6978. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. if test -n "$ac_ct_OTOOL64"; then
  6982. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6983. else
  6984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6985. for as_dir in $PATH
  6986. do
  6987. IFS=$as_save_IFS
  6988. test -z "$as_dir" && as_dir=.
  6989. for ac_exec_ext in '' $ac_executable_extensions; do
  6990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6991. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6993. break 2
  6994. fi
  6995. done
  6996. done
  6997. IFS=$as_save_IFS
  6998. fi
  6999. fi
  7000. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7001. if test -n "$ac_ct_OTOOL64"; then
  7002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7003. $as_echo "$ac_ct_OTOOL64" >&6; }
  7004. else
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7006. $as_echo "no" >&6; }
  7007. fi
  7008. if test "x$ac_ct_OTOOL64" = x; then
  7009. OTOOL64=":"
  7010. else
  7011. case $cross_compiling:$ac_tool_warned in
  7012. yes:)
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7014. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7015. ac_tool_warned=yes ;;
  7016. esac
  7017. OTOOL64=$ac_ct_OTOOL64
  7018. fi
  7019. else
  7020. OTOOL64="$ac_cv_prog_OTOOL64"
  7021. fi
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7023. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7024. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. lt_cv_apple_cc_single_mod=no
  7028. if test -z "$LT_MULTI_MODULE"; then
  7029. # By default we will add the -single_module flag. You can override
  7030. # by either setting the environment variable LT_MULTI_MODULE
  7031. # non-empty at configure time, or by adding -multi_module to the
  7032. # link flags.
  7033. rm -rf libconftest.dylib*
  7034. echo "int foo(void){return 1;}" > conftest.c
  7035. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7036. -dynamiclib -Wl,-single_module conftest.c" >&5
  7037. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7038. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7039. _lt_result=$?
  7040. # If there is a non-empty error log, and "single_module"
  7041. # appears in it, assume the flag caused a linker warning
  7042. if test -s conftest.err && $GREP single_module conftest.err; then
  7043. cat conftest.err >&5
  7044. # Otherwise, if the output was created with a 0 exit code from
  7045. # the compiler, it worked.
  7046. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7047. lt_cv_apple_cc_single_mod=yes
  7048. else
  7049. cat conftest.err >&5
  7050. fi
  7051. rm -rf libconftest.dylib*
  7052. rm -f conftest.*
  7053. fi
  7054. fi
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7056. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7058. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7059. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7060. $as_echo_n "(cached) " >&6
  7061. else
  7062. lt_cv_ld_exported_symbols_list=no
  7063. save_LDFLAGS=$LDFLAGS
  7064. echo "_main" > conftest.sym
  7065. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7067. /* end confdefs.h. */
  7068. int
  7069. main ()
  7070. {
  7071. ;
  7072. return 0;
  7073. }
  7074. _ACEOF
  7075. if ac_fn_c_try_link "$LINENO"; then :
  7076. lt_cv_ld_exported_symbols_list=yes
  7077. else
  7078. lt_cv_ld_exported_symbols_list=no
  7079. fi
  7080. rm -f core conftest.err conftest.$ac_objext \
  7081. conftest$ac_exeext conftest.$ac_ext
  7082. LDFLAGS=$save_LDFLAGS
  7083. fi
  7084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7085. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7087. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7088. if ${lt_cv_ld_force_load+:} false; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. lt_cv_ld_force_load=no
  7092. cat > conftest.c << _LT_EOF
  7093. int forced_loaded() { return 2;}
  7094. _LT_EOF
  7095. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7096. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7097. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  7098. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  7099. echo "$RANLIB libconftest.a" >&5
  7100. $RANLIB libconftest.a 2>&5
  7101. cat > conftest.c << _LT_EOF
  7102. int main() { return 0;}
  7103. _LT_EOF
  7104. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7105. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7106. _lt_result=$?
  7107. if test -s conftest.err && $GREP force_load conftest.err; then
  7108. cat conftest.err >&5
  7109. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7110. lt_cv_ld_force_load=yes
  7111. else
  7112. cat conftest.err >&5
  7113. fi
  7114. rm -f conftest.err libconftest.a conftest conftest.c
  7115. rm -rf conftest.dSYM
  7116. fi
  7117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7118. $as_echo "$lt_cv_ld_force_load" >&6; }
  7119. case $host_os in
  7120. rhapsody* | darwin1.[012])
  7121. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7122. darwin1.*)
  7123. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7124. darwin*) # darwin 5.x on
  7125. # if running on 10.5 or later, the deployment target defaults
  7126. # to the OS version, if on x86, and 10.4, the deployment
  7127. # target defaults to 10.4. Don't you love it?
  7128. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7129. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7130. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7131. 10.[012][,.]*)
  7132. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7133. 10.*)
  7134. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7135. esac
  7136. ;;
  7137. esac
  7138. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7139. _lt_dar_single_mod='$single_module'
  7140. fi
  7141. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7142. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7143. else
  7144. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7145. fi
  7146. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7147. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7148. else
  7149. _lt_dsymutil=
  7150. fi
  7151. ;;
  7152. esac
  7153. # func_munge_path_list VARIABLE PATH
  7154. # -----------------------------------
  7155. # VARIABLE is name of variable containing _space_ separated list of
  7156. # directories to be munged by the contents of PATH, which is string
  7157. # having a format:
  7158. # "DIR[:DIR]:"
  7159. # string "DIR[ DIR]" will be prepended to VARIABLE
  7160. # ":DIR[:DIR]"
  7161. # string "DIR[ DIR]" will be appended to VARIABLE
  7162. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7163. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7164. # "DIRA[ DIRA]" will be appended to VARIABLE
  7165. # "DIR[:DIR]"
  7166. # VARIABLE will be replaced by "DIR[ DIR]"
  7167. func_munge_path_list ()
  7168. {
  7169. case x$2 in
  7170. x)
  7171. ;;
  7172. *:)
  7173. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7174. ;;
  7175. x:*)
  7176. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7177. ;;
  7178. *::*)
  7179. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7180. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7181. ;;
  7182. *)
  7183. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7184. ;;
  7185. esac
  7186. }
  7187. for ac_header in dlfcn.h
  7188. do :
  7189. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7190. "
  7191. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7192. cat >>confdefs.h <<_ACEOF
  7193. #define HAVE_DLFCN_H 1
  7194. _ACEOF
  7195. fi
  7196. done
  7197. # Set options
  7198. # Check whether --enable-static was given.
  7199. if test "${enable_static+set}" = set; then :
  7200. enableval=$enable_static; p=${PACKAGE-default}
  7201. case $enableval in
  7202. yes) enable_static=yes ;;
  7203. no) enable_static=no ;;
  7204. *)
  7205. enable_static=no
  7206. # Look at the argument we got. We use all the common list separators.
  7207. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7208. for pkg in $enableval; do
  7209. IFS=$lt_save_ifs
  7210. if test "X$pkg" = "X$p"; then
  7211. enable_static=yes
  7212. fi
  7213. done
  7214. IFS=$lt_save_ifs
  7215. ;;
  7216. esac
  7217. else
  7218. enable_static=no
  7219. fi
  7220. enable_dlopen=no
  7221. enable_win32_dll=no
  7222. # Check whether --enable-shared was given.
  7223. if test "${enable_shared+set}" = set; then :
  7224. enableval=$enable_shared; p=${PACKAGE-default}
  7225. case $enableval in
  7226. yes) enable_shared=yes ;;
  7227. no) enable_shared=no ;;
  7228. *)
  7229. enable_shared=no
  7230. # Look at the argument we got. We use all the common list separators.
  7231. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7232. for pkg in $enableval; do
  7233. IFS=$lt_save_ifs
  7234. if test "X$pkg" = "X$p"; then
  7235. enable_shared=yes
  7236. fi
  7237. done
  7238. IFS=$lt_save_ifs
  7239. ;;
  7240. esac
  7241. else
  7242. enable_shared=yes
  7243. fi
  7244. # Check whether --with-pic was given.
  7245. if test "${with_pic+set}" = set; then :
  7246. withval=$with_pic; lt_p=${PACKAGE-default}
  7247. case $withval in
  7248. yes|no) pic_mode=$withval ;;
  7249. *)
  7250. pic_mode=default
  7251. # Look at the argument we got. We use all the common list separators.
  7252. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7253. for lt_pkg in $withval; do
  7254. IFS=$lt_save_ifs
  7255. if test "X$lt_pkg" = "X$lt_p"; then
  7256. pic_mode=yes
  7257. fi
  7258. done
  7259. IFS=$lt_save_ifs
  7260. ;;
  7261. esac
  7262. else
  7263. pic_mode=default
  7264. fi
  7265. # Check whether --enable-fast-install was given.
  7266. if test "${enable_fast_install+set}" = set; then :
  7267. enableval=$enable_fast_install; p=${PACKAGE-default}
  7268. case $enableval in
  7269. yes) enable_fast_install=yes ;;
  7270. no) enable_fast_install=no ;;
  7271. *)
  7272. enable_fast_install=no
  7273. # Look at the argument we got. We use all the common list separators.
  7274. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7275. for pkg in $enableval; do
  7276. IFS=$lt_save_ifs
  7277. if test "X$pkg" = "X$p"; then
  7278. enable_fast_install=yes
  7279. fi
  7280. done
  7281. IFS=$lt_save_ifs
  7282. ;;
  7283. esac
  7284. else
  7285. enable_fast_install=yes
  7286. fi
  7287. shared_archive_member_spec=
  7288. case $host,$enable_shared in
  7289. power*-*-aix[5-9]*,yes)
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7291. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7292. # Check whether --with-aix-soname was given.
  7293. if test "${with_aix_soname+set}" = set; then :
  7294. withval=$with_aix_soname; case $withval in
  7295. aix|svr4|both)
  7296. ;;
  7297. *)
  7298. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7299. ;;
  7300. esac
  7301. lt_cv_with_aix_soname=$with_aix_soname
  7302. else
  7303. if ${lt_cv_with_aix_soname+:} false; then :
  7304. $as_echo_n "(cached) " >&6
  7305. else
  7306. lt_cv_with_aix_soname=aix
  7307. fi
  7308. with_aix_soname=$lt_cv_with_aix_soname
  7309. fi
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7311. $as_echo "$with_aix_soname" >&6; }
  7312. if test aix != "$with_aix_soname"; then
  7313. # For the AIX way of multilib, we name the shared archive member
  7314. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7315. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7316. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7317. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7318. if test 64 = "${OBJECT_MODE-32}"; then
  7319. shared_archive_member_spec=shr_64
  7320. else
  7321. shared_archive_member_spec=shr
  7322. fi
  7323. fi
  7324. ;;
  7325. *)
  7326. with_aix_soname=aix
  7327. ;;
  7328. esac
  7329. # This can be used to rebuild libtool when needed
  7330. LIBTOOL_DEPS=$ltmain
  7331. # Always use our own libtool.
  7332. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7333. test -z "$LN_S" && LN_S="ln -s"
  7334. if test -n "${ZSH_VERSION+set}"; then
  7335. setopt NO_GLOB_SUBST
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7338. $as_echo_n "checking for objdir... " >&6; }
  7339. if ${lt_cv_objdir+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. rm -f .libs 2>/dev/null
  7343. mkdir .libs 2>/dev/null
  7344. if test -d .libs; then
  7345. lt_cv_objdir=.libs
  7346. else
  7347. # MS-DOS does not allow filenames that begin with a dot.
  7348. lt_cv_objdir=_libs
  7349. fi
  7350. rmdir .libs 2>/dev/null
  7351. fi
  7352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7353. $as_echo "$lt_cv_objdir" >&6; }
  7354. objdir=$lt_cv_objdir
  7355. cat >>confdefs.h <<_ACEOF
  7356. #define LT_OBJDIR "$lt_cv_objdir/"
  7357. _ACEOF
  7358. case $host_os in
  7359. aix3*)
  7360. # AIX sometimes has problems with the GCC collect2 program. For some
  7361. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7362. # vanish in a puff of smoke.
  7363. if test set != "${COLLECT_NAMES+set}"; then
  7364. COLLECT_NAMES=
  7365. export COLLECT_NAMES
  7366. fi
  7367. ;;
  7368. esac
  7369. # Global variables:
  7370. ofile=libtool
  7371. can_build_shared=yes
  7372. # All known linkers require a '.a' archive for static linking (except MSVC and
  7373. # ICC, which need '.lib').
  7374. libext=a
  7375. with_gnu_ld=$lt_cv_prog_gnu_ld
  7376. old_CC=$CC
  7377. old_CFLAGS=$CFLAGS
  7378. # Set sane defaults for various variables
  7379. test -z "$CC" && CC=cc
  7380. test -z "$LTCC" && LTCC=$CC
  7381. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7382. test -z "$LD" && LD=ld
  7383. test -z "$ac_objext" && ac_objext=o
  7384. func_cc_basename $compiler
  7385. cc_basename=$func_cc_basename_result
  7386. # Only perform the check for file, if the check method requires it
  7387. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7388. case $deplibs_check_method in
  7389. file_magic*)
  7390. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7392. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7393. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7394. $as_echo_n "(cached) " >&6
  7395. else
  7396. case $MAGIC_CMD in
  7397. [\\/*] | ?:[\\/]*)
  7398. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7399. ;;
  7400. *)
  7401. lt_save_MAGIC_CMD=$MAGIC_CMD
  7402. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7403. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7404. for ac_dir in $ac_dummy; do
  7405. IFS=$lt_save_ifs
  7406. test -z "$ac_dir" && ac_dir=.
  7407. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7408. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7409. if test -n "$file_magic_test_file"; then
  7410. case $deplibs_check_method in
  7411. "file_magic "*)
  7412. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7413. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7414. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7415. $EGREP "$file_magic_regex" > /dev/null; then
  7416. :
  7417. else
  7418. cat <<_LT_EOF 1>&2
  7419. *** Warning: the command libtool uses to detect shared libraries,
  7420. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7421. *** The result is that libtool may fail to recognize shared libraries
  7422. *** as such. This will affect the creation of libtool libraries that
  7423. *** depend on shared libraries, but programs linked with such libtool
  7424. *** libraries will work regardless of this problem. Nevertheless, you
  7425. *** may want to report the problem to your system manager and/or to
  7426. *** bug-libtool@gnu.org
  7427. _LT_EOF
  7428. fi ;;
  7429. esac
  7430. fi
  7431. break
  7432. fi
  7433. done
  7434. IFS=$lt_save_ifs
  7435. MAGIC_CMD=$lt_save_MAGIC_CMD
  7436. ;;
  7437. esac
  7438. fi
  7439. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7440. if test -n "$MAGIC_CMD"; then
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7442. $as_echo "$MAGIC_CMD" >&6; }
  7443. else
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7445. $as_echo "no" >&6; }
  7446. fi
  7447. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7448. if test -n "$ac_tool_prefix"; then
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7450. $as_echo_n "checking for file... " >&6; }
  7451. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7452. $as_echo_n "(cached) " >&6
  7453. else
  7454. case $MAGIC_CMD in
  7455. [\\/*] | ?:[\\/]*)
  7456. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7457. ;;
  7458. *)
  7459. lt_save_MAGIC_CMD=$MAGIC_CMD
  7460. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7461. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7462. for ac_dir in $ac_dummy; do
  7463. IFS=$lt_save_ifs
  7464. test -z "$ac_dir" && ac_dir=.
  7465. if test -f "$ac_dir/file"; then
  7466. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7467. if test -n "$file_magic_test_file"; then
  7468. case $deplibs_check_method in
  7469. "file_magic "*)
  7470. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7471. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7472. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7473. $EGREP "$file_magic_regex" > /dev/null; then
  7474. :
  7475. else
  7476. cat <<_LT_EOF 1>&2
  7477. *** Warning: the command libtool uses to detect shared libraries,
  7478. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7479. *** The result is that libtool may fail to recognize shared libraries
  7480. *** as such. This will affect the creation of libtool libraries that
  7481. *** depend on shared libraries, but programs linked with such libtool
  7482. *** libraries will work regardless of this problem. Nevertheless, you
  7483. *** may want to report the problem to your system manager and/or to
  7484. *** bug-libtool@gnu.org
  7485. _LT_EOF
  7486. fi ;;
  7487. esac
  7488. fi
  7489. break
  7490. fi
  7491. done
  7492. IFS=$lt_save_ifs
  7493. MAGIC_CMD=$lt_save_MAGIC_CMD
  7494. ;;
  7495. esac
  7496. fi
  7497. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7498. if test -n "$MAGIC_CMD"; then
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7500. $as_echo "$MAGIC_CMD" >&6; }
  7501. else
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7503. $as_echo "no" >&6; }
  7504. fi
  7505. else
  7506. MAGIC_CMD=:
  7507. fi
  7508. fi
  7509. fi
  7510. ;;
  7511. esac
  7512. # Use C for the default configuration in the libtool script
  7513. lt_save_CC=$CC
  7514. ac_ext=c
  7515. ac_cpp='$CPP $CPPFLAGS'
  7516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7519. # Source file extension for C test sources.
  7520. ac_ext=c
  7521. # Object file extension for compiled C test sources.
  7522. objext=o
  7523. objext=$objext
  7524. # Code to be used in simple compile tests
  7525. lt_simple_compile_test_code="int some_variable = 0;"
  7526. # Code to be used in simple link tests
  7527. lt_simple_link_test_code='int main(){return(0);}'
  7528. # If no C compiler was specified, use CC.
  7529. LTCC=${LTCC-"$CC"}
  7530. # If no C compiler flags were specified, use CFLAGS.
  7531. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7532. # Allow CC to be a program name with arguments.
  7533. compiler=$CC
  7534. # Save the default compiler, since it gets overwritten when the other
  7535. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7536. compiler_DEFAULT=$CC
  7537. # save warnings/boilerplate of simple test code
  7538. ac_outfile=conftest.$ac_objext
  7539. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7540. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7541. _lt_compiler_boilerplate=`cat conftest.err`
  7542. $RM conftest*
  7543. ac_outfile=conftest.$ac_objext
  7544. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7545. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7546. _lt_linker_boilerplate=`cat conftest.err`
  7547. $RM -r conftest*
  7548. ## CAVEAT EMPTOR:
  7549. ## There is no encapsulation within the following macros, do not change
  7550. ## the running order or otherwise move them around unless you know exactly
  7551. ## what you are doing...
  7552. if test -n "$compiler"; then
  7553. lt_prog_compiler_no_builtin_flag=
  7554. if test yes = "$GCC"; then
  7555. case $cc_basename in
  7556. nvcc*)
  7557. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7558. *)
  7559. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7560. esac
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7562. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7563. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7564. $as_echo_n "(cached) " >&6
  7565. else
  7566. lt_cv_prog_compiler_rtti_exceptions=no
  7567. ac_outfile=conftest.$ac_objext
  7568. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7569. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7570. # Insert the option either (1) after the last *FLAGS variable, or
  7571. # (2) before a word containing "conftest.", or (3) at the end.
  7572. # Note that $ac_compile itself does not contain backslashes and begins
  7573. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7574. # The option is referenced via a variable to avoid confusing sed.
  7575. lt_compile=`echo "$ac_compile" | $SED \
  7576. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7577. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7578. -e 's:$: $lt_compiler_flag:'`
  7579. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7580. (eval "$lt_compile" 2>conftest.err)
  7581. ac_status=$?
  7582. cat conftest.err >&5
  7583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7584. if (exit $ac_status) && test -s "$ac_outfile"; then
  7585. # The compiler can only warn and ignore the option if not recognized
  7586. # So say no if there are warnings other than the usual output.
  7587. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7588. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7589. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7590. lt_cv_prog_compiler_rtti_exceptions=yes
  7591. fi
  7592. fi
  7593. $RM conftest*
  7594. fi
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7596. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7597. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7598. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7599. else
  7600. :
  7601. fi
  7602. fi
  7603. lt_prog_compiler_wl=
  7604. lt_prog_compiler_pic=
  7605. lt_prog_compiler_static=
  7606. if test yes = "$GCC"; then
  7607. lt_prog_compiler_wl='-Wl,'
  7608. lt_prog_compiler_static='-static'
  7609. case $host_os in
  7610. aix*)
  7611. # All AIX code is PIC.
  7612. if test ia64 = "$host_cpu"; then
  7613. # AIX 5 now supports IA64 processor
  7614. lt_prog_compiler_static='-Bstatic'
  7615. fi
  7616. lt_prog_compiler_pic='-fPIC'
  7617. ;;
  7618. amigaos*)
  7619. case $host_cpu in
  7620. powerpc)
  7621. # see comment about AmigaOS4 .so support
  7622. lt_prog_compiler_pic='-fPIC'
  7623. ;;
  7624. m68k)
  7625. # FIXME: we need at least 68020 code to build shared libraries, but
  7626. # adding the '-m68020' flag to GCC prevents building anything better,
  7627. # like '-m68040'.
  7628. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7629. ;;
  7630. esac
  7631. ;;
  7632. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7633. # PIC is the default for these OSes.
  7634. ;;
  7635. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7636. # This hack is so that the source file can tell whether it is being
  7637. # built for inclusion in a dll (and should export symbols for example).
  7638. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7639. # (--disable-auto-import) libraries
  7640. lt_prog_compiler_pic='-DDLL_EXPORT'
  7641. case $host_os in
  7642. os2*)
  7643. lt_prog_compiler_static='$wl-static'
  7644. ;;
  7645. esac
  7646. ;;
  7647. darwin* | rhapsody*)
  7648. # PIC is the default on this platform
  7649. # Common symbols not allowed in MH_DYLIB files
  7650. lt_prog_compiler_pic='-fno-common'
  7651. ;;
  7652. haiku*)
  7653. # PIC is the default for Haiku.
  7654. # The "-static" flag exists, but is broken.
  7655. lt_prog_compiler_static=
  7656. ;;
  7657. hpux*)
  7658. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7659. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7660. # sets the default TLS model and affects inlining.
  7661. case $host_cpu in
  7662. hppa*64*)
  7663. # +Z the default
  7664. ;;
  7665. *)
  7666. lt_prog_compiler_pic='-fPIC'
  7667. ;;
  7668. esac
  7669. ;;
  7670. interix[3-9]*)
  7671. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7672. # Instead, we relocate shared libraries at runtime.
  7673. ;;
  7674. msdosdjgpp*)
  7675. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7676. # on systems that don't support them.
  7677. lt_prog_compiler_can_build_shared=no
  7678. enable_shared=no
  7679. ;;
  7680. *nto* | *qnx*)
  7681. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7682. # it will coredump.
  7683. lt_prog_compiler_pic='-fPIC -shared'
  7684. ;;
  7685. sysv4*MP*)
  7686. if test -d /usr/nec; then
  7687. lt_prog_compiler_pic=-Kconform_pic
  7688. fi
  7689. ;;
  7690. *)
  7691. lt_prog_compiler_pic='-fPIC'
  7692. ;;
  7693. esac
  7694. case $cc_basename in
  7695. nvcc*) # Cuda Compiler Driver 2.2
  7696. lt_prog_compiler_wl='-Xlinker '
  7697. if test -n "$lt_prog_compiler_pic"; then
  7698. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7699. fi
  7700. ;;
  7701. esac
  7702. else
  7703. # PORTME Check for flag to pass linker flags through the system compiler.
  7704. case $host_os in
  7705. aix*)
  7706. lt_prog_compiler_wl='-Wl,'
  7707. if test ia64 = "$host_cpu"; then
  7708. # AIX 5 now supports IA64 processor
  7709. lt_prog_compiler_static='-Bstatic'
  7710. else
  7711. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7712. fi
  7713. ;;
  7714. darwin* | rhapsody*)
  7715. # PIC is the default on this platform
  7716. # Common symbols not allowed in MH_DYLIB files
  7717. lt_prog_compiler_pic='-fno-common'
  7718. case $cc_basename in
  7719. nagfor*)
  7720. # NAG Fortran compiler
  7721. lt_prog_compiler_wl='-Wl,-Wl,,'
  7722. lt_prog_compiler_pic='-PIC'
  7723. lt_prog_compiler_static='-Bstatic'
  7724. ;;
  7725. esac
  7726. ;;
  7727. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7728. # This hack is so that the source file can tell whether it is being
  7729. # built for inclusion in a dll (and should export symbols for example).
  7730. lt_prog_compiler_pic='-DDLL_EXPORT'
  7731. case $host_os in
  7732. os2*)
  7733. lt_prog_compiler_static='$wl-static'
  7734. ;;
  7735. esac
  7736. ;;
  7737. hpux9* | hpux10* | hpux11*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7740. # not for PA HP-UX.
  7741. case $host_cpu in
  7742. hppa*64*|ia64*)
  7743. # +Z the default
  7744. ;;
  7745. *)
  7746. lt_prog_compiler_pic='+Z'
  7747. ;;
  7748. esac
  7749. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7750. lt_prog_compiler_static='$wl-a ${wl}archive'
  7751. ;;
  7752. irix5* | irix6* | nonstopux*)
  7753. lt_prog_compiler_wl='-Wl,'
  7754. # PIC (with -KPIC) is the default.
  7755. lt_prog_compiler_static='-non_shared'
  7756. ;;
  7757. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7758. case $cc_basename in
  7759. # old Intel for x86_64, which still supported -KPIC.
  7760. ecc*)
  7761. lt_prog_compiler_wl='-Wl,'
  7762. lt_prog_compiler_pic='-KPIC'
  7763. lt_prog_compiler_static='-static'
  7764. ;;
  7765. # icc used to be incompatible with GCC.
  7766. # ICC 10 doesn't accept -KPIC any more.
  7767. icc* | ifort*)
  7768. lt_prog_compiler_wl='-Wl,'
  7769. lt_prog_compiler_pic='-fPIC'
  7770. lt_prog_compiler_static='-static'
  7771. ;;
  7772. # Lahey Fortran 8.1.
  7773. lf95*)
  7774. lt_prog_compiler_wl='-Wl,'
  7775. lt_prog_compiler_pic='--shared'
  7776. lt_prog_compiler_static='--static'
  7777. ;;
  7778. nagfor*)
  7779. # NAG Fortran compiler
  7780. lt_prog_compiler_wl='-Wl,-Wl,,'
  7781. lt_prog_compiler_pic='-PIC'
  7782. lt_prog_compiler_static='-Bstatic'
  7783. ;;
  7784. tcc*)
  7785. # Fabrice Bellard et al's Tiny C Compiler
  7786. lt_prog_compiler_wl='-Wl,'
  7787. lt_prog_compiler_pic='-fPIC'
  7788. lt_prog_compiler_static='-static'
  7789. ;;
  7790. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7791. # Portland Group compilers (*not* the Pentium gcc compiler,
  7792. # which looks to be a dead project)
  7793. lt_prog_compiler_wl='-Wl,'
  7794. lt_prog_compiler_pic='-fpic'
  7795. lt_prog_compiler_static='-Bstatic'
  7796. ;;
  7797. ccc*)
  7798. lt_prog_compiler_wl='-Wl,'
  7799. # All Alpha code is PIC.
  7800. lt_prog_compiler_static='-non_shared'
  7801. ;;
  7802. xl* | bgxl* | bgf* | mpixl*)
  7803. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7804. lt_prog_compiler_wl='-Wl,'
  7805. lt_prog_compiler_pic='-qpic'
  7806. lt_prog_compiler_static='-qstaticlink'
  7807. ;;
  7808. *)
  7809. case `$CC -V 2>&1 | sed 5q` in
  7810. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7811. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7812. lt_prog_compiler_pic='-KPIC'
  7813. lt_prog_compiler_static='-Bstatic'
  7814. lt_prog_compiler_wl=''
  7815. ;;
  7816. *Sun\ F* | *Sun*Fortran*)
  7817. lt_prog_compiler_pic='-KPIC'
  7818. lt_prog_compiler_static='-Bstatic'
  7819. lt_prog_compiler_wl='-Qoption ld '
  7820. ;;
  7821. *Sun\ C*)
  7822. # Sun C 5.9
  7823. lt_prog_compiler_pic='-KPIC'
  7824. lt_prog_compiler_static='-Bstatic'
  7825. lt_prog_compiler_wl='-Wl,'
  7826. ;;
  7827. *Intel*\ [CF]*Compiler*)
  7828. lt_prog_compiler_wl='-Wl,'
  7829. lt_prog_compiler_pic='-fPIC'
  7830. lt_prog_compiler_static='-static'
  7831. ;;
  7832. *Portland\ Group*)
  7833. lt_prog_compiler_wl='-Wl,'
  7834. lt_prog_compiler_pic='-fpic'
  7835. lt_prog_compiler_static='-Bstatic'
  7836. ;;
  7837. esac
  7838. ;;
  7839. esac
  7840. ;;
  7841. newsos6)
  7842. lt_prog_compiler_pic='-KPIC'
  7843. lt_prog_compiler_static='-Bstatic'
  7844. ;;
  7845. *nto* | *qnx*)
  7846. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7847. # it will coredump.
  7848. lt_prog_compiler_pic='-fPIC -shared'
  7849. ;;
  7850. osf3* | osf4* | osf5*)
  7851. lt_prog_compiler_wl='-Wl,'
  7852. # All OSF/1 code is PIC.
  7853. lt_prog_compiler_static='-non_shared'
  7854. ;;
  7855. rdos*)
  7856. lt_prog_compiler_static='-non_shared'
  7857. ;;
  7858. solaris*)
  7859. lt_prog_compiler_pic='-KPIC'
  7860. lt_prog_compiler_static='-Bstatic'
  7861. case $cc_basename in
  7862. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7863. lt_prog_compiler_wl='-Qoption ld ';;
  7864. *)
  7865. lt_prog_compiler_wl='-Wl,';;
  7866. esac
  7867. ;;
  7868. sunos4*)
  7869. lt_prog_compiler_wl='-Qoption ld '
  7870. lt_prog_compiler_pic='-PIC'
  7871. lt_prog_compiler_static='-Bstatic'
  7872. ;;
  7873. sysv4 | sysv4.2uw2* | sysv4.3*)
  7874. lt_prog_compiler_wl='-Wl,'
  7875. lt_prog_compiler_pic='-KPIC'
  7876. lt_prog_compiler_static='-Bstatic'
  7877. ;;
  7878. sysv4*MP*)
  7879. if test -d /usr/nec; then
  7880. lt_prog_compiler_pic='-Kconform_pic'
  7881. lt_prog_compiler_static='-Bstatic'
  7882. fi
  7883. ;;
  7884. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7885. lt_prog_compiler_wl='-Wl,'
  7886. lt_prog_compiler_pic='-KPIC'
  7887. lt_prog_compiler_static='-Bstatic'
  7888. ;;
  7889. unicos*)
  7890. lt_prog_compiler_wl='-Wl,'
  7891. lt_prog_compiler_can_build_shared=no
  7892. ;;
  7893. uts4*)
  7894. lt_prog_compiler_pic='-pic'
  7895. lt_prog_compiler_static='-Bstatic'
  7896. ;;
  7897. *)
  7898. lt_prog_compiler_can_build_shared=no
  7899. ;;
  7900. esac
  7901. fi
  7902. case $host_os in
  7903. # For platforms that do not support PIC, -DPIC is meaningless:
  7904. *djgpp*)
  7905. lt_prog_compiler_pic=
  7906. ;;
  7907. *)
  7908. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7909. ;;
  7910. esac
  7911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7912. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7913. if ${lt_cv_prog_compiler_pic+:} false; then :
  7914. $as_echo_n "(cached) " >&6
  7915. else
  7916. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7917. fi
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7919. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7920. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7921. #
  7922. # Check to make sure the PIC flag actually works.
  7923. #
  7924. if test -n "$lt_prog_compiler_pic"; then
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7926. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7927. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. lt_cv_prog_compiler_pic_works=no
  7931. ac_outfile=conftest.$ac_objext
  7932. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7933. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7934. # Insert the option either (1) after the last *FLAGS variable, or
  7935. # (2) before a word containing "conftest.", or (3) at the end.
  7936. # Note that $ac_compile itself does not contain backslashes and begins
  7937. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7938. # The option is referenced via a variable to avoid confusing sed.
  7939. lt_compile=`echo "$ac_compile" | $SED \
  7940. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7941. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7942. -e 's:$: $lt_compiler_flag:'`
  7943. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7944. (eval "$lt_compile" 2>conftest.err)
  7945. ac_status=$?
  7946. cat conftest.err >&5
  7947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7948. if (exit $ac_status) && test -s "$ac_outfile"; then
  7949. # The compiler can only warn and ignore the option if not recognized
  7950. # So say no if there are warnings other than the usual output.
  7951. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7952. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7953. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7954. lt_cv_prog_compiler_pic_works=yes
  7955. fi
  7956. fi
  7957. $RM conftest*
  7958. fi
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7960. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7961. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7962. case $lt_prog_compiler_pic in
  7963. "" | " "*) ;;
  7964. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7965. esac
  7966. else
  7967. lt_prog_compiler_pic=
  7968. lt_prog_compiler_can_build_shared=no
  7969. fi
  7970. fi
  7971. #
  7972. # Check to make sure the static flag actually works.
  7973. #
  7974. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7976. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7977. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7978. $as_echo_n "(cached) " >&6
  7979. else
  7980. lt_cv_prog_compiler_static_works=no
  7981. save_LDFLAGS=$LDFLAGS
  7982. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7983. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7984. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7985. # The linker can only warn and ignore the option if not recognized
  7986. # So say no if there are warnings
  7987. if test -s conftest.err; then
  7988. # Append any errors to the config.log.
  7989. cat conftest.err 1>&5
  7990. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7991. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7992. if diff conftest.exp conftest.er2 >/dev/null; then
  7993. lt_cv_prog_compiler_static_works=yes
  7994. fi
  7995. else
  7996. lt_cv_prog_compiler_static_works=yes
  7997. fi
  7998. fi
  7999. $RM -r conftest*
  8000. LDFLAGS=$save_LDFLAGS
  8001. fi
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8003. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8004. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8005. :
  8006. else
  8007. lt_prog_compiler_static=
  8008. fi
  8009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8010. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8011. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8012. $as_echo_n "(cached) " >&6
  8013. else
  8014. lt_cv_prog_compiler_c_o=no
  8015. $RM -r conftest 2>/dev/null
  8016. mkdir conftest
  8017. cd conftest
  8018. mkdir out
  8019. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8020. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8021. # Insert the option either (1) after the last *FLAGS variable, or
  8022. # (2) before a word containing "conftest.", or (3) at the end.
  8023. # Note that $ac_compile itself does not contain backslashes and begins
  8024. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8025. lt_compile=`echo "$ac_compile" | $SED \
  8026. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8027. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8028. -e 's:$: $lt_compiler_flag:'`
  8029. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8030. (eval "$lt_compile" 2>out/conftest.err)
  8031. ac_status=$?
  8032. cat out/conftest.err >&5
  8033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8034. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8035. then
  8036. # The compiler can only warn and ignore the option if not recognized
  8037. # So say no if there are warnings
  8038. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8039. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8040. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8041. lt_cv_prog_compiler_c_o=yes
  8042. fi
  8043. fi
  8044. chmod u+w . 2>&5
  8045. $RM conftest*
  8046. # SGI C++ compiler will create directory out/ii_files/ for
  8047. # template instantiation
  8048. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8049. $RM out/* && rmdir out
  8050. cd ..
  8051. $RM -r conftest
  8052. $RM conftest*
  8053. fi
  8054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8055. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8057. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8058. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8059. $as_echo_n "(cached) " >&6
  8060. else
  8061. lt_cv_prog_compiler_c_o=no
  8062. $RM -r conftest 2>/dev/null
  8063. mkdir conftest
  8064. cd conftest
  8065. mkdir out
  8066. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8067. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8068. # Insert the option either (1) after the last *FLAGS variable, or
  8069. # (2) before a word containing "conftest.", or (3) at the end.
  8070. # Note that $ac_compile itself does not contain backslashes and begins
  8071. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8072. lt_compile=`echo "$ac_compile" | $SED \
  8073. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8074. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8075. -e 's:$: $lt_compiler_flag:'`
  8076. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8077. (eval "$lt_compile" 2>out/conftest.err)
  8078. ac_status=$?
  8079. cat out/conftest.err >&5
  8080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8081. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8082. then
  8083. # The compiler can only warn and ignore the option if not recognized
  8084. # So say no if there are warnings
  8085. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8086. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8087. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8088. lt_cv_prog_compiler_c_o=yes
  8089. fi
  8090. fi
  8091. chmod u+w . 2>&5
  8092. $RM conftest*
  8093. # SGI C++ compiler will create directory out/ii_files/ for
  8094. # template instantiation
  8095. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8096. $RM out/* && rmdir out
  8097. cd ..
  8098. $RM -r conftest
  8099. $RM conftest*
  8100. fi
  8101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8102. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8103. hard_links=nottested
  8104. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8105. # do not overwrite the value of need_locks provided by the user
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8107. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8108. hard_links=yes
  8109. $RM conftest*
  8110. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8111. touch conftest.a
  8112. ln conftest.a conftest.b 2>&5 || hard_links=no
  8113. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8115. $as_echo "$hard_links" >&6; }
  8116. if test no = "$hard_links"; then
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8118. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8119. need_locks=warn
  8120. fi
  8121. else
  8122. need_locks=no
  8123. fi
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8125. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8126. runpath_var=
  8127. allow_undefined_flag=
  8128. always_export_symbols=no
  8129. archive_cmds=
  8130. archive_expsym_cmds=
  8131. compiler_needs_object=no
  8132. enable_shared_with_static_runtimes=no
  8133. export_dynamic_flag_spec=
  8134. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8135. hardcode_automatic=no
  8136. hardcode_direct=no
  8137. hardcode_direct_absolute=no
  8138. hardcode_libdir_flag_spec=
  8139. hardcode_libdir_separator=
  8140. hardcode_minus_L=no
  8141. hardcode_shlibpath_var=unsupported
  8142. inherit_rpath=no
  8143. link_all_deplibs=unknown
  8144. module_cmds=
  8145. module_expsym_cmds=
  8146. old_archive_from_new_cmds=
  8147. old_archive_from_expsyms_cmds=
  8148. thread_safe_flag_spec=
  8149. whole_archive_flag_spec=
  8150. # include_expsyms should be a list of space-separated symbols to be *always*
  8151. # included in the symbol list
  8152. include_expsyms=
  8153. # exclude_expsyms can be an extended regexp of symbols to exclude
  8154. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8155. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8156. # as well as any symbol that contains 'd'.
  8157. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8158. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8159. # platforms (ab)use it in PIC code, but their linkers get confused if
  8160. # the symbol is explicitly referenced. Since portable code cannot
  8161. # rely on this symbol name, it's probably fine to never include it in
  8162. # preloaded symbol tables.
  8163. # Exclude shared library initialization/finalization symbols.
  8164. extract_expsyms_cmds=
  8165. case $host_os in
  8166. cygwin* | mingw* | pw32* | cegcc*)
  8167. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  8168. # When not using gcc, we currently assume that we are using
  8169. # Microsoft Visual C++ or Intel C++ Compiler.
  8170. if test yes != "$GCC"; then
  8171. with_gnu_ld=no
  8172. fi
  8173. ;;
  8174. interix*)
  8175. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  8176. with_gnu_ld=yes
  8177. ;;
  8178. openbsd* | bitrig*)
  8179. with_gnu_ld=no
  8180. ;;
  8181. linux* | k*bsd*-gnu)
  8182. link_all_deplibs=no
  8183. ;;
  8184. esac
  8185. ld_shlibs=yes
  8186. # On some targets, GNU ld is compatible enough with the native linker
  8187. # that we're better off using the native interface for both.
  8188. lt_use_gnu_ld_interface=no
  8189. if test yes = "$with_gnu_ld"; then
  8190. case $host_os in
  8191. aix*)
  8192. # The AIX port of GNU ld has always aspired to compatibility
  8193. # with the native linker. However, as the warning in the GNU ld
  8194. # block says, versions before 2.19.5* couldn't really create working
  8195. # shared libraries, regardless of the interface used.
  8196. case `$LD -v 2>&1` in
  8197. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8198. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8199. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8200. *)
  8201. lt_use_gnu_ld_interface=yes
  8202. ;;
  8203. esac
  8204. ;;
  8205. *)
  8206. lt_use_gnu_ld_interface=yes
  8207. ;;
  8208. esac
  8209. fi
  8210. if test yes = "$lt_use_gnu_ld_interface"; then
  8211. # If archive_cmds runs LD, not CC, wlarc should be empty
  8212. wlarc='$wl'
  8213. # Set some defaults for GNU ld with shared library support. These
  8214. # are reset later if shared libraries are not supported. Putting them
  8215. # here allows them to be overridden if necessary.
  8216. runpath_var=LD_RUN_PATH
  8217. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8218. export_dynamic_flag_spec='$wl--export-dynamic'
  8219. # ancient GNU ld didn't support --whole-archive et. al.
  8220. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8221. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8222. else
  8223. whole_archive_flag_spec=
  8224. fi
  8225. supports_anon_versioning=no
  8226. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8227. *GNU\ gold*) supports_anon_versioning=yes ;;
  8228. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8229. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8230. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8231. *\ 2.11.*) ;; # other 2.11 versions
  8232. *) supports_anon_versioning=yes ;;
  8233. esac
  8234. # See if GNU ld supports shared libraries.
  8235. case $host_os in
  8236. aix[3-9]*)
  8237. # On AIX/PPC, the GNU linker is very broken
  8238. if test ia64 != "$host_cpu"; then
  8239. ld_shlibs=no
  8240. cat <<_LT_EOF 1>&2
  8241. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8242. *** to be unable to reliably create shared libraries on AIX.
  8243. *** Therefore, libtool is disabling shared libraries support. If you
  8244. *** really care for shared libraries, you may want to install binutils
  8245. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8246. *** You will then need to restart the configuration process.
  8247. _LT_EOF
  8248. fi
  8249. ;;
  8250. amigaos*)
  8251. case $host_cpu in
  8252. powerpc)
  8253. # see comment about AmigaOS4 .so support
  8254. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8255. archive_expsym_cmds=''
  8256. ;;
  8257. m68k)
  8258. 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)'
  8259. hardcode_libdir_flag_spec='-L$libdir'
  8260. hardcode_minus_L=yes
  8261. ;;
  8262. esac
  8263. ;;
  8264. beos*)
  8265. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8266. allow_undefined_flag=unsupported
  8267. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8268. # support --undefined. This deserves some investigation. FIXME
  8269. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8270. else
  8271. ld_shlibs=no
  8272. fi
  8273. ;;
  8274. cygwin* | mingw* | pw32* | cegcc*)
  8275. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8276. # as there is no search path for DLLs.
  8277. hardcode_libdir_flag_spec='-L$libdir'
  8278. export_dynamic_flag_spec='$wl--export-all-symbols'
  8279. allow_undefined_flag=unsupported
  8280. always_export_symbols=no
  8281. enable_shared_with_static_runtimes=yes
  8282. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8283. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8284. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8285. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8286. # If the export-symbols file already is a .def file, use it as
  8287. # is; otherwise, prepend EXPORTS...
  8288. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8289. cp $export_symbols $output_objdir/$soname.def;
  8290. else
  8291. echo EXPORTS > $output_objdir/$soname.def;
  8292. cat $export_symbols >> $output_objdir/$soname.def;
  8293. fi~
  8294. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8295. else
  8296. ld_shlibs=no
  8297. fi
  8298. ;;
  8299. haiku*)
  8300. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8301. link_all_deplibs=yes
  8302. ;;
  8303. os2*)
  8304. hardcode_libdir_flag_spec='-L$libdir'
  8305. hardcode_minus_L=yes
  8306. allow_undefined_flag=unsupported
  8307. shrext_cmds=.dll
  8308. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8309. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8310. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8311. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8312. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8313. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8314. emximp -o $lib $output_objdir/$libname.def'
  8315. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8316. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8317. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8318. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8319. prefix_cmds="$SED"~
  8320. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8321. prefix_cmds="$prefix_cmds -e 1d";
  8322. fi~
  8323. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8324. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8325. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8326. emximp -o $lib $output_objdir/$libname.def'
  8327. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8328. enable_shared_with_static_runtimes=yes
  8329. file_list_spec='@'
  8330. ;;
  8331. interix[3-9]*)
  8332. hardcode_direct=no
  8333. hardcode_shlibpath_var=no
  8334. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8335. export_dynamic_flag_spec='$wl-E'
  8336. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8337. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8338. # default) and relocated if they conflict, which is a slow very memory
  8339. # consuming and fragmenting process. To avoid this, we pick a random,
  8340. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8341. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8342. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8343. 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'
  8344. ;;
  8345. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8346. tmp_diet=no
  8347. if test linux-dietlibc = "$host_os"; then
  8348. case $cc_basename in
  8349. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8350. esac
  8351. fi
  8352. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8353. && test no = "$tmp_diet"
  8354. then
  8355. tmp_addflag=' $pic_flag'
  8356. tmp_sharedflag='-shared'
  8357. case $cc_basename,$host_cpu in
  8358. pgcc*) # Portland Group C compiler
  8359. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8360. tmp_addflag=' $pic_flag'
  8361. ;;
  8362. pgf77* | pgf90* | pgf95* | pgfortran*)
  8363. # Portland Group f77 and f90 compilers
  8364. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8365. tmp_addflag=' $pic_flag -Mnomain' ;;
  8366. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8367. tmp_addflag=' -i_dynamic' ;;
  8368. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8369. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8370. ifc* | ifort*) # Intel Fortran compiler
  8371. tmp_addflag=' -nofor_main' ;;
  8372. lf95*) # Lahey Fortran 8.1
  8373. whole_archive_flag_spec=
  8374. tmp_sharedflag='--shared' ;;
  8375. nagfor*) # NAGFOR 5.3
  8376. tmp_sharedflag='-Wl,-shared' ;;
  8377. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8378. tmp_sharedflag='-qmkshrobj'
  8379. tmp_addflag= ;;
  8380. nvcc*) # Cuda Compiler Driver 2.2
  8381. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8382. compiler_needs_object=yes
  8383. ;;
  8384. esac
  8385. case `$CC -V 2>&1 | sed 5q` in
  8386. *Sun\ C*) # Sun C 5.9
  8387. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8388. compiler_needs_object=yes
  8389. tmp_sharedflag='-G' ;;
  8390. *Sun\ F*) # Sun Fortran 8.3
  8391. tmp_sharedflag='-G' ;;
  8392. esac
  8393. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8394. if test yes = "$supports_anon_versioning"; then
  8395. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8396. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8397. echo "local: *; };" >> $output_objdir/$libname.ver~
  8398. if test -r $libname-altlinux.ver; then cp $libname-altlinux.ver $output_objdir/$libname.ver; fi~
  8399. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8400. fi
  8401. case $cc_basename in
  8402. tcc*)
  8403. export_dynamic_flag_spec='-rdynamic'
  8404. ;;
  8405. xlf* | bgf* | bgxlf* | mpixlf*)
  8406. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8407. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8408. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8409. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8410. if test yes = "$supports_anon_versioning"; then
  8411. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8412. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8413. echo "local: *; };" >> $output_objdir/$libname.ver~
  8414. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8415. fi
  8416. ;;
  8417. esac
  8418. else
  8419. ld_shlibs=no
  8420. fi
  8421. ;;
  8422. netbsd*)
  8423. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8424. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8425. wlarc=
  8426. else
  8427. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8428. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8429. fi
  8430. ;;
  8431. solaris*)
  8432. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8433. ld_shlibs=no
  8434. cat <<_LT_EOF 1>&2
  8435. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8436. *** create shared libraries on Solaris systems. Therefore, libtool
  8437. *** is disabling shared libraries support. We urge you to upgrade GNU
  8438. *** binutils to release 2.9.1 or newer. Another option is to modify
  8439. *** your PATH or compiler configuration so that the native linker is
  8440. *** used, and then restart.
  8441. _LT_EOF
  8442. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8443. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8444. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8445. else
  8446. ld_shlibs=no
  8447. fi
  8448. ;;
  8449. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8450. case `$LD -v 2>&1` in
  8451. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8452. ld_shlibs=no
  8453. cat <<_LT_EOF 1>&2
  8454. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8455. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8456. *** is disabling shared libraries support. We urge you to upgrade GNU
  8457. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8458. *** your PATH or compiler configuration so that the native linker is
  8459. *** used, and then restart.
  8460. _LT_EOF
  8461. ;;
  8462. *)
  8463. # For security reasons, it is highly recommended that you always
  8464. # use absolute paths for naming shared libraries, and exclude the
  8465. # DT_RUNPATH tag from executables and libraries. But doing so
  8466. # requires that you compile everything twice, which is a pain.
  8467. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8468. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8469. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8470. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8471. else
  8472. ld_shlibs=no
  8473. fi
  8474. ;;
  8475. esac
  8476. ;;
  8477. sunos4*)
  8478. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8479. wlarc=
  8480. hardcode_direct=yes
  8481. hardcode_shlibpath_var=no
  8482. ;;
  8483. *)
  8484. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8485. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8486. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8487. else
  8488. ld_shlibs=no
  8489. fi
  8490. ;;
  8491. esac
  8492. if test no = "$ld_shlibs"; then
  8493. runpath_var=
  8494. hardcode_libdir_flag_spec=
  8495. export_dynamic_flag_spec=
  8496. whole_archive_flag_spec=
  8497. fi
  8498. else
  8499. # PORTME fill in a description of your system's linker (not GNU ld)
  8500. case $host_os in
  8501. aix3*)
  8502. allow_undefined_flag=unsupported
  8503. always_export_symbols=yes
  8504. 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'
  8505. # Note: this linker hardcodes the directories in LIBPATH if there
  8506. # are no directories specified by -L.
  8507. hardcode_minus_L=yes
  8508. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8509. # Neither direct hardcoding nor static linking is supported with a
  8510. # broken collect2.
  8511. hardcode_direct=unsupported
  8512. fi
  8513. ;;
  8514. aix[4-9]*)
  8515. if test ia64 = "$host_cpu"; then
  8516. # On IA64, the linker does run time linking by default, so we don't
  8517. # have to do anything special.
  8518. aix_use_runtimelinking=no
  8519. exp_sym_flag='-Bexport'
  8520. no_entry_flag=
  8521. else
  8522. # If we're using GNU nm, then we don't want the "-C" option.
  8523. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8524. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8525. # weak defined symbols like other global defined symbols, whereas
  8526. # GNU nm marks them as "W".
  8527. # While the 'weak' keyword is ignored in the Export File, we need
  8528. # it in the Import File for the 'aix-soname' feature, so we have
  8529. # to replace the "-B" option with "-P" for AIX nm.
  8530. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8531. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8532. else
  8533. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8534. fi
  8535. aix_use_runtimelinking=no
  8536. # Test if we are trying to use run time linking or normal
  8537. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8538. # have runtime linking enabled, and use it for executables.
  8539. # For shared libraries, we enable/disable runtime linking
  8540. # depending on the kind of the shared library created -
  8541. # when "with_aix_soname,aix_use_runtimelinking" is:
  8542. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8543. # "aix,yes" lib.so shared, rtl:yes, for executables
  8544. # lib.a static archive
  8545. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8546. # lib.a(lib.so.V) shared, rtl:no, for executables
  8547. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8548. # lib.a(lib.so.V) shared, rtl:no
  8549. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8550. # lib.a static archive
  8551. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8552. for ld_flag in $LDFLAGS; do
  8553. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8554. aix_use_runtimelinking=yes
  8555. break
  8556. fi
  8557. done
  8558. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8559. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8560. # so we don't have lib.a shared libs to link our executables.
  8561. # We have to force runtime linking in this case.
  8562. aix_use_runtimelinking=yes
  8563. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8564. fi
  8565. ;;
  8566. esac
  8567. exp_sym_flag='-bexport'
  8568. no_entry_flag='-bnoentry'
  8569. fi
  8570. # When large executables or shared objects are built, AIX ld can
  8571. # have problems creating the table of contents. If linking a library
  8572. # or program results in "error TOC overflow" add -mminimal-toc to
  8573. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8574. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8575. archive_cmds=''
  8576. hardcode_direct=yes
  8577. hardcode_direct_absolute=yes
  8578. hardcode_libdir_separator=':'
  8579. link_all_deplibs=yes
  8580. file_list_spec='$wl-f,'
  8581. case $with_aix_soname,$aix_use_runtimelinking in
  8582. aix,*) ;; # traditional, no import file
  8583. svr4,* | *,yes) # use import file
  8584. # The Import File defines what to hardcode.
  8585. hardcode_direct=no
  8586. hardcode_direct_absolute=no
  8587. ;;
  8588. esac
  8589. if test yes = "$GCC"; then
  8590. case $host_os in aix4.[012]|aix4.[012].*)
  8591. # We only want to do this on AIX 4.2 and lower, the check
  8592. # below for broken collect2 doesn't work under 4.3+
  8593. collect2name=`$CC -print-prog-name=collect2`
  8594. if test -f "$collect2name" &&
  8595. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8596. then
  8597. # We have reworked collect2
  8598. :
  8599. else
  8600. # We have old collect2
  8601. hardcode_direct=unsupported
  8602. # It fails to find uninstalled libraries when the uninstalled
  8603. # path is not listed in the libpath. Setting hardcode_minus_L
  8604. # to unsupported forces relinking
  8605. hardcode_minus_L=yes
  8606. hardcode_libdir_flag_spec='-L$libdir'
  8607. hardcode_libdir_separator=
  8608. fi
  8609. ;;
  8610. esac
  8611. shared_flag='-shared'
  8612. if test yes = "$aix_use_runtimelinking"; then
  8613. shared_flag="$shared_flag "'$wl-G'
  8614. fi
  8615. # Need to ensure runtime linking is disabled for the traditional
  8616. # shared library, or the linker may eventually find shared libraries
  8617. # /with/ Import File - we do not want to mix them.
  8618. shared_flag_aix='-shared'
  8619. shared_flag_svr4='-shared $wl-G'
  8620. else
  8621. # not using gcc
  8622. if test ia64 = "$host_cpu"; then
  8623. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8624. # chokes on -Wl,-G. The following line is correct:
  8625. shared_flag='-G'
  8626. else
  8627. if test yes = "$aix_use_runtimelinking"; then
  8628. shared_flag='$wl-G'
  8629. else
  8630. shared_flag='$wl-bM:SRE'
  8631. fi
  8632. shared_flag_aix='$wl-bM:SRE'
  8633. shared_flag_svr4='$wl-G'
  8634. fi
  8635. fi
  8636. export_dynamic_flag_spec='$wl-bexpall'
  8637. # It seems that -bexpall does not export symbols beginning with
  8638. # underscore (_), so it is better to generate a list of symbols to export.
  8639. always_export_symbols=yes
  8640. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8641. # Warning - without using the other runtime loading flags (-brtl),
  8642. # -berok will link without error, but may produce a broken library.
  8643. allow_undefined_flag='-berok'
  8644. # Determine the default libpath from the value encoded in an
  8645. # empty executable.
  8646. if test set = "${lt_cv_aix_libpath+set}"; then
  8647. aix_libpath=$lt_cv_aix_libpath
  8648. else
  8649. if ${lt_cv_aix_libpath_+:} false; then :
  8650. $as_echo_n "(cached) " >&6
  8651. else
  8652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8653. /* end confdefs.h. */
  8654. int
  8655. main ()
  8656. {
  8657. ;
  8658. return 0;
  8659. }
  8660. _ACEOF
  8661. if ac_fn_c_try_link "$LINENO"; then :
  8662. lt_aix_libpath_sed='
  8663. /Import File Strings/,/^$/ {
  8664. /^0/ {
  8665. s/^0 *\([^ ]*\) *$/\1/
  8666. p
  8667. }
  8668. }'
  8669. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8670. # Check for a 64-bit object if we didn't find anything.
  8671. if test -z "$lt_cv_aix_libpath_"; then
  8672. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8673. fi
  8674. fi
  8675. rm -f core conftest.err conftest.$ac_objext \
  8676. conftest$ac_exeext conftest.$ac_ext
  8677. if test -z "$lt_cv_aix_libpath_"; then
  8678. lt_cv_aix_libpath_=/usr/lib:/lib
  8679. fi
  8680. fi
  8681. aix_libpath=$lt_cv_aix_libpath_
  8682. fi
  8683. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8684. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8685. else
  8686. if test ia64 = "$host_cpu"; then
  8687. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8688. allow_undefined_flag="-z nodefs"
  8689. 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"
  8690. else
  8691. # Determine the default libpath from the value encoded in an
  8692. # empty executable.
  8693. if test set = "${lt_cv_aix_libpath+set}"; then
  8694. aix_libpath=$lt_cv_aix_libpath
  8695. else
  8696. if ${lt_cv_aix_libpath_+:} false; then :
  8697. $as_echo_n "(cached) " >&6
  8698. else
  8699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8700. /* end confdefs.h. */
  8701. int
  8702. main ()
  8703. {
  8704. ;
  8705. return 0;
  8706. }
  8707. _ACEOF
  8708. if ac_fn_c_try_link "$LINENO"; then :
  8709. lt_aix_libpath_sed='
  8710. /Import File Strings/,/^$/ {
  8711. /^0/ {
  8712. s/^0 *\([^ ]*\) *$/\1/
  8713. p
  8714. }
  8715. }'
  8716. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8717. # Check for a 64-bit object if we didn't find anything.
  8718. if test -z "$lt_cv_aix_libpath_"; then
  8719. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8720. fi
  8721. fi
  8722. rm -f core conftest.err conftest.$ac_objext \
  8723. conftest$ac_exeext conftest.$ac_ext
  8724. if test -z "$lt_cv_aix_libpath_"; then
  8725. lt_cv_aix_libpath_=/usr/lib:/lib
  8726. fi
  8727. fi
  8728. aix_libpath=$lt_cv_aix_libpath_
  8729. fi
  8730. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8731. # Warning - without using the other run time loading flags,
  8732. # -berok will link without error, but may produce a broken library.
  8733. no_undefined_flag=' $wl-bernotok'
  8734. allow_undefined_flag=' $wl-berok'
  8735. if test yes = "$with_gnu_ld"; then
  8736. # We only use this code for GNU lds that support --whole-archive.
  8737. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8738. else
  8739. # Exported symbols can be pulled into shared objects from archives
  8740. whole_archive_flag_spec='$convenience'
  8741. fi
  8742. archive_cmds_need_lc=yes
  8743. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8744. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8745. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8746. if test svr4 != "$with_aix_soname"; then
  8747. # This is similar to how AIX traditionally builds its shared libraries.
  8748. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8749. fi
  8750. if test aix != "$with_aix_soname"; then
  8751. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8752. else
  8753. # used by -dlpreopen to get the symbols
  8754. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8755. fi
  8756. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8757. fi
  8758. fi
  8759. ;;
  8760. amigaos*)
  8761. case $host_cpu in
  8762. powerpc)
  8763. # see comment about AmigaOS4 .so support
  8764. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8765. archive_expsym_cmds=''
  8766. ;;
  8767. m68k)
  8768. 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)'
  8769. hardcode_libdir_flag_spec='-L$libdir'
  8770. hardcode_minus_L=yes
  8771. ;;
  8772. esac
  8773. ;;
  8774. bsdi[45]*)
  8775. export_dynamic_flag_spec=-rdynamic
  8776. ;;
  8777. cygwin* | mingw* | pw32* | cegcc*)
  8778. # When not using gcc, we currently assume that we are using
  8779. # Microsoft Visual C++ or Intel C++ Compiler.
  8780. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8781. # no search path for DLLs.
  8782. case $cc_basename in
  8783. cl* | icl*)
  8784. # Native MSVC or ICC
  8785. hardcode_libdir_flag_spec=' '
  8786. allow_undefined_flag=unsupported
  8787. always_export_symbols=yes
  8788. file_list_spec='@'
  8789. # Tell ltmain to make .lib files, not .a files.
  8790. libext=lib
  8791. # Tell ltmain to make .dll files, not .so files.
  8792. shrext_cmds=.dll
  8793. # FIXME: Setting linknames here is a bad hack.
  8794. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8795. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8796. cp "$export_symbols" "$output_objdir/$soname.def";
  8797. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8798. else
  8799. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8800. fi~
  8801. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8802. linknames='
  8803. # The linker will not automatically build a static lib if we build a DLL.
  8804. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8805. enable_shared_with_static_runtimes=yes
  8806. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8807. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8808. # Don't use ranlib
  8809. old_postinstall_cmds='chmod 644 $oldlib'
  8810. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8811. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8812. case $lt_outputfile in
  8813. *.exe|*.EXE) ;;
  8814. *)
  8815. lt_outputfile=$lt_outputfile.exe
  8816. lt_tool_outputfile=$lt_tool_outputfile.exe
  8817. ;;
  8818. esac~
  8819. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8820. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8821. $RM "$lt_outputfile.manifest";
  8822. fi'
  8823. ;;
  8824. *)
  8825. # Assume MSVC and ICC wrapper
  8826. hardcode_libdir_flag_spec=' '
  8827. allow_undefined_flag=unsupported
  8828. # Tell ltmain to make .lib files, not .a files.
  8829. libext=lib
  8830. # Tell ltmain to make .dll files, not .so files.
  8831. shrext_cmds=.dll
  8832. # FIXME: Setting linknames here is a bad hack.
  8833. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8834. # The linker will automatically build a .lib file if we build a DLL.
  8835. old_archive_from_new_cmds='true'
  8836. # FIXME: Should let the user specify the lib program.
  8837. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8838. enable_shared_with_static_runtimes=yes
  8839. ;;
  8840. esac
  8841. ;;
  8842. darwin* | rhapsody*)
  8843. archive_cmds_need_lc=no
  8844. hardcode_direct=no
  8845. hardcode_automatic=yes
  8846. hardcode_shlibpath_var=unsupported
  8847. if test yes = "$lt_cv_ld_force_load"; then
  8848. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8849. else
  8850. whole_archive_flag_spec=''
  8851. fi
  8852. link_all_deplibs=yes
  8853. allow_undefined_flag=$_lt_dar_allow_undefined
  8854. case $cc_basename in
  8855. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8856. *) _lt_dar_can_shared=$GCC ;;
  8857. esac
  8858. if test yes = "$_lt_dar_can_shared"; then
  8859. output_verbose_link_cmd=func_echo_all
  8860. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8861. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8862. 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"
  8863. 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"
  8864. else
  8865. ld_shlibs=no
  8866. fi
  8867. ;;
  8868. dgux*)
  8869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8870. hardcode_libdir_flag_spec='-L$libdir'
  8871. hardcode_shlibpath_var=no
  8872. ;;
  8873. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8874. # support. Future versions do this automatically, but an explicit c++rt0.o
  8875. # does not break anything, and helps significantly (at the cost of a little
  8876. # extra space).
  8877. freebsd2.2*)
  8878. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8879. hardcode_libdir_flag_spec='-R$libdir'
  8880. hardcode_direct=yes
  8881. hardcode_shlibpath_var=no
  8882. ;;
  8883. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8884. freebsd2.*)
  8885. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8886. hardcode_direct=yes
  8887. hardcode_minus_L=yes
  8888. hardcode_shlibpath_var=no
  8889. ;;
  8890. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8891. freebsd* | dragonfly*)
  8892. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8893. hardcode_libdir_flag_spec='-R$libdir'
  8894. hardcode_direct=yes
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. hpux9*)
  8898. if test yes = "$GCC"; then
  8899. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8900. else
  8901. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8902. fi
  8903. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8904. hardcode_libdir_separator=:
  8905. hardcode_direct=yes
  8906. # hardcode_minus_L: Not really in the search PATH,
  8907. # but as the default location of the library.
  8908. hardcode_minus_L=yes
  8909. export_dynamic_flag_spec='$wl-E'
  8910. ;;
  8911. hpux10*)
  8912. if test yes,no = "$GCC,$with_gnu_ld"; then
  8913. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8914. else
  8915. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8916. fi
  8917. if test no = "$with_gnu_ld"; then
  8918. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8919. hardcode_libdir_separator=:
  8920. hardcode_direct=yes
  8921. hardcode_direct_absolute=yes
  8922. export_dynamic_flag_spec='$wl-E'
  8923. # hardcode_minus_L: Not really in the search PATH,
  8924. # but as the default location of the library.
  8925. hardcode_minus_L=yes
  8926. fi
  8927. ;;
  8928. hpux11*)
  8929. if test yes,no = "$GCC,$with_gnu_ld"; then
  8930. case $host_cpu in
  8931. hppa*64*)
  8932. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8933. ;;
  8934. ia64*)
  8935. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8936. ;;
  8937. *)
  8938. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8939. ;;
  8940. esac
  8941. else
  8942. case $host_cpu in
  8943. hppa*64*)
  8944. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8945. ;;
  8946. ia64*)
  8947. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8948. ;;
  8949. *)
  8950. # Older versions of the 11.00 compiler do not understand -b yet
  8951. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8953. $as_echo_n "checking if $CC understands -b... " >&6; }
  8954. if ${lt_cv_prog_compiler__b+:} false; then :
  8955. $as_echo_n "(cached) " >&6
  8956. else
  8957. lt_cv_prog_compiler__b=no
  8958. save_LDFLAGS=$LDFLAGS
  8959. LDFLAGS="$LDFLAGS -b"
  8960. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8961. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8962. # The linker can only warn and ignore the option if not recognized
  8963. # So say no if there are warnings
  8964. if test -s conftest.err; then
  8965. # Append any errors to the config.log.
  8966. cat conftest.err 1>&5
  8967. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8968. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8969. if diff conftest.exp conftest.er2 >/dev/null; then
  8970. lt_cv_prog_compiler__b=yes
  8971. fi
  8972. else
  8973. lt_cv_prog_compiler__b=yes
  8974. fi
  8975. fi
  8976. $RM -r conftest*
  8977. LDFLAGS=$save_LDFLAGS
  8978. fi
  8979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8980. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8981. if test yes = "$lt_cv_prog_compiler__b"; then
  8982. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8983. else
  8984. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8985. fi
  8986. ;;
  8987. esac
  8988. fi
  8989. if test no = "$with_gnu_ld"; then
  8990. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8991. hardcode_libdir_separator=:
  8992. case $host_cpu in
  8993. hppa*64*|ia64*)
  8994. hardcode_direct=no
  8995. hardcode_shlibpath_var=no
  8996. ;;
  8997. *)
  8998. hardcode_direct=yes
  8999. hardcode_direct_absolute=yes
  9000. export_dynamic_flag_spec='$wl-E'
  9001. # hardcode_minus_L: Not really in the search PATH,
  9002. # but as the default location of the library.
  9003. hardcode_minus_L=yes
  9004. ;;
  9005. esac
  9006. fi
  9007. ;;
  9008. irix5* | irix6* | nonstopux*)
  9009. if test yes = "$GCC"; then
  9010. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9011. # Try to use the -exported_symbol ld option, if it does not
  9012. # work, assume that -exports_file does not work either and
  9013. # implicitly export all symbols.
  9014. # This should be the same for all languages, so no per-tag cache variable.
  9015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9016. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9017. if ${lt_cv_irix_exported_symbol+:} false; then :
  9018. $as_echo_n "(cached) " >&6
  9019. else
  9020. save_LDFLAGS=$LDFLAGS
  9021. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9023. /* end confdefs.h. */
  9024. int foo (void) { return 0; }
  9025. _ACEOF
  9026. if ac_fn_c_try_link "$LINENO"; then :
  9027. lt_cv_irix_exported_symbol=yes
  9028. else
  9029. lt_cv_irix_exported_symbol=no
  9030. fi
  9031. rm -f core conftest.err conftest.$ac_objext \
  9032. conftest$ac_exeext conftest.$ac_ext
  9033. LDFLAGS=$save_LDFLAGS
  9034. fi
  9035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9036. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9037. if test yes = "$lt_cv_irix_exported_symbol"; then
  9038. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  9039. fi
  9040. else
  9041. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9042. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  9043. fi
  9044. archive_cmds_need_lc='no'
  9045. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9046. hardcode_libdir_separator=:
  9047. inherit_rpath=yes
  9048. link_all_deplibs=yes
  9049. ;;
  9050. linux*)
  9051. case $cc_basename in
  9052. tcc*)
  9053. # Fabrice Bellard et al's Tiny C Compiler
  9054. ld_shlibs=yes
  9055. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9056. ;;
  9057. esac
  9058. ;;
  9059. netbsd*)
  9060. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9061. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9062. else
  9063. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9064. fi
  9065. hardcode_libdir_flag_spec='-R$libdir'
  9066. hardcode_direct=yes
  9067. hardcode_shlibpath_var=no
  9068. ;;
  9069. newsos6)
  9070. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9071. hardcode_direct=yes
  9072. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9073. hardcode_libdir_separator=:
  9074. hardcode_shlibpath_var=no
  9075. ;;
  9076. *nto* | *qnx*)
  9077. ;;
  9078. openbsd* | bitrig*)
  9079. if test -f /usr/libexec/ld.so; then
  9080. hardcode_direct=yes
  9081. hardcode_shlibpath_var=no
  9082. hardcode_direct_absolute=yes
  9083. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9084. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9085. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9086. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9087. export_dynamic_flag_spec='$wl-E'
  9088. else
  9089. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9090. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9091. fi
  9092. else
  9093. ld_shlibs=no
  9094. fi
  9095. ;;
  9096. os2*)
  9097. hardcode_libdir_flag_spec='-L$libdir'
  9098. hardcode_minus_L=yes
  9099. allow_undefined_flag=unsupported
  9100. shrext_cmds=.dll
  9101. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9102. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9103. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9104. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9105. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9106. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9107. emximp -o $lib $output_objdir/$libname.def'
  9108. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9109. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9110. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9111. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9112. prefix_cmds="$SED"~
  9113. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9114. prefix_cmds="$prefix_cmds -e 1d";
  9115. fi~
  9116. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9117. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9118. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9119. emximp -o $lib $output_objdir/$libname.def'
  9120. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9121. enable_shared_with_static_runtimes=yes
  9122. file_list_spec='@'
  9123. ;;
  9124. osf3*)
  9125. if test yes = "$GCC"; then
  9126. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9127. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9128. else
  9129. allow_undefined_flag=' -expect_unresolved \*'
  9130. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9131. fi
  9132. archive_cmds_need_lc='no'
  9133. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9134. hardcode_libdir_separator=:
  9135. ;;
  9136. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9137. if test yes = "$GCC"; then
  9138. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9139. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  9140. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9141. else
  9142. allow_undefined_flag=' -expect_unresolved \*'
  9143. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  9144. 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~
  9145. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  9146. # Both c and cxx compiler support -rpath directly
  9147. hardcode_libdir_flag_spec='-rpath $libdir'
  9148. fi
  9149. archive_cmds_need_lc='no'
  9150. hardcode_libdir_separator=:
  9151. ;;
  9152. solaris*)
  9153. no_undefined_flag=' -z defs'
  9154. if test yes = "$GCC"; then
  9155. wlarc='$wl'
  9156. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9157. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9158. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9159. else
  9160. case `$CC -V 2>&1` in
  9161. *"Compilers 5.0"*)
  9162. wlarc=''
  9163. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9164. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9165. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9166. ;;
  9167. *)
  9168. wlarc='$wl'
  9169. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9170. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9171. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9172. ;;
  9173. esac
  9174. fi
  9175. hardcode_libdir_flag_spec='-R$libdir'
  9176. hardcode_shlibpath_var=no
  9177. case $host_os in
  9178. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9179. *)
  9180. # The compiler driver will combine and reorder linker options,
  9181. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9182. # but is careful enough not to reorder.
  9183. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9184. if test yes = "$GCC"; then
  9185. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9186. else
  9187. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9188. fi
  9189. ;;
  9190. esac
  9191. link_all_deplibs=yes
  9192. ;;
  9193. sunos4*)
  9194. if test sequent = "$host_vendor"; then
  9195. # Use $CC to link under sequent, because it throws in some extra .o
  9196. # files that make .init and .fini sections work.
  9197. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9198. else
  9199. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9200. fi
  9201. hardcode_libdir_flag_spec='-L$libdir'
  9202. hardcode_direct=yes
  9203. hardcode_minus_L=yes
  9204. hardcode_shlibpath_var=no
  9205. ;;
  9206. sysv4)
  9207. case $host_vendor in
  9208. sni)
  9209. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9210. hardcode_direct=yes # is this really true???
  9211. ;;
  9212. siemens)
  9213. ## LD is ld it makes a PLAMLIB
  9214. ## CC just makes a GrossModule.
  9215. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9216. reload_cmds='$CC -r -o $output$reload_objs'
  9217. hardcode_direct=no
  9218. ;;
  9219. motorola)
  9220. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9221. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9222. ;;
  9223. esac
  9224. runpath_var='LD_RUN_PATH'
  9225. hardcode_shlibpath_var=no
  9226. ;;
  9227. sysv4.3*)
  9228. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9229. hardcode_shlibpath_var=no
  9230. export_dynamic_flag_spec='-Bexport'
  9231. ;;
  9232. sysv4*MP*)
  9233. if test -d /usr/nec; then
  9234. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9235. hardcode_shlibpath_var=no
  9236. runpath_var=LD_RUN_PATH
  9237. hardcode_runpath_var=yes
  9238. ld_shlibs=yes
  9239. fi
  9240. ;;
  9241. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9242. no_undefined_flag='$wl-z,text'
  9243. archive_cmds_need_lc=no
  9244. hardcode_shlibpath_var=no
  9245. runpath_var='LD_RUN_PATH'
  9246. if test yes = "$GCC"; then
  9247. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9248. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9249. else
  9250. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9251. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9252. fi
  9253. ;;
  9254. sysv5* | sco3.2v5* | sco5v6*)
  9255. # Note: We CANNOT use -z defs as we might desire, because we do not
  9256. # link with -lc, and that would cause any symbols used from libc to
  9257. # always be unresolved, which means just about no library would
  9258. # ever link correctly. If we're not using GNU ld we use -z text
  9259. # though, which does catch some bad symbols but isn't as heavy-handed
  9260. # as -z defs.
  9261. no_undefined_flag='$wl-z,text'
  9262. allow_undefined_flag='$wl-z,nodefs'
  9263. archive_cmds_need_lc=no
  9264. hardcode_shlibpath_var=no
  9265. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9266. hardcode_libdir_separator=':'
  9267. link_all_deplibs=yes
  9268. export_dynamic_flag_spec='$wl-Bexport'
  9269. runpath_var='LD_RUN_PATH'
  9270. if test yes = "$GCC"; then
  9271. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9272. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9273. else
  9274. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9275. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9276. fi
  9277. ;;
  9278. uts4*)
  9279. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9280. hardcode_libdir_flag_spec='-L$libdir'
  9281. hardcode_shlibpath_var=no
  9282. ;;
  9283. *)
  9284. ld_shlibs=no
  9285. ;;
  9286. esac
  9287. if test sni = "$host_vendor"; then
  9288. case $host in
  9289. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9290. export_dynamic_flag_spec='$wl-Blargedynsym'
  9291. ;;
  9292. esac
  9293. fi
  9294. fi
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9296. $as_echo "$ld_shlibs" >&6; }
  9297. test no = "$ld_shlibs" && can_build_shared=no
  9298. with_gnu_ld=$with_gnu_ld
  9299. #
  9300. # Do we need to explicitly link libc?
  9301. #
  9302. case "x$archive_cmds_need_lc" in
  9303. x|xyes)
  9304. # Assume -lc should be added
  9305. archive_cmds_need_lc=yes
  9306. if test yes,yes = "$GCC,$enable_shared"; then
  9307. case $archive_cmds in
  9308. *'~'*)
  9309. # FIXME: we may have to deal with multi-command sequences.
  9310. ;;
  9311. '$CC '*)
  9312. # Test whether the compiler implicitly links with -lc since on some
  9313. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9314. # to ld, don't add -lc before -lgcc.
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9316. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9317. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9318. $as_echo_n "(cached) " >&6
  9319. else
  9320. $RM conftest*
  9321. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9322. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9323. (eval $ac_compile) 2>&5
  9324. ac_status=$?
  9325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9326. test $ac_status = 0; } 2>conftest.err; then
  9327. soname=conftest
  9328. lib=conftest
  9329. libobjs=conftest.$ac_objext
  9330. deplibs=
  9331. wl=$lt_prog_compiler_wl
  9332. pic_flag=$lt_prog_compiler_pic
  9333. compiler_flags=-v
  9334. linker_flags=-v
  9335. verstring=
  9336. output_objdir=.
  9337. libname=conftest
  9338. lt_save_allow_undefined_flag=$allow_undefined_flag
  9339. allow_undefined_flag=
  9340. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9341. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9342. ac_status=$?
  9343. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9344. test $ac_status = 0; }
  9345. then
  9346. lt_cv_archive_cmds_need_lc=no
  9347. else
  9348. lt_cv_archive_cmds_need_lc=yes
  9349. fi
  9350. allow_undefined_flag=$lt_save_allow_undefined_flag
  9351. else
  9352. cat conftest.err 1>&5
  9353. fi
  9354. $RM conftest*
  9355. fi
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9357. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9358. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9359. ;;
  9360. esac
  9361. fi
  9362. ;;
  9363. esac
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9365. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9366. if test yes = "$GCC"; then
  9367. case $host_os in
  9368. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9369. *) lt_awk_arg='/^libraries:/' ;;
  9370. esac
  9371. case $host_os in
  9372. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9373. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9374. esac
  9375. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9376. case $lt_search_path_spec in
  9377. *\;*)
  9378. # if the path contains ";" then we assume it to be the separator
  9379. # otherwise default to the standard path separator (i.e. ":") - it is
  9380. # assumed that no part of a normal pathname contains ";" but that should
  9381. # okay in the real world where ";" in dirpaths is itself problematic.
  9382. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9383. ;;
  9384. *)
  9385. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9386. ;;
  9387. esac
  9388. # Ok, now we have the path, separated by spaces, we can step through it
  9389. # and add multilib dir if necessary...
  9390. lt_tmp_lt_search_path_spec=
  9391. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9392. # ...but if some path component already ends with the multilib dir we assume
  9393. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9394. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9395. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9396. lt_multi_os_dir=
  9397. ;;
  9398. esac
  9399. for lt_sys_path in $lt_search_path_spec; do
  9400. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9401. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9402. elif test -n "$lt_multi_os_dir"; then
  9403. test -d "$lt_sys_path" && \
  9404. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9405. fi
  9406. done
  9407. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9408. BEGIN {RS = " "; FS = "/|\n";} {
  9409. lt_foo = "";
  9410. lt_count = 0;
  9411. for (lt_i = NF; lt_i > 0; lt_i--) {
  9412. if ($lt_i != "" && $lt_i != ".") {
  9413. if ($lt_i == "..") {
  9414. lt_count++;
  9415. } else {
  9416. if (lt_count == 0) {
  9417. lt_foo = "/" $lt_i lt_foo;
  9418. } else {
  9419. lt_count--;
  9420. }
  9421. }
  9422. }
  9423. }
  9424. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9425. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9426. }'`
  9427. # AWK program above erroneously prepends '/' to C:/dos/paths
  9428. # for these hosts.
  9429. case $host_os in
  9430. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9431. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9432. esac
  9433. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9434. else
  9435. sys_lib_search_path_spec="/lib$libsuff /usr/lib$libsuff /usr/local/lib$libsuff"
  9436. fi
  9437. library_names_spec=
  9438. libname_spec='lib$name'
  9439. soname_spec=
  9440. shrext_cmds=.so
  9441. postinstall_cmds=
  9442. postuninstall_cmds=
  9443. finish_cmds=
  9444. finish_eval=
  9445. shlibpath_var=
  9446. shlibpath_overrides_runpath=unknown
  9447. version_type=none
  9448. dynamic_linker="$host_os ld.so"
  9449. sys_lib_dlsearch_path_spec="/lib$libsuff /usr/lib$libsuff"
  9450. need_lib_prefix=unknown
  9451. hardcode_into_libs=no
  9452. # when you set need_version to no, make sure it does not cause -set_version
  9453. # flags to be left without arguments
  9454. need_version=unknown
  9455. case $host_os in
  9456. aix3*)
  9457. version_type=linux # correct to gnu/linux during the next big refactor
  9458. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9459. shlibpath_var=LIBPATH
  9460. # AIX 3 has no versioning support, so we append a major version to the name.
  9461. soname_spec='$libname$release$shared_ext$major'
  9462. ;;
  9463. aix[4-9]*)
  9464. version_type=linux # correct to gnu/linux during the next big refactor
  9465. need_lib_prefix=no
  9466. need_version=no
  9467. hardcode_into_libs=yes
  9468. if test ia64 = "$host_cpu"; then
  9469. # AIX 5 supports IA64
  9470. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9471. shlibpath_var=LD_LIBRARY_PATH
  9472. else
  9473. # With GCC up to 2.95.x, collect2 would create an import file
  9474. # for dependence libraries. The import file would start with
  9475. # the line '#! .'. This would cause the generated library to
  9476. # depend on '.', always an invalid library. This was fixed in
  9477. # development snapshots of GCC prior to 3.0.
  9478. case $host_os in
  9479. aix4 | aix4.[01] | aix4.[01].*)
  9480. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9481. echo ' yes '
  9482. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9483. :
  9484. else
  9485. can_build_shared=no
  9486. fi
  9487. ;;
  9488. esac
  9489. # Using Import Files as archive members, it is possible to support
  9490. # filename-based versioning of shared library archives on AIX. While
  9491. # this would work for both with and without runtime linking, it will
  9492. # prevent static linking of such archives. So we do filename-based
  9493. # shared library versioning with .so extension only, which is used
  9494. # when both runtime linking and shared linking is enabled.
  9495. # Unfortunately, runtime linking may impact performance, so we do
  9496. # not want this to be the default eventually. Also, we use the
  9497. # versioned .so libs for executables only if there is the -brtl
  9498. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9499. # To allow for filename-based versioning support, we need to create
  9500. # libNAME.so.V as an archive file, containing:
  9501. # *) an Import File, referring to the versioned filename of the
  9502. # archive as well as the shared archive member, telling the
  9503. # bitwidth (32 or 64) of that shared object, and providing the
  9504. # list of exported symbols of that shared object, eventually
  9505. # decorated with the 'weak' keyword
  9506. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9507. # it being seen by the linker.
  9508. # At run time we better use the real file rather than another symlink,
  9509. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9510. case $with_aix_soname,$aix_use_runtimelinking in
  9511. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9512. # soname into executable. Probably we can add versioning support to
  9513. # collect2, so additional links can be useful in future.
  9514. aix,yes) # traditional libtool
  9515. dynamic_linker='AIX unversionable lib.so'
  9516. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9517. # instead of lib<name>.a to let people know that these are not
  9518. # typical AIX shared libraries.
  9519. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9520. ;;
  9521. aix,no) # traditional AIX only
  9522. dynamic_linker='AIX lib.a(lib.so.V)'
  9523. # We preserve .a as extension for shared libraries through AIX4.2
  9524. # and later when we are not doing run time linking.
  9525. library_names_spec='$libname$release.a $libname.a'
  9526. soname_spec='$libname$release$shared_ext$major'
  9527. ;;
  9528. svr4,*) # full svr4 only
  9529. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9530. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9531. # We do not specify a path in Import Files, so LIBPATH fires.
  9532. shlibpath_overrides_runpath=yes
  9533. ;;
  9534. *,yes) # both, prefer svr4
  9535. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9536. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9537. # unpreferred sharedlib libNAME.a needs extra handling
  9538. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9539. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9540. # We do not specify a path in Import Files, so LIBPATH fires.
  9541. shlibpath_overrides_runpath=yes
  9542. ;;
  9543. *,no) # both, prefer aix
  9544. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9545. library_names_spec='$libname$release.a $libname.a'
  9546. soname_spec='$libname$release$shared_ext$major'
  9547. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9548. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9549. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9550. ;;
  9551. esac
  9552. shlibpath_var=LIBPATH
  9553. fi
  9554. ;;
  9555. amigaos*)
  9556. case $host_cpu in
  9557. powerpc)
  9558. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9559. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9560. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9561. ;;
  9562. m68k)
  9563. library_names_spec='$libname.ixlibrary $libname.a'
  9564. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9565. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9566. ;;
  9567. esac
  9568. ;;
  9569. beos*)
  9570. library_names_spec='$libname$shared_ext'
  9571. dynamic_linker="$host_os ld.so"
  9572. shlibpath_var=LIBRARY_PATH
  9573. ;;
  9574. bsdi[45]*)
  9575. version_type=linux # correct to gnu/linux during the next big refactor
  9576. need_version=no
  9577. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9578. soname_spec='$libname$release$shared_ext$major'
  9579. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9580. shlibpath_var=LD_LIBRARY_PATH
  9581. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9582. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9583. # the default ld.so.conf also contains /usr/contrib/lib and
  9584. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9585. # libtool to hard-code these into programs
  9586. ;;
  9587. cygwin* | mingw* | pw32* | cegcc*)
  9588. version_type=windows
  9589. shrext_cmds=.dll
  9590. need_version=no
  9591. need_lib_prefix=no
  9592. case $GCC,$cc_basename in
  9593. yes,*)
  9594. # gcc
  9595. library_names_spec='$libname.dll.a'
  9596. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9597. postinstall_cmds='base_file=`basename \$file`~
  9598. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9599. dldir=$destdir/`dirname \$dlpath`~
  9600. test -d \$dldir || mkdir -p \$dldir~
  9601. $install_prog $dir/$dlname \$dldir/$dlname~
  9602. chmod a+x \$dldir/$dlname~
  9603. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9604. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9605. fi'
  9606. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9607. dlpath=$dir/\$dldll~
  9608. $RM \$dlpath'
  9609. shlibpath_overrides_runpath=yes
  9610. case $host_os in
  9611. cygwin*)
  9612. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9613. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9614. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9615. ;;
  9616. mingw* | cegcc*)
  9617. # MinGW DLLs use traditional 'lib' prefix
  9618. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9619. ;;
  9620. pw32*)
  9621. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9622. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9623. ;;
  9624. esac
  9625. dynamic_linker='Win32 ld.exe'
  9626. ;;
  9627. *,cl* | *,icl*)
  9628. # Native MSVC or ICC
  9629. libname_spec='$name'
  9630. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9631. library_names_spec='$libname.dll.lib'
  9632. case $build_os in
  9633. mingw*)
  9634. sys_lib_search_path_spec=
  9635. lt_save_ifs=$IFS
  9636. IFS=';'
  9637. for lt_path in $LIB
  9638. do
  9639. IFS=$lt_save_ifs
  9640. # Let DOS variable expansion print the short 8.3 style file name.
  9641. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9642. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9643. done
  9644. IFS=$lt_save_ifs
  9645. # Convert to MSYS style.
  9646. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9647. ;;
  9648. cygwin*)
  9649. # Convert to unix form, then to dos form, then back to unix form
  9650. # but this time dos style (no spaces!) so that the unix form looks
  9651. # like /cygdrive/c/PROGRA~1:/cygdr...
  9652. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9653. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9654. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9655. ;;
  9656. *)
  9657. sys_lib_search_path_spec=$LIB
  9658. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9659. # It is most probably a Windows format PATH.
  9660. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9661. else
  9662. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9663. fi
  9664. # FIXME: find the short name or the path components, as spaces are
  9665. # common. (e.g. "Program Files" -> "PROGRA~1")
  9666. ;;
  9667. esac
  9668. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9669. postinstall_cmds='base_file=`basename \$file`~
  9670. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9671. dldir=$destdir/`dirname \$dlpath`~
  9672. test -d \$dldir || mkdir -p \$dldir~
  9673. $install_prog $dir/$dlname \$dldir/$dlname'
  9674. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9675. dlpath=$dir/\$dldll~
  9676. $RM \$dlpath'
  9677. shlibpath_overrides_runpath=yes
  9678. dynamic_linker='Win32 link.exe'
  9679. ;;
  9680. *)
  9681. # Assume MSVC and ICC wrapper
  9682. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9683. dynamic_linker='Win32 ld.exe'
  9684. ;;
  9685. esac
  9686. # FIXME: first we should search . and the directory the executable is in
  9687. shlibpath_var=PATH
  9688. ;;
  9689. darwin* | rhapsody*)
  9690. dynamic_linker="$host_os dyld"
  9691. version_type=darwin
  9692. need_lib_prefix=no
  9693. need_version=no
  9694. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9695. soname_spec='$libname$release$major$shared_ext'
  9696. shlibpath_overrides_runpath=yes
  9697. shlibpath_var=DYLD_LIBRARY_PATH
  9698. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9699. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9700. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9701. ;;
  9702. dgux*)
  9703. version_type=linux # correct to gnu/linux during the next big refactor
  9704. need_lib_prefix=no
  9705. need_version=no
  9706. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9707. soname_spec='$libname$release$shared_ext$major'
  9708. shlibpath_var=LD_LIBRARY_PATH
  9709. ;;
  9710. freebsd* | dragonfly*)
  9711. # DragonFly does not have aout. When/if they implement a new
  9712. # versioning mechanism, adjust this.
  9713. if test -x /usr/bin/objformat; then
  9714. objformat=`/usr/bin/objformat`
  9715. else
  9716. case $host_os in
  9717. freebsd[23].*) objformat=aout ;;
  9718. *) objformat=elf ;;
  9719. esac
  9720. fi
  9721. version_type=freebsd-$objformat
  9722. case $version_type in
  9723. freebsd-elf*)
  9724. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9725. soname_spec='$libname$release$shared_ext$major'
  9726. need_version=no
  9727. need_lib_prefix=no
  9728. ;;
  9729. freebsd-*)
  9730. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9731. need_version=yes
  9732. ;;
  9733. esac
  9734. shlibpath_var=LD_LIBRARY_PATH
  9735. case $host_os in
  9736. freebsd2.*)
  9737. shlibpath_overrides_runpath=yes
  9738. ;;
  9739. freebsd3.[01]* | freebsdelf3.[01]*)
  9740. shlibpath_overrides_runpath=yes
  9741. hardcode_into_libs=yes
  9742. ;;
  9743. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9744. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9745. shlibpath_overrides_runpath=no
  9746. hardcode_into_libs=yes
  9747. ;;
  9748. *) # from 4.6 on, and DragonFly
  9749. shlibpath_overrides_runpath=yes
  9750. hardcode_into_libs=yes
  9751. ;;
  9752. esac
  9753. ;;
  9754. haiku*)
  9755. version_type=linux # correct to gnu/linux during the next big refactor
  9756. need_lib_prefix=no
  9757. need_version=no
  9758. dynamic_linker="$host_os runtime_loader"
  9759. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9760. soname_spec='$libname$release$shared_ext$major'
  9761. shlibpath_var=LIBRARY_PATH
  9762. shlibpath_overrides_runpath=no
  9763. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9764. hardcode_into_libs=yes
  9765. ;;
  9766. hpux9* | hpux10* | hpux11*)
  9767. # Give a soname corresponding to the major version so that dld.sl refuses to
  9768. # link against other versions.
  9769. version_type=sunos
  9770. need_lib_prefix=no
  9771. need_version=no
  9772. case $host_cpu in
  9773. ia64*)
  9774. shrext_cmds='.so'
  9775. hardcode_into_libs=yes
  9776. dynamic_linker="$host_os dld.so"
  9777. shlibpath_var=LD_LIBRARY_PATH
  9778. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9779. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9780. soname_spec='$libname$release$shared_ext$major'
  9781. if test 32 = "$HPUX_IA64_MODE"; then
  9782. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9783. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9784. else
  9785. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9786. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9787. fi
  9788. ;;
  9789. hppa*64*)
  9790. shrext_cmds='.sl'
  9791. hardcode_into_libs=yes
  9792. dynamic_linker="$host_os dld.sl"
  9793. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9794. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9795. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9796. soname_spec='$libname$release$shared_ext$major'
  9797. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9798. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9799. ;;
  9800. *)
  9801. shrext_cmds='.sl'
  9802. dynamic_linker="$host_os dld.sl"
  9803. shlibpath_var=SHLIB_PATH
  9804. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9805. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9806. soname_spec='$libname$release$shared_ext$major'
  9807. ;;
  9808. esac
  9809. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9810. postinstall_cmds='chmod 555 $lib'
  9811. # or fails outright, so override atomically:
  9812. install_override_mode=555
  9813. ;;
  9814. interix[3-9]*)
  9815. version_type=linux # correct to gnu/linux during the next big refactor
  9816. need_lib_prefix=no
  9817. need_version=no
  9818. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9819. soname_spec='$libname$release$shared_ext$major'
  9820. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9821. shlibpath_var=LD_LIBRARY_PATH
  9822. shlibpath_overrides_runpath=no
  9823. hardcode_into_libs=yes
  9824. ;;
  9825. irix5* | irix6* | nonstopux*)
  9826. case $host_os in
  9827. nonstopux*) version_type=nonstopux ;;
  9828. *)
  9829. if test yes = "$lt_cv_prog_gnu_ld"; then
  9830. version_type=linux # correct to gnu/linux during the next big refactor
  9831. else
  9832. version_type=irix
  9833. fi ;;
  9834. esac
  9835. need_lib_prefix=no
  9836. need_version=no
  9837. soname_spec='$libname$release$shared_ext$major'
  9838. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9839. case $host_os in
  9840. irix5* | nonstopux*)
  9841. libsuff= shlibsuff=
  9842. ;;
  9843. *)
  9844. case $LD in # libtool.m4 will add one of these switches to LD
  9845. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9846. libsuff= shlibsuff= libmagic=32-bit;;
  9847. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9848. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9849. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9850. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9851. *) libsuff= shlibsuff= libmagic=never-match;;
  9852. esac
  9853. ;;
  9854. esac
  9855. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9856. shlibpath_overrides_runpath=no
  9857. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9858. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9859. hardcode_into_libs=yes
  9860. ;;
  9861. # No shared lib support for Linux oldld, aout, or coff.
  9862. linux*oldld* | linux*aout* | linux*coff*)
  9863. dynamic_linker=no
  9864. ;;
  9865. linux*android*)
  9866. version_type=none # Android doesn't support versioned libraries.
  9867. need_lib_prefix=no
  9868. need_version=no
  9869. library_names_spec='$libname$release$shared_ext'
  9870. soname_spec='$libname$release$shared_ext'
  9871. finish_cmds=
  9872. shlibpath_var=LD_LIBRARY_PATH
  9873. shlibpath_overrides_runpath=yes
  9874. # This implies no fast_install, which is unacceptable.
  9875. # Some rework will be needed to allow for fast_install
  9876. # before this can be enabled.
  9877. hardcode_into_libs=yes
  9878. dynamic_linker='Android linker'
  9879. # Don't embed -rpath directories since the linker doesn't support them.
  9880. hardcode_libdir_flag_spec='-L$libdir'
  9881. ;;
  9882. # This must be glibc/ELF.
  9883. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9884. version_type=linux # correct to gnu/linux during the next big refactor
  9885. need_lib_prefix=no
  9886. need_version=no
  9887. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9888. soname_spec='$libname$release$shared_ext$major'
  9889. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9890. shlibpath_var=LD_LIBRARY_PATH
  9891. shlibpath_overrides_runpath=no
  9892. # Some binutils ld are patched to set DT_RUNPATH
  9893. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9894. $as_echo_n "(cached) " >&6
  9895. else
  9896. lt_cv_shlibpath_overrides_runpath=no
  9897. save_LDFLAGS=$LDFLAGS
  9898. save_libdir=$libdir
  9899. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9900. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9902. /* end confdefs.h. */
  9903. int
  9904. main ()
  9905. {
  9906. ;
  9907. return 0;
  9908. }
  9909. _ACEOF
  9910. if ac_fn_c_try_link "$LINENO"; then :
  9911. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9912. lt_cv_shlibpath_overrides_runpath=yes
  9913. fi
  9914. fi
  9915. rm -f core conftest.err conftest.$ac_objext \
  9916. conftest$ac_exeext conftest.$ac_ext
  9917. LDFLAGS=$save_LDFLAGS
  9918. libdir=$save_libdir
  9919. fi
  9920. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9921. # This implies no fast_install, which is unacceptable.
  9922. # Some rework will be needed to allow for fast_install
  9923. # before this can be enabled.
  9924. hardcode_into_libs=yes
  9925. # Ideally, we could use ldconfig to report *all* directores which are
  9926. # searched for libraries, however this is still not possible. Aside from not
  9927. # being certain /sbin/ldconfig is available, command
  9928. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9929. # even though it is searched at run-time. Try to do the best guess by
  9930. # appending ld.so.conf contents (and includes) to the search path.
  9931. if test -f /etc/ld.so.conf; then
  9932. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9933. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9934. fi
  9935. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9936. # powerpc, because MkLinux only supported shared libraries with the
  9937. # GNU dynamic linker. Since this was broken with cross compilers,
  9938. # most powerpc-linux boxes support dynamic linking these days and
  9939. # people can always --disable-shared, the test was removed, and we
  9940. # assume the GNU/Linux dynamic linker is in use.
  9941. dynamic_linker='GNU/Linux ld.so'
  9942. ;;
  9943. netbsd*)
  9944. version_type=sunos
  9945. need_lib_prefix=no
  9946. need_version=no
  9947. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9948. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9949. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9950. dynamic_linker='NetBSD (a.out) ld.so'
  9951. else
  9952. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9953. soname_spec='$libname$release$shared_ext$major'
  9954. dynamic_linker='NetBSD ld.elf_so'
  9955. fi
  9956. shlibpath_var=LD_LIBRARY_PATH
  9957. shlibpath_overrides_runpath=yes
  9958. hardcode_into_libs=yes
  9959. ;;
  9960. newsos6)
  9961. version_type=linux # correct to gnu/linux during the next big refactor
  9962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9963. shlibpath_var=LD_LIBRARY_PATH
  9964. shlibpath_overrides_runpath=yes
  9965. ;;
  9966. *nto* | *qnx*)
  9967. version_type=qnx
  9968. need_lib_prefix=no
  9969. need_version=no
  9970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9971. soname_spec='$libname$release$shared_ext$major'
  9972. shlibpath_var=LD_LIBRARY_PATH
  9973. shlibpath_overrides_runpath=no
  9974. hardcode_into_libs=yes
  9975. dynamic_linker='ldqnx.so'
  9976. ;;
  9977. openbsd* | bitrig*)
  9978. version_type=sunos
  9979. sys_lib_dlsearch_path_spec=/usr/lib
  9980. need_lib_prefix=no
  9981. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9982. need_version=no
  9983. else
  9984. need_version=yes
  9985. fi
  9986. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9987. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9988. shlibpath_var=LD_LIBRARY_PATH
  9989. shlibpath_overrides_runpath=yes
  9990. ;;
  9991. os2*)
  9992. libname_spec='$name'
  9993. version_type=windows
  9994. shrext_cmds=.dll
  9995. need_version=no
  9996. need_lib_prefix=no
  9997. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9998. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9999. v=$($ECHO $release$versuffix | tr -d .-);
  10000. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10001. $ECHO $n$v`$shared_ext'
  10002. library_names_spec='${libname}_dll.$libext'
  10003. dynamic_linker='OS/2 ld.exe'
  10004. shlibpath_var=BEGINLIBPATH
  10005. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10006. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10007. postinstall_cmds='base_file=`basename \$file`~
  10008. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10009. dldir=$destdir/`dirname \$dlpath`~
  10010. test -d \$dldir || mkdir -p \$dldir~
  10011. $install_prog $dir/$dlname \$dldir/$dlname~
  10012. chmod a+x \$dldir/$dlname~
  10013. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10014. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10015. fi'
  10016. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10017. dlpath=$dir/\$dldll~
  10018. $RM \$dlpath'
  10019. ;;
  10020. osf3* | osf4* | osf5*)
  10021. version_type=osf
  10022. need_lib_prefix=no
  10023. need_version=no
  10024. soname_spec='$libname$release$shared_ext$major'
  10025. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10026. shlibpath_var=LD_LIBRARY_PATH
  10027. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10028. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10029. ;;
  10030. rdos*)
  10031. dynamic_linker=no
  10032. ;;
  10033. solaris*)
  10034. version_type=linux # correct to gnu/linux during the next big refactor
  10035. need_lib_prefix=no
  10036. need_version=no
  10037. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10038. soname_spec='$libname$release$shared_ext$major'
  10039. shlibpath_var=LD_LIBRARY_PATH
  10040. shlibpath_overrides_runpath=yes
  10041. hardcode_into_libs=yes
  10042. # ldd complains unless libraries are executable
  10043. postinstall_cmds='chmod +x $lib'
  10044. ;;
  10045. sunos4*)
  10046. version_type=sunos
  10047. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10048. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10049. shlibpath_var=LD_LIBRARY_PATH
  10050. shlibpath_overrides_runpath=yes
  10051. if test yes = "$with_gnu_ld"; then
  10052. need_lib_prefix=no
  10053. fi
  10054. need_version=yes
  10055. ;;
  10056. sysv4 | sysv4.3*)
  10057. version_type=linux # correct to gnu/linux during the next big refactor
  10058. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10059. soname_spec='$libname$release$shared_ext$major'
  10060. shlibpath_var=LD_LIBRARY_PATH
  10061. case $host_vendor in
  10062. sni)
  10063. shlibpath_overrides_runpath=no
  10064. need_lib_prefix=no
  10065. runpath_var=LD_RUN_PATH
  10066. ;;
  10067. siemens)
  10068. need_lib_prefix=no
  10069. ;;
  10070. motorola)
  10071. need_lib_prefix=no
  10072. need_version=no
  10073. shlibpath_overrides_runpath=no
  10074. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10075. ;;
  10076. esac
  10077. ;;
  10078. sysv4*MP*)
  10079. if test -d /usr/nec; then
  10080. version_type=linux # correct to gnu/linux during the next big refactor
  10081. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10082. soname_spec='$libname$shared_ext.$major'
  10083. shlibpath_var=LD_LIBRARY_PATH
  10084. fi
  10085. ;;
  10086. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10087. version_type=sco
  10088. need_lib_prefix=no
  10089. need_version=no
  10090. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10091. soname_spec='$libname$release$shared_ext$major'
  10092. shlibpath_var=LD_LIBRARY_PATH
  10093. shlibpath_overrides_runpath=yes
  10094. hardcode_into_libs=yes
  10095. if test yes = "$with_gnu_ld"; then
  10096. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10097. else
  10098. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10099. case $host_os in
  10100. sco3.2v5*)
  10101. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10102. ;;
  10103. esac
  10104. fi
  10105. sys_lib_dlsearch_path_spec='/usr/lib'
  10106. ;;
  10107. tpf*)
  10108. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10109. version_type=linux # correct to gnu/linux during the next big refactor
  10110. need_lib_prefix=no
  10111. need_version=no
  10112. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10113. shlibpath_var=LD_LIBRARY_PATH
  10114. shlibpath_overrides_runpath=no
  10115. hardcode_into_libs=yes
  10116. ;;
  10117. uts4*)
  10118. version_type=linux # correct to gnu/linux during the next big refactor
  10119. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10120. soname_spec='$libname$release$shared_ext$major'
  10121. shlibpath_var=LD_LIBRARY_PATH
  10122. ;;
  10123. *)
  10124. dynamic_linker=no
  10125. ;;
  10126. esac
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10128. $as_echo "$dynamic_linker" >&6; }
  10129. test no = "$dynamic_linker" && can_build_shared=no
  10130. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10131. if test yes = "$GCC"; then
  10132. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10133. fi
  10134. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10135. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10136. fi
  10137. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10138. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10139. fi
  10140. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10141. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10142. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10143. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10144. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10145. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10147. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10148. hardcode_action=
  10149. if test -n "$hardcode_libdir_flag_spec" ||
  10150. test -n "$runpath_var" ||
  10151. test yes = "$hardcode_automatic"; then
  10152. # We can hardcode non-existent directories.
  10153. if test no != "$hardcode_direct" &&
  10154. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10155. # have to relink, otherwise we might link with an installed library
  10156. # when we should be linking with a yet-to-be-installed one
  10157. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10158. test no != "$hardcode_minus_L"; then
  10159. # Linking always hardcodes the temporary library directory.
  10160. hardcode_action=relink
  10161. else
  10162. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10163. hardcode_action=immediate
  10164. fi
  10165. else
  10166. # We cannot hardcode anything, or else we can only hardcode existing
  10167. # directories.
  10168. hardcode_action=unsupported
  10169. fi
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10171. $as_echo "$hardcode_action" >&6; }
  10172. if test relink = "$hardcode_action" ||
  10173. test yes = "$inherit_rpath"; then
  10174. # Fast installation is not supported
  10175. enable_fast_install=no
  10176. elif test yes = "$shlibpath_overrides_runpath" ||
  10177. test no = "$enable_shared"; then
  10178. # Fast installation is not necessary
  10179. enable_fast_install=needless
  10180. fi
  10181. if test yes != "$enable_dlopen"; then
  10182. enable_dlopen=unknown
  10183. enable_dlopen_self=unknown
  10184. enable_dlopen_self_static=unknown
  10185. else
  10186. lt_cv_dlopen=no
  10187. lt_cv_dlopen_libs=
  10188. case $host_os in
  10189. beos*)
  10190. lt_cv_dlopen=load_add_on
  10191. lt_cv_dlopen_libs=
  10192. lt_cv_dlopen_self=yes
  10193. ;;
  10194. mingw* | pw32* | cegcc*)
  10195. lt_cv_dlopen=LoadLibrary
  10196. lt_cv_dlopen_libs=
  10197. ;;
  10198. cygwin*)
  10199. lt_cv_dlopen=dlopen
  10200. lt_cv_dlopen_libs=
  10201. ;;
  10202. darwin*)
  10203. # if libdl is installed we need to link against it
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10205. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10206. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10207. $as_echo_n "(cached) " >&6
  10208. else
  10209. ac_check_lib_save_LIBS=$LIBS
  10210. LIBS="-ldl $LIBS"
  10211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10212. /* end confdefs.h. */
  10213. /* Override any GCC internal prototype to avoid an error.
  10214. Use char because int might match the return type of a GCC
  10215. builtin and then its argument prototype would still apply. */
  10216. #ifdef __cplusplus
  10217. extern "C"
  10218. #endif
  10219. char dlopen ();
  10220. int
  10221. main ()
  10222. {
  10223. return dlopen ();
  10224. ;
  10225. return 0;
  10226. }
  10227. _ACEOF
  10228. if ac_fn_c_try_link "$LINENO"; then :
  10229. ac_cv_lib_dl_dlopen=yes
  10230. else
  10231. ac_cv_lib_dl_dlopen=no
  10232. fi
  10233. rm -f core conftest.err conftest.$ac_objext \
  10234. conftest$ac_exeext conftest.$ac_ext
  10235. LIBS=$ac_check_lib_save_LIBS
  10236. fi
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10238. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10239. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10240. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10241. else
  10242. lt_cv_dlopen=dyld
  10243. lt_cv_dlopen_libs=
  10244. lt_cv_dlopen_self=yes
  10245. fi
  10246. ;;
  10247. tpf*)
  10248. # Don't try to run any link tests for TPF. We know it's impossible
  10249. # because TPF is a cross-compiler, and we know how we open DSOs.
  10250. lt_cv_dlopen=dlopen
  10251. lt_cv_dlopen_libs=
  10252. lt_cv_dlopen_self=no
  10253. ;;
  10254. *)
  10255. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10256. if test "x$ac_cv_func_shl_load" = xyes; then :
  10257. lt_cv_dlopen=shl_load
  10258. else
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10260. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10261. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10262. $as_echo_n "(cached) " >&6
  10263. else
  10264. ac_check_lib_save_LIBS=$LIBS
  10265. LIBS="-ldld $LIBS"
  10266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10267. /* end confdefs.h. */
  10268. /* Override any GCC internal prototype to avoid an error.
  10269. Use char because int might match the return type of a GCC
  10270. builtin and then its argument prototype would still apply. */
  10271. #ifdef __cplusplus
  10272. extern "C"
  10273. #endif
  10274. char shl_load ();
  10275. int
  10276. main ()
  10277. {
  10278. return shl_load ();
  10279. ;
  10280. return 0;
  10281. }
  10282. _ACEOF
  10283. if ac_fn_c_try_link "$LINENO"; then :
  10284. ac_cv_lib_dld_shl_load=yes
  10285. else
  10286. ac_cv_lib_dld_shl_load=no
  10287. fi
  10288. rm -f core conftest.err conftest.$ac_objext \
  10289. conftest$ac_exeext conftest.$ac_ext
  10290. LIBS=$ac_check_lib_save_LIBS
  10291. fi
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10293. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10294. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10295. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10296. else
  10297. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10298. if test "x$ac_cv_func_dlopen" = xyes; then :
  10299. lt_cv_dlopen=dlopen
  10300. else
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10302. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10303. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10304. $as_echo_n "(cached) " >&6
  10305. else
  10306. ac_check_lib_save_LIBS=$LIBS
  10307. LIBS="-ldl $LIBS"
  10308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10309. /* end confdefs.h. */
  10310. /* Override any GCC internal prototype to avoid an error.
  10311. Use char because int might match the return type of a GCC
  10312. builtin and then its argument prototype would still apply. */
  10313. #ifdef __cplusplus
  10314. extern "C"
  10315. #endif
  10316. char dlopen ();
  10317. int
  10318. main ()
  10319. {
  10320. return dlopen ();
  10321. ;
  10322. return 0;
  10323. }
  10324. _ACEOF
  10325. if ac_fn_c_try_link "$LINENO"; then :
  10326. ac_cv_lib_dl_dlopen=yes
  10327. else
  10328. ac_cv_lib_dl_dlopen=no
  10329. fi
  10330. rm -f core conftest.err conftest.$ac_objext \
  10331. conftest$ac_exeext conftest.$ac_ext
  10332. LIBS=$ac_check_lib_save_LIBS
  10333. fi
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10335. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10336. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10337. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10340. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10341. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10342. $as_echo_n "(cached) " >&6
  10343. else
  10344. ac_check_lib_save_LIBS=$LIBS
  10345. LIBS="-lsvld $LIBS"
  10346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10347. /* end confdefs.h. */
  10348. /* Override any GCC internal prototype to avoid an error.
  10349. Use char because int might match the return type of a GCC
  10350. builtin and then its argument prototype would still apply. */
  10351. #ifdef __cplusplus
  10352. extern "C"
  10353. #endif
  10354. char dlopen ();
  10355. int
  10356. main ()
  10357. {
  10358. return dlopen ();
  10359. ;
  10360. return 0;
  10361. }
  10362. _ACEOF
  10363. if ac_fn_c_try_link "$LINENO"; then :
  10364. ac_cv_lib_svld_dlopen=yes
  10365. else
  10366. ac_cv_lib_svld_dlopen=no
  10367. fi
  10368. rm -f core conftest.err conftest.$ac_objext \
  10369. conftest$ac_exeext conftest.$ac_ext
  10370. LIBS=$ac_check_lib_save_LIBS
  10371. fi
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10373. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10374. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10375. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10376. else
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10378. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10379. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. ac_check_lib_save_LIBS=$LIBS
  10383. LIBS="-ldld $LIBS"
  10384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10385. /* end confdefs.h. */
  10386. /* Override any GCC internal prototype to avoid an error.
  10387. Use char because int might match the return type of a GCC
  10388. builtin and then its argument prototype would still apply. */
  10389. #ifdef __cplusplus
  10390. extern "C"
  10391. #endif
  10392. char dld_link ();
  10393. int
  10394. main ()
  10395. {
  10396. return dld_link ();
  10397. ;
  10398. return 0;
  10399. }
  10400. _ACEOF
  10401. if ac_fn_c_try_link "$LINENO"; then :
  10402. ac_cv_lib_dld_dld_link=yes
  10403. else
  10404. ac_cv_lib_dld_dld_link=no
  10405. fi
  10406. rm -f core conftest.err conftest.$ac_objext \
  10407. conftest$ac_exeext conftest.$ac_ext
  10408. LIBS=$ac_check_lib_save_LIBS
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10411. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10412. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10413. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10414. fi
  10415. fi
  10416. fi
  10417. fi
  10418. fi
  10419. fi
  10420. ;;
  10421. esac
  10422. if test no = "$lt_cv_dlopen"; then
  10423. enable_dlopen=no
  10424. else
  10425. enable_dlopen=yes
  10426. fi
  10427. case $lt_cv_dlopen in
  10428. dlopen)
  10429. save_CPPFLAGS=$CPPFLAGS
  10430. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10431. save_LDFLAGS=$LDFLAGS
  10432. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10433. save_LIBS=$LIBS
  10434. LIBS="$lt_cv_dlopen_libs $LIBS"
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10436. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10437. if ${lt_cv_dlopen_self+:} false; then :
  10438. $as_echo_n "(cached) " >&6
  10439. else
  10440. if test yes = "$cross_compiling"; then :
  10441. lt_cv_dlopen_self=cross
  10442. else
  10443. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10444. lt_status=$lt_dlunknown
  10445. cat > conftest.$ac_ext <<_LT_EOF
  10446. #line $LINENO "configure"
  10447. #include "confdefs.h"
  10448. #if HAVE_DLFCN_H
  10449. #include <dlfcn.h>
  10450. #endif
  10451. #include <stdio.h>
  10452. #ifdef RTLD_GLOBAL
  10453. # define LT_DLGLOBAL RTLD_GLOBAL
  10454. #else
  10455. # ifdef DL_GLOBAL
  10456. # define LT_DLGLOBAL DL_GLOBAL
  10457. # else
  10458. # define LT_DLGLOBAL 0
  10459. # endif
  10460. #endif
  10461. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10462. find out it does not work in some platform. */
  10463. #ifndef LT_DLLAZY_OR_NOW
  10464. # ifdef RTLD_LAZY
  10465. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10466. # else
  10467. # ifdef DL_LAZY
  10468. # define LT_DLLAZY_OR_NOW DL_LAZY
  10469. # else
  10470. # ifdef RTLD_NOW
  10471. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10472. # else
  10473. # ifdef DL_NOW
  10474. # define LT_DLLAZY_OR_NOW DL_NOW
  10475. # else
  10476. # define LT_DLLAZY_OR_NOW 0
  10477. # endif
  10478. # endif
  10479. # endif
  10480. # endif
  10481. #endif
  10482. /* When -fvisibility=hidden is used, assume the code has been annotated
  10483. correspondingly for the symbols needed. */
  10484. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10485. int fnord () __attribute__((visibility("default")));
  10486. #endif
  10487. int fnord () { return 42; }
  10488. int main ()
  10489. {
  10490. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10491. int status = $lt_dlunknown;
  10492. if (self)
  10493. {
  10494. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10495. else
  10496. {
  10497. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10498. else puts (dlerror ());
  10499. }
  10500. /* dlclose (self); */
  10501. }
  10502. else
  10503. puts (dlerror ());
  10504. return status;
  10505. }
  10506. _LT_EOF
  10507. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10508. (eval $ac_link) 2>&5
  10509. ac_status=$?
  10510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10511. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10512. (./conftest; exit; ) >&5 2>/dev/null
  10513. lt_status=$?
  10514. case x$lt_status in
  10515. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10516. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10517. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10518. esac
  10519. else :
  10520. # compilation failed
  10521. lt_cv_dlopen_self=no
  10522. fi
  10523. fi
  10524. rm -fr conftest*
  10525. fi
  10526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10527. $as_echo "$lt_cv_dlopen_self" >&6; }
  10528. if test yes = "$lt_cv_dlopen_self"; then
  10529. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10531. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10532. if ${lt_cv_dlopen_self_static+:} false; then :
  10533. $as_echo_n "(cached) " >&6
  10534. else
  10535. if test yes = "$cross_compiling"; then :
  10536. lt_cv_dlopen_self_static=cross
  10537. else
  10538. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10539. lt_status=$lt_dlunknown
  10540. cat > conftest.$ac_ext <<_LT_EOF
  10541. #line $LINENO "configure"
  10542. #include "confdefs.h"
  10543. #if HAVE_DLFCN_H
  10544. #include <dlfcn.h>
  10545. #endif
  10546. #include <stdio.h>
  10547. #ifdef RTLD_GLOBAL
  10548. # define LT_DLGLOBAL RTLD_GLOBAL
  10549. #else
  10550. # ifdef DL_GLOBAL
  10551. # define LT_DLGLOBAL DL_GLOBAL
  10552. # else
  10553. # define LT_DLGLOBAL 0
  10554. # endif
  10555. #endif
  10556. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10557. find out it does not work in some platform. */
  10558. #ifndef LT_DLLAZY_OR_NOW
  10559. # ifdef RTLD_LAZY
  10560. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10561. # else
  10562. # ifdef DL_LAZY
  10563. # define LT_DLLAZY_OR_NOW DL_LAZY
  10564. # else
  10565. # ifdef RTLD_NOW
  10566. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10567. # else
  10568. # ifdef DL_NOW
  10569. # define LT_DLLAZY_OR_NOW DL_NOW
  10570. # else
  10571. # define LT_DLLAZY_OR_NOW 0
  10572. # endif
  10573. # endif
  10574. # endif
  10575. # endif
  10576. #endif
  10577. /* When -fvisibility=hidden is used, assume the code has been annotated
  10578. correspondingly for the symbols needed. */
  10579. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10580. int fnord () __attribute__((visibility("default")));
  10581. #endif
  10582. int fnord () { return 42; }
  10583. int main ()
  10584. {
  10585. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10586. int status = $lt_dlunknown;
  10587. if (self)
  10588. {
  10589. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10590. else
  10591. {
  10592. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10593. else puts (dlerror ());
  10594. }
  10595. /* dlclose (self); */
  10596. }
  10597. else
  10598. puts (dlerror ());
  10599. return status;
  10600. }
  10601. _LT_EOF
  10602. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10603. (eval $ac_link) 2>&5
  10604. ac_status=$?
  10605. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10606. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10607. (./conftest; exit; ) >&5 2>/dev/null
  10608. lt_status=$?
  10609. case x$lt_status in
  10610. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10611. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10612. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10613. esac
  10614. else :
  10615. # compilation failed
  10616. lt_cv_dlopen_self_static=no
  10617. fi
  10618. fi
  10619. rm -fr conftest*
  10620. fi
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10622. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10623. fi
  10624. CPPFLAGS=$save_CPPFLAGS
  10625. LDFLAGS=$save_LDFLAGS
  10626. LIBS=$save_LIBS
  10627. ;;
  10628. esac
  10629. case $lt_cv_dlopen_self in
  10630. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10631. *) enable_dlopen_self=unknown ;;
  10632. esac
  10633. case $lt_cv_dlopen_self_static in
  10634. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10635. *) enable_dlopen_self_static=unknown ;;
  10636. esac
  10637. fi
  10638. striplib=
  10639. old_striplib=
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10641. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10642. if test -z "$STRIP"; then
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10644. $as_echo "no" >&6; }
  10645. else
  10646. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10647. old_striplib="$STRIP --strip-debug"
  10648. striplib="$STRIP --strip-unneeded"
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10650. $as_echo "yes" >&6; }
  10651. else
  10652. case $host_os in
  10653. darwin*)
  10654. # FIXME - insert some real tests, host_os isn't really good enough
  10655. striplib="$STRIP -x"
  10656. old_striplib="$STRIP -S"
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10658. $as_echo "yes" >&6; }
  10659. ;;
  10660. freebsd*)
  10661. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  10662. old_striplib="$STRIP --strip-debug"
  10663. striplib="$STRIP --strip-unneeded"
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10665. $as_echo "yes" >&6; }
  10666. else
  10667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10668. $as_echo "no" >&6; }
  10669. fi
  10670. ;;
  10671. *)
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10673. $as_echo "no" >&6; }
  10674. ;;
  10675. esac
  10676. fi
  10677. fi
  10678. # Report what library types will actually be built
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10680. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10682. $as_echo "$can_build_shared" >&6; }
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10684. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10685. test no = "$can_build_shared" && enable_shared=no
  10686. # On AIX, shared libraries and static libraries use the same namespace, and
  10687. # are all built from PIC.
  10688. case $host_os in
  10689. aix3*)
  10690. test yes = "$enable_shared" && enable_static=no
  10691. if test -n "$RANLIB"; then
  10692. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10693. postinstall_cmds='$RANLIB $lib'
  10694. fi
  10695. ;;
  10696. aix[4-9]*)
  10697. if test ia64 != "$host_cpu"; then
  10698. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10699. yes,aix,yes) ;; # shared object as lib.so file only
  10700. yes,svr4,*) ;; # shared object as lib.so archive member only
  10701. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10702. esac
  10703. fi
  10704. ;;
  10705. esac
  10706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10707. $as_echo "$enable_shared" >&6; }
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10709. $as_echo_n "checking whether to build static libraries... " >&6; }
  10710. # Make sure either enable_shared or enable_static is yes.
  10711. test yes = "$enable_shared" || enable_static=yes
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10713. $as_echo "$enable_static" >&6; }
  10714. fi
  10715. ac_ext=c
  10716. ac_cpp='$CPP $CPPFLAGS'
  10717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10720. CC=$lt_save_CC
  10721. ac_config_commands="$ac_config_commands libtool"
  10722. # Only expand once:
  10723. # Check whether --enable-static was given.
  10724. if test "${enable_static+set}" = set; then :
  10725. enableval=$enable_static; p=${PACKAGE-default}
  10726. case $enableval in
  10727. yes) enable_static=yes ;;
  10728. no) enable_static=no ;;
  10729. *)
  10730. enable_static=no
  10731. # Look at the argument we got. We use all the common list separators.
  10732. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10733. for pkg in $enableval; do
  10734. IFS=$lt_save_ifs
  10735. if test "X$pkg" = "X$p"; then
  10736. enable_static=yes
  10737. fi
  10738. done
  10739. IFS=$lt_save_ifs
  10740. ;;
  10741. esac
  10742. else
  10743. enable_static=no
  10744. fi
  10745. # Check whether --enable-shared was given.
  10746. if test "${enable_shared+set}" = set; then :
  10747. enableval=$enable_shared; p=${PACKAGE-default}
  10748. case $enableval in
  10749. yes) enable_shared=yes ;;
  10750. no) enable_shared=no ;;
  10751. *)
  10752. enable_shared=no
  10753. # Look at the argument we got. We use all the common list separators.
  10754. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10755. for pkg in $enableval; do
  10756. IFS=$lt_save_ifs
  10757. if test "X$pkg" = "X$p"; then
  10758. enable_shared=yes
  10759. fi
  10760. done
  10761. IFS=$lt_save_ifs
  10762. ;;
  10763. esac
  10764. else
  10765. enable_shared=yes
  10766. fi
  10767. ac_ext=c
  10768. ac_cpp='$CPP $CPPFLAGS'
  10769. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10770. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10771. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10772. if test -n "$ac_tool_prefix"; then
  10773. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10774. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10776. $as_echo_n "checking for $ac_word... " >&6; }
  10777. if ${ac_cv_prog_CC+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test -n "$CC"; then
  10781. ac_cv_prog_CC="$CC" # Let the user override the test.
  10782. else
  10783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10784. for as_dir in $PATH
  10785. do
  10786. IFS=$as_save_IFS
  10787. test -z "$as_dir" && as_dir=.
  10788. for ac_exec_ext in '' $ac_executable_extensions; do
  10789. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10790. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10792. break 2
  10793. fi
  10794. done
  10795. done
  10796. IFS=$as_save_IFS
  10797. fi
  10798. fi
  10799. CC=$ac_cv_prog_CC
  10800. if test -n "$CC"; then
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10802. $as_echo "$CC" >&6; }
  10803. else
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10805. $as_echo "no" >&6; }
  10806. fi
  10807. fi
  10808. if test -z "$ac_cv_prog_CC"; then
  10809. ac_ct_CC=$CC
  10810. # Extract the first word of "gcc", so it can be a program name with args.
  10811. set dummy gcc; ac_word=$2
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10813. $as_echo_n "checking for $ac_word... " >&6; }
  10814. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10815. $as_echo_n "(cached) " >&6
  10816. else
  10817. if test -n "$ac_ct_CC"; then
  10818. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10819. else
  10820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10821. for as_dir in $PATH
  10822. do
  10823. IFS=$as_save_IFS
  10824. test -z "$as_dir" && as_dir=.
  10825. for ac_exec_ext in '' $ac_executable_extensions; do
  10826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10827. ac_cv_prog_ac_ct_CC="gcc"
  10828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10829. break 2
  10830. fi
  10831. done
  10832. done
  10833. IFS=$as_save_IFS
  10834. fi
  10835. fi
  10836. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10837. if test -n "$ac_ct_CC"; then
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10839. $as_echo "$ac_ct_CC" >&6; }
  10840. else
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10842. $as_echo "no" >&6; }
  10843. fi
  10844. if test "x$ac_ct_CC" = x; then
  10845. CC=""
  10846. else
  10847. case $cross_compiling:$ac_tool_warned in
  10848. yes:)
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10851. ac_tool_warned=yes ;;
  10852. esac
  10853. CC=$ac_ct_CC
  10854. fi
  10855. else
  10856. CC="$ac_cv_prog_CC"
  10857. fi
  10858. if test -z "$CC"; then
  10859. if test -n "$ac_tool_prefix"; then
  10860. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10861. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10863. $as_echo_n "checking for $ac_word... " >&6; }
  10864. if ${ac_cv_prog_CC+:} false; then :
  10865. $as_echo_n "(cached) " >&6
  10866. else
  10867. if test -n "$CC"; then
  10868. ac_cv_prog_CC="$CC" # Let the user override the test.
  10869. else
  10870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10871. for as_dir in $PATH
  10872. do
  10873. IFS=$as_save_IFS
  10874. test -z "$as_dir" && as_dir=.
  10875. for ac_exec_ext in '' $ac_executable_extensions; do
  10876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10877. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10879. break 2
  10880. fi
  10881. done
  10882. done
  10883. IFS=$as_save_IFS
  10884. fi
  10885. fi
  10886. CC=$ac_cv_prog_CC
  10887. if test -n "$CC"; then
  10888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10889. $as_echo "$CC" >&6; }
  10890. else
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10892. $as_echo "no" >&6; }
  10893. fi
  10894. fi
  10895. fi
  10896. if test -z "$CC"; then
  10897. # Extract the first word of "cc", so it can be a program name with args.
  10898. set dummy cc; ac_word=$2
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10900. $as_echo_n "checking for $ac_word... " >&6; }
  10901. if ${ac_cv_prog_CC+:} false; then :
  10902. $as_echo_n "(cached) " >&6
  10903. else
  10904. if test -n "$CC"; then
  10905. ac_cv_prog_CC="$CC" # Let the user override the test.
  10906. else
  10907. ac_prog_rejected=no
  10908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10909. for as_dir in $PATH
  10910. do
  10911. IFS=$as_save_IFS
  10912. test -z "$as_dir" && as_dir=.
  10913. for ac_exec_ext in '' $ac_executable_extensions; do
  10914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10915. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10916. ac_prog_rejected=yes
  10917. continue
  10918. fi
  10919. ac_cv_prog_CC="cc"
  10920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10921. break 2
  10922. fi
  10923. done
  10924. done
  10925. IFS=$as_save_IFS
  10926. if test $ac_prog_rejected = yes; then
  10927. # We found a bogon in the path, so make sure we never use it.
  10928. set dummy $ac_cv_prog_CC
  10929. shift
  10930. if test $# != 0; then
  10931. # We chose a different compiler from the bogus one.
  10932. # However, it has the same basename, so the bogon will be chosen
  10933. # first if we set CC to just the basename; use the full file name.
  10934. shift
  10935. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10936. fi
  10937. fi
  10938. fi
  10939. fi
  10940. CC=$ac_cv_prog_CC
  10941. if test -n "$CC"; then
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10943. $as_echo "$CC" >&6; }
  10944. else
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10946. $as_echo "no" >&6; }
  10947. fi
  10948. fi
  10949. if test -z "$CC"; then
  10950. if test -n "$ac_tool_prefix"; then
  10951. for ac_prog in cl.exe
  10952. do
  10953. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10954. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10956. $as_echo_n "checking for $ac_word... " >&6; }
  10957. if ${ac_cv_prog_CC+:} false; then :
  10958. $as_echo_n "(cached) " >&6
  10959. else
  10960. if test -n "$CC"; then
  10961. ac_cv_prog_CC="$CC" # Let the user override the test.
  10962. else
  10963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10964. for as_dir in $PATH
  10965. do
  10966. IFS=$as_save_IFS
  10967. test -z "$as_dir" && as_dir=.
  10968. for ac_exec_ext in '' $ac_executable_extensions; do
  10969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10970. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10972. break 2
  10973. fi
  10974. done
  10975. done
  10976. IFS=$as_save_IFS
  10977. fi
  10978. fi
  10979. CC=$ac_cv_prog_CC
  10980. if test -n "$CC"; then
  10981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10982. $as_echo "$CC" >&6; }
  10983. else
  10984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10985. $as_echo "no" >&6; }
  10986. fi
  10987. test -n "$CC" && break
  10988. done
  10989. fi
  10990. if test -z "$CC"; then
  10991. ac_ct_CC=$CC
  10992. for ac_prog in cl.exe
  10993. do
  10994. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10995. set dummy $ac_prog; ac_word=$2
  10996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10997. $as_echo_n "checking for $ac_word... " >&6; }
  10998. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10999. $as_echo_n "(cached) " >&6
  11000. else
  11001. if test -n "$ac_ct_CC"; then
  11002. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11003. else
  11004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11005. for as_dir in $PATH
  11006. do
  11007. IFS=$as_save_IFS
  11008. test -z "$as_dir" && as_dir=.
  11009. for ac_exec_ext in '' $ac_executable_extensions; do
  11010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11011. ac_cv_prog_ac_ct_CC="$ac_prog"
  11012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11013. break 2
  11014. fi
  11015. done
  11016. done
  11017. IFS=$as_save_IFS
  11018. fi
  11019. fi
  11020. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11021. if test -n "$ac_ct_CC"; then
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11023. $as_echo "$ac_ct_CC" >&6; }
  11024. else
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11026. $as_echo "no" >&6; }
  11027. fi
  11028. test -n "$ac_ct_CC" && break
  11029. done
  11030. if test "x$ac_ct_CC" = x; then
  11031. CC=""
  11032. else
  11033. case $cross_compiling:$ac_tool_warned in
  11034. yes:)
  11035. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11036. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11037. ac_tool_warned=yes ;;
  11038. esac
  11039. CC=$ac_ct_CC
  11040. fi
  11041. fi
  11042. fi
  11043. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11044. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11045. as_fn_error $? "no acceptable C compiler found in \$PATH
  11046. See \`config.log' for more details" "$LINENO" 5; }
  11047. # Provide some information about the compiler.
  11048. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11049. set X $ac_compile
  11050. ac_compiler=$2
  11051. for ac_option in --version -v -V -qversion; do
  11052. { { ac_try="$ac_compiler $ac_option >&5"
  11053. case "(($ac_try" in
  11054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11055. *) ac_try_echo=$ac_try;;
  11056. esac
  11057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11058. $as_echo "$ac_try_echo"; } >&5
  11059. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11060. ac_status=$?
  11061. if test -s conftest.err; then
  11062. sed '10a\
  11063. ... rest of stderr output deleted ...
  11064. 10q' conftest.err >conftest.er1
  11065. cat conftest.er1 >&5
  11066. fi
  11067. rm -f conftest.er1 conftest.err
  11068. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11069. test $ac_status = 0; }
  11070. done
  11071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  11072. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  11073. if ${ac_cv_c_compiler_gnu+:} false; then :
  11074. $as_echo_n "(cached) " >&6
  11075. else
  11076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11077. /* end confdefs.h. */
  11078. int
  11079. main ()
  11080. {
  11081. #ifndef __GNUC__
  11082. choke me
  11083. #endif
  11084. ;
  11085. return 0;
  11086. }
  11087. _ACEOF
  11088. if ac_fn_c_try_compile "$LINENO"; then :
  11089. ac_compiler_gnu=yes
  11090. else
  11091. ac_compiler_gnu=no
  11092. fi
  11093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11094. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11095. fi
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11097. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  11098. if test $ac_compiler_gnu = yes; then
  11099. GCC=yes
  11100. else
  11101. GCC=
  11102. fi
  11103. ac_test_CFLAGS=${CFLAGS+set}
  11104. ac_save_CFLAGS=$CFLAGS
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11106. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  11107. if ${ac_cv_prog_cc_g+:} false; then :
  11108. $as_echo_n "(cached) " >&6
  11109. else
  11110. ac_save_c_werror_flag=$ac_c_werror_flag
  11111. ac_c_werror_flag=yes
  11112. ac_cv_prog_cc_g=no
  11113. CFLAGS="-g"
  11114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11115. /* end confdefs.h. */
  11116. int
  11117. main ()
  11118. {
  11119. ;
  11120. return 0;
  11121. }
  11122. _ACEOF
  11123. if ac_fn_c_try_compile "$LINENO"; then :
  11124. ac_cv_prog_cc_g=yes
  11125. else
  11126. CFLAGS=""
  11127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11128. /* end confdefs.h. */
  11129. int
  11130. main ()
  11131. {
  11132. ;
  11133. return 0;
  11134. }
  11135. _ACEOF
  11136. if ac_fn_c_try_compile "$LINENO"; then :
  11137. else
  11138. ac_c_werror_flag=$ac_save_c_werror_flag
  11139. CFLAGS="-g"
  11140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11141. /* end confdefs.h. */
  11142. int
  11143. main ()
  11144. {
  11145. ;
  11146. return 0;
  11147. }
  11148. _ACEOF
  11149. if ac_fn_c_try_compile "$LINENO"; then :
  11150. ac_cv_prog_cc_g=yes
  11151. fi
  11152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11153. fi
  11154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11155. fi
  11156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11157. ac_c_werror_flag=$ac_save_c_werror_flag
  11158. fi
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11160. $as_echo "$ac_cv_prog_cc_g" >&6; }
  11161. if test "$ac_test_CFLAGS" = set; then
  11162. CFLAGS=$ac_save_CFLAGS
  11163. elif test $ac_cv_prog_cc_g = yes; then
  11164. if test "$GCC" = yes; then
  11165. CFLAGS="-g -O2"
  11166. else
  11167. CFLAGS="-g"
  11168. fi
  11169. else
  11170. if test "$GCC" = yes; then
  11171. CFLAGS="-O2"
  11172. else
  11173. CFLAGS=
  11174. fi
  11175. fi
  11176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  11177. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  11178. if ${ac_cv_prog_cc_c89+:} false; then :
  11179. $as_echo_n "(cached) " >&6
  11180. else
  11181. ac_cv_prog_cc_c89=no
  11182. ac_save_CC=$CC
  11183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11184. /* end confdefs.h. */
  11185. #include <stdarg.h>
  11186. #include <stdio.h>
  11187. struct stat;
  11188. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11189. struct buf { int x; };
  11190. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11191. static char *e (p, i)
  11192. char **p;
  11193. int i;
  11194. {
  11195. return p[i];
  11196. }
  11197. static char *f (char * (*g) (char **, int), char **p, ...)
  11198. {
  11199. char *s;
  11200. va_list v;
  11201. va_start (v,p);
  11202. s = g (p, va_arg (v,int));
  11203. va_end (v);
  11204. return s;
  11205. }
  11206. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11207. function prototypes and stuff, but not '\xHH' hex character constants.
  11208. These don't provoke an error unfortunately, instead are silently treated
  11209. as 'x'. The following induces an error, until -std is added to get
  11210. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11211. array size at least. It's necessary to write '\x00'==0 to get something
  11212. that's true only with -std. */
  11213. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11214. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  11215. inside strings and character constants. */
  11216. #define FOO(x) 'x'
  11217. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  11218. int test (int i, double x);
  11219. struct s1 {int (*f) (int a);};
  11220. struct s2 {int (*f) (double a);};
  11221. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11222. int argc;
  11223. char **argv;
  11224. int
  11225. main ()
  11226. {
  11227. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11228. ;
  11229. return 0;
  11230. }
  11231. _ACEOF
  11232. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  11233. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11234. do
  11235. CC="$ac_save_CC $ac_arg"
  11236. if ac_fn_c_try_compile "$LINENO"; then :
  11237. ac_cv_prog_cc_c89=$ac_arg
  11238. fi
  11239. rm -f core conftest.err conftest.$ac_objext
  11240. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11241. done
  11242. rm -f conftest.$ac_ext
  11243. CC=$ac_save_CC
  11244. fi
  11245. # AC_CACHE_VAL
  11246. case "x$ac_cv_prog_cc_c89" in
  11247. x)
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11249. $as_echo "none needed" >&6; } ;;
  11250. xno)
  11251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11252. $as_echo "unsupported" >&6; } ;;
  11253. *)
  11254. CC="$CC $ac_cv_prog_cc_c89"
  11255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11256. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  11257. esac
  11258. if test "x$ac_cv_prog_cc_c89" != xno; then :
  11259. fi
  11260. ac_ext=c
  11261. ac_cpp='$CPP $CPPFLAGS'
  11262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11265. ac_ext=c
  11266. ac_cpp='$CPP $CPPFLAGS'
  11267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  11271. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  11272. if ${am_cv_prog_cc_c_o+:} false; then :
  11273. $as_echo_n "(cached) " >&6
  11274. else
  11275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11276. /* end confdefs.h. */
  11277. int
  11278. main ()
  11279. {
  11280. ;
  11281. return 0;
  11282. }
  11283. _ACEOF
  11284. # Make sure it works both with $CC and with simple cc.
  11285. # Following AC_PROG_CC_C_O, we do the test twice because some
  11286. # compilers refuse to overwrite an existing .o file with -o,
  11287. # though they will create one.
  11288. am_cv_prog_cc_c_o=yes
  11289. for am_i in 1 2; do
  11290. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  11291. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  11292. ac_status=$?
  11293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11294. (exit $ac_status); } \
  11295. && test -f conftest2.$ac_objext; then
  11296. : OK
  11297. else
  11298. am_cv_prog_cc_c_o=no
  11299. break
  11300. fi
  11301. done
  11302. rm -f core conftest*
  11303. unset am_i
  11304. fi
  11305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  11306. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  11307. if test "$am_cv_prog_cc_c_o" != yes; then
  11308. # Losing compiler, so override with the script.
  11309. # FIXME: It is wrong to rewrite CC.
  11310. # But if we don't then we get into trouble of one sort or another.
  11311. # A longer-term fix would be to have automake use am__CC in this case,
  11312. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11313. CC="$am_aux_dir/compile $CC"
  11314. fi
  11315. ac_ext=c
  11316. ac_cpp='$CPP $CPPFLAGS'
  11317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11320. depcc="$CC" am_compiler_list=
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  11322. $as_echo_n "checking dependency style of $depcc... " >&6; }
  11323. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  11324. $as_echo_n "(cached) " >&6
  11325. else
  11326. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  11327. # We make a subdir and do the tests there. Otherwise we can end up
  11328. # making bogus files that we don't know about and never remove. For
  11329. # instance it was reported that on HP-UX the gcc test will end up
  11330. # making a dummy file named 'D' -- because '-MD' means "put the output
  11331. # in D".
  11332. rm -rf conftest.dir
  11333. mkdir conftest.dir
  11334. # Copy depcomp to subdir because otherwise we won't find it if we're
  11335. # using a relative directory.
  11336. cp "$am_depcomp" conftest.dir
  11337. cd conftest.dir
  11338. # We will build objects and dependencies in a subdirectory because
  11339. # it helps to detect inapplicable dependency modes. For instance
  11340. # both Tru64's cc and ICC support -MD to output dependencies as a
  11341. # side effect of compilation, but ICC will put the dependencies in
  11342. # the current directory while Tru64 will put them in the object
  11343. # directory.
  11344. mkdir sub
  11345. am_cv_CC_dependencies_compiler_type=none
  11346. if test "$am_compiler_list" = ""; then
  11347. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  11348. fi
  11349. am__universal=false
  11350. case " $depcc " in #(
  11351. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11352. esac
  11353. for depmode in $am_compiler_list; do
  11354. # Setup a source with many dependencies, because some compilers
  11355. # like to wrap large dependency lists on column 80 (with \), and
  11356. # we should not choose a depcomp mode which is confused by this.
  11357. #
  11358. # We need to recreate these files for each test, as the compiler may
  11359. # overwrite some of them when testing with obscure command lines.
  11360. # This happens at least with the AIX C compiler.
  11361. : > sub/conftest.c
  11362. for i in 1 2 3 4 5 6; do
  11363. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  11364. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  11365. # Solaris 10 /bin/sh.
  11366. echo '/* dummy */' > sub/conftst$i.h
  11367. done
  11368. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11369. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  11370. # mode. It turns out that the SunPro C++ compiler does not properly
  11371. # handle '-M -o', and we need to detect this. Also, some Intel
  11372. # versions had trouble with output in subdirs.
  11373. am__obj=sub/conftest.${OBJEXT-o}
  11374. am__minus_obj="-o $am__obj"
  11375. case $depmode in
  11376. gcc)
  11377. # This depmode causes a compiler race in universal mode.
  11378. test "$am__universal" = false || continue
  11379. ;;
  11380. nosideeffect)
  11381. # After this tag, mechanisms are not by side-effect, so they'll
  11382. # only be used when explicitly requested.
  11383. if test "x$enable_dependency_tracking" = xyes; then
  11384. continue
  11385. else
  11386. break
  11387. fi
  11388. ;;
  11389. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  11390. # This compiler won't grok '-c -o', but also, the minuso test has
  11391. # not run yet. These depmodes are late enough in the game, and
  11392. # so weak that their functioning should not be impacted.
  11393. am__obj=conftest.${OBJEXT-o}
  11394. am__minus_obj=
  11395. ;;
  11396. none) break ;;
  11397. esac
  11398. if depmode=$depmode \
  11399. source=sub/conftest.c object=$am__obj \
  11400. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11401. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11402. >/dev/null 2>conftest.err &&
  11403. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11404. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11405. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11406. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11407. # icc doesn't choke on unknown options, it will just issue warnings
  11408. # or remarks (even with -Werror). So we grep stderr for any message
  11409. # that says an option was ignored or not supported.
  11410. # When given -MP, icc 7.0 and 7.1 complain thusly:
  11411. # icc: Command line warning: ignoring option '-M'; no argument required
  11412. # The diagnosis changed in icc 8.0:
  11413. # icc: Command line remark: option '-MP' not supported
  11414. if (grep 'ignoring option' conftest.err ||
  11415. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  11416. am_cv_CC_dependencies_compiler_type=$depmode
  11417. break
  11418. fi
  11419. fi
  11420. done
  11421. cd ..
  11422. rm -rf conftest.dir
  11423. else
  11424. am_cv_CC_dependencies_compiler_type=none
  11425. fi
  11426. fi
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  11428. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  11429. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  11430. if
  11431. test "x$enable_dependency_tracking" != xno \
  11432. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  11433. am__fastdepCC_TRUE=
  11434. am__fastdepCC_FALSE='#'
  11435. else
  11436. am__fastdepCC_TRUE='#'
  11437. am__fastdepCC_FALSE=
  11438. fi
  11439. for ac_prog in 'bison -y' byacc
  11440. do
  11441. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11442. set dummy $ac_prog; ac_word=$2
  11443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11444. $as_echo_n "checking for $ac_word... " >&6; }
  11445. if ${ac_cv_prog_YACC+:} false; then :
  11446. $as_echo_n "(cached) " >&6
  11447. else
  11448. if test -n "$YACC"; then
  11449. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  11450. else
  11451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11452. for as_dir in $PATH
  11453. do
  11454. IFS=$as_save_IFS
  11455. test -z "$as_dir" && as_dir=.
  11456. for ac_exec_ext in '' $ac_executable_extensions; do
  11457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11458. ac_cv_prog_YACC="$ac_prog"
  11459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11460. break 2
  11461. fi
  11462. done
  11463. done
  11464. IFS=$as_save_IFS
  11465. fi
  11466. fi
  11467. YACC=$ac_cv_prog_YACC
  11468. if test -n "$YACC"; then
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  11470. $as_echo "$YACC" >&6; }
  11471. else
  11472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11473. $as_echo "no" >&6; }
  11474. fi
  11475. test -n "$YACC" && break
  11476. done
  11477. test -n "$YACC" || YACC="yacc"
  11478. for ac_prog in flex lex
  11479. do
  11480. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11481. set dummy $ac_prog; ac_word=$2
  11482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11483. $as_echo_n "checking for $ac_word... " >&6; }
  11484. if ${ac_cv_prog_LEX+:} false; then :
  11485. $as_echo_n "(cached) " >&6
  11486. else
  11487. if test -n "$LEX"; then
  11488. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  11489. else
  11490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11491. for as_dir in $PATH
  11492. do
  11493. IFS=$as_save_IFS
  11494. test -z "$as_dir" && as_dir=.
  11495. for ac_exec_ext in '' $ac_executable_extensions; do
  11496. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11497. ac_cv_prog_LEX="$ac_prog"
  11498. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11499. break 2
  11500. fi
  11501. done
  11502. done
  11503. IFS=$as_save_IFS
  11504. fi
  11505. fi
  11506. LEX=$ac_cv_prog_LEX
  11507. if test -n "$LEX"; then
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  11509. $as_echo "$LEX" >&6; }
  11510. else
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11512. $as_echo "no" >&6; }
  11513. fi
  11514. test -n "$LEX" && break
  11515. done
  11516. test -n "$LEX" || LEX=":"
  11517. if test "x$LEX" != "x:"; then
  11518. cat >conftest.l <<_ACEOF
  11519. %%
  11520. a { ECHO; }
  11521. b { REJECT; }
  11522. c { yymore (); }
  11523. d { yyless (1); }
  11524. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  11525. yyless ((input () != 0)); }
  11526. f { unput (yytext[0]); }
  11527. . { BEGIN INITIAL; }
  11528. %%
  11529. #ifdef YYTEXT_POINTER
  11530. extern char *yytext;
  11531. #endif
  11532. int
  11533. main (void)
  11534. {
  11535. return ! yylex () + ! yywrap ();
  11536. }
  11537. _ACEOF
  11538. { { ac_try="$LEX conftest.l"
  11539. case "(($ac_try" in
  11540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11541. *) ac_try_echo=$ac_try;;
  11542. esac
  11543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11544. $as_echo "$ac_try_echo"; } >&5
  11545. (eval "$LEX conftest.l") 2>&5
  11546. ac_status=$?
  11547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11548. test $ac_status = 0; }
  11549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  11550. $as_echo_n "checking lex output file root... " >&6; }
  11551. if ${ac_cv_prog_lex_root+:} false; then :
  11552. $as_echo_n "(cached) " >&6
  11553. else
  11554. if test -f lex.yy.c; then
  11555. ac_cv_prog_lex_root=lex.yy
  11556. elif test -f lexyy.c; then
  11557. ac_cv_prog_lex_root=lexyy
  11558. else
  11559. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  11560. fi
  11561. fi
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  11563. $as_echo "$ac_cv_prog_lex_root" >&6; }
  11564. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  11565. if test -z "${LEXLIB+set}"; then
  11566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  11567. $as_echo_n "checking lex library... " >&6; }
  11568. if ${ac_cv_lib_lex+:} false; then :
  11569. $as_echo_n "(cached) " >&6
  11570. else
  11571. ac_save_LIBS=$LIBS
  11572. ac_cv_lib_lex='none needed'
  11573. for ac_lib in '' -lfl -ll; do
  11574. LIBS="$ac_lib $ac_save_LIBS"
  11575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11576. /* end confdefs.h. */
  11577. `cat $LEX_OUTPUT_ROOT.c`
  11578. _ACEOF
  11579. if ac_fn_c_try_link "$LINENO"; then :
  11580. ac_cv_lib_lex=$ac_lib
  11581. fi
  11582. rm -f core conftest.err conftest.$ac_objext \
  11583. conftest$ac_exeext conftest.$ac_ext
  11584. test "$ac_cv_lib_lex" != 'none needed' && break
  11585. done
  11586. LIBS=$ac_save_LIBS
  11587. fi
  11588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  11589. $as_echo "$ac_cv_lib_lex" >&6; }
  11590. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  11591. fi
  11592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  11593. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  11594. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  11595. $as_echo_n "(cached) " >&6
  11596. else
  11597. # POSIX says lex can declare yytext either as a pointer or an array; the
  11598. # default is implementation-dependent. Figure out which it is, since
  11599. # not all implementations provide the %pointer and %array declarations.
  11600. ac_cv_prog_lex_yytext_pointer=no
  11601. ac_save_LIBS=$LIBS
  11602. LIBS="$LEXLIB $ac_save_LIBS"
  11603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11604. /* end confdefs.h. */
  11605. #define YYTEXT_POINTER 1
  11606. `cat $LEX_OUTPUT_ROOT.c`
  11607. _ACEOF
  11608. if ac_fn_c_try_link "$LINENO"; then :
  11609. ac_cv_prog_lex_yytext_pointer=yes
  11610. fi
  11611. rm -f core conftest.err conftest.$ac_objext \
  11612. conftest$ac_exeext conftest.$ac_ext
  11613. LIBS=$ac_save_LIBS
  11614. fi
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  11616. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  11617. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  11618. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  11619. fi
  11620. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  11621. fi
  11622. if test "$LEX" = :; then
  11623. LEX=${am_missing_run}flex
  11624. fi
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  11626. $as_echo_n "checking whether ln -s works... " >&6; }
  11627. LN_S=$as_ln_s
  11628. if test "$LN_S" = "ln -s"; then
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11630. $as_echo "yes" >&6; }
  11631. else
  11632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  11633. $as_echo "no, using $LN_S" >&6; }
  11634. fi
  11635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  11636. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  11637. set x ${MAKE-make}
  11638. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  11639. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  11640. $as_echo_n "(cached) " >&6
  11641. else
  11642. cat >conftest.make <<\_ACEOF
  11643. SHELL = /bin/sh
  11644. all:
  11645. @echo '@@@%%%=$(MAKE)=@@@%%%'
  11646. _ACEOF
  11647. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  11648. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  11649. *@@@%%%=?*=@@@%%%*)
  11650. eval ac_cv_prog_make_${ac_make}_set=yes;;
  11651. *)
  11652. eval ac_cv_prog_make_${ac_make}_set=no;;
  11653. esac
  11654. rm -f conftest.make
  11655. fi
  11656. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11658. $as_echo "yes" >&6; }
  11659. SET_MAKE=
  11660. else
  11661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11662. $as_echo "no" >&6; }
  11663. SET_MAKE="MAKE=${MAKE-make}"
  11664. fi
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports --as-needed" >&5
  11666. $as_echo_n "checking whether ld supports --as-needed... " >&6; }
  11667. if ${pam_cv_ld_as_needed+:} false; then :
  11668. $as_echo_n "(cached) " >&6
  11669. else
  11670. saved_LDFLAGS="$LDFLAGS"
  11671. LDFLAGS="$LDFLAGS -Wl,--as-needed"
  11672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11673. /* end confdefs.h. */
  11674. int
  11675. main ()
  11676. {
  11677. ;
  11678. return 0;
  11679. }
  11680. _ACEOF
  11681. if ac_fn_c_try_link "$LINENO"; then :
  11682. pam_cv_ld_as_needed=yes
  11683. else
  11684. pam_cv_ld_as_needed=no
  11685. fi
  11686. rm -f core conftest.err conftest.$ac_objext \
  11687. conftest$ac_exeext conftest.$ac_ext
  11688. LDFLAGS="$saved_LDFLAGS"
  11689. fi
  11690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_ld_as_needed" >&5
  11691. $as_echo "$pam_cv_ld_as_needed" >&6; }
  11692. if test $pam_cv_ld_as_needed = yes; then :
  11693. LDFLAGS="$LDFLAGS -Wl,--as-needed"
  11694. fi
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports --no-undefined" >&5
  11696. $as_echo_n "checking whether ld supports --no-undefined... " >&6; }
  11697. if ${pam_cv_ld_no_undefined+:} false; then :
  11698. $as_echo_n "(cached) " >&6
  11699. else
  11700. saved_LDFLAGS="$LDFLAGS"
  11701. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  11702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11703. /* end confdefs.h. */
  11704. int
  11705. main ()
  11706. {
  11707. ;
  11708. return 0;
  11709. }
  11710. _ACEOF
  11711. if ac_fn_c_try_link "$LINENO"; then :
  11712. pam_cv_ld_no_undefined=yes
  11713. else
  11714. pam_cv_ld_no_undefined=no
  11715. fi
  11716. rm -f core conftest.err conftest.$ac_objext \
  11717. conftest$ac_exeext conftest.$ac_ext
  11718. LDFLAGS="$saved_LDFLAGS"
  11719. fi
  11720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_ld_no_undefined" >&5
  11721. $as_echo "$pam_cv_ld_no_undefined" >&6; }
  11722. if test $pam_cv_ld_no_undefined = yes; then :
  11723. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  11724. fi
  11725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports -O1" >&5
  11726. $as_echo_n "checking whether ld supports -O1... " >&6; }
  11727. if ${pam_cv_ld_O1+:} false; then :
  11728. $as_echo_n "(cached) " >&6
  11729. else
  11730. saved_LDFLAGS="$LDFLAGS"
  11731. LDFLAGS="$LDFLAGS -Wl,-O1"
  11732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11733. /* end confdefs.h. */
  11734. int
  11735. main ()
  11736. {
  11737. ;
  11738. return 0;
  11739. }
  11740. _ACEOF
  11741. if ac_fn_c_try_link "$LINENO"; then :
  11742. pam_cv_ld_O1=yes
  11743. else
  11744. pam_cv_ld_O1=no
  11745. fi
  11746. rm -f core conftest.err conftest.$ac_objext \
  11747. conftest$ac_exeext conftest.$ac_ext
  11748. LDFLAGS="$saved_LDFLAGS"
  11749. fi
  11750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_ld_O1" >&5
  11751. $as_echo "$pam_cv_ld_O1" >&6; }
  11752. if test $pam_cv_ld_O1 = yes; then :
  11753. LDFLAGS="$LDFLAGS -Wl,-O1"
  11754. fi
  11755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports \"-z now\"" >&5
  11756. $as_echo_n "checking whether ld supports \"-z now\"... " >&6; }
  11757. if ${pam_cv_ld_z_now+:} false; then :
  11758. $as_echo_n "(cached) " >&6
  11759. else
  11760. saved_LDFLAGS="$LDFLAGS"
  11761. LDFLAGS="$LDFLAGS -Wl,-z,now"
  11762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11763. /* end confdefs.h. */
  11764. int
  11765. main ()
  11766. {
  11767. ;
  11768. return 0;
  11769. }
  11770. _ACEOF
  11771. if ac_fn_c_try_link "$LINENO"; then :
  11772. pam_cv_ld_z_now=yes
  11773. else
  11774. pam_cv_ld_z_now=no
  11775. fi
  11776. rm -f core conftest.err conftest.$ac_objext \
  11777. conftest$ac_exeext conftest.$ac_ext
  11778. LDFLAGS="$saved_LDFLAGS"
  11779. fi
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_ld_z_now" >&5
  11781. $as_echo "$pam_cv_ld_z_now" >&6; }
  11782. if test $pam_cv_ld_z_now = yes; then :
  11783. ZNOW_LDFLAGS="-Wl,-z,now"
  11784. else
  11785. ZNOW_LDFLAGS=
  11786. fi
  11787. # Check whether --enable-largefile was given.
  11788. if test "${enable_largefile+set}" = set; then :
  11789. enableval=$enable_largefile;
  11790. fi
  11791. if test "$enable_largefile" != no; then
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11793. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11794. if ${ac_cv_sys_largefile_CC+:} false; then :
  11795. $as_echo_n "(cached) " >&6
  11796. else
  11797. ac_cv_sys_largefile_CC=no
  11798. if test "$GCC" != yes; then
  11799. ac_save_CC=$CC
  11800. while :; do
  11801. # IRIX 6.2 and later do not support large files by default,
  11802. # so use the C compiler's -n32 option if that helps.
  11803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11804. /* end confdefs.h. */
  11805. #include <sys/types.h>
  11806. /* Check that off_t can represent 2**63 - 1 correctly.
  11807. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11808. since some C++ compilers masquerading as C compilers
  11809. incorrectly reject 9223372036854775807. */
  11810. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11811. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11812. && LARGE_OFF_T % 2147483647 == 1)
  11813. ? 1 : -1];
  11814. int
  11815. main ()
  11816. {
  11817. ;
  11818. return 0;
  11819. }
  11820. _ACEOF
  11821. if ac_fn_c_try_compile "$LINENO"; then :
  11822. break
  11823. fi
  11824. rm -f core conftest.err conftest.$ac_objext
  11825. CC="$CC -n32"
  11826. if ac_fn_c_try_compile "$LINENO"; then :
  11827. ac_cv_sys_largefile_CC=' -n32'; break
  11828. fi
  11829. rm -f core conftest.err conftest.$ac_objext
  11830. break
  11831. done
  11832. CC=$ac_save_CC
  11833. rm -f conftest.$ac_ext
  11834. fi
  11835. fi
  11836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11837. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11838. if test "$ac_cv_sys_largefile_CC" != no; then
  11839. CC=$CC$ac_cv_sys_largefile_CC
  11840. fi
  11841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11842. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11843. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11844. $as_echo_n "(cached) " >&6
  11845. else
  11846. while :; do
  11847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11848. /* end confdefs.h. */
  11849. #include <sys/types.h>
  11850. /* Check that off_t can represent 2**63 - 1 correctly.
  11851. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11852. since some C++ compilers masquerading as C compilers
  11853. incorrectly reject 9223372036854775807. */
  11854. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11855. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11856. && LARGE_OFF_T % 2147483647 == 1)
  11857. ? 1 : -1];
  11858. int
  11859. main ()
  11860. {
  11861. ;
  11862. return 0;
  11863. }
  11864. _ACEOF
  11865. if ac_fn_c_try_compile "$LINENO"; then :
  11866. ac_cv_sys_file_offset_bits=no; break
  11867. fi
  11868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11870. /* end confdefs.h. */
  11871. #define _FILE_OFFSET_BITS 64
  11872. #include <sys/types.h>
  11873. /* Check that off_t can represent 2**63 - 1 correctly.
  11874. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11875. since some C++ compilers masquerading as C compilers
  11876. incorrectly reject 9223372036854775807. */
  11877. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11878. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11879. && LARGE_OFF_T % 2147483647 == 1)
  11880. ? 1 : -1];
  11881. int
  11882. main ()
  11883. {
  11884. ;
  11885. return 0;
  11886. }
  11887. _ACEOF
  11888. if ac_fn_c_try_compile "$LINENO"; then :
  11889. ac_cv_sys_file_offset_bits=64; break
  11890. fi
  11891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11892. ac_cv_sys_file_offset_bits=unknown
  11893. break
  11894. done
  11895. fi
  11896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11897. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11898. case $ac_cv_sys_file_offset_bits in #(
  11899. no | unknown) ;;
  11900. *)
  11901. cat >>confdefs.h <<_ACEOF
  11902. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11903. _ACEOF
  11904. ;;
  11905. esac
  11906. rm -rf conftest*
  11907. if test $ac_cv_sys_file_offset_bits = unknown; then
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11909. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11910. if ${ac_cv_sys_large_files+:} false; then :
  11911. $as_echo_n "(cached) " >&6
  11912. else
  11913. while :; do
  11914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11915. /* end confdefs.h. */
  11916. #include <sys/types.h>
  11917. /* Check that off_t can represent 2**63 - 1 correctly.
  11918. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11919. since some C++ compilers masquerading as C compilers
  11920. incorrectly reject 9223372036854775807. */
  11921. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11922. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11923. && LARGE_OFF_T % 2147483647 == 1)
  11924. ? 1 : -1];
  11925. int
  11926. main ()
  11927. {
  11928. ;
  11929. return 0;
  11930. }
  11931. _ACEOF
  11932. if ac_fn_c_try_compile "$LINENO"; then :
  11933. ac_cv_sys_large_files=no; break
  11934. fi
  11935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11937. /* end confdefs.h. */
  11938. #define _LARGE_FILES 1
  11939. #include <sys/types.h>
  11940. /* Check that off_t can represent 2**63 - 1 correctly.
  11941. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11942. since some C++ compilers masquerading as C compilers
  11943. incorrectly reject 9223372036854775807. */
  11944. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11945. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11946. && LARGE_OFF_T % 2147483647 == 1)
  11947. ? 1 : -1];
  11948. int
  11949. main ()
  11950. {
  11951. ;
  11952. return 0;
  11953. }
  11954. _ACEOF
  11955. if ac_fn_c_try_compile "$LINENO"; then :
  11956. ac_cv_sys_large_files=1; break
  11957. fi
  11958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11959. ac_cv_sys_large_files=unknown
  11960. break
  11961. done
  11962. fi
  11963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11964. $as_echo "$ac_cv_sys_large_files" >&6; }
  11965. case $ac_cv_sys_large_files in #(
  11966. no | unknown) ;;
  11967. *)
  11968. cat >>confdefs.h <<_ACEOF
  11969. #define _LARGE_FILES $ac_cv_sys_large_files
  11970. _ACEOF
  11971. ;;
  11972. esac
  11973. rm -rf conftest*
  11974. fi
  11975. fi
  11976. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  11977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  11978. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  11979. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  11980. $as_echo_n "(cached) " >&6
  11981. else
  11982. gl_save_compiler_FLAGS="$CFLAGS"
  11983. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  11984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11985. /* end confdefs.h. */
  11986. int
  11987. main ()
  11988. {
  11989. ;
  11990. return 0;
  11991. }
  11992. _ACEOF
  11993. if ac_fn_c_try_link "$LINENO"; then :
  11994. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  11995. else
  11996. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  11997. fi
  11998. rm -f core conftest.err conftest.$ac_objext \
  11999. conftest$ac_exeext conftest.$ac_ext
  12000. CFLAGS="$gl_save_compiler_FLAGS"
  12001. fi
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12003. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12004. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12005. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12006. else
  12007. gl_unknown_warnings_are_errors=
  12008. fi
  12009. fi
  12010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -W" >&5
  12011. $as_echo_n "checking whether $CC handles -W... " >&6; }
  12012. if ${gl_cv_warn_CFLAGS__W+:} false; then :
  12013. $as_echo_n "(cached) " >&6
  12014. else
  12015. gl_save_compiler_FLAGS="$CFLAGS"
  12016. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
  12017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12018. /* end confdefs.h. */
  12019. int
  12020. main ()
  12021. {
  12022. ;
  12023. return 0;
  12024. }
  12025. _ACEOF
  12026. if ac_fn_c_try_link "$LINENO"; then :
  12027. gl_cv_warn_CFLAGS__W=yes
  12028. else
  12029. gl_cv_warn_CFLAGS__W=no
  12030. fi
  12031. rm -f core conftest.err conftest.$ac_objext \
  12032. conftest$ac_exeext conftest.$ac_ext
  12033. CFLAGS="$gl_save_compiler_FLAGS"
  12034. fi
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__W" >&5
  12036. $as_echo "$gl_cv_warn_CFLAGS__W" >&6; }
  12037. if test "x$gl_cv_warn_CFLAGS__W" = xyes; then :
  12038. as_fn_append WARN_CFLAGS " -W"
  12039. fi
  12040. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12042. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12043. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12044. $as_echo_n "(cached) " >&6
  12045. else
  12046. gl_save_compiler_FLAGS="$CFLAGS"
  12047. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12049. /* end confdefs.h. */
  12050. int
  12051. main ()
  12052. {
  12053. ;
  12054. return 0;
  12055. }
  12056. _ACEOF
  12057. if ac_fn_c_try_link "$LINENO"; then :
  12058. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12059. else
  12060. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12061. fi
  12062. rm -f core conftest.err conftest.$ac_objext \
  12063. conftest$ac_exeext conftest.$ac_ext
  12064. CFLAGS="$gl_save_compiler_FLAGS"
  12065. fi
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12067. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12068. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12069. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12070. else
  12071. gl_unknown_warnings_are_errors=
  12072. fi
  12073. fi
  12074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wall" >&5
  12075. $as_echo_n "checking whether $CC handles -Wall... " >&6; }
  12076. if ${gl_cv_warn_CFLAGS__Wall+:} false; then :
  12077. $as_echo_n "(cached) " >&6
  12078. else
  12079. gl_save_compiler_FLAGS="$CFLAGS"
  12080. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wall"
  12081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12082. /* end confdefs.h. */
  12083. int
  12084. main ()
  12085. {
  12086. ;
  12087. return 0;
  12088. }
  12089. _ACEOF
  12090. if ac_fn_c_try_link "$LINENO"; then :
  12091. gl_cv_warn_CFLAGS__Wall=yes
  12092. else
  12093. gl_cv_warn_CFLAGS__Wall=no
  12094. fi
  12095. rm -f core conftest.err conftest.$ac_objext \
  12096. conftest$ac_exeext conftest.$ac_ext
  12097. CFLAGS="$gl_save_compiler_FLAGS"
  12098. fi
  12099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wall" >&5
  12100. $as_echo "$gl_cv_warn_CFLAGS__Wall" >&6; }
  12101. if test "x$gl_cv_warn_CFLAGS__Wall" = xyes; then :
  12102. as_fn_append WARN_CFLAGS " -Wall"
  12103. fi
  12104. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12106. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12107. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12108. $as_echo_n "(cached) " >&6
  12109. else
  12110. gl_save_compiler_FLAGS="$CFLAGS"
  12111. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12113. /* end confdefs.h. */
  12114. int
  12115. main ()
  12116. {
  12117. ;
  12118. return 0;
  12119. }
  12120. _ACEOF
  12121. if ac_fn_c_try_link "$LINENO"; then :
  12122. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12123. else
  12124. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12125. fi
  12126. rm -f core conftest.err conftest.$ac_objext \
  12127. conftest$ac_exeext conftest.$ac_ext
  12128. CFLAGS="$gl_save_compiler_FLAGS"
  12129. fi
  12130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12131. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12132. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12133. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12134. else
  12135. gl_unknown_warnings_are_errors=
  12136. fi
  12137. fi
  12138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wbad-function-cast" >&5
  12139. $as_echo_n "checking whether $CC handles -Wbad-function-cast... " >&6; }
  12140. if ${gl_cv_warn_CFLAGS__Wbad_function_cast+:} false; then :
  12141. $as_echo_n "(cached) " >&6
  12142. else
  12143. gl_save_compiler_FLAGS="$CFLAGS"
  12144. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wbad-function-cast"
  12145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12146. /* end confdefs.h. */
  12147. int
  12148. main ()
  12149. {
  12150. ;
  12151. return 0;
  12152. }
  12153. _ACEOF
  12154. if ac_fn_c_try_link "$LINENO"; then :
  12155. gl_cv_warn_CFLAGS__Wbad_function_cast=yes
  12156. else
  12157. gl_cv_warn_CFLAGS__Wbad_function_cast=no
  12158. fi
  12159. rm -f core conftest.err conftest.$ac_objext \
  12160. conftest$ac_exeext conftest.$ac_ext
  12161. CFLAGS="$gl_save_compiler_FLAGS"
  12162. fi
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wbad_function_cast" >&5
  12164. $as_echo "$gl_cv_warn_CFLAGS__Wbad_function_cast" >&6; }
  12165. if test "x$gl_cv_warn_CFLAGS__Wbad_function_cast" = xyes; then :
  12166. as_fn_append WARN_CFLAGS " -Wbad-function-cast"
  12167. fi
  12168. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12170. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12171. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12172. $as_echo_n "(cached) " >&6
  12173. else
  12174. gl_save_compiler_FLAGS="$CFLAGS"
  12175. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12177. /* end confdefs.h. */
  12178. int
  12179. main ()
  12180. {
  12181. ;
  12182. return 0;
  12183. }
  12184. _ACEOF
  12185. if ac_fn_c_try_link "$LINENO"; then :
  12186. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12187. else
  12188. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12189. fi
  12190. rm -f core conftest.err conftest.$ac_objext \
  12191. conftest$ac_exeext conftest.$ac_ext
  12192. CFLAGS="$gl_save_compiler_FLAGS"
  12193. fi
  12194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12195. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12196. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12197. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12198. else
  12199. gl_unknown_warnings_are_errors=
  12200. fi
  12201. fi
  12202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wcast-align" >&5
  12203. $as_echo_n "checking whether $CC handles -Wcast-align... " >&6; }
  12204. if ${gl_cv_warn_CFLAGS__Wcast_align+:} false; then :
  12205. $as_echo_n "(cached) " >&6
  12206. else
  12207. gl_save_compiler_FLAGS="$CFLAGS"
  12208. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wcast-align"
  12209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12210. /* end confdefs.h. */
  12211. int
  12212. main ()
  12213. {
  12214. ;
  12215. return 0;
  12216. }
  12217. _ACEOF
  12218. if ac_fn_c_try_link "$LINENO"; then :
  12219. gl_cv_warn_CFLAGS__Wcast_align=yes
  12220. else
  12221. gl_cv_warn_CFLAGS__Wcast_align=no
  12222. fi
  12223. rm -f core conftest.err conftest.$ac_objext \
  12224. conftest$ac_exeext conftest.$ac_ext
  12225. CFLAGS="$gl_save_compiler_FLAGS"
  12226. fi
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wcast_align" >&5
  12228. $as_echo "$gl_cv_warn_CFLAGS__Wcast_align" >&6; }
  12229. if test "x$gl_cv_warn_CFLAGS__Wcast_align" = xyes; then :
  12230. as_fn_append WARN_CFLAGS " -Wcast-align"
  12231. fi
  12232. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12234. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12235. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12236. $as_echo_n "(cached) " >&6
  12237. else
  12238. gl_save_compiler_FLAGS="$CFLAGS"
  12239. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12241. /* end confdefs.h. */
  12242. int
  12243. main ()
  12244. {
  12245. ;
  12246. return 0;
  12247. }
  12248. _ACEOF
  12249. if ac_fn_c_try_link "$LINENO"; then :
  12250. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12251. else
  12252. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12253. fi
  12254. rm -f core conftest.err conftest.$ac_objext \
  12255. conftest$ac_exeext conftest.$ac_ext
  12256. CFLAGS="$gl_save_compiler_FLAGS"
  12257. fi
  12258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12259. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12260. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12261. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12262. else
  12263. gl_unknown_warnings_are_errors=
  12264. fi
  12265. fi
  12266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wcast-align=strict" >&5
  12267. $as_echo_n "checking whether $CC handles -Wcast-align=strict... " >&6; }
  12268. if ${gl_cv_warn_CFLAGS__Wcast_align_strict+:} false; then :
  12269. $as_echo_n "(cached) " >&6
  12270. else
  12271. gl_save_compiler_FLAGS="$CFLAGS"
  12272. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wcast-align=strict"
  12273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12274. /* end confdefs.h. */
  12275. int
  12276. main ()
  12277. {
  12278. ;
  12279. return 0;
  12280. }
  12281. _ACEOF
  12282. if ac_fn_c_try_link "$LINENO"; then :
  12283. gl_cv_warn_CFLAGS__Wcast_align_strict=yes
  12284. else
  12285. gl_cv_warn_CFLAGS__Wcast_align_strict=no
  12286. fi
  12287. rm -f core conftest.err conftest.$ac_objext \
  12288. conftest$ac_exeext conftest.$ac_ext
  12289. CFLAGS="$gl_save_compiler_FLAGS"
  12290. fi
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wcast_align_strict" >&5
  12292. $as_echo "$gl_cv_warn_CFLAGS__Wcast_align_strict" >&6; }
  12293. if test "x$gl_cv_warn_CFLAGS__Wcast_align_strict" = xyes; then :
  12294. as_fn_append WARN_CFLAGS " -Wcast-align=strict"
  12295. fi
  12296. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12298. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12299. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12300. $as_echo_n "(cached) " >&6
  12301. else
  12302. gl_save_compiler_FLAGS="$CFLAGS"
  12303. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12305. /* end confdefs.h. */
  12306. int
  12307. main ()
  12308. {
  12309. ;
  12310. return 0;
  12311. }
  12312. _ACEOF
  12313. if ac_fn_c_try_link "$LINENO"; then :
  12314. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12315. else
  12316. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12317. fi
  12318. rm -f core conftest.err conftest.$ac_objext \
  12319. conftest$ac_exeext conftest.$ac_ext
  12320. CFLAGS="$gl_save_compiler_FLAGS"
  12321. fi
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12323. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12324. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12325. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12326. else
  12327. gl_unknown_warnings_are_errors=
  12328. fi
  12329. fi
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wcast-qual" >&5
  12331. $as_echo_n "checking whether $CC handles -Wcast-qual... " >&6; }
  12332. if ${gl_cv_warn_CFLAGS__Wcast_qual+:} false; then :
  12333. $as_echo_n "(cached) " >&6
  12334. else
  12335. gl_save_compiler_FLAGS="$CFLAGS"
  12336. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wcast-qual"
  12337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12338. /* end confdefs.h. */
  12339. int
  12340. main ()
  12341. {
  12342. ;
  12343. return 0;
  12344. }
  12345. _ACEOF
  12346. if ac_fn_c_try_link "$LINENO"; then :
  12347. gl_cv_warn_CFLAGS__Wcast_qual=yes
  12348. else
  12349. gl_cv_warn_CFLAGS__Wcast_qual=no
  12350. fi
  12351. rm -f core conftest.err conftest.$ac_objext \
  12352. conftest$ac_exeext conftest.$ac_ext
  12353. CFLAGS="$gl_save_compiler_FLAGS"
  12354. fi
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wcast_qual" >&5
  12356. $as_echo "$gl_cv_warn_CFLAGS__Wcast_qual" >&6; }
  12357. if test "x$gl_cv_warn_CFLAGS__Wcast_qual" = xyes; then :
  12358. as_fn_append WARN_CFLAGS " -Wcast-qual"
  12359. fi
  12360. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12362. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12363. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12364. $as_echo_n "(cached) " >&6
  12365. else
  12366. gl_save_compiler_FLAGS="$CFLAGS"
  12367. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12369. /* end confdefs.h. */
  12370. int
  12371. main ()
  12372. {
  12373. ;
  12374. return 0;
  12375. }
  12376. _ACEOF
  12377. if ac_fn_c_try_link "$LINENO"; then :
  12378. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12379. else
  12380. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12381. fi
  12382. rm -f core conftest.err conftest.$ac_objext \
  12383. conftest$ac_exeext conftest.$ac_ext
  12384. CFLAGS="$gl_save_compiler_FLAGS"
  12385. fi
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12387. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12388. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12389. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12390. else
  12391. gl_unknown_warnings_are_errors=
  12392. fi
  12393. fi
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wdeprecated" >&5
  12395. $as_echo_n "checking whether $CC handles -Wdeprecated... " >&6; }
  12396. if ${gl_cv_warn_CFLAGS__Wdeprecated+:} false; then :
  12397. $as_echo_n "(cached) " >&6
  12398. else
  12399. gl_save_compiler_FLAGS="$CFLAGS"
  12400. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wdeprecated"
  12401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12402. /* end confdefs.h. */
  12403. int
  12404. main ()
  12405. {
  12406. ;
  12407. return 0;
  12408. }
  12409. _ACEOF
  12410. if ac_fn_c_try_link "$LINENO"; then :
  12411. gl_cv_warn_CFLAGS__Wdeprecated=yes
  12412. else
  12413. gl_cv_warn_CFLAGS__Wdeprecated=no
  12414. fi
  12415. rm -f core conftest.err conftest.$ac_objext \
  12416. conftest$ac_exeext conftest.$ac_ext
  12417. CFLAGS="$gl_save_compiler_FLAGS"
  12418. fi
  12419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wdeprecated" >&5
  12420. $as_echo "$gl_cv_warn_CFLAGS__Wdeprecated" >&6; }
  12421. if test "x$gl_cv_warn_CFLAGS__Wdeprecated" = xyes; then :
  12422. as_fn_append WARN_CFLAGS " -Wdeprecated"
  12423. fi
  12424. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12426. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12427. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12428. $as_echo_n "(cached) " >&6
  12429. else
  12430. gl_save_compiler_FLAGS="$CFLAGS"
  12431. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12433. /* end confdefs.h. */
  12434. int
  12435. main ()
  12436. {
  12437. ;
  12438. return 0;
  12439. }
  12440. _ACEOF
  12441. if ac_fn_c_try_link "$LINENO"; then :
  12442. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12443. else
  12444. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12445. fi
  12446. rm -f core conftest.err conftest.$ac_objext \
  12447. conftest$ac_exeext conftest.$ac_ext
  12448. CFLAGS="$gl_save_compiler_FLAGS"
  12449. fi
  12450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12451. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12452. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12453. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12454. else
  12455. gl_unknown_warnings_are_errors=
  12456. fi
  12457. fi
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Winline" >&5
  12459. $as_echo_n "checking whether $CC handles -Winline... " >&6; }
  12460. if ${gl_cv_warn_CFLAGS__Winline+:} false; then :
  12461. $as_echo_n "(cached) " >&6
  12462. else
  12463. gl_save_compiler_FLAGS="$CFLAGS"
  12464. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Winline"
  12465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12466. /* end confdefs.h. */
  12467. int
  12468. main ()
  12469. {
  12470. ;
  12471. return 0;
  12472. }
  12473. _ACEOF
  12474. if ac_fn_c_try_link "$LINENO"; then :
  12475. gl_cv_warn_CFLAGS__Winline=yes
  12476. else
  12477. gl_cv_warn_CFLAGS__Winline=no
  12478. fi
  12479. rm -f core conftest.err conftest.$ac_objext \
  12480. conftest$ac_exeext conftest.$ac_ext
  12481. CFLAGS="$gl_save_compiler_FLAGS"
  12482. fi
  12483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Winline" >&5
  12484. $as_echo "$gl_cv_warn_CFLAGS__Winline" >&6; }
  12485. if test "x$gl_cv_warn_CFLAGS__Winline" = xyes; then :
  12486. as_fn_append WARN_CFLAGS " -Winline"
  12487. fi
  12488. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12490. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12491. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12492. $as_echo_n "(cached) " >&6
  12493. else
  12494. gl_save_compiler_FLAGS="$CFLAGS"
  12495. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12497. /* end confdefs.h. */
  12498. int
  12499. main ()
  12500. {
  12501. ;
  12502. return 0;
  12503. }
  12504. _ACEOF
  12505. if ac_fn_c_try_link "$LINENO"; then :
  12506. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12507. else
  12508. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12509. fi
  12510. rm -f core conftest.err conftest.$ac_objext \
  12511. conftest$ac_exeext conftest.$ac_ext
  12512. CFLAGS="$gl_save_compiler_FLAGS"
  12513. fi
  12514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12515. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12516. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12517. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12518. else
  12519. gl_unknown_warnings_are_errors=
  12520. fi
  12521. fi
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wmain" >&5
  12523. $as_echo_n "checking whether $CC handles -Wmain... " >&6; }
  12524. if ${gl_cv_warn_CFLAGS__Wmain+:} false; then :
  12525. $as_echo_n "(cached) " >&6
  12526. else
  12527. gl_save_compiler_FLAGS="$CFLAGS"
  12528. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmain"
  12529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12530. /* end confdefs.h. */
  12531. int
  12532. main ()
  12533. {
  12534. ;
  12535. return 0;
  12536. }
  12537. _ACEOF
  12538. if ac_fn_c_try_link "$LINENO"; then :
  12539. gl_cv_warn_CFLAGS__Wmain=yes
  12540. else
  12541. gl_cv_warn_CFLAGS__Wmain=no
  12542. fi
  12543. rm -f core conftest.err conftest.$ac_objext \
  12544. conftest$ac_exeext conftest.$ac_ext
  12545. CFLAGS="$gl_save_compiler_FLAGS"
  12546. fi
  12547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wmain" >&5
  12548. $as_echo "$gl_cv_warn_CFLAGS__Wmain" >&6; }
  12549. if test "x$gl_cv_warn_CFLAGS__Wmain" = xyes; then :
  12550. as_fn_append WARN_CFLAGS " -Wmain"
  12551. fi
  12552. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12554. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12555. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12556. $as_echo_n "(cached) " >&6
  12557. else
  12558. gl_save_compiler_FLAGS="$CFLAGS"
  12559. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12561. /* end confdefs.h. */
  12562. int
  12563. main ()
  12564. {
  12565. ;
  12566. return 0;
  12567. }
  12568. _ACEOF
  12569. if ac_fn_c_try_link "$LINENO"; then :
  12570. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12571. else
  12572. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12573. fi
  12574. rm -f core conftest.err conftest.$ac_objext \
  12575. conftest$ac_exeext conftest.$ac_ext
  12576. CFLAGS="$gl_save_compiler_FLAGS"
  12577. fi
  12578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12579. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12580. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12581. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12582. else
  12583. gl_unknown_warnings_are_errors=
  12584. fi
  12585. fi
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wmissing-declarations" >&5
  12587. $as_echo_n "checking whether $CC handles -Wmissing-declarations... " >&6; }
  12588. if ${gl_cv_warn_CFLAGS__Wmissing_declarations+:} false; then :
  12589. $as_echo_n "(cached) " >&6
  12590. else
  12591. gl_save_compiler_FLAGS="$CFLAGS"
  12592. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-declarations"
  12593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12594. /* end confdefs.h. */
  12595. int
  12596. main ()
  12597. {
  12598. ;
  12599. return 0;
  12600. }
  12601. _ACEOF
  12602. if ac_fn_c_try_link "$LINENO"; then :
  12603. gl_cv_warn_CFLAGS__Wmissing_declarations=yes
  12604. else
  12605. gl_cv_warn_CFLAGS__Wmissing_declarations=no
  12606. fi
  12607. rm -f core conftest.err conftest.$ac_objext \
  12608. conftest$ac_exeext conftest.$ac_ext
  12609. CFLAGS="$gl_save_compiler_FLAGS"
  12610. fi
  12611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wmissing_declarations" >&5
  12612. $as_echo "$gl_cv_warn_CFLAGS__Wmissing_declarations" >&6; }
  12613. if test "x$gl_cv_warn_CFLAGS__Wmissing_declarations" = xyes; then :
  12614. as_fn_append WARN_CFLAGS " -Wmissing-declarations"
  12615. fi
  12616. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12618. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12619. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12620. $as_echo_n "(cached) " >&6
  12621. else
  12622. gl_save_compiler_FLAGS="$CFLAGS"
  12623. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12625. /* end confdefs.h. */
  12626. int
  12627. main ()
  12628. {
  12629. ;
  12630. return 0;
  12631. }
  12632. _ACEOF
  12633. if ac_fn_c_try_link "$LINENO"; then :
  12634. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12635. else
  12636. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12637. fi
  12638. rm -f core conftest.err conftest.$ac_objext \
  12639. conftest$ac_exeext conftest.$ac_ext
  12640. CFLAGS="$gl_save_compiler_FLAGS"
  12641. fi
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12643. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12644. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12645. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12646. else
  12647. gl_unknown_warnings_are_errors=
  12648. fi
  12649. fi
  12650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wmissing-format-attribute" >&5
  12651. $as_echo_n "checking whether $CC handles -Wmissing-format-attribute... " >&6; }
  12652. if ${gl_cv_warn_CFLAGS__Wmissing_format_attribute+:} false; then :
  12653. $as_echo_n "(cached) " >&6
  12654. else
  12655. gl_save_compiler_FLAGS="$CFLAGS"
  12656. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-format-attribute"
  12657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12658. /* end confdefs.h. */
  12659. int
  12660. main ()
  12661. {
  12662. ;
  12663. return 0;
  12664. }
  12665. _ACEOF
  12666. if ac_fn_c_try_link "$LINENO"; then :
  12667. gl_cv_warn_CFLAGS__Wmissing_format_attribute=yes
  12668. else
  12669. gl_cv_warn_CFLAGS__Wmissing_format_attribute=no
  12670. fi
  12671. rm -f core conftest.err conftest.$ac_objext \
  12672. conftest$ac_exeext conftest.$ac_ext
  12673. CFLAGS="$gl_save_compiler_FLAGS"
  12674. fi
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wmissing_format_attribute" >&5
  12676. $as_echo "$gl_cv_warn_CFLAGS__Wmissing_format_attribute" >&6; }
  12677. if test "x$gl_cv_warn_CFLAGS__Wmissing_format_attribute" = xyes; then :
  12678. as_fn_append WARN_CFLAGS " -Wmissing-format-attribute"
  12679. fi
  12680. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12682. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12683. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12684. $as_echo_n "(cached) " >&6
  12685. else
  12686. gl_save_compiler_FLAGS="$CFLAGS"
  12687. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12689. /* end confdefs.h. */
  12690. int
  12691. main ()
  12692. {
  12693. ;
  12694. return 0;
  12695. }
  12696. _ACEOF
  12697. if ac_fn_c_try_link "$LINENO"; then :
  12698. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12699. else
  12700. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12701. fi
  12702. rm -f core conftest.err conftest.$ac_objext \
  12703. conftest$ac_exeext conftest.$ac_ext
  12704. CFLAGS="$gl_save_compiler_FLAGS"
  12705. fi
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12707. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12708. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12709. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12710. else
  12711. gl_unknown_warnings_are_errors=
  12712. fi
  12713. fi
  12714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wmissing-prototypes" >&5
  12715. $as_echo_n "checking whether $CC handles -Wmissing-prototypes... " >&6; }
  12716. if ${gl_cv_warn_CFLAGS__Wmissing_prototypes+:} false; then :
  12717. $as_echo_n "(cached) " >&6
  12718. else
  12719. gl_save_compiler_FLAGS="$CFLAGS"
  12720. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-prototypes"
  12721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12722. /* end confdefs.h. */
  12723. int
  12724. main ()
  12725. {
  12726. ;
  12727. return 0;
  12728. }
  12729. _ACEOF
  12730. if ac_fn_c_try_link "$LINENO"; then :
  12731. gl_cv_warn_CFLAGS__Wmissing_prototypes=yes
  12732. else
  12733. gl_cv_warn_CFLAGS__Wmissing_prototypes=no
  12734. fi
  12735. rm -f core conftest.err conftest.$ac_objext \
  12736. conftest$ac_exeext conftest.$ac_ext
  12737. CFLAGS="$gl_save_compiler_FLAGS"
  12738. fi
  12739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wmissing_prototypes" >&5
  12740. $as_echo "$gl_cv_warn_CFLAGS__Wmissing_prototypes" >&6; }
  12741. if test "x$gl_cv_warn_CFLAGS__Wmissing_prototypes" = xyes; then :
  12742. as_fn_append WARN_CFLAGS " -Wmissing-prototypes"
  12743. fi
  12744. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12746. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12747. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12748. $as_echo_n "(cached) " >&6
  12749. else
  12750. gl_save_compiler_FLAGS="$CFLAGS"
  12751. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12753. /* end confdefs.h. */
  12754. int
  12755. main ()
  12756. {
  12757. ;
  12758. return 0;
  12759. }
  12760. _ACEOF
  12761. if ac_fn_c_try_link "$LINENO"; then :
  12762. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12763. else
  12764. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12765. fi
  12766. rm -f core conftest.err conftest.$ac_objext \
  12767. conftest$ac_exeext conftest.$ac_ext
  12768. CFLAGS="$gl_save_compiler_FLAGS"
  12769. fi
  12770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12771. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12772. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12773. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12774. else
  12775. gl_unknown_warnings_are_errors=
  12776. fi
  12777. fi
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wp64" >&5
  12779. $as_echo_n "checking whether $CC handles -Wp64... " >&6; }
  12780. if ${gl_cv_warn_CFLAGS__Wp64+:} false; then :
  12781. $as_echo_n "(cached) " >&6
  12782. else
  12783. gl_save_compiler_FLAGS="$CFLAGS"
  12784. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wp64"
  12785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12786. /* end confdefs.h. */
  12787. int
  12788. main ()
  12789. {
  12790. ;
  12791. return 0;
  12792. }
  12793. _ACEOF
  12794. if ac_fn_c_try_link "$LINENO"; then :
  12795. gl_cv_warn_CFLAGS__Wp64=yes
  12796. else
  12797. gl_cv_warn_CFLAGS__Wp64=no
  12798. fi
  12799. rm -f core conftest.err conftest.$ac_objext \
  12800. conftest$ac_exeext conftest.$ac_ext
  12801. CFLAGS="$gl_save_compiler_FLAGS"
  12802. fi
  12803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wp64" >&5
  12804. $as_echo "$gl_cv_warn_CFLAGS__Wp64" >&6; }
  12805. if test "x$gl_cv_warn_CFLAGS__Wp64" = xyes; then :
  12806. as_fn_append WARN_CFLAGS " -Wp64"
  12807. fi
  12808. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12810. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12811. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12812. $as_echo_n "(cached) " >&6
  12813. else
  12814. gl_save_compiler_FLAGS="$CFLAGS"
  12815. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12817. /* end confdefs.h. */
  12818. int
  12819. main ()
  12820. {
  12821. ;
  12822. return 0;
  12823. }
  12824. _ACEOF
  12825. if ac_fn_c_try_link "$LINENO"; then :
  12826. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12827. else
  12828. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12829. fi
  12830. rm -f core conftest.err conftest.$ac_objext \
  12831. conftest$ac_exeext conftest.$ac_ext
  12832. CFLAGS="$gl_save_compiler_FLAGS"
  12833. fi
  12834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12835. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12836. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12837. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12838. else
  12839. gl_unknown_warnings_are_errors=
  12840. fi
  12841. fi
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wpointer-arith" >&5
  12843. $as_echo_n "checking whether $CC handles -Wpointer-arith... " >&6; }
  12844. if ${gl_cv_warn_CFLAGS__Wpointer_arith+:} false; then :
  12845. $as_echo_n "(cached) " >&6
  12846. else
  12847. gl_save_compiler_FLAGS="$CFLAGS"
  12848. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
  12849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12850. /* end confdefs.h. */
  12851. int
  12852. main ()
  12853. {
  12854. ;
  12855. return 0;
  12856. }
  12857. _ACEOF
  12858. if ac_fn_c_try_link "$LINENO"; then :
  12859. gl_cv_warn_CFLAGS__Wpointer_arith=yes
  12860. else
  12861. gl_cv_warn_CFLAGS__Wpointer_arith=no
  12862. fi
  12863. rm -f core conftest.err conftest.$ac_objext \
  12864. conftest$ac_exeext conftest.$ac_ext
  12865. CFLAGS="$gl_save_compiler_FLAGS"
  12866. fi
  12867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wpointer_arith" >&5
  12868. $as_echo "$gl_cv_warn_CFLAGS__Wpointer_arith" >&6; }
  12869. if test "x$gl_cv_warn_CFLAGS__Wpointer_arith" = xyes; then :
  12870. as_fn_append WARN_CFLAGS " -Wpointer-arith"
  12871. fi
  12872. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12874. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12875. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12876. $as_echo_n "(cached) " >&6
  12877. else
  12878. gl_save_compiler_FLAGS="$CFLAGS"
  12879. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12881. /* end confdefs.h. */
  12882. int
  12883. main ()
  12884. {
  12885. ;
  12886. return 0;
  12887. }
  12888. _ACEOF
  12889. if ac_fn_c_try_link "$LINENO"; then :
  12890. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12891. else
  12892. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12893. fi
  12894. rm -f core conftest.err conftest.$ac_objext \
  12895. conftest$ac_exeext conftest.$ac_ext
  12896. CFLAGS="$gl_save_compiler_FLAGS"
  12897. fi
  12898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12899. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12900. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12901. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12902. else
  12903. gl_unknown_warnings_are_errors=
  12904. fi
  12905. fi
  12906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wreturn-type" >&5
  12907. $as_echo_n "checking whether $CC handles -Wreturn-type... " >&6; }
  12908. if ${gl_cv_warn_CFLAGS__Wreturn_type+:} false; then :
  12909. $as_echo_n "(cached) " >&6
  12910. else
  12911. gl_save_compiler_FLAGS="$CFLAGS"
  12912. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wreturn-type"
  12913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12914. /* end confdefs.h. */
  12915. int
  12916. main ()
  12917. {
  12918. ;
  12919. return 0;
  12920. }
  12921. _ACEOF
  12922. if ac_fn_c_try_link "$LINENO"; then :
  12923. gl_cv_warn_CFLAGS__Wreturn_type=yes
  12924. else
  12925. gl_cv_warn_CFLAGS__Wreturn_type=no
  12926. fi
  12927. rm -f core conftest.err conftest.$ac_objext \
  12928. conftest$ac_exeext conftest.$ac_ext
  12929. CFLAGS="$gl_save_compiler_FLAGS"
  12930. fi
  12931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wreturn_type" >&5
  12932. $as_echo "$gl_cv_warn_CFLAGS__Wreturn_type" >&6; }
  12933. if test "x$gl_cv_warn_CFLAGS__Wreturn_type" = xyes; then :
  12934. as_fn_append WARN_CFLAGS " -Wreturn-type"
  12935. fi
  12936. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  12938. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  12939. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  12940. $as_echo_n "(cached) " >&6
  12941. else
  12942. gl_save_compiler_FLAGS="$CFLAGS"
  12943. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  12944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12945. /* end confdefs.h. */
  12946. int
  12947. main ()
  12948. {
  12949. ;
  12950. return 0;
  12951. }
  12952. _ACEOF
  12953. if ac_fn_c_try_link "$LINENO"; then :
  12954. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  12955. else
  12956. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  12957. fi
  12958. rm -f core conftest.err conftest.$ac_objext \
  12959. conftest$ac_exeext conftest.$ac_ext
  12960. CFLAGS="$gl_save_compiler_FLAGS"
  12961. fi
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  12963. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  12964. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  12965. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  12966. else
  12967. gl_unknown_warnings_are_errors=
  12968. fi
  12969. fi
  12970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wshadow" >&5
  12971. $as_echo_n "checking whether $CC handles -Wshadow... " >&6; }
  12972. if ${gl_cv_warn_CFLAGS__Wshadow+:} false; then :
  12973. $as_echo_n "(cached) " >&6
  12974. else
  12975. gl_save_compiler_FLAGS="$CFLAGS"
  12976. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
  12977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12978. /* end confdefs.h. */
  12979. int
  12980. main ()
  12981. {
  12982. ;
  12983. return 0;
  12984. }
  12985. _ACEOF
  12986. if ac_fn_c_try_link "$LINENO"; then :
  12987. gl_cv_warn_CFLAGS__Wshadow=yes
  12988. else
  12989. gl_cv_warn_CFLAGS__Wshadow=no
  12990. fi
  12991. rm -f core conftest.err conftest.$ac_objext \
  12992. conftest$ac_exeext conftest.$ac_ext
  12993. CFLAGS="$gl_save_compiler_FLAGS"
  12994. fi
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wshadow" >&5
  12996. $as_echo "$gl_cv_warn_CFLAGS__Wshadow" >&6; }
  12997. if test "x$gl_cv_warn_CFLAGS__Wshadow" = xyes; then :
  12998. as_fn_append WARN_CFLAGS " -Wshadow"
  12999. fi
  13000. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  13002. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  13003. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  13004. $as_echo_n "(cached) " >&6
  13005. else
  13006. gl_save_compiler_FLAGS="$CFLAGS"
  13007. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  13008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13009. /* end confdefs.h. */
  13010. int
  13011. main ()
  13012. {
  13013. ;
  13014. return 0;
  13015. }
  13016. _ACEOF
  13017. if ac_fn_c_try_link "$LINENO"; then :
  13018. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  13019. else
  13020. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  13021. fi
  13022. rm -f core conftest.err conftest.$ac_objext \
  13023. conftest$ac_exeext conftest.$ac_ext
  13024. CFLAGS="$gl_save_compiler_FLAGS"
  13025. fi
  13026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  13027. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  13028. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  13029. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  13030. else
  13031. gl_unknown_warnings_are_errors=
  13032. fi
  13033. fi
  13034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wstrict-prototypes" >&5
  13035. $as_echo_n "checking whether $CC handles -Wstrict-prototypes... " >&6; }
  13036. if ${gl_cv_warn_CFLAGS__Wstrict_prototypes+:} false; then :
  13037. $as_echo_n "(cached) " >&6
  13038. else
  13039. gl_save_compiler_FLAGS="$CFLAGS"
  13040. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
  13041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13042. /* end confdefs.h. */
  13043. int
  13044. main ()
  13045. {
  13046. ;
  13047. return 0;
  13048. }
  13049. _ACEOF
  13050. if ac_fn_c_try_link "$LINENO"; then :
  13051. gl_cv_warn_CFLAGS__Wstrict_prototypes=yes
  13052. else
  13053. gl_cv_warn_CFLAGS__Wstrict_prototypes=no
  13054. fi
  13055. rm -f core conftest.err conftest.$ac_objext \
  13056. conftest$ac_exeext conftest.$ac_ext
  13057. CFLAGS="$gl_save_compiler_FLAGS"
  13058. fi
  13059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wstrict_prototypes" >&5
  13060. $as_echo "$gl_cv_warn_CFLAGS__Wstrict_prototypes" >&6; }
  13061. if test "x$gl_cv_warn_CFLAGS__Wstrict_prototypes" = xyes; then :
  13062. as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
  13063. fi
  13064. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  13065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  13066. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  13067. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  13068. $as_echo_n "(cached) " >&6
  13069. else
  13070. gl_save_compiler_FLAGS="$CFLAGS"
  13071. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  13072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13073. /* end confdefs.h. */
  13074. int
  13075. main ()
  13076. {
  13077. ;
  13078. return 0;
  13079. }
  13080. _ACEOF
  13081. if ac_fn_c_try_link "$LINENO"; then :
  13082. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  13083. else
  13084. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  13085. fi
  13086. rm -f core conftest.err conftest.$ac_objext \
  13087. conftest$ac_exeext conftest.$ac_ext
  13088. CFLAGS="$gl_save_compiler_FLAGS"
  13089. fi
  13090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  13091. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  13092. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  13093. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  13094. else
  13095. gl_unknown_warnings_are_errors=
  13096. fi
  13097. fi
  13098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wuninitialized" >&5
  13099. $as_echo_n "checking whether $CC handles -Wuninitialized... " >&6; }
  13100. if ${gl_cv_warn_CFLAGS__Wuninitialized+:} false; then :
  13101. $as_echo_n "(cached) " >&6
  13102. else
  13103. gl_save_compiler_FLAGS="$CFLAGS"
  13104. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wuninitialized"
  13105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13106. /* end confdefs.h. */
  13107. int
  13108. main ()
  13109. {
  13110. ;
  13111. return 0;
  13112. }
  13113. _ACEOF
  13114. if ac_fn_c_try_link "$LINENO"; then :
  13115. gl_cv_warn_CFLAGS__Wuninitialized=yes
  13116. else
  13117. gl_cv_warn_CFLAGS__Wuninitialized=no
  13118. fi
  13119. rm -f core conftest.err conftest.$ac_objext \
  13120. conftest$ac_exeext conftest.$ac_ext
  13121. CFLAGS="$gl_save_compiler_FLAGS"
  13122. fi
  13123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wuninitialized" >&5
  13124. $as_echo "$gl_cv_warn_CFLAGS__Wuninitialized" >&6; }
  13125. if test "x$gl_cv_warn_CFLAGS__Wuninitialized" = xyes; then :
  13126. as_fn_append WARN_CFLAGS " -Wuninitialized"
  13127. fi
  13128. if test x${gl_unknown_warnings_are_errors+set} = x; then :
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  13130. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  13131. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  13132. $as_echo_n "(cached) " >&6
  13133. else
  13134. gl_save_compiler_FLAGS="$CFLAGS"
  13135. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  13136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13137. /* end confdefs.h. */
  13138. int
  13139. main ()
  13140. {
  13141. ;
  13142. return 0;
  13143. }
  13144. _ACEOF
  13145. if ac_fn_c_try_link "$LINENO"; then :
  13146. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  13147. else
  13148. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  13149. fi
  13150. rm -f core conftest.err conftest.$ac_objext \
  13151. conftest$ac_exeext conftest.$ac_ext
  13152. CFLAGS="$gl_save_compiler_FLAGS"
  13153. fi
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  13155. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  13156. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  13157. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  13158. else
  13159. gl_unknown_warnings_are_errors=
  13160. fi
  13161. fi
  13162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wwrite-strings" >&5
  13163. $as_echo_n "checking whether $CC handles -Wwrite-strings... " >&6; }
  13164. if ${gl_cv_warn_CFLAGS__Wwrite_strings+:} false; then :
  13165. $as_echo_n "(cached) " >&6
  13166. else
  13167. gl_save_compiler_FLAGS="$CFLAGS"
  13168. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
  13169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13170. /* end confdefs.h. */
  13171. int
  13172. main ()
  13173. {
  13174. ;
  13175. return 0;
  13176. }
  13177. _ACEOF
  13178. if ac_fn_c_try_link "$LINENO"; then :
  13179. gl_cv_warn_CFLAGS__Wwrite_strings=yes
  13180. else
  13181. gl_cv_warn_CFLAGS__Wwrite_strings=no
  13182. fi
  13183. rm -f core conftest.err conftest.$ac_objext \
  13184. conftest$ac_exeext conftest.$ac_ext
  13185. CFLAGS="$gl_save_compiler_FLAGS"
  13186. fi
  13187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wwrite_strings" >&5
  13188. $as_echo "$gl_cv_warn_CFLAGS__Wwrite_strings" >&6; }
  13189. if test "x$gl_cv_warn_CFLAGS__Wwrite_strings" = xyes; then :
  13190. as_fn_append WARN_CFLAGS " -Wwrite-strings"
  13191. fi
  13192. # Check whether --enable-Werror was given.
  13193. if test "${enable_Werror+set}" = set; then :
  13194. enableval=$enable_Werror; case $enableval in
  13195. yes) if test x${gl_unknown_warnings_are_errors+set} = x; then :
  13196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5
  13197. $as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; }
  13198. if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then :
  13199. $as_echo_n "(cached) " >&6
  13200. else
  13201. gl_save_compiler_FLAGS="$CFLAGS"
  13202. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
  13203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13204. /* end confdefs.h. */
  13205. int
  13206. main ()
  13207. {
  13208. ;
  13209. return 0;
  13210. }
  13211. _ACEOF
  13212. if ac_fn_c_try_link "$LINENO"; then :
  13213. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes
  13214. else
  13215. gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no
  13216. fi
  13217. rm -f core conftest.err conftest.$ac_objext \
  13218. conftest$ac_exeext conftest.$ac_ext
  13219. CFLAGS="$gl_save_compiler_FLAGS"
  13220. fi
  13221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5
  13222. $as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; }
  13223. if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then :
  13224. gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
  13225. else
  13226. gl_unknown_warnings_are_errors=
  13227. fi
  13228. fi
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror" >&5
  13230. $as_echo_n "checking whether $CC handles -Werror... " >&6; }
  13231. if ${gl_cv_warn_CFLAGS__Werror+:} false; then :
  13232. $as_echo_n "(cached) " >&6
  13233. else
  13234. gl_save_compiler_FLAGS="$CFLAGS"
  13235. as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
  13236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13237. /* end confdefs.h. */
  13238. int
  13239. main ()
  13240. {
  13241. ;
  13242. return 0;
  13243. }
  13244. _ACEOF
  13245. if ac_fn_c_try_link "$LINENO"; then :
  13246. gl_cv_warn_CFLAGS__Werror=yes
  13247. else
  13248. gl_cv_warn_CFLAGS__Werror=no
  13249. fi
  13250. rm -f core conftest.err conftest.$ac_objext \
  13251. conftest$ac_exeext conftest.$ac_ext
  13252. CFLAGS="$gl_save_compiler_FLAGS"
  13253. fi
  13254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror" >&5
  13255. $as_echo "$gl_cv_warn_CFLAGS__Werror" >&6; }
  13256. if test "x$gl_cv_warn_CFLAGS__Werror" = xyes; then :
  13257. as_fn_append WARN_CFLAGS " -Werror"
  13258. fi
  13259. ;;
  13260. no) ;;
  13261. *) as_fn_error $? "bad value $enableval for Werror option" "$LINENO" 5 ;;
  13262. esac
  13263. fi
  13264. if test "x${CC_FOR_BUILD+set}" != "xset" ; then
  13265. if test "x$cross_compiling" = "xyes" ; then
  13266. for ac_prog in gcc cc
  13267. do
  13268. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13269. set dummy $ac_prog; ac_word=$2
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13271. $as_echo_n "checking for $ac_word... " >&6; }
  13272. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  13273. $as_echo_n "(cached) " >&6
  13274. else
  13275. if test -n "$CC_FOR_BUILD"; then
  13276. ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  13277. else
  13278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13279. for as_dir in $PATH
  13280. do
  13281. IFS=$as_save_IFS
  13282. test -z "$as_dir" && as_dir=.
  13283. for ac_exec_ext in '' $ac_executable_extensions; do
  13284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13285. ac_cv_prog_CC_FOR_BUILD="$ac_prog"
  13286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13287. break 2
  13288. fi
  13289. done
  13290. done
  13291. IFS=$as_save_IFS
  13292. fi
  13293. fi
  13294. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  13295. if test -n "$CC_FOR_BUILD"; then
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  13297. $as_echo "$CC_FOR_BUILD" >&6; }
  13298. else
  13299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13300. $as_echo "no" >&6; }
  13301. fi
  13302. test -n "$CC_FOR_BUILD" && break
  13303. done
  13304. else
  13305. CC_FOR_BUILD=${CC}
  13306. fi
  13307. fi
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC_FOR_BUILD" >&5
  13309. $as_echo_n "checking for CC_FOR_BUILD... " >&6; }
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  13311. $as_echo "$CC_FOR_BUILD" >&6; }
  13312. if test "x${BUILD_CPPFLAGS+set}" != "xset" ; then
  13313. if test "x$cross_compiling" = "xyes" ; then
  13314. BUILD_CPPFLAGS=
  13315. else
  13316. BUILD_CPPFLAGS=${CPPFLAGS}
  13317. fi
  13318. fi
  13319. if test "x${BUILD_CFLAGS+set}" != "xset" ; then
  13320. if test "x$cross_compiling" = "xyes" ; then
  13321. BUILD_CFLAGS=
  13322. else
  13323. BUILD_CFLAGS=${CFLAGS}
  13324. fi
  13325. fi
  13326. if test "x${BUILD_LDFLAGS+set}" != "xset" ; then
  13327. if test "x$cross_compiling" = "xyes" ; then
  13328. BUILD_LDFLAGS=
  13329. else
  13330. BUILD_LDFLAGS=${LDFLAGS}
  13331. fi
  13332. fi
  13333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((unused))" >&5
  13334. $as_echo_n "checking for __attribute__((unused))... " >&6; }
  13335. if ${pam_cv_attribute_unused+:} false; then :
  13336. $as_echo_n "(cached) " >&6
  13337. else
  13338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13339. /* end confdefs.h. */
  13340. int fun(int i __attribute__((unused)));
  13341. int
  13342. main ()
  13343. {
  13344. return fun(0);
  13345. ;
  13346. return 0;
  13347. }
  13348. _ACEOF
  13349. if ac_fn_c_try_compile "$LINENO"; then :
  13350. pam_cv_attribute_unused=yes
  13351. else
  13352. pam_cv_attribute_unused=no
  13353. fi
  13354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13355. fi
  13356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_attribute_unused" >&5
  13357. $as_echo "$pam_cv_attribute_unused" >&6; }
  13358. if test "$pam_cv_attribute_unused" = yes; then :
  13359. unused='__attribute__((unused))'
  13360. else
  13361. unused=
  13362. fi
  13363. cat >>confdefs.h <<_ACEOF
  13364. #define UNUSED $unused
  13365. _ACEOF
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
  13367. $as_echo_n "checking for .symver assembler directive... " >&6; }
  13368. if ${libc_cv_asm_symver_directive+:} false; then :
  13369. $as_echo_n "(cached) " >&6
  13370. else
  13371. cat > conftest.s <<EOF
  13372. ${libc_cv_dot_text}
  13373. _sym:
  13374. .symver _sym,sym@VERS
  13375. EOF
  13376. if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
  13377. libc_cv_asm_symver_directive=yes
  13378. else
  13379. libc_cv_asm_symver_directive=no
  13380. fi
  13381. rm -f conftest*
  13382. fi
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
  13384. $as_echo "$libc_cv_asm_symver_directive" >&6; }
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
  13386. $as_echo_n "checking for ld --version-script... " >&6; }
  13387. if ${libc_cv_ld_version_script_option+:} false; then :
  13388. $as_echo_n "(cached) " >&6
  13389. else
  13390. if test $libc_cv_asm_symver_directive = yes; then
  13391. cat > conftest.s <<EOF
  13392. ${libc_cv_dot_text}
  13393. _sym:
  13394. .symver _sym,sym@VERS
  13395. EOF
  13396. cat > conftest.map <<EOF
  13397. VERS_1 {
  13398. global: sym;
  13399. };
  13400. VERS_2 {
  13401. global: sym;
  13402. } VERS_1;
  13403. EOF
  13404. if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
  13405. then
  13406. if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
  13407. -o conftest.so conftest.o
  13408. -nostartfiles -nostdlib
  13409. -Wl,--version-script,conftest.map
  13410. 1>&5'
  13411. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  13412. (eval $ac_try) 2>&5
  13413. ac_status=$?
  13414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13415. test $ac_status = 0; }; };
  13416. then
  13417. libc_cv_ld_version_script_option=yes
  13418. else
  13419. libc_cv_ld_version_script_option=no
  13420. fi
  13421. else
  13422. libc_cv_ld_version_script_option=no
  13423. fi
  13424. else
  13425. libc_cv_ld_version_script_option=no
  13426. fi
  13427. rm -f conftest*
  13428. fi
  13429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
  13430. $as_echo "$libc_cv_ld_version_script_option" >&6; }
  13431. if test "$libc_cv_ld_version_script_option" = "yes"; then
  13432. HAVE_VERSIONING_TRUE=
  13433. HAVE_VERSIONING_FALSE='#'
  13434. else
  13435. HAVE_VERSIONING_TRUE='#'
  13436. HAVE_VERSIONING_FALSE=
  13437. fi
  13438. # Check whether --enable-pie was given.
  13439. if test "${enable_pie+set}" = set; then :
  13440. enableval=$enable_pie;
  13441. else
  13442. enable_pie=check
  13443. fi
  13444. case "$enable_pie" in
  13445. no) ;;
  13446. yes|check)
  13447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie/-pie support" >&5
  13448. $as_echo_n "checking for -fpie/-pie support... " >&6; }
  13449. if ${pam_cv_pie+:} false; then :
  13450. $as_echo_n "(cached) " >&6
  13451. else
  13452. saved_CFLAGS="$CFLAGS"
  13453. saved_LDFLAGS="$LDFLAGS"
  13454. CFLAGS="$CFLAGS -fpie"
  13455. LDFLAGS="$LDFLAGS -pie"
  13456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13457. /* end confdefs.h. */
  13458. int
  13459. main ()
  13460. {
  13461. ;
  13462. return 0;
  13463. }
  13464. _ACEOF
  13465. if ac_fn_c_try_link "$LINENO"; then :
  13466. pam_cv_pie=yes
  13467. else
  13468. pam_cv_pie=no
  13469. fi
  13470. rm -f core conftest.err conftest.$ac_objext \
  13471. conftest$ac_exeext conftest.$ac_ext
  13472. LDFLAGS="$saved_LDFLAGS"
  13473. CFLAGS="$saved_CFLAGS"
  13474. fi
  13475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_pie" >&5
  13476. $as_echo "$pam_cv_pie" >&6; }
  13477. if test "$pam_cv_pie" = yes; then :
  13478. enable_pie=yes
  13479. else
  13480. if test "$enable_pie" = yes; then :
  13481. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13482. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13483. as_fn_error $? "requested -fpie/-pie support not found
  13484. See \`config.log' for more details" "$LINENO" 5; }
  13485. else
  13486. enable_pie=no
  13487. fi
  13488. fi
  13489. ;;
  13490. *) as_fn_error $? "bad value $enable_pie for --enable-pie option" "$LINENO" 5 ;;
  13491. esac
  13492. if test "$enable_pie" = yes; then :
  13493. PIE_CFLAGS="-fpie"
  13494. PIE_LDFLAGS="-pie"
  13495. else
  13496. PIE_CFLAGS=
  13497. PIE_LDFLAGS=
  13498. fi
  13499. EXE_CFLAGS="$PIE_CFLAGS"
  13500. EXE_LDFLAGS="$PIE_LDFLAGS $ZNOW_LDFLAGS"
  13501. # Check whether --enable-doc was given.
  13502. if test "${enable_doc+set}" = set; then :
  13503. enableval=$enable_doc; WITH_DOC=$enableval
  13504. else
  13505. WITH_DOC=yes
  13506. fi
  13507. if test "x$WITH_DOC" = "xyes"; then
  13508. HAVE_DOC_TRUE=
  13509. HAVE_DOC_FALSE='#'
  13510. else
  13511. HAVE_DOC_TRUE='#'
  13512. HAVE_DOC_FALSE=
  13513. fi
  13514. # Check whether --enable-prelude was given.
  13515. if test "${enable_prelude+set}" = set; then :
  13516. enableval=$enable_prelude; WITH_PRELUDE=$enableval
  13517. else
  13518. WITH_PRELUDE=yes
  13519. fi
  13520. if test "$WITH_PRELUDE" = "yes" ; then
  13521. # Check whether --with-libprelude-prefix was given.
  13522. if test "${with_libprelude_prefix+set}" = set; then :
  13523. withval=$with_libprelude_prefix; libprelude_config_prefix="$withval"
  13524. else
  13525. libprelude_config_prefix=""
  13526. fi
  13527. if test x$libprelude_config_prefix != x ; then
  13528. if test x${LIBPRELUDE_CONFIG+set} != xset ; then
  13529. LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
  13530. fi
  13531. fi
  13532. # Extract the first word of "libprelude-config", so it can be a program name with args.
  13533. set dummy libprelude-config; ac_word=$2
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13535. $as_echo_n "checking for $ac_word... " >&6; }
  13536. if ${ac_cv_path_LIBPRELUDE_CONFIG+:} false; then :
  13537. $as_echo_n "(cached) " >&6
  13538. else
  13539. case $LIBPRELUDE_CONFIG in
  13540. [\\/]* | ?:[\\/]*)
  13541. ac_cv_path_LIBPRELUDE_CONFIG="$LIBPRELUDE_CONFIG" # Let the user override the test with a path.
  13542. ;;
  13543. *)
  13544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13545. for as_dir in $PATH
  13546. do
  13547. IFS=$as_save_IFS
  13548. test -z "$as_dir" && as_dir=.
  13549. for ac_exec_ext in '' $ac_executable_extensions; do
  13550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13551. ac_cv_path_LIBPRELUDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13553. break 2
  13554. fi
  13555. done
  13556. done
  13557. IFS=$as_save_IFS
  13558. test -z "$ac_cv_path_LIBPRELUDE_CONFIG" && ac_cv_path_LIBPRELUDE_CONFIG="no"
  13559. ;;
  13560. esac
  13561. fi
  13562. LIBPRELUDE_CONFIG=$ac_cv_path_LIBPRELUDE_CONFIG
  13563. if test -n "$LIBPRELUDE_CONFIG"; then
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPRELUDE_CONFIG" >&5
  13565. $as_echo "$LIBPRELUDE_CONFIG" >&6; }
  13566. else
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13568. $as_echo "no" >&6; }
  13569. fi
  13570. min_libprelude_version=0.9.0
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libprelude - version >= $min_libprelude_version" >&5
  13572. $as_echo_n "checking for libprelude - version >= $min_libprelude_version... " >&6; }
  13573. no_libprelude=""
  13574. if test "$LIBPRELUDE_CONFIG" = "no" ; then
  13575. no_libprelude=yes
  13576. else
  13577. LIBPRELUDE_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`
  13578. LIBPRELUDE_PTHREAD_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --pthread-cflags`
  13579. LIBPRELUDE_LDFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --ldflags`
  13580. LIBPRELUDE_LIBS=`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`
  13581. LIBPRELUDE_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --prefix`
  13582. LIBPRELUDE_CONFIG_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --config-prefix`
  13583. libprelude_config_version=`$LIBPRELUDE_CONFIG $libprelude_config_args --version`
  13584. ac_save_CFLAGS="$CFLAGS"
  13585. ac_save_LDFLAGS="$LDFLAGS"
  13586. ac_save_LIBS="$LIBS"
  13587. CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
  13588. LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
  13589. LIBS="$LIBS $LIBPRELUDE_LIBS"
  13590. rm -f conf.libpreludetest
  13591. if test "$cross_compiling" = yes; then :
  13592. echo $ac_n "cross compiling; assumed OK... $ac_c"
  13593. else
  13594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13595. /* end confdefs.h. */
  13596. #include <stdio.h>
  13597. #include <stdlib.h>
  13598. #include <string.h>
  13599. #include <libprelude/prelude.h>
  13600. int
  13601. main ()
  13602. {
  13603. system ("touch conf.libpreludetest");
  13604. if( strcmp( prelude_check_version(NULL), "$libprelude_config_version" ) )
  13605. {
  13606. printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
  13607. "$libprelude_config_version", prelude_check_version(NULL) );
  13608. printf("*** was found! If libprelude-config was correct, then it is best\n");
  13609. printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
  13610. printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
  13611. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  13612. printf("*** required on your system.\n");
  13613. printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
  13614. printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
  13615. printf("*** before re-running configure\n");
  13616. }
  13617. else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) )
  13618. {
  13619. printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
  13620. printf("*** library (version %s)\n", prelude_check_version(NULL) );
  13621. }
  13622. else
  13623. {
  13624. if ( prelude_check_version( "$min_libprelude_version" ) )
  13625. {
  13626. return 0;
  13627. }
  13628. else
  13629. {
  13630. printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
  13631. prelude_check_version(NULL) );
  13632. printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
  13633. "$min_libprelude_version" );
  13634. printf("*** LIBPRELUDE is always available from http://www.prelude-ids.org/download/releases.\n");
  13635. printf("*** \n");
  13636. printf("*** If you have already installed a sufficiently new version, this error\n");
  13637. printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
  13638. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  13639. printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
  13640. printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
  13641. printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
  13642. printf("*** so that the correct libraries are found at run-time))\n");
  13643. }
  13644. }
  13645. return 1;
  13646. }
  13647. _ACEOF
  13648. if ac_fn_c_try_run "$LINENO"; then :
  13649. else
  13650. no_libprelude=yes
  13651. fi
  13652. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13653. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13654. fi
  13655. CFLAGS="$ac_save_CFLAGS"
  13656. LIBS="$ac_save_LIBS"
  13657. LDFLAGS="$ac_save_LDFLAGS"
  13658. fi
  13659. if test "x$no_libprelude" = x ; then
  13660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13661. $as_echo "yes" >&6; }
  13662. :
  13663. else
  13664. if test -f conf.libpreludetest ; then
  13665. :
  13666. else
  13667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13668. $as_echo "no" >&6; }
  13669. fi
  13670. if test "$LIBPRELUDE_CONFIG" = "no" ; then
  13671. if test x$libprelude_config_prefix != x ; then
  13672. echo "*** The libprelude-config script installed by LIBPRELUDE could not be found"
  13673. echo "*** If LIBPRELUDE was installed in PREFIX, make sure PREFIX/bin is in"
  13674. echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
  13675. echo "*** full path to libprelude-config."
  13676. fi
  13677. else
  13678. if test -f conf.libpreludetest ; then
  13679. :
  13680. else
  13681. echo "*** Could not run libprelude test program, checking why..."
  13682. CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
  13683. LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
  13684. LIBS="$LIBS $LIBPRELUDE_LIBS"
  13685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13686. /* end confdefs.h. */
  13687. #include <stdio.h>
  13688. #include <stdlib.h>
  13689. #include <string.h>
  13690. #include <libprelude/prelude.h>
  13691. int
  13692. main ()
  13693. {
  13694. return !!prelude_check_version(NULL);
  13695. ;
  13696. return 0;
  13697. }
  13698. _ACEOF
  13699. if ac_fn_c_try_link "$LINENO"; then :
  13700. echo "*** The test program compiled, but did not run. This usually means"
  13701. echo "*** that the run-time linker is not finding LIBPRELUDE or finding the wrong"
  13702. echo "*** version of LIBPRELUDE. If it is not finding LIBPRELUDE, you'll need to set your"
  13703. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  13704. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  13705. echo "*** is required on your system"
  13706. echo "***"
  13707. echo "*** If you have an old version installed, it is best to remove it, although"
  13708. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  13709. echo "***"
  13710. else
  13711. echo "*** The test program failed to compile or link. See the file config.log for the"
  13712. echo "*** exact error that occurred. This usually means LIBPRELUDE was incorrectly installed"
  13713. echo "*** or that you have moved LIBPRELUDE since it was installed. In the latter case, you"
  13714. echo "*** may want to edit the libprelude-config script: $LIBPRELUDE_CONFIG"
  13715. fi
  13716. rm -f core conftest.err conftest.$ac_objext \
  13717. conftest$ac_exeext conftest.$ac_ext
  13718. CFLAGS="$ac_save_CFLAGS"
  13719. LDFLAGS="$ac_save_LDFLAGS"
  13720. LIBS="$ac_save_LIBS"
  13721. fi
  13722. fi
  13723. LIBPRELUDE_CFLAGS=""
  13724. LIBPRELUDE_LDFLAGS=""
  13725. LIBPRELUDE_LIBS=""
  13726. :
  13727. fi
  13728. rm -f conf.libpreludetest
  13729. if test "$LIBPRELUDE_CONFIG" != "no" ; then
  13730. LIBPRELUDE_CFLAGS="$LIBPRELUDE_CFLAGS -DPRELUDE=1"
  13731. fi
  13732. fi
  13733. # Check whether --enable-debug was given.
  13734. if test "${enable_debug+set}" = set; then :
  13735. enableval=$enable_debug;
  13736. fi
  13737. if test x"$enable_debug" = x"yes" ; then
  13738. $as_echo "#define PAM_DEBUG /**/" >>confdefs.h
  13739. fi
  13740. # Check whether --enable-securedir was given.
  13741. if test "${enable_securedir+set}" = set; then :
  13742. enableval=$enable_securedir; SECUREDIR=$enableval
  13743. else
  13744. SECUREDIR=$libdir/security
  13745. fi
  13746. # Check whether --enable-isadir was given.
  13747. if test "${enable_isadir+set}" = set; then :
  13748. enableval=$enable_isadir; ISA=$enableval
  13749. else
  13750. ISA=../../`basename $libdir`/security
  13751. fi
  13752. unset mylibdirbase
  13753. cat >>confdefs.h <<_ACEOF
  13754. #define _PAM_ISA "$ISA"
  13755. _ACEOF
  13756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defining \$ISA to \"$ISA\"" >&5
  13757. $as_echo "Defining \$ISA to \"$ISA\"" >&6; }
  13758. # Check whether --enable-sconfigdir was given.
  13759. if test "${enable_sconfigdir+set}" = set; then :
  13760. enableval=$enable_sconfigdir; SCONFIGDIR=$enableval
  13761. else
  13762. SCONFIGDIR=$sysconfdir/security
  13763. fi
  13764. # Check whether --enable-pamlocking was given.
  13765. if test "${enable_pamlocking+set}" = set; then :
  13766. enableval=$enable_pamlocking;
  13767. fi
  13768. if test x"$enable_pamlocking" = "xyes"; then
  13769. $as_echo "#define PAM_LOCKING /**/" >>confdefs.h
  13770. fi
  13771. # Check whether --enable-read-both-confs was given.
  13772. if test "${enable_read_both_confs+set}" = set; then :
  13773. enableval=$enable_read_both_confs;
  13774. fi
  13775. if test x"$enable_read_both_confs" = "xyes"; then
  13776. $as_echo "#define PAM_READ_BOTH_CONFS /**/" >>confdefs.h
  13777. fi
  13778. # Check whether --enable-lckpwdf was given.
  13779. if test "${enable_lckpwdf+set}" = set; then :
  13780. enableval=$enable_lckpwdf; WITH_LCKPWDF=$enableval
  13781. else
  13782. WITH_LCKPWDF=yes
  13783. fi
  13784. if test "$WITH_LCKPWDF" = "yes" ; then
  13785. $as_echo "#define USE_LCKPWDF 1" >>confdefs.h
  13786. fi
  13787. for ac_header in paths.h
  13788. do :
  13789. ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
  13790. if test "x$ac_cv_header_paths_h" = xyes; then :
  13791. cat >>confdefs.h <<_ACEOF
  13792. #define HAVE_PATHS_H 1
  13793. _ACEOF
  13794. fi
  13795. done
  13796. # Check whether --with-mailspool was given.
  13797. if test "${with_mailspool+set}" = set; then :
  13798. withval=$with_mailspool; with_mailspool=${withval}
  13799. fi
  13800. if test x$with_mailspool != x ; then
  13801. pam_mail_spool="\"$with_mailspool\""
  13802. else
  13803. if test "$cross_compiling" = yes; then :
  13804. pam_mail_spool="\"/var/spool/mail\""
  13805. else
  13806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13807. /* end confdefs.h. */
  13808. #include <paths.h>
  13809. int main() {
  13810. #ifdef _PATH_MAILDIR
  13811. exit(0);
  13812. #else
  13813. exit(1);
  13814. #endif
  13815. }
  13816. _ACEOF
  13817. if ac_fn_c_try_run "$LINENO"; then :
  13818. pam_mail_spool="_PATH_MAILDIR"
  13819. else
  13820. pam_mail_spool="\"/var/spool/mail\""
  13821. fi
  13822. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13823. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13824. fi
  13825. fi
  13826. cat >>confdefs.h <<_ACEOF
  13827. #define PAM_PATH_MAILDIR $pam_mail_spool
  13828. _ACEOF
  13829. # Check whether --with-xauth was given.
  13830. if test "${with_xauth+set}" = set; then :
  13831. withval=$with_xauth; pam_xauth_path=${withval}
  13832. fi
  13833. if test x$with_xauth = x ; then
  13834. # Extract the first word of "xauth", so it can be a program name with args.
  13835. set dummy xauth; ac_word=$2
  13836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13837. $as_echo_n "checking for $ac_word... " >&6; }
  13838. if ${ac_cv_path_pam_xauth_path+:} false; then :
  13839. $as_echo_n "(cached) " >&6
  13840. else
  13841. case $pam_xauth_path in
  13842. [\\/]* | ?:[\\/]*)
  13843. ac_cv_path_pam_xauth_path="$pam_xauth_path" # Let the user override the test with a path.
  13844. ;;
  13845. *)
  13846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13847. for as_dir in $PATH
  13848. do
  13849. IFS=$as_save_IFS
  13850. test -z "$as_dir" && as_dir=.
  13851. for ac_exec_ext in '' $ac_executable_extensions; do
  13852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13853. ac_cv_path_pam_xauth_path="$as_dir/$ac_word$ac_exec_ext"
  13854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13855. break 2
  13856. fi
  13857. done
  13858. done
  13859. IFS=$as_save_IFS
  13860. ;;
  13861. esac
  13862. fi
  13863. pam_xauth_path=$ac_cv_path_pam_xauth_path
  13864. if test -n "$pam_xauth_path"; then
  13865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_xauth_path" >&5
  13866. $as_echo "$pam_xauth_path" >&6; }
  13867. else
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13869. $as_echo "no" >&6; }
  13870. fi
  13871. if test x$pam_xauth_path = x/usr/X11R6/bin/xauth ; then
  13872. unset pam_xauth_path
  13873. fi
  13874. fi
  13875. if test x$pam_xauth_path != x ; then
  13876. cat >>confdefs.h <<_ACEOF
  13877. #define PAM_PATH_XAUTH "$pam_xauth_path"
  13878. _ACEOF
  13879. fi
  13880. saved_LIBS="$LIBS"
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  13882. $as_echo_n "checking for library containing dlopen... " >&6; }
  13883. if ${ac_cv_search_dlopen+:} false; then :
  13884. $as_echo_n "(cached) " >&6
  13885. else
  13886. ac_func_search_save_LIBS=$LIBS
  13887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13888. /* end confdefs.h. */
  13889. /* Override any GCC internal prototype to avoid an error.
  13890. Use char because int might match the return type of a GCC
  13891. builtin and then its argument prototype would still apply. */
  13892. #ifdef __cplusplus
  13893. extern "C"
  13894. #endif
  13895. char dlopen ();
  13896. int
  13897. main ()
  13898. {
  13899. return dlopen ();
  13900. ;
  13901. return 0;
  13902. }
  13903. _ACEOF
  13904. for ac_lib in '' dl; do
  13905. if test -z "$ac_lib"; then
  13906. ac_res="none required"
  13907. else
  13908. ac_res=-l$ac_lib
  13909. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13910. fi
  13911. if ac_fn_c_try_link "$LINENO"; then :
  13912. ac_cv_search_dlopen=$ac_res
  13913. fi
  13914. rm -f core conftest.err conftest.$ac_objext \
  13915. conftest$ac_exeext
  13916. if ${ac_cv_search_dlopen+:} false; then :
  13917. break
  13918. fi
  13919. done
  13920. if ${ac_cv_search_dlopen+:} false; then :
  13921. else
  13922. ac_cv_search_dlopen=no
  13923. fi
  13924. rm conftest.$ac_ext
  13925. LIBS=$ac_func_search_save_LIBS
  13926. fi
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  13928. $as_echo "$ac_cv_search_dlopen" >&6; }
  13929. ac_res=$ac_cv_search_dlopen
  13930. if test "$ac_res" != no; then :
  13931. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13932. fi
  13933. LIBS="$saved_LIBS"
  13934. case "$ac_cv_search_dlopen" in
  13935. no) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13936. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13937. as_fn_error $? "failed to find dlopen
  13938. See \`config.log' for more details" "$LINENO" 5; } ;;
  13939. -l*) LIBDL="$ac_cv_search_dlopen" ;;
  13940. *) LIBDL= ;;
  13941. esac
  13942. # Check whether --enable-audit was given.
  13943. if test "${enable_audit+set}" = set; then :
  13944. enableval=$enable_audit; WITH_LIBAUDIT=$enableval
  13945. else
  13946. WITH_LIBAUDIT=yes
  13947. fi
  13948. if test x"$WITH_LIBAUDIT" != xno ; then
  13949. ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
  13950. if test "x$ac_cv_header_libaudit_h" = xyes; then :
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_acct_message in -laudit" >&5
  13952. $as_echo_n "checking for audit_log_acct_message in -laudit... " >&6; }
  13953. if ${ac_cv_lib_audit_audit_log_acct_message+:} false; then :
  13954. $as_echo_n "(cached) " >&6
  13955. else
  13956. ac_check_lib_save_LIBS=$LIBS
  13957. LIBS="-laudit $LIBS"
  13958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13959. /* end confdefs.h. */
  13960. /* Override any GCC internal prototype to avoid an error.
  13961. Use char because int might match the return type of a GCC
  13962. builtin and then its argument prototype would still apply. */
  13963. #ifdef __cplusplus
  13964. extern "C"
  13965. #endif
  13966. char audit_log_acct_message ();
  13967. int
  13968. main ()
  13969. {
  13970. return audit_log_acct_message ();
  13971. ;
  13972. return 0;
  13973. }
  13974. _ACEOF
  13975. if ac_fn_c_try_link "$LINENO"; then :
  13976. ac_cv_lib_audit_audit_log_acct_message=yes
  13977. else
  13978. ac_cv_lib_audit_audit_log_acct_message=no
  13979. fi
  13980. rm -f core conftest.err conftest.$ac_objext \
  13981. conftest$ac_exeext conftest.$ac_ext
  13982. LIBS=$ac_check_lib_save_LIBS
  13983. fi
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
  13985. $as_echo "$ac_cv_lib_audit_audit_log_acct_message" >&6; }
  13986. if test "x$ac_cv_lib_audit_audit_log_acct_message" = xyes; then :
  13987. LIBAUDIT=-laudit
  13988. else
  13989. LIBAUDIT=""
  13990. fi
  13991. ac_fn_c_check_type "$LINENO" "struct audit_tty_status" "ac_cv_type_struct_audit_tty_status" "#include <libaudit.h>
  13992. "
  13993. if test "x$ac_cv_type_struct_audit_tty_status" = xyes; then :
  13994. HAVE_AUDIT_TTY_STATUS=yes
  13995. else
  13996. HAVE_AUDIT_TTY_STATUS=""
  13997. fi
  13998. fi
  13999. if test -n "$LIBAUDIT" && test "$ac_cv_header_libaudit_h" != "no" ; then
  14000. $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
  14001. fi
  14002. if test -n "$HAVE_AUDIT_TTY_STATUS" ; then
  14003. ac_fn_c_check_member "$LINENO" "struct audit_tty_status" "log_passwd" "ac_cv_member_struct_audit_tty_status_log_passwd" "#include <libaudit.h>
  14004. "
  14005. if test "x$ac_cv_member_struct_audit_tty_status_log_passwd" = xyes; then :
  14006. cat >>confdefs.h <<_ACEOF
  14007. #define HAVE_STRUCT_AUDIT_TTY_STATUS_LOG_PASSWD 1
  14008. _ACEOF
  14009. else
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: audit_tty_status.log_passwd is not available. The log_passwd option is disabled." >&5
  14011. $as_echo "$as_me: WARNING: audit_tty_status.log_passwd is not available. The log_passwd option is disabled." >&2;}
  14012. fi
  14013. fi
  14014. else
  14015. LIBAUDIT=""
  14016. fi
  14017. for ac_header in crypt.h
  14018. do :
  14019. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  14020. if test "x$ac_cv_header_crypt_h" = xyes; then :
  14021. cat >>confdefs.h <<_ACEOF
  14022. #define HAVE_CRYPT_H 1
  14023. _ACEOF
  14024. fi
  14025. done
  14026. BACKUP_LIBS=$LIBS
  14027. LIBCRYPT=""
  14028. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14029. if test -n "$ac_tool_prefix"; then
  14030. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14031. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14033. $as_echo_n "checking for $ac_word... " >&6; }
  14034. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  14035. $as_echo_n "(cached) " >&6
  14036. else
  14037. case $PKG_CONFIG in
  14038. [\\/]* | ?:[\\/]*)
  14039. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14040. ;;
  14041. *)
  14042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14043. for as_dir in $PATH
  14044. do
  14045. IFS=$as_save_IFS
  14046. test -z "$as_dir" && as_dir=.
  14047. for ac_exec_ext in '' $ac_executable_extensions; do
  14048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14049. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14051. break 2
  14052. fi
  14053. done
  14054. done
  14055. IFS=$as_save_IFS
  14056. ;;
  14057. esac
  14058. fi
  14059. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14060. if test -n "$PKG_CONFIG"; then
  14061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14062. $as_echo "$PKG_CONFIG" >&6; }
  14063. else
  14064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14065. $as_echo "no" >&6; }
  14066. fi
  14067. fi
  14068. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14069. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14070. # Extract the first word of "pkg-config", so it can be a program name with args.
  14071. set dummy pkg-config; ac_word=$2
  14072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14073. $as_echo_n "checking for $ac_word... " >&6; }
  14074. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  14075. $as_echo_n "(cached) " >&6
  14076. else
  14077. case $ac_pt_PKG_CONFIG in
  14078. [\\/]* | ?:[\\/]*)
  14079. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14080. ;;
  14081. *)
  14082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14083. for as_dir in $PATH
  14084. do
  14085. IFS=$as_save_IFS
  14086. test -z "$as_dir" && as_dir=.
  14087. for ac_exec_ext in '' $ac_executable_extensions; do
  14088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14089. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14091. break 2
  14092. fi
  14093. done
  14094. done
  14095. IFS=$as_save_IFS
  14096. ;;
  14097. esac
  14098. fi
  14099. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14100. if test -n "$ac_pt_PKG_CONFIG"; then
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14102. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  14103. else
  14104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14105. $as_echo "no" >&6; }
  14106. fi
  14107. if test "x$ac_pt_PKG_CONFIG" = x; then
  14108. PKG_CONFIG=""
  14109. else
  14110. case $cross_compiling:$ac_tool_warned in
  14111. yes:)
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14113. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14114. ac_tool_warned=yes ;;
  14115. esac
  14116. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14117. fi
  14118. else
  14119. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14120. fi
  14121. fi
  14122. if test -n "$PKG_CONFIG"; then
  14123. _pkg_min_version=0.9.0
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14125. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14126. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14128. $as_echo "yes" >&6; }
  14129. else
  14130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14131. $as_echo "no" >&6; }
  14132. PKG_CONFIG=""
  14133. fi
  14134. fi
  14135. pkg_failed=no
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcrypt" >&5
  14137. $as_echo_n "checking for libcrypt... " >&6; }
  14138. if test -n "$CRYPT_CFLAGS"; then
  14139. pkg_cv_CRYPT_CFLAGS="$CRYPT_CFLAGS"
  14140. elif test -n "$PKG_CONFIG"; then
  14141. if test -n "$PKG_CONFIG" && \
  14142. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypt\""; } >&5
  14143. ($PKG_CONFIG --exists --print-errors "libcrypt") 2>&5
  14144. ac_status=$?
  14145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14146. test $ac_status = 0; }; then
  14147. pkg_cv_CRYPT_CFLAGS=`$PKG_CONFIG --cflags "libcrypt" 2>/dev/null`
  14148. test "x$?" != "x0" && pkg_failed=yes
  14149. else
  14150. pkg_failed=yes
  14151. fi
  14152. else
  14153. pkg_failed=untried
  14154. fi
  14155. if test -n "$CRYPT_LIBS"; then
  14156. pkg_cv_CRYPT_LIBS="$CRYPT_LIBS"
  14157. elif test -n "$PKG_CONFIG"; then
  14158. if test -n "$PKG_CONFIG" && \
  14159. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypt\""; } >&5
  14160. ($PKG_CONFIG --exists --print-errors "libcrypt") 2>&5
  14161. ac_status=$?
  14162. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14163. test $ac_status = 0; }; then
  14164. pkg_cv_CRYPT_LIBS=`$PKG_CONFIG --libs "libcrypt" 2>/dev/null`
  14165. test "x$?" != "x0" && pkg_failed=yes
  14166. else
  14167. pkg_failed=yes
  14168. fi
  14169. else
  14170. pkg_failed=untried
  14171. fi
  14172. if test $pkg_failed = yes; then
  14173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14174. $as_echo "no" >&6; }
  14175. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14176. _pkg_short_errors_supported=yes
  14177. else
  14178. _pkg_short_errors_supported=no
  14179. fi
  14180. if test $_pkg_short_errors_supported = yes; then
  14181. CRYPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypt" 2>&1`
  14182. else
  14183. CRYPT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypt" 2>&1`
  14184. fi
  14185. # Put the nasty error message in config.log where it belongs
  14186. echo "$CRYPT_PKG_ERRORS" >&5
  14187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_gensalt_rn" >&5
  14188. $as_echo_n "checking for library containing crypt_gensalt_rn... " >&6; }
  14189. if ${ac_cv_search_crypt_gensalt_rn+:} false; then :
  14190. $as_echo_n "(cached) " >&6
  14191. else
  14192. ac_func_search_save_LIBS=$LIBS
  14193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14194. /* end confdefs.h. */
  14195. /* Override any GCC internal prototype to avoid an error.
  14196. Use char because int might match the return type of a GCC
  14197. builtin and then its argument prototype would still apply. */
  14198. #ifdef __cplusplus
  14199. extern "C"
  14200. #endif
  14201. char crypt_gensalt_rn ();
  14202. int
  14203. main ()
  14204. {
  14205. return crypt_gensalt_rn ();
  14206. ;
  14207. return 0;
  14208. }
  14209. _ACEOF
  14210. for ac_lib in '' crypt; do
  14211. if test -z "$ac_lib"; then
  14212. ac_res="none required"
  14213. else
  14214. ac_res=-l$ac_lib
  14215. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14216. fi
  14217. if ac_fn_c_try_link "$LINENO"; then :
  14218. ac_cv_search_crypt_gensalt_rn=$ac_res
  14219. fi
  14220. rm -f core conftest.err conftest.$ac_objext \
  14221. conftest$ac_exeext
  14222. if ${ac_cv_search_crypt_gensalt_rn+:} false; then :
  14223. break
  14224. fi
  14225. done
  14226. if ${ac_cv_search_crypt_gensalt_rn+:} false; then :
  14227. else
  14228. ac_cv_search_crypt_gensalt_rn=no
  14229. fi
  14230. rm conftest.$ac_ext
  14231. LIBS=$ac_func_search_save_LIBS
  14232. fi
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_gensalt_rn" >&5
  14234. $as_echo "$ac_cv_search_crypt_gensalt_rn" >&6; }
  14235. ac_res=$ac_cv_search_crypt_gensalt_rn
  14236. if test "$ac_res" != no; then :
  14237. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14238. fi
  14239. case "$ac_cv_search_crypt_gensalt_rn" in
  14240. -l*) LIBCRYPT="$ac_cv_search_crypt_gensalt_rn" ;;
  14241. no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
  14242. $as_echo_n "checking for library containing crypt_r... " >&6; }
  14243. if ${ac_cv_search_crypt_r+:} false; then :
  14244. $as_echo_n "(cached) " >&6
  14245. else
  14246. ac_func_search_save_LIBS=$LIBS
  14247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14248. /* end confdefs.h. */
  14249. /* Override any GCC internal prototype to avoid an error.
  14250. Use char because int might match the return type of a GCC
  14251. builtin and then its argument prototype would still apply. */
  14252. #ifdef __cplusplus
  14253. extern "C"
  14254. #endif
  14255. char crypt_r ();
  14256. int
  14257. main ()
  14258. {
  14259. return crypt_r ();
  14260. ;
  14261. return 0;
  14262. }
  14263. _ACEOF
  14264. for ac_lib in '' crypt; do
  14265. if test -z "$ac_lib"; then
  14266. ac_res="none required"
  14267. else
  14268. ac_res=-l$ac_lib
  14269. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14270. fi
  14271. if ac_fn_c_try_link "$LINENO"; then :
  14272. ac_cv_search_crypt_r=$ac_res
  14273. fi
  14274. rm -f core conftest.err conftest.$ac_objext \
  14275. conftest$ac_exeext
  14276. if ${ac_cv_search_crypt_r+:} false; then :
  14277. break
  14278. fi
  14279. done
  14280. if ${ac_cv_search_crypt_r+:} false; then :
  14281. else
  14282. ac_cv_search_crypt_r=no
  14283. fi
  14284. rm conftest.$ac_ext
  14285. LIBS=$ac_func_search_save_LIBS
  14286. fi
  14287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
  14288. $as_echo "$ac_cv_search_crypt_r" >&6; }
  14289. ac_res=$ac_cv_search_crypt_r
  14290. if test "$ac_res" != no; then :
  14291. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14292. fi
  14293. case "$ac_cv_search_crypt_r" in
  14294. -l*) LIBCRYPT="$ac_cv_search_crypt_r" ;;
  14295. no ) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  14296. $as_echo_n "checking for library containing crypt... " >&6; }
  14297. if ${ac_cv_search_crypt+:} false; then :
  14298. $as_echo_n "(cached) " >&6
  14299. else
  14300. ac_func_search_save_LIBS=$LIBS
  14301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14302. /* end confdefs.h. */
  14303. /* Override any GCC internal prototype to avoid an error.
  14304. Use char because int might match the return type of a GCC
  14305. builtin and then its argument prototype would still apply. */
  14306. #ifdef __cplusplus
  14307. extern "C"
  14308. #endif
  14309. char crypt ();
  14310. int
  14311. main ()
  14312. {
  14313. return crypt ();
  14314. ;
  14315. return 0;
  14316. }
  14317. _ACEOF
  14318. for ac_lib in '' crypt; do
  14319. if test -z "$ac_lib"; then
  14320. ac_res="none required"
  14321. else
  14322. ac_res=-l$ac_lib
  14323. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14324. fi
  14325. if ac_fn_c_try_link "$LINENO"; then :
  14326. ac_cv_search_crypt=$ac_res
  14327. fi
  14328. rm -f core conftest.err conftest.$ac_objext \
  14329. conftest$ac_exeext
  14330. if ${ac_cv_search_crypt+:} false; then :
  14331. break
  14332. fi
  14333. done
  14334. if ${ac_cv_search_crypt+:} false; then :
  14335. else
  14336. ac_cv_search_crypt=no
  14337. fi
  14338. rm conftest.$ac_ext
  14339. LIBS=$ac_func_search_save_LIBS
  14340. fi
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  14342. $as_echo "$ac_cv_search_crypt" >&6; }
  14343. ac_res=$ac_cv_search_crypt
  14344. if test "$ac_res" != no; then :
  14345. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14346. fi
  14347. case "$ac_cv_search_crypt" in
  14348. -l*) LIBCRYPT="$ac_cv_search_crypt" ;;
  14349. esac ;;
  14350. esac ;;
  14351. esac
  14352. elif test $pkg_failed = untried; then
  14353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14354. $as_echo "no" >&6; }
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_gensalt_rn" >&5
  14356. $as_echo_n "checking for library containing crypt_gensalt_rn... " >&6; }
  14357. if ${ac_cv_search_crypt_gensalt_rn+:} false; then :
  14358. $as_echo_n "(cached) " >&6
  14359. else
  14360. ac_func_search_save_LIBS=$LIBS
  14361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14362. /* end confdefs.h. */
  14363. /* Override any GCC internal prototype to avoid an error.
  14364. Use char because int might match the return type of a GCC
  14365. builtin and then its argument prototype would still apply. */
  14366. #ifdef __cplusplus
  14367. extern "C"
  14368. #endif
  14369. char crypt_gensalt_rn ();
  14370. int
  14371. main ()
  14372. {
  14373. return crypt_gensalt_rn ();
  14374. ;
  14375. return 0;
  14376. }
  14377. _ACEOF
  14378. for ac_lib in '' crypt; do
  14379. if test -z "$ac_lib"; then
  14380. ac_res="none required"
  14381. else
  14382. ac_res=-l$ac_lib
  14383. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14384. fi
  14385. if ac_fn_c_try_link "$LINENO"; then :
  14386. ac_cv_search_crypt_gensalt_rn=$ac_res
  14387. fi
  14388. rm -f core conftest.err conftest.$ac_objext \
  14389. conftest$ac_exeext
  14390. if ${ac_cv_search_crypt_gensalt_rn+:} false; then :
  14391. break
  14392. fi
  14393. done
  14394. if ${ac_cv_search_crypt_gensalt_rn+:} false; then :
  14395. else
  14396. ac_cv_search_crypt_gensalt_rn=no
  14397. fi
  14398. rm conftest.$ac_ext
  14399. LIBS=$ac_func_search_save_LIBS
  14400. fi
  14401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_gensalt_rn" >&5
  14402. $as_echo "$ac_cv_search_crypt_gensalt_rn" >&6; }
  14403. ac_res=$ac_cv_search_crypt_gensalt_rn
  14404. if test "$ac_res" != no; then :
  14405. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14406. fi
  14407. case "$ac_cv_search_crypt_gensalt_rn" in
  14408. -l*) LIBCRYPT="$ac_cv_search_crypt_gensalt_rn" ;;
  14409. no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5
  14410. $as_echo_n "checking for library containing crypt_r... " >&6; }
  14411. if ${ac_cv_search_crypt_r+:} false; then :
  14412. $as_echo_n "(cached) " >&6
  14413. else
  14414. ac_func_search_save_LIBS=$LIBS
  14415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14416. /* end confdefs.h. */
  14417. /* Override any GCC internal prototype to avoid an error.
  14418. Use char because int might match the return type of a GCC
  14419. builtin and then its argument prototype would still apply. */
  14420. #ifdef __cplusplus
  14421. extern "C"
  14422. #endif
  14423. char crypt_r ();
  14424. int
  14425. main ()
  14426. {
  14427. return crypt_r ();
  14428. ;
  14429. return 0;
  14430. }
  14431. _ACEOF
  14432. for ac_lib in '' crypt; do
  14433. if test -z "$ac_lib"; then
  14434. ac_res="none required"
  14435. else
  14436. ac_res=-l$ac_lib
  14437. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14438. fi
  14439. if ac_fn_c_try_link "$LINENO"; then :
  14440. ac_cv_search_crypt_r=$ac_res
  14441. fi
  14442. rm -f core conftest.err conftest.$ac_objext \
  14443. conftest$ac_exeext
  14444. if ${ac_cv_search_crypt_r+:} false; then :
  14445. break
  14446. fi
  14447. done
  14448. if ${ac_cv_search_crypt_r+:} false; then :
  14449. else
  14450. ac_cv_search_crypt_r=no
  14451. fi
  14452. rm conftest.$ac_ext
  14453. LIBS=$ac_func_search_save_LIBS
  14454. fi
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5
  14456. $as_echo "$ac_cv_search_crypt_r" >&6; }
  14457. ac_res=$ac_cv_search_crypt_r
  14458. if test "$ac_res" != no; then :
  14459. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14460. fi
  14461. case "$ac_cv_search_crypt_r" in
  14462. -l*) LIBCRYPT="$ac_cv_search_crypt_r" ;;
  14463. no ) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
  14464. $as_echo_n "checking for library containing crypt... " >&6; }
  14465. if ${ac_cv_search_crypt+:} false; then :
  14466. $as_echo_n "(cached) " >&6
  14467. else
  14468. ac_func_search_save_LIBS=$LIBS
  14469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14470. /* end confdefs.h. */
  14471. /* Override any GCC internal prototype to avoid an error.
  14472. Use char because int might match the return type of a GCC
  14473. builtin and then its argument prototype would still apply. */
  14474. #ifdef __cplusplus
  14475. extern "C"
  14476. #endif
  14477. char crypt ();
  14478. int
  14479. main ()
  14480. {
  14481. return crypt ();
  14482. ;
  14483. return 0;
  14484. }
  14485. _ACEOF
  14486. for ac_lib in '' crypt; do
  14487. if test -z "$ac_lib"; then
  14488. ac_res="none required"
  14489. else
  14490. ac_res=-l$ac_lib
  14491. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14492. fi
  14493. if ac_fn_c_try_link "$LINENO"; then :
  14494. ac_cv_search_crypt=$ac_res
  14495. fi
  14496. rm -f core conftest.err conftest.$ac_objext \
  14497. conftest$ac_exeext
  14498. if ${ac_cv_search_crypt+:} false; then :
  14499. break
  14500. fi
  14501. done
  14502. if ${ac_cv_search_crypt+:} false; then :
  14503. else
  14504. ac_cv_search_crypt=no
  14505. fi
  14506. rm conftest.$ac_ext
  14507. LIBS=$ac_func_search_save_LIBS
  14508. fi
  14509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
  14510. $as_echo "$ac_cv_search_crypt" >&6; }
  14511. ac_res=$ac_cv_search_crypt
  14512. if test "$ac_res" != no; then :
  14513. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14514. fi
  14515. case "$ac_cv_search_crypt" in
  14516. -l*) LIBCRYPT="$ac_cv_search_crypt" ;;
  14517. esac ;;
  14518. esac ;;
  14519. esac
  14520. else
  14521. CRYPT_CFLAGS=$pkg_cv_CRYPT_CFLAGS
  14522. CRYPT_LIBS=$pkg_cv_CRYPT_LIBS
  14523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14524. $as_echo "yes" >&6; }
  14525. CFLAGS="$CFLAGS $CRYPT_CFLAGS"
  14526. CPPFLAGS="$CPPFLAGS $CRYPT_CFLAGS"
  14527. LIBS="$LIBS $CRYPT_LIBS"
  14528. LIBCRYPT="$CRYPT_LIBS"
  14529. fi
  14530. for ac_func in crypt_r
  14531. do :
  14532. ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
  14533. if test "x$ac_cv_func_crypt_r" = xyes; then :
  14534. cat >>confdefs.h <<_ACEOF
  14535. #define HAVE_CRYPT_R 1
  14536. _ACEOF
  14537. fi
  14538. done
  14539. LIBS=$BACKUP_LIBS
  14540. # Check whether --with-randomdev was given.
  14541. if test "${with_randomdev+set}" = set; then :
  14542. withval=$with_randomdev; opt_randomdev=$withval
  14543. fi
  14544. if test "$opt_randomdev" = yes || test -z "$opt_randomdev"; then
  14545. opt_randomdev="/dev/urandom"
  14546. elif test "$opt_randomdev" = no; then
  14547. opt_randomdev=
  14548. fi
  14549. if test -n "$opt_randomdev"; then
  14550. cat >>confdefs.h <<_ACEOF
  14551. #define PAM_PATH_RANDOMDEV "$opt_randomdev"
  14552. _ACEOF
  14553. fi
  14554. # Check whether --enable-db was given.
  14555. if test "${enable_db+set}" = set; then :
  14556. enableval=$enable_db; WITH_DB=$enableval
  14557. else
  14558. WITH_DB=yes
  14559. fi
  14560. # Check whether --with-db-uniquename was given.
  14561. if test "${with_db_uniquename+set}" = set; then :
  14562. withval=$with_db_uniquename;
  14563. fi
  14564. if test x"$WITH_DB" != xno ; then
  14565. if test x"$WITH_DB" = xyes || test x"$WITH_DB" = xdb ; then
  14566. old_libs=$LIBS
  14567. LIBS="$LIBS -ldb$with_db_uniquename"
  14568. for ac_func in db_create$with_db_uniquename db_create dbm_store$with_db_uniquename dbm_store
  14569. do :
  14570. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14571. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14572. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14573. cat >>confdefs.h <<_ACEOF
  14574. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14575. _ACEOF
  14576. LIBDB="-ldb$with_db_uniquename"; break
  14577. fi
  14578. done
  14579. LIBS=$old_libs
  14580. fi
  14581. if test -z "$LIBDB" ; then
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_store in -lndbm" >&5
  14583. $as_echo_n "checking for dbm_store in -lndbm... " >&6; }
  14584. if ${ac_cv_lib_ndbm_dbm_store+:} false; then :
  14585. $as_echo_n "(cached) " >&6
  14586. else
  14587. ac_check_lib_save_LIBS=$LIBS
  14588. LIBS="-lndbm $LIBS"
  14589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14590. /* end confdefs.h. */
  14591. /* Override any GCC internal prototype to avoid an error.
  14592. Use char because int might match the return type of a GCC
  14593. builtin and then its argument prototype would still apply. */
  14594. #ifdef __cplusplus
  14595. extern "C"
  14596. #endif
  14597. char dbm_store ();
  14598. int
  14599. main ()
  14600. {
  14601. return dbm_store ();
  14602. ;
  14603. return 0;
  14604. }
  14605. _ACEOF
  14606. if ac_fn_c_try_link "$LINENO"; then :
  14607. ac_cv_lib_ndbm_dbm_store=yes
  14608. else
  14609. ac_cv_lib_ndbm_dbm_store=no
  14610. fi
  14611. rm -f core conftest.err conftest.$ac_objext \
  14612. conftest$ac_exeext conftest.$ac_ext
  14613. LIBS=$ac_check_lib_save_LIBS
  14614. fi
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_store" >&5
  14616. $as_echo "$ac_cv_lib_ndbm_dbm_store" >&6; }
  14617. if test "x$ac_cv_lib_ndbm_dbm_store" = xyes; then :
  14618. LIBDB="-lndbm"
  14619. else
  14620. LIBDB=""
  14621. fi
  14622. if test -n "$LIBDB" ; then
  14623. for ac_header in ndbm.h
  14624. do :
  14625. ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
  14626. if test "x$ac_cv_header_ndbm_h" = xyes; then :
  14627. cat >>confdefs.h <<_ACEOF
  14628. #define HAVE_NDBM_H 1
  14629. _ACEOF
  14630. fi
  14631. done
  14632. fi
  14633. else
  14634. for ac_header in db.h
  14635. do :
  14636. ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
  14637. if test "x$ac_cv_header_db_h" = xyes; then :
  14638. cat >>confdefs.h <<_ACEOF
  14639. #define HAVE_DB_H 1
  14640. _ACEOF
  14641. fi
  14642. done
  14643. fi
  14644. fi
  14645. # Check whether --enable-nis was given.
  14646. if test "${enable_nis+set}" = set; then :
  14647. enableval=$enable_nis;
  14648. fi
  14649. if test "x$enable_nis" != "xno"; then :
  14650. old_CFLAGS=$CFLAGS
  14651. old_CPPFLAGS=$CPPFLAGS
  14652. old_LIBS=$LIBS
  14653. pkg_failed=no
  14654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtirpc" >&5
  14655. $as_echo_n "checking for libtirpc... " >&6; }
  14656. if test -n "$TIRPC_CFLAGS"; then
  14657. pkg_cv_TIRPC_CFLAGS="$TIRPC_CFLAGS"
  14658. elif test -n "$PKG_CONFIG"; then
  14659. if test -n "$PKG_CONFIG" && \
  14660. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
  14661. ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
  14662. ac_status=$?
  14663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14664. test $ac_status = 0; }; then
  14665. pkg_cv_TIRPC_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
  14666. test "x$?" != "x0" && pkg_failed=yes
  14667. else
  14668. pkg_failed=yes
  14669. fi
  14670. else
  14671. pkg_failed=untried
  14672. fi
  14673. if test -n "$TIRPC_LIBS"; then
  14674. pkg_cv_TIRPC_LIBS="$TIRPC_LIBS"
  14675. elif test -n "$PKG_CONFIG"; then
  14676. if test -n "$PKG_CONFIG" && \
  14677. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
  14678. ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
  14679. ac_status=$?
  14680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14681. test $ac_status = 0; }; then
  14682. pkg_cv_TIRPC_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
  14683. test "x$?" != "x0" && pkg_failed=yes
  14684. else
  14685. pkg_failed=yes
  14686. fi
  14687. else
  14688. pkg_failed=untried
  14689. fi
  14690. if test $pkg_failed = yes; then
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14692. $as_echo "no" >&6; }
  14693. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14694. _pkg_short_errors_supported=yes
  14695. else
  14696. _pkg_short_errors_supported=no
  14697. fi
  14698. if test $_pkg_short_errors_supported = yes; then
  14699. TIRPC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtirpc" 2>&1`
  14700. else
  14701. TIRPC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtirpc" 2>&1`
  14702. fi
  14703. # Put the nasty error message in config.log where it belongs
  14704. echo "$TIRPC_PKG_ERRORS" >&5
  14705. :;
  14706. elif test $pkg_failed = untried; then
  14707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14708. $as_echo "no" >&6; }
  14709. :;
  14710. else
  14711. TIRPC_CFLAGS=$pkg_cv_TIRPC_CFLAGS
  14712. TIRPC_LIBS=$pkg_cv_TIRPC_LIBS
  14713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14714. $as_echo "yes" >&6; }
  14715. CFLAGS="$CFLAGS $TIRPC_CFLAGS"
  14716. CPPFLAGS="$CPPFLAGS $TIRPC_CFLAGS"
  14717. LIBS="$LIBS $TIRPC_LIBS"
  14718. fi
  14719. pkg_failed=no
  14720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
  14721. $as_echo_n "checking for libnsl... " >&6; }
  14722. if test -n "$NSL_CFLAGS"; then
  14723. pkg_cv_NSL_CFLAGS="$NSL_CFLAGS"
  14724. elif test -n "$PKG_CONFIG"; then
  14725. if test -n "$PKG_CONFIG" && \
  14726. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnsl\""; } >&5
  14727. ($PKG_CONFIG --exists --print-errors "libnsl") 2>&5
  14728. ac_status=$?
  14729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14730. test $ac_status = 0; }; then
  14731. pkg_cv_NSL_CFLAGS=`$PKG_CONFIG --cflags "libnsl" 2>/dev/null`
  14732. test "x$?" != "x0" && pkg_failed=yes
  14733. else
  14734. pkg_failed=yes
  14735. fi
  14736. else
  14737. pkg_failed=untried
  14738. fi
  14739. if test -n "$NSL_LIBS"; then
  14740. pkg_cv_NSL_LIBS="$NSL_LIBS"
  14741. elif test -n "$PKG_CONFIG"; then
  14742. if test -n "$PKG_CONFIG" && \
  14743. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnsl\""; } >&5
  14744. ($PKG_CONFIG --exists --print-errors "libnsl") 2>&5
  14745. ac_status=$?
  14746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14747. test $ac_status = 0; }; then
  14748. pkg_cv_NSL_LIBS=`$PKG_CONFIG --libs "libnsl" 2>/dev/null`
  14749. test "x$?" != "x0" && pkg_failed=yes
  14750. else
  14751. pkg_failed=yes
  14752. fi
  14753. else
  14754. pkg_failed=untried
  14755. fi
  14756. if test $pkg_failed = yes; then
  14757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14758. $as_echo "no" >&6; }
  14759. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14760. _pkg_short_errors_supported=yes
  14761. else
  14762. _pkg_short_errors_supported=no
  14763. fi
  14764. if test $_pkg_short_errors_supported = yes; then
  14765. NSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnsl" 2>&1`
  14766. else
  14767. NSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnsl" 2>&1`
  14768. fi
  14769. # Put the nasty error message in config.log where it belongs
  14770. echo "$NSL_PKG_ERRORS" >&5
  14771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
  14772. $as_echo_n "checking for yp_match in -lnsl... " >&6; }
  14773. if ${ac_cv_lib_nsl_yp_match+:} false; then :
  14774. $as_echo_n "(cached) " >&6
  14775. else
  14776. ac_check_lib_save_LIBS=$LIBS
  14777. LIBS="-lnsl $LIBS"
  14778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14779. /* end confdefs.h. */
  14780. /* Override any GCC internal prototype to avoid an error.
  14781. Use char because int might match the return type of a GCC
  14782. builtin and then its argument prototype would still apply. */
  14783. #ifdef __cplusplus
  14784. extern "C"
  14785. #endif
  14786. char yp_match ();
  14787. int
  14788. main ()
  14789. {
  14790. return yp_match ();
  14791. ;
  14792. return 0;
  14793. }
  14794. _ACEOF
  14795. if ac_fn_c_try_link "$LINENO"; then :
  14796. ac_cv_lib_nsl_yp_match=yes
  14797. else
  14798. ac_cv_lib_nsl_yp_match=no
  14799. fi
  14800. rm -f core conftest.err conftest.$ac_objext \
  14801. conftest$ac_exeext conftest.$ac_ext
  14802. LIBS=$ac_check_lib_save_LIBS
  14803. fi
  14804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
  14805. $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
  14806. if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
  14807. NSL_LIBS="-lnsl"
  14808. else
  14809. NSL_LIBS=""
  14810. fi
  14811. elif test $pkg_failed = untried; then
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14813. $as_echo "no" >&6; }
  14814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_match in -lnsl" >&5
  14815. $as_echo_n "checking for yp_match in -lnsl... " >&6; }
  14816. if ${ac_cv_lib_nsl_yp_match+:} false; then :
  14817. $as_echo_n "(cached) " >&6
  14818. else
  14819. ac_check_lib_save_LIBS=$LIBS
  14820. LIBS="-lnsl $LIBS"
  14821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14822. /* end confdefs.h. */
  14823. /* Override any GCC internal prototype to avoid an error.
  14824. Use char because int might match the return type of a GCC
  14825. builtin and then its argument prototype would still apply. */
  14826. #ifdef __cplusplus
  14827. extern "C"
  14828. #endif
  14829. char yp_match ();
  14830. int
  14831. main ()
  14832. {
  14833. return yp_match ();
  14834. ;
  14835. return 0;
  14836. }
  14837. _ACEOF
  14838. if ac_fn_c_try_link "$LINENO"; then :
  14839. ac_cv_lib_nsl_yp_match=yes
  14840. else
  14841. ac_cv_lib_nsl_yp_match=no
  14842. fi
  14843. rm -f core conftest.err conftest.$ac_objext \
  14844. conftest$ac_exeext conftest.$ac_ext
  14845. LIBS=$ac_check_lib_save_LIBS
  14846. fi
  14847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_match" >&5
  14848. $as_echo "$ac_cv_lib_nsl_yp_match" >&6; }
  14849. if test "x$ac_cv_lib_nsl_yp_match" = xyes; then :
  14850. NSL_LIBS="-lnsl"
  14851. else
  14852. NSL_LIBS=""
  14853. fi
  14854. else
  14855. NSL_CFLAGS=$pkg_cv_NSL_CFLAGS
  14856. NSL_LIBS=$pkg_cv_NSL_LIBS
  14857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14858. $as_echo "yes" >&6; }
  14859. fi
  14860. CFLAGS="$CFLAGS $NSL_CFLAGS"
  14861. CPPFLAGS="$CPPFLAGS $NSL_CFLAGS"
  14862. LIBS="$LIBS $NSL_LIBS"
  14863. for ac_func in yp_get_default_domain yperr_string yp_master yp_bind yp_match yp_unbind
  14864. do :
  14865. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14866. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14867. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14868. cat >>confdefs.h <<_ACEOF
  14869. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14870. _ACEOF
  14871. fi
  14872. done
  14873. for ac_func in getrpcport rpcb_getaddr
  14874. do :
  14875. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14876. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14877. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14878. cat >>confdefs.h <<_ACEOF
  14879. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14880. _ACEOF
  14881. fi
  14882. done
  14883. for ac_header in rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h
  14884. do :
  14885. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14886. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14887. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14888. cat >>confdefs.h <<_ACEOF
  14889. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14890. _ACEOF
  14891. fi
  14892. done
  14893. ac_fn_c_check_decl "$LINENO" "getrpcport" "ac_cv_have_decl_getrpcport" "
  14894. #if HAVE_RPC_RPC_H
  14895. # include <rpc/rpc.h>
  14896. #endif
  14897. "
  14898. if test "x$ac_cv_have_decl_getrpcport" = xyes; then :
  14899. ac_have_decl=1
  14900. else
  14901. ac_have_decl=0
  14902. fi
  14903. cat >>confdefs.h <<_ACEOF
  14904. #define HAVE_DECL_GETRPCPORT $ac_have_decl
  14905. _ACEOF
  14906. CFLAGS="$old_CFLAGS"
  14907. CPPFLAGS="$old_CPPFLAGS"
  14908. LIBS="$old_LIBS"
  14909. fi
  14910. # Check whether --enable-usergroups was given.
  14911. if test "${enable_usergroups+set}" = set; then :
  14912. enableval=$enable_usergroups; WITH_USERGROUPS=$enableval
  14913. else
  14914. WITH_USERGROUPS=no
  14915. fi
  14916. if test "$WITH_USERGROUPS" = "yes" ; then
  14917. $as_echo "#define DEFAULT_USERGROUPS_SETTING 1" >>confdefs.h
  14918. else
  14919. $as_echo "#define DEFAULT_USERGROUPS_SETTING 0" >>confdefs.h
  14920. fi
  14921. # Check whether --enable-selinux was given.
  14922. if test "${enable_selinux+set}" = set; then :
  14923. enableval=$enable_selinux; WITH_SELINUX=$enableval
  14924. else
  14925. WITH_SELINUX=yes
  14926. fi
  14927. if test "$WITH_SELINUX" = "yes" ; then
  14928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfilecon in -lselinux" >&5
  14929. $as_echo_n "checking for getfilecon in -lselinux... " >&6; }
  14930. if ${ac_cv_lib_selinux_getfilecon+:} false; then :
  14931. $as_echo_n "(cached) " >&6
  14932. else
  14933. ac_check_lib_save_LIBS=$LIBS
  14934. LIBS="-lselinux $LIBS"
  14935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14936. /* end confdefs.h. */
  14937. /* Override any GCC internal prototype to avoid an error.
  14938. Use char because int might match the return type of a GCC
  14939. builtin and then its argument prototype would still apply. */
  14940. #ifdef __cplusplus
  14941. extern "C"
  14942. #endif
  14943. char getfilecon ();
  14944. int
  14945. main ()
  14946. {
  14947. return getfilecon ();
  14948. ;
  14949. return 0;
  14950. }
  14951. _ACEOF
  14952. if ac_fn_c_try_link "$LINENO"; then :
  14953. ac_cv_lib_selinux_getfilecon=yes
  14954. else
  14955. ac_cv_lib_selinux_getfilecon=no
  14956. fi
  14957. rm -f core conftest.err conftest.$ac_objext \
  14958. conftest$ac_exeext conftest.$ac_ext
  14959. LIBS=$ac_check_lib_save_LIBS
  14960. fi
  14961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getfilecon" >&5
  14962. $as_echo "$ac_cv_lib_selinux_getfilecon" >&6; }
  14963. if test "x$ac_cv_lib_selinux_getfilecon" = xyes; then :
  14964. LIBSELINUX="-lselinux"
  14965. else
  14966. LIBSELINUX=""
  14967. fi
  14968. else
  14969. LIBSELINUX=""
  14970. fi
  14971. if test -n "$LIBSELINUX" ; then
  14972. $as_echo "#define WITH_SELINUX 1" >>confdefs.h
  14973. BACKUP_LIBS=$LIBS
  14974. LIBS="$LIBS $LIBSELINUX"
  14975. for ac_func in setkeycreatecon
  14976. do :
  14977. ac_fn_c_check_func "$LINENO" "setkeycreatecon" "ac_cv_func_setkeycreatecon"
  14978. if test "x$ac_cv_func_setkeycreatecon" = xyes; then :
  14979. cat >>confdefs.h <<_ACEOF
  14980. #define HAVE_SETKEYCREATECON 1
  14981. _ACEOF
  14982. fi
  14983. done
  14984. for ac_func in getseuser
  14985. do :
  14986. ac_fn_c_check_func "$LINENO" "getseuser" "ac_cv_func_getseuser"
  14987. if test "x$ac_cv_func_getseuser" = xyes; then :
  14988. cat >>confdefs.h <<_ACEOF
  14989. #define HAVE_GETSEUSER 1
  14990. _ACEOF
  14991. fi
  14992. done
  14993. LIBS=$BACKUP_LIBS
  14994. fi
  14995. # Check whether --enable-econf was given.
  14996. if test "${enable_econf+set}" = set; then :
  14997. enableval=$enable_econf; WITH_ECONF=$enableval
  14998. else
  14999. WITH_ECONF=yes
  15000. fi
  15001. if test "$WITH_ECONF" = "yes" ; then
  15002. pkg_failed=no
  15003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libeconf" >&5
  15004. $as_echo_n "checking for libeconf... " >&6; }
  15005. if test -n "$ECONF_CFLAGS"; then
  15006. pkg_cv_ECONF_CFLAGS="$ECONF_CFLAGS"
  15007. elif test -n "$PKG_CONFIG"; then
  15008. if test -n "$PKG_CONFIG" && \
  15009. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeconf\""; } >&5
  15010. ($PKG_CONFIG --exists --print-errors "libeconf") 2>&5
  15011. ac_status=$?
  15012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15013. test $ac_status = 0; }; then
  15014. pkg_cv_ECONF_CFLAGS=`$PKG_CONFIG --cflags "libeconf" 2>/dev/null`
  15015. test "x$?" != "x0" && pkg_failed=yes
  15016. else
  15017. pkg_failed=yes
  15018. fi
  15019. else
  15020. pkg_failed=untried
  15021. fi
  15022. if test -n "$ECONF_LIBS"; then
  15023. pkg_cv_ECONF_LIBS="$ECONF_LIBS"
  15024. elif test -n "$PKG_CONFIG"; then
  15025. if test -n "$PKG_CONFIG" && \
  15026. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libeconf\""; } >&5
  15027. ($PKG_CONFIG --exists --print-errors "libeconf") 2>&5
  15028. ac_status=$?
  15029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15030. test $ac_status = 0; }; then
  15031. pkg_cv_ECONF_LIBS=`$PKG_CONFIG --libs "libeconf" 2>/dev/null`
  15032. test "x$?" != "x0" && pkg_failed=yes
  15033. else
  15034. pkg_failed=yes
  15035. fi
  15036. else
  15037. pkg_failed=untried
  15038. fi
  15039. if test $pkg_failed = yes; then
  15040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15041. $as_echo "no" >&6; }
  15042. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15043. _pkg_short_errors_supported=yes
  15044. else
  15045. _pkg_short_errors_supported=no
  15046. fi
  15047. if test $_pkg_short_errors_supported = yes; then
  15048. ECONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libeconf" 2>&1`
  15049. else
  15050. ECONF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libeconf" 2>&1`
  15051. fi
  15052. # Put the nasty error message in config.log where it belongs
  15053. echo "$ECONF_PKG_ERRORS" >&5
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for econf_readDirs in -leconf" >&5
  15055. $as_echo_n "checking for econf_readDirs in -leconf... " >&6; }
  15056. if ${ac_cv_lib_econf_econf_readDirs+:} false; then :
  15057. $as_echo_n "(cached) " >&6
  15058. else
  15059. ac_check_lib_save_LIBS=$LIBS
  15060. LIBS="-leconf $LIBS"
  15061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15062. /* end confdefs.h. */
  15063. /* Override any GCC internal prototype to avoid an error.
  15064. Use char because int might match the return type of a GCC
  15065. builtin and then its argument prototype would still apply. */
  15066. #ifdef __cplusplus
  15067. extern "C"
  15068. #endif
  15069. char econf_readDirs ();
  15070. int
  15071. main ()
  15072. {
  15073. return econf_readDirs ();
  15074. ;
  15075. return 0;
  15076. }
  15077. _ACEOF
  15078. if ac_fn_c_try_link "$LINENO"; then :
  15079. ac_cv_lib_econf_econf_readDirs=yes
  15080. else
  15081. ac_cv_lib_econf_econf_readDirs=no
  15082. fi
  15083. rm -f core conftest.err conftest.$ac_objext \
  15084. conftest$ac_exeext conftest.$ac_ext
  15085. LIBS=$ac_check_lib_save_LIBS
  15086. fi
  15087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_econf_econf_readDirs" >&5
  15088. $as_echo "$ac_cv_lib_econf_econf_readDirs" >&6; }
  15089. if test "x$ac_cv_lib_econf_econf_readDirs" = xyes; then :
  15090. ECONF_LIBS="-leconf"
  15091. else
  15092. ECONF_LIBS=""
  15093. fi
  15094. elif test $pkg_failed = untried; then
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15096. $as_echo "no" >&6; }
  15097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for econf_readDirs in -leconf" >&5
  15098. $as_echo_n "checking for econf_readDirs in -leconf... " >&6; }
  15099. if ${ac_cv_lib_econf_econf_readDirs+:} false; then :
  15100. $as_echo_n "(cached) " >&6
  15101. else
  15102. ac_check_lib_save_LIBS=$LIBS
  15103. LIBS="-leconf $LIBS"
  15104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15105. /* end confdefs.h. */
  15106. /* Override any GCC internal prototype to avoid an error.
  15107. Use char because int might match the return type of a GCC
  15108. builtin and then its argument prototype would still apply. */
  15109. #ifdef __cplusplus
  15110. extern "C"
  15111. #endif
  15112. char econf_readDirs ();
  15113. int
  15114. main ()
  15115. {
  15116. return econf_readDirs ();
  15117. ;
  15118. return 0;
  15119. }
  15120. _ACEOF
  15121. if ac_fn_c_try_link "$LINENO"; then :
  15122. ac_cv_lib_econf_econf_readDirs=yes
  15123. else
  15124. ac_cv_lib_econf_econf_readDirs=no
  15125. fi
  15126. rm -f core conftest.err conftest.$ac_objext \
  15127. conftest$ac_exeext conftest.$ac_ext
  15128. LIBS=$ac_check_lib_save_LIBS
  15129. fi
  15130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_econf_econf_readDirs" >&5
  15131. $as_echo "$ac_cv_lib_econf_econf_readDirs" >&6; }
  15132. if test "x$ac_cv_lib_econf_econf_readDirs" = xyes; then :
  15133. ECONF_LIBS="-leconf"
  15134. else
  15135. ECONF_LIBS=""
  15136. fi
  15137. else
  15138. ECONF_CFLAGS=$pkg_cv_ECONF_CFLAGS
  15139. ECONF_LIBS=$pkg_cv_ECONF_LIBS
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15141. $as_echo "yes" >&6; }
  15142. fi
  15143. if test -n "$ECONF_LIBS" ; then
  15144. ECONF_CFLAGS="-DUSE_ECONF=1 $ECONF_CFLAGS"
  15145. fi
  15146. fi
  15147. # Check whether --enable-vendordir was given.
  15148. if test "${enable_vendordir+set}" = set; then :
  15149. enableval=$enable_vendordir;
  15150. fi
  15151. if test -n "$enable_vendordir"; then
  15152. cat >>confdefs.h <<_ACEOF
  15153. #define VENDORDIR "$enable_vendordir"
  15154. _ACEOF
  15155. STRINGPARAM_VENDORDIR="--stringparam vendordir '$enable_vendordir'"
  15156. else
  15157. STRINGPARAM_VENDORDIR="--stringparam vendordir '<vendordir>'"
  15158. fi
  15159. # Check whether --enable-openssl was given.
  15160. if test "${enable_openssl+set}" = set; then :
  15161. enableval=$enable_openssl; OPENSSL_ENABLED=$enableval
  15162. else
  15163. OPENSSL_ENABLED=no
  15164. fi
  15165. if test "$OPENSSL_ENABLED" = "yes" ; then
  15166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_MAC_CTX_new in -lcrypto" >&5
  15167. $as_echo_n "checking for EVP_MAC_CTX_new in -lcrypto... " >&6; }
  15168. if ${ac_cv_lib_crypto_EVP_MAC_CTX_new+:} false; then :
  15169. $as_echo_n "(cached) " >&6
  15170. else
  15171. ac_check_lib_save_LIBS=$LIBS
  15172. LIBS="-lcrypto $LIBS"
  15173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15174. /* end confdefs.h. */
  15175. /* Override any GCC internal prototype to avoid an error.
  15176. Use char because int might match the return type of a GCC
  15177. builtin and then its argument prototype would still apply. */
  15178. #ifdef __cplusplus
  15179. extern "C"
  15180. #endif
  15181. char EVP_MAC_CTX_new ();
  15182. int
  15183. main ()
  15184. {
  15185. return EVP_MAC_CTX_new ();
  15186. ;
  15187. return 0;
  15188. }
  15189. _ACEOF
  15190. if ac_fn_c_try_link "$LINENO"; then :
  15191. ac_cv_lib_crypto_EVP_MAC_CTX_new=yes
  15192. else
  15193. ac_cv_lib_crypto_EVP_MAC_CTX_new=no
  15194. fi
  15195. rm -f core conftest.err conftest.$ac_objext \
  15196. conftest$ac_exeext conftest.$ac_ext
  15197. LIBS=$ac_check_lib_save_LIBS
  15198. fi
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_MAC_CTX_new" >&5
  15200. $as_echo "$ac_cv_lib_crypto_EVP_MAC_CTX_new" >&6; }
  15201. if test "x$ac_cv_lib_crypto_EVP_MAC_CTX_new" = xyes; then :
  15202. CRYPTO_LIBS="-lcrypto"
  15203. use_openssl=yes
  15204. $as_echo "#define WITH_OPENSSL 1" >>confdefs.h
  15205. STRINGPARAM_HMAC="--stringparam profile.condition 'openssl_hmac'"
  15206. else
  15207. CRYPTO_LIBS=""
  15208. STRINGPARAM_HMAC="--stringparam profile.condition 'no_openssl_hmac'"
  15209. fi
  15210. fi
  15211. if test "x$use_openssl" = "xyes"; then
  15212. COND_USE_OPENSSL_TRUE=
  15213. COND_USE_OPENSSL_FALSE='#'
  15214. else
  15215. COND_USE_OPENSSL_TRUE='#'
  15216. COND_USE_OPENSSL_FALSE=
  15217. fi
  15218. ac_header_dirent=no
  15219. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  15220. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  15222. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  15223. if eval \${$as_ac_Header+:} false; then :
  15224. $as_echo_n "(cached) " >&6
  15225. else
  15226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15227. /* end confdefs.h. */
  15228. #include <sys/types.h>
  15229. #include <$ac_hdr>
  15230. int
  15231. main ()
  15232. {
  15233. if ((DIR *) 0)
  15234. return 0;
  15235. ;
  15236. return 0;
  15237. }
  15238. _ACEOF
  15239. if ac_fn_c_try_compile "$LINENO"; then :
  15240. eval "$as_ac_Header=yes"
  15241. else
  15242. eval "$as_ac_Header=no"
  15243. fi
  15244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15245. fi
  15246. eval ac_res=\$$as_ac_Header
  15247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15248. $as_echo "$ac_res" >&6; }
  15249. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15250. cat >>confdefs.h <<_ACEOF
  15251. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  15252. _ACEOF
  15253. ac_header_dirent=$ac_hdr; break
  15254. fi
  15255. done
  15256. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  15257. if test $ac_header_dirent = dirent.h; then
  15258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  15259. $as_echo_n "checking for library containing opendir... " >&6; }
  15260. if ${ac_cv_search_opendir+:} false; then :
  15261. $as_echo_n "(cached) " >&6
  15262. else
  15263. ac_func_search_save_LIBS=$LIBS
  15264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15265. /* end confdefs.h. */
  15266. /* Override any GCC internal prototype to avoid an error.
  15267. Use char because int might match the return type of a GCC
  15268. builtin and then its argument prototype would still apply. */
  15269. #ifdef __cplusplus
  15270. extern "C"
  15271. #endif
  15272. char opendir ();
  15273. int
  15274. main ()
  15275. {
  15276. return opendir ();
  15277. ;
  15278. return 0;
  15279. }
  15280. _ACEOF
  15281. for ac_lib in '' dir; do
  15282. if test -z "$ac_lib"; then
  15283. ac_res="none required"
  15284. else
  15285. ac_res=-l$ac_lib
  15286. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15287. fi
  15288. if ac_fn_c_try_link "$LINENO"; then :
  15289. ac_cv_search_opendir=$ac_res
  15290. fi
  15291. rm -f core conftest.err conftest.$ac_objext \
  15292. conftest$ac_exeext
  15293. if ${ac_cv_search_opendir+:} false; then :
  15294. break
  15295. fi
  15296. done
  15297. if ${ac_cv_search_opendir+:} false; then :
  15298. else
  15299. ac_cv_search_opendir=no
  15300. fi
  15301. rm conftest.$ac_ext
  15302. LIBS=$ac_func_search_save_LIBS
  15303. fi
  15304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  15305. $as_echo "$ac_cv_search_opendir" >&6; }
  15306. ac_res=$ac_cv_search_opendir
  15307. if test "$ac_res" != no; then :
  15308. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15309. fi
  15310. else
  15311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  15312. $as_echo_n "checking for library containing opendir... " >&6; }
  15313. if ${ac_cv_search_opendir+:} false; then :
  15314. $as_echo_n "(cached) " >&6
  15315. else
  15316. ac_func_search_save_LIBS=$LIBS
  15317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15318. /* end confdefs.h. */
  15319. /* Override any GCC internal prototype to avoid an error.
  15320. Use char because int might match the return type of a GCC
  15321. builtin and then its argument prototype would still apply. */
  15322. #ifdef __cplusplus
  15323. extern "C"
  15324. #endif
  15325. char opendir ();
  15326. int
  15327. main ()
  15328. {
  15329. return opendir ();
  15330. ;
  15331. return 0;
  15332. }
  15333. _ACEOF
  15334. for ac_lib in '' x; do
  15335. if test -z "$ac_lib"; then
  15336. ac_res="none required"
  15337. else
  15338. ac_res=-l$ac_lib
  15339. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15340. fi
  15341. if ac_fn_c_try_link "$LINENO"; then :
  15342. ac_cv_search_opendir=$ac_res
  15343. fi
  15344. rm -f core conftest.err conftest.$ac_objext \
  15345. conftest$ac_exeext
  15346. if ${ac_cv_search_opendir+:} false; then :
  15347. break
  15348. fi
  15349. done
  15350. if ${ac_cv_search_opendir+:} false; then :
  15351. else
  15352. ac_cv_search_opendir=no
  15353. fi
  15354. rm conftest.$ac_ext
  15355. LIBS=$ac_func_search_save_LIBS
  15356. fi
  15357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  15358. $as_echo "$ac_cv_search_opendir" >&6; }
  15359. ac_res=$ac_cv_search_opendir
  15360. if test "$ac_res" != no; then :
  15361. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15362. fi
  15363. fi
  15364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15365. $as_echo_n "checking for ANSI C header files... " >&6; }
  15366. if ${ac_cv_header_stdc+:} false; then :
  15367. $as_echo_n "(cached) " >&6
  15368. else
  15369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15370. /* end confdefs.h. */
  15371. #include <stdlib.h>
  15372. #include <stdarg.h>
  15373. #include <string.h>
  15374. #include <float.h>
  15375. int
  15376. main ()
  15377. {
  15378. ;
  15379. return 0;
  15380. }
  15381. _ACEOF
  15382. if ac_fn_c_try_compile "$LINENO"; then :
  15383. ac_cv_header_stdc=yes
  15384. else
  15385. ac_cv_header_stdc=no
  15386. fi
  15387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15388. if test $ac_cv_header_stdc = yes; then
  15389. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15391. /* end confdefs.h. */
  15392. #include <string.h>
  15393. _ACEOF
  15394. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15395. $EGREP "memchr" >/dev/null 2>&1; then :
  15396. else
  15397. ac_cv_header_stdc=no
  15398. fi
  15399. rm -f conftest*
  15400. fi
  15401. if test $ac_cv_header_stdc = yes; then
  15402. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15404. /* end confdefs.h. */
  15405. #include <stdlib.h>
  15406. _ACEOF
  15407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15408. $EGREP "free" >/dev/null 2>&1; then :
  15409. else
  15410. ac_cv_header_stdc=no
  15411. fi
  15412. rm -f conftest*
  15413. fi
  15414. if test $ac_cv_header_stdc = yes; then
  15415. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15416. if test "$cross_compiling" = yes; then :
  15417. :
  15418. else
  15419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15420. /* end confdefs.h. */
  15421. #include <ctype.h>
  15422. #include <stdlib.h>
  15423. #if ((' ' & 0x0FF) == 0x020)
  15424. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15425. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15426. #else
  15427. # define ISLOWER(c) \
  15428. (('a' <= (c) && (c) <= 'i') \
  15429. || ('j' <= (c) && (c) <= 'r') \
  15430. || ('s' <= (c) && (c) <= 'z'))
  15431. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15432. #endif
  15433. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15434. int
  15435. main ()
  15436. {
  15437. int i;
  15438. for (i = 0; i < 256; i++)
  15439. if (XOR (islower (i), ISLOWER (i))
  15440. || toupper (i) != TOUPPER (i))
  15441. return 2;
  15442. return 0;
  15443. }
  15444. _ACEOF
  15445. if ac_fn_c_try_run "$LINENO"; then :
  15446. else
  15447. ac_cv_header_stdc=no
  15448. fi
  15449. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15450. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15451. fi
  15452. fi
  15453. fi
  15454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15455. $as_echo "$ac_cv_header_stdc" >&6; }
  15456. if test $ac_cv_header_stdc = yes; then
  15457. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15458. fi
  15459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  15460. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  15461. if ${ac_cv_header_sys_wait_h+:} false; then :
  15462. $as_echo_n "(cached) " >&6
  15463. else
  15464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15465. /* end confdefs.h. */
  15466. #include <sys/types.h>
  15467. #include <sys/wait.h>
  15468. #ifndef WEXITSTATUS
  15469. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  15470. #endif
  15471. #ifndef WIFEXITED
  15472. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  15473. #endif
  15474. int
  15475. main ()
  15476. {
  15477. int s;
  15478. wait (&s);
  15479. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  15480. ;
  15481. return 0;
  15482. }
  15483. _ACEOF
  15484. if ac_fn_c_try_compile "$LINENO"; then :
  15485. ac_cv_header_sys_wait_h=yes
  15486. else
  15487. ac_cv_header_sys_wait_h=no
  15488. fi
  15489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15490. fi
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  15492. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  15493. if test $ac_cv_header_sys_wait_h = yes; then
  15494. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  15495. fi
  15496. for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h net/if.h termio.h unistd.h sys/fsuid.h inittypes.h
  15497. do :
  15498. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15499. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15500. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15501. cat >>confdefs.h <<_ACEOF
  15502. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15503. _ACEOF
  15504. fi
  15505. done
  15506. for ac_header in lastlog.h utmp.h utmpx.h
  15507. do :
  15508. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15509. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15510. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15511. cat >>confdefs.h <<_ACEOF
  15512. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15513. _ACEOF
  15514. fi
  15515. done
  15516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  15517. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  15518. if ${ac_cv_c_bigendian+:} false; then :
  15519. $as_echo_n "(cached) " >&6
  15520. else
  15521. ac_cv_c_bigendian=unknown
  15522. # See if we're dealing with a universal compiler.
  15523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15524. /* end confdefs.h. */
  15525. #ifndef __APPLE_CC__
  15526. not a universal capable compiler
  15527. #endif
  15528. typedef int dummy;
  15529. _ACEOF
  15530. if ac_fn_c_try_compile "$LINENO"; then :
  15531. # Check for potential -arch flags. It is not universal unless
  15532. # there are at least two -arch flags with different values.
  15533. ac_arch=
  15534. ac_prev=
  15535. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  15536. if test -n "$ac_prev"; then
  15537. case $ac_word in
  15538. i?86 | x86_64 | ppc | ppc64)
  15539. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  15540. ac_arch=$ac_word
  15541. else
  15542. ac_cv_c_bigendian=universal
  15543. break
  15544. fi
  15545. ;;
  15546. esac
  15547. ac_prev=
  15548. elif test "x$ac_word" = "x-arch"; then
  15549. ac_prev=arch
  15550. fi
  15551. done
  15552. fi
  15553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15554. if test $ac_cv_c_bigendian = unknown; then
  15555. # See if sys/param.h defines the BYTE_ORDER macro.
  15556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15557. /* end confdefs.h. */
  15558. #include <sys/types.h>
  15559. #include <sys/param.h>
  15560. int
  15561. main ()
  15562. {
  15563. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  15564. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  15565. && LITTLE_ENDIAN)
  15566. bogus endian macros
  15567. #endif
  15568. ;
  15569. return 0;
  15570. }
  15571. _ACEOF
  15572. if ac_fn_c_try_compile "$LINENO"; then :
  15573. # It does; now see whether it defined to BIG_ENDIAN or not.
  15574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15575. /* end confdefs.h. */
  15576. #include <sys/types.h>
  15577. #include <sys/param.h>
  15578. int
  15579. main ()
  15580. {
  15581. #if BYTE_ORDER != BIG_ENDIAN
  15582. not big endian
  15583. #endif
  15584. ;
  15585. return 0;
  15586. }
  15587. _ACEOF
  15588. if ac_fn_c_try_compile "$LINENO"; then :
  15589. ac_cv_c_bigendian=yes
  15590. else
  15591. ac_cv_c_bigendian=no
  15592. fi
  15593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15594. fi
  15595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15596. fi
  15597. if test $ac_cv_c_bigendian = unknown; then
  15598. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  15599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15600. /* end confdefs.h. */
  15601. #include <limits.h>
  15602. int
  15603. main ()
  15604. {
  15605. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  15606. bogus endian macros
  15607. #endif
  15608. ;
  15609. return 0;
  15610. }
  15611. _ACEOF
  15612. if ac_fn_c_try_compile "$LINENO"; then :
  15613. # It does; now see whether it defined to _BIG_ENDIAN or not.
  15614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15615. /* end confdefs.h. */
  15616. #include <limits.h>
  15617. int
  15618. main ()
  15619. {
  15620. #ifndef _BIG_ENDIAN
  15621. not big endian
  15622. #endif
  15623. ;
  15624. return 0;
  15625. }
  15626. _ACEOF
  15627. if ac_fn_c_try_compile "$LINENO"; then :
  15628. ac_cv_c_bigendian=yes
  15629. else
  15630. ac_cv_c_bigendian=no
  15631. fi
  15632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15633. fi
  15634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15635. fi
  15636. if test $ac_cv_c_bigendian = unknown; then
  15637. # Compile a test program.
  15638. if test "$cross_compiling" = yes; then :
  15639. # Try to guess by grepping values from an object file.
  15640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15641. /* end confdefs.h. */
  15642. unsigned short int ascii_mm[] =
  15643. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  15644. unsigned short int ascii_ii[] =
  15645. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  15646. int use_ascii (int i) {
  15647. return ascii_mm[i] + ascii_ii[i];
  15648. }
  15649. unsigned short int ebcdic_ii[] =
  15650. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  15651. unsigned short int ebcdic_mm[] =
  15652. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  15653. int use_ebcdic (int i) {
  15654. return ebcdic_mm[i] + ebcdic_ii[i];
  15655. }
  15656. extern int foo;
  15657. int
  15658. main ()
  15659. {
  15660. return use_ascii (foo) == use_ebcdic (foo);
  15661. ;
  15662. return 0;
  15663. }
  15664. _ACEOF
  15665. if ac_fn_c_try_compile "$LINENO"; then :
  15666. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  15667. ac_cv_c_bigendian=yes
  15668. fi
  15669. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  15670. if test "$ac_cv_c_bigendian" = unknown; then
  15671. ac_cv_c_bigendian=no
  15672. else
  15673. # finding both strings is unlikely to happen, but who knows?
  15674. ac_cv_c_bigendian=unknown
  15675. fi
  15676. fi
  15677. fi
  15678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15679. else
  15680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15681. /* end confdefs.h. */
  15682. $ac_includes_default
  15683. int
  15684. main ()
  15685. {
  15686. /* Are we little or big endian? From Harbison&Steele. */
  15687. union
  15688. {
  15689. long int l;
  15690. char c[sizeof (long int)];
  15691. } u;
  15692. u.l = 1;
  15693. return u.c[sizeof (long int) - 1] == 1;
  15694. ;
  15695. return 0;
  15696. }
  15697. _ACEOF
  15698. if ac_fn_c_try_run "$LINENO"; then :
  15699. ac_cv_c_bigendian=no
  15700. else
  15701. ac_cv_c_bigendian=yes
  15702. fi
  15703. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15704. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15705. fi
  15706. fi
  15707. fi
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  15709. $as_echo "$ac_cv_c_bigendian" >&6; }
  15710. case $ac_cv_c_bigendian in #(
  15711. yes)
  15712. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  15713. ;; #(
  15714. no)
  15715. ;; #(
  15716. universal)
  15717. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  15718. ;; #(
  15719. *)
  15720. as_fn_error $? "unknown endianness
  15721. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  15722. esac
  15723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15724. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  15725. if ${ac_cv_c_const+:} false; then :
  15726. $as_echo_n "(cached) " >&6
  15727. else
  15728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15729. /* end confdefs.h. */
  15730. int
  15731. main ()
  15732. {
  15733. #ifndef __cplusplus
  15734. /* Ultrix mips cc rejects this sort of thing. */
  15735. typedef int charset[2];
  15736. const charset cs = { 0, 0 };
  15737. /* SunOS 4.1.1 cc rejects this. */
  15738. char const *const *pcpcc;
  15739. char **ppc;
  15740. /* NEC SVR4.0.2 mips cc rejects this. */
  15741. struct point {int x, y;};
  15742. static struct point const zero = {0,0};
  15743. /* AIX XL C 1.02.0.0 rejects this.
  15744. It does not let you subtract one const X* pointer from another in
  15745. an arm of an if-expression whose if-part is not a constant
  15746. expression */
  15747. const char *g = "string";
  15748. pcpcc = &g + (g ? g-g : 0);
  15749. /* HPUX 7.0 cc rejects these. */
  15750. ++pcpcc;
  15751. ppc = (char**) pcpcc;
  15752. pcpcc = (char const *const *) ppc;
  15753. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15754. char tx;
  15755. char *t = &tx;
  15756. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15757. *t++ = 0;
  15758. if (s) return 0;
  15759. }
  15760. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15761. int x[] = {25, 17};
  15762. const int *foo = &x[0];
  15763. ++foo;
  15764. }
  15765. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15766. typedef const int *iptr;
  15767. iptr p = 0;
  15768. ++p;
  15769. }
  15770. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  15771. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15772. struct s { int j; const int *ap[3]; } bx;
  15773. struct s *b = &bx; b->j = 5;
  15774. }
  15775. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15776. const int foo = 10;
  15777. if (!foo) return 0;
  15778. }
  15779. return !cs[0] && !zero.x;
  15780. #endif
  15781. ;
  15782. return 0;
  15783. }
  15784. _ACEOF
  15785. if ac_fn_c_try_compile "$LINENO"; then :
  15786. ac_cv_c_const=yes
  15787. else
  15788. ac_cv_c_const=no
  15789. fi
  15790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15791. fi
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15793. $as_echo "$ac_cv_c_const" >&6; }
  15794. if test $ac_cv_c_const = no; then
  15795. $as_echo "#define const /**/" >>confdefs.h
  15796. fi
  15797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  15798. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  15799. if ${ac_cv_type_uid_t+:} false; then :
  15800. $as_echo_n "(cached) " >&6
  15801. else
  15802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15803. /* end confdefs.h. */
  15804. #include <sys/types.h>
  15805. _ACEOF
  15806. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15807. $EGREP "uid_t" >/dev/null 2>&1; then :
  15808. ac_cv_type_uid_t=yes
  15809. else
  15810. ac_cv_type_uid_t=no
  15811. fi
  15812. rm -f conftest*
  15813. fi
  15814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  15815. $as_echo "$ac_cv_type_uid_t" >&6; }
  15816. if test $ac_cv_type_uid_t = no; then
  15817. $as_echo "#define uid_t int" >>confdefs.h
  15818. $as_echo "#define gid_t int" >>confdefs.h
  15819. fi
  15820. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  15821. if test "x$ac_cv_type_off_t" = xyes; then :
  15822. else
  15823. cat >>confdefs.h <<_ACEOF
  15824. #define off_t long int
  15825. _ACEOF
  15826. fi
  15827. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  15828. if test "x$ac_cv_type_pid_t" = xyes; then :
  15829. else
  15830. cat >>confdefs.h <<_ACEOF
  15831. #define pid_t int
  15832. _ACEOF
  15833. fi
  15834. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15835. if test "x$ac_cv_type_size_t" = xyes; then :
  15836. else
  15837. cat >>confdefs.h <<_ACEOF
  15838. #define size_t unsigned int
  15839. _ACEOF
  15840. fi
  15841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  15842. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  15843. if ${ac_cv_header_time+:} false; then :
  15844. $as_echo_n "(cached) " >&6
  15845. else
  15846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15847. /* end confdefs.h. */
  15848. #include <sys/types.h>
  15849. #include <sys/time.h>
  15850. #include <time.h>
  15851. int
  15852. main ()
  15853. {
  15854. if ((struct tm *) 0)
  15855. return 0;
  15856. ;
  15857. return 0;
  15858. }
  15859. _ACEOF
  15860. if ac_fn_c_try_compile "$LINENO"; then :
  15861. ac_cv_header_time=yes
  15862. else
  15863. ac_cv_header_time=no
  15864. fi
  15865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15866. fi
  15867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  15868. $as_echo "$ac_cv_header_time" >&6; }
  15869. if test $ac_cv_header_time = yes; then
  15870. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  15871. fi
  15872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  15873. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  15874. if ${ac_cv_struct_tm+:} false; then :
  15875. $as_echo_n "(cached) " >&6
  15876. else
  15877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15878. /* end confdefs.h. */
  15879. #include <sys/types.h>
  15880. #include <time.h>
  15881. int
  15882. main ()
  15883. {
  15884. struct tm tm;
  15885. int *p = &tm.tm_sec;
  15886. return !p;
  15887. ;
  15888. return 0;
  15889. }
  15890. _ACEOF
  15891. if ac_fn_c_try_compile "$LINENO"; then :
  15892. ac_cv_struct_tm=time.h
  15893. else
  15894. ac_cv_struct_tm=sys/time.h
  15895. fi
  15896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15897. fi
  15898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  15899. $as_echo "$ac_cv_struct_tm" >&6; }
  15900. if test $ac_cv_struct_tm = sys/time.h; then
  15901. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  15902. fi
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
  15904. $as_echo_n "checking type of array argument to getgroups... " >&6; }
  15905. if ${ac_cv_type_getgroups+:} false; then :
  15906. $as_echo_n "(cached) " >&6
  15907. else
  15908. if test "$cross_compiling" = yes; then :
  15909. ac_cv_type_getgroups=cross
  15910. else
  15911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15912. /* end confdefs.h. */
  15913. /* Thanks to Mike Rendell for this test. */
  15914. $ac_includes_default
  15915. #define NGID 256
  15916. #undef MAX
  15917. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  15918. int
  15919. main ()
  15920. {
  15921. gid_t gidset[NGID];
  15922. int i, n;
  15923. union { gid_t gval; long int lval; } val;
  15924. val.lval = -1;
  15925. for (i = 0; i < NGID; i++)
  15926. gidset[i] = val.gval;
  15927. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  15928. gidset);
  15929. /* Exit non-zero if getgroups seems to require an array of ints. This
  15930. happens when gid_t is short int but getgroups modifies an array
  15931. of ints. */
  15932. return n > 0 && gidset[n] != val.gval;
  15933. }
  15934. _ACEOF
  15935. if ac_fn_c_try_run "$LINENO"; then :
  15936. ac_cv_type_getgroups=gid_t
  15937. else
  15938. ac_cv_type_getgroups=int
  15939. fi
  15940. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15941. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15942. fi
  15943. if test $ac_cv_type_getgroups = cross; then
  15944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15945. /* end confdefs.h. */
  15946. #include <unistd.h>
  15947. _ACEOF
  15948. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15949. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
  15950. ac_cv_type_getgroups=gid_t
  15951. else
  15952. ac_cv_type_getgroups=int
  15953. fi
  15954. rm -f conftest*
  15955. fi
  15956. fi
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
  15958. $as_echo "$ac_cv_type_getgroups" >&6; }
  15959. cat >>confdefs.h <<_ACEOF
  15960. #define GETGROUPS_T $ac_cv_type_getgroups
  15961. _ACEOF
  15962. if test $ac_cv_c_compiler_gnu = yes; then
  15963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  15964. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  15965. if ${ac_cv_prog_gcc_traditional+:} false; then :
  15966. $as_echo_n "(cached) " >&6
  15967. else
  15968. ac_pattern="Autoconf.*'x'"
  15969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15970. /* end confdefs.h. */
  15971. #include <sgtty.h>
  15972. Autoconf TIOCGETP
  15973. _ACEOF
  15974. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15975. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  15976. ac_cv_prog_gcc_traditional=yes
  15977. else
  15978. ac_cv_prog_gcc_traditional=no
  15979. fi
  15980. rm -f conftest*
  15981. if test $ac_cv_prog_gcc_traditional = no; then
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. #include <termio.h>
  15985. Autoconf TCGETA
  15986. _ACEOF
  15987. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15988. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  15989. ac_cv_prog_gcc_traditional=yes
  15990. fi
  15991. rm -f conftest*
  15992. fi
  15993. fi
  15994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  15995. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  15996. if test $ac_cv_prog_gcc_traditional = yes; then
  15997. CC="$CC -traditional"
  15998. fi
  15999. fi
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16001. $as_echo_n "checking for working memcmp... " >&6; }
  16002. if ${ac_cv_func_memcmp_working+:} false; then :
  16003. $as_echo_n "(cached) " >&6
  16004. else
  16005. if test "$cross_compiling" = yes; then :
  16006. ac_cv_func_memcmp_working=no
  16007. else
  16008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16009. /* end confdefs.h. */
  16010. $ac_includes_default
  16011. int
  16012. main ()
  16013. {
  16014. /* Some versions of memcmp are not 8-bit clean. */
  16015. char c0 = '\100', c1 = '\200', c2 = '\201';
  16016. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16017. return 1;
  16018. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16019. or more and with at least one buffer not starting on a 4-byte boundary.
  16020. William Lewis provided this test program. */
  16021. {
  16022. char foo[21];
  16023. char bar[21];
  16024. int i;
  16025. for (i = 0; i < 4; i++)
  16026. {
  16027. char *a = foo + i;
  16028. char *b = bar + i;
  16029. strcpy (a, "--------01111111");
  16030. strcpy (b, "--------10000000");
  16031. if (memcmp (a, b, 16) >= 0)
  16032. return 1;
  16033. }
  16034. return 0;
  16035. }
  16036. ;
  16037. return 0;
  16038. }
  16039. _ACEOF
  16040. if ac_fn_c_try_run "$LINENO"; then :
  16041. ac_cv_func_memcmp_working=yes
  16042. else
  16043. ac_cv_func_memcmp_working=no
  16044. fi
  16045. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16046. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16047. fi
  16048. fi
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16050. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  16051. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16052. *" memcmp.$ac_objext "* ) ;;
  16053. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16054. ;;
  16055. esac
  16056. for ac_func in vprintf
  16057. do :
  16058. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  16059. if test "x$ac_cv_func_vprintf" = xyes; then :
  16060. cat >>confdefs.h <<_ACEOF
  16061. #define HAVE_VPRINTF 1
  16062. _ACEOF
  16063. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  16064. if test "x$ac_cv_func__doprnt" = xyes; then :
  16065. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  16066. fi
  16067. fi
  16068. done
  16069. for ac_func in fseeko getdomainname gethostname gettimeofday lckpwdf mkdir select
  16070. do :
  16071. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16072. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16073. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16074. cat >>confdefs.h <<_ACEOF
  16075. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16076. _ACEOF
  16077. fi
  16078. done
  16079. for ac_func in strcspn strdup strspn strstr strtol uname
  16080. do :
  16081. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16082. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16083. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16084. cat >>confdefs.h <<_ACEOF
  16085. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16086. _ACEOF
  16087. fi
  16088. done
  16089. for ac_func in getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getmntent_r
  16090. do :
  16091. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16092. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16093. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16094. cat >>confdefs.h <<_ACEOF
  16095. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16096. _ACEOF
  16097. fi
  16098. done
  16099. for ac_func in getgrouplist getline getdelim
  16100. do :
  16101. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16102. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16103. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16104. cat >>confdefs.h <<_ACEOF
  16105. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16106. _ACEOF
  16107. fi
  16108. done
  16109. for ac_func in inet_ntop inet_pton innetgr
  16110. do :
  16111. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16112. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16113. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16114. cat >>confdefs.h <<_ACEOF
  16115. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16116. _ACEOF
  16117. fi
  16118. done
  16119. for ac_func in quotactl
  16120. do :
  16121. ac_fn_c_check_func "$LINENO" "quotactl" "ac_cv_func_quotactl"
  16122. if test "x$ac_cv_func_quotactl" = xyes; then :
  16123. cat >>confdefs.h <<_ACEOF
  16124. #define HAVE_QUOTACTL 1
  16125. _ACEOF
  16126. fi
  16127. done
  16128. for ac_func in unshare
  16129. do :
  16130. ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
  16131. if test "x$ac_cv_func_unshare" = xyes; then :
  16132. cat >>confdefs.h <<_ACEOF
  16133. #define HAVE_UNSHARE 1
  16134. _ACEOF
  16135. fi
  16136. done
  16137. for ac_func in ruserok_af ruserok
  16138. do :
  16139. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16140. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16141. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16142. cat >>confdefs.h <<_ACEOF
  16143. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16144. _ACEOF
  16145. break
  16146. fi
  16147. done
  16148. BACKUP_LIBS=$LIBS
  16149. LIBS="$LIBS -lutil"
  16150. for ac_func in logwtmp
  16151. do :
  16152. ac_fn_c_check_func "$LINENO" "logwtmp" "ac_cv_func_logwtmp"
  16153. if test "x$ac_cv_func_logwtmp" = xyes; then :
  16154. cat >>confdefs.h <<_ACEOF
  16155. #define HAVE_LOGWTMP 1
  16156. _ACEOF
  16157. fi
  16158. done
  16159. LIBS=$BACKUP_LIBS
  16160. # Check whether --enable-regenerate-docu was given.
  16161. if test "${enable_regenerate_docu+set}" = set; then :
  16162. enableval=$enable_regenerate_docu; enable_docu=$enableval
  16163. else
  16164. enable_docu=yes
  16165. fi
  16166. # Extract the first word of "xsltproc", so it can be a program name with args.
  16167. set dummy xsltproc; ac_word=$2
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16169. $as_echo_n "checking for $ac_word... " >&6; }
  16170. if ${ac_cv_path_XSLTPROC+:} false; then :
  16171. $as_echo_n "(cached) " >&6
  16172. else
  16173. case $XSLTPROC in
  16174. [\\/]* | ?:[\\/]*)
  16175. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  16176. ;;
  16177. *)
  16178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16179. for as_dir in $PATH
  16180. do
  16181. IFS=$as_save_IFS
  16182. test -z "$as_dir" && as_dir=.
  16183. for ac_exec_ext in '' $ac_executable_extensions; do
  16184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16185. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  16186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16187. break 2
  16188. fi
  16189. done
  16190. done
  16191. IFS=$as_save_IFS
  16192. ;;
  16193. esac
  16194. fi
  16195. XSLTPROC=$ac_cv_path_XSLTPROC
  16196. if test -n "$XSLTPROC"; then
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  16198. $as_echo "$XSLTPROC" >&6; }
  16199. else
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16201. $as_echo "no" >&6; }
  16202. fi
  16203. if test -z "$XSLTPROC"; then
  16204. enable_docu=no
  16205. fi
  16206. # Extract the first word of "xmllint", so it can be a program name with args.
  16207. set dummy xmllint; ac_word=$2
  16208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16209. $as_echo_n "checking for $ac_word... " >&6; }
  16210. if ${ac_cv_path_XMLLINT+:} false; then :
  16211. $as_echo_n "(cached) " >&6
  16212. else
  16213. case $XMLLINT in
  16214. [\\/]* | ?:[\\/]*)
  16215. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  16216. ;;
  16217. *)
  16218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16219. for as_dir in $PATH
  16220. do
  16221. IFS=$as_save_IFS
  16222. test -z "$as_dir" && as_dir=.
  16223. for ac_exec_ext in '' $ac_executable_extensions; do
  16224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16225. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  16226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16227. break 2
  16228. fi
  16229. done
  16230. done
  16231. IFS=$as_save_IFS
  16232. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/bin/true"
  16233. ;;
  16234. esac
  16235. fi
  16236. XMLLINT=$ac_cv_path_XMLLINT
  16237. if test -n "$XMLLINT"; then
  16238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  16239. $as_echo "$XMLLINT" >&6; }
  16240. else
  16241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16242. $as_echo "no" >&6; }
  16243. fi
  16244. # check for the presence of the XML catalog
  16245. # Check whether --with-xml-catalog was given.
  16246. if test "${with_xml_catalog+set}" = set; then :
  16247. withval=$with_xml_catalog;
  16248. else
  16249. with_xml_catalog=/etc/xml/catalog
  16250. fi
  16251. jh_found_xmlcatalog=true
  16252. XML_CATALOG_FILE="$with_xml_catalog"
  16253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
  16254. $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
  16255. if test -f "$XML_CATALOG_FILE"; then
  16256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  16257. $as_echo "found" >&6; }
  16258. else
  16259. jh_found_xmlcatalog=false
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  16261. $as_echo "not found" >&6; }
  16262. fi
  16263. # check for the xmlcatalog program
  16264. # Extract the first word of "xmlcatalog", so it can be a program name with args.
  16265. set dummy xmlcatalog; ac_word=$2
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16267. $as_echo_n "checking for $ac_word... " >&6; }
  16268. if ${ac_cv_path_XMLCATALOG+:} false; then :
  16269. $as_echo_n "(cached) " >&6
  16270. else
  16271. case $XMLCATALOG in
  16272. [\\/]* | ?:[\\/]*)
  16273. ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
  16274. ;;
  16275. *)
  16276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16277. for as_dir in $PATH
  16278. do
  16279. IFS=$as_save_IFS
  16280. test -z "$as_dir" && as_dir=.
  16281. for ac_exec_ext in '' $ac_executable_extensions; do
  16282. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16283. ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
  16284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16285. break 2
  16286. fi
  16287. done
  16288. done
  16289. IFS=$as_save_IFS
  16290. test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
  16291. ;;
  16292. esac
  16293. fi
  16294. XMLCATALOG=$ac_cv_path_XMLCATALOG
  16295. if test -n "$XMLCATALOG"; then
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
  16297. $as_echo "$XMLCATALOG" >&6; }
  16298. else
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16300. $as_echo "no" >&6; }
  16301. fi
  16302. if test "x$XMLCATALOG" = xno; then
  16303. jh_found_xmlcatalog=false
  16304. fi
  16305. if $jh_found_xmlcatalog; then
  16306. :
  16307. else
  16308. :
  16309. fi
  16310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.4 in XML catalog" >&5
  16311. $as_echo_n "checking for DocBook XML DTD V4.4 in XML catalog... " >&6; }
  16312. if $jh_found_xmlcatalog && \
  16313. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.4//EN\" >&2"; } >&5
  16314. ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.4//EN" >&2) 2>&5
  16315. ac_status=$?
  16316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16317. test $ac_status = 0; }; then
  16318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  16319. $as_echo "found" >&6; }
  16320. else
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  16322. $as_echo "not found" >&6; }
  16323. enable_docu=no
  16324. fi
  16325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
  16326. $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
  16327. if $jh_found_xmlcatalog && \
  16328. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
  16329. ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
  16330. ac_status=$?
  16331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16332. test $ac_status = 0; }; then
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  16334. $as_echo "found" >&6; }
  16335. else
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  16337. $as_echo "not found" >&6; }
  16338. enable_docu=no
  16339. fi
  16340. # Extract the first word of "w3m", so it can be a program name with args.
  16341. set dummy w3m; ac_word=$2
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16343. $as_echo_n "checking for $ac_word... " >&6; }
  16344. if ${ac_cv_path_BROWSER+:} false; then :
  16345. $as_echo_n "(cached) " >&6
  16346. else
  16347. case $BROWSER in
  16348. [\\/]* | ?:[\\/]*)
  16349. ac_cv_path_BROWSER="$BROWSER" # Let the user override the test with a path.
  16350. ;;
  16351. *)
  16352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16353. for as_dir in $PATH
  16354. do
  16355. IFS=$as_save_IFS
  16356. test -z "$as_dir" && as_dir=.
  16357. for ac_exec_ext in '' $ac_executable_extensions; do
  16358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16359. ac_cv_path_BROWSER="$as_dir/$ac_word$ac_exec_ext"
  16360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16361. break 2
  16362. fi
  16363. done
  16364. done
  16365. IFS=$as_save_IFS
  16366. ;;
  16367. esac
  16368. fi
  16369. BROWSER=$ac_cv_path_BROWSER
  16370. if test -n "$BROWSER"; then
  16371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BROWSER" >&5
  16372. $as_echo "$BROWSER" >&6; }
  16373. else
  16374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16375. $as_echo "no" >&6; }
  16376. fi
  16377. if test -n "$BROWSER"; then
  16378. BROWSER="$BROWSER -T text/html -dump"
  16379. else
  16380. # Extract the first word of "elinks", so it can be a program name with args.
  16381. set dummy elinks; ac_word=$2
  16382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16383. $as_echo_n "checking for $ac_word... " >&6; }
  16384. if ${ac_cv_path_BROWSER+:} false; then :
  16385. $as_echo_n "(cached) " >&6
  16386. else
  16387. case $BROWSER in
  16388. [\\/]* | ?:[\\/]*)
  16389. ac_cv_path_BROWSER="$BROWSER" # Let the user override the test with a path.
  16390. ;;
  16391. *)
  16392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16393. for as_dir in $PATH
  16394. do
  16395. IFS=$as_save_IFS
  16396. test -z "$as_dir" && as_dir=.
  16397. for ac_exec_ext in '' $ac_executable_extensions; do
  16398. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16399. ac_cv_path_BROWSER="$as_dir/$ac_word$ac_exec_ext"
  16400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16401. break 2
  16402. fi
  16403. done
  16404. done
  16405. IFS=$as_save_IFS
  16406. ;;
  16407. esac
  16408. fi
  16409. BROWSER=$ac_cv_path_BROWSER
  16410. if test -n "$BROWSER"; then
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BROWSER" >&5
  16412. $as_echo "$BROWSER" >&6; }
  16413. else
  16414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16415. $as_echo "no" >&6; }
  16416. fi
  16417. if test -n "$BROWSER"; then
  16418. BROWSER="$BROWSER -no-numbering -no-references -dump"
  16419. else
  16420. enable_docu=no
  16421. fi
  16422. fi
  16423. # Extract the first word of "fop", so it can be a program name with args.
  16424. set dummy fop; ac_word=$2
  16425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16426. $as_echo_n "checking for $ac_word... " >&6; }
  16427. if ${ac_cv_path_FO2PDF+:} false; then :
  16428. $as_echo_n "(cached) " >&6
  16429. else
  16430. case $FO2PDF in
  16431. [\\/]* | ?:[\\/]*)
  16432. ac_cv_path_FO2PDF="$FO2PDF" # Let the user override the test with a path.
  16433. ;;
  16434. *)
  16435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16436. for as_dir in $PATH
  16437. do
  16438. IFS=$as_save_IFS
  16439. test -z "$as_dir" && as_dir=.
  16440. for ac_exec_ext in '' $ac_executable_extensions; do
  16441. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16442. ac_cv_path_FO2PDF="$as_dir/$ac_word$ac_exec_ext"
  16443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16444. break 2
  16445. fi
  16446. done
  16447. done
  16448. IFS=$as_save_IFS
  16449. ;;
  16450. esac
  16451. fi
  16452. FO2PDF=$ac_cv_path_FO2PDF
  16453. if test -n "$FO2PDF"; then
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FO2PDF" >&5
  16455. $as_echo "$FO2PDF" >&6; }
  16456. else
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16458. $as_echo "no" >&6; }
  16459. fi
  16460. if test x$enable_docu != xno && test x$enable_doc != xno; then
  16461. ENABLE_REGENERATE_MAN_TRUE=
  16462. ENABLE_REGENERATE_MAN_FALSE='#'
  16463. else
  16464. ENABLE_REGENERATE_MAN_TRUE='#'
  16465. ENABLE_REGENERATE_MAN_FALSE=
  16466. fi
  16467. if test -n "$FO2PDF"; then
  16468. ENABLE_GENERATE_PDF_TRUE=
  16469. ENABLE_GENERATE_PDF_FALSE='#'
  16470. else
  16471. ENABLE_GENERATE_PDF_TRUE='#'
  16472. ENABLE_GENERATE_PDF_FALSE=
  16473. fi
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  16475. $as_echo_n "checking whether NLS is requested... " >&6; }
  16476. # Check whether --enable-nls was given.
  16477. if test "${enable_nls+set}" = set; then :
  16478. enableval=$enable_nls; USE_NLS=$enableval
  16479. else
  16480. USE_NLS=yes
  16481. fi
  16482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  16483. $as_echo "$USE_NLS" >&6; }
  16484. GETTEXT_MACRO_VERSION=0.18
  16485. # Prepare PATH_SEPARATOR.
  16486. # The user is always right.
  16487. if test "${PATH_SEPARATOR+set}" != set; then
  16488. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  16489. # contains only /bin. Note that ksh looks also at the FPATH variable,
  16490. # so we have to set that as well for the test.
  16491. PATH_SEPARATOR=:
  16492. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16493. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16494. || PATH_SEPARATOR=';'
  16495. }
  16496. fi
  16497. # Find out how to test for executable files. Don't use a zero-byte file,
  16498. # as systems may use methods other than mode bits to determine executability.
  16499. cat >conf$$.file <<_ASEOF
  16500. #! /bin/sh
  16501. exit 0
  16502. _ASEOF
  16503. chmod +x conf$$.file
  16504. if test -x conf$$.file >/dev/null 2>&1; then
  16505. ac_executable_p="test -x"
  16506. else
  16507. ac_executable_p="test -f"
  16508. fi
  16509. rm -f conf$$.file
  16510. # Extract the first word of "msgfmt", so it can be a program name with args.
  16511. set dummy msgfmt; ac_word=$2
  16512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16513. $as_echo_n "checking for $ac_word... " >&6; }
  16514. if ${ac_cv_path_MSGFMT+:} false; then :
  16515. $as_echo_n "(cached) " >&6
  16516. else
  16517. case "$MSGFMT" in
  16518. [\\/]* | ?:[\\/]*)
  16519. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  16520. ;;
  16521. *)
  16522. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  16523. for ac_dir in $PATH; do
  16524. IFS="$ac_save_IFS"
  16525. test -z "$ac_dir" && ac_dir=.
  16526. for ac_exec_ext in '' $ac_executable_extensions; do
  16527. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  16528. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  16529. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  16530. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  16531. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  16532. break 2
  16533. fi
  16534. fi
  16535. done
  16536. done
  16537. IFS="$ac_save_IFS"
  16538. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  16539. ;;
  16540. esac
  16541. fi
  16542. MSGFMT="$ac_cv_path_MSGFMT"
  16543. if test "$MSGFMT" != ":"; then
  16544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  16545. $as_echo "$MSGFMT" >&6; }
  16546. else
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16548. $as_echo "no" >&6; }
  16549. fi
  16550. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  16551. set dummy gmsgfmt; ac_word=$2
  16552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16553. $as_echo_n "checking for $ac_word... " >&6; }
  16554. if ${ac_cv_path_GMSGFMT+:} false; then :
  16555. $as_echo_n "(cached) " >&6
  16556. else
  16557. case $GMSGFMT in
  16558. [\\/]* | ?:[\\/]*)
  16559. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  16560. ;;
  16561. *)
  16562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16563. for as_dir in $PATH
  16564. do
  16565. IFS=$as_save_IFS
  16566. test -z "$as_dir" && as_dir=.
  16567. for ac_exec_ext in '' $ac_executable_extensions; do
  16568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16569. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  16570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16571. break 2
  16572. fi
  16573. done
  16574. done
  16575. IFS=$as_save_IFS
  16576. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  16577. ;;
  16578. esac
  16579. fi
  16580. GMSGFMT=$ac_cv_path_GMSGFMT
  16581. if test -n "$GMSGFMT"; then
  16582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  16583. $as_echo "$GMSGFMT" >&6; }
  16584. else
  16585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16586. $as_echo "no" >&6; }
  16587. fi
  16588. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  16589. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  16590. *) MSGFMT_015=$MSGFMT ;;
  16591. esac
  16592. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  16593. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  16594. *) GMSGFMT_015=$GMSGFMT ;;
  16595. esac
  16596. # Prepare PATH_SEPARATOR.
  16597. # The user is always right.
  16598. if test "${PATH_SEPARATOR+set}" != set; then
  16599. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  16600. # contains only /bin. Note that ksh looks also at the FPATH variable,
  16601. # so we have to set that as well for the test.
  16602. PATH_SEPARATOR=:
  16603. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16604. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16605. || PATH_SEPARATOR=';'
  16606. }
  16607. fi
  16608. # Find out how to test for executable files. Don't use a zero-byte file,
  16609. # as systems may use methods other than mode bits to determine executability.
  16610. cat >conf$$.file <<_ASEOF
  16611. #! /bin/sh
  16612. exit 0
  16613. _ASEOF
  16614. chmod +x conf$$.file
  16615. if test -x conf$$.file >/dev/null 2>&1; then
  16616. ac_executable_p="test -x"
  16617. else
  16618. ac_executable_p="test -f"
  16619. fi
  16620. rm -f conf$$.file
  16621. # Extract the first word of "xgettext", so it can be a program name with args.
  16622. set dummy xgettext; ac_word=$2
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16624. $as_echo_n "checking for $ac_word... " >&6; }
  16625. if ${ac_cv_path_XGETTEXT+:} false; then :
  16626. $as_echo_n "(cached) " >&6
  16627. else
  16628. case "$XGETTEXT" in
  16629. [\\/]* | ?:[\\/]*)
  16630. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  16631. ;;
  16632. *)
  16633. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  16634. for ac_dir in $PATH; do
  16635. IFS="$ac_save_IFS"
  16636. test -z "$ac_dir" && ac_dir=.
  16637. for ac_exec_ext in '' $ac_executable_extensions; do
  16638. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  16639. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  16640. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  16641. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  16642. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  16643. break 2
  16644. fi
  16645. fi
  16646. done
  16647. done
  16648. IFS="$ac_save_IFS"
  16649. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  16650. ;;
  16651. esac
  16652. fi
  16653. XGETTEXT="$ac_cv_path_XGETTEXT"
  16654. if test "$XGETTEXT" != ":"; then
  16655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  16656. $as_echo "$XGETTEXT" >&6; }
  16657. else
  16658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16659. $as_echo "no" >&6; }
  16660. fi
  16661. rm -f messages.po
  16662. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  16663. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  16664. *) XGETTEXT_015=$XGETTEXT ;;
  16665. esac
  16666. # Prepare PATH_SEPARATOR.
  16667. # The user is always right.
  16668. if test "${PATH_SEPARATOR+set}" != set; then
  16669. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  16670. # contains only /bin. Note that ksh looks also at the FPATH variable,
  16671. # so we have to set that as well for the test.
  16672. PATH_SEPARATOR=:
  16673. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16674. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16675. || PATH_SEPARATOR=';'
  16676. }
  16677. fi
  16678. # Find out how to test for executable files. Don't use a zero-byte file,
  16679. # as systems may use methods other than mode bits to determine executability.
  16680. cat >conf$$.file <<_ASEOF
  16681. #! /bin/sh
  16682. exit 0
  16683. _ASEOF
  16684. chmod +x conf$$.file
  16685. if test -x conf$$.file >/dev/null 2>&1; then
  16686. ac_executable_p="test -x"
  16687. else
  16688. ac_executable_p="test -f"
  16689. fi
  16690. rm -f conf$$.file
  16691. # Extract the first word of "msgmerge", so it can be a program name with args.
  16692. set dummy msgmerge; ac_word=$2
  16693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16694. $as_echo_n "checking for $ac_word... " >&6; }
  16695. if ${ac_cv_path_MSGMERGE+:} false; then :
  16696. $as_echo_n "(cached) " >&6
  16697. else
  16698. case "$MSGMERGE" in
  16699. [\\/]* | ?:[\\/]*)
  16700. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  16701. ;;
  16702. *)
  16703. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  16704. for ac_dir in $PATH; do
  16705. IFS="$ac_save_IFS"
  16706. test -z "$ac_dir" && ac_dir=.
  16707. for ac_exec_ext in '' $ac_executable_extensions; do
  16708. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  16709. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  16710. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  16711. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  16712. break 2
  16713. fi
  16714. fi
  16715. done
  16716. done
  16717. IFS="$ac_save_IFS"
  16718. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  16719. ;;
  16720. esac
  16721. fi
  16722. MSGMERGE="$ac_cv_path_MSGMERGE"
  16723. if test "$MSGMERGE" != ":"; then
  16724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  16725. $as_echo "$MSGMERGE" >&6; }
  16726. else
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16728. $as_echo "no" >&6; }
  16729. fi
  16730. test -n "$localedir" || localedir='${datadir}/locale'
  16731. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  16732. ac_config_commands="$ac_config_commands po-directories"
  16733. if test "X$prefix" = "XNONE"; then
  16734. acl_final_prefix="$ac_default_prefix"
  16735. else
  16736. acl_final_prefix="$prefix"
  16737. fi
  16738. if test "X$exec_prefix" = "XNONE"; then
  16739. acl_final_exec_prefix='${prefix}'
  16740. else
  16741. acl_final_exec_prefix="$exec_prefix"
  16742. fi
  16743. acl_save_prefix="$prefix"
  16744. prefix="$acl_final_prefix"
  16745. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  16746. prefix="$acl_save_prefix"
  16747. # Check whether --with-gnu-ld was given.
  16748. if test "${with_gnu_ld+set}" = set; then :
  16749. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  16750. else
  16751. with_gnu_ld=no
  16752. fi
  16753. # Prepare PATH_SEPARATOR.
  16754. # The user is always right.
  16755. if test "${PATH_SEPARATOR+set}" != set; then
  16756. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  16757. # contains only /bin. Note that ksh looks also at the FPATH variable,
  16758. # so we have to set that as well for the test.
  16759. PATH_SEPARATOR=:
  16760. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16761. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  16762. || PATH_SEPARATOR=';'
  16763. }
  16764. fi
  16765. ac_prog=ld
  16766. if test "$GCC" = yes; then
  16767. # Check if gcc -print-prog-name=ld gives a path.
  16768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  16769. $as_echo_n "checking for ld used by $CC... " >&6; }
  16770. case $host in
  16771. *-*-mingw*)
  16772. # gcc leaves a trailing carriage return which upsets mingw
  16773. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  16774. *)
  16775. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  16776. esac
  16777. case $ac_prog in
  16778. # Accept absolute paths.
  16779. [\\/]* | ?:[\\/]*)
  16780. re_direlt='/[^/][^/]*/\.\./'
  16781. # Canonicalize the pathname of ld
  16782. ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
  16783. while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
  16784. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  16785. done
  16786. test -z "$LD" && LD="$ac_prog"
  16787. ;;
  16788. "")
  16789. # If it fails, then pretend we aren't using GCC.
  16790. ac_prog=ld
  16791. ;;
  16792. *)
  16793. # If it is relative, then search for the first ld in PATH.
  16794. with_gnu_ld=unknown
  16795. ;;
  16796. esac
  16797. elif test "$with_gnu_ld" = yes; then
  16798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  16799. $as_echo_n "checking for GNU ld... " >&6; }
  16800. else
  16801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  16802. $as_echo_n "checking for non-GNU ld... " >&6; }
  16803. fi
  16804. if ${acl_cv_path_LD+:} false; then :
  16805. $as_echo_n "(cached) " >&6
  16806. else
  16807. if test -z "$LD"; then
  16808. acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16809. for ac_dir in $PATH; do
  16810. IFS="$acl_save_ifs"
  16811. test -z "$ac_dir" && ac_dir=.
  16812. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  16813. acl_cv_path_LD="$ac_dir/$ac_prog"
  16814. # Check to see if the program is GNU ld. I'd rather use --version,
  16815. # but apparently some variants of GNU ld only accept -v.
  16816. # Break only if it was the GNU/non-GNU ld that we prefer.
  16817. case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
  16818. *GNU* | *'with BFD'*)
  16819. test "$with_gnu_ld" != no && break
  16820. ;;
  16821. *)
  16822. test "$with_gnu_ld" != yes && break
  16823. ;;
  16824. esac
  16825. fi
  16826. done
  16827. IFS="$acl_save_ifs"
  16828. else
  16829. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  16830. fi
  16831. fi
  16832. LD="$acl_cv_path_LD"
  16833. if test -n "$LD"; then
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  16835. $as_echo "$LD" >&6; }
  16836. else
  16837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16838. $as_echo "no" >&6; }
  16839. fi
  16840. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  16841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  16842. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  16843. if ${acl_cv_prog_gnu_ld+:} false; then :
  16844. $as_echo_n "(cached) " >&6
  16845. else
  16846. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  16847. case `$LD -v 2>&1 </dev/null` in
  16848. *GNU* | *'with BFD'*)
  16849. acl_cv_prog_gnu_ld=yes
  16850. ;;
  16851. *)
  16852. acl_cv_prog_gnu_ld=no
  16853. ;;
  16854. esac
  16855. fi
  16856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  16857. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  16858. with_gnu_ld=$acl_cv_prog_gnu_ld
  16859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  16860. $as_echo_n "checking for shared library run path origin... " >&6; }
  16861. if ${acl_cv_rpath+:} false; then :
  16862. $as_echo_n "(cached) " >&6
  16863. else
  16864. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  16865. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  16866. . ./conftest.sh
  16867. rm -f ./conftest.sh
  16868. acl_cv_rpath=done
  16869. fi
  16870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  16871. $as_echo "$acl_cv_rpath" >&6; }
  16872. wl="$acl_cv_wl"
  16873. acl_libext="$acl_cv_libext"
  16874. acl_shlibext="$acl_cv_shlibext"
  16875. acl_libname_spec="$acl_cv_libname_spec"
  16876. acl_library_names_spec="$acl_cv_library_names_spec"
  16877. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  16878. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  16879. acl_hardcode_direct="$acl_cv_hardcode_direct"
  16880. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  16881. # Check whether --enable-rpath was given.
  16882. if test "${enable_rpath+set}" = set; then :
  16883. enableval=$enable_rpath; :
  16884. else
  16885. enable_rpath=yes
  16886. fi
  16887. acl_libdirstem=lib
  16888. acl_libdirstem2=
  16889. case "$host_os" in
  16890. solaris*)
  16891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  16892. $as_echo_n "checking for 64-bit host... " >&6; }
  16893. if ${gl_cv_solaris_64bit+:} false; then :
  16894. $as_echo_n "(cached) " >&6
  16895. else
  16896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16897. /* end confdefs.h. */
  16898. #ifdef _LP64
  16899. sixtyfour bits
  16900. #endif
  16901. _ACEOF
  16902. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16903. $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
  16904. gl_cv_solaris_64bit=yes
  16905. else
  16906. gl_cv_solaris_64bit=no
  16907. fi
  16908. rm -f conftest*
  16909. fi
  16910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  16911. $as_echo "$gl_cv_solaris_64bit" >&6; }
  16912. if test $gl_cv_solaris_64bit = yes; then
  16913. acl_libdirstem=lib/64
  16914. case "$host_cpu" in
  16915. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  16916. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  16917. esac
  16918. fi
  16919. ;;
  16920. *)
  16921. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  16922. if test -n "$searchpath"; then
  16923. acl_save_IFS="${IFS= }"; IFS=":"
  16924. for searchdir in $searchpath; do
  16925. if test -d "$searchdir"; then
  16926. case "$searchdir" in
  16927. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  16928. */../ | */.. )
  16929. # Better ignore directories of this form. They are misleading.
  16930. ;;
  16931. *) searchdir=`cd "$searchdir" && pwd`
  16932. case "$searchdir" in
  16933. */lib64 ) acl_libdirstem=lib64 ;;
  16934. esac ;;
  16935. esac
  16936. fi
  16937. done
  16938. IFS="$acl_save_IFS"
  16939. fi
  16940. ;;
  16941. esac
  16942. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  16943. use_additional=yes
  16944. acl_save_prefix="$prefix"
  16945. prefix="$acl_final_prefix"
  16946. acl_save_exec_prefix="$exec_prefix"
  16947. exec_prefix="$acl_final_exec_prefix"
  16948. eval additional_includedir=\"$includedir\"
  16949. eval additional_libdir=\"$libdir\"
  16950. exec_prefix="$acl_save_exec_prefix"
  16951. prefix="$acl_save_prefix"
  16952. # Check whether --with-libiconv-prefix was given.
  16953. if test "${with_libiconv_prefix+set}" = set; then :
  16954. withval=$with_libiconv_prefix;
  16955. if test "X$withval" = "Xno"; then
  16956. use_additional=no
  16957. else
  16958. if test "X$withval" = "X"; then
  16959. acl_save_prefix="$prefix"
  16960. prefix="$acl_final_prefix"
  16961. acl_save_exec_prefix="$exec_prefix"
  16962. exec_prefix="$acl_final_exec_prefix"
  16963. eval additional_includedir=\"$includedir\"
  16964. eval additional_libdir=\"$libdir\"
  16965. exec_prefix="$acl_save_exec_prefix"
  16966. prefix="$acl_save_prefix"
  16967. else
  16968. additional_includedir="$withval/include"
  16969. additional_libdir="$withval/$acl_libdirstem"
  16970. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  16971. && ! test -d "$withval/$acl_libdirstem"; then
  16972. additional_libdir="$withval/$acl_libdirstem2"
  16973. fi
  16974. fi
  16975. fi
  16976. fi
  16977. LIBICONV=
  16978. LTLIBICONV=
  16979. INCICONV=
  16980. LIBICONV_PREFIX=
  16981. HAVE_LIBICONV=
  16982. rpathdirs=
  16983. ltrpathdirs=
  16984. names_already_handled=
  16985. names_next_round='iconv '
  16986. while test -n "$names_next_round"; do
  16987. names_this_round="$names_next_round"
  16988. names_next_round=
  16989. for name in $names_this_round; do
  16990. already_handled=
  16991. for n in $names_already_handled; do
  16992. if test "$n" = "$name"; then
  16993. already_handled=yes
  16994. break
  16995. fi
  16996. done
  16997. if test -z "$already_handled"; then
  16998. names_already_handled="$names_already_handled $name"
  16999. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  17000. eval value=\"\$HAVE_LIB$uppername\"
  17001. if test -n "$value"; then
  17002. if test "$value" = yes; then
  17003. eval value=\"\$LIB$uppername\"
  17004. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  17005. eval value=\"\$LTLIB$uppername\"
  17006. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  17007. else
  17008. :
  17009. fi
  17010. else
  17011. found_dir=
  17012. found_la=
  17013. found_so=
  17014. found_a=
  17015. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  17016. if test -n "$acl_shlibext"; then
  17017. shrext=".$acl_shlibext" # typically: shrext=.so
  17018. else
  17019. shrext=
  17020. fi
  17021. if test $use_additional = yes; then
  17022. dir="$additional_libdir"
  17023. if test -n "$acl_shlibext"; then
  17024. if test -f "$dir/$libname$shrext"; then
  17025. found_dir="$dir"
  17026. found_so="$dir/$libname$shrext"
  17027. else
  17028. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17029. ver=`(cd "$dir" && \
  17030. for f in "$libname$shrext".*; do echo "$f"; done \
  17031. | sed -e "s,^$libname$shrext\\\\.,," \
  17032. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17033. | sed 1q ) 2>/dev/null`
  17034. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17035. found_dir="$dir"
  17036. found_so="$dir/$libname$shrext.$ver"
  17037. fi
  17038. else
  17039. eval library_names=\"$acl_library_names_spec\"
  17040. for f in $library_names; do
  17041. if test -f "$dir/$f"; then
  17042. found_dir="$dir"
  17043. found_so="$dir/$f"
  17044. break
  17045. fi
  17046. done
  17047. fi
  17048. fi
  17049. fi
  17050. if test "X$found_dir" = "X"; then
  17051. if test -f "$dir/$libname.$acl_libext"; then
  17052. found_dir="$dir"
  17053. found_a="$dir/$libname.$acl_libext"
  17054. fi
  17055. fi
  17056. if test "X$found_dir" != "X"; then
  17057. if test -f "$dir/$libname.la"; then
  17058. found_la="$dir/$libname.la"
  17059. fi
  17060. fi
  17061. fi
  17062. if test "X$found_dir" = "X"; then
  17063. for x in $LDFLAGS $LTLIBICONV; do
  17064. acl_save_prefix="$prefix"
  17065. prefix="$acl_final_prefix"
  17066. acl_save_exec_prefix="$exec_prefix"
  17067. exec_prefix="$acl_final_exec_prefix"
  17068. eval x=\"$x\"
  17069. exec_prefix="$acl_save_exec_prefix"
  17070. prefix="$acl_save_prefix"
  17071. case "$x" in
  17072. -L*)
  17073. dir=`echo "X$x" | sed -e 's/^X-L//'`
  17074. if test -n "$acl_shlibext"; then
  17075. if test -f "$dir/$libname$shrext"; then
  17076. found_dir="$dir"
  17077. found_so="$dir/$libname$shrext"
  17078. else
  17079. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17080. ver=`(cd "$dir" && \
  17081. for f in "$libname$shrext".*; do echo "$f"; done \
  17082. | sed -e "s,^$libname$shrext\\\\.,," \
  17083. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17084. | sed 1q ) 2>/dev/null`
  17085. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17086. found_dir="$dir"
  17087. found_so="$dir/$libname$shrext.$ver"
  17088. fi
  17089. else
  17090. eval library_names=\"$acl_library_names_spec\"
  17091. for f in $library_names; do
  17092. if test -f "$dir/$f"; then
  17093. found_dir="$dir"
  17094. found_so="$dir/$f"
  17095. break
  17096. fi
  17097. done
  17098. fi
  17099. fi
  17100. fi
  17101. if test "X$found_dir" = "X"; then
  17102. if test -f "$dir/$libname.$acl_libext"; then
  17103. found_dir="$dir"
  17104. found_a="$dir/$libname.$acl_libext"
  17105. fi
  17106. fi
  17107. if test "X$found_dir" != "X"; then
  17108. if test -f "$dir/$libname.la"; then
  17109. found_la="$dir/$libname.la"
  17110. fi
  17111. fi
  17112. ;;
  17113. esac
  17114. if test "X$found_dir" != "X"; then
  17115. break
  17116. fi
  17117. done
  17118. fi
  17119. if test "X$found_dir" != "X"; then
  17120. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  17121. if test "X$found_so" != "X"; then
  17122. if test "$enable_rpath" = no \
  17123. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  17124. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  17125. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17126. else
  17127. haveit=
  17128. for x in $ltrpathdirs; do
  17129. if test "X$x" = "X$found_dir"; then
  17130. haveit=yes
  17131. break
  17132. fi
  17133. done
  17134. if test -z "$haveit"; then
  17135. ltrpathdirs="$ltrpathdirs $found_dir"
  17136. fi
  17137. if test "$acl_hardcode_direct" = yes; then
  17138. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17139. else
  17140. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  17141. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17142. haveit=
  17143. for x in $rpathdirs; do
  17144. if test "X$x" = "X$found_dir"; then
  17145. haveit=yes
  17146. break
  17147. fi
  17148. done
  17149. if test -z "$haveit"; then
  17150. rpathdirs="$rpathdirs $found_dir"
  17151. fi
  17152. else
  17153. haveit=
  17154. for x in $LDFLAGS $LIBICONV; do
  17155. acl_save_prefix="$prefix"
  17156. prefix="$acl_final_prefix"
  17157. acl_save_exec_prefix="$exec_prefix"
  17158. exec_prefix="$acl_final_exec_prefix"
  17159. eval x=\"$x\"
  17160. exec_prefix="$acl_save_exec_prefix"
  17161. prefix="$acl_save_prefix"
  17162. if test "X$x" = "X-L$found_dir"; then
  17163. haveit=yes
  17164. break
  17165. fi
  17166. done
  17167. if test -z "$haveit"; then
  17168. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  17169. fi
  17170. if test "$acl_hardcode_minus_L" != no; then
  17171. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  17172. else
  17173. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  17174. fi
  17175. fi
  17176. fi
  17177. fi
  17178. else
  17179. if test "X$found_a" != "X"; then
  17180. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  17181. else
  17182. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  17183. fi
  17184. fi
  17185. additional_includedir=
  17186. case "$found_dir" in
  17187. */$acl_libdirstem | */$acl_libdirstem/)
  17188. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17189. if test "$name" = 'iconv'; then
  17190. LIBICONV_PREFIX="$basedir"
  17191. fi
  17192. additional_includedir="$basedir/include"
  17193. ;;
  17194. */$acl_libdirstem2 | */$acl_libdirstem2/)
  17195. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  17196. if test "$name" = 'iconv'; then
  17197. LIBICONV_PREFIX="$basedir"
  17198. fi
  17199. additional_includedir="$basedir/include"
  17200. ;;
  17201. esac
  17202. if test "X$additional_includedir" != "X"; then
  17203. if test "X$additional_includedir" != "X/usr/include"; then
  17204. haveit=
  17205. if test "X$additional_includedir" = "X/usr/local/include"; then
  17206. if test -n "$GCC"; then
  17207. case $host_os in
  17208. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17209. esac
  17210. fi
  17211. fi
  17212. if test -z "$haveit"; then
  17213. for x in $CPPFLAGS $INCICONV; do
  17214. acl_save_prefix="$prefix"
  17215. prefix="$acl_final_prefix"
  17216. acl_save_exec_prefix="$exec_prefix"
  17217. exec_prefix="$acl_final_exec_prefix"
  17218. eval x=\"$x\"
  17219. exec_prefix="$acl_save_exec_prefix"
  17220. prefix="$acl_save_prefix"
  17221. if test "X$x" = "X-I$additional_includedir"; then
  17222. haveit=yes
  17223. break
  17224. fi
  17225. done
  17226. if test -z "$haveit"; then
  17227. if test -d "$additional_includedir"; then
  17228. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  17229. fi
  17230. fi
  17231. fi
  17232. fi
  17233. fi
  17234. if test -n "$found_la"; then
  17235. save_libdir="$libdir"
  17236. case "$found_la" in
  17237. */* | *\\*) . "$found_la" ;;
  17238. *) . "./$found_la" ;;
  17239. esac
  17240. libdir="$save_libdir"
  17241. for dep in $dependency_libs; do
  17242. case "$dep" in
  17243. -L*)
  17244. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17245. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  17246. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  17247. haveit=
  17248. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  17249. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  17250. if test -n "$GCC"; then
  17251. case $host_os in
  17252. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17253. esac
  17254. fi
  17255. fi
  17256. if test -z "$haveit"; then
  17257. haveit=
  17258. for x in $LDFLAGS $LIBICONV; do
  17259. acl_save_prefix="$prefix"
  17260. prefix="$acl_final_prefix"
  17261. acl_save_exec_prefix="$exec_prefix"
  17262. exec_prefix="$acl_final_exec_prefix"
  17263. eval x=\"$x\"
  17264. exec_prefix="$acl_save_exec_prefix"
  17265. prefix="$acl_save_prefix"
  17266. if test "X$x" = "X-L$additional_libdir"; then
  17267. haveit=yes
  17268. break
  17269. fi
  17270. done
  17271. if test -z "$haveit"; then
  17272. if test -d "$additional_libdir"; then
  17273. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  17274. fi
  17275. fi
  17276. haveit=
  17277. for x in $LDFLAGS $LTLIBICONV; do
  17278. acl_save_prefix="$prefix"
  17279. prefix="$acl_final_prefix"
  17280. acl_save_exec_prefix="$exec_prefix"
  17281. exec_prefix="$acl_final_exec_prefix"
  17282. eval x=\"$x\"
  17283. exec_prefix="$acl_save_exec_prefix"
  17284. prefix="$acl_save_prefix"
  17285. if test "X$x" = "X-L$additional_libdir"; then
  17286. haveit=yes
  17287. break
  17288. fi
  17289. done
  17290. if test -z "$haveit"; then
  17291. if test -d "$additional_libdir"; then
  17292. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  17293. fi
  17294. fi
  17295. fi
  17296. fi
  17297. ;;
  17298. -R*)
  17299. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17300. if test "$enable_rpath" != no; then
  17301. haveit=
  17302. for x in $rpathdirs; do
  17303. if test "X$x" = "X$dir"; then
  17304. haveit=yes
  17305. break
  17306. fi
  17307. done
  17308. if test -z "$haveit"; then
  17309. rpathdirs="$rpathdirs $dir"
  17310. fi
  17311. haveit=
  17312. for x in $ltrpathdirs; do
  17313. if test "X$x" = "X$dir"; then
  17314. haveit=yes
  17315. break
  17316. fi
  17317. done
  17318. if test -z "$haveit"; then
  17319. ltrpathdirs="$ltrpathdirs $dir"
  17320. fi
  17321. fi
  17322. ;;
  17323. -l*)
  17324. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17325. ;;
  17326. *.la)
  17327. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17328. ;;
  17329. *)
  17330. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  17331. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  17332. ;;
  17333. esac
  17334. done
  17335. fi
  17336. else
  17337. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  17338. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  17339. fi
  17340. fi
  17341. fi
  17342. done
  17343. done
  17344. if test "X$rpathdirs" != "X"; then
  17345. if test -n "$acl_hardcode_libdir_separator"; then
  17346. alldirs=
  17347. for found_dir in $rpathdirs; do
  17348. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17349. done
  17350. acl_save_libdir="$libdir"
  17351. libdir="$alldirs"
  17352. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17353. libdir="$acl_save_libdir"
  17354. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  17355. else
  17356. for found_dir in $rpathdirs; do
  17357. acl_save_libdir="$libdir"
  17358. libdir="$found_dir"
  17359. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17360. libdir="$acl_save_libdir"
  17361. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  17362. done
  17363. fi
  17364. fi
  17365. if test "X$ltrpathdirs" != "X"; then
  17366. for found_dir in $ltrpathdirs; do
  17367. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  17368. done
  17369. fi
  17370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  17371. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  17372. if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
  17373. $as_echo_n "(cached) " >&6
  17374. else
  17375. gt_save_LIBS="$LIBS"
  17376. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  17377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17378. /* end confdefs.h. */
  17379. #include <CoreFoundation/CFPreferences.h>
  17380. int
  17381. main ()
  17382. {
  17383. CFPreferencesCopyAppValue(NULL, NULL)
  17384. ;
  17385. return 0;
  17386. }
  17387. _ACEOF
  17388. if ac_fn_c_try_link "$LINENO"; then :
  17389. gt_cv_func_CFPreferencesCopyAppValue=yes
  17390. else
  17391. gt_cv_func_CFPreferencesCopyAppValue=no
  17392. fi
  17393. rm -f core conftest.err conftest.$ac_objext \
  17394. conftest$ac_exeext conftest.$ac_ext
  17395. LIBS="$gt_save_LIBS"
  17396. fi
  17397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  17398. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  17399. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  17400. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  17401. fi
  17402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  17403. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  17404. if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
  17405. $as_echo_n "(cached) " >&6
  17406. else
  17407. gt_save_LIBS="$LIBS"
  17408. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  17409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17410. /* end confdefs.h. */
  17411. #include <CoreFoundation/CFLocale.h>
  17412. int
  17413. main ()
  17414. {
  17415. CFLocaleCopyCurrent();
  17416. ;
  17417. return 0;
  17418. }
  17419. _ACEOF
  17420. if ac_fn_c_try_link "$LINENO"; then :
  17421. gt_cv_func_CFLocaleCopyCurrent=yes
  17422. else
  17423. gt_cv_func_CFLocaleCopyCurrent=no
  17424. fi
  17425. rm -f core conftest.err conftest.$ac_objext \
  17426. conftest$ac_exeext conftest.$ac_ext
  17427. LIBS="$gt_save_LIBS"
  17428. fi
  17429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  17430. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  17431. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  17432. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  17433. fi
  17434. INTL_MACOSX_LIBS=
  17435. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  17436. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  17437. fi
  17438. LIBINTL=
  17439. LTLIBINTL=
  17440. POSUB=
  17441. case " $gt_needs " in
  17442. *" need-formatstring-macros "*) gt_api_version=3 ;;
  17443. *" need-ngettext "*) gt_api_version=2 ;;
  17444. *) gt_api_version=1 ;;
  17445. esac
  17446. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  17447. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  17448. if test "$USE_NLS" = "yes"; then
  17449. gt_use_preinstalled_gnugettext=no
  17450. if test $gt_api_version -ge 3; then
  17451. gt_revision_test_code='
  17452. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  17453. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  17454. #endif
  17455. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  17456. '
  17457. else
  17458. gt_revision_test_code=
  17459. fi
  17460. if test $gt_api_version -ge 2; then
  17461. gt_expression_test_code=' + * ngettext ("", "", 0)'
  17462. else
  17463. gt_expression_test_code=
  17464. fi
  17465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  17466. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  17467. if eval \${$gt_func_gnugettext_libc+:} false; then :
  17468. $as_echo_n "(cached) " >&6
  17469. else
  17470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17471. /* end confdefs.h. */
  17472. #include <libintl.h>
  17473. $gt_revision_test_code
  17474. extern int _nl_msg_cat_cntr;
  17475. extern int *_nl_domain_bindings;
  17476. int
  17477. main ()
  17478. {
  17479. bindtextdomain ("", "");
  17480. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  17481. ;
  17482. return 0;
  17483. }
  17484. _ACEOF
  17485. if ac_fn_c_try_link "$LINENO"; then :
  17486. eval "$gt_func_gnugettext_libc=yes"
  17487. else
  17488. eval "$gt_func_gnugettext_libc=no"
  17489. fi
  17490. rm -f core conftest.err conftest.$ac_objext \
  17491. conftest$ac_exeext conftest.$ac_ext
  17492. fi
  17493. eval ac_res=\$$gt_func_gnugettext_libc
  17494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17495. $as_echo "$ac_res" >&6; }
  17496. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  17497. am_save_CPPFLAGS="$CPPFLAGS"
  17498. for element in $INCICONV; do
  17499. haveit=
  17500. for x in $CPPFLAGS; do
  17501. acl_save_prefix="$prefix"
  17502. prefix="$acl_final_prefix"
  17503. acl_save_exec_prefix="$exec_prefix"
  17504. exec_prefix="$acl_final_exec_prefix"
  17505. eval x=\"$x\"
  17506. exec_prefix="$acl_save_exec_prefix"
  17507. prefix="$acl_save_prefix"
  17508. if test "X$x" = "X$element"; then
  17509. haveit=yes
  17510. break
  17511. fi
  17512. done
  17513. if test -z "$haveit"; then
  17514. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17515. fi
  17516. done
  17517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  17518. $as_echo_n "checking for iconv... " >&6; }
  17519. if ${am_cv_func_iconv+:} false; then :
  17520. $as_echo_n "(cached) " >&6
  17521. else
  17522. am_cv_func_iconv="no, consider installing GNU libiconv"
  17523. am_cv_lib_iconv=no
  17524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17525. /* end confdefs.h. */
  17526. #include <stdlib.h>
  17527. #include <iconv.h>
  17528. int
  17529. main ()
  17530. {
  17531. iconv_t cd = iconv_open("","");
  17532. iconv(cd,NULL,NULL,NULL,NULL);
  17533. iconv_close(cd);
  17534. ;
  17535. return 0;
  17536. }
  17537. _ACEOF
  17538. if ac_fn_c_try_link "$LINENO"; then :
  17539. am_cv_func_iconv=yes
  17540. fi
  17541. rm -f core conftest.err conftest.$ac_objext \
  17542. conftest$ac_exeext conftest.$ac_ext
  17543. if test "$am_cv_func_iconv" != yes; then
  17544. am_save_LIBS="$LIBS"
  17545. LIBS="$LIBS $LIBICONV"
  17546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17547. /* end confdefs.h. */
  17548. #include <stdlib.h>
  17549. #include <iconv.h>
  17550. int
  17551. main ()
  17552. {
  17553. iconv_t cd = iconv_open("","");
  17554. iconv(cd,NULL,NULL,NULL,NULL);
  17555. iconv_close(cd);
  17556. ;
  17557. return 0;
  17558. }
  17559. _ACEOF
  17560. if ac_fn_c_try_link "$LINENO"; then :
  17561. am_cv_lib_iconv=yes
  17562. am_cv_func_iconv=yes
  17563. fi
  17564. rm -f core conftest.err conftest.$ac_objext \
  17565. conftest$ac_exeext conftest.$ac_ext
  17566. LIBS="$am_save_LIBS"
  17567. fi
  17568. fi
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  17570. $as_echo "$am_cv_func_iconv" >&6; }
  17571. if test "$am_cv_func_iconv" = yes; then
  17572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  17573. $as_echo_n "checking for working iconv... " >&6; }
  17574. if ${am_cv_func_iconv_works+:} false; then :
  17575. $as_echo_n "(cached) " >&6
  17576. else
  17577. am_save_LIBS="$LIBS"
  17578. if test $am_cv_lib_iconv = yes; then
  17579. LIBS="$LIBS $LIBICONV"
  17580. fi
  17581. if test "$cross_compiling" = yes; then :
  17582. case "$host_os" in
  17583. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  17584. *) am_cv_func_iconv_works="guessing yes" ;;
  17585. esac
  17586. else
  17587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17588. /* end confdefs.h. */
  17589. #include <iconv.h>
  17590. #include <string.h>
  17591. int main ()
  17592. {
  17593. int result = 0;
  17594. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  17595. returns. */
  17596. {
  17597. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  17598. if (cd_utf8_to_88591 != (iconv_t)(-1))
  17599. {
  17600. static const char input[] = "\342\202\254"; /* EURO SIGN */
  17601. char buf[10];
  17602. const char *inptr = input;
  17603. size_t inbytesleft = strlen (input);
  17604. char *outptr = buf;
  17605. size_t outbytesleft = sizeof (buf);
  17606. size_t res = iconv (cd_utf8_to_88591,
  17607. (char **) &inptr, &inbytesleft,
  17608. &outptr, &outbytesleft);
  17609. if (res == 0)
  17610. result |= 1;
  17611. iconv_close (cd_utf8_to_88591);
  17612. }
  17613. }
  17614. /* Test against Solaris 10 bug: Failures are not distinguishable from
  17615. successful returns. */
  17616. {
  17617. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  17618. if (cd_ascii_to_88591 != (iconv_t)(-1))
  17619. {
  17620. static const char input[] = "\263";
  17621. char buf[10];
  17622. const char *inptr = input;
  17623. size_t inbytesleft = strlen (input);
  17624. char *outptr = buf;
  17625. size_t outbytesleft = sizeof (buf);
  17626. size_t res = iconv (cd_ascii_to_88591,
  17627. (char **) &inptr, &inbytesleft,
  17628. &outptr, &outbytesleft);
  17629. if (res == 0)
  17630. result |= 2;
  17631. iconv_close (cd_ascii_to_88591);
  17632. }
  17633. }
  17634. /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
  17635. {
  17636. iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  17637. if (cd_88591_to_utf8 != (iconv_t)(-1))
  17638. {
  17639. static const char input[] = "\304";
  17640. static char buf[2] = { (char)0xDE, (char)0xAD };
  17641. const char *inptr = input;
  17642. size_t inbytesleft = 1;
  17643. char *outptr = buf;
  17644. size_t outbytesleft = 1;
  17645. size_t res = iconv (cd_88591_to_utf8,
  17646. (char **) &inptr, &inbytesleft,
  17647. &outptr, &outbytesleft);
  17648. if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  17649. result |= 4;
  17650. iconv_close (cd_88591_to_utf8);
  17651. }
  17652. }
  17653. #if 0 /* This bug could be worked around by the caller. */
  17654. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  17655. {
  17656. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  17657. if (cd_88591_to_utf8 != (iconv_t)(-1))
  17658. {
  17659. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  17660. char buf[50];
  17661. const char *inptr = input;
  17662. size_t inbytesleft = strlen (input);
  17663. char *outptr = buf;
  17664. size_t outbytesleft = sizeof (buf);
  17665. size_t res = iconv (cd_88591_to_utf8,
  17666. (char **) &inptr, &inbytesleft,
  17667. &outptr, &outbytesleft);
  17668. if ((int)res > 0)
  17669. result |= 8;
  17670. iconv_close (cd_88591_to_utf8);
  17671. }
  17672. }
  17673. #endif
  17674. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  17675. provided. */
  17676. if (/* Try standardized names. */
  17677. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  17678. /* Try IRIX, OSF/1 names. */
  17679. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  17680. /* Try AIX names. */
  17681. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  17682. /* Try HP-UX names. */
  17683. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  17684. result |= 16;
  17685. return result;
  17686. }
  17687. _ACEOF
  17688. if ac_fn_c_try_run "$LINENO"; then :
  17689. am_cv_func_iconv_works=yes
  17690. else
  17691. am_cv_func_iconv_works=no
  17692. fi
  17693. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17694. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17695. fi
  17696. LIBS="$am_save_LIBS"
  17697. fi
  17698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  17699. $as_echo "$am_cv_func_iconv_works" >&6; }
  17700. case "$am_cv_func_iconv_works" in
  17701. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  17702. *) am_func_iconv=yes ;;
  17703. esac
  17704. else
  17705. am_func_iconv=no am_cv_lib_iconv=no
  17706. fi
  17707. if test "$am_func_iconv" = yes; then
  17708. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  17709. fi
  17710. if test "$am_cv_lib_iconv" = yes; then
  17711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  17712. $as_echo_n "checking how to link with libiconv... " >&6; }
  17713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  17714. $as_echo "$LIBICONV" >&6; }
  17715. else
  17716. CPPFLAGS="$am_save_CPPFLAGS"
  17717. LIBICONV=
  17718. LTLIBICONV=
  17719. fi
  17720. use_additional=yes
  17721. acl_save_prefix="$prefix"
  17722. prefix="$acl_final_prefix"
  17723. acl_save_exec_prefix="$exec_prefix"
  17724. exec_prefix="$acl_final_exec_prefix"
  17725. eval additional_includedir=\"$includedir\"
  17726. eval additional_libdir=\"$libdir\"
  17727. exec_prefix="$acl_save_exec_prefix"
  17728. prefix="$acl_save_prefix"
  17729. # Check whether --with-libintl-prefix was given.
  17730. if test "${with_libintl_prefix+set}" = set; then :
  17731. withval=$with_libintl_prefix;
  17732. if test "X$withval" = "Xno"; then
  17733. use_additional=no
  17734. else
  17735. if test "X$withval" = "X"; then
  17736. acl_save_prefix="$prefix"
  17737. prefix="$acl_final_prefix"
  17738. acl_save_exec_prefix="$exec_prefix"
  17739. exec_prefix="$acl_final_exec_prefix"
  17740. eval additional_includedir=\"$includedir\"
  17741. eval additional_libdir=\"$libdir\"
  17742. exec_prefix="$acl_save_exec_prefix"
  17743. prefix="$acl_save_prefix"
  17744. else
  17745. additional_includedir="$withval/include"
  17746. additional_libdir="$withval/$acl_libdirstem"
  17747. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  17748. && ! test -d "$withval/$acl_libdirstem"; then
  17749. additional_libdir="$withval/$acl_libdirstem2"
  17750. fi
  17751. fi
  17752. fi
  17753. fi
  17754. LIBINTL=
  17755. LTLIBINTL=
  17756. INCINTL=
  17757. LIBINTL_PREFIX=
  17758. HAVE_LIBINTL=
  17759. rpathdirs=
  17760. ltrpathdirs=
  17761. names_already_handled=
  17762. names_next_round='intl '
  17763. while test -n "$names_next_round"; do
  17764. names_this_round="$names_next_round"
  17765. names_next_round=
  17766. for name in $names_this_round; do
  17767. already_handled=
  17768. for n in $names_already_handled; do
  17769. if test "$n" = "$name"; then
  17770. already_handled=yes
  17771. break
  17772. fi
  17773. done
  17774. if test -z "$already_handled"; then
  17775. names_already_handled="$names_already_handled $name"
  17776. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  17777. eval value=\"\$HAVE_LIB$uppername\"
  17778. if test -n "$value"; then
  17779. if test "$value" = yes; then
  17780. eval value=\"\$LIB$uppername\"
  17781. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  17782. eval value=\"\$LTLIB$uppername\"
  17783. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  17784. else
  17785. :
  17786. fi
  17787. else
  17788. found_dir=
  17789. found_la=
  17790. found_so=
  17791. found_a=
  17792. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  17793. if test -n "$acl_shlibext"; then
  17794. shrext=".$acl_shlibext" # typically: shrext=.so
  17795. else
  17796. shrext=
  17797. fi
  17798. if test $use_additional = yes; then
  17799. dir="$additional_libdir"
  17800. if test -n "$acl_shlibext"; then
  17801. if test -f "$dir/$libname$shrext"; then
  17802. found_dir="$dir"
  17803. found_so="$dir/$libname$shrext"
  17804. else
  17805. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17806. ver=`(cd "$dir" && \
  17807. for f in "$libname$shrext".*; do echo "$f"; done \
  17808. | sed -e "s,^$libname$shrext\\\\.,," \
  17809. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17810. | sed 1q ) 2>/dev/null`
  17811. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17812. found_dir="$dir"
  17813. found_so="$dir/$libname$shrext.$ver"
  17814. fi
  17815. else
  17816. eval library_names=\"$acl_library_names_spec\"
  17817. for f in $library_names; do
  17818. if test -f "$dir/$f"; then
  17819. found_dir="$dir"
  17820. found_so="$dir/$f"
  17821. break
  17822. fi
  17823. done
  17824. fi
  17825. fi
  17826. fi
  17827. if test "X$found_dir" = "X"; then
  17828. if test -f "$dir/$libname.$acl_libext"; then
  17829. found_dir="$dir"
  17830. found_a="$dir/$libname.$acl_libext"
  17831. fi
  17832. fi
  17833. if test "X$found_dir" != "X"; then
  17834. if test -f "$dir/$libname.la"; then
  17835. found_la="$dir/$libname.la"
  17836. fi
  17837. fi
  17838. fi
  17839. if test "X$found_dir" = "X"; then
  17840. for x in $LDFLAGS $LTLIBINTL; do
  17841. acl_save_prefix="$prefix"
  17842. prefix="$acl_final_prefix"
  17843. acl_save_exec_prefix="$exec_prefix"
  17844. exec_prefix="$acl_final_exec_prefix"
  17845. eval x=\"$x\"
  17846. exec_prefix="$acl_save_exec_prefix"
  17847. prefix="$acl_save_prefix"
  17848. case "$x" in
  17849. -L*)
  17850. dir=`echo "X$x" | sed -e 's/^X-L//'`
  17851. if test -n "$acl_shlibext"; then
  17852. if test -f "$dir/$libname$shrext"; then
  17853. found_dir="$dir"
  17854. found_so="$dir/$libname$shrext"
  17855. else
  17856. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  17857. ver=`(cd "$dir" && \
  17858. for f in "$libname$shrext".*; do echo "$f"; done \
  17859. | sed -e "s,^$libname$shrext\\\\.,," \
  17860. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  17861. | sed 1q ) 2>/dev/null`
  17862. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  17863. found_dir="$dir"
  17864. found_so="$dir/$libname$shrext.$ver"
  17865. fi
  17866. else
  17867. eval library_names=\"$acl_library_names_spec\"
  17868. for f in $library_names; do
  17869. if test -f "$dir/$f"; then
  17870. found_dir="$dir"
  17871. found_so="$dir/$f"
  17872. break
  17873. fi
  17874. done
  17875. fi
  17876. fi
  17877. fi
  17878. if test "X$found_dir" = "X"; then
  17879. if test -f "$dir/$libname.$acl_libext"; then
  17880. found_dir="$dir"
  17881. found_a="$dir/$libname.$acl_libext"
  17882. fi
  17883. fi
  17884. if test "X$found_dir" != "X"; then
  17885. if test -f "$dir/$libname.la"; then
  17886. found_la="$dir/$libname.la"
  17887. fi
  17888. fi
  17889. ;;
  17890. esac
  17891. if test "X$found_dir" != "X"; then
  17892. break
  17893. fi
  17894. done
  17895. fi
  17896. if test "X$found_dir" != "X"; then
  17897. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  17898. if test "X$found_so" != "X"; then
  17899. if test "$enable_rpath" = no \
  17900. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  17901. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  17902. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  17903. else
  17904. haveit=
  17905. for x in $ltrpathdirs; do
  17906. if test "X$x" = "X$found_dir"; then
  17907. haveit=yes
  17908. break
  17909. fi
  17910. done
  17911. if test -z "$haveit"; then
  17912. ltrpathdirs="$ltrpathdirs $found_dir"
  17913. fi
  17914. if test "$acl_hardcode_direct" = yes; then
  17915. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  17916. else
  17917. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  17918. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  17919. haveit=
  17920. for x in $rpathdirs; do
  17921. if test "X$x" = "X$found_dir"; then
  17922. haveit=yes
  17923. break
  17924. fi
  17925. done
  17926. if test -z "$haveit"; then
  17927. rpathdirs="$rpathdirs $found_dir"
  17928. fi
  17929. else
  17930. haveit=
  17931. for x in $LDFLAGS $LIBINTL; do
  17932. acl_save_prefix="$prefix"
  17933. prefix="$acl_final_prefix"
  17934. acl_save_exec_prefix="$exec_prefix"
  17935. exec_prefix="$acl_final_exec_prefix"
  17936. eval x=\"$x\"
  17937. exec_prefix="$acl_save_exec_prefix"
  17938. prefix="$acl_save_prefix"
  17939. if test "X$x" = "X-L$found_dir"; then
  17940. haveit=yes
  17941. break
  17942. fi
  17943. done
  17944. if test -z "$haveit"; then
  17945. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  17946. fi
  17947. if test "$acl_hardcode_minus_L" != no; then
  17948. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  17949. else
  17950. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17951. fi
  17952. fi
  17953. fi
  17954. fi
  17955. else
  17956. if test "X$found_a" != "X"; then
  17957. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  17958. else
  17959. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  17960. fi
  17961. fi
  17962. additional_includedir=
  17963. case "$found_dir" in
  17964. */$acl_libdirstem | */$acl_libdirstem/)
  17965. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17966. if test "$name" = 'intl'; then
  17967. LIBINTL_PREFIX="$basedir"
  17968. fi
  17969. additional_includedir="$basedir/include"
  17970. ;;
  17971. */$acl_libdirstem2 | */$acl_libdirstem2/)
  17972. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  17973. if test "$name" = 'intl'; then
  17974. LIBINTL_PREFIX="$basedir"
  17975. fi
  17976. additional_includedir="$basedir/include"
  17977. ;;
  17978. esac
  17979. if test "X$additional_includedir" != "X"; then
  17980. if test "X$additional_includedir" != "X/usr/include"; then
  17981. haveit=
  17982. if test "X$additional_includedir" = "X/usr/local/include"; then
  17983. if test -n "$GCC"; then
  17984. case $host_os in
  17985. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17986. esac
  17987. fi
  17988. fi
  17989. if test -z "$haveit"; then
  17990. for x in $CPPFLAGS $INCINTL; do
  17991. acl_save_prefix="$prefix"
  17992. prefix="$acl_final_prefix"
  17993. acl_save_exec_prefix="$exec_prefix"
  17994. exec_prefix="$acl_final_exec_prefix"
  17995. eval x=\"$x\"
  17996. exec_prefix="$acl_save_exec_prefix"
  17997. prefix="$acl_save_prefix"
  17998. if test "X$x" = "X-I$additional_includedir"; then
  17999. haveit=yes
  18000. break
  18001. fi
  18002. done
  18003. if test -z "$haveit"; then
  18004. if test -d "$additional_includedir"; then
  18005. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  18006. fi
  18007. fi
  18008. fi
  18009. fi
  18010. fi
  18011. if test -n "$found_la"; then
  18012. save_libdir="$libdir"
  18013. case "$found_la" in
  18014. */* | *\\*) . "$found_la" ;;
  18015. *) . "./$found_la" ;;
  18016. esac
  18017. libdir="$save_libdir"
  18018. for dep in $dependency_libs; do
  18019. case "$dep" in
  18020. -L*)
  18021. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  18022. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  18023. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  18024. haveit=
  18025. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  18026. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  18027. if test -n "$GCC"; then
  18028. case $host_os in
  18029. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  18030. esac
  18031. fi
  18032. fi
  18033. if test -z "$haveit"; then
  18034. haveit=
  18035. for x in $LDFLAGS $LIBINTL; do
  18036. acl_save_prefix="$prefix"
  18037. prefix="$acl_final_prefix"
  18038. acl_save_exec_prefix="$exec_prefix"
  18039. exec_prefix="$acl_final_exec_prefix"
  18040. eval x=\"$x\"
  18041. exec_prefix="$acl_save_exec_prefix"
  18042. prefix="$acl_save_prefix"
  18043. if test "X$x" = "X-L$additional_libdir"; then
  18044. haveit=yes
  18045. break
  18046. fi
  18047. done
  18048. if test -z "$haveit"; then
  18049. if test -d "$additional_libdir"; then
  18050. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  18051. fi
  18052. fi
  18053. haveit=
  18054. for x in $LDFLAGS $LTLIBINTL; do
  18055. acl_save_prefix="$prefix"
  18056. prefix="$acl_final_prefix"
  18057. acl_save_exec_prefix="$exec_prefix"
  18058. exec_prefix="$acl_final_exec_prefix"
  18059. eval x=\"$x\"
  18060. exec_prefix="$acl_save_exec_prefix"
  18061. prefix="$acl_save_prefix"
  18062. if test "X$x" = "X-L$additional_libdir"; then
  18063. haveit=yes
  18064. break
  18065. fi
  18066. done
  18067. if test -z "$haveit"; then
  18068. if test -d "$additional_libdir"; then
  18069. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  18070. fi
  18071. fi
  18072. fi
  18073. fi
  18074. ;;
  18075. -R*)
  18076. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  18077. if test "$enable_rpath" != no; then
  18078. haveit=
  18079. for x in $rpathdirs; do
  18080. if test "X$x" = "X$dir"; then
  18081. haveit=yes
  18082. break
  18083. fi
  18084. done
  18085. if test -z "$haveit"; then
  18086. rpathdirs="$rpathdirs $dir"
  18087. fi
  18088. haveit=
  18089. for x in $ltrpathdirs; do
  18090. if test "X$x" = "X$dir"; then
  18091. haveit=yes
  18092. break
  18093. fi
  18094. done
  18095. if test -z "$haveit"; then
  18096. ltrpathdirs="$ltrpathdirs $dir"
  18097. fi
  18098. fi
  18099. ;;
  18100. -l*)
  18101. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  18102. ;;
  18103. *.la)
  18104. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  18105. ;;
  18106. *)
  18107. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  18108. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  18109. ;;
  18110. esac
  18111. done
  18112. fi
  18113. else
  18114. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  18115. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  18116. fi
  18117. fi
  18118. fi
  18119. done
  18120. done
  18121. if test "X$rpathdirs" != "X"; then
  18122. if test -n "$acl_hardcode_libdir_separator"; then
  18123. alldirs=
  18124. for found_dir in $rpathdirs; do
  18125. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  18126. done
  18127. acl_save_libdir="$libdir"
  18128. libdir="$alldirs"
  18129. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18130. libdir="$acl_save_libdir"
  18131. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  18132. else
  18133. for found_dir in $rpathdirs; do
  18134. acl_save_libdir="$libdir"
  18135. libdir="$found_dir"
  18136. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  18137. libdir="$acl_save_libdir"
  18138. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  18139. done
  18140. fi
  18141. fi
  18142. if test "X$ltrpathdirs" != "X"; then
  18143. for found_dir in $ltrpathdirs; do
  18144. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  18145. done
  18146. fi
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  18148. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  18149. if eval \${$gt_func_gnugettext_libintl+:} false; then :
  18150. $as_echo_n "(cached) " >&6
  18151. else
  18152. gt_save_CPPFLAGS="$CPPFLAGS"
  18153. CPPFLAGS="$CPPFLAGS $INCINTL"
  18154. gt_save_LIBS="$LIBS"
  18155. LIBS="$LIBS $LIBINTL"
  18156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18157. /* end confdefs.h. */
  18158. #include <libintl.h>
  18159. $gt_revision_test_code
  18160. extern int _nl_msg_cat_cntr;
  18161. extern
  18162. #ifdef __cplusplus
  18163. "C"
  18164. #endif
  18165. const char *_nl_expand_alias (const char *);
  18166. int
  18167. main ()
  18168. {
  18169. bindtextdomain ("", "");
  18170. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  18171. ;
  18172. return 0;
  18173. }
  18174. _ACEOF
  18175. if ac_fn_c_try_link "$LINENO"; then :
  18176. eval "$gt_func_gnugettext_libintl=yes"
  18177. else
  18178. eval "$gt_func_gnugettext_libintl=no"
  18179. fi
  18180. rm -f core conftest.err conftest.$ac_objext \
  18181. conftest$ac_exeext conftest.$ac_ext
  18182. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  18183. LIBS="$LIBS $LIBICONV"
  18184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18185. /* end confdefs.h. */
  18186. #include <libintl.h>
  18187. $gt_revision_test_code
  18188. extern int _nl_msg_cat_cntr;
  18189. extern
  18190. #ifdef __cplusplus
  18191. "C"
  18192. #endif
  18193. const char *_nl_expand_alias (const char *);
  18194. int
  18195. main ()
  18196. {
  18197. bindtextdomain ("", "");
  18198. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  18199. ;
  18200. return 0;
  18201. }
  18202. _ACEOF
  18203. if ac_fn_c_try_link "$LINENO"; then :
  18204. LIBINTL="$LIBINTL $LIBICONV"
  18205. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  18206. eval "$gt_func_gnugettext_libintl=yes"
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext \
  18209. conftest$ac_exeext conftest.$ac_ext
  18210. fi
  18211. CPPFLAGS="$gt_save_CPPFLAGS"
  18212. LIBS="$gt_save_LIBS"
  18213. fi
  18214. eval ac_res=\$$gt_func_gnugettext_libintl
  18215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18216. $as_echo "$ac_res" >&6; }
  18217. fi
  18218. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  18219. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  18220. && test "$PACKAGE" != gettext-runtime \
  18221. && test "$PACKAGE" != gettext-tools; }; then
  18222. gt_use_preinstalled_gnugettext=yes
  18223. else
  18224. LIBINTL=
  18225. LTLIBINTL=
  18226. INCINTL=
  18227. fi
  18228. if test -n "$INTL_MACOSX_LIBS"; then
  18229. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  18230. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  18231. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  18232. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  18233. fi
  18234. fi
  18235. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  18236. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  18237. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  18238. else
  18239. USE_NLS=no
  18240. fi
  18241. fi
  18242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  18243. $as_echo_n "checking whether to use NLS... " >&6; }
  18244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  18245. $as_echo "$USE_NLS" >&6; }
  18246. if test "$USE_NLS" = "yes"; then
  18247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  18248. $as_echo_n "checking where the gettext function comes from... " >&6; }
  18249. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  18250. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  18251. gt_source="external libintl"
  18252. else
  18253. gt_source="libc"
  18254. fi
  18255. else
  18256. gt_source="included intl directory"
  18257. fi
  18258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  18259. $as_echo "$gt_source" >&6; }
  18260. fi
  18261. if test "$USE_NLS" = "yes"; then
  18262. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  18263. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  18264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  18265. $as_echo_n "checking how to link with libintl... " >&6; }
  18266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  18267. $as_echo "$LIBINTL" >&6; }
  18268. for element in $INCINTL; do
  18269. haveit=
  18270. for x in $CPPFLAGS; do
  18271. acl_save_prefix="$prefix"
  18272. prefix="$acl_final_prefix"
  18273. acl_save_exec_prefix="$exec_prefix"
  18274. exec_prefix="$acl_final_exec_prefix"
  18275. eval x=\"$x\"
  18276. exec_prefix="$acl_save_exec_prefix"
  18277. prefix="$acl_save_prefix"
  18278. if test "X$x" = "X$element"; then
  18279. haveit=yes
  18280. break
  18281. fi
  18282. done
  18283. if test -z "$haveit"; then
  18284. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  18285. fi
  18286. done
  18287. fi
  18288. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  18289. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  18290. fi
  18291. POSUB=po
  18292. fi
  18293. INTLLIBS="$LIBINTL"
  18294. for ac_func in dngettext
  18295. do :
  18296. ac_fn_c_check_func "$LINENO" "dngettext" "ac_cv_func_dngettext"
  18297. if test "x$ac_cv_func_dngettext" = xyes; then :
  18298. cat >>confdefs.h <<_ACEOF
  18299. #define HAVE_DNGETTEXT 1
  18300. _ACEOF
  18301. fi
  18302. done
  18303. ac_fn_c_check_decl "$LINENO" "__NR_keyctl" "ac_cv_have_decl___NR_keyctl" "#include <sys/syscall.h>
  18304. "
  18305. if test "x$ac_cv_have_decl___NR_keyctl" = xyes; then :
  18306. have_key_syscalls=1
  18307. else
  18308. have_key_syscalls=0
  18309. fi
  18310. # Check whether --with-uidmin was given.
  18311. if test "${with_uidmin+set}" = set; then :
  18312. withval=$with_uidmin; opt_uidmin=$withval
  18313. fi
  18314. test -n "$opt_uidmin" ||
  18315. opt_uidmin=1000
  18316. cat >>confdefs.h <<_ACEOF
  18317. #define PAM_USERTYPE_UIDMIN $opt_uidmin
  18318. _ACEOF
  18319. # Check whether --with-sysuidmin was given.
  18320. if test "${with_sysuidmin+set}" = set; then :
  18321. withval=$with_sysuidmin; opt_sysuidmin=$withval
  18322. fi
  18323. test -n "$opt_sysuidmin" ||
  18324. opt_sysuidmin=101
  18325. cat >>confdefs.h <<_ACEOF
  18326. #define PAM_USERTYPE_SYSUIDMIN $opt_sysuidmin
  18327. _ACEOF
  18328. # Check whether --with-kernel-overflow-uid was given.
  18329. if test "${with_kernel_overflow_uid+set}" = set; then :
  18330. withval=$with_kernel_overflow_uid; opt_kerneloverflowuid=$withval
  18331. fi
  18332. test -n "$opt_kerneloverflowuid" ||
  18333. opt_kerneloverflowuid=65534
  18334. cat >>confdefs.h <<_ACEOF
  18335. #define PAM_USERTYPE_OVERFLOW_UID $opt_kerneloverflowuid
  18336. _ACEOF
  18337. # Check whether --with-systemdunitdir was given.
  18338. if test "${with_systemdunitdir+set}" = set; then :
  18339. withval=$with_systemdunitdir;
  18340. else
  18341. if test -n "$PKG_CONFIG" && \
  18342. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
  18343. ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
  18344. ac_status=$?
  18345. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18346. test $ac_status = 0; }; then
  18347. with_systemdunitdir=$($PKG_CONFIG --variable=systemdunitdir systemd)
  18348. else
  18349. with_systemdunitdir='${prefix}/lib/systemd/system'
  18350. fi
  18351. fi
  18352. systemdunitdir=$with_systemdunitdir
  18353. # Check whether --enable-unix was given.
  18354. if test "${enable_unix+set}" = set; then :
  18355. enableval=$enable_unix;
  18356. else
  18357. enable_unix=yes
  18358. fi
  18359. case "$enable_unix" in
  18360. yes|no) ;;
  18361. *) as_fn_error $? "bad value $enable_unix for --enable-unix option" "$LINENO" 5 ;;
  18362. esac
  18363. # Check whether --with-misc-conv-bufsize was given.
  18364. if test "${with_misc_conv_bufsize+set}" = set; then :
  18365. withval=$with_misc_conv_bufsize;
  18366. else
  18367. with_misc_conv_bufsize=4096
  18368. fi
  18369. cat >>confdefs.h <<_ACEOF
  18370. #define PAM_MISC_CONV_BUFSIZE $with_misc_conv_bufsize
  18371. _ACEOF
  18372. if test "$have_key_syscalls" = 1; then
  18373. COND_BUILD_PAM_KEYINIT_TRUE=
  18374. COND_BUILD_PAM_KEYINIT_FALSE='#'
  18375. else
  18376. COND_BUILD_PAM_KEYINIT_TRUE='#'
  18377. COND_BUILD_PAM_KEYINIT_FALSE=
  18378. fi
  18379. if test "$ac_cv_func_logwtmp" = yes; then
  18380. COND_BUILD_PAM_LASTLOG_TRUE=
  18381. COND_BUILD_PAM_LASTLOG_FALSE='#'
  18382. else
  18383. COND_BUILD_PAM_LASTLOG_TRUE='#'
  18384. COND_BUILD_PAM_LASTLOG_FALSE=
  18385. fi
  18386. if test "$ac_cv_func_unshare" = yes; then
  18387. COND_BUILD_PAM_NAMESPACE_TRUE=
  18388. COND_BUILD_PAM_NAMESPACE_FALSE='#'
  18389. else
  18390. COND_BUILD_PAM_NAMESPACE_TRUE='#'
  18391. COND_BUILD_PAM_NAMESPACE_FALSE=
  18392. fi
  18393. if test "$ac_cv_func_ruserok_af" = yes || test "$ac_cv_func_ruserok" = yes; then
  18394. COND_BUILD_PAM_RHOSTS_TRUE=
  18395. COND_BUILD_PAM_RHOSTS_FALSE='#'
  18396. else
  18397. COND_BUILD_PAM_RHOSTS_TRUE='#'
  18398. COND_BUILD_PAM_RHOSTS_FALSE=
  18399. fi
  18400. if test -n "$LIBSELINUX"; then
  18401. COND_BUILD_PAM_SELINUX_TRUE=
  18402. COND_BUILD_PAM_SELINUX_FALSE='#'
  18403. else
  18404. COND_BUILD_PAM_SELINUX_TRUE='#'
  18405. COND_BUILD_PAM_SELINUX_FALSE=
  18406. fi
  18407. if test -n "$LIBSELINUX"; then
  18408. COND_BUILD_PAM_SEPERMIT_TRUE=
  18409. COND_BUILD_PAM_SEPERMIT_FALSE='#'
  18410. else
  18411. COND_BUILD_PAM_SEPERMIT_TRUE='#'
  18412. COND_BUILD_PAM_SEPERMIT_FALSE=
  18413. fi
  18414. if test "$ac_cv_func_quotactl" = yes; then
  18415. COND_BUILD_PAM_SETQUOTA_TRUE=
  18416. COND_BUILD_PAM_SETQUOTA_FALSE='#'
  18417. else
  18418. COND_BUILD_PAM_SETQUOTA_TRUE='#'
  18419. COND_BUILD_PAM_SETQUOTA_FALSE=
  18420. fi
  18421. if test "$HAVE_AUDIT_TTY_STATUS" = yes; then
  18422. COND_BUILD_PAM_TTY_AUDIT_TRUE=
  18423. COND_BUILD_PAM_TTY_AUDIT_FALSE='#'
  18424. else
  18425. COND_BUILD_PAM_TTY_AUDIT_TRUE='#'
  18426. COND_BUILD_PAM_TTY_AUDIT_FALSE=
  18427. fi
  18428. if test "$enable_unix" = yes; then
  18429. COND_BUILD_PAM_UNIX_TRUE=
  18430. COND_BUILD_PAM_UNIX_FALSE='#'
  18431. else
  18432. COND_BUILD_PAM_UNIX_TRUE='#'
  18433. COND_BUILD_PAM_UNIX_FALSE=
  18434. fi
  18435. if test -n "$LIBDB"; then
  18436. COND_BUILD_PAM_USERDB_TRUE=
  18437. COND_BUILD_PAM_USERDB_FALSE='#'
  18438. else
  18439. COND_BUILD_PAM_USERDB_TRUE='#'
  18440. COND_BUILD_PAM_USERDB_FALSE=
  18441. fi
  18442. ac_config_files="$ac_config_files Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile libpam_misc/Makefile conf/Makefile conf/pam_conv1/Makefile libpam/pam.pc libpam_misc/pam_misc.pc libpamc/pamc.pc po/Makefile.in Make.xml.rules modules/Makefile modules/pam_access/Makefile modules/pam_debug/Makefile modules/pam_deny/Makefile modules/pam_echo/Makefile modules/pam_env/Makefile modules/pam_faildelay/Makefile modules/pam_faillock/Makefile modules/pam_filter/Makefile modules/pam_filter/upperLOWER/Makefile modules/pam_ftp/Makefile modules/pam_group/Makefile modules/pam_issue/Makefile modules/pam_keyinit/Makefile modules/pam_lastlog/Makefile modules/pam_limits/Makefile modules/pam_listfile/Makefile modules/pam_localuser/Makefile modules/pam_loginuid/Makefile modules/pam_mail/Makefile modules/pam_mkhomedir/Makefile modules/pam_motd/Makefile modules/pam_namespace/Makefile modules/pam_namespace/pam_namespace_helper modules/pam_namespace/pam_namespace.service modules/pam_nologin/Makefile modules/pam_permit/Makefile modules/pam_pwhistory/Makefile modules/pam_rhosts/Makefile modules/pam_rootok/Makefile modules/pam_exec/Makefile modules/pam_securetty/Makefile modules/pam_selinux/Makefile modules/pam_sepermit/Makefile modules/pam_setquota/Makefile modules/pam_shells/Makefile modules/pam_stress/Makefile modules/pam_succeed_if/Makefile modules/pam_time/Makefile modules/pam_timestamp/Makefile modules/pam_tty_audit/Makefile modules/pam_umask/Makefile modules/pam_unix/Makefile modules/pam_userdb/Makefile modules/pam_usertype/Makefile modules/pam_warn/Makefile modules/pam_wheel/Makefile modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile doc/man/Makefile doc/sag/Makefile doc/adg/Makefile doc/mwg/Makefile examples/Makefile tests/Makefile xtests/Makefile"
  18443. cat >confcache <<\_ACEOF
  18444. # This file is a shell script that caches the results of configure
  18445. # tests run on this system so they can be shared between configure
  18446. # scripts and configure runs, see configure's option --config-cache.
  18447. # It is not useful on other systems. If it contains results you don't
  18448. # want to keep, you may remove or edit it.
  18449. #
  18450. # config.status only pays attention to the cache file if you give it
  18451. # the --recheck option to rerun configure.
  18452. #
  18453. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18454. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18455. # following values.
  18456. _ACEOF
  18457. # The following way of writing the cache mishandles newlines in values,
  18458. # but we know of no workaround that is simple, portable, and efficient.
  18459. # So, we kill variables containing newlines.
  18460. # Ultrix sh set writes to stderr and can't be redirected directly,
  18461. # and sets the high bit in the cache file unless we assign to the vars.
  18462. (
  18463. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18464. eval ac_val=\$$ac_var
  18465. case $ac_val in #(
  18466. *${as_nl}*)
  18467. case $ac_var in #(
  18468. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18469. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18470. esac
  18471. case $ac_var in #(
  18472. _ | IFS | as_nl) ;; #(
  18473. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18474. *) { eval $ac_var=; unset $ac_var;} ;;
  18475. esac ;;
  18476. esac
  18477. done
  18478. (set) 2>&1 |
  18479. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18480. *${as_nl}ac_space=\ *)
  18481. # `set' does not quote correctly, so add quotes: double-quote
  18482. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18483. sed -n \
  18484. "s/'/'\\\\''/g;
  18485. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18486. ;; #(
  18487. *)
  18488. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18489. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18490. ;;
  18491. esac |
  18492. sort
  18493. ) |
  18494. sed '
  18495. /^ac_cv_env_/b end
  18496. t clear
  18497. :clear
  18498. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18499. t end
  18500. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18501. :end' >>confcache
  18502. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18503. if test -w "$cache_file"; then
  18504. if test "x$cache_file" != "x/dev/null"; then
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18506. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18507. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18508. cat confcache >"$cache_file"
  18509. else
  18510. case $cache_file in #(
  18511. */* | ?:*)
  18512. mv -f confcache "$cache_file"$$ &&
  18513. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18514. *)
  18515. mv -f confcache "$cache_file" ;;
  18516. esac
  18517. fi
  18518. fi
  18519. else
  18520. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18521. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18522. fi
  18523. fi
  18524. rm -f confcache
  18525. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18526. # Let make expand exec_prefix.
  18527. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18528. DEFS=-DHAVE_CONFIG_H
  18529. ac_libobjs=
  18530. ac_ltlibobjs=
  18531. U=
  18532. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18533. # 1. Remove the extension, and $U if already installed.
  18534. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18535. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18536. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18537. # will be set to the directory where LIBOBJS objects are built.
  18538. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18539. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18540. done
  18541. LIBOBJS=$ac_libobjs
  18542. LTLIBOBJS=$ac_ltlibobjs
  18543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18544. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18545. if test -n "$am_sleep_pid"; then
  18546. # Hide warnings about reused PIDs.
  18547. wait $am_sleep_pid 2>/dev/null
  18548. fi
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18550. $as_echo "done" >&6; }
  18551. if test -n "$EXEEXT"; then
  18552. am__EXEEXT_TRUE=
  18553. am__EXEEXT_FALSE='#'
  18554. else
  18555. am__EXEEXT_TRUE='#'
  18556. am__EXEEXT_FALSE=
  18557. fi
  18558. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18559. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18560. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18561. fi
  18562. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18563. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18564. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18565. fi
  18566. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18567. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18568. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18569. fi
  18570. if test -z "${HAVE_VERSIONING_TRUE}" && test -z "${HAVE_VERSIONING_FALSE}"; then
  18571. as_fn_error $? "conditional \"HAVE_VERSIONING\" was never defined.
  18572. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18573. fi
  18574. if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
  18575. as_fn_error $? "conditional \"HAVE_DOC\" was never defined.
  18576. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18577. fi
  18578. if test -z "${COND_USE_OPENSSL_TRUE}" && test -z "${COND_USE_OPENSSL_FALSE}"; then
  18579. as_fn_error $? "conditional \"COND_USE_OPENSSL\" was never defined.
  18580. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18581. fi
  18582. if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
  18583. as_fn_error $? "conditional \"ENABLE_REGENERATE_MAN\" was never defined.
  18584. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18585. fi
  18586. if test -z "${ENABLE_GENERATE_PDF_TRUE}" && test -z "${ENABLE_GENERATE_PDF_FALSE}"; then
  18587. as_fn_error $? "conditional \"ENABLE_GENERATE_PDF\" was never defined.
  18588. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18589. fi
  18590. if test -z "${COND_BUILD_PAM_KEYINIT_TRUE}" && test -z "${COND_BUILD_PAM_KEYINIT_FALSE}"; then
  18591. as_fn_error $? "conditional \"COND_BUILD_PAM_KEYINIT\" was never defined.
  18592. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18593. fi
  18594. if test -z "${COND_BUILD_PAM_LASTLOG_TRUE}" && test -z "${COND_BUILD_PAM_LASTLOG_FALSE}"; then
  18595. as_fn_error $? "conditional \"COND_BUILD_PAM_LASTLOG\" was never defined.
  18596. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18597. fi
  18598. if test -z "${COND_BUILD_PAM_NAMESPACE_TRUE}" && test -z "${COND_BUILD_PAM_NAMESPACE_FALSE}"; then
  18599. as_fn_error $? "conditional \"COND_BUILD_PAM_NAMESPACE\" was never defined.
  18600. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18601. fi
  18602. if test -z "${COND_BUILD_PAM_RHOSTS_TRUE}" && test -z "${COND_BUILD_PAM_RHOSTS_FALSE}"; then
  18603. as_fn_error $? "conditional \"COND_BUILD_PAM_RHOSTS\" was never defined.
  18604. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18605. fi
  18606. if test -z "${COND_BUILD_PAM_SELINUX_TRUE}" && test -z "${COND_BUILD_PAM_SELINUX_FALSE}"; then
  18607. as_fn_error $? "conditional \"COND_BUILD_PAM_SELINUX\" was never defined.
  18608. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18609. fi
  18610. if test -z "${COND_BUILD_PAM_SEPERMIT_TRUE}" && test -z "${COND_BUILD_PAM_SEPERMIT_FALSE}"; then
  18611. as_fn_error $? "conditional \"COND_BUILD_PAM_SEPERMIT\" was never defined.
  18612. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18613. fi
  18614. if test -z "${COND_BUILD_PAM_SETQUOTA_TRUE}" && test -z "${COND_BUILD_PAM_SETQUOTA_FALSE}"; then
  18615. as_fn_error $? "conditional \"COND_BUILD_PAM_SETQUOTA\" was never defined.
  18616. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18617. fi
  18618. if test -z "${COND_BUILD_PAM_TTY_AUDIT_TRUE}" && test -z "${COND_BUILD_PAM_TTY_AUDIT_FALSE}"; then
  18619. as_fn_error $? "conditional \"COND_BUILD_PAM_TTY_AUDIT\" was never defined.
  18620. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18621. fi
  18622. if test -z "${COND_BUILD_PAM_UNIX_TRUE}" && test -z "${COND_BUILD_PAM_UNIX_FALSE}"; then
  18623. as_fn_error $? "conditional \"COND_BUILD_PAM_UNIX\" was never defined.
  18624. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18625. fi
  18626. if test -z "${COND_BUILD_PAM_USERDB_TRUE}" && test -z "${COND_BUILD_PAM_USERDB_FALSE}"; then
  18627. as_fn_error $? "conditional \"COND_BUILD_PAM_USERDB\" was never defined.
  18628. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18629. fi
  18630. : "${CONFIG_STATUS=./config.status}"
  18631. ac_write_fail=0
  18632. ac_clean_files_save=$ac_clean_files
  18633. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18634. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18635. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18636. as_write_fail=0
  18637. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18638. #! $SHELL
  18639. # Generated by $as_me.
  18640. # Run this file to recreate the current configuration.
  18641. # Compiler output produced by configure, useful for debugging
  18642. # configure, is in config.log if it exists.
  18643. debug=false
  18644. ac_cs_recheck=false
  18645. ac_cs_silent=false
  18646. SHELL=\${CONFIG_SHELL-$SHELL}
  18647. export SHELL
  18648. _ASEOF
  18649. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18650. ## -------------------- ##
  18651. ## M4sh Initialization. ##
  18652. ## -------------------- ##
  18653. # Be more Bourne compatible
  18654. DUALCASE=1; export DUALCASE # for MKS sh
  18655. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18656. emulate sh
  18657. NULLCMD=:
  18658. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18659. # is contrary to our usage. Disable this feature.
  18660. alias -g '${1+"$@"}'='"$@"'
  18661. setopt NO_GLOB_SUBST
  18662. else
  18663. case `(set -o) 2>/dev/null` in #(
  18664. *posix*) :
  18665. set -o posix ;; #(
  18666. *) :
  18667. ;;
  18668. esac
  18669. fi
  18670. as_nl='
  18671. '
  18672. export as_nl
  18673. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18674. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18675. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18676. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18677. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18678. # but without wasting forks for bash or zsh.
  18679. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18680. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18681. as_echo='print -r --'
  18682. as_echo_n='print -rn --'
  18683. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18684. as_echo='printf %s\n'
  18685. as_echo_n='printf %s'
  18686. else
  18687. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18688. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18689. as_echo_n='/usr/ucb/echo -n'
  18690. else
  18691. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18692. as_echo_n_body='eval
  18693. arg=$1;
  18694. case $arg in #(
  18695. *"$as_nl"*)
  18696. expr "X$arg" : "X\\(.*\\)$as_nl";
  18697. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18698. esac;
  18699. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18700. '
  18701. export as_echo_n_body
  18702. as_echo_n='sh -c $as_echo_n_body as_echo'
  18703. fi
  18704. export as_echo_body
  18705. as_echo='sh -c $as_echo_body as_echo'
  18706. fi
  18707. # The user is always right.
  18708. if test "${PATH_SEPARATOR+set}" != set; then
  18709. PATH_SEPARATOR=:
  18710. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18711. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18712. PATH_SEPARATOR=';'
  18713. }
  18714. fi
  18715. # IFS
  18716. # We need space, tab and new line, in precisely that order. Quoting is
  18717. # there to prevent editors from complaining about space-tab.
  18718. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18719. # splitting by setting IFS to empty value.)
  18720. IFS=" "" $as_nl"
  18721. # Find who we are. Look in the path if we contain no directory separator.
  18722. as_myself=
  18723. case $0 in #((
  18724. *[\\/]* ) as_myself=$0 ;;
  18725. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18726. for as_dir in $PATH
  18727. do
  18728. IFS=$as_save_IFS
  18729. test -z "$as_dir" && as_dir=.
  18730. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18731. done
  18732. IFS=$as_save_IFS
  18733. ;;
  18734. esac
  18735. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18736. # in which case we are not to be found in the path.
  18737. if test "x$as_myself" = x; then
  18738. as_myself=$0
  18739. fi
  18740. if test ! -f "$as_myself"; then
  18741. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18742. exit 1
  18743. fi
  18744. # Unset variables that we do not need and which cause bugs (e.g. in
  18745. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18746. # suppresses any "Segmentation fault" message there. '((' could
  18747. # trigger a bug in pdksh 5.2.14.
  18748. for as_var in BASH_ENV ENV MAIL MAILPATH
  18749. do eval test x\${$as_var+set} = xset \
  18750. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18751. done
  18752. PS1='$ '
  18753. PS2='> '
  18754. PS4='+ '
  18755. # NLS nuisances.
  18756. LC_ALL=C
  18757. export LC_ALL
  18758. LANGUAGE=C
  18759. export LANGUAGE
  18760. # CDPATH.
  18761. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18762. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18763. # ----------------------------------------
  18764. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18765. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18766. # script with STATUS, using 1 if that was 0.
  18767. as_fn_error ()
  18768. {
  18769. as_status=$1; test $as_status -eq 0 && as_status=1
  18770. if test "$4"; then
  18771. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18772. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18773. fi
  18774. $as_echo "$as_me: error: $2" >&2
  18775. as_fn_exit $as_status
  18776. } # as_fn_error
  18777. # as_fn_set_status STATUS
  18778. # -----------------------
  18779. # Set $? to STATUS, without forking.
  18780. as_fn_set_status ()
  18781. {
  18782. return $1
  18783. } # as_fn_set_status
  18784. # as_fn_exit STATUS
  18785. # -----------------
  18786. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18787. as_fn_exit ()
  18788. {
  18789. set +e
  18790. as_fn_set_status $1
  18791. exit $1
  18792. } # as_fn_exit
  18793. # as_fn_unset VAR
  18794. # ---------------
  18795. # Portably unset VAR.
  18796. as_fn_unset ()
  18797. {
  18798. { eval $1=; unset $1;}
  18799. }
  18800. as_unset=as_fn_unset
  18801. # as_fn_append VAR VALUE
  18802. # ----------------------
  18803. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18804. # advantage of any shell optimizations that allow amortized linear growth over
  18805. # repeated appends, instead of the typical quadratic growth present in naive
  18806. # implementations.
  18807. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18808. eval 'as_fn_append ()
  18809. {
  18810. eval $1+=\$2
  18811. }'
  18812. else
  18813. as_fn_append ()
  18814. {
  18815. eval $1=\$$1\$2
  18816. }
  18817. fi # as_fn_append
  18818. # as_fn_arith ARG...
  18819. # ------------------
  18820. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18821. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18822. # must be portable across $(()) and expr.
  18823. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18824. eval 'as_fn_arith ()
  18825. {
  18826. as_val=$(( $* ))
  18827. }'
  18828. else
  18829. as_fn_arith ()
  18830. {
  18831. as_val=`expr "$@" || test $? -eq 1`
  18832. }
  18833. fi # as_fn_arith
  18834. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18835. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18836. as_expr=expr
  18837. else
  18838. as_expr=false
  18839. fi
  18840. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18841. as_basename=basename
  18842. else
  18843. as_basename=false
  18844. fi
  18845. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18846. as_dirname=dirname
  18847. else
  18848. as_dirname=false
  18849. fi
  18850. as_me=`$as_basename -- "$0" ||
  18851. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18852. X"$0" : 'X\(//\)$' \| \
  18853. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18854. $as_echo X/"$0" |
  18855. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18856. s//\1/
  18857. q
  18858. }
  18859. /^X\/\(\/\/\)$/{
  18860. s//\1/
  18861. q
  18862. }
  18863. /^X\/\(\/\).*/{
  18864. s//\1/
  18865. q
  18866. }
  18867. s/.*/./; q'`
  18868. # Avoid depending upon Character Ranges.
  18869. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18870. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18871. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18872. as_cr_digits='0123456789'
  18873. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18874. ECHO_C= ECHO_N= ECHO_T=
  18875. case `echo -n x` in #(((((
  18876. -n*)
  18877. case `echo 'xy\c'` in
  18878. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18879. xy) ECHO_C='\c';;
  18880. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18881. ECHO_T=' ';;
  18882. esac;;
  18883. *)
  18884. ECHO_N='-n';;
  18885. esac
  18886. rm -f conf$$ conf$$.exe conf$$.file
  18887. if test -d conf$$.dir; then
  18888. rm -f conf$$.dir/conf$$.file
  18889. else
  18890. rm -f conf$$.dir
  18891. mkdir conf$$.dir 2>/dev/null
  18892. fi
  18893. if (echo >conf$$.file) 2>/dev/null; then
  18894. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18895. as_ln_s='ln -s'
  18896. # ... but there are two gotchas:
  18897. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18898. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18899. # In both cases, we have to default to `cp -pR'.
  18900. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18901. as_ln_s='cp -pR'
  18902. elif ln conf$$.file conf$$ 2>/dev/null; then
  18903. as_ln_s=ln
  18904. else
  18905. as_ln_s='cp -pR'
  18906. fi
  18907. else
  18908. as_ln_s='cp -pR'
  18909. fi
  18910. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18911. rmdir conf$$.dir 2>/dev/null
  18912. # as_fn_mkdir_p
  18913. # -------------
  18914. # Create "$as_dir" as a directory, including parents if necessary.
  18915. as_fn_mkdir_p ()
  18916. {
  18917. case $as_dir in #(
  18918. -*) as_dir=./$as_dir;;
  18919. esac
  18920. test -d "$as_dir" || eval $as_mkdir_p || {
  18921. as_dirs=
  18922. while :; do
  18923. case $as_dir in #(
  18924. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18925. *) as_qdir=$as_dir;;
  18926. esac
  18927. as_dirs="'$as_qdir' $as_dirs"
  18928. as_dir=`$as_dirname -- "$as_dir" ||
  18929. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18930. X"$as_dir" : 'X\(//\)[^/]' \| \
  18931. X"$as_dir" : 'X\(//\)$' \| \
  18932. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18933. $as_echo X"$as_dir" |
  18934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18935. s//\1/
  18936. q
  18937. }
  18938. /^X\(\/\/\)[^/].*/{
  18939. s//\1/
  18940. q
  18941. }
  18942. /^X\(\/\/\)$/{
  18943. s//\1/
  18944. q
  18945. }
  18946. /^X\(\/\).*/{
  18947. s//\1/
  18948. q
  18949. }
  18950. s/.*/./; q'`
  18951. test -d "$as_dir" && break
  18952. done
  18953. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18954. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18955. } # as_fn_mkdir_p
  18956. if mkdir -p . 2>/dev/null; then
  18957. as_mkdir_p='mkdir -p "$as_dir"'
  18958. else
  18959. test -d ./-p && rmdir ./-p
  18960. as_mkdir_p=false
  18961. fi
  18962. # as_fn_executable_p FILE
  18963. # -----------------------
  18964. # Test if FILE is an executable regular file.
  18965. as_fn_executable_p ()
  18966. {
  18967. test -f "$1" && test -x "$1"
  18968. } # as_fn_executable_p
  18969. as_test_x='test -x'
  18970. as_executable_p=as_fn_executable_p
  18971. # Sed expression to map a string onto a valid CPP name.
  18972. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18973. # Sed expression to map a string onto a valid variable name.
  18974. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18975. exec 6>&1
  18976. ## ----------------------------------- ##
  18977. ## Main body of $CONFIG_STATUS script. ##
  18978. ## ----------------------------------- ##
  18979. _ASEOF
  18980. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18982. # Save the log message, to keep $0 and so on meaningful, and to
  18983. # report actual input values of CONFIG_FILES etc. instead of their
  18984. # values after options handling.
  18985. ac_log="
  18986. This file was extended by Linux-PAM $as_me 1.5.2, which was
  18987. generated by GNU Autoconf 2.69. Invocation command line was
  18988. CONFIG_FILES = $CONFIG_FILES
  18989. CONFIG_HEADERS = $CONFIG_HEADERS
  18990. CONFIG_LINKS = $CONFIG_LINKS
  18991. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18992. $ $0 $@
  18993. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18994. "
  18995. _ACEOF
  18996. case $ac_config_files in *"
  18997. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18998. esac
  18999. case $ac_config_headers in *"
  19000. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19001. esac
  19002. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19003. # Files that config.status was made for.
  19004. config_files="$ac_config_files"
  19005. config_headers="$ac_config_headers"
  19006. config_commands="$ac_config_commands"
  19007. _ACEOF
  19008. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19009. ac_cs_usage="\
  19010. \`$as_me' instantiates files and other configuration actions
  19011. from templates according to the current configuration. Unless the files
  19012. and actions are specified as TAGs, all are instantiated by default.
  19013. Usage: $0 [OPTION]... [TAG]...
  19014. -h, --help print this help, then exit
  19015. -V, --version print version number and configuration settings, then exit
  19016. --config print configuration, then exit
  19017. -q, --quiet, --silent
  19018. do not print progress messages
  19019. -d, --debug don't remove temporary files
  19020. --recheck update $as_me by reconfiguring in the same conditions
  19021. --file=FILE[:TEMPLATE]
  19022. instantiate the configuration file FILE
  19023. --header=FILE[:TEMPLATE]
  19024. instantiate the configuration header FILE
  19025. Configuration files:
  19026. $config_files
  19027. Configuration headers:
  19028. $config_headers
  19029. Configuration commands:
  19030. $config_commands
  19031. Report bugs to the package provider."
  19032. _ACEOF
  19033. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19034. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19035. ac_cs_version="\\
  19036. Linux-PAM config.status 1.5.2
  19037. configured by $0, generated by GNU Autoconf 2.69,
  19038. with options \\"\$ac_cs_config\\"
  19039. Copyright (C) Free Software Foundation, Inc.
  19040. This config.status script is free software; the Free Software Foundation
  19041. gives unlimited permission to copy, distribute and modify it."
  19042. ac_pwd='$ac_pwd'
  19043. srcdir='$srcdir'
  19044. INSTALL='$INSTALL'
  19045. MKDIR_P='$MKDIR_P'
  19046. AWK='$AWK'
  19047. test -n "\$AWK" || AWK=awk
  19048. _ACEOF
  19049. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19050. # The default lists apply if the user does not specify any file.
  19051. ac_need_defaults=:
  19052. while test $# != 0
  19053. do
  19054. case $1 in
  19055. --*=?*)
  19056. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19057. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19058. ac_shift=:
  19059. ;;
  19060. --*=)
  19061. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19062. ac_optarg=
  19063. ac_shift=:
  19064. ;;
  19065. *)
  19066. ac_option=$1
  19067. ac_optarg=$2
  19068. ac_shift=shift
  19069. ;;
  19070. esac
  19071. case $ac_option in
  19072. # Handling of the options.
  19073. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19074. ac_cs_recheck=: ;;
  19075. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19076. $as_echo "$ac_cs_version"; exit ;;
  19077. --config | --confi | --conf | --con | --co | --c )
  19078. $as_echo "$ac_cs_config"; exit ;;
  19079. --debug | --debu | --deb | --de | --d | -d )
  19080. debug=: ;;
  19081. --file | --fil | --fi | --f )
  19082. $ac_shift
  19083. case $ac_optarg in
  19084. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19085. '') as_fn_error $? "missing file argument" ;;
  19086. esac
  19087. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19088. ac_need_defaults=false;;
  19089. --header | --heade | --head | --hea )
  19090. $ac_shift
  19091. case $ac_optarg in
  19092. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19093. esac
  19094. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19095. ac_need_defaults=false;;
  19096. --he | --h)
  19097. # Conflict between --help and --header
  19098. as_fn_error $? "ambiguous option: \`$1'
  19099. Try \`$0 --help' for more information.";;
  19100. --help | --hel | -h )
  19101. $as_echo "$ac_cs_usage"; exit ;;
  19102. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19103. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19104. ac_cs_silent=: ;;
  19105. # This is an error.
  19106. -*) as_fn_error $? "unrecognized option: \`$1'
  19107. Try \`$0 --help' for more information." ;;
  19108. *) as_fn_append ac_config_targets " $1"
  19109. ac_need_defaults=false ;;
  19110. esac
  19111. shift
  19112. done
  19113. ac_configure_extra_args=
  19114. if $ac_cs_silent; then
  19115. exec 6>/dev/null
  19116. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19117. fi
  19118. _ACEOF
  19119. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19120. if \$ac_cs_recheck; then
  19121. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19122. shift
  19123. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19124. CONFIG_SHELL='$SHELL'
  19125. export CONFIG_SHELL
  19126. exec "\$@"
  19127. fi
  19128. _ACEOF
  19129. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19130. exec 5>>config.log
  19131. {
  19132. echo
  19133. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19134. ## Running $as_me. ##
  19135. _ASBOX
  19136. $as_echo "$ac_log"
  19137. } >&5
  19138. _ACEOF
  19139. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19140. #
  19141. # INIT-COMMANDS
  19142. #
  19143. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  19144. # The HP-UX ksh and POSIX shell print the target directory to stdout
  19145. # if CDPATH is set.
  19146. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19147. sed_quote_subst='$sed_quote_subst'
  19148. double_quote_subst='$double_quote_subst'
  19149. delay_variable_subst='$delay_variable_subst'
  19150. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  19151. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  19152. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  19153. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  19154. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  19155. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  19156. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  19157. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  19158. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  19159. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  19160. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  19161. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  19162. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  19163. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  19164. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  19165. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  19166. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  19167. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  19168. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  19169. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  19170. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  19171. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  19172. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  19173. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  19174. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  19175. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  19176. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  19177. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  19178. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  19179. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  19180. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  19181. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  19182. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  19183. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  19184. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  19185. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  19186. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  19187. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  19188. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  19189. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  19190. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  19191. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  19192. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  19193. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  19194. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  19195. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  19196. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  19197. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19198. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19199. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  19200. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  19201. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  19202. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  19203. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  19204. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  19205. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  19206. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  19207. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  19208. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  19209. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19210. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  19211. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  19212. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  19213. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  19214. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  19215. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  19216. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  19217. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  19218. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  19219. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  19220. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  19221. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  19222. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  19223. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  19224. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  19225. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  19226. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  19227. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  19228. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  19229. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  19230. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19231. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  19232. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  19233. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19234. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19235. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19236. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19237. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19238. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19239. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19240. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19241. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19242. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19243. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19244. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19245. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19246. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19247. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19248. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19249. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19250. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19251. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19252. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19253. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19254. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19255. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19256. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19257. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19258. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19259. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19260. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19261. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19262. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19263. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19264. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19265. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19266. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19267. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19268. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19269. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19270. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19271. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19272. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19273. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19274. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19275. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19276. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19277. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19278. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  19279. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  19280. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19281. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19282. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19283. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19284. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19285. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19286. LTCC='$LTCC'
  19287. LTCFLAGS='$LTCFLAGS'
  19288. compiler='$compiler_DEFAULT'
  19289. # A function that is used when there is no print builtin or printf.
  19290. func_fallback_echo ()
  19291. {
  19292. eval 'cat <<_LTECHO_EOF
  19293. \$1
  19294. _LTECHO_EOF'
  19295. }
  19296. # Quote evaled strings.
  19297. for var in SHELL \
  19298. ECHO \
  19299. PATH_SEPARATOR \
  19300. SED \
  19301. GREP \
  19302. EGREP \
  19303. FGREP \
  19304. LD \
  19305. NM \
  19306. LN_S \
  19307. lt_SP2NL \
  19308. lt_NL2SP \
  19309. reload_flag \
  19310. OBJDUMP \
  19311. deplibs_check_method \
  19312. file_magic_cmd \
  19313. file_magic_glob \
  19314. want_nocaseglob \
  19315. DLLTOOL \
  19316. sharedlib_from_linklib_cmd \
  19317. AR \
  19318. archiver_list_spec \
  19319. STRIP \
  19320. RANLIB \
  19321. CC \
  19322. CFLAGS \
  19323. compiler \
  19324. lt_cv_sys_global_symbol_pipe \
  19325. lt_cv_sys_global_symbol_to_cdecl \
  19326. lt_cv_sys_global_symbol_to_import \
  19327. lt_cv_sys_global_symbol_to_c_name_address \
  19328. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19329. lt_cv_nm_interface \
  19330. nm_file_list_spec \
  19331. lt_cv_truncate_bin \
  19332. lt_prog_compiler_no_builtin_flag \
  19333. lt_prog_compiler_pic \
  19334. lt_prog_compiler_wl \
  19335. lt_prog_compiler_static \
  19336. lt_cv_prog_compiler_c_o \
  19337. need_locks \
  19338. MANIFEST_TOOL \
  19339. DSYMUTIL \
  19340. NMEDIT \
  19341. LIPO \
  19342. OTOOL \
  19343. OTOOL64 \
  19344. shrext_cmds \
  19345. export_dynamic_flag_spec \
  19346. whole_archive_flag_spec \
  19347. compiler_needs_object \
  19348. with_gnu_ld \
  19349. allow_undefined_flag \
  19350. no_undefined_flag \
  19351. hardcode_libdir_flag_spec \
  19352. hardcode_libdir_separator \
  19353. exclude_expsyms \
  19354. include_expsyms \
  19355. file_list_spec \
  19356. variables_saved_for_relink \
  19357. libname_spec \
  19358. library_names_spec \
  19359. soname_spec \
  19360. install_override_mode \
  19361. finish_eval \
  19362. old_striplib \
  19363. striplib; do
  19364. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19365. *[\\\\\\\`\\"\\\$]*)
  19366. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19367. ;;
  19368. *)
  19369. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19370. ;;
  19371. esac
  19372. done
  19373. # Double-quote double-evaled strings.
  19374. for var in reload_cmds \
  19375. old_postinstall_cmds \
  19376. old_postuninstall_cmds \
  19377. old_archive_cmds \
  19378. extract_expsyms_cmds \
  19379. old_archive_from_new_cmds \
  19380. old_archive_from_expsyms_cmds \
  19381. archive_cmds \
  19382. archive_expsym_cmds \
  19383. module_cmds \
  19384. module_expsym_cmds \
  19385. export_symbols_cmds \
  19386. prelink_cmds \
  19387. postlink_cmds \
  19388. postinstall_cmds \
  19389. postuninstall_cmds \
  19390. finish_cmds \
  19391. sys_lib_search_path_spec \
  19392. configure_time_dlsearch_path \
  19393. configure_time_lt_sys_library_path; do
  19394. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19395. *[\\\\\\\`\\"\\\$]*)
  19396. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  19397. ;;
  19398. *)
  19399. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19400. ;;
  19401. esac
  19402. done
  19403. ac_aux_dir='$ac_aux_dir'
  19404. # See if we are running on zsh, and set the options that allow our
  19405. # commands through without removal of \ escapes INIT.
  19406. if test -n "\${ZSH_VERSION+set}"; then
  19407. setopt NO_GLOB_SUBST
  19408. fi
  19409. PACKAGE='$PACKAGE'
  19410. VERSION='$VERSION'
  19411. RM='$RM'
  19412. ofile='$ofile'
  19413. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19414. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19415. # from automake < 1.5.
  19416. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19417. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19418. LINGUAS="${LINGUAS-%UNSET%}"
  19419. _ACEOF
  19420. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19421. # Handling of arguments.
  19422. for ac_config_target in $ac_config_targets
  19423. do
  19424. case $ac_config_target in
  19425. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19426. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19427. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19428. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19429. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19430. "libpam/Makefile") CONFIG_FILES="$CONFIG_FILES libpam/Makefile" ;;
  19431. "libpamc/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/Makefile" ;;
  19432. "libpamc/test/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/test/Makefile" ;;
  19433. "libpam_misc/Makefile") CONFIG_FILES="$CONFIG_FILES libpam_misc/Makefile" ;;
  19434. "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
  19435. "conf/pam_conv1/Makefile") CONFIG_FILES="$CONFIG_FILES conf/pam_conv1/Makefile" ;;
  19436. "libpam/pam.pc") CONFIG_FILES="$CONFIG_FILES libpam/pam.pc" ;;
  19437. "libpam_misc/pam_misc.pc") CONFIG_FILES="$CONFIG_FILES libpam_misc/pam_misc.pc" ;;
  19438. "libpamc/pamc.pc") CONFIG_FILES="$CONFIG_FILES libpamc/pamc.pc" ;;
  19439. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19440. "Make.xml.rules") CONFIG_FILES="$CONFIG_FILES Make.xml.rules" ;;
  19441. "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
  19442. "modules/pam_access/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_access/Makefile" ;;
  19443. "modules/pam_debug/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_debug/Makefile" ;;
  19444. "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
  19445. "modules/pam_echo/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_echo/Makefile" ;;
  19446. "modules/pam_env/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_env/Makefile" ;;
  19447. "modules/pam_faildelay/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_faildelay/Makefile" ;;
  19448. "modules/pam_faillock/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_faillock/Makefile" ;;
  19449. "modules/pam_filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/Makefile" ;;
  19450. "modules/pam_filter/upperLOWER/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/upperLOWER/Makefile" ;;
  19451. "modules/pam_ftp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_ftp/Makefile" ;;
  19452. "modules/pam_group/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_group/Makefile" ;;
  19453. "modules/pam_issue/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_issue/Makefile" ;;
  19454. "modules/pam_keyinit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_keyinit/Makefile" ;;
  19455. "modules/pam_lastlog/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_lastlog/Makefile" ;;
  19456. "modules/pam_limits/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_limits/Makefile" ;;
  19457. "modules/pam_listfile/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_listfile/Makefile" ;;
  19458. "modules/pam_localuser/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_localuser/Makefile" ;;
  19459. "modules/pam_loginuid/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_loginuid/Makefile" ;;
  19460. "modules/pam_mail/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mail/Makefile" ;;
  19461. "modules/pam_mkhomedir/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mkhomedir/Makefile" ;;
  19462. "modules/pam_motd/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_motd/Makefile" ;;
  19463. "modules/pam_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_namespace/Makefile" ;;
  19464. "modules/pam_namespace/pam_namespace_helper") CONFIG_FILES="$CONFIG_FILES modules/pam_namespace/pam_namespace_helper" ;;
  19465. "modules/pam_namespace/pam_namespace.service") CONFIG_FILES="$CONFIG_FILES modules/pam_namespace/pam_namespace.service" ;;
  19466. "modules/pam_nologin/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_nologin/Makefile" ;;
  19467. "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
  19468. "modules/pam_pwhistory/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_pwhistory/Makefile" ;;
  19469. "modules/pam_rhosts/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rhosts/Makefile" ;;
  19470. "modules/pam_rootok/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rootok/Makefile" ;;
  19471. "modules/pam_exec/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_exec/Makefile" ;;
  19472. "modules/pam_securetty/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_securetty/Makefile" ;;
  19473. "modules/pam_selinux/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_selinux/Makefile" ;;
  19474. "modules/pam_sepermit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_sepermit/Makefile" ;;
  19475. "modules/pam_setquota/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_setquota/Makefile" ;;
  19476. "modules/pam_shells/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_shells/Makefile" ;;
  19477. "modules/pam_stress/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_stress/Makefile" ;;
  19478. "modules/pam_succeed_if/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_succeed_if/Makefile" ;;
  19479. "modules/pam_time/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_time/Makefile" ;;
  19480. "modules/pam_timestamp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_timestamp/Makefile" ;;
  19481. "modules/pam_tty_audit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tty_audit/Makefile" ;;
  19482. "modules/pam_umask/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_umask/Makefile" ;;
  19483. "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
  19484. "modules/pam_userdb/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_userdb/Makefile" ;;
  19485. "modules/pam_usertype/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_usertype/Makefile" ;;
  19486. "modules/pam_warn/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_warn/Makefile" ;;
  19487. "modules/pam_wheel/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_wheel/Makefile" ;;
  19488. "modules/pam_xauth/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_xauth/Makefile" ;;
  19489. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19490. "doc/specs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specs/Makefile" ;;
  19491. "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
  19492. "doc/sag/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sag/Makefile" ;;
  19493. "doc/adg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/adg/Makefile" ;;
  19494. "doc/mwg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/mwg/Makefile" ;;
  19495. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  19496. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  19497. "xtests/Makefile") CONFIG_FILES="$CONFIG_FILES xtests/Makefile" ;;
  19498. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19499. esac
  19500. done
  19501. # If the user did not use the arguments to specify the items to instantiate,
  19502. # then the envvar interface is used. Set only those that are not.
  19503. # We use the long form for the default assignment because of an extremely
  19504. # bizarre bug on SunOS 4.1.3.
  19505. if $ac_need_defaults; then
  19506. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19507. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19508. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19509. fi
  19510. # Have a temporary directory for convenience. Make it in the build tree
  19511. # simply because there is no reason against having it here, and in addition,
  19512. # creating and moving files from /tmp can sometimes cause problems.
  19513. # Hook for its removal unless debugging.
  19514. # Note that there is a small window in which the directory will not be cleaned:
  19515. # after its creation but before its name has been assigned to `$tmp'.
  19516. $debug ||
  19517. {
  19518. tmp= ac_tmp=
  19519. trap 'exit_status=$?
  19520. : "${ac_tmp:=$tmp}"
  19521. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19522. ' 0
  19523. trap 'as_fn_exit 1' 1 2 13 15
  19524. }
  19525. # Create a (secure) tmp directory for tmp files.
  19526. {
  19527. tmp=`(umask 077 && mktemp -d "./confXXXXXX")` &&
  19528. test -n "$tmp" && test -d "$tmp"
  19529. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19530. ac_tmp=$tmp
  19531. # Set up the scripts for CONFIG_FILES section.
  19532. # No need to generate them if there are no CONFIG_FILES.
  19533. # This happens for instance with `./config.status config.h'.
  19534. if test -n "$CONFIG_FILES"; then
  19535. ac_cr=`echo X | tr X '\015'`
  19536. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19537. # But we know of no other shell where ac_cr would be empty at this
  19538. # point, so we can use a bashism as a fallback.
  19539. if test "x$ac_cr" = x; then
  19540. eval ac_cr=\$\'\\r\'
  19541. fi
  19542. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19543. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19544. ac_cs_awk_cr='\\r'
  19545. else
  19546. ac_cs_awk_cr=$ac_cr
  19547. fi
  19548. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19549. _ACEOF
  19550. {
  19551. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19552. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19553. echo "_ACEOF"
  19554. } >conf$$subs.sh ||
  19555. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19556. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19557. ac_delim='%!_!# '
  19558. for ac_last_try in false false false false false :; do
  19559. . ./conf$$subs.sh ||
  19560. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19561. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19562. if test $ac_delim_n = $ac_delim_num; then
  19563. break
  19564. elif $ac_last_try; then
  19565. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19566. else
  19567. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19568. fi
  19569. done
  19570. rm -f conf$$subs.sh
  19571. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19572. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19573. _ACEOF
  19574. sed -n '
  19575. h
  19576. s/^/S["/; s/!.*/"]=/
  19577. p
  19578. g
  19579. s/^[^!]*!//
  19580. :repl
  19581. t repl
  19582. s/'"$ac_delim"'$//
  19583. t delim
  19584. :nl
  19585. h
  19586. s/\(.\{148\}\)..*/\1/
  19587. t more1
  19588. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19589. p
  19590. n
  19591. b repl
  19592. :more1
  19593. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19594. p
  19595. g
  19596. s/.\{148\}//
  19597. t nl
  19598. :delim
  19599. h
  19600. s/\(.\{148\}\)..*/\1/
  19601. t more2
  19602. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19603. p
  19604. b
  19605. :more2
  19606. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19607. p
  19608. g
  19609. s/.\{148\}//
  19610. t delim
  19611. ' <conf$$subs.awk | sed '
  19612. /^[^""]/{
  19613. N
  19614. s/\n//
  19615. }
  19616. ' >>$CONFIG_STATUS || ac_write_fail=1
  19617. rm -f conf$$subs.awk
  19618. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19619. _ACAWK
  19620. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19621. for (key in S) S_is_set[key] = 1
  19622. FS = ""
  19623. }
  19624. {
  19625. line = $ 0
  19626. nfields = split(line, field, "@")
  19627. substed = 0
  19628. len = length(field[1])
  19629. for (i = 2; i < nfields; i++) {
  19630. key = field[i]
  19631. keylen = length(key)
  19632. if (S_is_set[key]) {
  19633. value = S[key]
  19634. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19635. len += length(value) + length(field[++i])
  19636. substed = 1
  19637. } else
  19638. len += 1 + keylen
  19639. }
  19640. print line
  19641. }
  19642. _ACAWK
  19643. _ACEOF
  19644. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19645. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19646. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19647. else
  19648. cat
  19649. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19650. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19651. _ACEOF
  19652. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19653. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19654. # trailing colons and then remove the whole line if VPATH becomes empty
  19655. # (actually we leave an empty line to preserve line numbers).
  19656. if test "x$srcdir" = x.; then
  19657. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19658. h
  19659. s///
  19660. s/^/:/
  19661. s/[ ]*$/:/
  19662. s/:\$(srcdir):/:/g
  19663. s/:\${srcdir}:/:/g
  19664. s/:@srcdir@:/:/g
  19665. s/^:*//
  19666. s/:*$//
  19667. x
  19668. s/\(=[ ]*\).*/\1/
  19669. G
  19670. s/\n//
  19671. s/^[^=]*=[ ]*$//
  19672. }'
  19673. fi
  19674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19675. fi # test -n "$CONFIG_FILES"
  19676. # Set up the scripts for CONFIG_HEADERS section.
  19677. # No need to generate them if there are no CONFIG_HEADERS.
  19678. # This happens for instance with `./config.status Makefile'.
  19679. if test -n "$CONFIG_HEADERS"; then
  19680. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19681. BEGIN {
  19682. _ACEOF
  19683. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19684. # here-document in config.status, that substitutes the proper values into
  19685. # config.h.in to produce config.h.
  19686. # Create a delimiter string that does not exist in confdefs.h, to ease
  19687. # handling of long lines.
  19688. ac_delim='%!_!# '
  19689. for ac_last_try in false false :; do
  19690. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19691. if test -z "$ac_tt"; then
  19692. break
  19693. elif $ac_last_try; then
  19694. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19695. else
  19696. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19697. fi
  19698. done
  19699. # For the awk script, D is an array of macro values keyed by name,
  19700. # likewise P contains macro parameters if any. Preserve backslash
  19701. # newline sequences.
  19702. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19703. sed -n '
  19704. s/.\{148\}/&'"$ac_delim"'/g
  19705. t rset
  19706. :rset
  19707. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19708. t def
  19709. d
  19710. :def
  19711. s/\\$//
  19712. t bsnl
  19713. s/["\\]/\\&/g
  19714. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19715. D["\1"]=" \3"/p
  19716. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19717. d
  19718. :bsnl
  19719. s/["\\]/\\&/g
  19720. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19721. D["\1"]=" \3\\\\\\n"\\/p
  19722. t cont
  19723. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19724. t cont
  19725. d
  19726. :cont
  19727. n
  19728. s/.\{148\}/&'"$ac_delim"'/g
  19729. t clear
  19730. :clear
  19731. s/\\$//
  19732. t bsnlc
  19733. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19734. d
  19735. :bsnlc
  19736. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19737. b cont
  19738. ' <confdefs.h | sed '
  19739. s/'"$ac_delim"'/"\\\
  19740. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19741. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19742. for (key in D) D_is_set[key] = 1
  19743. FS = ""
  19744. }
  19745. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19746. line = \$ 0
  19747. split(line, arg, " ")
  19748. if (arg[1] == "#") {
  19749. defundef = arg[2]
  19750. mac1 = arg[3]
  19751. } else {
  19752. defundef = substr(arg[1], 2)
  19753. mac1 = arg[2]
  19754. }
  19755. split(mac1, mac2, "(") #)
  19756. macro = mac2[1]
  19757. prefix = substr(line, 1, index(line, defundef) - 1)
  19758. if (D_is_set[macro]) {
  19759. # Preserve the white space surrounding the "#".
  19760. print prefix "define", macro P[macro] D[macro]
  19761. next
  19762. } else {
  19763. # Replace #undef with comments. This is necessary, for example,
  19764. # in the case of _POSIX_SOURCE, which is predefined and required
  19765. # on some systems where configure will not decide to define it.
  19766. if (defundef == "undef") {
  19767. print "/*", prefix defundef, macro, "*/"
  19768. next
  19769. }
  19770. }
  19771. }
  19772. { print }
  19773. _ACAWK
  19774. _ACEOF
  19775. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19776. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19777. fi # test -n "$CONFIG_HEADERS"
  19778. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19779. shift
  19780. for ac_tag
  19781. do
  19782. case $ac_tag in
  19783. :[FHLC]) ac_mode=$ac_tag; continue;;
  19784. esac
  19785. case $ac_mode$ac_tag in
  19786. :[FHL]*:*);;
  19787. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19788. :[FH]-) ac_tag=-:-;;
  19789. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19790. esac
  19791. ac_save_IFS=$IFS
  19792. IFS=:
  19793. set x $ac_tag
  19794. IFS=$ac_save_IFS
  19795. shift
  19796. ac_file=$1
  19797. shift
  19798. case $ac_mode in
  19799. :L) ac_source=$1;;
  19800. :[FH])
  19801. ac_file_inputs=
  19802. for ac_f
  19803. do
  19804. case $ac_f in
  19805. -) ac_f="$ac_tmp/stdin";;
  19806. *) # Look for the file first in the build tree, then in the source tree
  19807. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19808. # because $ac_f cannot contain `:'.
  19809. test -f "$ac_f" ||
  19810. case $ac_f in
  19811. [\\/$]*) false;;
  19812. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19813. esac ||
  19814. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19815. esac
  19816. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19817. as_fn_append ac_file_inputs " '$ac_f'"
  19818. done
  19819. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19820. # use $as_me), people would be surprised to read:
  19821. # /* config.h. Generated by config.status. */
  19822. configure_input='Generated from '`
  19823. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19824. `' by configure.'
  19825. if test x"$ac_file" != x-; then
  19826. configure_input="$ac_file. $configure_input"
  19827. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19828. $as_echo "$as_me: creating $ac_file" >&6;}
  19829. fi
  19830. # Neutralize special characters interpreted by sed in replacement strings.
  19831. case $configure_input in #(
  19832. *\&* | *\|* | *\\* )
  19833. ac_sed_conf_input=`$as_echo "$configure_input" |
  19834. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19835. *) ac_sed_conf_input=$configure_input;;
  19836. esac
  19837. case $ac_tag in
  19838. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19839. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19840. esac
  19841. ;;
  19842. esac
  19843. ac_dir=`$as_dirname -- "$ac_file" ||
  19844. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19845. X"$ac_file" : 'X\(//\)[^/]' \| \
  19846. X"$ac_file" : 'X\(//\)$' \| \
  19847. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19848. $as_echo X"$ac_file" |
  19849. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19850. s//\1/
  19851. q
  19852. }
  19853. /^X\(\/\/\)[^/].*/{
  19854. s//\1/
  19855. q
  19856. }
  19857. /^X\(\/\/\)$/{
  19858. s//\1/
  19859. q
  19860. }
  19861. /^X\(\/\).*/{
  19862. s//\1/
  19863. q
  19864. }
  19865. s/.*/./; q'`
  19866. as_dir="$ac_dir"; as_fn_mkdir_p
  19867. ac_builddir=.
  19868. case "$ac_dir" in
  19869. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19870. *)
  19871. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19872. # A ".." for each directory in $ac_dir_suffix.
  19873. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19874. case $ac_top_builddir_sub in
  19875. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19876. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19877. esac ;;
  19878. esac
  19879. ac_abs_top_builddir=$ac_pwd
  19880. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19881. # for backward compatibility:
  19882. ac_top_builddir=$ac_top_build_prefix
  19883. case $srcdir in
  19884. .) # We are building in place.
  19885. ac_srcdir=.
  19886. ac_top_srcdir=$ac_top_builddir_sub
  19887. ac_abs_top_srcdir=$ac_pwd ;;
  19888. [\\/]* | ?:[\\/]* ) # Absolute name.
  19889. ac_srcdir=$srcdir$ac_dir_suffix;
  19890. ac_top_srcdir=$srcdir
  19891. ac_abs_top_srcdir=$srcdir ;;
  19892. *) # Relative name.
  19893. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19894. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19895. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19896. esac
  19897. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19898. case $ac_mode in
  19899. :F)
  19900. #
  19901. # CONFIG_FILE
  19902. #
  19903. case $INSTALL in
  19904. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19905. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19906. esac
  19907. ac_MKDIR_P=$MKDIR_P
  19908. case $MKDIR_P in
  19909. [\\/$]* | ?:[\\/]* ) ;;
  19910. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19911. esac
  19912. _ACEOF
  19913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19914. # If the template does not know about datarootdir, expand it.
  19915. # FIXME: This hack should be removed a few years after 2.60.
  19916. ac_datarootdir_hack=; ac_datarootdir_seen=
  19917. ac_sed_dataroot='
  19918. /datarootdir/ {
  19919. p
  19920. q
  19921. }
  19922. /@datadir@/p
  19923. /@docdir@/p
  19924. /@infodir@/p
  19925. /@localedir@/p
  19926. /@mandir@/p'
  19927. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19928. *datarootdir*) ac_datarootdir_seen=yes;;
  19929. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19931. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19932. _ACEOF
  19933. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19934. ac_datarootdir_hack='
  19935. s&@datadir@&$datadir&g
  19936. s&@docdir@&$docdir&g
  19937. s&@infodir@&$infodir&g
  19938. s&@localedir@&$localedir&g
  19939. s&@mandir@&$mandir&g
  19940. s&\\\${datarootdir}&$datarootdir&g' ;;
  19941. esac
  19942. _ACEOF
  19943. # Neutralize VPATH when `$srcdir' = `.'.
  19944. # Shell code in configure.ac might set extrasub.
  19945. # FIXME: do we really want to maintain this feature?
  19946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19947. ac_sed_extra="$ac_vpsub
  19948. $extrasub
  19949. _ACEOF
  19950. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19951. :t
  19952. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19953. s|@configure_input@|$ac_sed_conf_input|;t t
  19954. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19955. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19956. s&@srcdir@&$ac_srcdir&;t t
  19957. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19958. s&@top_srcdir@&$ac_top_srcdir&;t t
  19959. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19960. s&@builddir@&$ac_builddir&;t t
  19961. s&@abs_builddir@&$ac_abs_builddir&;t t
  19962. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19963. s&@INSTALL@&$ac_INSTALL&;t t
  19964. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19965. $ac_datarootdir_hack
  19966. "
  19967. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19968. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19969. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19970. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19971. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19972. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19974. which seems to be undefined. Please make sure it is defined" >&5
  19975. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19976. which seems to be undefined. Please make sure it is defined" >&2;}
  19977. rm -f "$ac_tmp/stdin"
  19978. case $ac_file in
  19979. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19980. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19981. esac \
  19982. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19983. ;;
  19984. :H)
  19985. #
  19986. # CONFIG_HEADER
  19987. #
  19988. if test x"$ac_file" != x-; then
  19989. {
  19990. $as_echo "/* $configure_input */" \
  19991. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19992. } >"$ac_tmp/config.h" \
  19993. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19994. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19995. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19996. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19997. else
  19998. rm -f "$ac_file"
  19999. mv "$ac_tmp/config.h" "$ac_file" \
  20000. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  20001. fi
  20002. else
  20003. $as_echo "/* $configure_input */" \
  20004. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  20005. || as_fn_error $? "could not create -" "$LINENO" 5
  20006. fi
  20007. # Compute "$ac_file"'s index in $config_headers.
  20008. _am_arg="$ac_file"
  20009. _am_stamp_count=1
  20010. for _am_header in $config_headers :; do
  20011. case $_am_header in
  20012. $_am_arg | $_am_arg:* )
  20013. break ;;
  20014. * )
  20015. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20016. esac
  20017. done
  20018. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20019. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20020. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20021. X"$_am_arg" : 'X\(//\)$' \| \
  20022. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20023. $as_echo X"$_am_arg" |
  20024. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20025. s//\1/
  20026. q
  20027. }
  20028. /^X\(\/\/\)[^/].*/{
  20029. s//\1/
  20030. q
  20031. }
  20032. /^X\(\/\/\)$/{
  20033. s//\1/
  20034. q
  20035. }
  20036. /^X\(\/\).*/{
  20037. s//\1/
  20038. q
  20039. }
  20040. s/.*/./; q'`/stamp-h$_am_stamp_count
  20041. ;;
  20042. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20043. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20044. ;;
  20045. esac
  20046. case $ac_file$ac_mode in
  20047. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20048. # Older Autoconf quotes --file arguments for eval, but not when files
  20049. # are listed without --file. Let's play safe and only enable the eval
  20050. # if we detect the quoting.
  20051. # TODO: see whether this extra hack can be removed once we start
  20052. # requiring Autoconf 2.70 or later.
  20053. case $CONFIG_FILES in #(
  20054. *\'*) :
  20055. eval set x "$CONFIG_FILES" ;; #(
  20056. *) :
  20057. set x $CONFIG_FILES ;; #(
  20058. *) :
  20059. ;;
  20060. esac
  20061. shift
  20062. # Used to flag and report bootstrapping failures.
  20063. am_rc=0
  20064. for am_mf
  20065. do
  20066. # Strip MF so we end up with the name of the file.
  20067. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  20068. # Check whether this is an Automake generated Makefile which includes
  20069. # dependency-tracking related rules and includes.
  20070. # Grep'ing the whole file directly is not great: AIX grep has a line
  20071. # limit of 2048, but all sed's we know have understand at least 4000.
  20072. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  20073. || continue
  20074. am_dirpart=`$as_dirname -- "$am_mf" ||
  20075. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20076. X"$am_mf" : 'X\(//\)[^/]' \| \
  20077. X"$am_mf" : 'X\(//\)$' \| \
  20078. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  20079. $as_echo X"$am_mf" |
  20080. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20081. s//\1/
  20082. q
  20083. }
  20084. /^X\(\/\/\)[^/].*/{
  20085. s//\1/
  20086. q
  20087. }
  20088. /^X\(\/\/\)$/{
  20089. s//\1/
  20090. q
  20091. }
  20092. /^X\(\/\).*/{
  20093. s//\1/
  20094. q
  20095. }
  20096. s/.*/./; q'`
  20097. am_filepart=`$as_basename -- "$am_mf" ||
  20098. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  20099. X"$am_mf" : 'X\(//\)$' \| \
  20100. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  20101. $as_echo X/"$am_mf" |
  20102. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20103. s//\1/
  20104. q
  20105. }
  20106. /^X\/\(\/\/\)$/{
  20107. s//\1/
  20108. q
  20109. }
  20110. /^X\/\(\/\).*/{
  20111. s//\1/
  20112. q
  20113. }
  20114. s/.*/./; q'`
  20115. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  20116. && sed -e '/# am--include-marker/d' "$am_filepart" \
  20117. | $MAKE -f - am--depfiles" >&5
  20118. (cd "$am_dirpart" \
  20119. && sed -e '/# am--include-marker/d' "$am_filepart" \
  20120. | $MAKE -f - am--depfiles) >&5 2>&5
  20121. ac_status=$?
  20122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20123. (exit $ac_status); } || am_rc=$?
  20124. done
  20125. if test $am_rc -ne 0; then
  20126. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20127. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20128. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  20129. for automatic dependency tracking. If GNU make was not used, consider
  20130. re-running the configure script with MAKE=\"gmake\" (or whatever is
  20131. necessary). You can also try re-running configure with the
  20132. '--disable-dependency-tracking' option to at least be able to build
  20133. the package (albeit without support for automatic dependency tracking).
  20134. See \`config.log' for more details" "$LINENO" 5; }
  20135. fi
  20136. { am_dirpart=; unset am_dirpart;}
  20137. { am_filepart=; unset am_filepart;}
  20138. { am_mf=; unset am_mf;}
  20139. { am_rc=; unset am_rc;}
  20140. rm -f conftest-deps.mk
  20141. }
  20142. ;;
  20143. "libtool":C)
  20144. # See if we are running on zsh, and set the options that allow our
  20145. # commands through without removal of \ escapes.
  20146. if test -n "${ZSH_VERSION+set}"; then
  20147. setopt NO_GLOB_SUBST
  20148. fi
  20149. cfgfile=${ofile}T
  20150. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20151. $RM "$cfgfile"
  20152. cat <<_LT_EOF >> "$cfgfile"
  20153. #! $SHELL
  20154. # Generated automatically by $as_me ($PACKAGE) $VERSION
  20155. # Libtool was configured as follows:
  20156. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20157. # Provide generalized library-building support services.
  20158. # Written by Gordon Matzigkeit, 1996
  20159. # Copyright (C) 2014 Free Software Foundation, Inc.
  20160. # This is free software; see the source for copying conditions. There is NO
  20161. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20162. # GNU Libtool is free software; you can redistribute it and/or modify
  20163. # it under the terms of the GNU General Public License as published by
  20164. # the Free Software Foundation; either version 2 of of the License, or
  20165. # (at your option) any later version.
  20166. #
  20167. # As a special exception to the GNU General Public License, if you
  20168. # distribute this file as part of a program or library that is built
  20169. # using GNU Libtool, you may include this file under the same
  20170. # distribution terms that you use for the rest of that program.
  20171. #
  20172. # GNU Libtool is distributed in the hope that it will be useful, but
  20173. # WITHOUT ANY WARRANTY; without even the implied warranty of
  20174. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20175. # GNU General Public License for more details.
  20176. #
  20177. # You should have received a copy of the GNU General Public License
  20178. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  20179. # The names of the tagged configurations supported by this script.
  20180. available_tags=''
  20181. # Configured defaults for sys_lib_dlsearch_path munging.
  20182. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  20183. # ### BEGIN LIBTOOL CONFIG
  20184. # Which release of libtool.m4 was used?
  20185. macro_version=$macro_version
  20186. macro_revision=$macro_revision
  20187. # Whether or not to build static libraries.
  20188. build_old_libs=$enable_static
  20189. # Whether or not to build shared libraries.
  20190. build_libtool_libs=$enable_shared
  20191. # What type of objects to build.
  20192. pic_mode=$pic_mode
  20193. # Whether or not to optimize for fast installation.
  20194. fast_install=$enable_fast_install
  20195. # Shared archive member basename,for filename based shared library versioning on AIX.
  20196. shared_archive_member_spec=$shared_archive_member_spec
  20197. # Shell to use when invoking shell scripts.
  20198. SHELL=$lt_SHELL
  20199. # An echo program that protects backslashes.
  20200. ECHO=$lt_ECHO
  20201. # The PATH separator for the build system.
  20202. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20203. # The host system.
  20204. host_alias=$host_alias
  20205. host=$host
  20206. host_os=$host_os
  20207. # The build system.
  20208. build_alias=$build_alias
  20209. build=$build
  20210. build_os=$build_os
  20211. # A sed program that does not truncate output.
  20212. SED=$lt_SED
  20213. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20214. Xsed="\$SED -e 1s/^X//"
  20215. # A grep program that handles long lines.
  20216. GREP=$lt_GREP
  20217. # An ERE matcher.
  20218. EGREP=$lt_EGREP
  20219. # A literal string matcher.
  20220. FGREP=$lt_FGREP
  20221. # A BSD- or MS-compatible name lister.
  20222. NM=$lt_NM
  20223. # Whether we need soft or hard links.
  20224. LN_S=$lt_LN_S
  20225. # What is the maximum length of a command?
  20226. max_cmd_len=$max_cmd_len
  20227. # Object file suffix (normally "o").
  20228. objext=$ac_objext
  20229. # Executable file suffix (normally "").
  20230. exeext=$exeext
  20231. # whether the shell understands "unset".
  20232. lt_unset=$lt_unset
  20233. # turn spaces into newlines.
  20234. SP2NL=$lt_lt_SP2NL
  20235. # turn newlines into spaces.
  20236. NL2SP=$lt_lt_NL2SP
  20237. # convert \$build file names to \$host format.
  20238. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20239. # convert \$build files to toolchain format.
  20240. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20241. # An object symbol dumper.
  20242. OBJDUMP=$lt_OBJDUMP
  20243. # Method to check whether dependent libraries are shared objects.
  20244. deplibs_check_method=$lt_deplibs_check_method
  20245. # Command to use when deplibs_check_method = "file_magic".
  20246. file_magic_cmd=$lt_file_magic_cmd
  20247. # How to find potential files when deplibs_check_method = "file_magic".
  20248. file_magic_glob=$lt_file_magic_glob
  20249. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20250. want_nocaseglob=$lt_want_nocaseglob
  20251. # DLL creation program.
  20252. DLLTOOL=$lt_DLLTOOL
  20253. # Command to associate shared and link libraries.
  20254. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20255. # The archiver.
  20256. AR=$lt_AR
  20257. # Flags to create an archive (by configure).
  20258. lt_ar_flags=$lt_ar_flags
  20259. # Flags to create an archive.
  20260. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  20261. # How to feed a file listing to the archiver.
  20262. archiver_list_spec=$lt_archiver_list_spec
  20263. # A symbol stripping program.
  20264. STRIP=$lt_STRIP
  20265. # Commands used to install an old-style archive.
  20266. RANLIB=$lt_RANLIB
  20267. old_postinstall_cmds=$lt_old_postinstall_cmds
  20268. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20269. # Whether to use a lock for old archive extraction.
  20270. lock_old_archive_extraction=$lock_old_archive_extraction
  20271. # A C compiler.
  20272. LTCC=$lt_CC
  20273. # LTCC compiler flags.
  20274. LTCFLAGS=$lt_CFLAGS
  20275. # Take the output of nm and produce a listing of raw symbols and C names.
  20276. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20277. # Transform the output of nm in a proper C declaration.
  20278. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20279. # Transform the output of nm into a list of symbols to manually relocate.
  20280. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  20281. # Transform the output of nm in a C name address pair.
  20282. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20283. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20284. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20285. # The name lister interface.
  20286. nm_interface=$lt_lt_cv_nm_interface
  20287. # Specify filename containing input files for \$NM.
  20288. nm_file_list_spec=$lt_nm_file_list_spec
  20289. # The root where to search for dependent libraries,and where our libraries should be installed.
  20290. lt_sysroot=$lt_sysroot
  20291. # Command to truncate a binary pipe.
  20292. lt_truncate_bin=$lt_lt_cv_truncate_bin
  20293. # The name of the directory that contains temporary libtool files.
  20294. objdir=$objdir
  20295. # Used to examine libraries when file_magic_cmd begins with "file".
  20296. MAGIC_CMD=$MAGIC_CMD
  20297. # Must we lock files when doing compilation?
  20298. need_locks=$lt_need_locks
  20299. # Manifest tool.
  20300. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20301. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20302. DSYMUTIL=$lt_DSYMUTIL
  20303. # Tool to change global to local symbols on Mac OS X.
  20304. NMEDIT=$lt_NMEDIT
  20305. # Tool to manipulate fat objects and archives on Mac OS X.
  20306. LIPO=$lt_LIPO
  20307. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20308. OTOOL=$lt_OTOOL
  20309. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20310. OTOOL64=$lt_OTOOL64
  20311. # Old archive suffix (normally "a").
  20312. libext=$libext
  20313. # Shared library suffix (normally ".so").
  20314. shrext_cmds=$lt_shrext_cmds
  20315. # The commands to extract the exported symbol list from a shared archive.
  20316. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20317. # Variables whose values should be saved in libtool wrapper scripts and
  20318. # restored at link time.
  20319. variables_saved_for_relink=$lt_variables_saved_for_relink
  20320. # Do we need the "lib" prefix for modules?
  20321. need_lib_prefix=$need_lib_prefix
  20322. # Do we need a version for libraries?
  20323. need_version=$need_version
  20324. # Library versioning type.
  20325. version_type=$version_type
  20326. # Shared library runtime path variable.
  20327. runpath_var=$runpath_var
  20328. # Shared library path variable.
  20329. shlibpath_var=$shlibpath_var
  20330. # Is shlibpath searched before the hard-coded library search path?
  20331. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20332. # Format of library name prefix.
  20333. libname_spec=$lt_libname_spec
  20334. # List of archive names. First name is the real one, the rest are links.
  20335. # The last name is the one that the linker finds with -lNAME
  20336. library_names_spec=$lt_library_names_spec
  20337. # The coded name of the library, if different from the real name.
  20338. soname_spec=$lt_soname_spec
  20339. # Permission mode override for installation of shared libraries.
  20340. install_override_mode=$lt_install_override_mode
  20341. # Command to use after installation of a shared archive.
  20342. postinstall_cmds=$lt_postinstall_cmds
  20343. # Command to use after uninstallation of a shared archive.
  20344. postuninstall_cmds=$lt_postuninstall_cmds
  20345. # Commands used to finish a libtool library installation in a directory.
  20346. finish_cmds=$lt_finish_cmds
  20347. # As "finish_cmds", except a single script fragment to be evaled but
  20348. # not shown.
  20349. finish_eval=$lt_finish_eval
  20350. # Whether we should hardcode library paths into libraries.
  20351. hardcode_into_libs=$hardcode_into_libs
  20352. # Compile-time system search path for libraries.
  20353. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20354. # Detected run-time system search path for libraries.
  20355. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  20356. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  20357. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  20358. # Whether dlopen is supported.
  20359. dlopen_support=$enable_dlopen
  20360. # Whether dlopen of programs is supported.
  20361. dlopen_self=$enable_dlopen_self
  20362. # Whether dlopen of statically linked programs is supported.
  20363. dlopen_self_static=$enable_dlopen_self_static
  20364. # Commands to strip libraries.
  20365. old_striplib=$lt_old_striplib
  20366. striplib=$lt_striplib
  20367. # The linker used to build libraries.
  20368. LD=$lt_LD
  20369. # How to create reloadable object files.
  20370. reload_flag=$lt_reload_flag
  20371. reload_cmds=$lt_reload_cmds
  20372. # Commands used to build an old-style archive.
  20373. old_archive_cmds=$lt_old_archive_cmds
  20374. # A language specific compiler.
  20375. CC=$lt_compiler
  20376. # Is the compiler the GNU compiler?
  20377. with_gcc=$GCC
  20378. # Compiler flag to turn off builtin functions.
  20379. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20380. # Additional compiler flags for building library objects.
  20381. pic_flag=$lt_lt_prog_compiler_pic
  20382. # How to pass a linker flag through the compiler.
  20383. wl=$lt_lt_prog_compiler_wl
  20384. # Compiler flag to prevent dynamic linking.
  20385. link_static_flag=$lt_lt_prog_compiler_static
  20386. # Does compiler simultaneously support -c and -o options?
  20387. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20388. # Whether or not to add -lc for building shared libraries.
  20389. build_libtool_need_lc=$archive_cmds_need_lc
  20390. # Whether or not to disallow shared libs when runtime libs are static.
  20391. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20392. # Compiler flag to allow reflexive dlopens.
  20393. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20394. # Compiler flag to generate shared objects directly from archives.
  20395. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20396. # Whether the compiler copes with passing no objects directly.
  20397. compiler_needs_object=$lt_compiler_needs_object
  20398. # Create an old-style archive from a shared archive.
  20399. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20400. # Create a temporary old-style archive to link instead of a shared archive.
  20401. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20402. # Commands used to build a shared archive.
  20403. archive_cmds=$lt_archive_cmds
  20404. archive_expsym_cmds=$lt_archive_expsym_cmds
  20405. # Commands used to build a loadable module if different from building
  20406. # a shared archive.
  20407. module_cmds=$lt_module_cmds
  20408. module_expsym_cmds=$lt_module_expsym_cmds
  20409. # Whether we are building with GNU ld or not.
  20410. with_gnu_ld=$lt_with_gnu_ld
  20411. # Flag that allows shared libraries with undefined symbols to be built.
  20412. allow_undefined_flag=$lt_allow_undefined_flag
  20413. # Flag that enforces no undefined symbols.
  20414. no_undefined_flag=$lt_no_undefined_flag
  20415. # Flag to hardcode \$libdir into a binary during linking.
  20416. # This must work even if \$libdir does not exist
  20417. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20418. # Whether we need a single "-rpath" flag with a separated argument.
  20419. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20420. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20421. # DIR into the resulting binary.
  20422. hardcode_direct=$hardcode_direct
  20423. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  20424. # DIR into the resulting binary and the resulting library dependency is
  20425. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  20426. # library is relocated.
  20427. hardcode_direct_absolute=$hardcode_direct_absolute
  20428. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20429. # into the resulting binary.
  20430. hardcode_minus_L=$hardcode_minus_L
  20431. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20432. # into the resulting binary.
  20433. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20434. # Set to "yes" if building a shared library automatically hardcodes DIR
  20435. # into the library and all subsequent libraries and executables linked
  20436. # against it.
  20437. hardcode_automatic=$hardcode_automatic
  20438. # Set to yes if linker adds runtime paths of dependent libraries
  20439. # to runtime path list.
  20440. inherit_rpath=$inherit_rpath
  20441. # Whether libtool must link a program against all its dependency libraries.
  20442. link_all_deplibs=$link_all_deplibs
  20443. # Set to "yes" if exported symbols are required.
  20444. always_export_symbols=$always_export_symbols
  20445. # The commands to list exported symbols.
  20446. export_symbols_cmds=$lt_export_symbols_cmds
  20447. # Symbols that should not be listed in the preloaded symbols.
  20448. exclude_expsyms=$lt_exclude_expsyms
  20449. # Symbols that must always be exported.
  20450. include_expsyms=$lt_include_expsyms
  20451. # Commands necessary for linking programs (against libraries) with templates.
  20452. prelink_cmds=$lt_prelink_cmds
  20453. # Commands necessary for finishing linking programs.
  20454. postlink_cmds=$lt_postlink_cmds
  20455. # Specify filename containing input files.
  20456. file_list_spec=$lt_file_list_spec
  20457. # How to hardcode a shared library path into an executable.
  20458. hardcode_action=$hardcode_action
  20459. # ### END LIBTOOL CONFIG
  20460. _LT_EOF
  20461. cat <<'_LT_EOF' >> "$cfgfile"
  20462. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  20463. # func_munge_path_list VARIABLE PATH
  20464. # -----------------------------------
  20465. # VARIABLE is name of variable containing _space_ separated list of
  20466. # directories to be munged by the contents of PATH, which is string
  20467. # having a format:
  20468. # "DIR[:DIR]:"
  20469. # string "DIR[ DIR]" will be prepended to VARIABLE
  20470. # ":DIR[:DIR]"
  20471. # string "DIR[ DIR]" will be appended to VARIABLE
  20472. # "DIRP[:DIRP]::[DIRA:]DIRA"
  20473. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  20474. # "DIRA[ DIRA]" will be appended to VARIABLE
  20475. # "DIR[:DIR]"
  20476. # VARIABLE will be replaced by "DIR[ DIR]"
  20477. func_munge_path_list ()
  20478. {
  20479. case x$2 in
  20480. x)
  20481. ;;
  20482. *:)
  20483. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  20484. ;;
  20485. x:*)
  20486. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  20487. ;;
  20488. *::*)
  20489. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  20490. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  20491. ;;
  20492. *)
  20493. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  20494. ;;
  20495. esac
  20496. }
  20497. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  20498. func_cc_basename ()
  20499. {
  20500. for cc_temp in $*""; do
  20501. case $cc_temp in
  20502. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  20503. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  20504. \-*) ;;
  20505. *) break;;
  20506. esac
  20507. done
  20508. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  20509. }
  20510. # ### END FUNCTIONS SHARED WITH CONFIGURE
  20511. _LT_EOF
  20512. case $host_os in
  20513. aix3*)
  20514. cat <<\_LT_EOF >> "$cfgfile"
  20515. # AIX sometimes has problems with the GCC collect2 program. For some
  20516. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20517. # vanish in a puff of smoke.
  20518. if test set != "${COLLECT_NAMES+set}"; then
  20519. COLLECT_NAMES=
  20520. export COLLECT_NAMES
  20521. fi
  20522. _LT_EOF
  20523. ;;
  20524. esac
  20525. ltmain=$ac_aux_dir/ltmain.sh
  20526. # We use sed instead of cat because bash on DJGPP gets confused if
  20527. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20528. # text mode, it properly converts lines to CR/LF. This bash problem
  20529. # is reportedly fixed, but why not run on old versions too?
  20530. sed '$q' "$ltmain" >> "$cfgfile" \
  20531. || (rm -f "$cfgfile"; exit 1)
  20532. mv -f "$cfgfile" "$ofile" ||
  20533. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20534. chmod +x "$ofile"
  20535. ;;
  20536. "po-directories":C)
  20537. for ac_file in $CONFIG_FILES; do
  20538. # Support "outfile[:infile[:infile...]]"
  20539. case "$ac_file" in
  20540. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20541. esac
  20542. # PO directories have a Makefile.in generated from Makefile.in.in.
  20543. case "$ac_file" in */Makefile.in)
  20544. # Adjust a relative srcdir.
  20545. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20546. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  20547. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20548. # In autoconf-2.13 it is called $ac_given_srcdir.
  20549. # In autoconf-2.50 it is called $srcdir.
  20550. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20551. case "$ac_given_srcdir" in
  20552. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20553. /*) top_srcdir="$ac_given_srcdir" ;;
  20554. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20555. esac
  20556. # Treat a directory as a PO directory if and only if it has a
  20557. # POTFILES.in file. This allows packages to have multiple PO
  20558. # directories under different names or in different locations.
  20559. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20560. rm -f "$ac_dir/POTFILES"
  20561. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20562. gt_tab=`printf '\t'`
  20563. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20564. POMAKEFILEDEPS="POTFILES.in"
  20565. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20566. # on $ac_dir but don't depend on user-specified configuration
  20567. # parameters.
  20568. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20569. # The LINGUAS file contains the set of available languages.
  20570. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20571. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20572. fi
  20573. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20574. # Hide the ALL_LINGUAS assignment from automake < 1.5.
  20575. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20576. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20577. else
  20578. # The set of available languages was given in configure.in.
  20579. # Hide the ALL_LINGUAS assignment from automake < 1.5.
  20580. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20581. fi
  20582. # Compute POFILES
  20583. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20584. # Compute UPDATEPOFILES
  20585. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20586. # Compute DUMMYPOFILES
  20587. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20588. # Compute GMOFILES
  20589. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20590. case "$ac_given_srcdir" in
  20591. .) srcdirpre= ;;
  20592. *) srcdirpre='$(srcdir)/' ;;
  20593. esac
  20594. POFILES=
  20595. UPDATEPOFILES=
  20596. DUMMYPOFILES=
  20597. GMOFILES=
  20598. for lang in $ALL_LINGUAS; do
  20599. POFILES="$POFILES $srcdirpre$lang.po"
  20600. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20601. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20602. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20603. done
  20604. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20605. # environment variable.
  20606. INST_LINGUAS=
  20607. if test -n "$ALL_LINGUAS"; then
  20608. for presentlang in $ALL_LINGUAS; do
  20609. useit=no
  20610. if test "%UNSET%" != "$LINGUAS"; then
  20611. desiredlanguages="$LINGUAS"
  20612. else
  20613. desiredlanguages="$ALL_LINGUAS"
  20614. fi
  20615. for desiredlang in $desiredlanguages; do
  20616. # Use the presentlang catalog if desiredlang is
  20617. # a. equal to presentlang, or
  20618. # b. a variant of presentlang (because in this case,
  20619. # presentlang can be used as a fallback for messages
  20620. # which are not translated in the desiredlang catalog).
  20621. case "$desiredlang" in
  20622. "$presentlang"*) useit=yes;;
  20623. esac
  20624. done
  20625. if test $useit = yes; then
  20626. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20627. fi
  20628. done
  20629. fi
  20630. CATALOGS=
  20631. if test -n "$INST_LINGUAS"; then
  20632. for lang in $INST_LINGUAS; do
  20633. CATALOGS="$CATALOGS $lang.gmo"
  20634. done
  20635. fi
  20636. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20637. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  20638. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20639. if test -f "$f"; then
  20640. case "$f" in
  20641. *.orig | *.bak | *~) ;;
  20642. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20643. esac
  20644. fi
  20645. done
  20646. fi
  20647. ;;
  20648. esac
  20649. done ;;
  20650. esac
  20651. done # for ac_tag
  20652. as_fn_exit 0
  20653. _ACEOF
  20654. ac_clean_files=$ac_clean_files_save
  20655. test $ac_write_fail = 0 ||
  20656. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20657. # configure is writing to config.log, and then calls config.status.
  20658. # config.status does its own redirection, appending to config.log.
  20659. # Unfortunately, on DOS this fails, as config.log is still kept open
  20660. # by configure, so config.status won't be able to write to it; its
  20661. # output is simply discarded. So we exec the FD to /dev/null,
  20662. # effectively closing config.log, so it can be properly (re)opened and
  20663. # appended to by config.status. When coming back to configure, we
  20664. # need to make the FD available again.
  20665. if test "$no_create" != yes; then
  20666. ac_cs_success=:
  20667. ac_config_status_args=
  20668. test "$silent" = yes &&
  20669. ac_config_status_args="$ac_config_status_args --quiet"
  20670. exec 5>/dev/null
  20671. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20672. exec 5>>config.log
  20673. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20674. # would make configure fail if this is the last instruction.
  20675. $ac_cs_success || as_fn_exit 1
  20676. fi
  20677. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20679. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20680. fi