configure 347 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for gold 0.1.
  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. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME='gold'
  531. PACKAGE_TARNAME='gold'
  532. PACKAGE_VERSION='0.1'
  533. PACKAGE_STRING='gold 0.1'
  534. PACKAGE_BUGREPORT=''
  535. PACKAGE_URL=''
  536. ac_unique_file="gold.cc"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_subst_vars='am__EXEEXT_FALSE
  573. am__EXEEXT_TRUE
  574. LTLIBOBJS
  575. MAINT
  576. MAINTAINER_MODE_FALSE
  577. MAINTAINER_MODE_TRUE
  578. DLOPEN_LIBS
  579. CXXCPP
  580. HAVE_NO_USE_LINKER_PLUGIN_FALSE
  581. HAVE_NO_USE_LINKER_PLUGIN_TRUE
  582. HAVE_PUBNAMES_FALSE
  583. HAVE_PUBNAMES_TRUE
  584. THREADS_FALSE
  585. THREADS_TRUE
  586. PTHREAD_CFLAGS
  587. PTHREAD_LIBS
  588. PTHREAD_CC
  589. ax_pthread_config
  590. SED
  591. zlibinc
  592. zlibdir
  593. LIBOBJS
  594. LFS_CFLAGS
  595. GOLD_LDADD
  596. GOLD_LDFLAGS
  597. WARN_CXXFLAGS
  598. WARN_WRITE_STRINGS
  599. NO_WERROR
  600. WARN_CFLAGS_FOR_BUILD
  601. WARN_CFLAGS
  602. IFUNC_STATIC_FALSE
  603. IFUNC_STATIC_TRUE
  604. IFUNC_FALSE
  605. IFUNC_TRUE
  606. RANDOM_SEED_CFLAGS
  607. TLS_DESCRIPTORS_FALSE
  608. TLS_DESCRIPTORS_TRUE
  609. TLS_GNU2_DIALECT_FALSE
  610. TLS_GNU2_DIALECT_TRUE
  611. OMP_SUPPORT_FALSE
  612. OMP_SUPPORT_TRUE
  613. STATIC_TLS_FALSE
  614. STATIC_TLS_TRUE
  615. TLS_FALSE
  616. TLS_TRUE
  617. MERGE_CONSTANTS_FLAG
  618. CFLAGS_CF_PROTECTION_FALSE
  619. CFLAGS_CF_PROTECTION_TRUE
  620. GCC9_FALSE
  621. GCC9_TRUE
  622. MCMODEL_MEDIUM_FALSE
  623. MCMODEL_MEDIUM_TRUE
  624. FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
  625. FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
  626. HAVE_STATIC_FALSE
  627. HAVE_STATIC_TRUE
  628. NATIVE_OR_CROSS_LINKER_FALSE
  629. NATIVE_OR_CROSS_LINKER_TRUE
  630. GCC_FALSE
  631. GCC_TRUE
  632. NATIVE_LINKER_FALSE
  633. NATIVE_LINKER_TRUE
  634. MSGMERGE
  635. MSGFMT
  636. MKINSTALLDIRS
  637. CATOBJEXT
  638. GENCAT
  639. INSTOBJEXT
  640. DATADIRNAME
  641. CATALOGS
  642. POSUB
  643. GMSGFMT
  644. XGETTEXT
  645. INCINTL
  646. LIBINTL_DEP
  647. LIBINTL
  648. USE_NLS
  649. LN_S
  650. RANLIB
  651. YFLAGS
  652. YACC
  653. am__fastdepCXX_FALSE
  654. am__fastdepCXX_TRUE
  655. CXXDEPMODE
  656. ac_ct_CXX
  657. CXXFLAGS
  658. CXX
  659. NM
  660. TARGETOBJS
  661. DEFAULT_TARGET
  662. DEFAULT_TARGET_MIPS_FALSE
  663. DEFAULT_TARGET_MIPS_TRUE
  664. DEFAULT_TARGET_TILEGX_FALSE
  665. DEFAULT_TARGET_TILEGX_TRUE
  666. DEFAULT_TARGET_X86_64_OR_X32_FALSE
  667. DEFAULT_TARGET_X86_64_OR_X32_TRUE
  668. DEFAULT_TARGET_X32_FALSE
  669. DEFAULT_TARGET_X32_TRUE
  670. DEFAULT_TARGET_X86_64_FALSE
  671. DEFAULT_TARGET_X86_64_TRUE
  672. DEFAULT_TARGET_S390_FALSE
  673. DEFAULT_TARGET_S390_TRUE
  674. DEFAULT_TARGET_SPARC_FALSE
  675. DEFAULT_TARGET_SPARC_TRUE
  676. DEFAULT_TARGET_POWERPC_FALSE
  677. DEFAULT_TARGET_POWERPC_TRUE
  678. DEFAULT_TARGET_I386_FALSE
  679. DEFAULT_TARGET_I386_TRUE
  680. DEFAULT_TARGET_ARM_FALSE
  681. DEFAULT_TARGET_ARM_TRUE
  682. DEFAULT_TARGET_AARCH64_FALSE
  683. DEFAULT_TARGET_AARCH64_TRUE
  684. PLUGINS_FALSE
  685. PLUGINS_TRUE
  686. installed_linker
  687. install_as_default
  688. EGREP
  689. GREP
  690. CPP
  691. am__fastdepCC_FALSE
  692. am__fastdepCC_TRUE
  693. CCDEPMODE
  694. am__nodep
  695. AMDEPBACKSLASH
  696. AMDEP_FALSE
  697. AMDEP_TRUE
  698. am__quote
  699. am__include
  700. DEPDIR
  701. OBJEXT
  702. EXEEXT
  703. ac_ct_CC
  704. CPPFLAGS
  705. LDFLAGS
  706. CFLAGS
  707. CC
  708. AM_BACKSLASH
  709. AM_DEFAULT_VERBOSITY
  710. AM_DEFAULT_V
  711. AM_V
  712. am__untar
  713. am__tar
  714. AMTAR
  715. am__leading_dot
  716. SET_MAKE
  717. AWK
  718. mkdir_p
  719. MKDIR_P
  720. INSTALL_STRIP_PROGRAM
  721. STRIP
  722. install_sh
  723. MAKEINFO
  724. AUTOHEADER
  725. AUTOMAKE
  726. AUTOCONF
  727. ACLOCAL
  728. VERSION
  729. PACKAGE
  730. CYGPATH_W
  731. am__isrc
  732. INSTALL_DATA
  733. INSTALL_SCRIPT
  734. INSTALL_PROGRAM
  735. target_os
  736. target_vendor
  737. target_cpu
  738. target
  739. host_os
  740. host_vendor
  741. host_cpu
  742. host
  743. build_os
  744. build_vendor
  745. build_cpu
  746. build
  747. target_alias
  748. host_alias
  749. build_alias
  750. LIBS
  751. ECHO_T
  752. ECHO_N
  753. ECHO_C
  754. DEFS
  755. mandir
  756. localedir
  757. libdir
  758. psdir
  759. pdfdir
  760. dvidir
  761. htmldir
  762. infodir
  763. docdir
  764. oldincludedir
  765. includedir
  766. localstatedir
  767. sharedstatedir
  768. sysconfdir
  769. datadir
  770. datarootdir
  771. libexecdir
  772. sbindir
  773. bindir
  774. program_transform_name
  775. prefix
  776. exec_prefix
  777. PACKAGE_URL
  778. PACKAGE_BUGREPORT
  779. PACKAGE_STRING
  780. PACKAGE_VERSION
  781. PACKAGE_TARNAME
  782. PACKAGE_NAME
  783. PATH_SEPARATOR
  784. SHELL'
  785. ac_subst_files=''
  786. ac_user_opts='
  787. enable_option_checking
  788. enable_silent_rules
  789. enable_dependency_tracking
  790. with_sysroot
  791. enable_gold
  792. enable_plugins
  793. enable_relro
  794. enable_targets
  795. enable_default_hash_style
  796. with_lib_path
  797. enable_nls
  798. enable_werror
  799. enable_build_warnings
  800. with_gold_ldflags
  801. with_gold_ldadd
  802. with_system_zlib
  803. enable_threads
  804. enable_maintainer_mode
  805. '
  806. ac_precious_vars='build_alias
  807. host_alias
  808. target_alias
  809. CC
  810. CFLAGS
  811. LDFLAGS
  812. LIBS
  813. CPPFLAGS
  814. CPP
  815. CXX
  816. CXXFLAGS
  817. CCC
  818. YACC
  819. YFLAGS
  820. CXXCPP'
  821. # Initialize some variables set by options.
  822. ac_init_help=
  823. ac_init_version=false
  824. ac_unrecognized_opts=
  825. ac_unrecognized_sep=
  826. # The variables have the same names as the options, with
  827. # dashes changed to underlines.
  828. cache_file=/dev/null
  829. exec_prefix=NONE
  830. no_create=
  831. no_recursion=
  832. prefix=NONE
  833. program_prefix=NONE
  834. program_suffix=NONE
  835. program_transform_name=s,x,x,
  836. silent=
  837. site=
  838. srcdir=
  839. verbose=
  840. x_includes=NONE
  841. x_libraries=NONE
  842. # Installation directory options.
  843. # These are left unexpanded so users can "make install exec_prefix=/foo"
  844. # and all the variables that are supposed to be based on exec_prefix
  845. # by default will actually change.
  846. # Use braces instead of parens because sh, perl, etc. also accept them.
  847. # (The list follows the same order as the GNU Coding Standards.)
  848. bindir='${exec_prefix}/bin'
  849. sbindir='${exec_prefix}/sbin'
  850. libexecdir='${exec_prefix}/libexec'
  851. datarootdir='${prefix}/share'
  852. datadir='${datarootdir}'
  853. sysconfdir='${prefix}/etc'
  854. sharedstatedir='${prefix}/com'
  855. localstatedir='${prefix}/var'
  856. includedir='${prefix}/include'
  857. oldincludedir='/usr/include'
  858. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  859. infodir='${datarootdir}/info'
  860. htmldir='${docdir}'
  861. dvidir='${docdir}'
  862. pdfdir='${docdir}'
  863. psdir='${docdir}'
  864. libdir='${exec_prefix}/lib'
  865. localedir='${datarootdir}/locale'
  866. mandir='${datarootdir}/man'
  867. ac_prev=
  868. ac_dashdash=
  869. for ac_option
  870. do
  871. # If the previous option needs an argument, assign it.
  872. if test -n "$ac_prev"; then
  873. eval $ac_prev=\$ac_option
  874. ac_prev=
  875. continue
  876. fi
  877. case $ac_option in
  878. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  879. *=) ac_optarg= ;;
  880. *) ac_optarg=yes ;;
  881. esac
  882. # Accept the important Cygnus configure options, so we can diagnose typos.
  883. case $ac_dashdash$ac_option in
  884. --)
  885. ac_dashdash=yes ;;
  886. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  887. ac_prev=bindir ;;
  888. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  889. bindir=$ac_optarg ;;
  890. -build | --build | --buil | --bui | --bu)
  891. ac_prev=build_alias ;;
  892. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  893. build_alias=$ac_optarg ;;
  894. -cache-file | --cache-file | --cache-fil | --cache-fi \
  895. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  896. ac_prev=cache_file ;;
  897. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  898. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  899. cache_file=$ac_optarg ;;
  900. --config-cache | -C)
  901. cache_file=config.cache ;;
  902. -datadir | --datadir | --datadi | --datad)
  903. ac_prev=datadir ;;
  904. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  905. datadir=$ac_optarg ;;
  906. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  907. | --dataroo | --dataro | --datar)
  908. ac_prev=datarootdir ;;
  909. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  910. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  911. datarootdir=$ac_optarg ;;
  912. -disable-* | --disable-*)
  913. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  914. # Reject names that are not valid shell variable names.
  915. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  916. as_fn_error $? "invalid feature name: $ac_useropt"
  917. ac_useropt_orig=$ac_useropt
  918. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  919. case $ac_user_opts in
  920. *"
  921. "enable_$ac_useropt"
  922. "*) ;;
  923. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  924. ac_unrecognized_sep=', ';;
  925. esac
  926. eval enable_$ac_useropt=no ;;
  927. -docdir | --docdir | --docdi | --doc | --do)
  928. ac_prev=docdir ;;
  929. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  930. docdir=$ac_optarg ;;
  931. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  932. ac_prev=dvidir ;;
  933. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  934. dvidir=$ac_optarg ;;
  935. -enable-* | --enable-*)
  936. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  937. # Reject names that are not valid shell variable names.
  938. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  939. as_fn_error $? "invalid feature name: $ac_useropt"
  940. ac_useropt_orig=$ac_useropt
  941. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  942. case $ac_user_opts in
  943. *"
  944. "enable_$ac_useropt"
  945. "*) ;;
  946. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  947. ac_unrecognized_sep=', ';;
  948. esac
  949. eval enable_$ac_useropt=\$ac_optarg ;;
  950. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  951. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  952. | --exec | --exe | --ex)
  953. ac_prev=exec_prefix ;;
  954. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  955. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  956. | --exec=* | --exe=* | --ex=*)
  957. exec_prefix=$ac_optarg ;;
  958. -gas | --gas | --ga | --g)
  959. # Obsolete; use --with-gas.
  960. with_gas=yes ;;
  961. -help | --help | --hel | --he | -h)
  962. ac_init_help=long ;;
  963. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  964. ac_init_help=recursive ;;
  965. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  966. ac_init_help=short ;;
  967. -host | --host | --hos | --ho)
  968. ac_prev=host_alias ;;
  969. -host=* | --host=* | --hos=* | --ho=*)
  970. host_alias=$ac_optarg ;;
  971. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  972. ac_prev=htmldir ;;
  973. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  974. | --ht=*)
  975. htmldir=$ac_optarg ;;
  976. -includedir | --includedir | --includedi | --included | --include \
  977. | --includ | --inclu | --incl | --inc)
  978. ac_prev=includedir ;;
  979. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  980. | --includ=* | --inclu=* | --incl=* | --inc=*)
  981. includedir=$ac_optarg ;;
  982. -infodir | --infodir | --infodi | --infod | --info | --inf)
  983. ac_prev=infodir ;;
  984. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  985. infodir=$ac_optarg ;;
  986. -libdir | --libdir | --libdi | --libd)
  987. ac_prev=libdir ;;
  988. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  989. libdir=$ac_optarg ;;
  990. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  991. | --libexe | --libex | --libe)
  992. ac_prev=libexecdir ;;
  993. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  994. | --libexe=* | --libex=* | --libe=*)
  995. libexecdir=$ac_optarg ;;
  996. -localedir | --localedir | --localedi | --localed | --locale)
  997. ac_prev=localedir ;;
  998. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  999. localedir=$ac_optarg ;;
  1000. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1001. | --localstate | --localstat | --localsta | --localst | --locals)
  1002. ac_prev=localstatedir ;;
  1003. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1004. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1005. localstatedir=$ac_optarg ;;
  1006. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1007. ac_prev=mandir ;;
  1008. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1009. mandir=$ac_optarg ;;
  1010. -nfp | --nfp | --nf)
  1011. # Obsolete; use --without-fp.
  1012. with_fp=no ;;
  1013. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1014. | --no-cr | --no-c | -n)
  1015. no_create=yes ;;
  1016. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1017. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1018. no_recursion=yes ;;
  1019. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1020. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1021. | --oldin | --oldi | --old | --ol | --o)
  1022. ac_prev=oldincludedir ;;
  1023. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1024. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1025. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1026. oldincludedir=$ac_optarg ;;
  1027. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1028. ac_prev=prefix ;;
  1029. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1030. prefix=$ac_optarg ;;
  1031. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1032. | --program-pre | --program-pr | --program-p)
  1033. ac_prev=program_prefix ;;
  1034. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1035. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1036. program_prefix=$ac_optarg ;;
  1037. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1038. | --program-suf | --program-su | --program-s)
  1039. ac_prev=program_suffix ;;
  1040. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1041. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1042. program_suffix=$ac_optarg ;;
  1043. -program-transform-name | --program-transform-name \
  1044. | --program-transform-nam | --program-transform-na \
  1045. | --program-transform-n | --program-transform- \
  1046. | --program-transform | --program-transfor \
  1047. | --program-transfo | --program-transf \
  1048. | --program-trans | --program-tran \
  1049. | --progr-tra | --program-tr | --program-t)
  1050. ac_prev=program_transform_name ;;
  1051. -program-transform-name=* | --program-transform-name=* \
  1052. | --program-transform-nam=* | --program-transform-na=* \
  1053. | --program-transform-n=* | --program-transform-=* \
  1054. | --program-transform=* | --program-transfor=* \
  1055. | --program-transfo=* | --program-transf=* \
  1056. | --program-trans=* | --program-tran=* \
  1057. | --progr-tra=* | --program-tr=* | --program-t=*)
  1058. program_transform_name=$ac_optarg ;;
  1059. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1060. ac_prev=pdfdir ;;
  1061. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1062. pdfdir=$ac_optarg ;;
  1063. -psdir | --psdir | --psdi | --psd | --ps)
  1064. ac_prev=psdir ;;
  1065. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1066. psdir=$ac_optarg ;;
  1067. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1068. | -silent | --silent | --silen | --sile | --sil)
  1069. silent=yes ;;
  1070. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1071. ac_prev=sbindir ;;
  1072. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1073. | --sbi=* | --sb=*)
  1074. sbindir=$ac_optarg ;;
  1075. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1076. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1077. | --sharedst | --shareds | --shared | --share | --shar \
  1078. | --sha | --sh)
  1079. ac_prev=sharedstatedir ;;
  1080. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1081. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1082. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1083. | --sha=* | --sh=*)
  1084. sharedstatedir=$ac_optarg ;;
  1085. -site | --site | --sit)
  1086. ac_prev=site ;;
  1087. -site=* | --site=* | --sit=*)
  1088. site=$ac_optarg ;;
  1089. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1090. ac_prev=srcdir ;;
  1091. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1092. srcdir=$ac_optarg ;;
  1093. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1094. | --syscon | --sysco | --sysc | --sys | --sy)
  1095. ac_prev=sysconfdir ;;
  1096. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1097. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1098. sysconfdir=$ac_optarg ;;
  1099. -target | --target | --targe | --targ | --tar | --ta | --t)
  1100. ac_prev=target_alias ;;
  1101. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1102. target_alias=$ac_optarg ;;
  1103. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1104. verbose=yes ;;
  1105. -version | --version | --versio | --versi | --vers | -V)
  1106. ac_init_version=: ;;
  1107. -with-* | --with-*)
  1108. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1109. # Reject names that are not valid shell variable names.
  1110. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1111. as_fn_error $? "invalid package name: $ac_useropt"
  1112. ac_useropt_orig=$ac_useropt
  1113. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1114. case $ac_user_opts in
  1115. *"
  1116. "with_$ac_useropt"
  1117. "*) ;;
  1118. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1119. ac_unrecognized_sep=', ';;
  1120. esac
  1121. eval with_$ac_useropt=\$ac_optarg ;;
  1122. -without-* | --without-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error $? "invalid package name: $ac_useropt"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=no ;;
  1137. --x)
  1138. # Obsolete; use --with-x.
  1139. with_x=yes ;;
  1140. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1141. | --x-incl | --x-inc | --x-in | --x-i)
  1142. ac_prev=x_includes ;;
  1143. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1144. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1145. x_includes=$ac_optarg ;;
  1146. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1147. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1148. ac_prev=x_libraries ;;
  1149. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1150. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1151. x_libraries=$ac_optarg ;;
  1152. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1153. Try \`$0 --help' for more information"
  1154. ;;
  1155. *=*)
  1156. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1157. # Reject names that are not valid shell variable names.
  1158. case $ac_envvar in #(
  1159. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1160. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1161. esac
  1162. eval $ac_envvar=\$ac_optarg
  1163. export $ac_envvar ;;
  1164. *)
  1165. # FIXME: should be removed in autoconf 3.0.
  1166. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1167. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1168. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1169. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1170. ;;
  1171. esac
  1172. done
  1173. if test -n "$ac_prev"; then
  1174. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1175. as_fn_error $? "missing argument to $ac_option"
  1176. fi
  1177. if test -n "$ac_unrecognized_opts"; then
  1178. case $enable_option_checking in
  1179. no) ;;
  1180. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1181. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1182. esac
  1183. fi
  1184. # Check all directory arguments for consistency.
  1185. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1186. datadir sysconfdir sharedstatedir localstatedir includedir \
  1187. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1188. libdir localedir mandir
  1189. do
  1190. eval ac_val=\$$ac_var
  1191. # Remove trailing slashes.
  1192. case $ac_val in
  1193. */ )
  1194. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1195. eval $ac_var=\$ac_val;;
  1196. esac
  1197. # Be sure to have absolute directory names.
  1198. case $ac_val in
  1199. [\\/$]* | ?:[\\/]* ) continue;;
  1200. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1201. esac
  1202. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1203. done
  1204. # There might be people who depend on the old broken behavior: `$host'
  1205. # used to hold the argument of --host etc.
  1206. # FIXME: To remove some day.
  1207. build=$build_alias
  1208. host=$host_alias
  1209. target=$target_alias
  1210. # FIXME: To remove some day.
  1211. if test "x$host_alias" != x; then
  1212. if test "x$build_alias" = x; then
  1213. cross_compiling=maybe
  1214. elif test "x$build_alias" != "x$host_alias"; then
  1215. cross_compiling=yes
  1216. fi
  1217. fi
  1218. ac_tool_prefix=
  1219. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1220. test "$silent" = yes && exec 6>/dev/null
  1221. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1222. ac_ls_di=`ls -di .` &&
  1223. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1224. as_fn_error $? "working directory cannot be determined"
  1225. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1226. as_fn_error $? "pwd does not report name of working directory"
  1227. # Find the source files, if location was not specified.
  1228. if test -z "$srcdir"; then
  1229. ac_srcdir_defaulted=yes
  1230. # Try the directory containing this script, then the parent directory.
  1231. ac_confdir=`$as_dirname -- "$as_myself" ||
  1232. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1233. X"$as_myself" : 'X\(//\)[^/]' \| \
  1234. X"$as_myself" : 'X\(//\)$' \| \
  1235. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1236. $as_echo X"$as_myself" |
  1237. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\/\)[^/].*/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\/\)$/{
  1246. s//\1/
  1247. q
  1248. }
  1249. /^X\(\/\).*/{
  1250. s//\1/
  1251. q
  1252. }
  1253. s/.*/./; q'`
  1254. srcdir=$ac_confdir
  1255. if test ! -r "$srcdir/$ac_unique_file"; then
  1256. srcdir=..
  1257. fi
  1258. else
  1259. ac_srcdir_defaulted=no
  1260. fi
  1261. if test ! -r "$srcdir/$ac_unique_file"; then
  1262. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1263. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1264. fi
  1265. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1266. ac_abs_confdir=`(
  1267. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1268. pwd)`
  1269. # When building in place, set srcdir=.
  1270. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1271. srcdir=.
  1272. fi
  1273. # Remove unnecessary trailing slashes from srcdir.
  1274. # Double slashes in file names in object file debugging info
  1275. # mess up M-x gdb in Emacs.
  1276. case $srcdir in
  1277. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1278. esac
  1279. for ac_var in $ac_precious_vars; do
  1280. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_env_${ac_var}_value=\$${ac_var}
  1282. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1283. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1284. done
  1285. #
  1286. # Report the --help message.
  1287. #
  1288. if test "$ac_init_help" = "long"; then
  1289. # Omit some internal or obsolete options to make the list less imposing.
  1290. # This message is too long to be a string in the A/UX 3.1 sh.
  1291. cat <<_ACEOF
  1292. \`configure' configures gold 0.1 to adapt to many kinds of systems.
  1293. Usage: $0 [OPTION]... [VAR=VALUE]...
  1294. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1295. VAR=VALUE. See below for descriptions of some of the useful variables.
  1296. Defaults for the options are specified in brackets.
  1297. Configuration:
  1298. -h, --help display this help and exit
  1299. --help=short display options specific to this package
  1300. --help=recursive display the short help of all the included packages
  1301. -V, --version display version information and exit
  1302. -q, --quiet, --silent do not print \`checking ...' messages
  1303. --cache-file=FILE cache test results in FILE [disabled]
  1304. -C, --config-cache alias for \`--cache-file=config.cache'
  1305. -n, --no-create do not create output files
  1306. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1307. Installation directories:
  1308. --prefix=PREFIX install architecture-independent files in PREFIX
  1309. [$ac_default_prefix]
  1310. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1311. [PREFIX]
  1312. By default, \`make install' will install all the files in
  1313. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1314. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1315. for instance \`--prefix=\$HOME'.
  1316. For better control, use the options below.
  1317. Fine tuning of the installation directories:
  1318. --bindir=DIR user executables [EPREFIX/bin]
  1319. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1320. --libexecdir=DIR program executables [EPREFIX/libexec]
  1321. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1322. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1323. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1324. --libdir=DIR object code libraries [EPREFIX/lib]
  1325. --includedir=DIR C header files [PREFIX/include]
  1326. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1327. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1328. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1329. --infodir=DIR info documentation [DATAROOTDIR/info]
  1330. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1331. --mandir=DIR man documentation [DATAROOTDIR/man]
  1332. --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
  1333. --htmldir=DIR html documentation [DOCDIR]
  1334. --dvidir=DIR dvi documentation [DOCDIR]
  1335. --pdfdir=DIR pdf documentation [DOCDIR]
  1336. --psdir=DIR ps documentation [DOCDIR]
  1337. _ACEOF
  1338. cat <<\_ACEOF
  1339. Program names:
  1340. --program-prefix=PREFIX prepend PREFIX to installed program names
  1341. --program-suffix=SUFFIX append SUFFIX to installed program names
  1342. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1343. System types:
  1344. --build=BUILD configure for building on BUILD [guessed]
  1345. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1346. --target=TARGET configure for building compilers for TARGET [HOST]
  1347. _ACEOF
  1348. fi
  1349. if test -n "$ac_init_help"; then
  1350. case $ac_init_help in
  1351. short | recursive ) echo "Configuration of gold 0.1:";;
  1352. esac
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-option-checking ignore unrecognized --enable/--with options
  1356. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1357. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1358. --enable-silent-rules less verbose build output (undo: "make V=1")
  1359. --disable-silent-rules verbose build output (undo: "make V=0")
  1360. --enable-dependency-tracking
  1361. do not reject slow dependency extractors
  1362. --disable-dependency-tracking
  1363. speeds up one-time build
  1364. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1365. --enable-plugins Enable support for plugins
  1366. --enable-relro enable -z relro in ELF linker by default
  1367. --enable-targets alternative target configurations
  1368. --enable-default-hash-style={sysv,gnu,both}
  1369. use this default hash style
  1370. --disable-nls do not use Native Language Support
  1371. --enable-werror treat compile warnings as errors
  1372. --enable-build-warnings enable build-time compiler warnings
  1373. --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}]
  1374. --enable-maintainer-mode
  1375. enable make rules and dependencies not useful (and
  1376. sometimes confusing) to the casual installer
  1377. Optional Packages:
  1378. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1379. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1380. --with-sysroot=DIR search for usr/lib et al within DIR
  1381. --with-lib-path=dir1:dir2... set default LIB_PATH
  1382. --with-gold-ldflags=FLAGS additional link flags for gold
  1383. --with-gold-ldadd=LIBS additional libraries for gold
  1384. --with-system-zlib use installed libz
  1385. Some influential environment variables:
  1386. CC C compiler command
  1387. CFLAGS C compiler flags
  1388. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1389. nonstandard directory <lib dir>
  1390. LIBS libraries to pass to the linker, e.g. -l<library>
  1391. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1392. you have headers in a nonstandard directory <include dir>
  1393. CPP C preprocessor
  1394. CXX C++ compiler command
  1395. CXXFLAGS C++ compiler flags
  1396. YACC The `Yet Another Compiler Compiler' implementation to use.
  1397. Defaults to the first program found out of: `bison -y', `byacc',
  1398. `yacc'.
  1399. YFLAGS The list of arguments that will be passed by default to $YACC.
  1400. This script will default YFLAGS to the empty string to avoid a
  1401. default value of `-d' given by some make applications.
  1402. CXXCPP C++ preprocessor
  1403. Use these variables to override the choices made by `configure' or to help
  1404. it to find libraries and programs with nonstandard names/locations.
  1405. Report bugs to the package provider.
  1406. _ACEOF
  1407. ac_status=$?
  1408. fi
  1409. if test "$ac_init_help" = "recursive"; then
  1410. # If there are subdirs, report their specific --help.
  1411. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1412. test -d "$ac_dir" ||
  1413. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1414. continue
  1415. ac_builddir=.
  1416. case "$ac_dir" in
  1417. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1418. *)
  1419. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1420. # A ".." for each directory in $ac_dir_suffix.
  1421. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1422. case $ac_top_builddir_sub in
  1423. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1424. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1425. esac ;;
  1426. esac
  1427. ac_abs_top_builddir=$ac_pwd
  1428. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1429. # for backward compatibility:
  1430. ac_top_builddir=$ac_top_build_prefix
  1431. case $srcdir in
  1432. .) # We are building in place.
  1433. ac_srcdir=.
  1434. ac_top_srcdir=$ac_top_builddir_sub
  1435. ac_abs_top_srcdir=$ac_pwd ;;
  1436. [\\/]* | ?:[\\/]* ) # Absolute name.
  1437. ac_srcdir=$srcdir$ac_dir_suffix;
  1438. ac_top_srcdir=$srcdir
  1439. ac_abs_top_srcdir=$srcdir ;;
  1440. *) # Relative name.
  1441. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1442. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1443. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1444. esac
  1445. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1446. cd "$ac_dir" || { ac_status=$?; continue; }
  1447. # Check for guested configure.
  1448. if test -f "$ac_srcdir/configure.gnu"; then
  1449. echo &&
  1450. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1451. elif test -f "$ac_srcdir/configure"; then
  1452. echo &&
  1453. $SHELL "$ac_srcdir/configure" --help=recursive
  1454. else
  1455. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1456. fi || ac_status=$?
  1457. cd "$ac_pwd" || { ac_status=$?; break; }
  1458. done
  1459. fi
  1460. test -n "$ac_init_help" && exit $ac_status
  1461. if $ac_init_version; then
  1462. cat <<\_ACEOF
  1463. gold configure 0.1
  1464. generated by GNU Autoconf 2.69
  1465. Copyright (C) 2012 Free Software Foundation, Inc.
  1466. This configure script is free software; the Free Software Foundation
  1467. gives unlimited permission to copy, distribute and modify it.
  1468. _ACEOF
  1469. exit
  1470. fi
  1471. ## ------------------------ ##
  1472. ## Autoconf initialization. ##
  1473. ## ------------------------ ##
  1474. # ac_fn_c_try_compile LINENO
  1475. # --------------------------
  1476. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1477. ac_fn_c_try_compile ()
  1478. {
  1479. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1480. rm -f conftest.$ac_objext
  1481. if { { ac_try="$ac_compile"
  1482. case "(($ac_try" in
  1483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1484. *) ac_try_echo=$ac_try;;
  1485. esac
  1486. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1487. $as_echo "$ac_try_echo"; } >&5
  1488. (eval "$ac_compile") 2>conftest.err
  1489. ac_status=$?
  1490. if test -s conftest.err; then
  1491. grep -v '^ *+' conftest.err >conftest.er1
  1492. cat conftest.er1 >&5
  1493. mv -f conftest.er1 conftest.err
  1494. fi
  1495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1496. test $ac_status = 0; } && {
  1497. test -z "$ac_c_werror_flag" ||
  1498. test ! -s conftest.err
  1499. } && test -s conftest.$ac_objext; then :
  1500. ac_retval=0
  1501. else
  1502. $as_echo "$as_me: failed program was:" >&5
  1503. sed 's/^/| /' conftest.$ac_ext >&5
  1504. ac_retval=1
  1505. fi
  1506. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1507. as_fn_set_status $ac_retval
  1508. } # ac_fn_c_try_compile
  1509. # ac_fn_c_try_cpp LINENO
  1510. # ----------------------
  1511. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1512. ac_fn_c_try_cpp ()
  1513. {
  1514. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1515. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1516. case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1523. ac_status=$?
  1524. if test -s conftest.err; then
  1525. grep -v '^ *+' conftest.err >conftest.er1
  1526. cat conftest.er1 >&5
  1527. mv -f conftest.er1 conftest.err
  1528. fi
  1529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1530. test $ac_status = 0; } > conftest.i && {
  1531. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1532. test ! -s conftest.err
  1533. }; then :
  1534. ac_retval=0
  1535. else
  1536. $as_echo "$as_me: failed program was:" >&5
  1537. sed 's/^/| /' conftest.$ac_ext >&5
  1538. ac_retval=1
  1539. fi
  1540. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_c_try_cpp
  1543. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1544. # -------------------------------------------------------
  1545. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1546. # the include files in INCLUDES and setting the cache variable VAR
  1547. # accordingly.
  1548. ac_fn_c_check_header_mongrel ()
  1549. {
  1550. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1551. if eval \${$3+:} false; then :
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1553. $as_echo_n "checking for $2... " >&6; }
  1554. if eval \${$3+:} false; then :
  1555. $as_echo_n "(cached) " >&6
  1556. fi
  1557. eval ac_res=\$$3
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1559. $as_echo "$ac_res" >&6; }
  1560. else
  1561. # Is the header compilable?
  1562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1563. $as_echo_n "checking $2 usability... " >&6; }
  1564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1565. /* end confdefs.h. */
  1566. $4
  1567. #include <$2>
  1568. _ACEOF
  1569. if ac_fn_c_try_compile "$LINENO"; then :
  1570. ac_header_compiler=yes
  1571. else
  1572. ac_header_compiler=no
  1573. fi
  1574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1576. $as_echo "$ac_header_compiler" >&6; }
  1577. # Is the header present?
  1578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1579. $as_echo_n "checking $2 presence... " >&6; }
  1580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1581. /* end confdefs.h. */
  1582. #include <$2>
  1583. _ACEOF
  1584. if ac_fn_c_try_cpp "$LINENO"; then :
  1585. ac_header_preproc=yes
  1586. else
  1587. ac_header_preproc=no
  1588. fi
  1589. rm -f conftest.err conftest.i conftest.$ac_ext
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1591. $as_echo "$ac_header_preproc" >&6; }
  1592. # So? What about this header?
  1593. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1594. yes:no: )
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1596. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1598. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1599. ;;
  1600. no:yes:* )
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1602. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1604. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1606. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1607. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1608. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1610. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1611. ;;
  1612. esac
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1614. $as_echo_n "checking for $2... " >&6; }
  1615. if eval \${$3+:} false; then :
  1616. $as_echo_n "(cached) " >&6
  1617. else
  1618. eval "$3=\$ac_header_compiler"
  1619. fi
  1620. eval ac_res=\$$3
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1622. $as_echo "$ac_res" >&6; }
  1623. fi
  1624. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1625. } # ac_fn_c_check_header_mongrel
  1626. # ac_fn_c_try_run LINENO
  1627. # ----------------------
  1628. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1629. # that executables *can* be run.
  1630. ac_fn_c_try_run ()
  1631. {
  1632. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1633. if { { ac_try="$ac_link"
  1634. case "(($ac_try" in
  1635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1636. *) ac_try_echo=$ac_try;;
  1637. esac
  1638. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1639. $as_echo "$ac_try_echo"; } >&5
  1640. (eval "$ac_link") 2>&5
  1641. ac_status=$?
  1642. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1643. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1644. { { case "(($ac_try" in
  1645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1646. *) ac_try_echo=$ac_try;;
  1647. esac
  1648. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1649. $as_echo "$ac_try_echo"; } >&5
  1650. (eval "$ac_try") 2>&5
  1651. ac_status=$?
  1652. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1653. test $ac_status = 0; }; }; then :
  1654. ac_retval=0
  1655. else
  1656. $as_echo "$as_me: program exited with status $ac_status" >&5
  1657. $as_echo "$as_me: failed program was:" >&5
  1658. sed 's/^/| /' conftest.$ac_ext >&5
  1659. ac_retval=$ac_status
  1660. fi
  1661. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1662. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1663. as_fn_set_status $ac_retval
  1664. } # ac_fn_c_try_run
  1665. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1666. # -------------------------------------------------------
  1667. # Tests whether HEADER exists and can be compiled using the include files in
  1668. # INCLUDES, setting the cache variable VAR accordingly.
  1669. ac_fn_c_check_header_compile ()
  1670. {
  1671. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1673. $as_echo_n "checking for $2... " >&6; }
  1674. if eval \${$3+:} false; then :
  1675. $as_echo_n "(cached) " >&6
  1676. else
  1677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1678. /* end confdefs.h. */
  1679. $4
  1680. #include <$2>
  1681. _ACEOF
  1682. if ac_fn_c_try_compile "$LINENO"; then :
  1683. eval "$3=yes"
  1684. else
  1685. eval "$3=no"
  1686. fi
  1687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1688. fi
  1689. eval ac_res=\$$3
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1691. $as_echo "$ac_res" >&6; }
  1692. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1693. } # ac_fn_c_check_header_compile
  1694. # ac_fn_c_try_link LINENO
  1695. # -----------------------
  1696. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1697. ac_fn_c_try_link ()
  1698. {
  1699. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1700. rm -f conftest.$ac_objext conftest$ac_exeext
  1701. if { { ac_try="$ac_link"
  1702. case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_link") 2>conftest.err
  1709. ac_status=$?
  1710. if test -s conftest.err; then
  1711. grep -v '^ *+' conftest.err >conftest.er1
  1712. cat conftest.er1 >&5
  1713. mv -f conftest.er1 conftest.err
  1714. fi
  1715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1716. test $ac_status = 0; } && {
  1717. test -z "$ac_c_werror_flag" ||
  1718. test ! -s conftest.err
  1719. } && test -s conftest$ac_exeext && {
  1720. test "$cross_compiling" = yes ||
  1721. test -x conftest$ac_exeext
  1722. }; then :
  1723. ac_retval=0
  1724. else
  1725. $as_echo "$as_me: failed program was:" >&5
  1726. sed 's/^/| /' conftest.$ac_ext >&5
  1727. ac_retval=1
  1728. fi
  1729. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1730. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1731. # interfere with the next link command; also delete a directory that is
  1732. # left behind by Apple's compiler. We do this before executing the actions.
  1733. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1734. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1735. as_fn_set_status $ac_retval
  1736. } # ac_fn_c_try_link
  1737. # ac_fn_cxx_try_compile LINENO
  1738. # ----------------------------
  1739. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_cxx_try_compile ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. rm -f conftest.$ac_objext
  1744. if { { ac_try="$ac_compile"
  1745. case "(($ac_try" in
  1746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747. *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751. (eval "$ac_compile") 2>conftest.err
  1752. ac_status=$?
  1753. if test -s conftest.err; then
  1754. grep -v '^ *+' conftest.err >conftest.er1
  1755. cat conftest.er1 >&5
  1756. mv -f conftest.er1 conftest.err
  1757. fi
  1758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759. test $ac_status = 0; } && {
  1760. test -z "$ac_cxx_werror_flag" ||
  1761. test ! -s conftest.err
  1762. } && test -s conftest.$ac_objext; then :
  1763. ac_retval=0
  1764. else
  1765. $as_echo "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767. ac_retval=1
  1768. fi
  1769. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1770. as_fn_set_status $ac_retval
  1771. } # ac_fn_cxx_try_compile
  1772. # ac_fn_c_check_func LINENO FUNC VAR
  1773. # ----------------------------------
  1774. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1775. ac_fn_c_check_func ()
  1776. {
  1777. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1779. $as_echo_n "checking for $2... " >&6; }
  1780. if eval \${$3+:} false; then :
  1781. $as_echo_n "(cached) " >&6
  1782. else
  1783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1784. /* end confdefs.h. */
  1785. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1787. #define $2 innocuous_$2
  1788. /* System header to define __stub macros and hopefully few prototypes,
  1789. which can conflict with char $2 (); below.
  1790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1791. <limits.h> exists even on freestanding compilers. */
  1792. #ifdef __STDC__
  1793. # include <limits.h>
  1794. #else
  1795. # include <assert.h>
  1796. #endif
  1797. #undef $2
  1798. /* Override any GCC internal prototype to avoid an error.
  1799. Use char because int might match the return type of a GCC
  1800. builtin and then its argument prototype would still apply. */
  1801. #ifdef __cplusplus
  1802. extern "C"
  1803. #endif
  1804. char $2 ();
  1805. /* The GNU C library defines this for functions which it implements
  1806. to always fail with ENOSYS. Some functions are actually named
  1807. something starting with __ and the normal name is an alias. */
  1808. #if defined __stub_$2 || defined __stub___$2
  1809. choke me
  1810. #endif
  1811. int
  1812. main ()
  1813. {
  1814. return $2 ();
  1815. ;
  1816. return 0;
  1817. }
  1818. _ACEOF
  1819. if ac_fn_c_try_link "$LINENO"; then :
  1820. eval "$3=yes"
  1821. else
  1822. eval "$3=no"
  1823. fi
  1824. rm -f core conftest.err conftest.$ac_objext \
  1825. conftest$ac_exeext conftest.$ac_ext
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1831. } # ac_fn_c_check_func
  1832. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1833. # ---------------------------------------------
  1834. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1835. # accordingly.
  1836. ac_fn_c_check_decl ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1840. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1842. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1843. if eval \${$3+:} false; then :
  1844. $as_echo_n "(cached) " >&6
  1845. else
  1846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1847. /* end confdefs.h. */
  1848. $4
  1849. int
  1850. main ()
  1851. {
  1852. #ifndef $as_decl_name
  1853. #ifdef __cplusplus
  1854. (void) $as_decl_use;
  1855. #else
  1856. (void) $as_decl_name;
  1857. #endif
  1858. #endif
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_c_try_compile "$LINENO"; then :
  1864. eval "$3=yes"
  1865. else
  1866. eval "$3=no"
  1867. fi
  1868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1869. fi
  1870. eval ac_res=\$$3
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1872. $as_echo "$ac_res" >&6; }
  1873. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1874. } # ac_fn_c_check_decl
  1875. # ac_fn_cxx_try_cpp LINENO
  1876. # ------------------------
  1877. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1878. ac_fn_cxx_try_cpp ()
  1879. {
  1880. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1881. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1882. case "(($ac_try" in
  1883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1884. *) ac_try_echo=$ac_try;;
  1885. esac
  1886. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1887. $as_echo "$ac_try_echo"; } >&5
  1888. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1889. ac_status=$?
  1890. if test -s conftest.err; then
  1891. grep -v '^ *+' conftest.err >conftest.er1
  1892. cat conftest.er1 >&5
  1893. mv -f conftest.er1 conftest.err
  1894. fi
  1895. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1896. test $ac_status = 0; } > conftest.i && {
  1897. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1898. test ! -s conftest.err
  1899. }; then :
  1900. ac_retval=0
  1901. else
  1902. $as_echo "$as_me: failed program was:" >&5
  1903. sed 's/^/| /' conftest.$ac_ext >&5
  1904. ac_retval=1
  1905. fi
  1906. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1907. as_fn_set_status $ac_retval
  1908. } # ac_fn_cxx_try_cpp
  1909. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1910. # ---------------------------------------------------------
  1911. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1912. # the include files in INCLUDES and setting the cache variable VAR
  1913. # accordingly.
  1914. ac_fn_cxx_check_header_mongrel ()
  1915. {
  1916. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1917. if eval \${$3+:} false; then :
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1919. $as_echo_n "checking for $2... " >&6; }
  1920. if eval \${$3+:} false; then :
  1921. $as_echo_n "(cached) " >&6
  1922. fi
  1923. eval ac_res=\$$3
  1924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1925. $as_echo "$ac_res" >&6; }
  1926. else
  1927. # Is the header compilable?
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1929. $as_echo_n "checking $2 usability... " >&6; }
  1930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1931. /* end confdefs.h. */
  1932. $4
  1933. #include <$2>
  1934. _ACEOF
  1935. if ac_fn_cxx_try_compile "$LINENO"; then :
  1936. ac_header_compiler=yes
  1937. else
  1938. ac_header_compiler=no
  1939. fi
  1940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1942. $as_echo "$ac_header_compiler" >&6; }
  1943. # Is the header present?
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1945. $as_echo_n "checking $2 presence... " >&6; }
  1946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1947. /* end confdefs.h. */
  1948. #include <$2>
  1949. _ACEOF
  1950. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1951. ac_header_preproc=yes
  1952. else
  1953. ac_header_preproc=no
  1954. fi
  1955. rm -f conftest.err conftest.i conftest.$ac_ext
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1957. $as_echo "$ac_header_preproc" >&6; }
  1958. # So? What about this header?
  1959. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1960. yes:no: )
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1962. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1964. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1965. ;;
  1966. no:yes:* )
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1968. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1970. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1972. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1974. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1976. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1977. ;;
  1978. esac
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1980. $as_echo_n "checking for $2... " >&6; }
  1981. if eval \${$3+:} false; then :
  1982. $as_echo_n "(cached) " >&6
  1983. else
  1984. eval "$3=\$ac_header_compiler"
  1985. fi
  1986. eval ac_res=\$$3
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1988. $as_echo "$ac_res" >&6; }
  1989. fi
  1990. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1991. } # ac_fn_cxx_check_header_mongrel
  1992. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1993. # -----------------------------------------------
  1994. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1995. # accordingly.
  1996. ac_fn_cxx_check_decl ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2000. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2002. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2003. if eval \${$3+:} false; then :
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2007. /* end confdefs.h. */
  2008. $4
  2009. int
  2010. main ()
  2011. {
  2012. #ifndef $as_decl_name
  2013. #ifdef __cplusplus
  2014. (void) $as_decl_use;
  2015. #else
  2016. (void) $as_decl_name;
  2017. #endif
  2018. #endif
  2019. ;
  2020. return 0;
  2021. }
  2022. _ACEOF
  2023. if ac_fn_cxx_try_compile "$LINENO"; then :
  2024. eval "$3=yes"
  2025. else
  2026. eval "$3=no"
  2027. fi
  2028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2029. fi
  2030. eval ac_res=\$$3
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2032. $as_echo "$ac_res" >&6; }
  2033. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2034. } # ac_fn_cxx_check_decl
  2035. # ac_fn_cxx_try_link LINENO
  2036. # -------------------------
  2037. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2038. ac_fn_cxx_try_link ()
  2039. {
  2040. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2041. rm -f conftest.$ac_objext conftest$ac_exeext
  2042. if { { ac_try="$ac_link"
  2043. case "(($ac_try" in
  2044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2045. *) ac_try_echo=$ac_try;;
  2046. esac
  2047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2048. $as_echo "$ac_try_echo"; } >&5
  2049. (eval "$ac_link") 2>conftest.err
  2050. ac_status=$?
  2051. if test -s conftest.err; then
  2052. grep -v '^ *+' conftest.err >conftest.er1
  2053. cat conftest.er1 >&5
  2054. mv -f conftest.er1 conftest.err
  2055. fi
  2056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2057. test $ac_status = 0; } && {
  2058. test -z "$ac_cxx_werror_flag" ||
  2059. test ! -s conftest.err
  2060. } && test -s conftest$ac_exeext && {
  2061. test "$cross_compiling" = yes ||
  2062. test -x conftest$ac_exeext
  2063. }; then :
  2064. ac_retval=0
  2065. else
  2066. $as_echo "$as_me: failed program was:" >&5
  2067. sed 's/^/| /' conftest.$ac_ext >&5
  2068. ac_retval=1
  2069. fi
  2070. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2071. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2072. # interfere with the next link command; also delete a directory that is
  2073. # left behind by Apple's compiler. We do this before executing the actions.
  2074. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2075. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2076. as_fn_set_status $ac_retval
  2077. } # ac_fn_cxx_try_link
  2078. # ac_fn_cxx_check_func LINENO FUNC VAR
  2079. # ------------------------------------
  2080. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2081. ac_fn_cxx_check_func ()
  2082. {
  2083. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2085. $as_echo_n "checking for $2... " >&6; }
  2086. if eval \${$3+:} false; then :
  2087. $as_echo_n "(cached) " >&6
  2088. else
  2089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2090. /* end confdefs.h. */
  2091. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2092. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2093. #define $2 innocuous_$2
  2094. /* System header to define __stub macros and hopefully few prototypes,
  2095. which can conflict with char $2 (); below.
  2096. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2097. <limits.h> exists even on freestanding compilers. */
  2098. #ifdef __STDC__
  2099. # include <limits.h>
  2100. #else
  2101. # include <assert.h>
  2102. #endif
  2103. #undef $2
  2104. /* Override any GCC internal prototype to avoid an error.
  2105. Use char because int might match the return type of a GCC
  2106. builtin and then its argument prototype would still apply. */
  2107. #ifdef __cplusplus
  2108. extern "C"
  2109. #endif
  2110. char $2 ();
  2111. /* The GNU C library defines this for functions which it implements
  2112. to always fail with ENOSYS. Some functions are actually named
  2113. something starting with __ and the normal name is an alias. */
  2114. #if defined __stub_$2 || defined __stub___$2
  2115. choke me
  2116. #endif
  2117. int
  2118. main ()
  2119. {
  2120. return $2 ();
  2121. ;
  2122. return 0;
  2123. }
  2124. _ACEOF
  2125. if ac_fn_cxx_try_link "$LINENO"; then :
  2126. eval "$3=yes"
  2127. else
  2128. eval "$3=no"
  2129. fi
  2130. rm -f core conftest.err conftest.$ac_objext \
  2131. conftest$ac_exeext conftest.$ac_ext
  2132. fi
  2133. eval ac_res=\$$3
  2134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2135. $as_echo "$ac_res" >&6; }
  2136. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2137. } # ac_fn_cxx_check_func
  2138. cat >config.log <<_ACEOF
  2139. This file contains any messages produced by compilers while
  2140. running configure, to aid debugging if configure makes a mistake.
  2141. It was created by gold $as_me 0.1, which was
  2142. generated by GNU Autoconf 2.69. Invocation command line was
  2143. $ $0 $@
  2144. _ACEOF
  2145. exec 5>>config.log
  2146. {
  2147. cat <<_ASUNAME
  2148. ## --------- ##
  2149. ## Platform. ##
  2150. ## --------- ##
  2151. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2152. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2153. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2154. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2155. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2156. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2157. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2158. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2159. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2160. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2161. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2162. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2163. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2164. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2165. _ASUNAME
  2166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2167. for as_dir in $PATH
  2168. do
  2169. IFS=$as_save_IFS
  2170. test -z "$as_dir" && as_dir=.
  2171. $as_echo "PATH: $as_dir"
  2172. done
  2173. IFS=$as_save_IFS
  2174. } >&5
  2175. cat >&5 <<_ACEOF
  2176. ## ----------- ##
  2177. ## Core tests. ##
  2178. ## ----------- ##
  2179. _ACEOF
  2180. # Keep a trace of the command line.
  2181. # Strip out --no-create and --no-recursion so they do not pile up.
  2182. # Strip out --silent because we don't want to record it for future runs.
  2183. # Also quote any args containing shell meta-characters.
  2184. # Make two passes to allow for proper duplicate-argument suppression.
  2185. ac_configure_args=
  2186. ac_configure_args0=
  2187. ac_configure_args1=
  2188. ac_must_keep_next=false
  2189. for ac_pass in 1 2
  2190. do
  2191. for ac_arg
  2192. do
  2193. case $ac_arg in
  2194. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2195. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2196. | -silent | --silent | --silen | --sile | --sil)
  2197. continue ;;
  2198. *\'*)
  2199. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2200. esac
  2201. case $ac_pass in
  2202. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2203. 2)
  2204. as_fn_append ac_configure_args1 " '$ac_arg'"
  2205. if test $ac_must_keep_next = true; then
  2206. ac_must_keep_next=false # Got value, back to normal.
  2207. else
  2208. case $ac_arg in
  2209. *=* | --config-cache | -C | -disable-* | --disable-* \
  2210. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2211. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2212. | -with-* | --with-* | -without-* | --without-* | --x)
  2213. case "$ac_configure_args0 " in
  2214. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2215. esac
  2216. ;;
  2217. -* ) ac_must_keep_next=true ;;
  2218. esac
  2219. fi
  2220. as_fn_append ac_configure_args " '$ac_arg'"
  2221. ;;
  2222. esac
  2223. done
  2224. done
  2225. { ac_configure_args0=; unset ac_configure_args0;}
  2226. { ac_configure_args1=; unset ac_configure_args1;}
  2227. # When interrupted or exit'd, cleanup temporary files, and complete
  2228. # config.log. We remove comments because anyway the quotes in there
  2229. # would cause problems or look ugly.
  2230. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2231. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2232. trap 'exit_status=$?
  2233. # Save into config.log some information that might help in debugging.
  2234. {
  2235. echo
  2236. $as_echo "## ---------------- ##
  2237. ## Cache variables. ##
  2238. ## ---------------- ##"
  2239. echo
  2240. # The following way of writing the cache mishandles newlines in values,
  2241. (
  2242. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in #(
  2245. *${as_nl}*)
  2246. case $ac_var in #(
  2247. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2248. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2249. esac
  2250. case $ac_var in #(
  2251. _ | IFS | as_nl) ;; #(
  2252. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2253. *) { eval $ac_var=; unset $ac_var;} ;;
  2254. esac ;;
  2255. esac
  2256. done
  2257. (set) 2>&1 |
  2258. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2259. *${as_nl}ac_space=\ *)
  2260. sed -n \
  2261. "s/'\''/'\''\\\\'\'''\''/g;
  2262. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2263. ;; #(
  2264. *)
  2265. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2266. ;;
  2267. esac |
  2268. sort
  2269. )
  2270. echo
  2271. $as_echo "## ----------------- ##
  2272. ## Output variables. ##
  2273. ## ----------------- ##"
  2274. echo
  2275. for ac_var in $ac_subst_vars
  2276. do
  2277. eval ac_val=\$$ac_var
  2278. case $ac_val in
  2279. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2280. esac
  2281. $as_echo "$ac_var='\''$ac_val'\''"
  2282. done | sort
  2283. echo
  2284. if test -n "$ac_subst_files"; then
  2285. $as_echo "## ------------------- ##
  2286. ## File substitutions. ##
  2287. ## ------------------- ##"
  2288. echo
  2289. for ac_var in $ac_subst_files
  2290. do
  2291. eval ac_val=\$$ac_var
  2292. case $ac_val in
  2293. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2294. esac
  2295. $as_echo "$ac_var='\''$ac_val'\''"
  2296. done | sort
  2297. echo
  2298. fi
  2299. if test -s confdefs.h; then
  2300. $as_echo "## ----------- ##
  2301. ## confdefs.h. ##
  2302. ## ----------- ##"
  2303. echo
  2304. cat confdefs.h
  2305. echo
  2306. fi
  2307. test "$ac_signal" != 0 &&
  2308. $as_echo "$as_me: caught signal $ac_signal"
  2309. $as_echo "$as_me: exit $exit_status"
  2310. } >&5
  2311. rm -f core *.core core.conftest.* &&
  2312. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2313. exit $exit_status
  2314. ' 0
  2315. for ac_signal in 1 2 13 15; do
  2316. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2317. done
  2318. ac_signal=0
  2319. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2320. rm -f -r conftest* confdefs.h
  2321. $as_echo "/* confdefs.h */" > confdefs.h
  2322. # Predefined preprocessor variables.
  2323. cat >>confdefs.h <<_ACEOF
  2324. #define PACKAGE_NAME "$PACKAGE_NAME"
  2325. _ACEOF
  2326. cat >>confdefs.h <<_ACEOF
  2327. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2328. _ACEOF
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2331. _ACEOF
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_STRING "$PACKAGE_STRING"
  2334. _ACEOF
  2335. cat >>confdefs.h <<_ACEOF
  2336. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2337. _ACEOF
  2338. cat >>confdefs.h <<_ACEOF
  2339. #define PACKAGE_URL "$PACKAGE_URL"
  2340. _ACEOF
  2341. # Let the site file select an alternate cache file if it wants to.
  2342. # Prefer an explicitly selected file to automatically selected ones.
  2343. ac_site_file1=NONE
  2344. ac_site_file2=NONE
  2345. if test -n "$CONFIG_SITE"; then
  2346. # We do not want a PATH search for config.site.
  2347. case $CONFIG_SITE in #((
  2348. -*) ac_site_file1=./$CONFIG_SITE;;
  2349. */*) ac_site_file1=$CONFIG_SITE;;
  2350. *) ac_site_file1=./$CONFIG_SITE;;
  2351. esac
  2352. elif test "x$prefix" != xNONE; then
  2353. ac_site_file1=$prefix/share/config.site
  2354. ac_site_file2=$prefix/etc/config.site
  2355. else
  2356. ac_site_file1=$ac_default_prefix/share/config.site
  2357. ac_site_file2=$ac_default_prefix/etc/config.site
  2358. fi
  2359. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2360. do
  2361. test "x$ac_site_file" = xNONE && continue
  2362. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2364. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2365. sed 's/^/| /' "$ac_site_file" >&5
  2366. . "$ac_site_file" \
  2367. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2368. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2369. as_fn_error $? "failed to load site script $ac_site_file
  2370. See \`config.log' for more details" "$LINENO" 5; }
  2371. fi
  2372. done
  2373. if test -r "$cache_file"; then
  2374. # Some versions of bash will fail to source /dev/null (special files
  2375. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2376. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2377. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2378. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2379. case $cache_file in
  2380. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2381. *) . "./$cache_file";;
  2382. esac
  2383. fi
  2384. else
  2385. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2386. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2387. >$cache_file
  2388. fi
  2389. # Check that the precious variables saved in the cache have kept the same
  2390. # value.
  2391. ac_cache_corrupted=false
  2392. for ac_var in $ac_precious_vars; do
  2393. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2394. eval ac_new_set=\$ac_env_${ac_var}_set
  2395. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2396. eval ac_new_val=\$ac_env_${ac_var}_value
  2397. case $ac_old_set,$ac_new_set in
  2398. set,)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2400. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2401. ac_cache_corrupted=: ;;
  2402. ,set)
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2404. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2405. ac_cache_corrupted=: ;;
  2406. ,);;
  2407. *)
  2408. if test "x$ac_old_val" != "x$ac_new_val"; then
  2409. # differences in whitespace do not lead to failure.
  2410. ac_old_val_w=`echo x $ac_old_val`
  2411. ac_new_val_w=`echo x $ac_new_val`
  2412. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2414. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2415. ac_cache_corrupted=:
  2416. else
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2418. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2419. eval $ac_var=\$ac_old_val
  2420. fi
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2422. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2424. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2425. fi;;
  2426. esac
  2427. # Pass precious variables to config.status.
  2428. if test "$ac_new_set" = set; then
  2429. case $ac_new_val in
  2430. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2431. *) ac_arg=$ac_var=$ac_new_val ;;
  2432. esac
  2433. case " $ac_configure_args " in
  2434. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2435. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2436. esac
  2437. fi
  2438. done
  2439. if $ac_cache_corrupted; then
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2443. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2444. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2445. fi
  2446. ## -------------------- ##
  2447. ## Main body of script. ##
  2448. ## -------------------- ##
  2449. ac_ext=c
  2450. ac_cpp='$CPP $CPPFLAGS'
  2451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2454. ac_aux_dir=
  2455. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2456. if test -f "$ac_dir/install-sh"; then
  2457. ac_aux_dir=$ac_dir
  2458. ac_install_sh="$ac_aux_dir/install-sh -c"
  2459. break
  2460. elif test -f "$ac_dir/install.sh"; then
  2461. ac_aux_dir=$ac_dir
  2462. ac_install_sh="$ac_aux_dir/install.sh -c"
  2463. break
  2464. elif test -f "$ac_dir/shtool"; then
  2465. ac_aux_dir=$ac_dir
  2466. ac_install_sh="$ac_aux_dir/shtool install -c"
  2467. break
  2468. fi
  2469. done
  2470. if test -z "$ac_aux_dir"; then
  2471. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2472. fi
  2473. # These three variables are undocumented and unsupported,
  2474. # and are intended to be withdrawn in a future Autoconf release.
  2475. # They can cause serious problems if a builder's source tree is in a directory
  2476. # whose full name contains unusual characters.
  2477. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2478. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2479. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2480. # Make sure we can run config.sub.
  2481. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2482. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2484. $as_echo_n "checking build system type... " >&6; }
  2485. if ${ac_cv_build+:} false; then :
  2486. $as_echo_n "(cached) " >&6
  2487. else
  2488. ac_build_alias=$build_alias
  2489. test "x$ac_build_alias" = x &&
  2490. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2491. test "x$ac_build_alias" = x &&
  2492. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2493. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2494. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2495. fi
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2497. $as_echo "$ac_cv_build" >&6; }
  2498. case $ac_cv_build in
  2499. *-*-*) ;;
  2500. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2501. esac
  2502. build=$ac_cv_build
  2503. ac_save_IFS=$IFS; IFS='-'
  2504. set x $ac_cv_build
  2505. shift
  2506. build_cpu=$1
  2507. build_vendor=$2
  2508. shift; shift
  2509. # Remember, the first character of IFS is used to create $*,
  2510. # except with old shells:
  2511. build_os=$*
  2512. IFS=$ac_save_IFS
  2513. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2515. $as_echo_n "checking host system type... " >&6; }
  2516. if ${ac_cv_host+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. if test "x$host_alias" = x; then
  2520. ac_cv_host=$ac_cv_build
  2521. else
  2522. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2523. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2524. fi
  2525. fi
  2526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2527. $as_echo "$ac_cv_host" >&6; }
  2528. case $ac_cv_host in
  2529. *-*-*) ;;
  2530. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2531. esac
  2532. host=$ac_cv_host
  2533. ac_save_IFS=$IFS; IFS='-'
  2534. set x $ac_cv_host
  2535. shift
  2536. host_cpu=$1
  2537. host_vendor=$2
  2538. shift; shift
  2539. # Remember, the first character of IFS is used to create $*,
  2540. # except with old shells:
  2541. host_os=$*
  2542. IFS=$ac_save_IFS
  2543. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2545. $as_echo_n "checking target system type... " >&6; }
  2546. if ${ac_cv_target+:} false; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. if test "x$target_alias" = x; then
  2550. ac_cv_target=$ac_cv_host
  2551. else
  2552. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2553. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2554. fi
  2555. fi
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2557. $as_echo "$ac_cv_target" >&6; }
  2558. case $ac_cv_target in
  2559. *-*-*) ;;
  2560. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2561. esac
  2562. target=$ac_cv_target
  2563. ac_save_IFS=$IFS; IFS='-'
  2564. set x $ac_cv_target
  2565. shift
  2566. target_cpu=$1
  2567. target_vendor=$2
  2568. shift; shift
  2569. # Remember, the first character of IFS is used to create $*,
  2570. # except with old shells:
  2571. target_os=$*
  2572. IFS=$ac_save_IFS
  2573. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2574. # The aliases save the names the user supplied, while $host etc.
  2575. # will get canonicalized.
  2576. test -n "$target_alias" &&
  2577. test "$program_prefix$program_suffix$program_transform_name" = \
  2578. NONENONEs,x,x, &&
  2579. program_prefix=${target_alias}-
  2580. am__api_version='1.15'
  2581. # Find a good install program. We prefer a C program (faster),
  2582. # so one script is as good as another. But avoid the broken or
  2583. # incompatible versions:
  2584. # SysV /etc/install, /usr/sbin/install
  2585. # SunOS /usr/etc/install
  2586. # IRIX /sbin/install
  2587. # AIX /bin/install
  2588. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2589. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2590. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2591. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2592. # OS/2's system install, which has a completely different semantic
  2593. # ./install, which can be erroneously created by make from ./install.sh.
  2594. # Reject install programs that cannot install multiple files.
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2596. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2597. if test -z "$INSTALL"; then
  2598. if ${ac_cv_path_install+:} false; then :
  2599. $as_echo_n "(cached) " >&6
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. # Account for people who put trailing slashes in PATH elements.
  2607. case $as_dir/ in #((
  2608. ./ | .// | /[cC]/* | \
  2609. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2610. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2611. /usr/ucb/* ) ;;
  2612. *)
  2613. # OSF1 and SCO ODT 3.0 have their own names for install.
  2614. # Don't use installbsd from OSF since it installs stuff as root
  2615. # by default.
  2616. for ac_prog in ginstall scoinst install; do
  2617. for ac_exec_ext in '' $ac_executable_extensions; do
  2618. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2619. if test $ac_prog = install &&
  2620. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2621. # AIX install. It has an incompatible calling convention.
  2622. :
  2623. elif test $ac_prog = install &&
  2624. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2625. # program-specific install script used by HP pwplus--don't use.
  2626. :
  2627. else
  2628. rm -rf conftest.one conftest.two conftest.dir
  2629. echo one > conftest.one
  2630. echo two > conftest.two
  2631. mkdir conftest.dir
  2632. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2633. test -s conftest.one && test -s conftest.two &&
  2634. test -s conftest.dir/conftest.one &&
  2635. test -s conftest.dir/conftest.two
  2636. then
  2637. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2638. break 3
  2639. fi
  2640. fi
  2641. fi
  2642. done
  2643. done
  2644. ;;
  2645. esac
  2646. done
  2647. IFS=$as_save_IFS
  2648. rm -rf conftest.one conftest.two conftest.dir
  2649. fi
  2650. if test "${ac_cv_path_install+set}" = set; then
  2651. INSTALL=$ac_cv_path_install
  2652. else
  2653. # As a last resort, use the slow shell script. Don't cache a
  2654. # value for INSTALL within a source directory, because that will
  2655. # break other packages using the cache if that directory is
  2656. # removed, or if the value is a relative name.
  2657. INSTALL=$ac_install_sh
  2658. fi
  2659. fi
  2660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2661. $as_echo "$INSTALL" >&6; }
  2662. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2663. # It thinks the first close brace ends the variable substitution.
  2664. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2665. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2666. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2668. $as_echo_n "checking whether build environment is sane... " >&6; }
  2669. # Reject unsafe characters in $srcdir or the absolute working directory
  2670. # name. Accept space and tab only in the latter.
  2671. am_lf='
  2672. '
  2673. case `pwd` in
  2674. *[\\\"\#\$\&\'\`$am_lf]*)
  2675. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2676. esac
  2677. case $srcdir in
  2678. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2679. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2680. esac
  2681. # Do 'set' in a subshell so we don't clobber the current shell's
  2682. # arguments. Must try -L first in case configure is actually a
  2683. # symlink; some systems play weird games with the mod time of symlinks
  2684. # (eg FreeBSD returns the mod time of the symlink's containing
  2685. # directory).
  2686. if (
  2687. am_has_slept=no
  2688. for am_try in 1 2; do
  2689. echo "timestamp, slept: $am_has_slept" > conftest.file
  2690. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2691. if test "$*" = "X"; then
  2692. # -L didn't work.
  2693. set X `ls -t "$srcdir/configure" conftest.file`
  2694. fi
  2695. if test "$*" != "X $srcdir/configure conftest.file" \
  2696. && test "$*" != "X conftest.file $srcdir/configure"; then
  2697. # If neither matched, then we have a broken ls. This can happen
  2698. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2699. # broken ls alias from the environment. This has actually
  2700. # happened. Such a system could not be considered "sane".
  2701. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2702. alias in your environment" "$LINENO" 5
  2703. fi
  2704. if test "$2" = conftest.file || test $am_try -eq 2; then
  2705. break
  2706. fi
  2707. # Just in case.
  2708. sleep 1
  2709. am_has_slept=yes
  2710. done
  2711. test "$2" = conftest.file
  2712. )
  2713. then
  2714. # Ok.
  2715. :
  2716. else
  2717. as_fn_error $? "newly created file is older than distributed files!
  2718. Check your system clock" "$LINENO" 5
  2719. fi
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2721. $as_echo "yes" >&6; }
  2722. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2723. # generated files are strictly newer.
  2724. am_sleep_pid=
  2725. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2726. ( sleep 1 ) &
  2727. am_sleep_pid=$!
  2728. fi
  2729. rm -f conftest.file
  2730. test "$program_prefix" != NONE &&
  2731. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2732. # Use a double $ so make ignores it.
  2733. test "$program_suffix" != NONE &&
  2734. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2735. # Double any \ or $.
  2736. # By default was `s,x,x', remove it if useless.
  2737. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2738. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2739. # Expand $ac_aux_dir to an absolute path.
  2740. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2741. if test x"${MISSING+set}" != xset; then
  2742. case $am_aux_dir in
  2743. *\ * | *\ *)
  2744. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2745. *)
  2746. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2747. esac
  2748. fi
  2749. # Use eval to expand $SHELL
  2750. if eval "$MISSING --is-lightweight"; then
  2751. am_missing_run="$MISSING "
  2752. else
  2753. am_missing_run=
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2755. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2756. fi
  2757. if test x"${install_sh+set}" != xset; then
  2758. case $am_aux_dir in
  2759. *\ * | *\ *)
  2760. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2761. *)
  2762. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2763. esac
  2764. fi
  2765. # Installed binaries are usually stripped using 'strip' when the user
  2766. # run "make install-strip". However 'strip' might not be the right
  2767. # tool to use in cross-compilation environments, therefore Automake
  2768. # will honor the 'STRIP' environment variable to overrule this program.
  2769. if test "$cross_compiling" != no; then
  2770. if test -n "$ac_tool_prefix"; then
  2771. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2772. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2774. $as_echo_n "checking for $ac_word... " >&6; }
  2775. if ${ac_cv_prog_STRIP+:} false; then :
  2776. $as_echo_n "(cached) " >&6
  2777. else
  2778. if test -n "$STRIP"; then
  2779. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2780. else
  2781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2782. for as_dir in $PATH
  2783. do
  2784. IFS=$as_save_IFS
  2785. test -z "$as_dir" && as_dir=.
  2786. for ac_exec_ext in '' $ac_executable_extensions; do
  2787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2788. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2790. break 2
  2791. fi
  2792. done
  2793. done
  2794. IFS=$as_save_IFS
  2795. fi
  2796. fi
  2797. STRIP=$ac_cv_prog_STRIP
  2798. if test -n "$STRIP"; then
  2799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2800. $as_echo "$STRIP" >&6; }
  2801. else
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2803. $as_echo "no" >&6; }
  2804. fi
  2805. fi
  2806. if test -z "$ac_cv_prog_STRIP"; then
  2807. ac_ct_STRIP=$STRIP
  2808. # Extract the first word of "strip", so it can be a program name with args.
  2809. set dummy strip; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$ac_ct_STRIP"; then
  2816. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_ac_ct_STRIP="strip"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2835. if test -n "$ac_ct_STRIP"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2837. $as_echo "$ac_ct_STRIP" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. if test "x$ac_ct_STRIP" = x; then
  2843. STRIP=":"
  2844. else
  2845. case $cross_compiling:$ac_tool_warned in
  2846. yes:)
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2849. ac_tool_warned=yes ;;
  2850. esac
  2851. STRIP=$ac_ct_STRIP
  2852. fi
  2853. else
  2854. STRIP="$ac_cv_prog_STRIP"
  2855. fi
  2856. fi
  2857. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2859. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2860. if test -z "$MKDIR_P"; then
  2861. if ${ac_cv_path_mkdir+:} false; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2865. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2866. do
  2867. IFS=$as_save_IFS
  2868. test -z "$as_dir" && as_dir=.
  2869. for ac_prog in mkdir gmkdir; do
  2870. for ac_exec_ext in '' $ac_executable_extensions; do
  2871. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2872. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2873. 'mkdir (GNU coreutils) '* | \
  2874. 'mkdir (coreutils) '* | \
  2875. 'mkdir (fileutils) '4.1*)
  2876. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2877. break 3;;
  2878. esac
  2879. done
  2880. done
  2881. done
  2882. IFS=$as_save_IFS
  2883. fi
  2884. test -d ./--version && rmdir ./--version
  2885. if test "${ac_cv_path_mkdir+set}" = set; then
  2886. MKDIR_P="$ac_cv_path_mkdir -p"
  2887. else
  2888. # As a last resort, use the slow shell script. Don't cache a
  2889. # value for MKDIR_P within a source directory, because that will
  2890. # break other packages using the cache if that directory is
  2891. # removed, or if the value is a relative name.
  2892. MKDIR_P="$ac_install_sh -d"
  2893. fi
  2894. fi
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2896. $as_echo "$MKDIR_P" >&6; }
  2897. for ac_prog in gawk mawk nawk awk
  2898. do
  2899. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2900. set dummy $ac_prog; ac_word=$2
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2902. $as_echo_n "checking for $ac_word... " >&6; }
  2903. if ${ac_cv_prog_AWK+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. if test -n "$AWK"; then
  2907. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2908. else
  2909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2910. for as_dir in $PATH
  2911. do
  2912. IFS=$as_save_IFS
  2913. test -z "$as_dir" && as_dir=.
  2914. for ac_exec_ext in '' $ac_executable_extensions; do
  2915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2916. ac_cv_prog_AWK="$ac_prog"
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2918. break 2
  2919. fi
  2920. done
  2921. done
  2922. IFS=$as_save_IFS
  2923. fi
  2924. fi
  2925. AWK=$ac_cv_prog_AWK
  2926. if test -n "$AWK"; then
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2928. $as_echo "$AWK" >&6; }
  2929. else
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2931. $as_echo "no" >&6; }
  2932. fi
  2933. test -n "$AWK" && break
  2934. done
  2935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2936. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2937. set x ${MAKE-make}
  2938. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2939. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2940. $as_echo_n "(cached) " >&6
  2941. else
  2942. cat >conftest.make <<\_ACEOF
  2943. SHELL = /bin/sh
  2944. all:
  2945. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2946. _ACEOF
  2947. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2948. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2949. *@@@%%%=?*=@@@%%%*)
  2950. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2951. *)
  2952. eval ac_cv_prog_make_${ac_make}_set=no;;
  2953. esac
  2954. rm -f conftest.make
  2955. fi
  2956. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2958. $as_echo "yes" >&6; }
  2959. SET_MAKE=
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2962. $as_echo "no" >&6; }
  2963. SET_MAKE="MAKE=${MAKE-make}"
  2964. fi
  2965. rm -rf .tst 2>/dev/null
  2966. mkdir .tst 2>/dev/null
  2967. if test -d .tst; then
  2968. am__leading_dot=.
  2969. else
  2970. am__leading_dot=_
  2971. fi
  2972. rmdir .tst 2>/dev/null
  2973. # Check whether --enable-silent-rules was given.
  2974. if test "${enable_silent_rules+set}" = set; then :
  2975. enableval=$enable_silent_rules;
  2976. fi
  2977. case $enable_silent_rules in # (((
  2978. yes) AM_DEFAULT_VERBOSITY=0;;
  2979. no) AM_DEFAULT_VERBOSITY=1;;
  2980. *) AM_DEFAULT_VERBOSITY=1;;
  2981. esac
  2982. am_make=${MAKE-make}
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2984. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2985. if ${am_cv_make_support_nested_variables+:} false; then :
  2986. $as_echo_n "(cached) " >&6
  2987. else
  2988. if $as_echo 'TRUE=$(BAR$(V))
  2989. BAR0=false
  2990. BAR1=true
  2991. V=1
  2992. am__doit:
  2993. @$(TRUE)
  2994. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2995. am_cv_make_support_nested_variables=yes
  2996. else
  2997. am_cv_make_support_nested_variables=no
  2998. fi
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3001. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3002. if test $am_cv_make_support_nested_variables = yes; then
  3003. AM_V='$(V)'
  3004. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3005. else
  3006. AM_V=$AM_DEFAULT_VERBOSITY
  3007. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3008. fi
  3009. AM_BACKSLASH='\'
  3010. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3011. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3012. # is not polluted with repeated "-I."
  3013. am__isrc=' -I$(srcdir)'
  3014. # test to see if srcdir already configured
  3015. if test -f $srcdir/config.status; then
  3016. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3017. fi
  3018. fi
  3019. # test whether we have cygpath
  3020. if test -z "$CYGPATH_W"; then
  3021. if (cygpath --version) >/dev/null 2>/dev/null; then
  3022. CYGPATH_W='cygpath -w'
  3023. else
  3024. CYGPATH_W=echo
  3025. fi
  3026. fi
  3027. # Define the identity of the package.
  3028. PACKAGE='gold'
  3029. VERSION='0.1'
  3030. cat >>confdefs.h <<_ACEOF
  3031. #define PACKAGE "$PACKAGE"
  3032. _ACEOF
  3033. cat >>confdefs.h <<_ACEOF
  3034. #define VERSION "$VERSION"
  3035. _ACEOF
  3036. # Some tools Automake needs.
  3037. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3038. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3039. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3040. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3041. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3042. # For better backward compatibility. To be removed once Automake 1.9.x
  3043. # dies out for good. For more background, see:
  3044. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3045. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3046. mkdir_p='$(MKDIR_P)'
  3047. # We need awk for the "check" target (and possibly the TAP driver). The
  3048. # system "awk" is bad on some platforms.
  3049. # Always define AMTAR for backward compatibility. Yes, it's still used
  3050. # in the wild :-( We should find a proper way to deprecate it ...
  3051. AMTAR='$${TAR-tar}'
  3052. # We'll loop over all known methods to create a tar archive until one works.
  3053. _am_tools='gnutar pax cpio none'
  3054. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3055. # POSIX will say in a future version that running "rm -f" with no argument
  3056. # is OK; and we want to be able to make that assumption in our Makefile
  3057. # recipes. So use an aggressive probe to check that the usage we want is
  3058. # actually supported "in the wild" to an acceptable degree.
  3059. # See automake bug#10828.
  3060. # To make any issue more visible, cause the running configure to be aborted
  3061. # by default if the 'rm' program in use doesn't match our expectations; the
  3062. # user can still override this though.
  3063. if rm -f && rm -fr && rm -rf; then : OK; else
  3064. cat >&2 <<'END'
  3065. Oops!
  3066. Your 'rm' program seems unable to run without file operands specified
  3067. on the command line, even when the '-f' option is present. This is contrary
  3068. to the behaviour of most rm programs out there, and not conforming with
  3069. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3070. Please tell bug-automake@gnu.org about your system, including the value
  3071. of your $PATH and any error possibly output before this message. This
  3072. can help us improve future automake versions.
  3073. END
  3074. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3075. echo 'Configuration will proceed anyway, since you have set the' >&2
  3076. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3077. echo >&2
  3078. else
  3079. cat >&2 <<'END'
  3080. Aborting the configuration process, to ensure you take notice of the issue.
  3081. You can download and install GNU coreutils to get an 'rm' implementation
  3082. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3083. If you want to complete the configuration process using your problematic
  3084. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3085. to "yes", and re-run configure.
  3086. END
  3087. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3088. fi
  3089. fi
  3090. # Check whether --enable-silent-rules was given.
  3091. if test "${enable_silent_rules+set}" = set; then :
  3092. enableval=$enable_silent_rules;
  3093. fi
  3094. case $enable_silent_rules in # (((
  3095. yes) AM_DEFAULT_VERBOSITY=0;;
  3096. no) AM_DEFAULT_VERBOSITY=1;;
  3097. *) AM_DEFAULT_VERBOSITY=0;;
  3098. esac
  3099. am_make=${MAKE-make}
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3101. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3102. if ${am_cv_make_support_nested_variables+:} false; then :
  3103. $as_echo_n "(cached) " >&6
  3104. else
  3105. if $as_echo 'TRUE=$(BAR$(V))
  3106. BAR0=false
  3107. BAR1=true
  3108. V=1
  3109. am__doit:
  3110. @$(TRUE)
  3111. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3112. am_cv_make_support_nested_variables=yes
  3113. else
  3114. am_cv_make_support_nested_variables=no
  3115. fi
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3118. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3119. if test $am_cv_make_support_nested_variables = yes; then
  3120. AM_V='$(V)'
  3121. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3122. else
  3123. AM_V=$AM_DEFAULT_VERBOSITY
  3124. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3125. fi
  3126. AM_BACKSLASH='\'
  3127. ac_config_headers="$ac_config_headers config.h:config.in"
  3128. DEPDIR="${am__leading_dot}deps"
  3129. ac_config_commands="$ac_config_commands depfiles"
  3130. am_make=${MAKE-make}
  3131. cat > confinc << 'END'
  3132. am__doit:
  3133. @echo this is the am__doit target
  3134. .PHONY: am__doit
  3135. END
  3136. # If we don't find an include directive, just comment out the code.
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3138. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3139. am__include="#"
  3140. am__quote=
  3141. _am_result=none
  3142. # First try GNU make style include.
  3143. echo "include confinc" > confmf
  3144. # Ignore all kinds of additional output from 'make'.
  3145. case `$am_make -s -f confmf 2> /dev/null` in #(
  3146. *the\ am__doit\ target*)
  3147. am__include=include
  3148. am__quote=
  3149. _am_result=GNU
  3150. ;;
  3151. esac
  3152. # Now try BSD make style include.
  3153. if test "$am__include" = "#"; then
  3154. echo '.include "confinc"' > confmf
  3155. case `$am_make -s -f confmf 2> /dev/null` in #(
  3156. *the\ am__doit\ target*)
  3157. am__include=.include
  3158. am__quote="\""
  3159. _am_result=BSD
  3160. ;;
  3161. esac
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3164. $as_echo "$_am_result" >&6; }
  3165. rm -f confinc confmf
  3166. # Check whether --enable-dependency-tracking was given.
  3167. if test "${enable_dependency_tracking+set}" = set; then :
  3168. enableval=$enable_dependency_tracking;
  3169. fi
  3170. if test "x$enable_dependency_tracking" != xno; then
  3171. am_depcomp="$ac_aux_dir/depcomp"
  3172. AMDEPBACKSLASH='\'
  3173. am__nodep='_no'
  3174. fi
  3175. if test "x$enable_dependency_tracking" != xno; then
  3176. AMDEP_TRUE=
  3177. AMDEP_FALSE='#'
  3178. else
  3179. AMDEP_TRUE='#'
  3180. AMDEP_FALSE=
  3181. fi
  3182. ac_ext=c
  3183. ac_cpp='$CPP $CPPFLAGS'
  3184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3187. if test -n "$ac_tool_prefix"; then
  3188. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3189. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3191. $as_echo_n "checking for $ac_word... " >&6; }
  3192. if ${ac_cv_prog_CC+:} false; then :
  3193. $as_echo_n "(cached) " >&6
  3194. else
  3195. if test -n "$CC"; then
  3196. ac_cv_prog_CC="$CC" # Let the user override the test.
  3197. else
  3198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3199. for as_dir in $PATH
  3200. do
  3201. IFS=$as_save_IFS
  3202. test -z "$as_dir" && as_dir=.
  3203. for ac_exec_ext in '' $ac_executable_extensions; do
  3204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3205. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3207. break 2
  3208. fi
  3209. done
  3210. done
  3211. IFS=$as_save_IFS
  3212. fi
  3213. fi
  3214. CC=$ac_cv_prog_CC
  3215. if test -n "$CC"; then
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3217. $as_echo "$CC" >&6; }
  3218. else
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3220. $as_echo "no" >&6; }
  3221. fi
  3222. fi
  3223. if test -z "$ac_cv_prog_CC"; then
  3224. ac_ct_CC=$CC
  3225. # Extract the first word of "gcc", so it can be a program name with args.
  3226. set dummy gcc; ac_word=$2
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3228. $as_echo_n "checking for $ac_word... " >&6; }
  3229. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. if test -n "$ac_ct_CC"; then
  3233. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3234. else
  3235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3236. for as_dir in $PATH
  3237. do
  3238. IFS=$as_save_IFS
  3239. test -z "$as_dir" && as_dir=.
  3240. for ac_exec_ext in '' $ac_executable_extensions; do
  3241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3242. ac_cv_prog_ac_ct_CC="gcc"
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3244. break 2
  3245. fi
  3246. done
  3247. done
  3248. IFS=$as_save_IFS
  3249. fi
  3250. fi
  3251. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3252. if test -n "$ac_ct_CC"; then
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3254. $as_echo "$ac_ct_CC" >&6; }
  3255. else
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3257. $as_echo "no" >&6; }
  3258. fi
  3259. if test "x$ac_ct_CC" = x; then
  3260. CC=""
  3261. else
  3262. case $cross_compiling:$ac_tool_warned in
  3263. yes:)
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3266. ac_tool_warned=yes ;;
  3267. esac
  3268. CC=$ac_ct_CC
  3269. fi
  3270. else
  3271. CC="$ac_cv_prog_CC"
  3272. fi
  3273. if test -z "$CC"; then
  3274. if test -n "$ac_tool_prefix"; then
  3275. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3276. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3278. $as_echo_n "checking for $ac_word... " >&6; }
  3279. if ${ac_cv_prog_CC+:} false; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. if test -n "$CC"; then
  3283. ac_cv_prog_CC="$CC" # Let the user override the test.
  3284. else
  3285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3286. for as_dir in $PATH
  3287. do
  3288. IFS=$as_save_IFS
  3289. test -z "$as_dir" && as_dir=.
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3292. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. fi
  3300. fi
  3301. CC=$ac_cv_prog_CC
  3302. if test -n "$CC"; then
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3304. $as_echo "$CC" >&6; }
  3305. else
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3307. $as_echo "no" >&6; }
  3308. fi
  3309. fi
  3310. fi
  3311. if test -z "$CC"; then
  3312. # Extract the first word of "cc", so it can be a program name with args.
  3313. set dummy cc; ac_word=$2
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3315. $as_echo_n "checking for $ac_word... " >&6; }
  3316. if ${ac_cv_prog_CC+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. if test -n "$CC"; then
  3320. ac_cv_prog_CC="$CC" # Let the user override the test.
  3321. else
  3322. ac_prog_rejected=no
  3323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3324. for as_dir in $PATH
  3325. do
  3326. IFS=$as_save_IFS
  3327. test -z "$as_dir" && as_dir=.
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3331. ac_prog_rejected=yes
  3332. continue
  3333. fi
  3334. ac_cv_prog_CC="cc"
  3335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3336. break 2
  3337. fi
  3338. done
  3339. done
  3340. IFS=$as_save_IFS
  3341. if test $ac_prog_rejected = yes; then
  3342. # We found a bogon in the path, so make sure we never use it.
  3343. set dummy $ac_cv_prog_CC
  3344. shift
  3345. if test $# != 0; then
  3346. # We chose a different compiler from the bogus one.
  3347. # However, it has the same basename, so the bogon will be chosen
  3348. # first if we set CC to just the basename; use the full file name.
  3349. shift
  3350. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3351. fi
  3352. fi
  3353. fi
  3354. fi
  3355. CC=$ac_cv_prog_CC
  3356. if test -n "$CC"; then
  3357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3358. $as_echo "$CC" >&6; }
  3359. else
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3361. $as_echo "no" >&6; }
  3362. fi
  3363. fi
  3364. if test -z "$CC"; then
  3365. if test -n "$ac_tool_prefix"; then
  3366. for ac_prog in cl.exe
  3367. do
  3368. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3369. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3371. $as_echo_n "checking for $ac_word... " >&6; }
  3372. if ${ac_cv_prog_CC+:} false; then :
  3373. $as_echo_n "(cached) " >&6
  3374. else
  3375. if test -n "$CC"; then
  3376. ac_cv_prog_CC="$CC" # Let the user override the test.
  3377. else
  3378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3379. for as_dir in $PATH
  3380. do
  3381. IFS=$as_save_IFS
  3382. test -z "$as_dir" && as_dir=.
  3383. for ac_exec_ext in '' $ac_executable_extensions; do
  3384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3385. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3387. break 2
  3388. fi
  3389. done
  3390. done
  3391. IFS=$as_save_IFS
  3392. fi
  3393. fi
  3394. CC=$ac_cv_prog_CC
  3395. if test -n "$CC"; then
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3397. $as_echo "$CC" >&6; }
  3398. else
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3400. $as_echo "no" >&6; }
  3401. fi
  3402. test -n "$CC" && break
  3403. done
  3404. fi
  3405. if test -z "$CC"; then
  3406. ac_ct_CC=$CC
  3407. for ac_prog in cl.exe
  3408. do
  3409. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3410. set dummy $ac_prog; ac_word=$2
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3412. $as_echo_n "checking for $ac_word... " >&6; }
  3413. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3414. $as_echo_n "(cached) " >&6
  3415. else
  3416. if test -n "$ac_ct_CC"; then
  3417. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3418. else
  3419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3420. for as_dir in $PATH
  3421. do
  3422. IFS=$as_save_IFS
  3423. test -z "$as_dir" && as_dir=.
  3424. for ac_exec_ext in '' $ac_executable_extensions; do
  3425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3426. ac_cv_prog_ac_ct_CC="$ac_prog"
  3427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3428. break 2
  3429. fi
  3430. done
  3431. done
  3432. IFS=$as_save_IFS
  3433. fi
  3434. fi
  3435. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3436. if test -n "$ac_ct_CC"; then
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3438. $as_echo "$ac_ct_CC" >&6; }
  3439. else
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3441. $as_echo "no" >&6; }
  3442. fi
  3443. test -n "$ac_ct_CC" && break
  3444. done
  3445. if test "x$ac_ct_CC" = x; then
  3446. CC=""
  3447. else
  3448. case $cross_compiling:$ac_tool_warned in
  3449. yes:)
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3451. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3452. ac_tool_warned=yes ;;
  3453. esac
  3454. CC=$ac_ct_CC
  3455. fi
  3456. fi
  3457. fi
  3458. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3459. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3460. as_fn_error $? "no acceptable C compiler found in \$PATH
  3461. See \`config.log' for more details" "$LINENO" 5; }
  3462. # Provide some information about the compiler.
  3463. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3464. set X $ac_compile
  3465. ac_compiler=$2
  3466. for ac_option in --version -v -V -qversion; do
  3467. { { ac_try="$ac_compiler $ac_option >&5"
  3468. case "(($ac_try" in
  3469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3470. *) ac_try_echo=$ac_try;;
  3471. esac
  3472. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3473. $as_echo "$ac_try_echo"; } >&5
  3474. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3475. ac_status=$?
  3476. if test -s conftest.err; then
  3477. sed '10a\
  3478. ... rest of stderr output deleted ...
  3479. 10q' conftest.err >conftest.er1
  3480. cat conftest.er1 >&5
  3481. fi
  3482. rm -f conftest.er1 conftest.err
  3483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3484. test $ac_status = 0; }
  3485. done
  3486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3487. /* end confdefs.h. */
  3488. int
  3489. main ()
  3490. {
  3491. ;
  3492. return 0;
  3493. }
  3494. _ACEOF
  3495. ac_clean_files_save=$ac_clean_files
  3496. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3497. # Try to create an executable without -o first, disregard a.out.
  3498. # It will help us diagnose broken compilers, and finding out an intuition
  3499. # of exeext.
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3501. $as_echo_n "checking whether the C compiler works... " >&6; }
  3502. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3503. # The possible output files:
  3504. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3505. ac_rmfiles=
  3506. for ac_file in $ac_files
  3507. do
  3508. case $ac_file in
  3509. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3510. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3511. esac
  3512. done
  3513. rm -f $ac_rmfiles
  3514. if { { ac_try="$ac_link_default"
  3515. case "(($ac_try" in
  3516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3517. *) ac_try_echo=$ac_try;;
  3518. esac
  3519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3520. $as_echo "$ac_try_echo"; } >&5
  3521. (eval "$ac_link_default") 2>&5
  3522. ac_status=$?
  3523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3524. test $ac_status = 0; }; then :
  3525. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3526. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3527. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3528. # so that the user can short-circuit this test for compilers unknown to
  3529. # Autoconf.
  3530. for ac_file in $ac_files ''
  3531. do
  3532. test -f "$ac_file" || continue
  3533. case $ac_file in
  3534. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3535. ;;
  3536. [ab].out )
  3537. # We found the default executable, but exeext='' is most
  3538. # certainly right.
  3539. break;;
  3540. *.* )
  3541. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3542. then :; else
  3543. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3544. fi
  3545. # We set ac_cv_exeext here because the later test for it is not
  3546. # safe: cross compilers may not add the suffix if given an `-o'
  3547. # argument, so we may need to know it at that point already.
  3548. # Even if this section looks crufty: it has the advantage of
  3549. # actually working.
  3550. break;;
  3551. * )
  3552. break;;
  3553. esac
  3554. done
  3555. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3556. else
  3557. ac_file=''
  3558. fi
  3559. if test -z "$ac_file"; then :
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3561. $as_echo "no" >&6; }
  3562. $as_echo "$as_me: failed program was:" >&5
  3563. sed 's/^/| /' conftest.$ac_ext >&5
  3564. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3565. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3566. as_fn_error 77 "C compiler cannot create executables
  3567. See \`config.log' for more details" "$LINENO" 5; }
  3568. else
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3570. $as_echo "yes" >&6; }
  3571. fi
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3573. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3575. $as_echo "$ac_file" >&6; }
  3576. ac_exeext=$ac_cv_exeext
  3577. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3578. ac_clean_files=$ac_clean_files_save
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3580. $as_echo_n "checking for suffix of executables... " >&6; }
  3581. if { { ac_try="$ac_link"
  3582. case "(($ac_try" in
  3583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3584. *) ac_try_echo=$ac_try;;
  3585. esac
  3586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3587. $as_echo "$ac_try_echo"; } >&5
  3588. (eval "$ac_link") 2>&5
  3589. ac_status=$?
  3590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3591. test $ac_status = 0; }; then :
  3592. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3593. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3594. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3595. # `rm'.
  3596. for ac_file in conftest.exe conftest conftest.*; do
  3597. test -f "$ac_file" || continue
  3598. case $ac_file in
  3599. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3600. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3601. break;;
  3602. * ) break;;
  3603. esac
  3604. done
  3605. else
  3606. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3608. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3609. See \`config.log' for more details" "$LINENO" 5; }
  3610. fi
  3611. rm -f conftest conftest$ac_cv_exeext
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3613. $as_echo "$ac_cv_exeext" >&6; }
  3614. rm -f conftest.$ac_ext
  3615. EXEEXT=$ac_cv_exeext
  3616. ac_exeext=$EXEEXT
  3617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3618. /* end confdefs.h. */
  3619. #include <stdio.h>
  3620. int
  3621. main ()
  3622. {
  3623. FILE *f = fopen ("conftest.out", "w");
  3624. return ferror (f) || fclose (f) != 0;
  3625. ;
  3626. return 0;
  3627. }
  3628. _ACEOF
  3629. ac_clean_files="$ac_clean_files conftest.out"
  3630. # Check that the compiler produces executables we can run. If not, either
  3631. # the compiler is broken, or we cross compile.
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3633. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3634. if test "$cross_compiling" != yes; then
  3635. { { ac_try="$ac_link"
  3636. case "(($ac_try" in
  3637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3638. *) ac_try_echo=$ac_try;;
  3639. esac
  3640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3641. $as_echo "$ac_try_echo"; } >&5
  3642. (eval "$ac_link") 2>&5
  3643. ac_status=$?
  3644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3645. test $ac_status = 0; }
  3646. if { ac_try='./conftest$ac_cv_exeext'
  3647. { { case "(($ac_try" in
  3648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3649. *) ac_try_echo=$ac_try;;
  3650. esac
  3651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3652. $as_echo "$ac_try_echo"; } >&5
  3653. (eval "$ac_try") 2>&5
  3654. ac_status=$?
  3655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3656. test $ac_status = 0; }; }; then
  3657. cross_compiling=no
  3658. else
  3659. if test "$cross_compiling" = maybe; then
  3660. cross_compiling=yes
  3661. else
  3662. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3663. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3664. as_fn_error $? "cannot run C compiled programs.
  3665. If you meant to cross compile, use \`--host'.
  3666. See \`config.log' for more details" "$LINENO" 5; }
  3667. fi
  3668. fi
  3669. fi
  3670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3671. $as_echo "$cross_compiling" >&6; }
  3672. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3673. ac_clean_files=$ac_clean_files_save
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3675. $as_echo_n "checking for suffix of object files... " >&6; }
  3676. if ${ac_cv_objext+:} false; then :
  3677. $as_echo_n "(cached) " >&6
  3678. else
  3679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3680. /* end confdefs.h. */
  3681. int
  3682. main ()
  3683. {
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. rm -f conftest.o conftest.obj
  3689. if { { ac_try="$ac_compile"
  3690. case "(($ac_try" in
  3691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3692. *) ac_try_echo=$ac_try;;
  3693. esac
  3694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3695. $as_echo "$ac_try_echo"; } >&5
  3696. (eval "$ac_compile") 2>&5
  3697. ac_status=$?
  3698. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3699. test $ac_status = 0; }; then :
  3700. for ac_file in conftest.o conftest.obj conftest.*; do
  3701. test -f "$ac_file" || continue;
  3702. case $ac_file in
  3703. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3704. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3705. break;;
  3706. esac
  3707. done
  3708. else
  3709. $as_echo "$as_me: failed program was:" >&5
  3710. sed 's/^/| /' conftest.$ac_ext >&5
  3711. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3713. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3714. See \`config.log' for more details" "$LINENO" 5; }
  3715. fi
  3716. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3717. fi
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3719. $as_echo "$ac_cv_objext" >&6; }
  3720. OBJEXT=$ac_cv_objext
  3721. ac_objext=$OBJEXT
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3723. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3724. if ${ac_cv_c_compiler_gnu+:} false; then :
  3725. $as_echo_n "(cached) " >&6
  3726. else
  3727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end confdefs.h. */
  3729. int
  3730. main ()
  3731. {
  3732. #ifndef __GNUC__
  3733. choke me
  3734. #endif
  3735. ;
  3736. return 0;
  3737. }
  3738. _ACEOF
  3739. if ac_fn_c_try_compile "$LINENO"; then :
  3740. ac_compiler_gnu=yes
  3741. else
  3742. ac_compiler_gnu=no
  3743. fi
  3744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3745. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3746. fi
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3748. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3749. if test $ac_compiler_gnu = yes; then
  3750. GCC=yes
  3751. else
  3752. GCC=
  3753. fi
  3754. ac_test_CFLAGS=${CFLAGS+set}
  3755. ac_save_CFLAGS=$CFLAGS
  3756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3757. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3758. if ${ac_cv_prog_cc_g+:} false; then :
  3759. $as_echo_n "(cached) " >&6
  3760. else
  3761. ac_save_c_werror_flag=$ac_c_werror_flag
  3762. ac_c_werror_flag=yes
  3763. ac_cv_prog_cc_g=no
  3764. CFLAGS="-g"
  3765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3766. /* end confdefs.h. */
  3767. int
  3768. main ()
  3769. {
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. if ac_fn_c_try_compile "$LINENO"; then :
  3775. ac_cv_prog_cc_g=yes
  3776. else
  3777. CFLAGS=""
  3778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3779. /* end confdefs.h. */
  3780. int
  3781. main ()
  3782. {
  3783. ;
  3784. return 0;
  3785. }
  3786. _ACEOF
  3787. if ac_fn_c_try_compile "$LINENO"; then :
  3788. else
  3789. ac_c_werror_flag=$ac_save_c_werror_flag
  3790. CFLAGS="-g"
  3791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3792. /* end confdefs.h. */
  3793. int
  3794. main ()
  3795. {
  3796. ;
  3797. return 0;
  3798. }
  3799. _ACEOF
  3800. if ac_fn_c_try_compile "$LINENO"; then :
  3801. ac_cv_prog_cc_g=yes
  3802. fi
  3803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3804. fi
  3805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3806. fi
  3807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3808. ac_c_werror_flag=$ac_save_c_werror_flag
  3809. fi
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3811. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3812. if test "$ac_test_CFLAGS" = set; then
  3813. CFLAGS=$ac_save_CFLAGS
  3814. elif test $ac_cv_prog_cc_g = yes; then
  3815. if test "$GCC" = yes; then
  3816. CFLAGS="-g -O2"
  3817. else
  3818. CFLAGS="-g"
  3819. fi
  3820. else
  3821. if test "$GCC" = yes; then
  3822. CFLAGS="-O2"
  3823. else
  3824. CFLAGS=
  3825. fi
  3826. fi
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3828. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3829. if ${ac_cv_prog_cc_c89+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. ac_cv_prog_cc_c89=no
  3833. ac_save_CC=$CC
  3834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3835. /* end confdefs.h. */
  3836. #include <stdarg.h>
  3837. #include <stdio.h>
  3838. struct stat;
  3839. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3840. struct buf { int x; };
  3841. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3842. static char *e (p, i)
  3843. char **p;
  3844. int i;
  3845. {
  3846. return p[i];
  3847. }
  3848. static char *f (char * (*g) (char **, int), char **p, ...)
  3849. {
  3850. char *s;
  3851. va_list v;
  3852. va_start (v,p);
  3853. s = g (p, va_arg (v,int));
  3854. va_end (v);
  3855. return s;
  3856. }
  3857. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3858. function prototypes and stuff, but not '\xHH' hex character constants.
  3859. These don't provoke an error unfortunately, instead are silently treated
  3860. as 'x'. The following induces an error, until -std is added to get
  3861. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3862. array size at least. It's necessary to write '\x00'==0 to get something
  3863. that's true only with -std. */
  3864. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3865. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3866. inside strings and character constants. */
  3867. #define FOO(x) 'x'
  3868. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3869. int test (int i, double x);
  3870. struct s1 {int (*f) (int a);};
  3871. struct s2 {int (*f) (double a);};
  3872. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3873. int argc;
  3874. char **argv;
  3875. int
  3876. main ()
  3877. {
  3878. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3879. ;
  3880. return 0;
  3881. }
  3882. _ACEOF
  3883. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3884. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3885. do
  3886. CC="$ac_save_CC $ac_arg"
  3887. if ac_fn_c_try_compile "$LINENO"; then :
  3888. ac_cv_prog_cc_c89=$ac_arg
  3889. fi
  3890. rm -f core conftest.err conftest.$ac_objext
  3891. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3892. done
  3893. rm -f conftest.$ac_ext
  3894. CC=$ac_save_CC
  3895. fi
  3896. # AC_CACHE_VAL
  3897. case "x$ac_cv_prog_cc_c89" in
  3898. x)
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3900. $as_echo "none needed" >&6; } ;;
  3901. xno)
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3903. $as_echo "unsupported" >&6; } ;;
  3904. *)
  3905. CC="$CC $ac_cv_prog_cc_c89"
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3907. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3908. esac
  3909. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3910. fi
  3911. ac_ext=c
  3912. ac_cpp='$CPP $CPPFLAGS'
  3913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3916. ac_ext=c
  3917. ac_cpp='$CPP $CPPFLAGS'
  3918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3922. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3923. if ${am_cv_prog_cc_c_o+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3927. /* end confdefs.h. */
  3928. int
  3929. main ()
  3930. {
  3931. ;
  3932. return 0;
  3933. }
  3934. _ACEOF
  3935. # Make sure it works both with $CC and with simple cc.
  3936. # Following AC_PROG_CC_C_O, we do the test twice because some
  3937. # compilers refuse to overwrite an existing .o file with -o,
  3938. # though they will create one.
  3939. am_cv_prog_cc_c_o=yes
  3940. for am_i in 1 2; do
  3941. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3942. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3943. ac_status=$?
  3944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3945. (exit $ac_status); } \
  3946. && test -f conftest2.$ac_objext; then
  3947. : OK
  3948. else
  3949. am_cv_prog_cc_c_o=no
  3950. break
  3951. fi
  3952. done
  3953. rm -f core conftest*
  3954. unset am_i
  3955. fi
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3957. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3958. if test "$am_cv_prog_cc_c_o" != yes; then
  3959. # Losing compiler, so override with the script.
  3960. # FIXME: It is wrong to rewrite CC.
  3961. # But if we don't then we get into trouble of one sort or another.
  3962. # A longer-term fix would be to have automake use am__CC in this case,
  3963. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3964. CC="$am_aux_dir/compile $CC"
  3965. fi
  3966. ac_ext=c
  3967. ac_cpp='$CPP $CPPFLAGS'
  3968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3971. depcc="$CC" am_compiler_list=
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3973. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3974. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3975. $as_echo_n "(cached) " >&6
  3976. else
  3977. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3978. # We make a subdir and do the tests there. Otherwise we can end up
  3979. # making bogus files that we don't know about and never remove. For
  3980. # instance it was reported that on HP-UX the gcc test will end up
  3981. # making a dummy file named 'D' -- because '-MD' means "put the output
  3982. # in D".
  3983. rm -rf conftest.dir
  3984. mkdir conftest.dir
  3985. # Copy depcomp to subdir because otherwise we won't find it if we're
  3986. # using a relative directory.
  3987. cp "$am_depcomp" conftest.dir
  3988. cd conftest.dir
  3989. # We will build objects and dependencies in a subdirectory because
  3990. # it helps to detect inapplicable dependency modes. For instance
  3991. # both Tru64's cc and ICC support -MD to output dependencies as a
  3992. # side effect of compilation, but ICC will put the dependencies in
  3993. # the current directory while Tru64 will put them in the object
  3994. # directory.
  3995. mkdir sub
  3996. am_cv_CC_dependencies_compiler_type=none
  3997. if test "$am_compiler_list" = ""; then
  3998. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3999. fi
  4000. am__universal=false
  4001. case " $depcc " in #(
  4002. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4003. esac
  4004. for depmode in $am_compiler_list; do
  4005. # Setup a source with many dependencies, because some compilers
  4006. # like to wrap large dependency lists on column 80 (with \), and
  4007. # we should not choose a depcomp mode which is confused by this.
  4008. #
  4009. # We need to recreate these files for each test, as the compiler may
  4010. # overwrite some of them when testing with obscure command lines.
  4011. # This happens at least with the AIX C compiler.
  4012. : > sub/conftest.c
  4013. for i in 1 2 3 4 5 6; do
  4014. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4015. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4016. # Solaris 10 /bin/sh.
  4017. echo '/* dummy */' > sub/conftst$i.h
  4018. done
  4019. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4020. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4021. # mode. It turns out that the SunPro C++ compiler does not properly
  4022. # handle '-M -o', and we need to detect this. Also, some Intel
  4023. # versions had trouble with output in subdirs.
  4024. am__obj=sub/conftest.${OBJEXT-o}
  4025. am__minus_obj="-o $am__obj"
  4026. case $depmode in
  4027. gcc)
  4028. # This depmode causes a compiler race in universal mode.
  4029. test "$am__universal" = false || continue
  4030. ;;
  4031. nosideeffect)
  4032. # After this tag, mechanisms are not by side-effect, so they'll
  4033. # only be used when explicitly requested.
  4034. if test "x$enable_dependency_tracking" = xyes; then
  4035. continue
  4036. else
  4037. break
  4038. fi
  4039. ;;
  4040. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4041. # This compiler won't grok '-c -o', but also, the minuso test has
  4042. # not run yet. These depmodes are late enough in the game, and
  4043. # so weak that their functioning should not be impacted.
  4044. am__obj=conftest.${OBJEXT-o}
  4045. am__minus_obj=
  4046. ;;
  4047. none) break ;;
  4048. esac
  4049. if depmode=$depmode \
  4050. source=sub/conftest.c object=$am__obj \
  4051. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4052. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4053. >/dev/null 2>conftest.err &&
  4054. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4055. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4056. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4057. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4058. # icc doesn't choke on unknown options, it will just issue warnings
  4059. # or remarks (even with -Werror). So we grep stderr for any message
  4060. # that says an option was ignored or not supported.
  4061. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4062. # icc: Command line warning: ignoring option '-M'; no argument required
  4063. # The diagnosis changed in icc 8.0:
  4064. # icc: Command line remark: option '-MP' not supported
  4065. if (grep 'ignoring option' conftest.err ||
  4066. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4067. am_cv_CC_dependencies_compiler_type=$depmode
  4068. break
  4069. fi
  4070. fi
  4071. done
  4072. cd ..
  4073. rm -rf conftest.dir
  4074. else
  4075. am_cv_CC_dependencies_compiler_type=none
  4076. fi
  4077. fi
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4079. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4080. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4081. if
  4082. test "x$enable_dependency_tracking" != xno \
  4083. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4084. am__fastdepCC_TRUE=
  4085. am__fastdepCC_FALSE='#'
  4086. else
  4087. am__fastdepCC_TRUE='#'
  4088. am__fastdepCC_FALSE=
  4089. fi
  4090. ac_ext=c
  4091. ac_cpp='$CPP $CPPFLAGS'
  4092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4096. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4097. # On Suns, sometimes $CPP names a directory.
  4098. if test -n "$CPP" && test -d "$CPP"; then
  4099. CPP=
  4100. fi
  4101. if test -z "$CPP"; then
  4102. if ${ac_cv_prog_CPP+:} false; then :
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. # Double quotes because CPP needs to be expanded
  4106. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4107. do
  4108. ac_preproc_ok=false
  4109. for ac_c_preproc_warn_flag in '' yes
  4110. do
  4111. # Use a header file that comes with gcc, so configuring glibc
  4112. # with a fresh cross-compiler works.
  4113. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4114. # <limits.h> exists even on freestanding compilers.
  4115. # On the NeXT, cc -E runs the code through the compiler's parser,
  4116. # not just through cpp. "Syntax error" is here to catch this case.
  4117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4118. /* end confdefs.h. */
  4119. #ifdef __STDC__
  4120. # include <limits.h>
  4121. #else
  4122. # include <assert.h>
  4123. #endif
  4124. Syntax error
  4125. _ACEOF
  4126. if ac_fn_c_try_cpp "$LINENO"; then :
  4127. else
  4128. # Broken: fails on valid input.
  4129. continue
  4130. fi
  4131. rm -f conftest.err conftest.i conftest.$ac_ext
  4132. # OK, works on sane cases. Now check whether nonexistent headers
  4133. # can be detected and how.
  4134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4135. /* end confdefs.h. */
  4136. #include <ac_nonexistent.h>
  4137. _ACEOF
  4138. if ac_fn_c_try_cpp "$LINENO"; then :
  4139. # Broken: success on invalid input.
  4140. continue
  4141. else
  4142. # Passes both tests.
  4143. ac_preproc_ok=:
  4144. break
  4145. fi
  4146. rm -f conftest.err conftest.i conftest.$ac_ext
  4147. done
  4148. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4149. rm -f conftest.i conftest.err conftest.$ac_ext
  4150. if $ac_preproc_ok; then :
  4151. break
  4152. fi
  4153. done
  4154. ac_cv_prog_CPP=$CPP
  4155. fi
  4156. CPP=$ac_cv_prog_CPP
  4157. else
  4158. ac_cv_prog_CPP=$CPP
  4159. fi
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4161. $as_echo "$CPP" >&6; }
  4162. ac_preproc_ok=false
  4163. for ac_c_preproc_warn_flag in '' yes
  4164. do
  4165. # Use a header file that comes with gcc, so configuring glibc
  4166. # with a fresh cross-compiler works.
  4167. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4168. # <limits.h> exists even on freestanding compilers.
  4169. # On the NeXT, cc -E runs the code through the compiler's parser,
  4170. # not just through cpp. "Syntax error" is here to catch this case.
  4171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4172. /* end confdefs.h. */
  4173. #ifdef __STDC__
  4174. # include <limits.h>
  4175. #else
  4176. # include <assert.h>
  4177. #endif
  4178. Syntax error
  4179. _ACEOF
  4180. if ac_fn_c_try_cpp "$LINENO"; then :
  4181. else
  4182. # Broken: fails on valid input.
  4183. continue
  4184. fi
  4185. rm -f conftest.err conftest.i conftest.$ac_ext
  4186. # OK, works on sane cases. Now check whether nonexistent headers
  4187. # can be detected and how.
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. #include <ac_nonexistent.h>
  4191. _ACEOF
  4192. if ac_fn_c_try_cpp "$LINENO"; then :
  4193. # Broken: success on invalid input.
  4194. continue
  4195. else
  4196. # Passes both tests.
  4197. ac_preproc_ok=:
  4198. break
  4199. fi
  4200. rm -f conftest.err conftest.i conftest.$ac_ext
  4201. done
  4202. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4203. rm -f conftest.i conftest.err conftest.$ac_ext
  4204. if $ac_preproc_ok; then :
  4205. else
  4206. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4208. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4209. See \`config.log' for more details" "$LINENO" 5; }
  4210. fi
  4211. ac_ext=c
  4212. ac_cpp='$CPP $CPPFLAGS'
  4213. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4214. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4215. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4217. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4218. if ${ac_cv_path_GREP+:} false; then :
  4219. $as_echo_n "(cached) " >&6
  4220. else
  4221. if test -z "$GREP"; then
  4222. ac_path_GREP_found=false
  4223. # Loop through the user's path and test for each of PROGNAME-LIST
  4224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4225. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4226. do
  4227. IFS=$as_save_IFS
  4228. test -z "$as_dir" && as_dir=.
  4229. for ac_prog in grep ggrep; do
  4230. for ac_exec_ext in '' $ac_executable_extensions; do
  4231. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4232. as_fn_executable_p "$ac_path_GREP" || continue
  4233. # Check for GNU ac_path_GREP and select it if it is found.
  4234. # Check for GNU $ac_path_GREP
  4235. case `"$ac_path_GREP" --version 2>&1` in
  4236. *GNU*)
  4237. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4238. *)
  4239. ac_count=0
  4240. $as_echo_n 0123456789 >"conftest.in"
  4241. while :
  4242. do
  4243. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4244. mv "conftest.tmp" "conftest.in"
  4245. cp "conftest.in" "conftest.nl"
  4246. $as_echo 'GREP' >> "conftest.nl"
  4247. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4248. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4249. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4250. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4251. # Best one so far, save it but keep looking for a better one
  4252. ac_cv_path_GREP="$ac_path_GREP"
  4253. ac_path_GREP_max=$ac_count
  4254. fi
  4255. # 10*(2^10) chars as input seems more than enough
  4256. test $ac_count -gt 10 && break
  4257. done
  4258. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4259. esac
  4260. $ac_path_GREP_found && break 3
  4261. done
  4262. done
  4263. done
  4264. IFS=$as_save_IFS
  4265. if test -z "$ac_cv_path_GREP"; then
  4266. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4267. fi
  4268. else
  4269. ac_cv_path_GREP=$GREP
  4270. fi
  4271. fi
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4273. $as_echo "$ac_cv_path_GREP" >&6; }
  4274. GREP="$ac_cv_path_GREP"
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4276. $as_echo_n "checking for egrep... " >&6; }
  4277. if ${ac_cv_path_EGREP+:} false; then :
  4278. $as_echo_n "(cached) " >&6
  4279. else
  4280. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4281. then ac_cv_path_EGREP="$GREP -E"
  4282. else
  4283. if test -z "$EGREP"; then
  4284. ac_path_EGREP_found=false
  4285. # Loop through the user's path and test for each of PROGNAME-LIST
  4286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4287. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4288. do
  4289. IFS=$as_save_IFS
  4290. test -z "$as_dir" && as_dir=.
  4291. for ac_prog in egrep; do
  4292. for ac_exec_ext in '' $ac_executable_extensions; do
  4293. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4294. as_fn_executable_p "$ac_path_EGREP" || continue
  4295. # Check for GNU ac_path_EGREP and select it if it is found.
  4296. # Check for GNU $ac_path_EGREP
  4297. case `"$ac_path_EGREP" --version 2>&1` in
  4298. *GNU*)
  4299. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4300. *)
  4301. ac_count=0
  4302. $as_echo_n 0123456789 >"conftest.in"
  4303. while :
  4304. do
  4305. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4306. mv "conftest.tmp" "conftest.in"
  4307. cp "conftest.in" "conftest.nl"
  4308. $as_echo 'EGREP' >> "conftest.nl"
  4309. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4310. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4311. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4312. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4313. # Best one so far, save it but keep looking for a better one
  4314. ac_cv_path_EGREP="$ac_path_EGREP"
  4315. ac_path_EGREP_max=$ac_count
  4316. fi
  4317. # 10*(2^10) chars as input seems more than enough
  4318. test $ac_count -gt 10 && break
  4319. done
  4320. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4321. esac
  4322. $ac_path_EGREP_found && break 3
  4323. done
  4324. done
  4325. done
  4326. IFS=$as_save_IFS
  4327. if test -z "$ac_cv_path_EGREP"; then
  4328. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4329. fi
  4330. else
  4331. ac_cv_path_EGREP=$EGREP
  4332. fi
  4333. fi
  4334. fi
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4336. $as_echo "$ac_cv_path_EGREP" >&6; }
  4337. EGREP="$ac_cv_path_EGREP"
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4339. $as_echo_n "checking for ANSI C header files... " >&6; }
  4340. if ${ac_cv_header_stdc+:} false; then :
  4341. $as_echo_n "(cached) " >&6
  4342. else
  4343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4344. /* end confdefs.h. */
  4345. #include <stdlib.h>
  4346. #include <stdarg.h>
  4347. #include <string.h>
  4348. #include <float.h>
  4349. int
  4350. main ()
  4351. {
  4352. ;
  4353. return 0;
  4354. }
  4355. _ACEOF
  4356. if ac_fn_c_try_compile "$LINENO"; then :
  4357. ac_cv_header_stdc=yes
  4358. else
  4359. ac_cv_header_stdc=no
  4360. fi
  4361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4362. if test $ac_cv_header_stdc = yes; then
  4363. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4365. /* end confdefs.h. */
  4366. #include <string.h>
  4367. _ACEOF
  4368. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4369. $EGREP "memchr" >/dev/null 2>&1; then :
  4370. else
  4371. ac_cv_header_stdc=no
  4372. fi
  4373. rm -f conftest*
  4374. fi
  4375. if test $ac_cv_header_stdc = yes; then
  4376. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4378. /* end confdefs.h. */
  4379. #include <stdlib.h>
  4380. _ACEOF
  4381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4382. $EGREP "free" >/dev/null 2>&1; then :
  4383. else
  4384. ac_cv_header_stdc=no
  4385. fi
  4386. rm -f conftest*
  4387. fi
  4388. if test $ac_cv_header_stdc = yes; then
  4389. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4390. if test "$cross_compiling" = yes; then :
  4391. :
  4392. else
  4393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4394. /* end confdefs.h. */
  4395. #include <ctype.h>
  4396. #include <stdlib.h>
  4397. #if ((' ' & 0x0FF) == 0x020)
  4398. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4399. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4400. #else
  4401. # define ISLOWER(c) \
  4402. (('a' <= (c) && (c) <= 'i') \
  4403. || ('j' <= (c) && (c) <= 'r') \
  4404. || ('s' <= (c) && (c) <= 'z'))
  4405. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4406. #endif
  4407. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4408. int
  4409. main ()
  4410. {
  4411. int i;
  4412. for (i = 0; i < 256; i++)
  4413. if (XOR (islower (i), ISLOWER (i))
  4414. || toupper (i) != TOUPPER (i))
  4415. return 2;
  4416. return 0;
  4417. }
  4418. _ACEOF
  4419. if ac_fn_c_try_run "$LINENO"; then :
  4420. else
  4421. ac_cv_header_stdc=no
  4422. fi
  4423. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4424. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4425. fi
  4426. fi
  4427. fi
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4429. $as_echo "$ac_cv_header_stdc" >&6; }
  4430. if test $ac_cv_header_stdc = yes; then
  4431. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4432. fi
  4433. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4434. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4435. inttypes.h stdint.h unistd.h
  4436. do :
  4437. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4438. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4439. "
  4440. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4441. cat >>confdefs.h <<_ACEOF
  4442. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4443. _ACEOF
  4444. fi
  4445. done
  4446. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4447. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4448. MINIX=yes
  4449. else
  4450. MINIX=
  4451. fi
  4452. if test "$MINIX" = yes; then
  4453. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4454. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4455. $as_echo "#define _MINIX 1" >>confdefs.h
  4456. fi
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4458. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4459. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4460. $as_echo_n "(cached) " >&6
  4461. else
  4462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4463. /* end confdefs.h. */
  4464. # define __EXTENSIONS__ 1
  4465. $ac_includes_default
  4466. int
  4467. main ()
  4468. {
  4469. ;
  4470. return 0;
  4471. }
  4472. _ACEOF
  4473. if ac_fn_c_try_compile "$LINENO"; then :
  4474. ac_cv_safe_to_define___extensions__=yes
  4475. else
  4476. ac_cv_safe_to_define___extensions__=no
  4477. fi
  4478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4479. fi
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4481. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4482. test $ac_cv_safe_to_define___extensions__ = yes &&
  4483. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4484. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4485. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4486. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4487. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4488. # PR 14072
  4489. # Check whether --with-sysroot was given.
  4490. if test "${with_sysroot+set}" = set; then :
  4491. withval=$with_sysroot; sysroot=$withval
  4492. else
  4493. sysroot=no
  4494. fi
  4495. if test "$sysroot" = "yes"; then
  4496. sysroot='${exec_prefix}/${target_alias}/sys-root'
  4497. elif test "$sysroot" = "no"; then
  4498. sysroot=
  4499. fi
  4500. sysroot_relocatable=0
  4501. if test -n "$sysroot"; then
  4502. case "$sysroot" in
  4503. "${prefix}" | "${prefix}/"* | \
  4504. "${exec_prefix}" | "${exec_prefix}/"* | \
  4505. '${prefix}' | '${prefix}/'*| \
  4506. '${exec_prefix}' | '${exec_prefix}/'*)
  4507. sysroot_relocatable=1
  4508. ;;
  4509. esac
  4510. fi
  4511. cat >>confdefs.h <<_ACEOF
  4512. #define TARGET_SYSTEM_ROOT "$sysroot"
  4513. _ACEOF
  4514. cat >>confdefs.h <<_ACEOF
  4515. #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
  4516. _ACEOF
  4517. installed_linker=ld.gold
  4518. # Check whether --enable-gold was given.
  4519. if test "${enable_gold+set}" = set; then :
  4520. enableval=$enable_gold; case "${enableval}" in
  4521. default)
  4522. install_as_default=yes
  4523. ;;
  4524. yes)
  4525. if test x${enable_ld} = xno; then
  4526. install_as_default=yes
  4527. fi
  4528. ;;
  4529. esac
  4530. else
  4531. install_as_default=no
  4532. fi
  4533. maybe_plugins=no
  4534. for ac_header in dlfcn.h
  4535. do :
  4536. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  4537. "
  4538. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  4539. cat >>confdefs.h <<_ACEOF
  4540. #define HAVE_DLFCN_H 1
  4541. _ACEOF
  4542. maybe_plugins=yes
  4543. fi
  4544. done
  4545. for ac_header in windows.h
  4546. do :
  4547. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  4548. "
  4549. if test "x$ac_cv_header_windows_h" = xyes; then :
  4550. cat >>confdefs.h <<_ACEOF
  4551. #define HAVE_WINDOWS_H 1
  4552. _ACEOF
  4553. maybe_plugins=yes
  4554. fi
  4555. done
  4556. # Check whether --enable-plugins was given.
  4557. if test "${enable_plugins+set}" = set; then :
  4558. enableval=$enable_plugins; case "${enableval}" in
  4559. no) plugins=no ;;
  4560. *) plugins=yes
  4561. if test "$maybe_plugins" != "yes" ; then
  4562. as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  4563. fi ;;
  4564. esac
  4565. else
  4566. plugins=$maybe_plugins
  4567. fi
  4568. if test "$plugins" = "yes"; then
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
  4570. $as_echo_n "checking for library containing dlsym... " >&6; }
  4571. if ${ac_cv_search_dlsym+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. ac_func_search_save_LIBS=$LIBS
  4575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4576. /* end confdefs.h. */
  4577. /* Override any GCC internal prototype to avoid an error.
  4578. Use char because int might match the return type of a GCC
  4579. builtin and then its argument prototype would still apply. */
  4580. #ifdef __cplusplus
  4581. extern "C"
  4582. #endif
  4583. char dlsym ();
  4584. int
  4585. main ()
  4586. {
  4587. return dlsym ();
  4588. ;
  4589. return 0;
  4590. }
  4591. _ACEOF
  4592. for ac_lib in '' dl; do
  4593. if test -z "$ac_lib"; then
  4594. ac_res="none required"
  4595. else
  4596. ac_res=-l$ac_lib
  4597. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4598. fi
  4599. if ac_fn_c_try_link "$LINENO"; then :
  4600. ac_cv_search_dlsym=$ac_res
  4601. fi
  4602. rm -f core conftest.err conftest.$ac_objext \
  4603. conftest$ac_exeext
  4604. if ${ac_cv_search_dlsym+:} false; then :
  4605. break
  4606. fi
  4607. done
  4608. if ${ac_cv_search_dlsym+:} false; then :
  4609. else
  4610. ac_cv_search_dlsym=no
  4611. fi
  4612. rm conftest.$ac_ext
  4613. LIBS=$ac_func_search_save_LIBS
  4614. fi
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
  4616. $as_echo "$ac_cv_search_dlsym" >&6; }
  4617. ac_res=$ac_cv_search_dlsym
  4618. if test "$ac_res" != no; then :
  4619. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4620. fi
  4621. fi
  4622. if test "$plugins" = "yes"; then
  4623. $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
  4624. fi
  4625. if test "$plugins" = "yes"; then
  4626. PLUGINS_TRUE=
  4627. PLUGINS_FALSE='#'
  4628. else
  4629. PLUGINS_TRUE='#'
  4630. PLUGINS_FALSE=
  4631. fi
  4632. # Decide if -z relro should be enabled in ELF linker by default.
  4633. ac_default_ld_z_relro=unset
  4634. # Provide a configure time option to override our default.
  4635. # Check whether --enable-relro was given.
  4636. if test "${enable_relro+set}" = set; then :
  4637. enableval=$enable_relro; case "${enableval}" in
  4638. yes) ac_default_ld_z_relro=1 ;;
  4639. no) ac_default_ld_z_relro=0 ;;
  4640. esac
  4641. fi
  4642. if test "${ac_default_ld_z_relro}" = unset; then
  4643. ac_default_ld_z_relro=1
  4644. fi
  4645. cat >>confdefs.h <<_ACEOF
  4646. #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
  4647. _ACEOF
  4648. # Check whether --enable-targets was given.
  4649. if test "${enable_targets+set}" = set; then :
  4650. enableval=$enable_targets; case "${enableval}" in
  4651. yes | "")
  4652. as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5
  4653. ;;
  4654. no)
  4655. enable_targets=
  4656. ;;
  4657. *)
  4658. enable_targets=$enableval
  4659. ;;
  4660. esac
  4661. else
  4662. # For now, enable all targets by default
  4663. enable_targets=all
  4664. fi
  4665. # Canonicalize the enabled targets.
  4666. if test -n "$enable_targets"; then
  4667. for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
  4668. result=`$ac_config_sub $targ 2>/dev/null`
  4669. if test -n "$result"; then
  4670. canon_targets="$canon_targets $result"
  4671. else
  4672. # Permit unrecognized target names, like "all".
  4673. canon_targets="$canon_targets $targ"
  4674. fi
  4675. done
  4676. fi
  4677. # Decide which "--hash-style" to use by default
  4678. # Provide a configure time option to override our default.
  4679. # Check whether --enable-default-hash-style was given.
  4680. if test "${enable_default_hash_style+set}" = set; then :
  4681. enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
  4682. sysv | gnu | both) ;;
  4683. *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
  4684. esac
  4685. else
  4686. case "${target}" in
  4687. # Enable gnu hash only on GNU targets, but not mips
  4688. mips*-*-*) enable_default_hash_style=sysv ;;
  4689. *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
  4690. *) enable_default_hash_style=sysv ;;
  4691. esac
  4692. fi
  4693. cat >>confdefs.h <<_ACEOF
  4694. #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
  4695. _ACEOF
  4696. # See which specific instantiations we need.
  4697. targetobjs=
  4698. all_targets=
  4699. default_machine=
  4700. default_size=
  4701. default_big_endian=
  4702. default_osabi=ELFOSABI_NONE
  4703. targ_32_little=
  4704. targ_32_big=
  4705. targ_64_little=
  4706. targ_64_big=
  4707. for targ in $target $canon_targets; do
  4708. if test "$targ" = "all"; then
  4709. targ_32_little=yes
  4710. targ_32_big=yes
  4711. targ_64_little=yes
  4712. targ_64_big=yes
  4713. all_targets=yes
  4714. else
  4715. . ${srcdir}/configure.tgt
  4716. if test "$targ_obj" = "UNKNOWN"; then
  4717. as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5
  4718. else
  4719. targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
  4720. if test "$targ_extra_obj" != ""; then
  4721. targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
  4722. fi
  4723. if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
  4724. if test "$targ_big_endian" = "true" \
  4725. -o "$targ_extra_big_endian" = "true"; then
  4726. targ_32_big=yes
  4727. fi
  4728. if test "$targ_big_endian" = "false" \
  4729. -o "$targ_extra_big_endian" = "false"; then
  4730. targ_32_little=yes
  4731. fi
  4732. fi
  4733. if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
  4734. if test "$targ_big_endian" = "true" \
  4735. -o "$targ_extra_big_endian" = "true"; then
  4736. targ_64_big=yes
  4737. fi
  4738. if test "$targ_big_endian" = "false" \
  4739. -o "$targ_extra_big_endian" = "false"; then
  4740. targ_64_little=yes
  4741. fi
  4742. fi
  4743. if test "$target" = "$targ"; then
  4744. default_machine=$targ_machine
  4745. default_size=$targ_size
  4746. default_big_endian=$targ_big_endian
  4747. default_osabi=$targ_osabi
  4748. if test "$targ_obj" = "aarch64"; then
  4749. DEFAULT_TARGET_AARCH64_TRUE=
  4750. DEFAULT_TARGET_AARCH64_FALSE='#'
  4751. else
  4752. DEFAULT_TARGET_AARCH64_TRUE='#'
  4753. DEFAULT_TARGET_AARCH64_FALSE=
  4754. fi
  4755. if test "$targ_obj" = "arm"; then
  4756. DEFAULT_TARGET_ARM_TRUE=
  4757. DEFAULT_TARGET_ARM_FALSE='#'
  4758. else
  4759. DEFAULT_TARGET_ARM_TRUE='#'
  4760. DEFAULT_TARGET_ARM_FALSE=
  4761. fi
  4762. if test "$targ_obj" = "i386"; then
  4763. DEFAULT_TARGET_I386_TRUE=
  4764. DEFAULT_TARGET_I386_FALSE='#'
  4765. else
  4766. DEFAULT_TARGET_I386_TRUE='#'
  4767. DEFAULT_TARGET_I386_FALSE=
  4768. fi
  4769. if test "$targ_obj" = "powerpc"; then
  4770. DEFAULT_TARGET_POWERPC_TRUE=
  4771. DEFAULT_TARGET_POWERPC_FALSE='#'
  4772. else
  4773. DEFAULT_TARGET_POWERPC_TRUE='#'
  4774. DEFAULT_TARGET_POWERPC_FALSE=
  4775. fi
  4776. if test "$targ_obj" = "sparc"; then
  4777. DEFAULT_TARGET_SPARC_TRUE=
  4778. DEFAULT_TARGET_SPARC_FALSE='#'
  4779. else
  4780. DEFAULT_TARGET_SPARC_TRUE='#'
  4781. DEFAULT_TARGET_SPARC_FALSE=
  4782. fi
  4783. if test "$targ_obj" = "s390"; then
  4784. DEFAULT_TARGET_S390_TRUE=
  4785. DEFAULT_TARGET_S390_FALSE='#'
  4786. else
  4787. DEFAULT_TARGET_S390_TRUE='#'
  4788. DEFAULT_TARGET_S390_FALSE=
  4789. fi
  4790. target_x86_64=no
  4791. target_x32=no
  4792. if test "$targ_obj" = "x86_64"; then
  4793. case "$target" in
  4794. x86_64*-linux-gnux32)
  4795. target_x32=yes
  4796. default_size=32
  4797. ;;
  4798. *)
  4799. target_x86_64=yes
  4800. ;;
  4801. esac
  4802. fi
  4803. if test "$target_x86_64" = "yes"; then
  4804. DEFAULT_TARGET_X86_64_TRUE=
  4805. DEFAULT_TARGET_X86_64_FALSE='#'
  4806. else
  4807. DEFAULT_TARGET_X86_64_TRUE='#'
  4808. DEFAULT_TARGET_X86_64_FALSE=
  4809. fi
  4810. if test "$target_x32" = "yes"; then
  4811. DEFAULT_TARGET_X32_TRUE=
  4812. DEFAULT_TARGET_X32_FALSE='#'
  4813. else
  4814. DEFAULT_TARGET_X32_TRUE='#'
  4815. DEFAULT_TARGET_X32_FALSE=
  4816. fi
  4817. if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
  4818. DEFAULT_TARGET_X86_64_OR_X32_TRUE=
  4819. DEFAULT_TARGET_X86_64_OR_X32_FALSE='#'
  4820. else
  4821. DEFAULT_TARGET_X86_64_OR_X32_TRUE='#'
  4822. DEFAULT_TARGET_X86_64_OR_X32_FALSE=
  4823. fi
  4824. if test "$targ_obj" = "tilegx"; then
  4825. DEFAULT_TARGET_TILEGX_TRUE=
  4826. DEFAULT_TARGET_TILEGX_FALSE='#'
  4827. else
  4828. DEFAULT_TARGET_TILEGX_TRUE='#'
  4829. DEFAULT_TARGET_TILEGX_FALSE=
  4830. fi
  4831. if test "$targ_obj" = "mips"; then
  4832. DEFAULT_TARGET_MIPS_TRUE=
  4833. DEFAULT_TARGET_MIPS_FALSE='#'
  4834. else
  4835. DEFAULT_TARGET_MIPS_TRUE='#'
  4836. DEFAULT_TARGET_MIPS_FALSE=
  4837. fi
  4838. DEFAULT_TARGET=${targ_obj}
  4839. fi
  4840. fi
  4841. fi
  4842. done
  4843. # Remove any duplicates.
  4844. to=""
  4845. for t in $targetobjs; do
  4846. case " $to " in
  4847. *" $t "*) ;;
  4848. *) to="$to $t" ;;
  4849. esac
  4850. done
  4851. targetobjs=$to
  4852. if test -n "$targ_32_little"; then
  4853. $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
  4854. fi
  4855. if test -n "$targ_32_big"; then
  4856. $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
  4857. fi
  4858. if test -n "$targ_64_little"; then
  4859. $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
  4860. fi
  4861. if test -n "$targ_64_big"; then
  4862. $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
  4863. fi
  4864. if test -n "$all_targets"; then
  4865. TARGETOBJS='$(ALL_TARGETOBJS)'
  4866. else
  4867. TARGETOBJS="$targetobjs"
  4868. fi
  4869. cat >>confdefs.h <<_ACEOF
  4870. #define GOLD_DEFAULT_MACHINE $default_machine
  4871. _ACEOF
  4872. cat >>confdefs.h <<_ACEOF
  4873. #define GOLD_DEFAULT_SIZE $default_size
  4874. _ACEOF
  4875. cat >>confdefs.h <<_ACEOF
  4876. #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
  4877. _ACEOF
  4878. cat >>confdefs.h <<_ACEOF
  4879. #define GOLD_DEFAULT_OSABI $default_osabi
  4880. _ACEOF
  4881. # Check whether --with-lib-path was given.
  4882. if test "${with_lib_path+set}" = set; then :
  4883. withval=$with_lib_path; case "$withval" in
  4884. yes) LIB_PATH='"/lib:/usr/lib"' ;;
  4885. no) LIB_PATH='""' ;;
  4886. *) LIB_PATH='"'"$withval"'"' ;;
  4887. esac
  4888. else
  4889. LIB_PATH='"::DEFAULT::"'
  4890. fi
  4891. cat >>confdefs.h <<_ACEOF
  4892. #define LIB_PATH $LIB_PATH
  4893. _ACEOF
  4894. if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
  4895. $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
  4896. fi
  4897. if test -n "$ac_tool_prefix"; then
  4898. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  4899. set dummy ${ac_tool_prefix}nm; ac_word=$2
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4901. $as_echo_n "checking for $ac_word... " >&6; }
  4902. if ${ac_cv_prog_NM+:} false; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. if test -n "$NM"; then
  4906. ac_cv_prog_NM="$NM" # Let the user override the test.
  4907. else
  4908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4909. for as_dir in $PATH
  4910. do
  4911. IFS=$as_save_IFS
  4912. test -z "$as_dir" && as_dir=.
  4913. for ac_exec_ext in '' $ac_executable_extensions; do
  4914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4915. ac_cv_prog_NM="${ac_tool_prefix}nm"
  4916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4917. break 2
  4918. fi
  4919. done
  4920. done
  4921. IFS=$as_save_IFS
  4922. fi
  4923. fi
  4924. NM=$ac_cv_prog_NM
  4925. if test -n "$NM"; then
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  4927. $as_echo "$NM" >&6; }
  4928. else
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4930. $as_echo "no" >&6; }
  4931. fi
  4932. fi
  4933. if test -z "$ac_cv_prog_NM"; then
  4934. ac_ct_NM=$NM
  4935. # Extract the first word of "nm", so it can be a program name with args.
  4936. set dummy nm; ac_word=$2
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4938. $as_echo_n "checking for $ac_word... " >&6; }
  4939. if ${ac_cv_prog_ac_ct_NM+:} false; then :
  4940. $as_echo_n "(cached) " >&6
  4941. else
  4942. if test -n "$ac_ct_NM"; then
  4943. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  4944. else
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH
  4947. do
  4948. IFS=$as_save_IFS
  4949. test -z "$as_dir" && as_dir=.
  4950. for ac_exec_ext in '' $ac_executable_extensions; do
  4951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4952. ac_cv_prog_ac_ct_NM="nm"
  4953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4954. break 2
  4955. fi
  4956. done
  4957. done
  4958. IFS=$as_save_IFS
  4959. fi
  4960. fi
  4961. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  4962. if test -n "$ac_ct_NM"; then
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  4964. $as_echo "$ac_ct_NM" >&6; }
  4965. else
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4967. $as_echo "no" >&6; }
  4968. fi
  4969. if test "x$ac_ct_NM" = x; then
  4970. NM=""
  4971. else
  4972. case $cross_compiling:$ac_tool_warned in
  4973. yes:)
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4975. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4976. ac_tool_warned=yes ;;
  4977. esac
  4978. NM=$ac_ct_NM
  4979. fi
  4980. else
  4981. NM="$ac_cv_prog_NM"
  4982. fi
  4983. ac_ext=c
  4984. ac_cpp='$CPP $CPPFLAGS'
  4985. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4986. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4987. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4988. if test -n "$ac_tool_prefix"; then
  4989. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4990. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4992. $as_echo_n "checking for $ac_word... " >&6; }
  4993. if ${ac_cv_prog_CC+:} false; then :
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. if test -n "$CC"; then
  4997. ac_cv_prog_CC="$CC" # Let the user override the test.
  4998. else
  4999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5000. for as_dir in $PATH
  5001. do
  5002. IFS=$as_save_IFS
  5003. test -z "$as_dir" && as_dir=.
  5004. for ac_exec_ext in '' $ac_executable_extensions; do
  5005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5006. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5008. break 2
  5009. fi
  5010. done
  5011. done
  5012. IFS=$as_save_IFS
  5013. fi
  5014. fi
  5015. CC=$ac_cv_prog_CC
  5016. if test -n "$CC"; then
  5017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5018. $as_echo "$CC" >&6; }
  5019. else
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5021. $as_echo "no" >&6; }
  5022. fi
  5023. fi
  5024. if test -z "$ac_cv_prog_CC"; then
  5025. ac_ct_CC=$CC
  5026. # Extract the first word of "gcc", so it can be a program name with args.
  5027. set dummy gcc; ac_word=$2
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5029. $as_echo_n "checking for $ac_word... " >&6; }
  5030. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5031. $as_echo_n "(cached) " >&6
  5032. else
  5033. if test -n "$ac_ct_CC"; then
  5034. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5035. else
  5036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5037. for as_dir in $PATH
  5038. do
  5039. IFS=$as_save_IFS
  5040. test -z "$as_dir" && as_dir=.
  5041. for ac_exec_ext in '' $ac_executable_extensions; do
  5042. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5043. ac_cv_prog_ac_ct_CC="gcc"
  5044. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5045. break 2
  5046. fi
  5047. done
  5048. done
  5049. IFS=$as_save_IFS
  5050. fi
  5051. fi
  5052. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5053. if test -n "$ac_ct_CC"; then
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5055. $as_echo "$ac_ct_CC" >&6; }
  5056. else
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5058. $as_echo "no" >&6; }
  5059. fi
  5060. if test "x$ac_ct_CC" = x; then
  5061. CC=""
  5062. else
  5063. case $cross_compiling:$ac_tool_warned in
  5064. yes:)
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5066. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5067. ac_tool_warned=yes ;;
  5068. esac
  5069. CC=$ac_ct_CC
  5070. fi
  5071. else
  5072. CC="$ac_cv_prog_CC"
  5073. fi
  5074. if test -z "$CC"; then
  5075. if test -n "$ac_tool_prefix"; then
  5076. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5077. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5079. $as_echo_n "checking for $ac_word... " >&6; }
  5080. if ${ac_cv_prog_CC+:} false; then :
  5081. $as_echo_n "(cached) " >&6
  5082. else
  5083. if test -n "$CC"; then
  5084. ac_cv_prog_CC="$CC" # Let the user override the test.
  5085. else
  5086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5087. for as_dir in $PATH
  5088. do
  5089. IFS=$as_save_IFS
  5090. test -z "$as_dir" && as_dir=.
  5091. for ac_exec_ext in '' $ac_executable_extensions; do
  5092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5093. ac_cv_prog_CC="${ac_tool_prefix}cc"
  5094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5095. break 2
  5096. fi
  5097. done
  5098. done
  5099. IFS=$as_save_IFS
  5100. fi
  5101. fi
  5102. CC=$ac_cv_prog_CC
  5103. if test -n "$CC"; then
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5105. $as_echo "$CC" >&6; }
  5106. else
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5108. $as_echo "no" >&6; }
  5109. fi
  5110. fi
  5111. fi
  5112. if test -z "$CC"; then
  5113. # Extract the first word of "cc", so it can be a program name with args.
  5114. set dummy cc; ac_word=$2
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5116. $as_echo_n "checking for $ac_word... " >&6; }
  5117. if ${ac_cv_prog_CC+:} false; then :
  5118. $as_echo_n "(cached) " >&6
  5119. else
  5120. if test -n "$CC"; then
  5121. ac_cv_prog_CC="$CC" # Let the user override the test.
  5122. else
  5123. ac_prog_rejected=no
  5124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5125. for as_dir in $PATH
  5126. do
  5127. IFS=$as_save_IFS
  5128. test -z "$as_dir" && as_dir=.
  5129. for ac_exec_ext in '' $ac_executable_extensions; do
  5130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5131. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5132. ac_prog_rejected=yes
  5133. continue
  5134. fi
  5135. ac_cv_prog_CC="cc"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. if test $ac_prog_rejected = yes; then
  5143. # We found a bogon in the path, so make sure we never use it.
  5144. set dummy $ac_cv_prog_CC
  5145. shift
  5146. if test $# != 0; then
  5147. # We chose a different compiler from the bogus one.
  5148. # However, it has the same basename, so the bogon will be chosen
  5149. # first if we set CC to just the basename; use the full file name.
  5150. shift
  5151. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5152. fi
  5153. fi
  5154. fi
  5155. fi
  5156. CC=$ac_cv_prog_CC
  5157. if test -n "$CC"; then
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5159. $as_echo "$CC" >&6; }
  5160. else
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5162. $as_echo "no" >&6; }
  5163. fi
  5164. fi
  5165. if test -z "$CC"; then
  5166. if test -n "$ac_tool_prefix"; then
  5167. for ac_prog in cl.exe
  5168. do
  5169. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5170. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5172. $as_echo_n "checking for $ac_word... " >&6; }
  5173. if ${ac_cv_prog_CC+:} false; then :
  5174. $as_echo_n "(cached) " >&6
  5175. else
  5176. if test -n "$CC"; then
  5177. ac_cv_prog_CC="$CC" # Let the user override the test.
  5178. else
  5179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5180. for as_dir in $PATH
  5181. do
  5182. IFS=$as_save_IFS
  5183. test -z "$as_dir" && as_dir=.
  5184. for ac_exec_ext in '' $ac_executable_extensions; do
  5185. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5186. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5188. break 2
  5189. fi
  5190. done
  5191. done
  5192. IFS=$as_save_IFS
  5193. fi
  5194. fi
  5195. CC=$ac_cv_prog_CC
  5196. if test -n "$CC"; then
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5198. $as_echo "$CC" >&6; }
  5199. else
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5201. $as_echo "no" >&6; }
  5202. fi
  5203. test -n "$CC" && break
  5204. done
  5205. fi
  5206. if test -z "$CC"; then
  5207. ac_ct_CC=$CC
  5208. for ac_prog in cl.exe
  5209. do
  5210. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5211. set dummy $ac_prog; ac_word=$2
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5213. $as_echo_n "checking for $ac_word... " >&6; }
  5214. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$ac_ct_CC"; then
  5218. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5219. else
  5220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5221. for as_dir in $PATH
  5222. do
  5223. IFS=$as_save_IFS
  5224. test -z "$as_dir" && as_dir=.
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5227. ac_cv_prog_ac_ct_CC="$ac_prog"
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5229. break 2
  5230. fi
  5231. done
  5232. done
  5233. IFS=$as_save_IFS
  5234. fi
  5235. fi
  5236. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5237. if test -n "$ac_ct_CC"; then
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5239. $as_echo "$ac_ct_CC" >&6; }
  5240. else
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5242. $as_echo "no" >&6; }
  5243. fi
  5244. test -n "$ac_ct_CC" && break
  5245. done
  5246. if test "x$ac_ct_CC" = x; then
  5247. CC=""
  5248. else
  5249. case $cross_compiling:$ac_tool_warned in
  5250. yes:)
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5253. ac_tool_warned=yes ;;
  5254. esac
  5255. CC=$ac_ct_CC
  5256. fi
  5257. fi
  5258. fi
  5259. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5261. as_fn_error $? "no acceptable C compiler found in \$PATH
  5262. See \`config.log' for more details" "$LINENO" 5; }
  5263. # Provide some information about the compiler.
  5264. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5265. set X $ac_compile
  5266. ac_compiler=$2
  5267. for ac_option in --version -v -V -qversion; do
  5268. { { ac_try="$ac_compiler $ac_option >&5"
  5269. case "(($ac_try" in
  5270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5271. *) ac_try_echo=$ac_try;;
  5272. esac
  5273. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5274. $as_echo "$ac_try_echo"; } >&5
  5275. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5276. ac_status=$?
  5277. if test -s conftest.err; then
  5278. sed '10a\
  5279. ... rest of stderr output deleted ...
  5280. 10q' conftest.err >conftest.er1
  5281. cat conftest.er1 >&5
  5282. fi
  5283. rm -f conftest.er1 conftest.err
  5284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5285. test $ac_status = 0; }
  5286. done
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5288. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5289. if ${ac_cv_c_compiler_gnu+:} false; then :
  5290. $as_echo_n "(cached) " >&6
  5291. else
  5292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5293. /* end confdefs.h. */
  5294. int
  5295. main ()
  5296. {
  5297. #ifndef __GNUC__
  5298. choke me
  5299. #endif
  5300. ;
  5301. return 0;
  5302. }
  5303. _ACEOF
  5304. if ac_fn_c_try_compile "$LINENO"; then :
  5305. ac_compiler_gnu=yes
  5306. else
  5307. ac_compiler_gnu=no
  5308. fi
  5309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5310. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5311. fi
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5313. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5314. if test $ac_compiler_gnu = yes; then
  5315. GCC=yes
  5316. else
  5317. GCC=
  5318. fi
  5319. ac_test_CFLAGS=${CFLAGS+set}
  5320. ac_save_CFLAGS=$CFLAGS
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5322. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5323. if ${ac_cv_prog_cc_g+:} false; then :
  5324. $as_echo_n "(cached) " >&6
  5325. else
  5326. ac_save_c_werror_flag=$ac_c_werror_flag
  5327. ac_c_werror_flag=yes
  5328. ac_cv_prog_cc_g=no
  5329. CFLAGS="-g"
  5330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5331. /* end confdefs.h. */
  5332. int
  5333. main ()
  5334. {
  5335. ;
  5336. return 0;
  5337. }
  5338. _ACEOF
  5339. if ac_fn_c_try_compile "$LINENO"; then :
  5340. ac_cv_prog_cc_g=yes
  5341. else
  5342. CFLAGS=""
  5343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5344. /* end confdefs.h. */
  5345. int
  5346. main ()
  5347. {
  5348. ;
  5349. return 0;
  5350. }
  5351. _ACEOF
  5352. if ac_fn_c_try_compile "$LINENO"; then :
  5353. else
  5354. ac_c_werror_flag=$ac_save_c_werror_flag
  5355. CFLAGS="-g"
  5356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5357. /* end confdefs.h. */
  5358. int
  5359. main ()
  5360. {
  5361. ;
  5362. return 0;
  5363. }
  5364. _ACEOF
  5365. if ac_fn_c_try_compile "$LINENO"; then :
  5366. ac_cv_prog_cc_g=yes
  5367. fi
  5368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5369. fi
  5370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5371. fi
  5372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5373. ac_c_werror_flag=$ac_save_c_werror_flag
  5374. fi
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5376. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5377. if test "$ac_test_CFLAGS" = set; then
  5378. CFLAGS=$ac_save_CFLAGS
  5379. elif test $ac_cv_prog_cc_g = yes; then
  5380. if test "$GCC" = yes; then
  5381. CFLAGS="-g -O2"
  5382. else
  5383. CFLAGS="-g"
  5384. fi
  5385. else
  5386. if test "$GCC" = yes; then
  5387. CFLAGS="-O2"
  5388. else
  5389. CFLAGS=
  5390. fi
  5391. fi
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5393. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5394. if ${ac_cv_prog_cc_c89+:} false; then :
  5395. $as_echo_n "(cached) " >&6
  5396. else
  5397. ac_cv_prog_cc_c89=no
  5398. ac_save_CC=$CC
  5399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5400. /* end confdefs.h. */
  5401. #include <stdarg.h>
  5402. #include <stdio.h>
  5403. struct stat;
  5404. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5405. struct buf { int x; };
  5406. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5407. static char *e (p, i)
  5408. char **p;
  5409. int i;
  5410. {
  5411. return p[i];
  5412. }
  5413. static char *f (char * (*g) (char **, int), char **p, ...)
  5414. {
  5415. char *s;
  5416. va_list v;
  5417. va_start (v,p);
  5418. s = g (p, va_arg (v,int));
  5419. va_end (v);
  5420. return s;
  5421. }
  5422. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5423. function prototypes and stuff, but not '\xHH' hex character constants.
  5424. These don't provoke an error unfortunately, instead are silently treated
  5425. as 'x'. The following induces an error, until -std is added to get
  5426. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5427. array size at least. It's necessary to write '\x00'==0 to get something
  5428. that's true only with -std. */
  5429. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5430. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5431. inside strings and character constants. */
  5432. #define FOO(x) 'x'
  5433. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5434. int test (int i, double x);
  5435. struct s1 {int (*f) (int a);};
  5436. struct s2 {int (*f) (double a);};
  5437. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5438. int argc;
  5439. char **argv;
  5440. int
  5441. main ()
  5442. {
  5443. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5444. ;
  5445. return 0;
  5446. }
  5447. _ACEOF
  5448. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5449. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5450. do
  5451. CC="$ac_save_CC $ac_arg"
  5452. if ac_fn_c_try_compile "$LINENO"; then :
  5453. ac_cv_prog_cc_c89=$ac_arg
  5454. fi
  5455. rm -f core conftest.err conftest.$ac_objext
  5456. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5457. done
  5458. rm -f conftest.$ac_ext
  5459. CC=$ac_save_CC
  5460. fi
  5461. # AC_CACHE_VAL
  5462. case "x$ac_cv_prog_cc_c89" in
  5463. x)
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5465. $as_echo "none needed" >&6; } ;;
  5466. xno)
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5468. $as_echo "unsupported" >&6; } ;;
  5469. *)
  5470. CC="$CC $ac_cv_prog_cc_c89"
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5472. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5473. esac
  5474. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5475. fi
  5476. ac_ext=c
  5477. ac_cpp='$CPP $CPPFLAGS'
  5478. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5479. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5480. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5481. ac_ext=c
  5482. ac_cpp='$CPP $CPPFLAGS'
  5483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5487. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5488. if ${am_cv_prog_cc_c_o+:} false; then :
  5489. $as_echo_n "(cached) " >&6
  5490. else
  5491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5492. /* end confdefs.h. */
  5493. int
  5494. main ()
  5495. {
  5496. ;
  5497. return 0;
  5498. }
  5499. _ACEOF
  5500. # Make sure it works both with $CC and with simple cc.
  5501. # Following AC_PROG_CC_C_O, we do the test twice because some
  5502. # compilers refuse to overwrite an existing .o file with -o,
  5503. # though they will create one.
  5504. am_cv_prog_cc_c_o=yes
  5505. for am_i in 1 2; do
  5506. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5507. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5508. ac_status=$?
  5509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5510. (exit $ac_status); } \
  5511. && test -f conftest2.$ac_objext; then
  5512. : OK
  5513. else
  5514. am_cv_prog_cc_c_o=no
  5515. break
  5516. fi
  5517. done
  5518. rm -f core conftest*
  5519. unset am_i
  5520. fi
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5522. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5523. if test "$am_cv_prog_cc_c_o" != yes; then
  5524. # Losing compiler, so override with the script.
  5525. # FIXME: It is wrong to rewrite CC.
  5526. # But if we don't then we get into trouble of one sort or another.
  5527. # A longer-term fix would be to have automake use am__CC in this case,
  5528. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5529. CC="$am_aux_dir/compile $CC"
  5530. fi
  5531. ac_ext=c
  5532. ac_cpp='$CPP $CPPFLAGS'
  5533. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5534. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5535. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5536. depcc="$CC" am_compiler_list=
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5538. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5539. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5543. # We make a subdir and do the tests there. Otherwise we can end up
  5544. # making bogus files that we don't know about and never remove. For
  5545. # instance it was reported that on HP-UX the gcc test will end up
  5546. # making a dummy file named 'D' -- because '-MD' means "put the output
  5547. # in D".
  5548. rm -rf conftest.dir
  5549. mkdir conftest.dir
  5550. # Copy depcomp to subdir because otherwise we won't find it if we're
  5551. # using a relative directory.
  5552. cp "$am_depcomp" conftest.dir
  5553. cd conftest.dir
  5554. # We will build objects and dependencies in a subdirectory because
  5555. # it helps to detect inapplicable dependency modes. For instance
  5556. # both Tru64's cc and ICC support -MD to output dependencies as a
  5557. # side effect of compilation, but ICC will put the dependencies in
  5558. # the current directory while Tru64 will put them in the object
  5559. # directory.
  5560. mkdir sub
  5561. am_cv_CC_dependencies_compiler_type=none
  5562. if test "$am_compiler_list" = ""; then
  5563. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5564. fi
  5565. am__universal=false
  5566. case " $depcc " in #(
  5567. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5568. esac
  5569. for depmode in $am_compiler_list; do
  5570. # Setup a source with many dependencies, because some compilers
  5571. # like to wrap large dependency lists on column 80 (with \), and
  5572. # we should not choose a depcomp mode which is confused by this.
  5573. #
  5574. # We need to recreate these files for each test, as the compiler may
  5575. # overwrite some of them when testing with obscure command lines.
  5576. # This happens at least with the AIX C compiler.
  5577. : > sub/conftest.c
  5578. for i in 1 2 3 4 5 6; do
  5579. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5580. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5581. # Solaris 10 /bin/sh.
  5582. echo '/* dummy */' > sub/conftst$i.h
  5583. done
  5584. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5585. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5586. # mode. It turns out that the SunPro C++ compiler does not properly
  5587. # handle '-M -o', and we need to detect this. Also, some Intel
  5588. # versions had trouble with output in subdirs.
  5589. am__obj=sub/conftest.${OBJEXT-o}
  5590. am__minus_obj="-o $am__obj"
  5591. case $depmode in
  5592. gcc)
  5593. # This depmode causes a compiler race in universal mode.
  5594. test "$am__universal" = false || continue
  5595. ;;
  5596. nosideeffect)
  5597. # After this tag, mechanisms are not by side-effect, so they'll
  5598. # only be used when explicitly requested.
  5599. if test "x$enable_dependency_tracking" = xyes; then
  5600. continue
  5601. else
  5602. break
  5603. fi
  5604. ;;
  5605. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5606. # This compiler won't grok '-c -o', but also, the minuso test has
  5607. # not run yet. These depmodes are late enough in the game, and
  5608. # so weak that their functioning should not be impacted.
  5609. am__obj=conftest.${OBJEXT-o}
  5610. am__minus_obj=
  5611. ;;
  5612. none) break ;;
  5613. esac
  5614. if depmode=$depmode \
  5615. source=sub/conftest.c object=$am__obj \
  5616. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5617. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5618. >/dev/null 2>conftest.err &&
  5619. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5620. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5621. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5622. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5623. # icc doesn't choke on unknown options, it will just issue warnings
  5624. # or remarks (even with -Werror). So we grep stderr for any message
  5625. # that says an option was ignored or not supported.
  5626. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5627. # icc: Command line warning: ignoring option '-M'; no argument required
  5628. # The diagnosis changed in icc 8.0:
  5629. # icc: Command line remark: option '-MP' not supported
  5630. if (grep 'ignoring option' conftest.err ||
  5631. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5632. am_cv_CC_dependencies_compiler_type=$depmode
  5633. break
  5634. fi
  5635. fi
  5636. done
  5637. cd ..
  5638. rm -rf conftest.dir
  5639. else
  5640. am_cv_CC_dependencies_compiler_type=none
  5641. fi
  5642. fi
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5644. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5645. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5646. if
  5647. test "x$enable_dependency_tracking" != xno \
  5648. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5649. am__fastdepCC_TRUE=
  5650. am__fastdepCC_FALSE='#'
  5651. else
  5652. am__fastdepCC_TRUE='#'
  5653. am__fastdepCC_FALSE=
  5654. fi
  5655. ac_ext=cpp
  5656. ac_cpp='$CXXCPP $CPPFLAGS'
  5657. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5658. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5659. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5660. if test -z "$CXX"; then
  5661. if test -n "$CCC"; then
  5662. CXX=$CCC
  5663. else
  5664. if test -n "$ac_tool_prefix"; then
  5665. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5666. do
  5667. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5668. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5670. $as_echo_n "checking for $ac_word... " >&6; }
  5671. if ${ac_cv_prog_CXX+:} false; then :
  5672. $as_echo_n "(cached) " >&6
  5673. else
  5674. if test -n "$CXX"; then
  5675. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5676. else
  5677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5678. for as_dir in $PATH
  5679. do
  5680. IFS=$as_save_IFS
  5681. test -z "$as_dir" && as_dir=.
  5682. for ac_exec_ext in '' $ac_executable_extensions; do
  5683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5684. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5686. break 2
  5687. fi
  5688. done
  5689. done
  5690. IFS=$as_save_IFS
  5691. fi
  5692. fi
  5693. CXX=$ac_cv_prog_CXX
  5694. if test -n "$CXX"; then
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5696. $as_echo "$CXX" >&6; }
  5697. else
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5699. $as_echo "no" >&6; }
  5700. fi
  5701. test -n "$CXX" && break
  5702. done
  5703. fi
  5704. if test -z "$CXX"; then
  5705. ac_ct_CXX=$CXX
  5706. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5707. do
  5708. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5709. set dummy $ac_prog; ac_word=$2
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5711. $as_echo_n "checking for $ac_word... " >&6; }
  5712. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  5713. $as_echo_n "(cached) " >&6
  5714. else
  5715. if test -n "$ac_ct_CXX"; then
  5716. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5717. else
  5718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5719. for as_dir in $PATH
  5720. do
  5721. IFS=$as_save_IFS
  5722. test -z "$as_dir" && as_dir=.
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5725. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5735. if test -n "$ac_ct_CXX"; then
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5737. $as_echo "$ac_ct_CXX" >&6; }
  5738. else
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. $as_echo "no" >&6; }
  5741. fi
  5742. test -n "$ac_ct_CXX" && break
  5743. done
  5744. if test "x$ac_ct_CXX" = x; then
  5745. CXX="g++"
  5746. else
  5747. case $cross_compiling:$ac_tool_warned in
  5748. yes:)
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5751. ac_tool_warned=yes ;;
  5752. esac
  5753. CXX=$ac_ct_CXX
  5754. fi
  5755. fi
  5756. fi
  5757. fi
  5758. # Provide some information about the compiler.
  5759. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5760. set X $ac_compile
  5761. ac_compiler=$2
  5762. for ac_option in --version -v -V -qversion; do
  5763. { { ac_try="$ac_compiler $ac_option >&5"
  5764. case "(($ac_try" in
  5765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5766. *) ac_try_echo=$ac_try;;
  5767. esac
  5768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5769. $as_echo "$ac_try_echo"; } >&5
  5770. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5771. ac_status=$?
  5772. if test -s conftest.err; then
  5773. sed '10a\
  5774. ... rest of stderr output deleted ...
  5775. 10q' conftest.err >conftest.er1
  5776. cat conftest.er1 >&5
  5777. fi
  5778. rm -f conftest.er1 conftest.err
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5780. test $ac_status = 0; }
  5781. done
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5783. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5784. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5788. /* end confdefs.h. */
  5789. int
  5790. main ()
  5791. {
  5792. #ifndef __GNUC__
  5793. choke me
  5794. #endif
  5795. ;
  5796. return 0;
  5797. }
  5798. _ACEOF
  5799. if ac_fn_cxx_try_compile "$LINENO"; then :
  5800. ac_compiler_gnu=yes
  5801. else
  5802. ac_compiler_gnu=no
  5803. fi
  5804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5805. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5806. fi
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5808. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5809. if test $ac_compiler_gnu = yes; then
  5810. GXX=yes
  5811. else
  5812. GXX=
  5813. fi
  5814. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5815. ac_save_CXXFLAGS=$CXXFLAGS
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5817. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5818. if ${ac_cv_prog_cxx_g+:} false; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5822. ac_cxx_werror_flag=yes
  5823. ac_cv_prog_cxx_g=no
  5824. CXXFLAGS="-g"
  5825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5826. /* end confdefs.h. */
  5827. int
  5828. main ()
  5829. {
  5830. ;
  5831. return 0;
  5832. }
  5833. _ACEOF
  5834. if ac_fn_cxx_try_compile "$LINENO"; then :
  5835. ac_cv_prog_cxx_g=yes
  5836. else
  5837. CXXFLAGS=""
  5838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5839. /* end confdefs.h. */
  5840. int
  5841. main ()
  5842. {
  5843. ;
  5844. return 0;
  5845. }
  5846. _ACEOF
  5847. if ac_fn_cxx_try_compile "$LINENO"; then :
  5848. else
  5849. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5850. CXXFLAGS="-g"
  5851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5852. /* end confdefs.h. */
  5853. int
  5854. main ()
  5855. {
  5856. ;
  5857. return 0;
  5858. }
  5859. _ACEOF
  5860. if ac_fn_cxx_try_compile "$LINENO"; then :
  5861. ac_cv_prog_cxx_g=yes
  5862. fi
  5863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5864. fi
  5865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5866. fi
  5867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5868. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5869. fi
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5871. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5872. if test "$ac_test_CXXFLAGS" = set; then
  5873. CXXFLAGS=$ac_save_CXXFLAGS
  5874. elif test $ac_cv_prog_cxx_g = yes; then
  5875. if test "$GXX" = yes; then
  5876. CXXFLAGS="-g -O2"
  5877. else
  5878. CXXFLAGS="-g"
  5879. fi
  5880. else
  5881. if test "$GXX" = yes; then
  5882. CXXFLAGS="-O2"
  5883. else
  5884. CXXFLAGS=
  5885. fi
  5886. fi
  5887. ac_ext=c
  5888. ac_cpp='$CPP $CPPFLAGS'
  5889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5892. depcc="$CXX" am_compiler_list=
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5894. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5895. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  5896. $as_echo_n "(cached) " >&6
  5897. else
  5898. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5899. # We make a subdir and do the tests there. Otherwise we can end up
  5900. # making bogus files that we don't know about and never remove. For
  5901. # instance it was reported that on HP-UX the gcc test will end up
  5902. # making a dummy file named 'D' -- because '-MD' means "put the output
  5903. # in D".
  5904. rm -rf conftest.dir
  5905. mkdir conftest.dir
  5906. # Copy depcomp to subdir because otherwise we won't find it if we're
  5907. # using a relative directory.
  5908. cp "$am_depcomp" conftest.dir
  5909. cd conftest.dir
  5910. # We will build objects and dependencies in a subdirectory because
  5911. # it helps to detect inapplicable dependency modes. For instance
  5912. # both Tru64's cc and ICC support -MD to output dependencies as a
  5913. # side effect of compilation, but ICC will put the dependencies in
  5914. # the current directory while Tru64 will put them in the object
  5915. # directory.
  5916. mkdir sub
  5917. am_cv_CXX_dependencies_compiler_type=none
  5918. if test "$am_compiler_list" = ""; then
  5919. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5920. fi
  5921. am__universal=false
  5922. case " $depcc " in #(
  5923. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5924. esac
  5925. for depmode in $am_compiler_list; do
  5926. # Setup a source with many dependencies, because some compilers
  5927. # like to wrap large dependency lists on column 80 (with \), and
  5928. # we should not choose a depcomp mode which is confused by this.
  5929. #
  5930. # We need to recreate these files for each test, as the compiler may
  5931. # overwrite some of them when testing with obscure command lines.
  5932. # This happens at least with the AIX C compiler.
  5933. : > sub/conftest.c
  5934. for i in 1 2 3 4 5 6; do
  5935. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5936. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5937. # Solaris 10 /bin/sh.
  5938. echo '/* dummy */' > sub/conftst$i.h
  5939. done
  5940. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5941. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5942. # mode. It turns out that the SunPro C++ compiler does not properly
  5943. # handle '-M -o', and we need to detect this. Also, some Intel
  5944. # versions had trouble with output in subdirs.
  5945. am__obj=sub/conftest.${OBJEXT-o}
  5946. am__minus_obj="-o $am__obj"
  5947. case $depmode in
  5948. gcc)
  5949. # This depmode causes a compiler race in universal mode.
  5950. test "$am__universal" = false || continue
  5951. ;;
  5952. nosideeffect)
  5953. # After this tag, mechanisms are not by side-effect, so they'll
  5954. # only be used when explicitly requested.
  5955. if test "x$enable_dependency_tracking" = xyes; then
  5956. continue
  5957. else
  5958. break
  5959. fi
  5960. ;;
  5961. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5962. # This compiler won't grok '-c -o', but also, the minuso test has
  5963. # not run yet. These depmodes are late enough in the game, and
  5964. # so weak that their functioning should not be impacted.
  5965. am__obj=conftest.${OBJEXT-o}
  5966. am__minus_obj=
  5967. ;;
  5968. none) break ;;
  5969. esac
  5970. if depmode=$depmode \
  5971. source=sub/conftest.c object=$am__obj \
  5972. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5973. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5974. >/dev/null 2>conftest.err &&
  5975. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5976. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5977. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5978. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5979. # icc doesn't choke on unknown options, it will just issue warnings
  5980. # or remarks (even with -Werror). So we grep stderr for any message
  5981. # that says an option was ignored or not supported.
  5982. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5983. # icc: Command line warning: ignoring option '-M'; no argument required
  5984. # The diagnosis changed in icc 8.0:
  5985. # icc: Command line remark: option '-MP' not supported
  5986. if (grep 'ignoring option' conftest.err ||
  5987. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5988. am_cv_CXX_dependencies_compiler_type=$depmode
  5989. break
  5990. fi
  5991. fi
  5992. done
  5993. cd ..
  5994. rm -rf conftest.dir
  5995. else
  5996. am_cv_CXX_dependencies_compiler_type=none
  5997. fi
  5998. fi
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6000. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6001. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6002. if
  6003. test "x$enable_dependency_tracking" != xno \
  6004. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6005. am__fastdepCXX_TRUE=
  6006. am__fastdepCXX_FALSE='#'
  6007. else
  6008. am__fastdepCXX_TRUE='#'
  6009. am__fastdepCXX_FALSE=
  6010. fi
  6011. for ac_prog in 'bison -y' byacc
  6012. do
  6013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6014. set dummy $ac_prog; ac_word=$2
  6015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6016. $as_echo_n "checking for $ac_word... " >&6; }
  6017. if ${ac_cv_prog_YACC+:} false; then :
  6018. $as_echo_n "(cached) " >&6
  6019. else
  6020. if test -n "$YACC"; then
  6021. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6022. else
  6023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6024. for as_dir in $PATH
  6025. do
  6026. IFS=$as_save_IFS
  6027. test -z "$as_dir" && as_dir=.
  6028. for ac_exec_ext in '' $ac_executable_extensions; do
  6029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6030. ac_cv_prog_YACC="$ac_prog"
  6031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6032. break 2
  6033. fi
  6034. done
  6035. done
  6036. IFS=$as_save_IFS
  6037. fi
  6038. fi
  6039. YACC=$ac_cv_prog_YACC
  6040. if test -n "$YACC"; then
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6042. $as_echo "$YACC" >&6; }
  6043. else
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6045. $as_echo "no" >&6; }
  6046. fi
  6047. test -n "$YACC" && break
  6048. done
  6049. test -n "$YACC" || YACC="yacc"
  6050. if test -n "$ac_tool_prefix"; then
  6051. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6052. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6054. $as_echo_n "checking for $ac_word... " >&6; }
  6055. if ${ac_cv_prog_RANLIB+:} false; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. if test -n "$RANLIB"; then
  6059. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6060. else
  6061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6062. for as_dir in $PATH
  6063. do
  6064. IFS=$as_save_IFS
  6065. test -z "$as_dir" && as_dir=.
  6066. for ac_exec_ext in '' $ac_executable_extensions; do
  6067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6068. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6070. break 2
  6071. fi
  6072. done
  6073. done
  6074. IFS=$as_save_IFS
  6075. fi
  6076. fi
  6077. RANLIB=$ac_cv_prog_RANLIB
  6078. if test -n "$RANLIB"; then
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6080. $as_echo "$RANLIB" >&6; }
  6081. else
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6083. $as_echo "no" >&6; }
  6084. fi
  6085. fi
  6086. if test -z "$ac_cv_prog_RANLIB"; then
  6087. ac_ct_RANLIB=$RANLIB
  6088. # Extract the first word of "ranlib", so it can be a program name with args.
  6089. set dummy ranlib; ac_word=$2
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6091. $as_echo_n "checking for $ac_word... " >&6; }
  6092. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6093. $as_echo_n "(cached) " >&6
  6094. else
  6095. if test -n "$ac_ct_RANLIB"; then
  6096. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6097. else
  6098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6099. for as_dir in $PATH
  6100. do
  6101. IFS=$as_save_IFS
  6102. test -z "$as_dir" && as_dir=.
  6103. for ac_exec_ext in '' $ac_executable_extensions; do
  6104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6105. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6107. break 2
  6108. fi
  6109. done
  6110. done
  6111. IFS=$as_save_IFS
  6112. fi
  6113. fi
  6114. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6115. if test -n "$ac_ct_RANLIB"; then
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6117. $as_echo "$ac_ct_RANLIB" >&6; }
  6118. else
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6120. $as_echo "no" >&6; }
  6121. fi
  6122. if test "x$ac_ct_RANLIB" = x; then
  6123. RANLIB=":"
  6124. else
  6125. case $cross_compiling:$ac_tool_warned in
  6126. yes:)
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6129. ac_tool_warned=yes ;;
  6130. esac
  6131. RANLIB=$ac_ct_RANLIB
  6132. fi
  6133. else
  6134. RANLIB="$ac_cv_prog_RANLIB"
  6135. fi
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6137. $as_echo_n "checking whether ln -s works... " >&6; }
  6138. LN_S=$as_ln_s
  6139. if test "$LN_S" = "ln -s"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6141. $as_echo "yes" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6144. $as_echo "no, using $LN_S" >&6; }
  6145. fi
  6146. # If we haven't got the data from the intl directory,
  6147. # assume NLS is disabled.
  6148. USE_NLS=no
  6149. LIBINTL=
  6150. LIBINTL_DEP=
  6151. INCINTL=
  6152. XGETTEXT=
  6153. GMSGFMT=
  6154. POSUB=
  6155. if test -f ../intl/config.intl; then
  6156. . ../intl/config.intl
  6157. fi
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6159. $as_echo_n "checking whether NLS is requested... " >&6; }
  6160. if test x"$USE_NLS" != xyes; then
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6162. $as_echo "no" >&6; }
  6163. else
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6165. $as_echo "yes" >&6; }
  6166. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6168. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6169. # Look for .po and .gmo files in the source directory.
  6170. CATALOGS=
  6171. XLINGUAS=
  6172. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6173. # If there aren't any .gmo files the shell will give us the
  6174. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6175. # weeded out.
  6176. case "$cat" in *\**)
  6177. continue;;
  6178. esac
  6179. # The quadruple backslash is collapsed to a double backslash
  6180. # by the backticks, then collapsed again by the double quotes,
  6181. # leaving us with one backslash in the sed expression (right
  6182. # before the dot that mustn't act as a wildcard).
  6183. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6184. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6185. # The user is allowed to set LINGUAS to a list of languages to
  6186. # install catalogs for. If it's empty that means "all of them."
  6187. if test "x$LINGUAS" = x; then
  6188. CATALOGS="$CATALOGS $cat"
  6189. XLINGUAS="$XLINGUAS $lang"
  6190. else
  6191. case "$LINGUAS" in *$lang*)
  6192. CATALOGS="$CATALOGS $cat"
  6193. XLINGUAS="$XLINGUAS $lang"
  6194. ;;
  6195. esac
  6196. fi
  6197. done
  6198. LINGUAS="$XLINGUAS"
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6200. $as_echo "$LINGUAS" >&6; }
  6201. DATADIRNAME=share
  6202. INSTOBJEXT=.mo
  6203. GENCAT=gencat
  6204. CATOBJEXT=.gmo
  6205. fi
  6206. MKINSTALLDIRS=
  6207. if test -n "$ac_aux_dir"; then
  6208. case "$ac_aux_dir" in
  6209. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6210. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6211. esac
  6212. fi
  6213. if test -z "$MKINSTALLDIRS"; then
  6214. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6215. fi
  6216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6217. $as_echo_n "checking whether NLS is requested... " >&6; }
  6218. # Check whether --enable-nls was given.
  6219. if test "${enable_nls+set}" = set; then :
  6220. enableval=$enable_nls; USE_NLS=$enableval
  6221. else
  6222. USE_NLS=yes
  6223. fi
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  6225. $as_echo "$USE_NLS" >&6; }
  6226. # Prepare PATH_SEPARATOR.
  6227. # The user is always right.
  6228. if test "${PATH_SEPARATOR+set}" != set; then
  6229. echo "#! /bin/sh" >conf$$.sh
  6230. echo "exit 0" >>conf$$.sh
  6231. chmod +x conf$$.sh
  6232. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6233. PATH_SEPARATOR=';'
  6234. else
  6235. PATH_SEPARATOR=:
  6236. fi
  6237. rm -f conf$$.sh
  6238. fi
  6239. # Find out how to test for executable files. Don't use a zero-byte file,
  6240. # as systems may use methods other than mode bits to determine executability.
  6241. cat >conf$$.file <<_ASEOF
  6242. #! /bin/sh
  6243. exit 0
  6244. _ASEOF
  6245. chmod +x conf$$.file
  6246. if test -x conf$$.file >/dev/null 2>&1; then
  6247. ac_executable_p="test -x"
  6248. else
  6249. ac_executable_p="test -f"
  6250. fi
  6251. rm -f conf$$.file
  6252. # Extract the first word of "msgfmt", so it can be a program name with args.
  6253. set dummy msgfmt; ac_word=$2
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6255. $as_echo_n "checking for $ac_word... " >&6; }
  6256. if ${ac_cv_path_MSGFMT+:} false; then :
  6257. $as_echo_n "(cached) " >&6
  6258. else
  6259. case "$MSGFMT" in
  6260. [\\/]* | ?:[\\/]*)
  6261. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6262. ;;
  6263. *)
  6264. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6265. for ac_dir in $PATH; do
  6266. IFS="$ac_save_IFS"
  6267. test -z "$ac_dir" && ac_dir=.
  6268. for ac_exec_ext in '' $ac_executable_extensions; do
  6269. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6270. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6271. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6272. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6273. break 2
  6274. fi
  6275. fi
  6276. done
  6277. done
  6278. IFS="$ac_save_IFS"
  6279. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6280. ;;
  6281. esac
  6282. fi
  6283. MSGFMT="$ac_cv_path_MSGFMT"
  6284. if test "$MSGFMT" != ":"; then
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  6286. $as_echo "$MSGFMT" >&6; }
  6287. else
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6289. $as_echo "no" >&6; }
  6290. fi
  6291. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6292. set dummy gmsgfmt; ac_word=$2
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6294. $as_echo_n "checking for $ac_word... " >&6; }
  6295. if ${ac_cv_path_GMSGFMT+:} false; then :
  6296. $as_echo_n "(cached) " >&6
  6297. else
  6298. case $GMSGFMT in
  6299. [\\/]* | ?:[\\/]*)
  6300. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6301. ;;
  6302. *)
  6303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6304. for as_dir in $PATH
  6305. do
  6306. IFS=$as_save_IFS
  6307. test -z "$as_dir" && as_dir=.
  6308. for ac_exec_ext in '' $ac_executable_extensions; do
  6309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6310. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6312. break 2
  6313. fi
  6314. done
  6315. done
  6316. IFS=$as_save_IFS
  6317. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6318. ;;
  6319. esac
  6320. fi
  6321. GMSGFMT=$ac_cv_path_GMSGFMT
  6322. if test -n "$GMSGFMT"; then
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  6324. $as_echo "$GMSGFMT" >&6; }
  6325. else
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6327. $as_echo "no" >&6; }
  6328. fi
  6329. # Prepare PATH_SEPARATOR.
  6330. # The user is always right.
  6331. if test "${PATH_SEPARATOR+set}" != set; then
  6332. echo "#! /bin/sh" >conf$$.sh
  6333. echo "exit 0" >>conf$$.sh
  6334. chmod +x conf$$.sh
  6335. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6336. PATH_SEPARATOR=';'
  6337. else
  6338. PATH_SEPARATOR=:
  6339. fi
  6340. rm -f conf$$.sh
  6341. fi
  6342. # Find out how to test for executable files. Don't use a zero-byte file,
  6343. # as systems may use methods other than mode bits to determine executability.
  6344. cat >conf$$.file <<_ASEOF
  6345. #! /bin/sh
  6346. exit 0
  6347. _ASEOF
  6348. chmod +x conf$$.file
  6349. if test -x conf$$.file >/dev/null 2>&1; then
  6350. ac_executable_p="test -x"
  6351. else
  6352. ac_executable_p="test -f"
  6353. fi
  6354. rm -f conf$$.file
  6355. # Extract the first word of "xgettext", so it can be a program name with args.
  6356. set dummy xgettext; ac_word=$2
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6358. $as_echo_n "checking for $ac_word... " >&6; }
  6359. if ${ac_cv_path_XGETTEXT+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. case "$XGETTEXT" in
  6363. [\\/]* | ?:[\\/]*)
  6364. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6365. ;;
  6366. *)
  6367. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6368. for ac_dir in $PATH; do
  6369. IFS="$ac_save_IFS"
  6370. test -z "$ac_dir" && ac_dir=.
  6371. for ac_exec_ext in '' $ac_executable_extensions; do
  6372. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6373. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6374. (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
  6375. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6376. break 2
  6377. fi
  6378. fi
  6379. done
  6380. done
  6381. IFS="$ac_save_IFS"
  6382. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6383. ;;
  6384. esac
  6385. fi
  6386. XGETTEXT="$ac_cv_path_XGETTEXT"
  6387. if test "$XGETTEXT" != ":"; then
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  6389. $as_echo "$XGETTEXT" >&6; }
  6390. else
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6392. $as_echo "no" >&6; }
  6393. fi
  6394. rm -f messages.po
  6395. # Prepare PATH_SEPARATOR.
  6396. # The user is always right.
  6397. if test "${PATH_SEPARATOR+set}" != set; then
  6398. echo "#! /bin/sh" >conf$$.sh
  6399. echo "exit 0" >>conf$$.sh
  6400. chmod +x conf$$.sh
  6401. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6402. PATH_SEPARATOR=';'
  6403. else
  6404. PATH_SEPARATOR=:
  6405. fi
  6406. rm -f conf$$.sh
  6407. fi
  6408. # Find out how to test for executable files. Don't use a zero-byte file,
  6409. # as systems may use methods other than mode bits to determine executability.
  6410. cat >conf$$.file <<_ASEOF
  6411. #! /bin/sh
  6412. exit 0
  6413. _ASEOF
  6414. chmod +x conf$$.file
  6415. if test -x conf$$.file >/dev/null 2>&1; then
  6416. ac_executable_p="test -x"
  6417. else
  6418. ac_executable_p="test -f"
  6419. fi
  6420. rm -f conf$$.file
  6421. # Extract the first word of "msgmerge", so it can be a program name with args.
  6422. set dummy msgmerge; ac_word=$2
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6424. $as_echo_n "checking for $ac_word... " >&6; }
  6425. if ${ac_cv_path_MSGMERGE+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. case "$MSGMERGE" in
  6429. [\\/]* | ?:[\\/]*)
  6430. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6431. ;;
  6432. *)
  6433. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6434. for ac_dir in $PATH; do
  6435. IFS="$ac_save_IFS"
  6436. test -z "$ac_dir" && ac_dir=.
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6439. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6440. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6441. break 2
  6442. fi
  6443. fi
  6444. done
  6445. done
  6446. IFS="$ac_save_IFS"
  6447. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6448. ;;
  6449. esac
  6450. fi
  6451. MSGMERGE="$ac_cv_path_MSGMERGE"
  6452. if test "$MSGMERGE" != ":"; then
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  6454. $as_echo "$MSGMERGE" >&6; }
  6455. else
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6457. $as_echo "no" >&6; }
  6458. fi
  6459. if test "$GMSGFMT" != ":"; then
  6460. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6461. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6462. : ;
  6463. else
  6464. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6466. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  6467. GMSGFMT=":"
  6468. fi
  6469. fi
  6470. if test "$XGETTEXT" != ":"; then
  6471. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6472. (if $XGETTEXT --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
  6473. : ;
  6474. else
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6476. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  6477. XGETTEXT=":"
  6478. fi
  6479. rm -f messages.po
  6480. fi
  6481. ac_config_commands="$ac_config_commands default-1"
  6482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6483. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  6484. if ${ac_cv_c_bigendian+:} false; then :
  6485. $as_echo_n "(cached) " >&6
  6486. else
  6487. ac_cv_c_bigendian=unknown
  6488. # See if we're dealing with a universal compiler.
  6489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6490. /* end confdefs.h. */
  6491. #ifndef __APPLE_CC__
  6492. not a universal capable compiler
  6493. #endif
  6494. typedef int dummy;
  6495. _ACEOF
  6496. if ac_fn_c_try_compile "$LINENO"; then :
  6497. # Check for potential -arch flags. It is not universal unless
  6498. # there are at least two -arch flags with different values.
  6499. ac_arch=
  6500. ac_prev=
  6501. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6502. if test -n "$ac_prev"; then
  6503. case $ac_word in
  6504. i?86 | x86_64 | ppc | ppc64)
  6505. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6506. ac_arch=$ac_word
  6507. else
  6508. ac_cv_c_bigendian=universal
  6509. break
  6510. fi
  6511. ;;
  6512. esac
  6513. ac_prev=
  6514. elif test "x$ac_word" = "x-arch"; then
  6515. ac_prev=arch
  6516. fi
  6517. done
  6518. fi
  6519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6520. if test $ac_cv_c_bigendian = unknown; then
  6521. # See if sys/param.h defines the BYTE_ORDER macro.
  6522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6523. /* end confdefs.h. */
  6524. #include <sys/types.h>
  6525. #include <sys/param.h>
  6526. int
  6527. main ()
  6528. {
  6529. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6530. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6531. && LITTLE_ENDIAN)
  6532. bogus endian macros
  6533. #endif
  6534. ;
  6535. return 0;
  6536. }
  6537. _ACEOF
  6538. if ac_fn_c_try_compile "$LINENO"; then :
  6539. # It does; now see whether it defined to BIG_ENDIAN or not.
  6540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6541. /* end confdefs.h. */
  6542. #include <sys/types.h>
  6543. #include <sys/param.h>
  6544. int
  6545. main ()
  6546. {
  6547. #if BYTE_ORDER != BIG_ENDIAN
  6548. not big endian
  6549. #endif
  6550. ;
  6551. return 0;
  6552. }
  6553. _ACEOF
  6554. if ac_fn_c_try_compile "$LINENO"; then :
  6555. ac_cv_c_bigendian=yes
  6556. else
  6557. ac_cv_c_bigendian=no
  6558. fi
  6559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6560. fi
  6561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6562. fi
  6563. if test $ac_cv_c_bigendian = unknown; then
  6564. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6566. /* end confdefs.h. */
  6567. #include <limits.h>
  6568. int
  6569. main ()
  6570. {
  6571. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6572. bogus endian macros
  6573. #endif
  6574. ;
  6575. return 0;
  6576. }
  6577. _ACEOF
  6578. if ac_fn_c_try_compile "$LINENO"; then :
  6579. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6581. /* end confdefs.h. */
  6582. #include <limits.h>
  6583. int
  6584. main ()
  6585. {
  6586. #ifndef _BIG_ENDIAN
  6587. not big endian
  6588. #endif
  6589. ;
  6590. return 0;
  6591. }
  6592. _ACEOF
  6593. if ac_fn_c_try_compile "$LINENO"; then :
  6594. ac_cv_c_bigendian=yes
  6595. else
  6596. ac_cv_c_bigendian=no
  6597. fi
  6598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6599. fi
  6600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6601. fi
  6602. if test $ac_cv_c_bigendian = unknown; then
  6603. # Compile a test program.
  6604. if test "$cross_compiling" = yes; then :
  6605. # Try to guess by grepping values from an object file.
  6606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6607. /* end confdefs.h. */
  6608. short int ascii_mm[] =
  6609. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6610. short int ascii_ii[] =
  6611. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6612. int use_ascii (int i) {
  6613. return ascii_mm[i] + ascii_ii[i];
  6614. }
  6615. short int ebcdic_ii[] =
  6616. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6617. short int ebcdic_mm[] =
  6618. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6619. int use_ebcdic (int i) {
  6620. return ebcdic_mm[i] + ebcdic_ii[i];
  6621. }
  6622. extern int foo;
  6623. int
  6624. main ()
  6625. {
  6626. return use_ascii (foo) == use_ebcdic (foo);
  6627. ;
  6628. return 0;
  6629. }
  6630. _ACEOF
  6631. if ac_fn_c_try_compile "$LINENO"; then :
  6632. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6633. ac_cv_c_bigendian=yes
  6634. fi
  6635. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6636. if test "$ac_cv_c_bigendian" = unknown; then
  6637. ac_cv_c_bigendian=no
  6638. else
  6639. # finding both strings is unlikely to happen, but who knows?
  6640. ac_cv_c_bigendian=unknown
  6641. fi
  6642. fi
  6643. fi
  6644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6645. else
  6646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6647. /* end confdefs.h. */
  6648. $ac_includes_default
  6649. int
  6650. main ()
  6651. {
  6652. /* Are we little or big endian? From Harbison&Steele. */
  6653. union
  6654. {
  6655. long int l;
  6656. char c[sizeof (long int)];
  6657. } u;
  6658. u.l = 1;
  6659. return u.c[sizeof (long int) - 1] == 1;
  6660. ;
  6661. return 0;
  6662. }
  6663. _ACEOF
  6664. if ac_fn_c_try_run "$LINENO"; then :
  6665. ac_cv_c_bigendian=no
  6666. else
  6667. ac_cv_c_bigendian=yes
  6668. fi
  6669. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6670. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6671. fi
  6672. fi
  6673. fi
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6675. $as_echo "$ac_cv_c_bigendian" >&6; }
  6676. case $ac_cv_c_bigendian in #(
  6677. yes)
  6678. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  6679. ;; #(
  6680. no)
  6681. ;; #(
  6682. universal)
  6683. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  6684. ;; #(
  6685. *)
  6686. as_fn_error $? "unknown endianness
  6687. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  6688. esac
  6689. if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
  6690. NATIVE_LINKER_TRUE=
  6691. NATIVE_LINKER_FALSE='#'
  6692. else
  6693. NATIVE_LINKER_TRUE='#'
  6694. NATIVE_LINKER_FALSE=
  6695. fi
  6696. if test "$GCC" = yes; then
  6697. GCC_TRUE=
  6698. GCC_FALSE='#'
  6699. else
  6700. GCC_TRUE='#'
  6701. GCC_FALSE=
  6702. fi
  6703. if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
  6704. NATIVE_OR_CROSS_LINKER_TRUE=
  6705. NATIVE_OR_CROSS_LINKER_FALSE='#'
  6706. else
  6707. NATIVE_OR_CROSS_LINKER_TRUE='#'
  6708. NATIVE_OR_CROSS_LINKER_FALSE=
  6709. fi
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
  6711. $as_echo_n "checking whether static linking works... " >&6; }
  6712. if ${gold_cv_lib_static+:} false; then :
  6713. $as_echo_n "(cached) " >&6
  6714. else
  6715. LDFLAGS_hold=$LDFLAGS
  6716. LDFLAGS="$LDFLAGS -static"
  6717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6718. /* end confdefs.h. */
  6719. void f() { }
  6720. int
  6721. main ()
  6722. {
  6723. ;
  6724. return 0;
  6725. }
  6726. _ACEOF
  6727. if ac_fn_c_try_link "$LINENO"; then :
  6728. gold_cv_lib_static=yes
  6729. else
  6730. gold_cv_lib_static=no
  6731. fi
  6732. rm -f core conftest.err conftest.$ac_objext \
  6733. conftest$ac_exeext conftest.$ac_ext
  6734. LDFLAGS=$LDFLAGS_hold
  6735. fi
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
  6737. $as_echo "$gold_cv_lib_static" >&6; }
  6738. if test "$gold_cv_lib_static" = "yes"; then
  6739. HAVE_STATIC_TRUE=
  6740. HAVE_STATIC_FALSE='#'
  6741. else
  6742. HAVE_STATIC_TRUE='#'
  6743. HAVE_STATIC_FALSE=
  6744. fi
  6745. if
  6746. case $target_cpu in
  6747. powerpc*) false;;
  6748. x86_64) false;;
  6749. sparc64) false;;
  6750. s390x) false;;
  6751. *) true;;
  6752. esac; then
  6753. FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
  6754. FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
  6755. else
  6756. FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
  6757. FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
  6760. $as_echo_n "checking for gcc >= 4.1... " >&6; }
  6761. if ${gold_cv_prog_gcc41+:} false; then :
  6762. $as_echo_n "(cached) " >&6
  6763. else
  6764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6765. /* end confdefs.h. */
  6766. #if !defined __GNUC__
  6767. error
  6768. #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
  6769. error
  6770. #endif
  6771. _ACEOF
  6772. if ac_fn_c_try_compile "$LINENO"; then :
  6773. gold_cv_prog_gcc41=yes
  6774. else
  6775. gold_cv_prog_gcc41=no
  6776. fi
  6777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6778. fi
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
  6780. $as_echo "$gold_cv_prog_gcc41" >&6; }
  6781. save_CFLAGS="$CFLAGS"
  6782. CFLAGS="$CFLAGS -mcmodel=medium"
  6783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6784. /* end confdefs.h. */
  6785. int i;
  6786. _ACEOF
  6787. if ac_fn_c_try_compile "$LINENO"; then :
  6788. have_mcmodel_medium=yes
  6789. else
  6790. have_mcmodel_medium=no
  6791. fi
  6792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6793. CFLAGS="$save_CFLAGS"
  6794. if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
  6795. MCMODEL_MEDIUM_TRUE=
  6796. MCMODEL_MEDIUM_FALSE='#'
  6797. else
  6798. MCMODEL_MEDIUM_TRUE='#'
  6799. MCMODEL_MEDIUM_FALSE=
  6800. fi
  6801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
  6802. $as_echo_n "checking for gcc >= 9... " >&6; }
  6803. if ${gold_cv_prog_gcc9+:} false; then :
  6804. $as_echo_n "(cached) " >&6
  6805. else
  6806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6807. /* end confdefs.h. */
  6808. #if !defined __GNUC__ || __GNUC__ < 9
  6809. error
  6810. #endif
  6811. _ACEOF
  6812. if ac_fn_c_try_compile "$LINENO"; then :
  6813. gold_cv_prog_gcc9=yes
  6814. else
  6815. gold_cv_prog_gcc9=no
  6816. fi
  6817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6818. fi
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
  6820. $as_echo "$gold_cv_prog_gcc9" >&6; }
  6821. if test "$gold_cv_prog_gcc9" = "yes"; then
  6822. GCC9_TRUE=
  6823. GCC9_FALSE='#'
  6824. else
  6825. GCC9_TRUE='#'
  6826. GCC9_FALSE=
  6827. fi
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
  6829. $as_echo_n "checking for -fcf-protection... " >&6; }
  6830. if ${gold_cv_cflags_cf_protection+:} false; then :
  6831. $as_echo_n "(cached) " >&6
  6832. else
  6833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6834. /* end confdefs.h. */
  6835. #if !defined __x86_64__ || !defined __CET__
  6836. error
  6837. #endif
  6838. _ACEOF
  6839. if ac_fn_c_try_compile "$LINENO"; then :
  6840. gold_cv_cflags_cf_protection=yes
  6841. else
  6842. gold_cv_cflags_cf_protection=no
  6843. fi
  6844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6845. fi
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
  6847. $as_echo "$gold_cv_cflags_cf_protection" >&6; }
  6848. if test "$gold_cv_cflags_cf_protection" = "yes"; then
  6849. CFLAGS_CF_PROTECTION_TRUE=
  6850. CFLAGS_CF_PROTECTION_FALSE='#'
  6851. else
  6852. CFLAGS_CF_PROTECTION_TRUE='#'
  6853. CFLAGS_CF_PROTECTION_FALSE=
  6854. fi
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
  6856. $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
  6857. if ${gold_cv_merge_constants+:} false; then :
  6858. $as_echo_n "(cached) " >&6
  6859. else
  6860. save_CFLAGS="$CFLAGS"
  6861. CFLAGS="$CFLAGS -fmerge-constants"
  6862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6863. /* end confdefs.h. */
  6864. const char *s = "foo";
  6865. _ACEOF
  6866. if ac_fn_c_try_compile "$LINENO"; then :
  6867. gold_cv_merge_constants=yes
  6868. else
  6869. gold_cv_merge_constants=no
  6870. fi
  6871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6872. CFLAGS="$save_CFLAGS"
  6873. fi
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
  6875. $as_echo "$gold_cv_merge_constants" >&6; }
  6876. if test "$gold_cv_merge_constants" = yes; then :
  6877. MERGE_CONSTANTS_FLAG=-fmerge-constants
  6878. else
  6879. MERGE_CONSTANTS_FLAG=
  6880. fi
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
  6882. $as_echo_n "checking for thread support... " >&6; }
  6883. if ${gold_cv_c_thread+:} false; then :
  6884. $as_echo_n "(cached) " >&6
  6885. else
  6886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6887. /* end confdefs.h. */
  6888. __thread int i = 1;
  6889. _ACEOF
  6890. if ac_fn_c_try_compile "$LINENO"; then :
  6891. gold_cv_c_thread=yes
  6892. else
  6893. gold_cv_c_thread=no
  6894. fi
  6895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6896. fi
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
  6898. $as_echo "$gold_cv_c_thread" >&6; }
  6899. if test "$gold_cv_c_thread" = "yes"; then
  6900. TLS_TRUE=
  6901. TLS_FALSE='#'
  6902. else
  6903. TLS_TRUE='#'
  6904. TLS_FALSE=
  6905. fi
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
  6907. $as_echo_n "checking for glibc >= 2.4... " >&6; }
  6908. if ${gold_cv_lib_glibc24+:} false; then :
  6909. $as_echo_n "(cached) " >&6
  6910. else
  6911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6912. /* end confdefs.h. */
  6913. #include <features.h>
  6914. #if !defined __GLIBC__
  6915. error
  6916. #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
  6917. error
  6918. #endif
  6919. _ACEOF
  6920. if ac_fn_c_try_compile "$LINENO"; then :
  6921. gold_cv_lib_glibc24=yes
  6922. else
  6923. gold_cv_lib_glibc24=no
  6924. fi
  6925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6926. fi
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
  6928. $as_echo "$gold_cv_lib_glibc24" >&6; }
  6929. if test "$gold_cv_lib_glibc24" = "yes"; then
  6930. STATIC_TLS_TRUE=
  6931. STATIC_TLS_FALSE='#'
  6932. else
  6933. STATIC_TLS_TRUE='#'
  6934. STATIC_TLS_FALSE=
  6935. fi
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
  6937. $as_echo_n "checking for omp support... " >&6; }
  6938. if ${gold_cv_c_threadprivate+:} false; then :
  6939. $as_echo_n "(cached) " >&6
  6940. else
  6941. save_CFLAGS="$CFLAGS"
  6942. CFLAGS="$CFLAGS -fopenmp"
  6943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6944. /* end confdefs.h. */
  6945. #include <omp.h>
  6946. int i;
  6947. #pragma omp threadprivate (i)
  6948. _ACEOF
  6949. if ac_fn_c_try_compile "$LINENO"; then :
  6950. gold_cv_c_threadprivate=yes
  6951. else
  6952. gold_cv_c_threadprivate=no
  6953. fi
  6954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6955. CFLAGS="$save_CFLAGS"
  6956. fi
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
  6958. $as_echo "$gold_cv_c_threadprivate" >&6; }
  6959. if test "$gold_cv_c_threadprivate" = "yes"; then
  6960. $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
  6961. fi
  6962. if test "$gold_cv_c_threadprivate" = "yes"; then
  6963. OMP_SUPPORT_TRUE=
  6964. OMP_SUPPORT_FALSE='#'
  6965. else
  6966. OMP_SUPPORT_TRUE='#'
  6967. OMP_SUPPORT_FALSE=
  6968. fi
  6969. save_CFLAGS="$CFLAGS"
  6970. CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
  6971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6972. /* end confdefs.h. */
  6973. __thread int i;
  6974. void foo (void)
  6975. {
  6976. i = 10;
  6977. }
  6978. _ACEOF
  6979. if ac_fn_c_try_compile "$LINENO"; then :
  6980. have_tls_gnu2=yes
  6981. else
  6982. have_tls_gnu2=no
  6983. fi
  6984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6985. CFLAGS="$save_CFLAGS"
  6986. if test "$have_tls_gnu2" = "yes"; then
  6987. TLS_GNU2_DIALECT_TRUE=
  6988. TLS_GNU2_DIALECT_FALSE='#'
  6989. else
  6990. TLS_GNU2_DIALECT_TRUE='#'
  6991. TLS_GNU2_DIALECT_FALSE=
  6992. fi
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
  6994. $as_echo_n "checking for glibc >= 2.9... " >&6; }
  6995. if ${gold_cv_lib_glibc29+:} false; then :
  6996. $as_echo_n "(cached) " >&6
  6997. else
  6998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6999. /* end confdefs.h. */
  7000. #include <features.h>
  7001. #if !defined __GLIBC__
  7002. error
  7003. #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
  7004. error
  7005. #endif
  7006. _ACEOF
  7007. if ac_fn_c_try_compile "$LINENO"; then :
  7008. gold_cv_lib_glibc29=yes
  7009. else
  7010. gold_cv_lib_glibc29=no
  7011. fi
  7012. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7013. fi
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
  7015. $as_echo "$gold_cv_lib_glibc29" >&6; }
  7016. if test "$gold_cv_lib_glibc29" = "yes"; then
  7017. TLS_DESCRIPTORS_TRUE=
  7018. TLS_DESCRIPTORS_FALSE='#'
  7019. else
  7020. TLS_DESCRIPTORS_TRUE='#'
  7021. TLS_DESCRIPTORS_FALSE=
  7022. fi
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
  7024. $as_echo_n "checking for -frandom-seed support... " >&6; }
  7025. if ${gold_cv_c_random_seed+:} false; then :
  7026. $as_echo_n "(cached) " >&6
  7027. else
  7028. save_CFLAGS="$CFLAGS"
  7029. CFLAGS="$CFLAGS -frandom-seed=foo"
  7030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7031. /* end confdefs.h. */
  7032. int i;
  7033. _ACEOF
  7034. if ac_fn_c_try_compile "$LINENO"; then :
  7035. gold_cv_c_random_seed=yes
  7036. else
  7037. gold_cv_c_random_seed=no
  7038. fi
  7039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7040. CFLAGS="$save_CFLAGS"
  7041. fi
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
  7043. $as_echo "$gold_cv_c_random_seed" >&6; }
  7044. if test "$gold_cv_c_random_seed" = "yes"; then
  7045. # In Makefile, '$@' will be expanded to be the name of the file
  7046. # being built, providing a unique seed for each file.
  7047. RANDOM_SEED_CFLAGS=-frandom-seed=\$@
  7048. fi
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
  7050. $as_echo_n "checking for glibc ifunc support... " >&6; }
  7051. if ${gold_cv_lib_glibc_ifunc+:} false; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. save_LDFLAGS="$LDFLAGS"
  7055. LDFLAGS="$LDFLAGS -static"
  7056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7057. /* end confdefs.h. */
  7058. #include <features.h>
  7059. #if !defined __GLIBC__
  7060. error
  7061. #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
  7062. error
  7063. #endif
  7064. void func (void) { }
  7065. void invoke (void);
  7066. __asm__(".type invoke, %gnu_indirect_function");
  7067. typedef void (*funcptr) (void);
  7068. funcptr dispatch (void) __asm__ ("invoke");
  7069. funcptr dispatch (void) { return &func; }
  7070. int
  7071. main ()
  7072. {
  7073. invoke();
  7074. ;
  7075. return 0;
  7076. }
  7077. _ACEOF
  7078. if ac_fn_c_try_link "$LINENO"; then :
  7079. if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
  7080. gold_cv_lib_glibc_ifunc=both
  7081. else
  7082. gold_cv_lib_glibc_ifunc=dyn
  7083. fi
  7084. else
  7085. gold_cv_lib_glibc_ifunc=no
  7086. fi
  7087. rm -f core conftest.err conftest.$ac_objext \
  7088. conftest$ac_exeext conftest.$ac_ext
  7089. LDFLAGS="$save_LDFLAGS"
  7090. fi
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
  7092. $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
  7093. if test "$gold_cv_lib_glibc_ifunc" != "no"; then
  7094. IFUNC_TRUE=
  7095. IFUNC_FALSE='#'
  7096. else
  7097. IFUNC_TRUE='#'
  7098. IFUNC_FALSE=
  7099. fi
  7100. if test "$gold_cv_lib_glibc_ifunc" = "both"; then
  7101. IFUNC_STATIC_TRUE=
  7102. IFUNC_STATIC_FALSE='#'
  7103. else
  7104. IFUNC_STATIC_TRUE='#'
  7105. IFUNC_STATIC_FALSE=
  7106. fi
  7107. # Set the 'development' global.
  7108. . $srcdir/../bfd/development.sh
  7109. # Set acp_cpp_for_build variable
  7110. ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
  7111. # Default set of GCC warnings to enable.
  7112. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  7113. GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  7114. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  7115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7116. /* end confdefs.h. */
  7117. __GNUC__
  7118. _ACEOF
  7119. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7120. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  7121. else
  7122. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  7123. fi
  7124. rm -f conftest*
  7125. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  7126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7127. /* end confdefs.h. */
  7128. __GNUC__
  7129. _ACEOF
  7130. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7131. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  7132. else
  7133. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
  7134. fi
  7135. rm -f conftest*
  7136. # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
  7137. WARN_WRITE_STRINGS=""
  7138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7139. /* end confdefs.h. */
  7140. __GNUC__
  7141. _ACEOF
  7142. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7143. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  7144. else
  7145. WARN_WRITE_STRINGS="-Wwrite-strings"
  7146. fi
  7147. rm -f conftest*
  7148. # Verify CC_FOR_BUILD to be compatible with warning flags
  7149. # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
  7150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7151. /* end confdefs.h. */
  7152. __GNUC__
  7153. _ACEOF
  7154. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  7155. $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
  7156. else
  7157. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
  7158. fi
  7159. rm -f conftest*
  7160. # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
  7161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7162. /* end confdefs.h. */
  7163. __GNUC__
  7164. _ACEOF
  7165. if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
  7166. $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
  7167. else
  7168. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
  7169. fi
  7170. rm -f conftest*
  7171. # Check whether --enable-werror was given.
  7172. if test "${enable_werror+set}" = set; then :
  7173. enableval=$enable_werror; case "${enableval}" in
  7174. yes | y) ERROR_ON_WARNING="yes" ;;
  7175. no | n) ERROR_ON_WARNING="no" ;;
  7176. *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  7177. esac
  7178. fi
  7179. # Disable -Wformat by default when using gcc on mingw
  7180. case "${host}" in
  7181. *-*-mingw32*)
  7182. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  7183. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  7184. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
  7185. fi
  7186. ;;
  7187. *) ;;
  7188. esac
  7189. # Enable -Werror by default when using gcc. Turn it off for releases.
  7190. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  7191. ERROR_ON_WARNING=yes
  7192. fi
  7193. NO_WERROR=
  7194. if test "${ERROR_ON_WARNING}" = yes ; then
  7195. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  7196. GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
  7197. NO_WERROR="-Wno-error"
  7198. fi
  7199. if test "${GCC}" = yes ; then
  7200. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  7201. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
  7202. fi
  7203. # Check whether --enable-build-warnings was given.
  7204. if test "${enable_build_warnings+set}" = set; then :
  7205. enableval=$enable_build_warnings; case "${enableval}" in
  7206. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  7207. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
  7208. no) if test "${GCC}" = yes ; then
  7209. WARN_CFLAGS="-w"
  7210. WARN_CFLAGS_FOR_BUILD="-w"
  7211. fi;;
  7212. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  7213. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
  7214. WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
  7215. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  7216. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
  7217. WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
  7218. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
  7219. WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  7220. esac
  7221. fi
  7222. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  7223. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  7224. fi
  7225. WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
  7226. # Check whether --with-gold-ldflags was given.
  7227. if test "${with_gold_ldflags+set}" = set; then :
  7228. withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  7229. GOLD_LDFLAGS=
  7230. else
  7231. GOLD_LDFLAGS=$withval
  7232. fi
  7233. else
  7234. GOLD_LDFLAGS=
  7235. fi
  7236. # Check whether --with-gold-ldadd was given.
  7237. if test "${with_gold_ldadd+set}" = set; then :
  7238. withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
  7239. GOLD_LDADD=
  7240. else
  7241. GOLD_LDADD=$withval
  7242. fi
  7243. else
  7244. GOLD_LDADD=
  7245. fi
  7246. LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
  7247. for ac_header in sys/mman.h
  7248. do :
  7249. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  7250. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  7251. cat >>confdefs.h <<_ACEOF
  7252. #define HAVE_SYS_MMAN_H 1
  7253. _ACEOF
  7254. fi
  7255. done
  7256. for ac_func in chsize mmap link
  7257. do :
  7258. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7259. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7260. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7261. cat >>confdefs.h <<_ACEOF
  7262. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7263. _ACEOF
  7264. fi
  7265. done
  7266. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  7267. if test "x$ac_cv_func_pread" = xyes; then :
  7268. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  7269. else
  7270. case " $LIBOBJS " in
  7271. *" pread.$ac_objext "* ) ;;
  7272. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  7273. ;;
  7274. esac
  7275. fi
  7276. ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
  7277. if test "x$ac_cv_func_ftruncate" = xyes; then :
  7278. $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
  7279. else
  7280. case " $LIBOBJS " in
  7281. *" ftruncate.$ac_objext "* ) ;;
  7282. *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
  7283. ;;
  7284. esac
  7285. fi
  7286. ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
  7287. if test "x$ac_cv_func_ffsll" = xyes; then :
  7288. $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
  7289. else
  7290. case " $LIBOBJS " in
  7291. *" ffsll.$ac_objext "* ) ;;
  7292. *) LIBOBJS="$LIBOBJS ffsll.$ac_objext"
  7293. ;;
  7294. esac
  7295. fi
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
  7297. $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
  7298. if ${gold_cv_lib_mremap_maymove+:} false; then :
  7299. $as_echo_n "(cached) " >&6
  7300. else
  7301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7302. /* end confdefs.h. */
  7303. #include <sys/mman.h>
  7304. void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
  7305. int
  7306. main ()
  7307. {
  7308. ;
  7309. return 0;
  7310. }
  7311. _ACEOF
  7312. if ac_fn_c_try_link "$LINENO"; then :
  7313. gold_cv_lib_mremap_maymove=yes
  7314. else
  7315. gold_cv_lib_mremap_maymove=no
  7316. fi
  7317. rm -f core conftest.err conftest.$ac_objext \
  7318. conftest$ac_exeext conftest.$ac_ext
  7319. fi
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
  7321. $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
  7322. if test "$gold_cv_lib_mremap_maymove" = "yes"; then
  7323. $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
  7324. else
  7325. case " $LIBOBJS " in
  7326. *" mremap.$ac_objext "* ) ;;
  7327. *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
  7328. ;;
  7329. esac
  7330. fi
  7331. # Link in zlib if we can. This allows us to write compressed sections.
  7332. # Use the system's zlib library.
  7333. zlibdir="-L\$(top_builddir)/../zlib"
  7334. zlibinc="-I\$(top_srcdir)/../zlib"
  7335. # Check whether --with-system-zlib was given.
  7336. if test "${with_system_zlib+set}" = set; then :
  7337. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7338. zlibdir=
  7339. zlibinc=
  7340. fi
  7341. fi
  7342. # Check whether --enable-threads was given.
  7343. if test "${enable_threads+set}" = set; then :
  7344. enableval=$enable_threads; case "${enableval}" in
  7345. yes | "") threads=yes ;;
  7346. no) threads=no ;;
  7347. auto) threads=auto ;;
  7348. *) threads=yes ;;
  7349. esac
  7350. else
  7351. threads=auto
  7352. fi
  7353. if test "$threads" = "yes"; then
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7355. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  7356. if ${ac_cv_path_SED+:} false; then :
  7357. $as_echo_n "(cached) " >&6
  7358. else
  7359. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7360. for ac_i in 1 2 3 4 5 6 7; do
  7361. ac_script="$ac_script$as_nl$ac_script"
  7362. done
  7363. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7364. { ac_script=; unset ac_script;}
  7365. if test -z "$SED"; then
  7366. ac_path_SED_found=false
  7367. # Loop through the user's path and test for each of PROGNAME-LIST
  7368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7369. for as_dir in $PATH
  7370. do
  7371. IFS=$as_save_IFS
  7372. test -z "$as_dir" && as_dir=.
  7373. for ac_prog in sed gsed; do
  7374. for ac_exec_ext in '' $ac_executable_extensions; do
  7375. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7376. as_fn_executable_p "$ac_path_SED" || continue
  7377. # Check for GNU ac_path_SED and select it if it is found.
  7378. # Check for GNU $ac_path_SED
  7379. case `"$ac_path_SED" --version 2>&1` in
  7380. *GNU*)
  7381. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7382. *)
  7383. ac_count=0
  7384. $as_echo_n 0123456789 >"conftest.in"
  7385. while :
  7386. do
  7387. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7388. mv "conftest.tmp" "conftest.in"
  7389. cp "conftest.in" "conftest.nl"
  7390. $as_echo '' >> "conftest.nl"
  7391. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7392. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7393. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7394. if test $ac_count -gt ${ac_path_SED_max-0}; then
  7395. # Best one so far, save it but keep looking for a better one
  7396. ac_cv_path_SED="$ac_path_SED"
  7397. ac_path_SED_max=$ac_count
  7398. fi
  7399. # 10*(2^10) chars as input seems more than enough
  7400. test $ac_count -gt 10 && break
  7401. done
  7402. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7403. esac
  7404. $ac_path_SED_found && break 3
  7405. done
  7406. done
  7407. done
  7408. IFS=$as_save_IFS
  7409. if test -z "$ac_cv_path_SED"; then
  7410. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  7411. fi
  7412. else
  7413. ac_cv_path_SED=$SED
  7414. fi
  7415. fi
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  7417. $as_echo "$ac_cv_path_SED" >&6; }
  7418. SED="$ac_cv_path_SED"
  7419. rm -f conftest.sed
  7420. ac_ext=c
  7421. ac_cpp='$CPP $CPPFLAGS'
  7422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7425. ax_pthread_ok=no
  7426. # We used to check for pthread.h first, but this fails if pthread.h
  7427. # requires special compiler flags (e.g. on Tru64 or Sequent).
  7428. # It gets checked for in the link test anyway.
  7429. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7430. # etcetera environment variables, and if threads linking works using
  7431. # them:
  7432. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  7433. ax_pthread_save_CC="$CC"
  7434. ax_pthread_save_CFLAGS="$CFLAGS"
  7435. ax_pthread_save_LIBS="$LIBS"
  7436. if test "x$PTHREAD_CC" != "x"; then :
  7437. CC="$PTHREAD_CC"
  7438. fi
  7439. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7440. LIBS="$PTHREAD_LIBS $LIBS"
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  7442. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  7443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7444. /* end confdefs.h. */
  7445. /* Override any GCC internal prototype to avoid an error.
  7446. Use char because int might match the return type of a GCC
  7447. builtin and then its argument prototype would still apply. */
  7448. #ifdef __cplusplus
  7449. extern "C"
  7450. #endif
  7451. char pthread_join ();
  7452. int
  7453. main ()
  7454. {
  7455. return pthread_join ();
  7456. ;
  7457. return 0;
  7458. }
  7459. _ACEOF
  7460. if ac_fn_c_try_link "$LINENO"; then :
  7461. ax_pthread_ok=yes
  7462. fi
  7463. rm -f core conftest.err conftest.$ac_objext \
  7464. conftest$ac_exeext conftest.$ac_ext
  7465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  7466. $as_echo "$ax_pthread_ok" >&6; }
  7467. if test "x$ax_pthread_ok" = "xno"; then
  7468. PTHREAD_LIBS=""
  7469. PTHREAD_CFLAGS=""
  7470. fi
  7471. CC="$ax_pthread_save_CC"
  7472. CFLAGS="$ax_pthread_save_CFLAGS"
  7473. LIBS="$ax_pthread_save_LIBS"
  7474. fi
  7475. # We must check for the threads library under a number of different
  7476. # names; the ordering is very important because some systems
  7477. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7478. # libraries is broken (non-POSIX).
  7479. # Create a list of thread flags to try. Items starting with a "-" are
  7480. # C compiler flags, and other items are library names, except for "none"
  7481. # which indicates that we try without any flags at all, and "pthread-config"
  7482. # which is a program returning the flags for the Pth emulation library.
  7483. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7484. # The ordering *is* (sometimes) important. Some notes on the
  7485. # individual items follow:
  7486. # pthreads: AIX (must check this before -lpthread)
  7487. # none: in case threads are in libc; should be tried before -Kthread and
  7488. # other compiler flags to prevent continual compiler warnings
  7489. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7490. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  7491. # (Note: HP C rejects this with "bad form for `-t' option")
  7492. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  7493. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7494. # doesn't hurt to check since this sometimes defines pthreads and
  7495. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  7496. # is present but should not be used directly; and before -mthreads,
  7497. # because the compiler interprets this as "-mt" + "-hreads")
  7498. # -mthreads: Mingw32/gcc, Lynx/gcc
  7499. # pthread: Linux, etcetera
  7500. # --thread-safe: KAI C++
  7501. # pthread-config: use pthread-config program (for GNU Pth library)
  7502. case $host_os in
  7503. freebsd*)
  7504. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7505. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7506. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  7507. ;;
  7508. hpux*)
  7509. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  7510. # multi-threading and also sets -lpthread."
  7511. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  7512. ;;
  7513. openedition*)
  7514. # IBM z/OS requires a feature-test macro to be defined in order to
  7515. # enable POSIX threads at all, so give the user a hint if this is
  7516. # not set. (We don't define these ourselves, as they can affect
  7517. # other portions of the system API in unpredictable ways.)
  7518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7519. /* end confdefs.h. */
  7520. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  7521. AX_PTHREAD_ZOS_MISSING
  7522. # endif
  7523. _ACEOF
  7524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7525. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  7527. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  7528. fi
  7529. rm -f conftest*
  7530. ;;
  7531. solaris*)
  7532. # On Solaris (at least, for some versions), libc contains stubbed
  7533. # (non-functional) versions of the pthreads routines, so link-based
  7534. # tests will erroneously succeed. (N.B.: The stubs are missing
  7535. # pthread_cleanup_push, or rather a function called by this macro,
  7536. # so we could check for that, but who knows whether they'll stub
  7537. # that too in a future libc.) So we'll check first for the
  7538. # standard Solaris way of linking pthreads (-mt -lpthread).
  7539. ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
  7540. ;;
  7541. esac
  7542. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  7543. if test "x$GCC" = "xyes"; then :
  7544. ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
  7545. fi
  7546. # The presence of a feature test macro requesting re-entrant function
  7547. # definitions is, on some systems, a strong hint that pthreads support is
  7548. # correctly enabled
  7549. case $host_os in
  7550. darwin* | hpux* | linux* | osf* | solaris*)
  7551. ax_pthread_check_macro="_REENTRANT"
  7552. ;;
  7553. aix*)
  7554. ax_pthread_check_macro="_THREAD_SAFE"
  7555. ;;
  7556. *)
  7557. ax_pthread_check_macro="--"
  7558. ;;
  7559. esac
  7560. if test "x$ax_pthread_check_macro" = "x--"; then :
  7561. ax_pthread_check_cond=0
  7562. else
  7563. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  7564. fi
  7565. # Are we compiling with Clang?
  7566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  7567. $as_echo_n "checking whether $CC is Clang... " >&6; }
  7568. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  7569. $as_echo_n "(cached) " >&6
  7570. else
  7571. ax_cv_PTHREAD_CLANG=no
  7572. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  7573. if test "x$GCC" = "xyes"; then
  7574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7575. /* end confdefs.h. */
  7576. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  7577. # if defined(__clang__) && defined(__llvm__)
  7578. AX_PTHREAD_CC_IS_CLANG
  7579. # endif
  7580. _ACEOF
  7581. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7582. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  7583. ax_cv_PTHREAD_CLANG=yes
  7584. fi
  7585. rm -f conftest*
  7586. fi
  7587. fi
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  7589. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  7590. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  7591. ax_pthread_clang_warning=no
  7592. # Clang needs special handling, because older versions handle the -pthread
  7593. # option in a rather... idiosyncratic way
  7594. if test "x$ax_pthread_clang" = "xyes"; then
  7595. # Clang takes -pthread; it has never supported any other flag
  7596. # (Note 1: This will need to be revisited if a system that Clang
  7597. # supports has POSIX threads in a separate library. This tends not
  7598. # to be the way of modern systems, but it's conceivable.)
  7599. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  7600. # to get POSIX threads support; the API is always present and
  7601. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  7602. # -pthread does define _REENTRANT, and while the Darwin headers
  7603. # ignore this macro, third-party headers might not.)
  7604. PTHREAD_CFLAGS="-pthread"
  7605. PTHREAD_LIBS=
  7606. ax_pthread_ok=yes
  7607. # However, older versions of Clang make a point of warning the user
  7608. # that, in an invocation where only linking and no compilation is
  7609. # taking place, the -pthread option has no effect ("argument unused
  7610. # during compilation"). They expect -pthread to be passed in only
  7611. # when source code is being compiled.
  7612. #
  7613. # Problem is, this is at odds with the way Automake and most other
  7614. # C build frameworks function, which is that the same flags used in
  7615. # compilation (CFLAGS) are also used in linking. Many systems
  7616. # supported by AX_PTHREAD require exactly this for POSIX threads
  7617. # support, and in fact it is often not straightforward to specify a
  7618. # flag that is used only in the compilation phase and not in
  7619. # linking. Such a scenario is extremely rare in practice.
  7620. #
  7621. # Even though use of the -pthread flag in linking would only print
  7622. # a warning, this can be a nuisance for well-run software projects
  7623. # that build with -Werror. So if the active version of Clang has
  7624. # this misfeature, we search for an option to squash it.
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  7626. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  7627. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  7628. $as_echo_n "(cached) " >&6
  7629. else
  7630. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  7631. # Create an alternate version of $ac_link that compiles and
  7632. # links in two steps (.c -> .o, .o -> exe) instead of one
  7633. # (.c -> exe), because the warning occurs only in the second
  7634. # step
  7635. ax_pthread_save_ac_link="$ac_link"
  7636. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  7637. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  7638. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  7639. ax_pthread_save_CFLAGS="$CFLAGS"
  7640. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  7641. if test "x$ax_pthread_try" = "xunknown"; then :
  7642. break
  7643. fi
  7644. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  7645. ac_link="$ax_pthread_save_ac_link"
  7646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7647. /* end confdefs.h. */
  7648. int main(void){return 0;}
  7649. _ACEOF
  7650. if ac_fn_c_try_link "$LINENO"; then :
  7651. ac_link="$ax_pthread_2step_ac_link"
  7652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7653. /* end confdefs.h. */
  7654. int main(void){return 0;}
  7655. _ACEOF
  7656. if ac_fn_c_try_link "$LINENO"; then :
  7657. break
  7658. fi
  7659. rm -f core conftest.err conftest.$ac_objext \
  7660. conftest$ac_exeext conftest.$ac_ext
  7661. fi
  7662. rm -f core conftest.err conftest.$ac_objext \
  7663. conftest$ac_exeext conftest.$ac_ext
  7664. done
  7665. ac_link="$ax_pthread_save_ac_link"
  7666. CFLAGS="$ax_pthread_save_CFLAGS"
  7667. if test "x$ax_pthread_try" = "x"; then :
  7668. ax_pthread_try=no
  7669. fi
  7670. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  7671. fi
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  7673. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  7674. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  7675. no | unknown) ;;
  7676. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  7677. esac
  7678. fi # $ax_pthread_clang = yes
  7679. if test "x$ax_pthread_ok" = "xno"; then
  7680. for ax_pthread_try_flag in $ax_pthread_flags; do
  7681. case $ax_pthread_try_flag in
  7682. none)
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7684. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7685. ;;
  7686. -mt,pthread)
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
  7688. $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
  7689. PTHREAD_CFLAGS="-mt"
  7690. PTHREAD_LIBS="-lpthread"
  7691. ;;
  7692. -*)
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  7694. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  7695. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  7696. ;;
  7697. pthread-config)
  7698. # Extract the first word of "pthread-config", so it can be a program name with args.
  7699. set dummy pthread-config; ac_word=$2
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7701. $as_echo_n "checking for $ac_word... " >&6; }
  7702. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  7703. $as_echo_n "(cached) " >&6
  7704. else
  7705. if test -n "$ax_pthread_config"; then
  7706. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  7707. else
  7708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7709. for as_dir in $PATH
  7710. do
  7711. IFS=$as_save_IFS
  7712. test -z "$as_dir" && as_dir=.
  7713. for ac_exec_ext in '' $ac_executable_extensions; do
  7714. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7715. ac_cv_prog_ax_pthread_config="yes"
  7716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7717. break 2
  7718. fi
  7719. done
  7720. done
  7721. IFS=$as_save_IFS
  7722. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  7723. fi
  7724. fi
  7725. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  7726. if test -n "$ax_pthread_config"; then
  7727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  7728. $as_echo "$ax_pthread_config" >&6; }
  7729. else
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7731. $as_echo "no" >&6; }
  7732. fi
  7733. if test "x$ax_pthread_config" = "xno"; then :
  7734. continue
  7735. fi
  7736. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7737. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7738. ;;
  7739. *)
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  7741. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  7742. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  7743. ;;
  7744. esac
  7745. ax_pthread_save_CFLAGS="$CFLAGS"
  7746. ax_pthread_save_LIBS="$LIBS"
  7747. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7748. LIBS="$PTHREAD_LIBS $LIBS"
  7749. # Check for various functions. We must include pthread.h,
  7750. # since some functions may be macros. (On the Sequent, we
  7751. # need a special flag -Kthread to make this header compile.)
  7752. # We check for pthread_join because it is in -lpthread on IRIX
  7753. # while pthread_create is in libc. We check for pthread_attr_init
  7754. # due to DEC craziness with -lpthreads. We check for
  7755. # pthread_cleanup_push because it is one of the few pthread
  7756. # functions on Solaris that doesn't have a non-functional libc stub.
  7757. # We try pthread_create on general principles.
  7758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7759. /* end confdefs.h. */
  7760. #include <pthread.h>
  7761. # if $ax_pthread_check_cond
  7762. # error "$ax_pthread_check_macro must be defined"
  7763. # endif
  7764. static void routine(void *a) { a = 0; }
  7765. static void *start_routine(void *a) { return a; }
  7766. int
  7767. main ()
  7768. {
  7769. pthread_t th; pthread_attr_t attr;
  7770. pthread_create(&th, 0, start_routine, 0);
  7771. pthread_join(th, 0);
  7772. pthread_attr_init(&attr);
  7773. pthread_cleanup_push(routine, 0);
  7774. pthread_cleanup_pop(0) /* ; */
  7775. ;
  7776. return 0;
  7777. }
  7778. _ACEOF
  7779. if ac_fn_c_try_link "$LINENO"; then :
  7780. ax_pthread_ok=yes
  7781. fi
  7782. rm -f core conftest.err conftest.$ac_objext \
  7783. conftest$ac_exeext conftest.$ac_ext
  7784. CFLAGS="$ax_pthread_save_CFLAGS"
  7785. LIBS="$ax_pthread_save_LIBS"
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  7787. $as_echo "$ax_pthread_ok" >&6; }
  7788. if test "x$ax_pthread_ok" = "xyes"; then :
  7789. break
  7790. fi
  7791. PTHREAD_LIBS=""
  7792. PTHREAD_CFLAGS=""
  7793. done
  7794. fi
  7795. # Various other checks:
  7796. if test "x$ax_pthread_ok" = "xyes"; then
  7797. ax_pthread_save_CFLAGS="$CFLAGS"
  7798. ax_pthread_save_LIBS="$LIBS"
  7799. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7800. LIBS="$PTHREAD_LIBS $LIBS"
  7801. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7803. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7804. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  7805. $as_echo_n "(cached) " >&6
  7806. else
  7807. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  7808. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7810. /* end confdefs.h. */
  7811. #include <pthread.h>
  7812. int
  7813. main ()
  7814. {
  7815. int attr = $ax_pthread_attr; return attr /* ; */
  7816. ;
  7817. return 0;
  7818. }
  7819. _ACEOF
  7820. if ac_fn_c_try_link "$LINENO"; then :
  7821. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  7822. fi
  7823. rm -f core conftest.err conftest.$ac_objext \
  7824. conftest$ac_exeext conftest.$ac_ext
  7825. done
  7826. fi
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  7828. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  7829. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  7830. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  7831. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  7832. cat >>confdefs.h <<_ACEOF
  7833. #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  7834. _ACEOF
  7835. ax_pthread_joinable_attr_defined=yes
  7836. fi
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  7838. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  7839. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  7840. $as_echo_n "(cached) " >&6
  7841. else
  7842. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  7843. case $host_os in
  7844. solaris*)
  7845. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  7846. ;;
  7847. esac
  7848. fi
  7849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  7850. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  7851. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  7852. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  7853. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  7854. ax_pthread_special_flags_added=yes
  7855. fi
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  7857. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  7858. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  7859. $as_echo_n "(cached) " >&6
  7860. else
  7861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7862. /* end confdefs.h. */
  7863. #include <pthread.h>
  7864. int
  7865. main ()
  7866. {
  7867. int i = PTHREAD_PRIO_INHERIT;
  7868. ;
  7869. return 0;
  7870. }
  7871. _ACEOF
  7872. if ac_fn_c_try_link "$LINENO"; then :
  7873. ax_cv_PTHREAD_PRIO_INHERIT=yes
  7874. else
  7875. ax_cv_PTHREAD_PRIO_INHERIT=no
  7876. fi
  7877. rm -f core conftest.err conftest.$ac_objext \
  7878. conftest$ac_exeext conftest.$ac_ext
  7879. fi
  7880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  7881. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  7882. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  7883. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  7884. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  7885. ax_pthread_prio_inherit_defined=yes
  7886. fi
  7887. CFLAGS="$ax_pthread_save_CFLAGS"
  7888. LIBS="$ax_pthread_save_LIBS"
  7889. # More AIX lossage: compile with *_r variant
  7890. if test "x$GCC" != "xyes"; then
  7891. case $host_os in
  7892. aix*)
  7893. case "x/$CC" in #(
  7894. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  7895. #handle absolute path differently from PATH based program lookup
  7896. case "x$CC" in #(
  7897. x/*) :
  7898. if as_fn_executable_p ${CC}_r; then :
  7899. PTHREAD_CC="${CC}_r"
  7900. fi ;; #(
  7901. *) :
  7902. for ac_prog in ${CC}_r
  7903. do
  7904. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7905. set dummy $ac_prog; ac_word=$2
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7907. $as_echo_n "checking for $ac_word... " >&6; }
  7908. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  7909. $as_echo_n "(cached) " >&6
  7910. else
  7911. if test -n "$PTHREAD_CC"; then
  7912. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7913. else
  7914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7915. for as_dir in $PATH
  7916. do
  7917. IFS=$as_save_IFS
  7918. test -z "$as_dir" && as_dir=.
  7919. for ac_exec_ext in '' $ac_executable_extensions; do
  7920. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7921. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7923. break 2
  7924. fi
  7925. done
  7926. done
  7927. IFS=$as_save_IFS
  7928. fi
  7929. fi
  7930. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7931. if test -n "$PTHREAD_CC"; then
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7933. $as_echo "$PTHREAD_CC" >&6; }
  7934. else
  7935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7936. $as_echo "no" >&6; }
  7937. fi
  7938. test -n "$PTHREAD_CC" && break
  7939. done
  7940. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  7941. ;;
  7942. esac ;; #(
  7943. *) :
  7944. ;;
  7945. esac
  7946. ;;
  7947. esac
  7948. fi
  7949. fi
  7950. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  7951. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7952. if test "x$ax_pthread_ok" = "xyes"; then
  7953. threads=yes
  7954. :
  7955. else
  7956. ax_pthread_ok=no
  7957. as_fn_error $? "pthread not found" "$LINENO" 5
  7958. fi
  7959. ac_ext=c
  7960. ac_cpp='$CPP $CPPFLAGS'
  7961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7964. elif test "$threads" = "auto"; then
  7965. ac_ext=c
  7966. ac_cpp='$CPP $CPPFLAGS'
  7967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7970. ax_pthread_ok=no
  7971. # We used to check for pthread.h first, but this fails if pthread.h
  7972. # requires special compiler flags (e.g. on Tru64 or Sequent).
  7973. # It gets checked for in the link test anyway.
  7974. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7975. # etcetera environment variables, and if threads linking works using
  7976. # them:
  7977. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  7978. ax_pthread_save_CC="$CC"
  7979. ax_pthread_save_CFLAGS="$CFLAGS"
  7980. ax_pthread_save_LIBS="$LIBS"
  7981. if test "x$PTHREAD_CC" != "x"; then :
  7982. CC="$PTHREAD_CC"
  7983. fi
  7984. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7985. LIBS="$PTHREAD_LIBS $LIBS"
  7986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  7987. $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  7988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7989. /* end confdefs.h. */
  7990. /* Override any GCC internal prototype to avoid an error.
  7991. Use char because int might match the return type of a GCC
  7992. builtin and then its argument prototype would still apply. */
  7993. #ifdef __cplusplus
  7994. extern "C"
  7995. #endif
  7996. char pthread_join ();
  7997. int
  7998. main ()
  7999. {
  8000. return pthread_join ();
  8001. ;
  8002. return 0;
  8003. }
  8004. _ACEOF
  8005. if ac_fn_c_try_link "$LINENO"; then :
  8006. ax_pthread_ok=yes
  8007. fi
  8008. rm -f core conftest.err conftest.$ac_objext \
  8009. conftest$ac_exeext conftest.$ac_ext
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  8011. $as_echo "$ax_pthread_ok" >&6; }
  8012. if test "x$ax_pthread_ok" = "xno"; then
  8013. PTHREAD_LIBS=""
  8014. PTHREAD_CFLAGS=""
  8015. fi
  8016. CC="$ax_pthread_save_CC"
  8017. CFLAGS="$ax_pthread_save_CFLAGS"
  8018. LIBS="$ax_pthread_save_LIBS"
  8019. fi
  8020. # We must check for the threads library under a number of different
  8021. # names; the ordering is very important because some systems
  8022. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  8023. # libraries is broken (non-POSIX).
  8024. # Create a list of thread flags to try. Items starting with a "-" are
  8025. # C compiler flags, and other items are library names, except for "none"
  8026. # which indicates that we try without any flags at all, and "pthread-config"
  8027. # which is a program returning the flags for the Pth emulation library.
  8028. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  8029. # The ordering *is* (sometimes) important. Some notes on the
  8030. # individual items follow:
  8031. # pthreads: AIX (must check this before -lpthread)
  8032. # none: in case threads are in libc; should be tried before -Kthread and
  8033. # other compiler flags to prevent continual compiler warnings
  8034. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  8035. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  8036. # (Note: HP C rejects this with "bad form for `-t' option")
  8037. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  8038. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  8039. # doesn't hurt to check since this sometimes defines pthreads and
  8040. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  8041. # is present but should not be used directly; and before -mthreads,
  8042. # because the compiler interprets this as "-mt" + "-hreads")
  8043. # -mthreads: Mingw32/gcc, Lynx/gcc
  8044. # pthread: Linux, etcetera
  8045. # --thread-safe: KAI C++
  8046. # pthread-config: use pthread-config program (for GNU Pth library)
  8047. case $host_os in
  8048. freebsd*)
  8049. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  8050. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  8051. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  8052. ;;
  8053. hpux*)
  8054. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  8055. # multi-threading and also sets -lpthread."
  8056. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  8057. ;;
  8058. openedition*)
  8059. # IBM z/OS requires a feature-test macro to be defined in order to
  8060. # enable POSIX threads at all, so give the user a hint if this is
  8061. # not set. (We don't define these ourselves, as they can affect
  8062. # other portions of the system API in unpredictable ways.)
  8063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8064. /* end confdefs.h. */
  8065. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  8066. AX_PTHREAD_ZOS_MISSING
  8067. # endif
  8068. _ACEOF
  8069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8070. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  8072. $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  8073. fi
  8074. rm -f conftest*
  8075. ;;
  8076. solaris*)
  8077. # On Solaris (at least, for some versions), libc contains stubbed
  8078. # (non-functional) versions of the pthreads routines, so link-based
  8079. # tests will erroneously succeed. (N.B.: The stubs are missing
  8080. # pthread_cleanup_push, or rather a function called by this macro,
  8081. # so we could check for that, but who knows whether they'll stub
  8082. # that too in a future libc.) So we'll check first for the
  8083. # standard Solaris way of linking pthreads (-mt -lpthread).
  8084. ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
  8085. ;;
  8086. esac
  8087. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  8088. if test "x$GCC" = "xyes"; then :
  8089. ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
  8090. fi
  8091. # The presence of a feature test macro requesting re-entrant function
  8092. # definitions is, on some systems, a strong hint that pthreads support is
  8093. # correctly enabled
  8094. case $host_os in
  8095. darwin* | hpux* | linux* | osf* | solaris*)
  8096. ax_pthread_check_macro="_REENTRANT"
  8097. ;;
  8098. aix*)
  8099. ax_pthread_check_macro="_THREAD_SAFE"
  8100. ;;
  8101. *)
  8102. ax_pthread_check_macro="--"
  8103. ;;
  8104. esac
  8105. if test "x$ax_pthread_check_macro" = "x--"; then :
  8106. ax_pthread_check_cond=0
  8107. else
  8108. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  8109. fi
  8110. # Are we compiling with Clang?
  8111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  8112. $as_echo_n "checking whether $CC is Clang... " >&6; }
  8113. if ${ax_cv_PTHREAD_CLANG+:} false; then :
  8114. $as_echo_n "(cached) " >&6
  8115. else
  8116. ax_cv_PTHREAD_CLANG=no
  8117. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  8118. if test "x$GCC" = "xyes"; then
  8119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8120. /* end confdefs.h. */
  8121. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  8122. # if defined(__clang__) && defined(__llvm__)
  8123. AX_PTHREAD_CC_IS_CLANG
  8124. # endif
  8125. _ACEOF
  8126. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8127. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
  8128. ax_cv_PTHREAD_CLANG=yes
  8129. fi
  8130. rm -f conftest*
  8131. fi
  8132. fi
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  8134. $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
  8135. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  8136. ax_pthread_clang_warning=no
  8137. # Clang needs special handling, because older versions handle the -pthread
  8138. # option in a rather... idiosyncratic way
  8139. if test "x$ax_pthread_clang" = "xyes"; then
  8140. # Clang takes -pthread; it has never supported any other flag
  8141. # (Note 1: This will need to be revisited if a system that Clang
  8142. # supports has POSIX threads in a separate library. This tends not
  8143. # to be the way of modern systems, but it's conceivable.)
  8144. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  8145. # to get POSIX threads support; the API is always present and
  8146. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  8147. # -pthread does define _REENTRANT, and while the Darwin headers
  8148. # ignore this macro, third-party headers might not.)
  8149. PTHREAD_CFLAGS="-pthread"
  8150. PTHREAD_LIBS=
  8151. ax_pthread_ok=yes
  8152. # However, older versions of Clang make a point of warning the user
  8153. # that, in an invocation where only linking and no compilation is
  8154. # taking place, the -pthread option has no effect ("argument unused
  8155. # during compilation"). They expect -pthread to be passed in only
  8156. # when source code is being compiled.
  8157. #
  8158. # Problem is, this is at odds with the way Automake and most other
  8159. # C build frameworks function, which is that the same flags used in
  8160. # compilation (CFLAGS) are also used in linking. Many systems
  8161. # supported by AX_PTHREAD require exactly this for POSIX threads
  8162. # support, and in fact it is often not straightforward to specify a
  8163. # flag that is used only in the compilation phase and not in
  8164. # linking. Such a scenario is extremely rare in practice.
  8165. #
  8166. # Even though use of the -pthread flag in linking would only print
  8167. # a warning, this can be a nuisance for well-run software projects
  8168. # that build with -Werror. So if the active version of Clang has
  8169. # this misfeature, we search for an option to squash it.
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  8171. $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  8172. if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  8176. # Create an alternate version of $ac_link that compiles and
  8177. # links in two steps (.c -> .o, .o -> exe) instead of one
  8178. # (.c -> exe), because the warning occurs only in the second
  8179. # step
  8180. ax_pthread_save_ac_link="$ac_link"
  8181. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  8182. ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
  8183. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  8184. ax_pthread_save_CFLAGS="$CFLAGS"
  8185. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  8186. if test "x$ax_pthread_try" = "xunknown"; then :
  8187. break
  8188. fi
  8189. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  8190. ac_link="$ax_pthread_save_ac_link"
  8191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8192. /* end confdefs.h. */
  8193. int main(void){return 0;}
  8194. _ACEOF
  8195. if ac_fn_c_try_link "$LINENO"; then :
  8196. ac_link="$ax_pthread_2step_ac_link"
  8197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8198. /* end confdefs.h. */
  8199. int main(void){return 0;}
  8200. _ACEOF
  8201. if ac_fn_c_try_link "$LINENO"; then :
  8202. break
  8203. fi
  8204. rm -f core conftest.err conftest.$ac_objext \
  8205. conftest$ac_exeext conftest.$ac_ext
  8206. fi
  8207. rm -f core conftest.err conftest.$ac_objext \
  8208. conftest$ac_exeext conftest.$ac_ext
  8209. done
  8210. ac_link="$ax_pthread_save_ac_link"
  8211. CFLAGS="$ax_pthread_save_CFLAGS"
  8212. if test "x$ax_pthread_try" = "x"; then :
  8213. ax_pthread_try=no
  8214. fi
  8215. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  8216. fi
  8217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  8218. $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  8219. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  8220. no | unknown) ;;
  8221. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  8222. esac
  8223. fi # $ax_pthread_clang = yes
  8224. if test "x$ax_pthread_ok" = "xno"; then
  8225. for ax_pthread_try_flag in $ax_pthread_flags; do
  8226. case $ax_pthread_try_flag in
  8227. none)
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  8229. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  8230. ;;
  8231. -mt,pthread)
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
  8233. $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
  8234. PTHREAD_CFLAGS="-mt"
  8235. PTHREAD_LIBS="-lpthread"
  8236. ;;
  8237. -*)
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  8239. $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  8240. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  8241. ;;
  8242. pthread-config)
  8243. # Extract the first word of "pthread-config", so it can be a program name with args.
  8244. set dummy pthread-config; ac_word=$2
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8246. $as_echo_n "checking for $ac_word... " >&6; }
  8247. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  8248. $as_echo_n "(cached) " >&6
  8249. else
  8250. if test -n "$ax_pthread_config"; then
  8251. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  8252. else
  8253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8254. for as_dir in $PATH
  8255. do
  8256. IFS=$as_save_IFS
  8257. test -z "$as_dir" && as_dir=.
  8258. for ac_exec_ext in '' $ac_executable_extensions; do
  8259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8260. ac_cv_prog_ax_pthread_config="yes"
  8261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8262. break 2
  8263. fi
  8264. done
  8265. done
  8266. IFS=$as_save_IFS
  8267. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  8268. fi
  8269. fi
  8270. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  8271. if test -n "$ax_pthread_config"; then
  8272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  8273. $as_echo "$ax_pthread_config" >&6; }
  8274. else
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8276. $as_echo "no" >&6; }
  8277. fi
  8278. if test "x$ax_pthread_config" = "xno"; then :
  8279. continue
  8280. fi
  8281. PTHREAD_CFLAGS="`pthread-config --cflags`"
  8282. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  8283. ;;
  8284. *)
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  8286. $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  8287. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  8288. ;;
  8289. esac
  8290. ax_pthread_save_CFLAGS="$CFLAGS"
  8291. ax_pthread_save_LIBS="$LIBS"
  8292. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  8293. LIBS="$PTHREAD_LIBS $LIBS"
  8294. # Check for various functions. We must include pthread.h,
  8295. # since some functions may be macros. (On the Sequent, we
  8296. # need a special flag -Kthread to make this header compile.)
  8297. # We check for pthread_join because it is in -lpthread on IRIX
  8298. # while pthread_create is in libc. We check for pthread_attr_init
  8299. # due to DEC craziness with -lpthreads. We check for
  8300. # pthread_cleanup_push because it is one of the few pthread
  8301. # functions on Solaris that doesn't have a non-functional libc stub.
  8302. # We try pthread_create on general principles.
  8303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8304. /* end confdefs.h. */
  8305. #include <pthread.h>
  8306. # if $ax_pthread_check_cond
  8307. # error "$ax_pthread_check_macro must be defined"
  8308. # endif
  8309. static void routine(void *a) { a = 0; }
  8310. static void *start_routine(void *a) { return a; }
  8311. int
  8312. main ()
  8313. {
  8314. pthread_t th; pthread_attr_t attr;
  8315. pthread_create(&th, 0, start_routine, 0);
  8316. pthread_join(th, 0);
  8317. pthread_attr_init(&attr);
  8318. pthread_cleanup_push(routine, 0);
  8319. pthread_cleanup_pop(0) /* ; */
  8320. ;
  8321. return 0;
  8322. }
  8323. _ACEOF
  8324. if ac_fn_c_try_link "$LINENO"; then :
  8325. ax_pthread_ok=yes
  8326. fi
  8327. rm -f core conftest.err conftest.$ac_objext \
  8328. conftest$ac_exeext conftest.$ac_ext
  8329. CFLAGS="$ax_pthread_save_CFLAGS"
  8330. LIBS="$ax_pthread_save_LIBS"
  8331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  8332. $as_echo "$ax_pthread_ok" >&6; }
  8333. if test "x$ax_pthread_ok" = "xyes"; then :
  8334. break
  8335. fi
  8336. PTHREAD_LIBS=""
  8337. PTHREAD_CFLAGS=""
  8338. done
  8339. fi
  8340. # Various other checks:
  8341. if test "x$ax_pthread_ok" = "xyes"; then
  8342. ax_pthread_save_CFLAGS="$CFLAGS"
  8343. ax_pthread_save_LIBS="$LIBS"
  8344. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  8345. LIBS="$PTHREAD_LIBS $LIBS"
  8346. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  8347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  8348. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  8349. if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
  8350. $as_echo_n "(cached) " >&6
  8351. else
  8352. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  8353. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  8354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8355. /* end confdefs.h. */
  8356. #include <pthread.h>
  8357. int
  8358. main ()
  8359. {
  8360. int attr = $ax_pthread_attr; return attr /* ; */
  8361. ;
  8362. return 0;
  8363. }
  8364. _ACEOF
  8365. if ac_fn_c_try_link "$LINENO"; then :
  8366. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  8367. fi
  8368. rm -f core conftest.err conftest.$ac_objext \
  8369. conftest$ac_exeext conftest.$ac_ext
  8370. done
  8371. fi
  8372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  8373. $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  8374. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  8375. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  8376. test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
  8377. cat >>confdefs.h <<_ACEOF
  8378. #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
  8379. _ACEOF
  8380. ax_pthread_joinable_attr_defined=yes
  8381. fi
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  8383. $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
  8384. if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
  8385. $as_echo_n "(cached) " >&6
  8386. else
  8387. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  8388. case $host_os in
  8389. solaris*)
  8390. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  8391. ;;
  8392. esac
  8393. fi
  8394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  8395. $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  8396. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  8397. test "x$ax_pthread_special_flags_added" != "xyes"; then :
  8398. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  8399. ax_pthread_special_flags_added=yes
  8400. fi
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  8402. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  8403. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  8404. $as_echo_n "(cached) " >&6
  8405. else
  8406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8407. /* end confdefs.h. */
  8408. #include <pthread.h>
  8409. int
  8410. main ()
  8411. {
  8412. int i = PTHREAD_PRIO_INHERIT;
  8413. ;
  8414. return 0;
  8415. }
  8416. _ACEOF
  8417. if ac_fn_c_try_link "$LINENO"; then :
  8418. ax_cv_PTHREAD_PRIO_INHERIT=yes
  8419. else
  8420. ax_cv_PTHREAD_PRIO_INHERIT=no
  8421. fi
  8422. rm -f core conftest.err conftest.$ac_objext \
  8423. conftest$ac_exeext conftest.$ac_ext
  8424. fi
  8425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  8426. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  8427. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  8428. test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
  8429. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  8430. ax_pthread_prio_inherit_defined=yes
  8431. fi
  8432. CFLAGS="$ax_pthread_save_CFLAGS"
  8433. LIBS="$ax_pthread_save_LIBS"
  8434. # More AIX lossage: compile with *_r variant
  8435. if test "x$GCC" != "xyes"; then
  8436. case $host_os in
  8437. aix*)
  8438. case "x/$CC" in #(
  8439. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  8440. #handle absolute path differently from PATH based program lookup
  8441. case "x$CC" in #(
  8442. x/*) :
  8443. if as_fn_executable_p ${CC}_r; then :
  8444. PTHREAD_CC="${CC}_r"
  8445. fi ;; #(
  8446. *) :
  8447. for ac_prog in ${CC}_r
  8448. do
  8449. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8450. set dummy $ac_prog; ac_word=$2
  8451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8452. $as_echo_n "checking for $ac_word... " >&6; }
  8453. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  8454. $as_echo_n "(cached) " >&6
  8455. else
  8456. if test -n "$PTHREAD_CC"; then
  8457. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  8458. else
  8459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8460. for as_dir in $PATH
  8461. do
  8462. IFS=$as_save_IFS
  8463. test -z "$as_dir" && as_dir=.
  8464. for ac_exec_ext in '' $ac_executable_extensions; do
  8465. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8466. ac_cv_prog_PTHREAD_CC="$ac_prog"
  8467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8468. break 2
  8469. fi
  8470. done
  8471. done
  8472. IFS=$as_save_IFS
  8473. fi
  8474. fi
  8475. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  8476. if test -n "$PTHREAD_CC"; then
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  8478. $as_echo "$PTHREAD_CC" >&6; }
  8479. else
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8481. $as_echo "no" >&6; }
  8482. fi
  8483. test -n "$PTHREAD_CC" && break
  8484. done
  8485. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  8486. ;;
  8487. esac ;; #(
  8488. *) :
  8489. ;;
  8490. esac
  8491. ;;
  8492. esac
  8493. fi
  8494. fi
  8495. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  8496. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  8497. if test "x$ax_pthread_ok" = "xyes"; then
  8498. threads=yes
  8499. :
  8500. else
  8501. ax_pthread_ok=no
  8502. threads=no
  8503. fi
  8504. ac_ext=c
  8505. ac_cpp='$CPP $CPPFLAGS'
  8506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8509. fi
  8510. if test "$threads" = "yes"; then
  8511. $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
  8512. fi
  8513. if test "$threads" = "yes"; then
  8514. THREADS_TRUE=
  8515. THREADS_FALSE='#'
  8516. else
  8517. THREADS_TRUE='#'
  8518. THREADS_FALSE=
  8519. fi
  8520. ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  8521. if test "x$ac_cv_have_decl_basename" = xyes; then :
  8522. ac_have_decl=1
  8523. else
  8524. ac_have_decl=0
  8525. fi
  8526. cat >>confdefs.h <<_ACEOF
  8527. #define HAVE_DECL_BASENAME $ac_have_decl
  8528. _ACEOF
  8529. ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  8530. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  8531. ac_have_decl=1
  8532. else
  8533. ac_have_decl=0
  8534. fi
  8535. cat >>confdefs.h <<_ACEOF
  8536. #define HAVE_DECL_FFS $ac_have_decl
  8537. _ACEOF
  8538. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  8539. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  8540. ac_have_decl=1
  8541. else
  8542. ac_have_decl=0
  8543. fi
  8544. cat >>confdefs.h <<_ACEOF
  8545. #define HAVE_DECL_ASPRINTF $ac_have_decl
  8546. _ACEOF
  8547. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  8548. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  8549. ac_have_decl=1
  8550. else
  8551. ac_have_decl=0
  8552. fi
  8553. cat >>confdefs.h <<_ACEOF
  8554. #define HAVE_DECL_VASPRINTF $ac_have_decl
  8555. _ACEOF
  8556. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  8557. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  8558. ac_have_decl=1
  8559. else
  8560. ac_have_decl=0
  8561. fi
  8562. cat >>confdefs.h <<_ACEOF
  8563. #define HAVE_DECL_SNPRINTF $ac_have_decl
  8564. _ACEOF
  8565. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  8566. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  8567. ac_have_decl=1
  8568. else
  8569. ac_have_decl=0
  8570. fi
  8571. cat >>confdefs.h <<_ACEOF
  8572. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  8573. _ACEOF
  8574. ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  8575. if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
  8576. ac_have_decl=1
  8577. else
  8578. ac_have_decl=0
  8579. fi
  8580. cat >>confdefs.h <<_ACEOF
  8581. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  8582. _ACEOF
  8583. save_CFLAGS="$CFLAGS"
  8584. CFLAGS="$CFLAGS -Werror -gpubnames"
  8585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8586. /* end confdefs.h. */
  8587. int i;
  8588. _ACEOF
  8589. if ac_fn_c_try_compile "$LINENO"; then :
  8590. have_pubnames=yes
  8591. else
  8592. have_pubnames=no
  8593. fi
  8594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8595. CFLAGS="$save_CFLAGS"
  8596. if test "$have_pubnames" = "yes"; then
  8597. HAVE_PUBNAMES_TRUE=
  8598. HAVE_PUBNAMES_FALSE='#'
  8599. else
  8600. HAVE_PUBNAMES_TRUE='#'
  8601. HAVE_PUBNAMES_FALSE=
  8602. fi
  8603. save_CFLAGS="$CFLAGS"
  8604. CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
  8605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8606. /* end confdefs.h. */
  8607. int i;
  8608. _ACEOF
  8609. if ac_fn_c_try_compile "$LINENO"; then :
  8610. have_no_use_linker_plugin=yes
  8611. else
  8612. have_no_use_linker_plugin=no
  8613. fi
  8614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8615. CFLAGS="$save_CFLAGS"
  8616. if test "$have_no_use_linker_plugin" = "yes"; then
  8617. HAVE_NO_USE_LINKER_PLUGIN_TRUE=
  8618. HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
  8619. else
  8620. HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
  8621. HAVE_NO_USE_LINKER_PLUGIN_FALSE=
  8622. fi
  8623. ac_ext=cpp
  8624. ac_cpp='$CXXCPP $CPPFLAGS'
  8625. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8626. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8627. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8628. ac_ext=cpp
  8629. ac_cpp='$CXXCPP $CPPFLAGS'
  8630. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8631. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8632. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  8634. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  8635. if test -z "$CXXCPP"; then
  8636. if ${ac_cv_prog_CXXCPP+:} false; then :
  8637. $as_echo_n "(cached) " >&6
  8638. else
  8639. # Double quotes because CXXCPP needs to be expanded
  8640. for CXXCPP in "$CXX -E" "/lib/cpp"
  8641. do
  8642. ac_preproc_ok=false
  8643. for ac_cxx_preproc_warn_flag in '' yes
  8644. do
  8645. # Use a header file that comes with gcc, so configuring glibc
  8646. # with a fresh cross-compiler works.
  8647. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8648. # <limits.h> exists even on freestanding compilers.
  8649. # On the NeXT, cc -E runs the code through the compiler's parser,
  8650. # not just through cpp. "Syntax error" is here to catch this case.
  8651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8652. /* end confdefs.h. */
  8653. #ifdef __STDC__
  8654. # include <limits.h>
  8655. #else
  8656. # include <assert.h>
  8657. #endif
  8658. Syntax error
  8659. _ACEOF
  8660. if ac_fn_cxx_try_cpp "$LINENO"; then :
  8661. else
  8662. # Broken: fails on valid input.
  8663. continue
  8664. fi
  8665. rm -f conftest.err conftest.i conftest.$ac_ext
  8666. # OK, works on sane cases. Now check whether nonexistent headers
  8667. # can be detected and how.
  8668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8669. /* end confdefs.h. */
  8670. #include <ac_nonexistent.h>
  8671. _ACEOF
  8672. if ac_fn_cxx_try_cpp "$LINENO"; then :
  8673. # Broken: success on invalid input.
  8674. continue
  8675. else
  8676. # Passes both tests.
  8677. ac_preproc_ok=:
  8678. break
  8679. fi
  8680. rm -f conftest.err conftest.i conftest.$ac_ext
  8681. done
  8682. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8683. rm -f conftest.i conftest.err conftest.$ac_ext
  8684. if $ac_preproc_ok; then :
  8685. break
  8686. fi
  8687. done
  8688. ac_cv_prog_CXXCPP=$CXXCPP
  8689. fi
  8690. CXXCPP=$ac_cv_prog_CXXCPP
  8691. else
  8692. ac_cv_prog_CXXCPP=$CXXCPP
  8693. fi
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  8695. $as_echo "$CXXCPP" >&6; }
  8696. ac_preproc_ok=false
  8697. for ac_cxx_preproc_warn_flag in '' yes
  8698. do
  8699. # Use a header file that comes with gcc, so configuring glibc
  8700. # with a fresh cross-compiler works.
  8701. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8702. # <limits.h> exists even on freestanding compilers.
  8703. # On the NeXT, cc -E runs the code through the compiler's parser,
  8704. # not just through cpp. "Syntax error" is here to catch this case.
  8705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8706. /* end confdefs.h. */
  8707. #ifdef __STDC__
  8708. # include <limits.h>
  8709. #else
  8710. # include <assert.h>
  8711. #endif
  8712. Syntax error
  8713. _ACEOF
  8714. if ac_fn_cxx_try_cpp "$LINENO"; then :
  8715. else
  8716. # Broken: fails on valid input.
  8717. continue
  8718. fi
  8719. rm -f conftest.err conftest.i conftest.$ac_ext
  8720. # OK, works on sane cases. Now check whether nonexistent headers
  8721. # can be detected and how.
  8722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8723. /* end confdefs.h. */
  8724. #include <ac_nonexistent.h>
  8725. _ACEOF
  8726. if ac_fn_cxx_try_cpp "$LINENO"; then :
  8727. # Broken: success on invalid input.
  8728. continue
  8729. else
  8730. # Passes both tests.
  8731. ac_preproc_ok=:
  8732. break
  8733. fi
  8734. rm -f conftest.err conftest.i conftest.$ac_ext
  8735. done
  8736. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  8737. rm -f conftest.i conftest.err conftest.$ac_ext
  8738. if $ac_preproc_ok; then :
  8739. else
  8740. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8741. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8742. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  8743. See \`config.log' for more details" "$LINENO" 5; }
  8744. fi
  8745. ac_ext=cpp
  8746. ac_cpp='$CXXCPP $CPPFLAGS'
  8747. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8748. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8749. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8750. for ac_header in unordered_set unordered_map
  8751. do :
  8752. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8753. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8754. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8755. cat >>confdefs.h <<_ACEOF
  8756. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8757. _ACEOF
  8758. fi
  8759. done
  8760. for ac_header in tr1/unordered_set tr1/unordered_map
  8761. do :
  8762. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8763. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8764. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8765. cat >>confdefs.h <<_ACEOF
  8766. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8767. _ACEOF
  8768. fi
  8769. done
  8770. for ac_header in ext/hash_map ext/hash_set
  8771. do :
  8772. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8773. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8774. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  8775. cat >>confdefs.h <<_ACEOF
  8776. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8777. _ACEOF
  8778. fi
  8779. done
  8780. for ac_header in byteswap.h
  8781. do :
  8782. ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  8783. if test "x$ac_cv_header_byteswap_h" = xyes; then :
  8784. cat >>confdefs.h <<_ACEOF
  8785. #define HAVE_BYTESWAP_H 1
  8786. _ACEOF
  8787. fi
  8788. done
  8789. ac_fn_cxx_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
  8790. "
  8791. if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
  8792. ac_have_decl=1
  8793. else
  8794. ac_have_decl=0
  8795. fi
  8796. cat >>confdefs.h <<_ACEOF
  8797. #define HAVE_DECL_BSWAP_16 $ac_have_decl
  8798. _ACEOF
  8799. ac_fn_cxx_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
  8800. "
  8801. if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
  8802. ac_have_decl=1
  8803. else
  8804. ac_have_decl=0
  8805. fi
  8806. cat >>confdefs.h <<_ACEOF
  8807. #define HAVE_DECL_BSWAP_32 $ac_have_decl
  8808. _ACEOF
  8809. ac_fn_cxx_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
  8810. "
  8811. if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
  8812. ac_have_decl=1
  8813. else
  8814. ac_have_decl=0
  8815. fi
  8816. cat >>confdefs.h <<_ACEOF
  8817. #define HAVE_DECL_BSWAP_64 $ac_have_decl
  8818. _ACEOF
  8819. for ac_header in windows.h
  8820. do :
  8821. ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  8822. if test "x$ac_cv_header_windows_h" = xyes; then :
  8823. cat >>confdefs.h <<_ACEOF
  8824. #define HAVE_WINDOWS_H 1
  8825. _ACEOF
  8826. fi
  8827. done
  8828. for ac_header in dlfcn.h
  8829. do :
  8830. ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  8831. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8832. cat >>confdefs.h <<_ACEOF
  8833. #define HAVE_DLFCN_H 1
  8834. _ACEOF
  8835. fi
  8836. done
  8837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  8838. $as_echo_n "checking for library containing dlopen... " >&6; }
  8839. if ${ac_cv_search_dlopen+:} false; then :
  8840. $as_echo_n "(cached) " >&6
  8841. else
  8842. ac_func_search_save_LIBS=$LIBS
  8843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8844. /* end confdefs.h. */
  8845. /* Override any GCC internal prototype to avoid an error.
  8846. Use char because int might match the return type of a GCC
  8847. builtin and then its argument prototype would still apply. */
  8848. #ifdef __cplusplus
  8849. extern "C"
  8850. #endif
  8851. char dlopen ();
  8852. int
  8853. main ()
  8854. {
  8855. return dlopen ();
  8856. ;
  8857. return 0;
  8858. }
  8859. _ACEOF
  8860. for ac_lib in '' dl dld; do
  8861. if test -z "$ac_lib"; then
  8862. ac_res="none required"
  8863. else
  8864. ac_res=-l$ac_lib
  8865. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8866. fi
  8867. if ac_fn_cxx_try_link "$LINENO"; then :
  8868. ac_cv_search_dlopen=$ac_res
  8869. fi
  8870. rm -f core conftest.err conftest.$ac_objext \
  8871. conftest$ac_exeext
  8872. if ${ac_cv_search_dlopen+:} false; then :
  8873. break
  8874. fi
  8875. done
  8876. if ${ac_cv_search_dlopen+:} false; then :
  8877. else
  8878. ac_cv_search_dlopen=no
  8879. fi
  8880. rm conftest.$ac_ext
  8881. LIBS=$ac_func_search_save_LIBS
  8882. fi
  8883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  8884. $as_echo "$ac_cv_search_dlopen" >&6; }
  8885. ac_res=$ac_cv_search_dlopen
  8886. if test "$ac_res" != no; then :
  8887. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8888. fi
  8889. case "$ac_cv_search_dlopen" in
  8890. no*) DLOPEN_LIBS="";;
  8891. *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
  8892. esac
  8893. for ac_func in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf times mkdtemp
  8894. do :
  8895. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8896. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8897. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  8898. cat >>confdefs.h <<_ACEOF
  8899. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8900. _ACEOF
  8901. fi
  8902. done
  8903. ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
  8904. if test "x$ac_cv_have_decl_basename" = xyes; then :
  8905. ac_have_decl=1
  8906. else
  8907. ac_have_decl=0
  8908. fi
  8909. cat >>confdefs.h <<_ACEOF
  8910. #define HAVE_DECL_BASENAME $ac_have_decl
  8911. _ACEOF
  8912. ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
  8913. if test "x$ac_cv_have_decl_ffs" = xyes; then :
  8914. ac_have_decl=1
  8915. else
  8916. ac_have_decl=0
  8917. fi
  8918. cat >>confdefs.h <<_ACEOF
  8919. #define HAVE_DECL_FFS $ac_have_decl
  8920. _ACEOF
  8921. ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  8922. if test "x$ac_cv_have_decl_asprintf" = xyes; then :
  8923. ac_have_decl=1
  8924. else
  8925. ac_have_decl=0
  8926. fi
  8927. cat >>confdefs.h <<_ACEOF
  8928. #define HAVE_DECL_ASPRINTF $ac_have_decl
  8929. _ACEOF
  8930. ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  8931. if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
  8932. ac_have_decl=1
  8933. else
  8934. ac_have_decl=0
  8935. fi
  8936. cat >>confdefs.h <<_ACEOF
  8937. #define HAVE_DECL_VASPRINTF $ac_have_decl
  8938. _ACEOF
  8939. ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  8940. if test "x$ac_cv_have_decl_snprintf" = xyes; then :
  8941. ac_have_decl=1
  8942. else
  8943. ac_have_decl=0
  8944. fi
  8945. cat >>confdefs.h <<_ACEOF
  8946. #define HAVE_DECL_SNPRINTF $ac_have_decl
  8947. _ACEOF
  8948. ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  8949. if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
  8950. ac_have_decl=1
  8951. else
  8952. ac_have_decl=0
  8953. fi
  8954. cat >>confdefs.h <<_ACEOF
  8955. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  8956. _ACEOF
  8957. ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
  8958. if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
  8959. ac_have_decl=1
  8960. else
  8961. ac_have_decl=0
  8962. fi
  8963. cat >>confdefs.h <<_ACEOF
  8964. #define HAVE_DECL_STRVERSCMP $ac_have_decl
  8965. _ACEOF
  8966. ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
  8967. if test "x$ac_cv_have_decl_strndup" = xyes; then :
  8968. ac_have_decl=1
  8969. else
  8970. ac_have_decl=0
  8971. fi
  8972. cat >>confdefs.h <<_ACEOF
  8973. #define HAVE_DECL_STRNDUP $ac_have_decl
  8974. _ACEOF
  8975. ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
  8976. if test "x$ac_cv_have_decl_memmem" = xyes; then :
  8977. ac_have_decl=1
  8978. else
  8979. ac_have_decl=0
  8980. fi
  8981. cat >>confdefs.h <<_ACEOF
  8982. #define HAVE_DECL_MEMMEM $ac_have_decl
  8983. _ACEOF
  8984. # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
  8985. # at link time with some versions of GCC.
  8986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
  8987. $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
  8988. if ${gold_cv_unordered_map_rehash+:} false; then :
  8989. $as_echo_n "(cached) " >&6
  8990. else
  8991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8992. /* end confdefs.h. */
  8993. #include <tr1/unordered_map>
  8994. void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
  8995. int
  8996. main ()
  8997. {
  8998. ;
  8999. return 0;
  9000. }
  9001. _ACEOF
  9002. if ac_fn_cxx_try_link "$LINENO"; then :
  9003. gold_cv_unordered_map_rehash=yes
  9004. else
  9005. gold_cv_unordered_map_rehash=no
  9006. fi
  9007. rm -f core conftest.err conftest.$ac_objext \
  9008. conftest$ac_exeext conftest.$ac_ext
  9009. fi
  9010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
  9011. $as_echo "$gold_cv_unordered_map_rehash" >&6; }
  9012. if test "$gold_cv_unordered_map_rehash" = "yes"; then
  9013. $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
  9014. fi
  9015. # Use of tr1/unordered_map with off_t as a key is not supported on GCC
  9016. # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
  9018. $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
  9019. if ${gold_cv_hash_off_t+:} false; then :
  9020. $as_echo_n "(cached) " >&6
  9021. else
  9022. CXXFLAGS_hold=$CXXFLAGS
  9023. CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
  9024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9025. /* end confdefs.h. */
  9026. #include <sys/types.h>
  9027. #include <tr1/unordered_map>
  9028. std::tr1::hash<off_t> h;
  9029. _ACEOF
  9030. if ac_fn_cxx_try_compile "$LINENO"; then :
  9031. gold_cv_hash_off_t=yes
  9032. else
  9033. gold_cv_hash_off_t=no
  9034. fi
  9035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9036. CXXFLAGS=$CXXFLAGS_hold
  9037. fi
  9038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
  9039. $as_echo "$gold_cv_hash_off_t" >&6; }
  9040. if test "$gold_cv_hash_off_t" = "yes"; then
  9041. $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
  9042. fi
  9043. # gcc 4.3.0 doesn't recognize the printf attribute on a template
  9044. # function. Check for that. This is gcc bug 35546. This test can
  9045. # probably be removed after the bug has been fixed for a while.
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
  9047. $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
  9048. if ${gold_cv_template_attribute+:} false; then :
  9049. $as_echo_n "(cached) " >&6
  9050. else
  9051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9052. /* end confdefs.h. */
  9053. template<typename T> extern void foo(const char*, ...)
  9054. __attribute__ ((__format__ (__printf__, 1, 2)));
  9055. template<typename T> void foo(const char* format, ...) {}
  9056. void bar() { foo<int>("%s\n", "foo"); }
  9057. _ACEOF
  9058. if ac_fn_cxx_try_compile "$LINENO"; then :
  9059. gold_cv_template_attribute=yes
  9060. else
  9061. gold_cv_template_attribute=no
  9062. fi
  9063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9064. fi
  9065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
  9066. $as_echo "$gold_cv_template_attribute" >&6; }
  9067. if test "$gold_cv_template_attribute" = "yes"; then
  9068. $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
  9069. fi
  9070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
  9071. $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
  9072. if ${gold_cv_stat_st_mtim+:} false; then :
  9073. $as_echo_n "(cached) " >&6
  9074. else
  9075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9076. /* end confdefs.h. */
  9077. #include <sys/stat.h>
  9078. long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
  9079. int
  9080. main ()
  9081. {
  9082. ;
  9083. return 0;
  9084. }
  9085. _ACEOF
  9086. if ac_fn_cxx_try_compile "$LINENO"; then :
  9087. gold_cv_stat_st_mtim=yes
  9088. else
  9089. gold_cv_stat_st_mtim=no
  9090. fi
  9091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9092. fi
  9093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
  9094. $as_echo "$gold_cv_stat_st_mtim" >&6; }
  9095. if test "$gold_cv_stat_st_mtim" = "yes"; then
  9096. $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
  9097. fi
  9098. ac_ext=c
  9099. ac_cpp='$CPP $CPPFLAGS'
  9100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9103. for ac_header in locale.h
  9104. do :
  9105. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  9106. if test "x$ac_cv_header_locale_h" = xyes; then :
  9107. cat >>confdefs.h <<_ACEOF
  9108. #define HAVE_LOCALE_H 1
  9109. _ACEOF
  9110. fi
  9111. done
  9112. for ac_func in setlocale
  9113. do :
  9114. ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
  9115. if test "x$ac_cv_func_setlocale" = xyes; then :
  9116. cat >>confdefs.h <<_ACEOF
  9117. #define HAVE_SETLOCALE 1
  9118. _ACEOF
  9119. fi
  9120. done
  9121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  9122. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  9123. if ${am_cv_val_LC_MESSAGES+:} false; then :
  9124. $as_echo_n "(cached) " >&6
  9125. else
  9126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9127. /* end confdefs.h. */
  9128. #include <locale.h>
  9129. int
  9130. main ()
  9131. {
  9132. return LC_MESSAGES
  9133. ;
  9134. return 0;
  9135. }
  9136. _ACEOF
  9137. if ac_fn_c_try_link "$LINENO"; then :
  9138. am_cv_val_LC_MESSAGES=yes
  9139. else
  9140. am_cv_val_LC_MESSAGES=no
  9141. fi
  9142. rm -f core conftest.err conftest.$ac_objext \
  9143. conftest$ac_exeext conftest.$ac_ext
  9144. fi
  9145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  9146. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  9147. if test $am_cv_val_LC_MESSAGES = yes; then
  9148. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  9149. fi
  9150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9151. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9152. # Check whether --enable-maintainer-mode was given.
  9153. if test "${enable_maintainer_mode+set}" = set; then :
  9154. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9155. else
  9156. USE_MAINTAINER_MODE=no
  9157. fi
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9159. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9160. if test $USE_MAINTAINER_MODE = yes; then
  9161. MAINTAINER_MODE_TRUE=
  9162. MAINTAINER_MODE_FALSE='#'
  9163. else
  9164. MAINTAINER_MODE_TRUE='#'
  9165. MAINTAINER_MODE_FALSE=
  9166. fi
  9167. MAINT=$MAINTAINER_MODE_TRUE
  9168. ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
  9169. cat >confcache <<\_ACEOF
  9170. # This file is a shell script that caches the results of configure
  9171. # tests run on this system so they can be shared between configure
  9172. # scripts and configure runs, see configure's option --config-cache.
  9173. # It is not useful on other systems. If it contains results you don't
  9174. # want to keep, you may remove or edit it.
  9175. #
  9176. # config.status only pays attention to the cache file if you give it
  9177. # the --recheck option to rerun configure.
  9178. #
  9179. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9180. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9181. # following values.
  9182. _ACEOF
  9183. # The following way of writing the cache mishandles newlines in values,
  9184. # but we know of no workaround that is simple, portable, and efficient.
  9185. # So, we kill variables containing newlines.
  9186. # Ultrix sh set writes to stderr and can't be redirected directly,
  9187. # and sets the high bit in the cache file unless we assign to the vars.
  9188. (
  9189. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9190. eval ac_val=\$$ac_var
  9191. case $ac_val in #(
  9192. *${as_nl}*)
  9193. case $ac_var in #(
  9194. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9195. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9196. esac
  9197. case $ac_var in #(
  9198. _ | IFS | as_nl) ;; #(
  9199. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9200. *) { eval $ac_var=; unset $ac_var;} ;;
  9201. esac ;;
  9202. esac
  9203. done
  9204. (set) 2>&1 |
  9205. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9206. *${as_nl}ac_space=\ *)
  9207. # `set' does not quote correctly, so add quotes: double-quote
  9208. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9209. sed -n \
  9210. "s/'/'\\\\''/g;
  9211. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9212. ;; #(
  9213. *)
  9214. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9215. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9216. ;;
  9217. esac |
  9218. sort
  9219. ) |
  9220. sed '
  9221. /^ac_cv_env_/b end
  9222. t clear
  9223. :clear
  9224. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9225. t end
  9226. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9227. :end' >>confcache
  9228. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9229. if test -w "$cache_file"; then
  9230. if test "x$cache_file" != "x/dev/null"; then
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9232. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9233. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9234. cat confcache >"$cache_file"
  9235. else
  9236. case $cache_file in #(
  9237. */* | ?:*)
  9238. mv -f confcache "$cache_file"$$ &&
  9239. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9240. *)
  9241. mv -f confcache "$cache_file" ;;
  9242. esac
  9243. fi
  9244. fi
  9245. else
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9247. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9248. fi
  9249. fi
  9250. rm -f confcache
  9251. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9252. # Let make expand exec_prefix.
  9253. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9254. DEFS=-DHAVE_CONFIG_H
  9255. ac_libobjs=
  9256. ac_ltlibobjs=
  9257. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9258. # 1. Remove the extension, and $U if already installed.
  9259. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9260. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9261. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9262. # will be set to the directory where LIBOBJS objects are built.
  9263. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9264. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9265. done
  9266. LIBOBJS=$ac_libobjs
  9267. LTLIBOBJS=$ac_ltlibobjs
  9268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9269. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9270. if test -n "$am_sleep_pid"; then
  9271. # Hide warnings about reused PIDs.
  9272. wait $am_sleep_pid 2>/dev/null
  9273. fi
  9274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9275. $as_echo "done" >&6; }
  9276. if test -n "$EXEEXT"; then
  9277. am__EXEEXT_TRUE=
  9278. am__EXEEXT_FALSE='#'
  9279. else
  9280. am__EXEEXT_TRUE='#'
  9281. am__EXEEXT_FALSE=
  9282. fi
  9283. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9284. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9286. fi
  9287. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9288. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9290. fi
  9291. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  9292. as_fn_error $? "conditional \"PLUGINS\" was never defined.
  9293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9294. fi
  9295. if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
  9296. as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
  9297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9298. fi
  9299. if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
  9300. as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined.
  9301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9302. fi
  9303. if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
  9304. as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined.
  9305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9306. fi
  9307. if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
  9308. as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
  9309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9310. fi
  9311. if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
  9312. as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
  9313. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9314. fi
  9315. if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
  9316. as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined.
  9317. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9318. fi
  9319. if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
  9320. as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
  9321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9322. fi
  9323. if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
  9324. as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined.
  9325. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9326. fi
  9327. if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
  9328. as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
  9329. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9330. fi
  9331. if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
  9332. as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
  9333. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9334. fi
  9335. if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
  9336. as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
  9337. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9338. fi
  9339. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9340. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9341. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9342. fi
  9343. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  9344. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  9345. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9346. fi
  9347. if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
  9348. as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined.
  9349. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9350. fi
  9351. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  9352. as_fn_error $? "conditional \"GCC\" was never defined.
  9353. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9354. fi
  9355. if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
  9356. as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
  9357. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9358. fi
  9359. if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
  9360. as_fn_error $? "conditional \"HAVE_STATIC\" was never defined.
  9361. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9362. fi
  9363. if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
  9364. as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
  9365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9366. fi
  9367. if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
  9368. as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined.
  9369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9370. fi
  9371. if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
  9372. as_fn_error $? "conditional \"GCC9\" was never defined.
  9373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9374. fi
  9375. if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
  9376. as_fn_error $? "conditional \"CFLAGS_CF_PROTECTION\" was never defined.
  9377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9378. fi
  9379. if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
  9380. as_fn_error $? "conditional \"TLS\" was never defined.
  9381. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9382. fi
  9383. if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
  9384. as_fn_error $? "conditional \"STATIC_TLS\" was never defined.
  9385. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9386. fi
  9387. if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
  9388. as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined.
  9389. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9390. fi
  9391. if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
  9392. as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined.
  9393. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9394. fi
  9395. if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
  9396. as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined.
  9397. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9398. fi
  9399. if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
  9400. as_fn_error $? "conditional \"IFUNC\" was never defined.
  9401. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9402. fi
  9403. if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
  9404. as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined.
  9405. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9406. fi
  9407. if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
  9408. as_fn_error $? "conditional \"THREADS\" was never defined.
  9409. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9410. fi
  9411. if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
  9412. as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined.
  9413. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9414. fi
  9415. if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
  9416. as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
  9417. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9418. fi
  9419. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9420. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9421. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9422. fi
  9423. : "${CONFIG_STATUS=./config.status}"
  9424. ac_write_fail=0
  9425. ac_clean_files_save=$ac_clean_files
  9426. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9428. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9429. as_write_fail=0
  9430. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9431. #! $SHELL
  9432. # Generated by $as_me.
  9433. # Run this file to recreate the current configuration.
  9434. # Compiler output produced by configure, useful for debugging
  9435. # configure, is in config.log if it exists.
  9436. debug=false
  9437. ac_cs_recheck=false
  9438. ac_cs_silent=false
  9439. SHELL=\${CONFIG_SHELL-$SHELL}
  9440. export SHELL
  9441. _ASEOF
  9442. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9443. ## -------------------- ##
  9444. ## M4sh Initialization. ##
  9445. ## -------------------- ##
  9446. # Be more Bourne compatible
  9447. DUALCASE=1; export DUALCASE # for MKS sh
  9448. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9449. emulate sh
  9450. NULLCMD=:
  9451. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9452. # is contrary to our usage. Disable this feature.
  9453. alias -g '${1+"$@"}'='"$@"'
  9454. setopt NO_GLOB_SUBST
  9455. else
  9456. case `(set -o) 2>/dev/null` in #(
  9457. *posix*) :
  9458. set -o posix ;; #(
  9459. *) :
  9460. ;;
  9461. esac
  9462. fi
  9463. as_nl='
  9464. '
  9465. export as_nl
  9466. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9467. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9468. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9469. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9470. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9471. # but without wasting forks for bash or zsh.
  9472. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9473. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9474. as_echo='print -r --'
  9475. as_echo_n='print -rn --'
  9476. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9477. as_echo='printf %s\n'
  9478. as_echo_n='printf %s'
  9479. else
  9480. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9481. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9482. as_echo_n='/usr/ucb/echo -n'
  9483. else
  9484. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9485. as_echo_n_body='eval
  9486. arg=$1;
  9487. case $arg in #(
  9488. *"$as_nl"*)
  9489. expr "X$arg" : "X\\(.*\\)$as_nl";
  9490. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9491. esac;
  9492. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9493. '
  9494. export as_echo_n_body
  9495. as_echo_n='sh -c $as_echo_n_body as_echo'
  9496. fi
  9497. export as_echo_body
  9498. as_echo='sh -c $as_echo_body as_echo'
  9499. fi
  9500. # The user is always right.
  9501. if test "${PATH_SEPARATOR+set}" != set; then
  9502. PATH_SEPARATOR=:
  9503. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9504. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9505. PATH_SEPARATOR=';'
  9506. }
  9507. fi
  9508. # IFS
  9509. # We need space, tab and new line, in precisely that order. Quoting is
  9510. # there to prevent editors from complaining about space-tab.
  9511. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9512. # splitting by setting IFS to empty value.)
  9513. IFS=" "" $as_nl"
  9514. # Find who we are. Look in the path if we contain no directory separator.
  9515. as_myself=
  9516. case $0 in #((
  9517. *[\\/]* ) as_myself=$0 ;;
  9518. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9519. for as_dir in $PATH
  9520. do
  9521. IFS=$as_save_IFS
  9522. test -z "$as_dir" && as_dir=.
  9523. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9524. done
  9525. IFS=$as_save_IFS
  9526. ;;
  9527. esac
  9528. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9529. # in which case we are not to be found in the path.
  9530. if test "x$as_myself" = x; then
  9531. as_myself=$0
  9532. fi
  9533. if test ! -f "$as_myself"; then
  9534. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9535. exit 1
  9536. fi
  9537. # Unset variables that we do not need and which cause bugs (e.g. in
  9538. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9539. # suppresses any "Segmentation fault" message there. '((' could
  9540. # trigger a bug in pdksh 5.2.14.
  9541. for as_var in BASH_ENV ENV MAIL MAILPATH
  9542. do eval test x\${$as_var+set} = xset \
  9543. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9544. done
  9545. PS1='$ '
  9546. PS2='> '
  9547. PS4='+ '
  9548. # NLS nuisances.
  9549. LC_ALL=C
  9550. export LC_ALL
  9551. LANGUAGE=C
  9552. export LANGUAGE
  9553. # CDPATH.
  9554. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9555. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9556. # ----------------------------------------
  9557. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9558. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9559. # script with STATUS, using 1 if that was 0.
  9560. as_fn_error ()
  9561. {
  9562. as_status=$1; test $as_status -eq 0 && as_status=1
  9563. if test "$4"; then
  9564. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9565. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9566. fi
  9567. $as_echo "$as_me: error: $2" >&2
  9568. as_fn_exit $as_status
  9569. } # as_fn_error
  9570. # as_fn_set_status STATUS
  9571. # -----------------------
  9572. # Set $? to STATUS, without forking.
  9573. as_fn_set_status ()
  9574. {
  9575. return $1
  9576. } # as_fn_set_status
  9577. # as_fn_exit STATUS
  9578. # -----------------
  9579. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9580. as_fn_exit ()
  9581. {
  9582. set +e
  9583. as_fn_set_status $1
  9584. exit $1
  9585. } # as_fn_exit
  9586. # as_fn_unset VAR
  9587. # ---------------
  9588. # Portably unset VAR.
  9589. as_fn_unset ()
  9590. {
  9591. { eval $1=; unset $1;}
  9592. }
  9593. as_unset=as_fn_unset
  9594. # as_fn_append VAR VALUE
  9595. # ----------------------
  9596. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9597. # advantage of any shell optimizations that allow amortized linear growth over
  9598. # repeated appends, instead of the typical quadratic growth present in naive
  9599. # implementations.
  9600. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9601. eval 'as_fn_append ()
  9602. {
  9603. eval $1+=\$2
  9604. }'
  9605. else
  9606. as_fn_append ()
  9607. {
  9608. eval $1=\$$1\$2
  9609. }
  9610. fi # as_fn_append
  9611. # as_fn_arith ARG...
  9612. # ------------------
  9613. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9614. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9615. # must be portable across $(()) and expr.
  9616. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9617. eval 'as_fn_arith ()
  9618. {
  9619. as_val=$(( $* ))
  9620. }'
  9621. else
  9622. as_fn_arith ()
  9623. {
  9624. as_val=`expr "$@" || test $? -eq 1`
  9625. }
  9626. fi # as_fn_arith
  9627. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9628. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9629. as_expr=expr
  9630. else
  9631. as_expr=false
  9632. fi
  9633. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9634. as_basename=basename
  9635. else
  9636. as_basename=false
  9637. fi
  9638. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9639. as_dirname=dirname
  9640. else
  9641. as_dirname=false
  9642. fi
  9643. as_me=`$as_basename -- "$0" ||
  9644. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9645. X"$0" : 'X\(//\)$' \| \
  9646. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9647. $as_echo X/"$0" |
  9648. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9649. s//\1/
  9650. q
  9651. }
  9652. /^X\/\(\/\/\)$/{
  9653. s//\1/
  9654. q
  9655. }
  9656. /^X\/\(\/\).*/{
  9657. s//\1/
  9658. q
  9659. }
  9660. s/.*/./; q'`
  9661. # Avoid depending upon Character Ranges.
  9662. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9663. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9664. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9665. as_cr_digits='0123456789'
  9666. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9667. ECHO_C= ECHO_N= ECHO_T=
  9668. case `echo -n x` in #(((((
  9669. -n*)
  9670. case `echo 'xy\c'` in
  9671. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9672. xy) ECHO_C='\c';;
  9673. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9674. ECHO_T=' ';;
  9675. esac;;
  9676. *)
  9677. ECHO_N='-n';;
  9678. esac
  9679. rm -f conf$$ conf$$.exe conf$$.file
  9680. if test -d conf$$.dir; then
  9681. rm -f conf$$.dir/conf$$.file
  9682. else
  9683. rm -f conf$$.dir
  9684. mkdir conf$$.dir 2>/dev/null
  9685. fi
  9686. if (echo >conf$$.file) 2>/dev/null; then
  9687. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9688. as_ln_s='ln -s'
  9689. # ... but there are two gotchas:
  9690. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9691. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9692. # In both cases, we have to default to `cp -pR'.
  9693. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9694. as_ln_s='cp -pR'
  9695. elif ln conf$$.file conf$$ 2>/dev/null; then
  9696. as_ln_s=ln
  9697. else
  9698. as_ln_s='cp -pR'
  9699. fi
  9700. else
  9701. as_ln_s='cp -pR'
  9702. fi
  9703. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9704. rmdir conf$$.dir 2>/dev/null
  9705. # as_fn_mkdir_p
  9706. # -------------
  9707. # Create "$as_dir" as a directory, including parents if necessary.
  9708. as_fn_mkdir_p ()
  9709. {
  9710. case $as_dir in #(
  9711. -*) as_dir=./$as_dir;;
  9712. esac
  9713. test -d "$as_dir" || eval $as_mkdir_p || {
  9714. as_dirs=
  9715. while :; do
  9716. case $as_dir in #(
  9717. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9718. *) as_qdir=$as_dir;;
  9719. esac
  9720. as_dirs="'$as_qdir' $as_dirs"
  9721. as_dir=`$as_dirname -- "$as_dir" ||
  9722. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9723. X"$as_dir" : 'X\(//\)[^/]' \| \
  9724. X"$as_dir" : 'X\(//\)$' \| \
  9725. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9726. $as_echo X"$as_dir" |
  9727. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9728. s//\1/
  9729. q
  9730. }
  9731. /^X\(\/\/\)[^/].*/{
  9732. s//\1/
  9733. q
  9734. }
  9735. /^X\(\/\/\)$/{
  9736. s//\1/
  9737. q
  9738. }
  9739. /^X\(\/\).*/{
  9740. s//\1/
  9741. q
  9742. }
  9743. s/.*/./; q'`
  9744. test -d "$as_dir" && break
  9745. done
  9746. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9747. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9748. } # as_fn_mkdir_p
  9749. if mkdir -p . 2>/dev/null; then
  9750. as_mkdir_p='mkdir -p "$as_dir"'
  9751. else
  9752. test -d ./-p && rmdir ./-p
  9753. as_mkdir_p=false
  9754. fi
  9755. # as_fn_executable_p FILE
  9756. # -----------------------
  9757. # Test if FILE is an executable regular file.
  9758. as_fn_executable_p ()
  9759. {
  9760. test -f "$1" && test -x "$1"
  9761. } # as_fn_executable_p
  9762. as_test_x='test -x'
  9763. as_executable_p=as_fn_executable_p
  9764. # Sed expression to map a string onto a valid CPP name.
  9765. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9766. # Sed expression to map a string onto a valid variable name.
  9767. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9768. exec 6>&1
  9769. ## ----------------------------------- ##
  9770. ## Main body of $CONFIG_STATUS script. ##
  9771. ## ----------------------------------- ##
  9772. _ASEOF
  9773. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9774. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9775. # Save the log message, to keep $0 and so on meaningful, and to
  9776. # report actual input values of CONFIG_FILES etc. instead of their
  9777. # values after options handling.
  9778. ac_log="
  9779. This file was extended by gold $as_me 0.1, which was
  9780. generated by GNU Autoconf 2.69. Invocation command line was
  9781. CONFIG_FILES = $CONFIG_FILES
  9782. CONFIG_HEADERS = $CONFIG_HEADERS
  9783. CONFIG_LINKS = $CONFIG_LINKS
  9784. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9785. $ $0 $@
  9786. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9787. "
  9788. _ACEOF
  9789. case $ac_config_files in *"
  9790. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9791. esac
  9792. case $ac_config_headers in *"
  9793. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9794. esac
  9795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9796. # Files that config.status was made for.
  9797. config_files="$ac_config_files"
  9798. config_headers="$ac_config_headers"
  9799. config_commands="$ac_config_commands"
  9800. _ACEOF
  9801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9802. ac_cs_usage="\
  9803. \`$as_me' instantiates files and other configuration actions
  9804. from templates according to the current configuration. Unless the files
  9805. and actions are specified as TAGs, all are instantiated by default.
  9806. Usage: $0 [OPTION]... [TAG]...
  9807. -h, --help print this help, then exit
  9808. -V, --version print version number and configuration settings, then exit
  9809. --config print configuration, then exit
  9810. -q, --quiet, --silent
  9811. do not print progress messages
  9812. -d, --debug don't remove temporary files
  9813. --recheck update $as_me by reconfiguring in the same conditions
  9814. --file=FILE[:TEMPLATE]
  9815. instantiate the configuration file FILE
  9816. --header=FILE[:TEMPLATE]
  9817. instantiate the configuration header FILE
  9818. Configuration files:
  9819. $config_files
  9820. Configuration headers:
  9821. $config_headers
  9822. Configuration commands:
  9823. $config_commands
  9824. Report bugs to the package provider."
  9825. _ACEOF
  9826. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9827. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9828. ac_cs_version="\\
  9829. gold config.status 0.1
  9830. configured by $0, generated by GNU Autoconf 2.69,
  9831. with options \\"\$ac_cs_config\\"
  9832. Copyright (C) 2012 Free Software Foundation, Inc.
  9833. This config.status script is free software; the Free Software Foundation
  9834. gives unlimited permission to copy, distribute and modify it."
  9835. ac_pwd='$ac_pwd'
  9836. srcdir='$srcdir'
  9837. INSTALL='$INSTALL'
  9838. MKDIR_P='$MKDIR_P'
  9839. AWK='$AWK'
  9840. test -n "\$AWK" || AWK=awk
  9841. _ACEOF
  9842. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9843. # The default lists apply if the user does not specify any file.
  9844. ac_need_defaults=:
  9845. while test $# != 0
  9846. do
  9847. case $1 in
  9848. --*=?*)
  9849. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9850. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9851. ac_shift=:
  9852. ;;
  9853. --*=)
  9854. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9855. ac_optarg=
  9856. ac_shift=:
  9857. ;;
  9858. *)
  9859. ac_option=$1
  9860. ac_optarg=$2
  9861. ac_shift=shift
  9862. ;;
  9863. esac
  9864. case $ac_option in
  9865. # Handling of the options.
  9866. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9867. ac_cs_recheck=: ;;
  9868. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9869. $as_echo "$ac_cs_version"; exit ;;
  9870. --config | --confi | --conf | --con | --co | --c )
  9871. $as_echo "$ac_cs_config"; exit ;;
  9872. --debug | --debu | --deb | --de | --d | -d )
  9873. debug=: ;;
  9874. --file | --fil | --fi | --f )
  9875. $ac_shift
  9876. case $ac_optarg in
  9877. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9878. '') as_fn_error $? "missing file argument" ;;
  9879. esac
  9880. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9881. ac_need_defaults=false;;
  9882. --header | --heade | --head | --hea )
  9883. $ac_shift
  9884. case $ac_optarg in
  9885. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9886. esac
  9887. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9888. ac_need_defaults=false;;
  9889. --he | --h)
  9890. # Conflict between --help and --header
  9891. as_fn_error $? "ambiguous option: \`$1'
  9892. Try \`$0 --help' for more information.";;
  9893. --help | --hel | -h )
  9894. $as_echo "$ac_cs_usage"; exit ;;
  9895. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9896. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9897. ac_cs_silent=: ;;
  9898. # This is an error.
  9899. -*) as_fn_error $? "unrecognized option: \`$1'
  9900. Try \`$0 --help' for more information." ;;
  9901. *) as_fn_append ac_config_targets " $1"
  9902. ac_need_defaults=false ;;
  9903. esac
  9904. shift
  9905. done
  9906. ac_configure_extra_args=
  9907. if $ac_cs_silent; then
  9908. exec 6>/dev/null
  9909. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9910. fi
  9911. _ACEOF
  9912. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9913. if \$ac_cs_recheck; then
  9914. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9915. shift
  9916. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9917. CONFIG_SHELL='$SHELL'
  9918. export CONFIG_SHELL
  9919. exec "\$@"
  9920. fi
  9921. _ACEOF
  9922. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9923. exec 5>>config.log
  9924. {
  9925. echo
  9926. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9927. ## Running $as_me. ##
  9928. _ASBOX
  9929. $as_echo "$ac_log"
  9930. } >&5
  9931. _ACEOF
  9932. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9933. #
  9934. # INIT-COMMANDS
  9935. #
  9936. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9937. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  9938. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  9939. # from automake.
  9940. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  9941. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  9942. LINGUAS="${LINGUAS-%UNSET%}"
  9943. _ACEOF
  9944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9945. # Handling of arguments.
  9946. for ac_config_target in $ac_config_targets
  9947. do
  9948. case $ac_config_target in
  9949. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  9950. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9951. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  9952. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9953. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  9954. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  9955. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9956. esac
  9957. done
  9958. # If the user did not use the arguments to specify the items to instantiate,
  9959. # then the envvar interface is used. Set only those that are not.
  9960. # We use the long form for the default assignment because of an extremely
  9961. # bizarre bug on SunOS 4.1.3.
  9962. if $ac_need_defaults; then
  9963. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9964. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9965. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9966. fi
  9967. # Have a temporary directory for convenience. Make it in the build tree
  9968. # simply because there is no reason against having it here, and in addition,
  9969. # creating and moving files from /tmp can sometimes cause problems.
  9970. # Hook for its removal unless debugging.
  9971. # Note that there is a small window in which the directory will not be cleaned:
  9972. # after its creation but before its name has been assigned to `$tmp'.
  9973. $debug ||
  9974. {
  9975. tmp= ac_tmp=
  9976. trap 'exit_status=$?
  9977. : "${ac_tmp:=$tmp}"
  9978. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9979. ' 0
  9980. trap 'as_fn_exit 1' 1 2 13 15
  9981. }
  9982. # Create a (secure) tmp directory for tmp files.
  9983. {
  9984. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9985. test -d "$tmp"
  9986. } ||
  9987. {
  9988. tmp=./conf$$-$RANDOM
  9989. (umask 077 && mkdir "$tmp")
  9990. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9991. ac_tmp=$tmp
  9992. # Set up the scripts for CONFIG_FILES section.
  9993. # No need to generate them if there are no CONFIG_FILES.
  9994. # This happens for instance with `./config.status config.h'.
  9995. if test -n "$CONFIG_FILES"; then
  9996. ac_cr=`echo X | tr X '\015'`
  9997. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9998. # But we know of no other shell where ac_cr would be empty at this
  9999. # point, so we can use a bashism as a fallback.
  10000. if test "x$ac_cr" = x; then
  10001. eval ac_cr=\$\'\\r\'
  10002. fi
  10003. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10004. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10005. ac_cs_awk_cr='\\r'
  10006. else
  10007. ac_cs_awk_cr=$ac_cr
  10008. fi
  10009. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10010. _ACEOF
  10011. {
  10012. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10013. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10014. echo "_ACEOF"
  10015. } >conf$$subs.sh ||
  10016. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10017. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10018. ac_delim='%!_!# '
  10019. for ac_last_try in false false false false false :; do
  10020. . ./conf$$subs.sh ||
  10021. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10022. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10023. if test $ac_delim_n = $ac_delim_num; then
  10024. break
  10025. elif $ac_last_try; then
  10026. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10027. else
  10028. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10029. fi
  10030. done
  10031. rm -f conf$$subs.sh
  10032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10033. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10034. _ACEOF
  10035. sed -n '
  10036. h
  10037. s/^/S["/; s/!.*/"]=/
  10038. p
  10039. g
  10040. s/^[^!]*!//
  10041. :repl
  10042. t repl
  10043. s/'"$ac_delim"'$//
  10044. t delim
  10045. :nl
  10046. h
  10047. s/\(.\{148\}\)..*/\1/
  10048. t more1
  10049. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10050. p
  10051. n
  10052. b repl
  10053. :more1
  10054. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10055. p
  10056. g
  10057. s/.\{148\}//
  10058. t nl
  10059. :delim
  10060. h
  10061. s/\(.\{148\}\)..*/\1/
  10062. t more2
  10063. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10064. p
  10065. b
  10066. :more2
  10067. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10068. p
  10069. g
  10070. s/.\{148\}//
  10071. t delim
  10072. ' <conf$$subs.awk | sed '
  10073. /^[^""]/{
  10074. N
  10075. s/\n//
  10076. }
  10077. ' >>$CONFIG_STATUS || ac_write_fail=1
  10078. rm -f conf$$subs.awk
  10079. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10080. _ACAWK
  10081. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10082. for (key in S) S_is_set[key] = 1
  10083. FS = ""
  10084. }
  10085. {
  10086. line = $ 0
  10087. nfields = split(line, field, "@")
  10088. substed = 0
  10089. len = length(field[1])
  10090. for (i = 2; i < nfields; i++) {
  10091. key = field[i]
  10092. keylen = length(key)
  10093. if (S_is_set[key]) {
  10094. value = S[key]
  10095. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10096. len += length(value) + length(field[++i])
  10097. substed = 1
  10098. } else
  10099. len += 1 + keylen
  10100. }
  10101. print line
  10102. }
  10103. _ACAWK
  10104. _ACEOF
  10105. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10106. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10107. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10108. else
  10109. cat
  10110. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10111. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10112. _ACEOF
  10113. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10114. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10115. # trailing colons and then remove the whole line if VPATH becomes empty
  10116. # (actually we leave an empty line to preserve line numbers).
  10117. if test "x$srcdir" = x.; then
  10118. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10119. h
  10120. s///
  10121. s/^/:/
  10122. s/[ ]*$/:/
  10123. s/:\$(srcdir):/:/g
  10124. s/:\${srcdir}:/:/g
  10125. s/:@srcdir@:/:/g
  10126. s/^:*//
  10127. s/:*$//
  10128. x
  10129. s/\(=[ ]*\).*/\1/
  10130. G
  10131. s/\n//
  10132. s/^[^=]*=[ ]*$//
  10133. }'
  10134. fi
  10135. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10136. fi # test -n "$CONFIG_FILES"
  10137. # Set up the scripts for CONFIG_HEADERS section.
  10138. # No need to generate them if there are no CONFIG_HEADERS.
  10139. # This happens for instance with `./config.status Makefile'.
  10140. if test -n "$CONFIG_HEADERS"; then
  10141. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10142. BEGIN {
  10143. _ACEOF
  10144. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10145. # here-document in config.status, that substitutes the proper values into
  10146. # config.h.in to produce config.h.
  10147. # Create a delimiter string that does not exist in confdefs.h, to ease
  10148. # handling of long lines.
  10149. ac_delim='%!_!# '
  10150. for ac_last_try in false false :; do
  10151. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10152. if test -z "$ac_tt"; then
  10153. break
  10154. elif $ac_last_try; then
  10155. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10156. else
  10157. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10158. fi
  10159. done
  10160. # For the awk script, D is an array of macro values keyed by name,
  10161. # likewise P contains macro parameters if any. Preserve backslash
  10162. # newline sequences.
  10163. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10164. sed -n '
  10165. s/.\{148\}/&'"$ac_delim"'/g
  10166. t rset
  10167. :rset
  10168. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10169. t def
  10170. d
  10171. :def
  10172. s/\\$//
  10173. t bsnl
  10174. s/["\\]/\\&/g
  10175. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10176. D["\1"]=" \3"/p
  10177. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10178. d
  10179. :bsnl
  10180. s/["\\]/\\&/g
  10181. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10182. D["\1"]=" \3\\\\\\n"\\/p
  10183. t cont
  10184. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10185. t cont
  10186. d
  10187. :cont
  10188. n
  10189. s/.\{148\}/&'"$ac_delim"'/g
  10190. t clear
  10191. :clear
  10192. s/\\$//
  10193. t bsnlc
  10194. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10195. d
  10196. :bsnlc
  10197. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10198. b cont
  10199. ' <confdefs.h | sed '
  10200. s/'"$ac_delim"'/"\\\
  10201. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10202. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10203. for (key in D) D_is_set[key] = 1
  10204. FS = ""
  10205. }
  10206. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10207. line = \$ 0
  10208. split(line, arg, " ")
  10209. if (arg[1] == "#") {
  10210. defundef = arg[2]
  10211. mac1 = arg[3]
  10212. } else {
  10213. defundef = substr(arg[1], 2)
  10214. mac1 = arg[2]
  10215. }
  10216. split(mac1, mac2, "(") #)
  10217. macro = mac2[1]
  10218. prefix = substr(line, 1, index(line, defundef) - 1)
  10219. if (D_is_set[macro]) {
  10220. # Preserve the white space surrounding the "#".
  10221. print prefix "define", macro P[macro] D[macro]
  10222. next
  10223. } else {
  10224. # Replace #undef with comments. This is necessary, for example,
  10225. # in the case of _POSIX_SOURCE, which is predefined and required
  10226. # on some systems where configure will not decide to define it.
  10227. if (defundef == "undef") {
  10228. print "/*", prefix defundef, macro, "*/"
  10229. next
  10230. }
  10231. }
  10232. }
  10233. { print }
  10234. _ACAWK
  10235. _ACEOF
  10236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10237. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10238. fi # test -n "$CONFIG_HEADERS"
  10239. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10240. shift
  10241. for ac_tag
  10242. do
  10243. case $ac_tag in
  10244. :[FHLC]) ac_mode=$ac_tag; continue;;
  10245. esac
  10246. case $ac_mode$ac_tag in
  10247. :[FHL]*:*);;
  10248. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10249. :[FH]-) ac_tag=-:-;;
  10250. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10251. esac
  10252. ac_save_IFS=$IFS
  10253. IFS=:
  10254. set x $ac_tag
  10255. IFS=$ac_save_IFS
  10256. shift
  10257. ac_file=$1
  10258. shift
  10259. case $ac_mode in
  10260. :L) ac_source=$1;;
  10261. :[FH])
  10262. ac_file_inputs=
  10263. for ac_f
  10264. do
  10265. case $ac_f in
  10266. -) ac_f="$ac_tmp/stdin";;
  10267. *) # Look for the file first in the build tree, then in the source tree
  10268. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10269. # because $ac_f cannot contain `:'.
  10270. test -f "$ac_f" ||
  10271. case $ac_f in
  10272. [\\/$]*) false;;
  10273. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10274. esac ||
  10275. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10276. esac
  10277. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10278. as_fn_append ac_file_inputs " '$ac_f'"
  10279. done
  10280. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10281. # use $as_me), people would be surprised to read:
  10282. # /* config.h. Generated by config.status. */
  10283. configure_input='Generated from '`
  10284. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10285. `' by configure.'
  10286. if test x"$ac_file" != x-; then
  10287. configure_input="$ac_file. $configure_input"
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10289. $as_echo "$as_me: creating $ac_file" >&6;}
  10290. fi
  10291. # Neutralize special characters interpreted by sed in replacement strings.
  10292. case $configure_input in #(
  10293. *\&* | *\|* | *\\* )
  10294. ac_sed_conf_input=`$as_echo "$configure_input" |
  10295. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10296. *) ac_sed_conf_input=$configure_input;;
  10297. esac
  10298. case $ac_tag in
  10299. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10300. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10301. esac
  10302. ;;
  10303. esac
  10304. ac_dir=`$as_dirname -- "$ac_file" ||
  10305. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10306. X"$ac_file" : 'X\(//\)[^/]' \| \
  10307. X"$ac_file" : 'X\(//\)$' \| \
  10308. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10309. $as_echo X"$ac_file" |
  10310. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10311. s//\1/
  10312. q
  10313. }
  10314. /^X\(\/\/\)[^/].*/{
  10315. s//\1/
  10316. q
  10317. }
  10318. /^X\(\/\/\)$/{
  10319. s//\1/
  10320. q
  10321. }
  10322. /^X\(\/\).*/{
  10323. s//\1/
  10324. q
  10325. }
  10326. s/.*/./; q'`
  10327. as_dir="$ac_dir"; as_fn_mkdir_p
  10328. ac_builddir=.
  10329. case "$ac_dir" in
  10330. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10331. *)
  10332. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10333. # A ".." for each directory in $ac_dir_suffix.
  10334. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10335. case $ac_top_builddir_sub in
  10336. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10337. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10338. esac ;;
  10339. esac
  10340. ac_abs_top_builddir=$ac_pwd
  10341. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10342. # for backward compatibility:
  10343. ac_top_builddir=$ac_top_build_prefix
  10344. case $srcdir in
  10345. .) # We are building in place.
  10346. ac_srcdir=.
  10347. ac_top_srcdir=$ac_top_builddir_sub
  10348. ac_abs_top_srcdir=$ac_pwd ;;
  10349. [\\/]* | ?:[\\/]* ) # Absolute name.
  10350. ac_srcdir=$srcdir$ac_dir_suffix;
  10351. ac_top_srcdir=$srcdir
  10352. ac_abs_top_srcdir=$srcdir ;;
  10353. *) # Relative name.
  10354. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10355. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10356. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10357. esac
  10358. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10359. case $ac_mode in
  10360. :F)
  10361. #
  10362. # CONFIG_FILE
  10363. #
  10364. case $INSTALL in
  10365. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10366. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10367. esac
  10368. ac_MKDIR_P=$MKDIR_P
  10369. case $MKDIR_P in
  10370. [\\/$]* | ?:[\\/]* ) ;;
  10371. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10372. esac
  10373. _ACEOF
  10374. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10375. # If the template does not know about datarootdir, expand it.
  10376. # FIXME: This hack should be removed a few years after 2.60.
  10377. ac_datarootdir_hack=; ac_datarootdir_seen=
  10378. ac_sed_dataroot='
  10379. /datarootdir/ {
  10380. p
  10381. q
  10382. }
  10383. /@datadir@/p
  10384. /@docdir@/p
  10385. /@infodir@/p
  10386. /@localedir@/p
  10387. /@mandir@/p'
  10388. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10389. *datarootdir*) ac_datarootdir_seen=yes;;
  10390. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10392. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10393. _ACEOF
  10394. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10395. ac_datarootdir_hack='
  10396. s&@datadir@&$datadir&g
  10397. s&@docdir@&$docdir&g
  10398. s&@infodir@&$infodir&g
  10399. s&@localedir@&$localedir&g
  10400. s&@mandir@&$mandir&g
  10401. s&\\\${datarootdir}&$datarootdir&g' ;;
  10402. esac
  10403. _ACEOF
  10404. # Neutralize VPATH when `$srcdir' = `.'.
  10405. # Shell code in configure.ac might set extrasub.
  10406. # FIXME: do we really want to maintain this feature?
  10407. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10408. ac_sed_extra="$ac_vpsub
  10409. $extrasub
  10410. _ACEOF
  10411. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10412. :t
  10413. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10414. s|@configure_input@|$ac_sed_conf_input|;t t
  10415. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10416. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10417. s&@srcdir@&$ac_srcdir&;t t
  10418. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10419. s&@top_srcdir@&$ac_top_srcdir&;t t
  10420. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10421. s&@builddir@&$ac_builddir&;t t
  10422. s&@abs_builddir@&$ac_abs_builddir&;t t
  10423. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10424. s&@INSTALL@&$ac_INSTALL&;t t
  10425. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10426. $ac_datarootdir_hack
  10427. "
  10428. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10429. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10430. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10431. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10432. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10433. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10435. which seems to be undefined. Please make sure it is defined" >&5
  10436. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10437. which seems to be undefined. Please make sure it is defined" >&2;}
  10438. rm -f "$ac_tmp/stdin"
  10439. case $ac_file in
  10440. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10441. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10442. esac \
  10443. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10444. ;;
  10445. :H)
  10446. #
  10447. # CONFIG_HEADER
  10448. #
  10449. if test x"$ac_file" != x-; then
  10450. {
  10451. $as_echo "/* $configure_input */" \
  10452. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10453. } >"$ac_tmp/config.h" \
  10454. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10455. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10457. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10458. else
  10459. rm -f "$ac_file"
  10460. mv "$ac_tmp/config.h" "$ac_file" \
  10461. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10462. fi
  10463. else
  10464. $as_echo "/* $configure_input */" \
  10465. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10466. || as_fn_error $? "could not create -" "$LINENO" 5
  10467. fi
  10468. # Compute "$ac_file"'s index in $config_headers.
  10469. _am_arg="$ac_file"
  10470. _am_stamp_count=1
  10471. for _am_header in $config_headers :; do
  10472. case $_am_header in
  10473. $_am_arg | $_am_arg:* )
  10474. break ;;
  10475. * )
  10476. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10477. esac
  10478. done
  10479. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10480. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10481. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10482. X"$_am_arg" : 'X\(//\)$' \| \
  10483. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10484. $as_echo X"$_am_arg" |
  10485. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10486. s//\1/
  10487. q
  10488. }
  10489. /^X\(\/\/\)[^/].*/{
  10490. s//\1/
  10491. q
  10492. }
  10493. /^X\(\/\/\)$/{
  10494. s//\1/
  10495. q
  10496. }
  10497. /^X\(\/\).*/{
  10498. s//\1/
  10499. q
  10500. }
  10501. s/.*/./; q'`/stamp-h$_am_stamp_count
  10502. ;;
  10503. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10504. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10505. ;;
  10506. esac
  10507. case $ac_file$ac_mode in
  10508. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10509. # Older Autoconf quotes --file arguments for eval, but not when files
  10510. # are listed without --file. Let's play safe and only enable the eval
  10511. # if we detect the quoting.
  10512. case $CONFIG_FILES in
  10513. *\'*) eval set x "$CONFIG_FILES" ;;
  10514. *) set x $CONFIG_FILES ;;
  10515. esac
  10516. shift
  10517. for mf
  10518. do
  10519. # Strip MF so we end up with the name of the file.
  10520. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10521. # Check whether this is an Automake generated Makefile or not.
  10522. # We used to match only the files named 'Makefile.in', but
  10523. # some people rename them; so instead we look at the file content.
  10524. # Grep'ing the first line is not enough: some people post-process
  10525. # each Makefile.in and add a new line on top of each file to say so.
  10526. # Grep'ing the whole file is not good either: AIX grep has a line
  10527. # limit of 2048, but all sed's we know have understand at least 4000.
  10528. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10529. dirpart=`$as_dirname -- "$mf" ||
  10530. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10531. X"$mf" : 'X\(//\)[^/]' \| \
  10532. X"$mf" : 'X\(//\)$' \| \
  10533. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10534. $as_echo X"$mf" |
  10535. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10536. s//\1/
  10537. q
  10538. }
  10539. /^X\(\/\/\)[^/].*/{
  10540. s//\1/
  10541. q
  10542. }
  10543. /^X\(\/\/\)$/{
  10544. s//\1/
  10545. q
  10546. }
  10547. /^X\(\/\).*/{
  10548. s//\1/
  10549. q
  10550. }
  10551. s/.*/./; q'`
  10552. else
  10553. continue
  10554. fi
  10555. # Extract the definition of DEPDIR, am__include, and am__quote
  10556. # from the Makefile without running 'make'.
  10557. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10558. test -z "$DEPDIR" && continue
  10559. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10560. test -z "$am__include" && continue
  10561. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10562. # Find all dependency output files, they are included files with
  10563. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10564. # simplest approach to changing $(DEPDIR) to its actual value in the
  10565. # expansion.
  10566. for file in `sed -n "
  10567. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10568. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10569. # Make sure the directory exists.
  10570. test -f "$dirpart/$file" && continue
  10571. fdir=`$as_dirname -- "$file" ||
  10572. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10573. X"$file" : 'X\(//\)[^/]' \| \
  10574. X"$file" : 'X\(//\)$' \| \
  10575. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10576. $as_echo X"$file" |
  10577. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10578. s//\1/
  10579. q
  10580. }
  10581. /^X\(\/\/\)[^/].*/{
  10582. s//\1/
  10583. q
  10584. }
  10585. /^X\(\/\/\)$/{
  10586. s//\1/
  10587. q
  10588. }
  10589. /^X\(\/\).*/{
  10590. s//\1/
  10591. q
  10592. }
  10593. s/.*/./; q'`
  10594. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10595. # echo "creating $dirpart/$file"
  10596. echo '# dummy' > "$dirpart/$file"
  10597. done
  10598. done
  10599. }
  10600. ;;
  10601. "default-1":C)
  10602. for ac_file in $CONFIG_FILES; do
  10603. # Support "outfile[:infile[:infile...]]"
  10604. case "$ac_file" in
  10605. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  10606. esac
  10607. # PO directories have a Makefile.in generated from Makefile.in.in.
  10608. case "$ac_file" in */Makefile.in)
  10609. # Adjust a relative srcdir.
  10610. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  10611. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  10612. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  10613. # In autoconf-2.13 it is called $ac_given_srcdir.
  10614. # In autoconf-2.50 it is called $srcdir.
  10615. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  10616. case "$ac_given_srcdir" in
  10617. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  10618. /*) top_srcdir="$ac_given_srcdir" ;;
  10619. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  10620. esac
  10621. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  10622. rm -f "$ac_dir/POTFILES"
  10623. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  10624. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  10625. POMAKEFILEDEPS="POTFILES.in"
  10626. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  10627. # on $ac_dir but don't depend on user-specified configuration
  10628. # parameters.
  10629. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  10630. # The LINGUAS file contains the set of available languages.
  10631. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  10632. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  10633. fi
  10634. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  10635. # Hide the ALL_LINGUAS assigment from automake.
  10636. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  10637. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  10638. else
  10639. # The set of available languages was given in configure.ac.
  10640. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  10641. fi
  10642. case "$ac_given_srcdir" in
  10643. .) srcdirpre= ;;
  10644. *) srcdirpre='$(srcdir)/' ;;
  10645. esac
  10646. POFILES=
  10647. GMOFILES=
  10648. UPDATEPOFILES=
  10649. DUMMYPOFILES=
  10650. for lang in $ALL_LINGUAS; do
  10651. POFILES="$POFILES $srcdirpre$lang.po"
  10652. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  10653. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  10654. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  10655. done
  10656. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  10657. # environment variable.
  10658. INST_LINGUAS=
  10659. if test -n "$ALL_LINGUAS"; then
  10660. for presentlang in $ALL_LINGUAS; do
  10661. useit=no
  10662. if test "%UNSET%" != "$LINGUAS"; then
  10663. desiredlanguages="$LINGUAS"
  10664. else
  10665. desiredlanguages="$ALL_LINGUAS"
  10666. fi
  10667. for desiredlang in $desiredlanguages; do
  10668. # Use the presentlang catalog if desiredlang is
  10669. # a. equal to presentlang, or
  10670. # b. a variant of presentlang (because in this case,
  10671. # presentlang can be used as a fallback for messages
  10672. # which are not translated in the desiredlang catalog).
  10673. case "$desiredlang" in
  10674. "$presentlang"*) useit=yes;;
  10675. esac
  10676. done
  10677. if test $useit = yes; then
  10678. INST_LINGUAS="$INST_LINGUAS $presentlang"
  10679. fi
  10680. done
  10681. fi
  10682. CATALOGS=
  10683. if test -n "$INST_LINGUAS"; then
  10684. for lang in $INST_LINGUAS; do
  10685. CATALOGS="$CATALOGS $lang.gmo"
  10686. done
  10687. fi
  10688. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  10689. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  10690. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  10691. if test -f "$f"; then
  10692. case "$f" in
  10693. *.orig | *.bak | *~) ;;
  10694. *) cat "$f" >> "$ac_dir/Makefile" ;;
  10695. esac
  10696. fi
  10697. done
  10698. fi
  10699. ;;
  10700. esac
  10701. done ;;
  10702. esac
  10703. done # for ac_tag
  10704. as_fn_exit 0
  10705. _ACEOF
  10706. ac_clean_files=$ac_clean_files_save
  10707. test $ac_write_fail = 0 ||
  10708. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10709. # configure is writing to config.log, and then calls config.status.
  10710. # config.status does its own redirection, appending to config.log.
  10711. # Unfortunately, on DOS this fails, as config.log is still kept open
  10712. # by configure, so config.status won't be able to write to it; its
  10713. # output is simply discarded. So we exec the FD to /dev/null,
  10714. # effectively closing config.log, so it can be properly (re)opened and
  10715. # appended to by config.status. When coming back to configure, we
  10716. # need to make the FD available again.
  10717. if test "$no_create" != yes; then
  10718. ac_cs_success=:
  10719. ac_config_status_args=
  10720. test "$silent" = yes &&
  10721. ac_config_status_args="$ac_config_status_args --quiet"
  10722. exec 5>/dev/null
  10723. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10724. exec 5>>config.log
  10725. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10726. # would make configure fail if this is the last instruction.
  10727. $ac_cs_success || as_fn_exit 1
  10728. fi
  10729. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10731. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10732. fi