configure 238 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for cpplib .
  4. #
  5. # Report bugs to <gcc-bugs@gcc.gnu.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: gcc-bugs@gcc.gnu.org about your system, including any
  215. $0: error possibly output before this message. Then install
  216. $0: a modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. exec 7<&0 </dev/null 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='cpplib'
  504. PACKAGE_TARNAME='cpplib'
  505. PACKAGE_VERSION=' '
  506. PACKAGE_STRING='cpplib '
  507. PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
  508. PACKAGE_URL=''
  509. ac_unique_file="ucnid.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. ac_subst_vars='LTLIBOBJS
  546. PICFLAG
  547. MAINT
  548. USED_CATALOGS
  549. PACKAGE
  550. LTLIBICONV
  551. LIBICONV
  552. CATOBJEXT
  553. GENCAT
  554. INSTOBJEXT
  555. DATADIRNAME
  556. CATALOGS
  557. POSUB
  558. GMSGFMT
  559. XGETTEXT
  560. INCINTL
  561. LIBINTL_DEP
  562. LIBINTL
  563. USE_NLS
  564. ALLOCA
  565. LIBOBJS
  566. CXXDEPMODE
  567. DEPDIR
  568. am__leading_dot
  569. WERROR
  570. noexception_flags
  571. WARN_PEDANTIC
  572. c_warn
  573. warn
  574. AUTOHEADER
  575. AUTOCONF
  576. ACLOCAL
  577. EGREP
  578. GREP
  579. CPP
  580. RANLIB
  581. ac_ct_CXX
  582. CXXFLAGS
  583. CXX
  584. OBJEXT
  585. EXEEXT
  586. ac_ct_CC
  587. CPPFLAGS
  588. LDFLAGS
  589. CFLAGS
  590. CC
  591. INSTALL_DATA
  592. INSTALL_SCRIPT
  593. INSTALL_PROGRAM
  594. SET_MAKE
  595. target_os
  596. target_vendor
  597. target_cpu
  598. target
  599. host_os
  600. host_vendor
  601. host_cpu
  602. host
  603. build_os
  604. build_vendor
  605. build_cpu
  606. build
  607. target_alias
  608. host_alias
  609. build_alias
  610. LIBS
  611. ECHO_T
  612. ECHO_N
  613. ECHO_C
  614. DEFS
  615. mandir
  616. localedir
  617. libdir
  618. psdir
  619. pdfdir
  620. dvidir
  621. htmldir
  622. infodir
  623. docdir
  624. oldincludedir
  625. includedir
  626. localstatedir
  627. sharedstatedir
  628. sysconfdir
  629. datadir
  630. datarootdir
  631. libexecdir
  632. sbindir
  633. bindir
  634. program_transform_name
  635. prefix
  636. exec_prefix
  637. PACKAGE_URL
  638. PACKAGE_BUGREPORT
  639. PACKAGE_STRING
  640. PACKAGE_VERSION
  641. PACKAGE_TARNAME
  642. PACKAGE_NAME
  643. PATH_SEPARATOR
  644. SHELL'
  645. ac_subst_files=''
  646. ac_user_opts='
  647. enable_option_checking
  648. enable_largefile
  649. enable_werror_always
  650. with_gnu_ld
  651. enable_rpath
  652. with_libiconv_prefix
  653. enable_maintainer_mode
  654. enable_checking
  655. enable_canonical_system_headers
  656. enable_host_shared
  657. '
  658. ac_precious_vars='build_alias
  659. host_alias
  660. target_alias
  661. CC
  662. CFLAGS
  663. LDFLAGS
  664. LIBS
  665. CPPFLAGS
  666. CXX
  667. CXXFLAGS
  668. CCC
  669. CPP'
  670. # Initialize some variables set by options.
  671. ac_init_help=
  672. ac_init_version=false
  673. ac_unrecognized_opts=
  674. ac_unrecognized_sep=
  675. # The variables have the same names as the options, with
  676. # dashes changed to underlines.
  677. cache_file=/dev/null
  678. exec_prefix=NONE
  679. no_create=
  680. no_recursion=
  681. prefix=NONE
  682. program_prefix=NONE
  683. program_suffix=NONE
  684. program_transform_name=s,x,x,
  685. silent=
  686. site=
  687. srcdir=
  688. verbose=
  689. x_includes=NONE
  690. x_libraries=NONE
  691. # Installation directory options.
  692. # These are left unexpanded so users can "make install exec_prefix=/foo"
  693. # and all the variables that are supposed to be based on exec_prefix
  694. # by default will actually change.
  695. # Use braces instead of parens because sh, perl, etc. also accept them.
  696. # (The list follows the same order as the GNU Coding Standards.)
  697. bindir='${exec_prefix}/bin'
  698. sbindir='${exec_prefix}/sbin'
  699. libexecdir='${exec_prefix}/libexec'
  700. datarootdir='${prefix}/share'
  701. datadir='${datarootdir}'
  702. sysconfdir='${prefix}/etc'
  703. sharedstatedir='${prefix}/com'
  704. localstatedir='${prefix}/var'
  705. includedir='${prefix}/include'
  706. oldincludedir='/usr/include'
  707. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  708. infodir='${datarootdir}/info'
  709. htmldir='${docdir}'
  710. dvidir='${docdir}'
  711. pdfdir='${docdir}'
  712. psdir='${docdir}'
  713. libdir='${exec_prefix}/lib'
  714. localedir='${datarootdir}/locale'
  715. mandir='${datarootdir}/man'
  716. ac_prev=
  717. ac_dashdash=
  718. for ac_option
  719. do
  720. # If the previous option needs an argument, assign it.
  721. if test -n "$ac_prev"; then
  722. eval $ac_prev=\$ac_option
  723. ac_prev=
  724. continue
  725. fi
  726. case $ac_option in
  727. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  728. *) ac_optarg=yes ;;
  729. esac
  730. # Accept the important Cygnus configure options, so we can diagnose typos.
  731. case $ac_dashdash$ac_option in
  732. --)
  733. ac_dashdash=yes ;;
  734. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  735. ac_prev=bindir ;;
  736. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  737. bindir=$ac_optarg ;;
  738. -build | --build | --buil | --bui | --bu)
  739. ac_prev=build_alias ;;
  740. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  741. build_alias=$ac_optarg ;;
  742. -cache-file | --cache-file | --cache-fil | --cache-fi \
  743. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  744. ac_prev=cache_file ;;
  745. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  746. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  747. cache_file=$ac_optarg ;;
  748. --config-cache | -C)
  749. cache_file=config.cache ;;
  750. -datadir | --datadir | --datadi | --datad)
  751. ac_prev=datadir ;;
  752. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  753. datadir=$ac_optarg ;;
  754. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  755. | --dataroo | --dataro | --datar)
  756. ac_prev=datarootdir ;;
  757. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  758. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  759. datarootdir=$ac_optarg ;;
  760. -disable-* | --disable-*)
  761. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  762. # Reject names that are not valid shell variable names.
  763. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  764. as_fn_error "invalid feature name: $ac_useropt"
  765. ac_useropt_orig=$ac_useropt
  766. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  767. case $ac_user_opts in
  768. *"
  769. "enable_$ac_useropt"
  770. "*) ;;
  771. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  772. ac_unrecognized_sep=', ';;
  773. esac
  774. eval enable_$ac_useropt=no ;;
  775. -docdir | --docdir | --docdi | --doc | --do)
  776. ac_prev=docdir ;;
  777. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  778. docdir=$ac_optarg ;;
  779. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  780. ac_prev=dvidir ;;
  781. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  782. dvidir=$ac_optarg ;;
  783. -enable-* | --enable-*)
  784. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  785. # Reject names that are not valid shell variable names.
  786. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  787. as_fn_error "invalid feature name: $ac_useropt"
  788. ac_useropt_orig=$ac_useropt
  789. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  790. case $ac_user_opts in
  791. *"
  792. "enable_$ac_useropt"
  793. "*) ;;
  794. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  795. ac_unrecognized_sep=', ';;
  796. esac
  797. eval enable_$ac_useropt=\$ac_optarg ;;
  798. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  799. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  800. | --exec | --exe | --ex)
  801. ac_prev=exec_prefix ;;
  802. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  803. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  804. | --exec=* | --exe=* | --ex=*)
  805. exec_prefix=$ac_optarg ;;
  806. -gas | --gas | --ga | --g)
  807. # Obsolete; use --with-gas.
  808. with_gas=yes ;;
  809. -help | --help | --hel | --he | -h)
  810. ac_init_help=long ;;
  811. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  812. ac_init_help=recursive ;;
  813. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  814. ac_init_help=short ;;
  815. -host | --host | --hos | --ho)
  816. ac_prev=host_alias ;;
  817. -host=* | --host=* | --hos=* | --ho=*)
  818. host_alias=$ac_optarg ;;
  819. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  820. ac_prev=htmldir ;;
  821. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  822. | --ht=*)
  823. htmldir=$ac_optarg ;;
  824. -includedir | --includedir | --includedi | --included | --include \
  825. | --includ | --inclu | --incl | --inc)
  826. ac_prev=includedir ;;
  827. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  828. | --includ=* | --inclu=* | --incl=* | --inc=*)
  829. includedir=$ac_optarg ;;
  830. -infodir | --infodir | --infodi | --infod | --info | --inf)
  831. ac_prev=infodir ;;
  832. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  833. infodir=$ac_optarg ;;
  834. -libdir | --libdir | --libdi | --libd)
  835. ac_prev=libdir ;;
  836. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  837. libdir=$ac_optarg ;;
  838. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  839. | --libexe | --libex | --libe)
  840. ac_prev=libexecdir ;;
  841. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  842. | --libexe=* | --libex=* | --libe=*)
  843. libexecdir=$ac_optarg ;;
  844. -localedir | --localedir | --localedi | --localed | --locale)
  845. ac_prev=localedir ;;
  846. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  847. localedir=$ac_optarg ;;
  848. -localstatedir | --localstatedir | --localstatedi | --localstated \
  849. | --localstate | --localstat | --localsta | --localst | --locals)
  850. ac_prev=localstatedir ;;
  851. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  852. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  853. localstatedir=$ac_optarg ;;
  854. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  855. ac_prev=mandir ;;
  856. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  857. mandir=$ac_optarg ;;
  858. -nfp | --nfp | --nf)
  859. # Obsolete; use --without-fp.
  860. with_fp=no ;;
  861. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  862. | --no-cr | --no-c | -n)
  863. no_create=yes ;;
  864. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  865. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  866. no_recursion=yes ;;
  867. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  868. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  869. | --oldin | --oldi | --old | --ol | --o)
  870. ac_prev=oldincludedir ;;
  871. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  872. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  873. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  874. oldincludedir=$ac_optarg ;;
  875. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  876. ac_prev=prefix ;;
  877. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  878. prefix=$ac_optarg ;;
  879. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  880. | --program-pre | --program-pr | --program-p)
  881. ac_prev=program_prefix ;;
  882. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  883. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  884. program_prefix=$ac_optarg ;;
  885. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  886. | --program-suf | --program-su | --program-s)
  887. ac_prev=program_suffix ;;
  888. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  889. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  890. program_suffix=$ac_optarg ;;
  891. -program-transform-name | --program-transform-name \
  892. | --program-transform-nam | --program-transform-na \
  893. | --program-transform-n | --program-transform- \
  894. | --program-transform | --program-transfor \
  895. | --program-transfo | --program-transf \
  896. | --program-trans | --program-tran \
  897. | --progr-tra | --program-tr | --program-t)
  898. ac_prev=program_transform_name ;;
  899. -program-transform-name=* | --program-transform-name=* \
  900. | --program-transform-nam=* | --program-transform-na=* \
  901. | --program-transform-n=* | --program-transform-=* \
  902. | --program-transform=* | --program-transfor=* \
  903. | --program-transfo=* | --program-transf=* \
  904. | --program-trans=* | --program-tran=* \
  905. | --progr-tra=* | --program-tr=* | --program-t=*)
  906. program_transform_name=$ac_optarg ;;
  907. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  908. ac_prev=pdfdir ;;
  909. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  910. pdfdir=$ac_optarg ;;
  911. -psdir | --psdir | --psdi | --psd | --ps)
  912. ac_prev=psdir ;;
  913. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  914. psdir=$ac_optarg ;;
  915. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  916. | -silent | --silent | --silen | --sile | --sil)
  917. silent=yes ;;
  918. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  919. ac_prev=sbindir ;;
  920. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  921. | --sbi=* | --sb=*)
  922. sbindir=$ac_optarg ;;
  923. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  924. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  925. | --sharedst | --shareds | --shared | --share | --shar \
  926. | --sha | --sh)
  927. ac_prev=sharedstatedir ;;
  928. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  929. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  930. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  931. | --sha=* | --sh=*)
  932. sharedstatedir=$ac_optarg ;;
  933. -site | --site | --sit)
  934. ac_prev=site ;;
  935. -site=* | --site=* | --sit=*)
  936. site=$ac_optarg ;;
  937. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  938. ac_prev=srcdir ;;
  939. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  940. srcdir=$ac_optarg ;;
  941. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  942. | --syscon | --sysco | --sysc | --sys | --sy)
  943. ac_prev=sysconfdir ;;
  944. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  945. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  946. sysconfdir=$ac_optarg ;;
  947. -target | --target | --targe | --targ | --tar | --ta | --t)
  948. ac_prev=target_alias ;;
  949. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  950. target_alias=$ac_optarg ;;
  951. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  952. verbose=yes ;;
  953. -version | --version | --versio | --versi | --vers | -V)
  954. ac_init_version=: ;;
  955. -with-* | --with-*)
  956. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  957. # Reject names that are not valid shell variable names.
  958. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  959. as_fn_error "invalid package name: $ac_useropt"
  960. ac_useropt_orig=$ac_useropt
  961. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  962. case $ac_user_opts in
  963. *"
  964. "with_$ac_useropt"
  965. "*) ;;
  966. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  967. ac_unrecognized_sep=', ';;
  968. esac
  969. eval with_$ac_useropt=\$ac_optarg ;;
  970. -without-* | --without-*)
  971. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  972. # Reject names that are not valid shell variable names.
  973. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  974. as_fn_error "invalid package name: $ac_useropt"
  975. ac_useropt_orig=$ac_useropt
  976. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  977. case $ac_user_opts in
  978. *"
  979. "with_$ac_useropt"
  980. "*) ;;
  981. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  982. ac_unrecognized_sep=', ';;
  983. esac
  984. eval with_$ac_useropt=no ;;
  985. --x)
  986. # Obsolete; use --with-x.
  987. with_x=yes ;;
  988. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  989. | --x-incl | --x-inc | --x-in | --x-i)
  990. ac_prev=x_includes ;;
  991. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  992. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  993. x_includes=$ac_optarg ;;
  994. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  995. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  996. ac_prev=x_libraries ;;
  997. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  998. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  999. x_libraries=$ac_optarg ;;
  1000. -*) as_fn_error "unrecognized option: \`$ac_option'
  1001. Try \`$0 --help' for more information."
  1002. ;;
  1003. *=*)
  1004. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1005. # Reject names that are not valid shell variable names.
  1006. case $ac_envvar in #(
  1007. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1008. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1009. esac
  1010. eval $ac_envvar=\$ac_optarg
  1011. export $ac_envvar ;;
  1012. *)
  1013. # FIXME: should be removed in autoconf 3.0.
  1014. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1015. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1016. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1017. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1018. ;;
  1019. esac
  1020. done
  1021. if test -n "$ac_prev"; then
  1022. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1023. as_fn_error "missing argument to $ac_option"
  1024. fi
  1025. if test -n "$ac_unrecognized_opts"; then
  1026. case $enable_option_checking in
  1027. no) ;;
  1028. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1029. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1030. esac
  1031. fi
  1032. # Check all directory arguments for consistency.
  1033. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1034. datadir sysconfdir sharedstatedir localstatedir includedir \
  1035. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1036. libdir localedir mandir
  1037. do
  1038. eval ac_val=\$$ac_var
  1039. # Remove trailing slashes.
  1040. case $ac_val in
  1041. */ )
  1042. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1043. eval $ac_var=\$ac_val;;
  1044. esac
  1045. # Be sure to have absolute directory names.
  1046. case $ac_val in
  1047. [\\/$]* | ?:[\\/]* ) continue;;
  1048. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1049. esac
  1050. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1051. done
  1052. # There might be people who depend on the old broken behavior: `$host'
  1053. # used to hold the argument of --host etc.
  1054. # FIXME: To remove some day.
  1055. build=$build_alias
  1056. host=$host_alias
  1057. target=$target_alias
  1058. # FIXME: To remove some day.
  1059. if test "x$host_alias" != x; then
  1060. if test "x$build_alias" = x; then
  1061. cross_compiling=maybe
  1062. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1063. If a cross compiler is detected then cross compile mode will be used." >&2
  1064. elif test "x$build_alias" != "x$host_alias"; then
  1065. cross_compiling=yes
  1066. fi
  1067. fi
  1068. ac_tool_prefix=
  1069. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1070. test "$silent" = yes && exec 6>/dev/null
  1071. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1072. ac_ls_di=`ls -di .` &&
  1073. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1074. as_fn_error "working directory cannot be determined"
  1075. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1076. as_fn_error "pwd does not report name of working directory"
  1077. # Find the source files, if location was not specified.
  1078. if test -z "$srcdir"; then
  1079. ac_srcdir_defaulted=yes
  1080. # Try the directory containing this script, then the parent directory.
  1081. ac_confdir=`$as_dirname -- "$as_myself" ||
  1082. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1083. X"$as_myself" : 'X\(//\)[^/]' \| \
  1084. X"$as_myself" : 'X\(//\)$' \| \
  1085. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1086. $as_echo X"$as_myself" |
  1087. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1088. s//\1/
  1089. q
  1090. }
  1091. /^X\(\/\/\)[^/].*/{
  1092. s//\1/
  1093. q
  1094. }
  1095. /^X\(\/\/\)$/{
  1096. s//\1/
  1097. q
  1098. }
  1099. /^X\(\/\).*/{
  1100. s//\1/
  1101. q
  1102. }
  1103. s/.*/./; q'`
  1104. srcdir=$ac_confdir
  1105. if test ! -r "$srcdir/$ac_unique_file"; then
  1106. srcdir=..
  1107. fi
  1108. else
  1109. ac_srcdir_defaulted=no
  1110. fi
  1111. if test ! -r "$srcdir/$ac_unique_file"; then
  1112. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1113. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1114. fi
  1115. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1116. ac_abs_confdir=`(
  1117. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1118. pwd)`
  1119. # When building in place, set srcdir=.
  1120. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1121. srcdir=.
  1122. fi
  1123. # Remove unnecessary trailing slashes from srcdir.
  1124. # Double slashes in file names in object file debugging info
  1125. # mess up M-x gdb in Emacs.
  1126. case $srcdir in
  1127. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1128. esac
  1129. for ac_var in $ac_precious_vars; do
  1130. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1131. eval ac_env_${ac_var}_value=\$${ac_var}
  1132. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1133. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1134. done
  1135. #
  1136. # Report the --help message.
  1137. #
  1138. if test "$ac_init_help" = "long"; then
  1139. # Omit some internal or obsolete options to make the list less imposing.
  1140. # This message is too long to be a string in the A/UX 3.1 sh.
  1141. cat <<_ACEOF
  1142. \`configure' configures cpplib to adapt to many kinds of systems.
  1143. Usage: $0 [OPTION]... [VAR=VALUE]...
  1144. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1145. VAR=VALUE. See below for descriptions of some of the useful variables.
  1146. Defaults for the options are specified in brackets.
  1147. Configuration:
  1148. -h, --help display this help and exit
  1149. --help=short display options specific to this package
  1150. --help=recursive display the short help of all the included packages
  1151. -V, --version display version information and exit
  1152. -q, --quiet, --silent do not print \`checking...' messages
  1153. --cache-file=FILE cache test results in FILE [disabled]
  1154. -C, --config-cache alias for \`--cache-file=config.cache'
  1155. -n, --no-create do not create output files
  1156. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1157. Installation directories:
  1158. --prefix=PREFIX install architecture-independent files in PREFIX
  1159. [$ac_default_prefix]
  1160. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1161. [PREFIX]
  1162. By default, \`make install' will install all the files in
  1163. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1164. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1165. for instance \`--prefix=\$HOME'.
  1166. For better control, use the options below.
  1167. Fine tuning of the installation directories:
  1168. --bindir=DIR user executables [EPREFIX/bin]
  1169. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1170. --libexecdir=DIR program executables [EPREFIX/libexec]
  1171. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1172. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1173. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1174. --libdir=DIR object code libraries [EPREFIX/lib]
  1175. --includedir=DIR C header files [PREFIX/include]
  1176. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1177. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1178. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1179. --infodir=DIR info documentation [DATAROOTDIR/info]
  1180. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1181. --mandir=DIR man documentation [DATAROOTDIR/man]
  1182. --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
  1183. --htmldir=DIR html documentation [DOCDIR]
  1184. --dvidir=DIR dvi documentation [DOCDIR]
  1185. --pdfdir=DIR pdf documentation [DOCDIR]
  1186. --psdir=DIR ps documentation [DOCDIR]
  1187. _ACEOF
  1188. cat <<\_ACEOF
  1189. System types:
  1190. --build=BUILD configure for building on BUILD [guessed]
  1191. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1192. --target=TARGET configure for building compilers for TARGET [HOST]
  1193. _ACEOF
  1194. fi
  1195. if test -n "$ac_init_help"; then
  1196. case $ac_init_help in
  1197. short | recursive ) echo "Configuration of cpplib :";;
  1198. esac
  1199. cat <<\_ACEOF
  1200. Optional Features:
  1201. --disable-option-checking ignore unrecognized --enable/--with options
  1202. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1203. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1204. --disable-largefile omit support for large files
  1205. --enable-werror-always enable -Werror despite compiler version
  1206. --disable-rpath do not hardcode runtime library paths
  1207. --enable-maintainer-mode enable rules only needed by maintainers
  1208. --enable-checking[=LIST]
  1209. enable expensive run-time checks. With LIST, enable
  1210. only specific categories of checks. Categories are:
  1211. yes,no,all,none,release. Flags are: misc,valgrind or
  1212. other strings
  1213. --enable-canonical-system-headers
  1214. enable or disable system headers canonicalization
  1215. --enable-host-shared build host code as shared libraries
  1216. Optional Packages:
  1217. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1218. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1219. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1220. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1221. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1222. Some influential environment variables:
  1223. CC C compiler command
  1224. CFLAGS C compiler flags
  1225. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1226. nonstandard directory <lib dir>
  1227. LIBS libraries to pass to the linker, e.g. -l<library>
  1228. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1229. you have headers in a nonstandard directory <include dir>
  1230. CXX C++ compiler command
  1231. CXXFLAGS C++ compiler flags
  1232. CPP C preprocessor
  1233. Use these variables to override the choices made by `configure' or to help
  1234. it to find libraries and programs with nonstandard names/locations.
  1235. Report bugs to <gcc-bugs@gcc.gnu.org>.
  1236. _ACEOF
  1237. ac_status=$?
  1238. fi
  1239. if test "$ac_init_help" = "recursive"; then
  1240. # If there are subdirs, report their specific --help.
  1241. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1242. test -d "$ac_dir" ||
  1243. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1244. continue
  1245. ac_builddir=.
  1246. case "$ac_dir" in
  1247. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1248. *)
  1249. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1250. # A ".." for each directory in $ac_dir_suffix.
  1251. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1252. case $ac_top_builddir_sub in
  1253. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1254. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1255. esac ;;
  1256. esac
  1257. ac_abs_top_builddir=$ac_pwd
  1258. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1259. # for backward compatibility:
  1260. ac_top_builddir=$ac_top_build_prefix
  1261. case $srcdir in
  1262. .) # We are building in place.
  1263. ac_srcdir=.
  1264. ac_top_srcdir=$ac_top_builddir_sub
  1265. ac_abs_top_srcdir=$ac_pwd ;;
  1266. [\\/]* | ?:[\\/]* ) # Absolute name.
  1267. ac_srcdir=$srcdir$ac_dir_suffix;
  1268. ac_top_srcdir=$srcdir
  1269. ac_abs_top_srcdir=$srcdir ;;
  1270. *) # Relative name.
  1271. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1272. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1273. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1274. esac
  1275. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1276. cd "$ac_dir" || { ac_status=$?; continue; }
  1277. # Check for guested configure.
  1278. if test -f "$ac_srcdir/configure.gnu"; then
  1279. echo &&
  1280. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1281. elif test -f "$ac_srcdir/configure"; then
  1282. echo &&
  1283. $SHELL "$ac_srcdir/configure" --help=recursive
  1284. else
  1285. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1286. fi || ac_status=$?
  1287. cd "$ac_pwd" || { ac_status=$?; break; }
  1288. done
  1289. fi
  1290. test -n "$ac_init_help" && exit $ac_status
  1291. if $ac_init_version; then
  1292. cat <<\_ACEOF
  1293. cpplib configure
  1294. generated by GNU Autoconf 2.64
  1295. Copyright (C) 2009 Free Software Foundation, Inc.
  1296. This configure script is free software; the Free Software Foundation
  1297. gives unlimited permission to copy, distribute and modify it.
  1298. _ACEOF
  1299. exit
  1300. fi
  1301. ## ------------------------ ##
  1302. ## Autoconf initialization. ##
  1303. ## ------------------------ ##
  1304. # ac_fn_c_try_compile LINENO
  1305. # --------------------------
  1306. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1307. ac_fn_c_try_compile ()
  1308. {
  1309. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1310. rm -f conftest.$ac_objext
  1311. if { { ac_try="$ac_compile"
  1312. case "(($ac_try" in
  1313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1314. *) ac_try_echo=$ac_try;;
  1315. esac
  1316. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1317. $as_echo "$ac_try_echo"; } >&5
  1318. (eval "$ac_compile") 2>conftest.err
  1319. ac_status=$?
  1320. if test -s conftest.err; then
  1321. grep -v '^ *+' conftest.err >conftest.er1
  1322. cat conftest.er1 >&5
  1323. mv -f conftest.er1 conftest.err
  1324. fi
  1325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1326. test $ac_status = 0; } && {
  1327. test -z "$ac_c_werror_flag" ||
  1328. test ! -s conftest.err
  1329. } && test -s conftest.$ac_objext; then :
  1330. ac_retval=0
  1331. else
  1332. $as_echo "$as_me: failed program was:" >&5
  1333. sed 's/^/| /' conftest.$ac_ext >&5
  1334. ac_retval=1
  1335. fi
  1336. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1337. return $ac_retval
  1338. } # ac_fn_c_try_compile
  1339. # ac_fn_cxx_try_compile LINENO
  1340. # ----------------------------
  1341. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1342. ac_fn_cxx_try_compile ()
  1343. {
  1344. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1345. rm -f conftest.$ac_objext
  1346. if { { ac_try="$ac_compile"
  1347. case "(($ac_try" in
  1348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1349. *) ac_try_echo=$ac_try;;
  1350. esac
  1351. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1352. $as_echo "$ac_try_echo"; } >&5
  1353. (eval "$ac_compile") 2>conftest.err
  1354. ac_status=$?
  1355. if test -s conftest.err; then
  1356. grep -v '^ *+' conftest.err >conftest.er1
  1357. cat conftest.er1 >&5
  1358. mv -f conftest.er1 conftest.err
  1359. fi
  1360. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1361. test $ac_status = 0; } && {
  1362. test -z "$ac_cxx_werror_flag" ||
  1363. test ! -s conftest.err
  1364. } && test -s conftest.$ac_objext; then :
  1365. ac_retval=0
  1366. else
  1367. $as_echo "$as_me: failed program was:" >&5
  1368. sed 's/^/| /' conftest.$ac_ext >&5
  1369. ac_retval=1
  1370. fi
  1371. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1372. return $ac_retval
  1373. } # ac_fn_cxx_try_compile
  1374. # ac_fn_c_try_cpp LINENO
  1375. # ----------------------
  1376. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1377. ac_fn_c_try_cpp ()
  1378. {
  1379. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1380. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1381. case "(($ac_try" in
  1382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1383. *) ac_try_echo=$ac_try;;
  1384. esac
  1385. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1386. $as_echo "$ac_try_echo"; } >&5
  1387. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1388. ac_status=$?
  1389. if test -s conftest.err; then
  1390. grep -v '^ *+' conftest.err >conftest.er1
  1391. cat conftest.er1 >&5
  1392. mv -f conftest.er1 conftest.err
  1393. fi
  1394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1395. test $ac_status = 0; } >/dev/null && {
  1396. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1397. test ! -s conftest.err
  1398. }; then :
  1399. ac_retval=0
  1400. else
  1401. $as_echo "$as_me: failed program was:" >&5
  1402. sed 's/^/| /' conftest.$ac_ext >&5
  1403. ac_retval=1
  1404. fi
  1405. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1406. return $ac_retval
  1407. } # ac_fn_c_try_cpp
  1408. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1409. # -------------------------------------------------------
  1410. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1411. # the include files in INCLUDES and setting the cache variable VAR
  1412. # accordingly.
  1413. ac_fn_c_check_header_mongrel ()
  1414. {
  1415. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1416. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1418. $as_echo_n "checking for $2... " >&6; }
  1419. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1420. $as_echo_n "(cached) " >&6
  1421. fi
  1422. eval ac_res=\$$3
  1423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1424. $as_echo "$ac_res" >&6; }
  1425. else
  1426. # Is the header compilable?
  1427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1428. $as_echo_n "checking $2 usability... " >&6; }
  1429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1430. /* end confdefs.h. */
  1431. $4
  1432. #include <$2>
  1433. _ACEOF
  1434. if ac_fn_c_try_compile "$LINENO"; then :
  1435. ac_header_compiler=yes
  1436. else
  1437. ac_header_compiler=no
  1438. fi
  1439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1441. $as_echo "$ac_header_compiler" >&6; }
  1442. # Is the header present?
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1444. $as_echo_n "checking $2 presence... " >&6; }
  1445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1446. /* end confdefs.h. */
  1447. #include <$2>
  1448. _ACEOF
  1449. if ac_fn_c_try_cpp "$LINENO"; then :
  1450. ac_header_preproc=yes
  1451. else
  1452. ac_header_preproc=no
  1453. fi
  1454. rm -f conftest.err conftest.$ac_ext
  1455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1456. $as_echo "$ac_header_preproc" >&6; }
  1457. # So? What about this header?
  1458. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1459. yes:no: )
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1461. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1463. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1464. ;;
  1465. no:yes:* )
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1467. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1469. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1471. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1473. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1475. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1476. ( cat <<\_ASBOX
  1477. ## ----------------------------------- ##
  1478. ## Report this to gcc-bugs@gcc.gnu.org ##
  1479. ## ----------------------------------- ##
  1480. _ASBOX
  1481. ) | sed "s/^/$as_me: WARNING: /" >&2
  1482. ;;
  1483. esac
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1485. $as_echo_n "checking for $2... " >&6; }
  1486. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1487. $as_echo_n "(cached) " >&6
  1488. else
  1489. eval "$3=\$ac_header_compiler"
  1490. fi
  1491. eval ac_res=\$$3
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1493. $as_echo "$ac_res" >&6; }
  1494. fi
  1495. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1496. } # ac_fn_c_check_header_mongrel
  1497. # ac_fn_c_try_run LINENO
  1498. # ----------------------
  1499. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1500. # that executables *can* be run.
  1501. ac_fn_c_try_run ()
  1502. {
  1503. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1504. if { { ac_try="$ac_link"
  1505. case "(($ac_try" in
  1506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1507. *) ac_try_echo=$ac_try;;
  1508. esac
  1509. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1510. $as_echo "$ac_try_echo"; } >&5
  1511. (eval "$ac_link") 2>&5
  1512. ac_status=$?
  1513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1514. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1515. { { case "(($ac_try" in
  1516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1517. *) ac_try_echo=$ac_try;;
  1518. esac
  1519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1520. $as_echo "$ac_try_echo"; } >&5
  1521. (eval "$ac_try") 2>&5
  1522. ac_status=$?
  1523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1524. test $ac_status = 0; }; }; then :
  1525. ac_retval=0
  1526. else
  1527. $as_echo "$as_me: program exited with status $ac_status" >&5
  1528. $as_echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530. ac_retval=$ac_status
  1531. fi
  1532. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1533. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1534. return $ac_retval
  1535. } # ac_fn_c_try_run
  1536. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1537. # -------------------------------------------------------
  1538. # Tests whether HEADER exists and can be compiled using the include files in
  1539. # INCLUDES, setting the cache variable VAR accordingly.
  1540. ac_fn_c_check_header_compile ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1546. $as_echo_n "(cached) " >&6
  1547. else
  1548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end confdefs.h. */
  1550. $4
  1551. #include <$2>
  1552. _ACEOF
  1553. if ac_fn_c_try_compile "$LINENO"; then :
  1554. eval "$3=yes"
  1555. else
  1556. eval "$3=no"
  1557. fi
  1558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1559. fi
  1560. eval ac_res=\$$3
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1562. $as_echo "$ac_res" >&6; }
  1563. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1564. } # ac_fn_c_check_header_compile
  1565. # ac_fn_c_try_link LINENO
  1566. # -----------------------
  1567. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1568. ac_fn_c_try_link ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. rm -f conftest.$ac_objext conftest$ac_exeext
  1572. if { { ac_try="$ac_link"
  1573. case "(($ac_try" in
  1574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1575. *) ac_try_echo=$ac_try;;
  1576. esac
  1577. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1578. $as_echo "$ac_try_echo"; } >&5
  1579. (eval "$ac_link") 2>conftest.err
  1580. ac_status=$?
  1581. if test -s conftest.err; then
  1582. grep -v '^ *+' conftest.err >conftest.er1
  1583. cat conftest.er1 >&5
  1584. mv -f conftest.er1 conftest.err
  1585. fi
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; } && {
  1588. test -z "$ac_c_werror_flag" ||
  1589. test ! -s conftest.err
  1590. } && test -s conftest$ac_exeext && {
  1591. test "$cross_compiling" = yes ||
  1592. $as_test_x conftest$ac_exeext
  1593. }; then :
  1594. ac_retval=0
  1595. else
  1596. $as_echo "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=1
  1599. fi
  1600. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1601. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1602. # interfere with the next link command; also delete a directory that is
  1603. # left behind by Apple's compiler. We do this before executing the actions.
  1604. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1605. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1606. return $ac_retval
  1607. } # ac_fn_c_try_link
  1608. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1609. # -------------------------------------------
  1610. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1611. # variable VAR accordingly.
  1612. ac_fn_c_check_type ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1616. $as_echo_n "checking for $2... " >&6; }
  1617. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1618. $as_echo_n "(cached) " >&6
  1619. else
  1620. eval "$3=no"
  1621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1622. /* end confdefs.h. */
  1623. $4
  1624. int
  1625. main ()
  1626. {
  1627. if (sizeof ($2))
  1628. return 0;
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. if ac_fn_c_try_compile "$LINENO"; then :
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. $4
  1637. int
  1638. main ()
  1639. {
  1640. if (sizeof (($2)))
  1641. return 0;
  1642. ;
  1643. return 0;
  1644. }
  1645. _ACEOF
  1646. if ac_fn_c_try_compile "$LINENO"; then :
  1647. else
  1648. eval "$3=yes"
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. fi
  1652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1653. fi
  1654. eval ac_res=\$$3
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1656. $as_echo "$ac_res" >&6; }
  1657. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1658. } # ac_fn_c_check_type
  1659. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1660. # ------------------------------------
  1661. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1662. # accordingly.
  1663. ac_fn_c_find_uintX_t ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1667. $as_echo_n "checking for uint$2_t... " >&6; }
  1668. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1669. $as_echo_n "(cached) " >&6
  1670. else
  1671. eval "$3=no"
  1672. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1673. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1675. /* end confdefs.h. */
  1676. $ac_includes_default
  1677. int
  1678. main ()
  1679. {
  1680. static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
  1681. test_array [0] = 0
  1682. ;
  1683. return 0;
  1684. }
  1685. _ACEOF
  1686. if ac_fn_c_try_compile "$LINENO"; then :
  1687. case $ac_type in #(
  1688. uint$2_t) :
  1689. eval "$3=yes" ;; #(
  1690. *) :
  1691. eval "$3=\$ac_type" ;;
  1692. esac
  1693. fi
  1694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1695. eval as_val=\$$3
  1696. if test "x$as_val" = x""no; then :
  1697. else
  1698. break
  1699. fi
  1700. done
  1701. fi
  1702. eval ac_res=\$$3
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1704. $as_echo "$ac_res" >&6; }
  1705. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1706. } # ac_fn_c_find_uintX_t
  1707. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1708. # --------------------------------------------
  1709. # Tries to find the compile-time value of EXPR in a program that includes
  1710. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1711. # computed
  1712. ac_fn_c_compute_int ()
  1713. {
  1714. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715. if test "$cross_compiling" = yes; then
  1716. # Depending upon the size, compute the lo and hi bounds.
  1717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1718. /* end confdefs.h. */
  1719. $4
  1720. int
  1721. main ()
  1722. {
  1723. static int test_array [1 - 2 * !(($2) >= 0)];
  1724. test_array [0] = 0
  1725. ;
  1726. return 0;
  1727. }
  1728. _ACEOF
  1729. if ac_fn_c_try_compile "$LINENO"; then :
  1730. ac_lo=0 ac_mid=0
  1731. while :; do
  1732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1733. /* end confdefs.h. */
  1734. $4
  1735. int
  1736. main ()
  1737. {
  1738. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1739. test_array [0] = 0
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_compile "$LINENO"; then :
  1745. ac_hi=$ac_mid; break
  1746. else
  1747. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1748. if test $ac_lo -le $ac_mid; then
  1749. ac_lo= ac_hi=
  1750. break
  1751. fi
  1752. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1753. fi
  1754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1755. done
  1756. else
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. $4
  1760. int
  1761. main ()
  1762. {
  1763. static int test_array [1 - 2 * !(($2) < 0)];
  1764. test_array [0] = 0
  1765. ;
  1766. return 0;
  1767. }
  1768. _ACEOF
  1769. if ac_fn_c_try_compile "$LINENO"; then :
  1770. ac_hi=-1 ac_mid=-1
  1771. while :; do
  1772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1773. /* end confdefs.h. */
  1774. $4
  1775. int
  1776. main ()
  1777. {
  1778. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1779. test_array [0] = 0
  1780. ;
  1781. return 0;
  1782. }
  1783. _ACEOF
  1784. if ac_fn_c_try_compile "$LINENO"; then :
  1785. ac_lo=$ac_mid; break
  1786. else
  1787. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1788. if test $ac_mid -le $ac_hi; then
  1789. ac_lo= ac_hi=
  1790. break
  1791. fi
  1792. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1793. fi
  1794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1795. done
  1796. else
  1797. ac_lo= ac_hi=
  1798. fi
  1799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1800. fi
  1801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1802. # Binary search between lo and hi bounds.
  1803. while test "x$ac_lo" != "x$ac_hi"; do
  1804. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1806. /* end confdefs.h. */
  1807. $4
  1808. int
  1809. main ()
  1810. {
  1811. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1812. test_array [0] = 0
  1813. ;
  1814. return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_compile "$LINENO"; then :
  1818. ac_hi=$ac_mid
  1819. else
  1820. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1821. fi
  1822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1823. done
  1824. case $ac_lo in #((
  1825. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1826. '') ac_retval=1 ;;
  1827. esac
  1828. else
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. $4
  1832. static long int longval () { return $2; }
  1833. static unsigned long int ulongval () { return $2; }
  1834. #include <stdio.h>
  1835. #include <stdlib.h>
  1836. int
  1837. main ()
  1838. {
  1839. FILE *f = fopen ("conftest.val", "w");
  1840. if (! f)
  1841. return 1;
  1842. if (($2) < 0)
  1843. {
  1844. long int i = longval ();
  1845. if (i != ($2))
  1846. return 1;
  1847. fprintf (f, "%ld", i);
  1848. }
  1849. else
  1850. {
  1851. unsigned long int i = ulongval ();
  1852. if (i != ($2))
  1853. return 1;
  1854. fprintf (f, "%lu", i);
  1855. }
  1856. /* Do not output a trailing newline, as this causes \r\n confusion
  1857. on some platforms. */
  1858. return ferror (f) || fclose (f) != 0;
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_c_try_run "$LINENO"; then :
  1864. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1865. else
  1866. ac_retval=1
  1867. fi
  1868. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1869. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1870. rm -f conftest.val
  1871. fi
  1872. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1873. return $ac_retval
  1874. } # ac_fn_c_compute_int
  1875. # ac_fn_c_check_func LINENO FUNC VAR
  1876. # ----------------------------------
  1877. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1878. ac_fn_c_check_func ()
  1879. {
  1880. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1882. $as_echo_n "checking for $2... " >&6; }
  1883. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1884. $as_echo_n "(cached) " >&6
  1885. else
  1886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1887. /* end confdefs.h. */
  1888. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1889. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1890. #define $2 innocuous_$2
  1891. /* System header to define __stub macros and hopefully few prototypes,
  1892. which can conflict with char $2 (); below.
  1893. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1894. <limits.h> exists even on freestanding compilers. */
  1895. #ifdef __STDC__
  1896. # include <limits.h>
  1897. #else
  1898. # include <assert.h>
  1899. #endif
  1900. #undef $2
  1901. /* Override any GCC internal prototype to avoid an error.
  1902. Use char because int might match the return type of a GCC
  1903. builtin and then its argument prototype would still apply. */
  1904. #ifdef __cplusplus
  1905. extern "C"
  1906. #endif
  1907. char $2 ();
  1908. /* The GNU C library defines this for functions which it implements
  1909. to always fail with ENOSYS. Some functions are actually named
  1910. something starting with __ and the normal name is an alias. */
  1911. #if defined __stub_$2 || defined __stub___$2
  1912. choke me
  1913. #endif
  1914. int
  1915. main ()
  1916. {
  1917. return $2 ();
  1918. ;
  1919. return 0;
  1920. }
  1921. _ACEOF
  1922. if ac_fn_c_try_link "$LINENO"; then :
  1923. eval "$3=yes"
  1924. else
  1925. eval "$3=no"
  1926. fi
  1927. rm -f core conftest.err conftest.$ac_objext \
  1928. conftest$ac_exeext conftest.$ac_ext
  1929. fi
  1930. eval ac_res=\$$3
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1932. $as_echo "$ac_res" >&6; }
  1933. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1934. } # ac_fn_c_check_func
  1935. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1936. # ------------------------------------
  1937. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1938. ac_fn_c_check_decl ()
  1939. {
  1940. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1941. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1942. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1944. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1945. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1946. $as_echo_n "(cached) " >&6
  1947. else
  1948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1949. /* end confdefs.h. */
  1950. $4
  1951. int
  1952. main ()
  1953. {
  1954. #ifndef $as_decl_name
  1955. #ifdef __cplusplus
  1956. (void) $as_decl_use;
  1957. #else
  1958. (void) $as_decl_name;
  1959. #endif
  1960. #endif
  1961. ;
  1962. return 0;
  1963. }
  1964. _ACEOF
  1965. if ac_fn_c_try_compile "$LINENO"; then :
  1966. eval "$3=yes"
  1967. else
  1968. eval "$3=no"
  1969. fi
  1970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1971. fi
  1972. eval ac_res=\$$3
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1974. $as_echo "$ac_res" >&6; }
  1975. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1976. } # ac_fn_c_check_decl
  1977. # ac_fn_cxx_try_link LINENO
  1978. # -------------------------
  1979. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1980. ac_fn_cxx_try_link ()
  1981. {
  1982. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1983. rm -f conftest.$ac_objext conftest$ac_exeext
  1984. if { { ac_try="$ac_link"
  1985. case "(($ac_try" in
  1986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1987. *) ac_try_echo=$ac_try;;
  1988. esac
  1989. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1990. $as_echo "$ac_try_echo"; } >&5
  1991. (eval "$ac_link") 2>conftest.err
  1992. ac_status=$?
  1993. if test -s conftest.err; then
  1994. grep -v '^ *+' conftest.err >conftest.er1
  1995. cat conftest.er1 >&5
  1996. mv -f conftest.er1 conftest.err
  1997. fi
  1998. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1999. test $ac_status = 0; } && {
  2000. test -z "$ac_cxx_werror_flag" ||
  2001. test ! -s conftest.err
  2002. } && test -s conftest$ac_exeext && {
  2003. test "$cross_compiling" = yes ||
  2004. $as_test_x conftest$ac_exeext
  2005. }; then :
  2006. ac_retval=0
  2007. else
  2008. $as_echo "$as_me: failed program was:" >&5
  2009. sed 's/^/| /' conftest.$ac_ext >&5
  2010. ac_retval=1
  2011. fi
  2012. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2013. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2014. # interfere with the next link command; also delete a directory that is
  2015. # left behind by Apple's compiler. We do this before executing the actions.
  2016. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2017. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2018. return $ac_retval
  2019. } # ac_fn_cxx_try_link
  2020. cat >config.log <<_ACEOF
  2021. This file contains any messages produced by compilers while
  2022. running configure, to aid debugging if configure makes a mistake.
  2023. It was created by cpplib $as_me , which was
  2024. generated by GNU Autoconf 2.64. Invocation command line was
  2025. $ $0 $@
  2026. _ACEOF
  2027. exec 5>>config.log
  2028. {
  2029. cat <<_ASUNAME
  2030. ## --------- ##
  2031. ## Platform. ##
  2032. ## --------- ##
  2033. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2034. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2035. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2036. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2037. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2038. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2039. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2040. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2041. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2042. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2043. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2044. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2045. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2046. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2047. _ASUNAME
  2048. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2049. for as_dir in $PATH
  2050. do
  2051. IFS=$as_save_IFS
  2052. test -z "$as_dir" && as_dir=.
  2053. $as_echo "PATH: $as_dir"
  2054. done
  2055. IFS=$as_save_IFS
  2056. } >&5
  2057. cat >&5 <<_ACEOF
  2058. ## ----------- ##
  2059. ## Core tests. ##
  2060. ## ----------- ##
  2061. _ACEOF
  2062. # Keep a trace of the command line.
  2063. # Strip out --no-create and --no-recursion so they do not pile up.
  2064. # Strip out --silent because we don't want to record it for future runs.
  2065. # Also quote any args containing shell meta-characters.
  2066. # Make two passes to allow for proper duplicate-argument suppression.
  2067. ac_configure_args=
  2068. ac_configure_args0=
  2069. ac_configure_args1=
  2070. ac_must_keep_next=false
  2071. for ac_pass in 1 2
  2072. do
  2073. for ac_arg
  2074. do
  2075. case $ac_arg in
  2076. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2077. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2078. | -silent | --silent | --silen | --sile | --sil)
  2079. continue ;;
  2080. *\'*)
  2081. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2082. esac
  2083. case $ac_pass in
  2084. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2085. 2)
  2086. as_fn_append ac_configure_args1 " '$ac_arg'"
  2087. if test $ac_must_keep_next = true; then
  2088. ac_must_keep_next=false # Got value, back to normal.
  2089. else
  2090. case $ac_arg in
  2091. *=* | --config-cache | -C | -disable-* | --disable-* \
  2092. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2093. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2094. | -with-* | --with-* | -without-* | --without-* | --x)
  2095. case "$ac_configure_args0 " in
  2096. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2097. esac
  2098. ;;
  2099. -* ) ac_must_keep_next=true ;;
  2100. esac
  2101. fi
  2102. as_fn_append ac_configure_args " '$ac_arg'"
  2103. ;;
  2104. esac
  2105. done
  2106. done
  2107. { ac_configure_args0=; unset ac_configure_args0;}
  2108. { ac_configure_args1=; unset ac_configure_args1;}
  2109. # When interrupted or exit'd, cleanup temporary files, and complete
  2110. # config.log. We remove comments because anyway the quotes in there
  2111. # would cause problems or look ugly.
  2112. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2113. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2114. trap 'exit_status=$?
  2115. # Save into config.log some information that might help in debugging.
  2116. {
  2117. echo
  2118. cat <<\_ASBOX
  2119. ## ---------------- ##
  2120. ## Cache variables. ##
  2121. ## ---------------- ##
  2122. _ASBOX
  2123. echo
  2124. # The following way of writing the cache mishandles newlines in values,
  2125. (
  2126. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2127. eval ac_val=\$$ac_var
  2128. case $ac_val in #(
  2129. *${as_nl}*)
  2130. case $ac_var in #(
  2131. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2132. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2133. esac
  2134. case $ac_var in #(
  2135. _ | IFS | as_nl) ;; #(
  2136. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2137. *) { eval $ac_var=; unset $ac_var;} ;;
  2138. esac ;;
  2139. esac
  2140. done
  2141. (set) 2>&1 |
  2142. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2143. *${as_nl}ac_space=\ *)
  2144. sed -n \
  2145. "s/'\''/'\''\\\\'\'''\''/g;
  2146. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2147. ;; #(
  2148. *)
  2149. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2150. ;;
  2151. esac |
  2152. sort
  2153. )
  2154. echo
  2155. cat <<\_ASBOX
  2156. ## ----------------- ##
  2157. ## Output variables. ##
  2158. ## ----------------- ##
  2159. _ASBOX
  2160. echo
  2161. for ac_var in $ac_subst_vars
  2162. do
  2163. eval ac_val=\$$ac_var
  2164. case $ac_val in
  2165. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2166. esac
  2167. $as_echo "$ac_var='\''$ac_val'\''"
  2168. done | sort
  2169. echo
  2170. if test -n "$ac_subst_files"; then
  2171. cat <<\_ASBOX
  2172. ## ------------------- ##
  2173. ## File substitutions. ##
  2174. ## ------------------- ##
  2175. _ASBOX
  2176. echo
  2177. for ac_var in $ac_subst_files
  2178. do
  2179. eval ac_val=\$$ac_var
  2180. case $ac_val in
  2181. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2182. esac
  2183. $as_echo "$ac_var='\''$ac_val'\''"
  2184. done | sort
  2185. echo
  2186. fi
  2187. if test -s confdefs.h; then
  2188. cat <<\_ASBOX
  2189. ## ----------- ##
  2190. ## confdefs.h. ##
  2191. ## ----------- ##
  2192. _ASBOX
  2193. echo
  2194. cat confdefs.h
  2195. echo
  2196. fi
  2197. test "$ac_signal" != 0 &&
  2198. $as_echo "$as_me: caught signal $ac_signal"
  2199. $as_echo "$as_me: exit $exit_status"
  2200. } >&5
  2201. rm -f core *.core core.conftest.* &&
  2202. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2203. exit $exit_status
  2204. ' 0
  2205. for ac_signal in 1 2 13 15; do
  2206. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2207. done
  2208. ac_signal=0
  2209. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2210. rm -f -r conftest* confdefs.h
  2211. $as_echo "/* confdefs.h */" > confdefs.h
  2212. # Predefined preprocessor variables.
  2213. cat >>confdefs.h <<_ACEOF
  2214. #define PACKAGE_NAME "$PACKAGE_NAME"
  2215. _ACEOF
  2216. cat >>confdefs.h <<_ACEOF
  2217. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2218. _ACEOF
  2219. cat >>confdefs.h <<_ACEOF
  2220. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2221. _ACEOF
  2222. cat >>confdefs.h <<_ACEOF
  2223. #define PACKAGE_STRING "$PACKAGE_STRING"
  2224. _ACEOF
  2225. cat >>confdefs.h <<_ACEOF
  2226. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2227. _ACEOF
  2228. cat >>confdefs.h <<_ACEOF
  2229. #define PACKAGE_URL "$PACKAGE_URL"
  2230. _ACEOF
  2231. # Let the site file select an alternate cache file if it wants to.
  2232. # Prefer an explicitly selected file to automatically selected ones.
  2233. ac_site_file1=NONE
  2234. ac_site_file2=NONE
  2235. if test -n "$CONFIG_SITE"; then
  2236. ac_site_file1=$CONFIG_SITE
  2237. elif test "x$prefix" != xNONE; then
  2238. ac_site_file1=$prefix/share/config.site
  2239. ac_site_file2=$prefix/etc/config.site
  2240. else
  2241. ac_site_file1=$ac_default_prefix/share/config.site
  2242. ac_site_file2=$ac_default_prefix/etc/config.site
  2243. fi
  2244. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2245. do
  2246. test "x$ac_site_file" = xNONE && continue
  2247. if test -r "$ac_site_file"; then
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2249. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2250. sed 's/^/| /' "$ac_site_file" >&5
  2251. . "$ac_site_file"
  2252. fi
  2253. done
  2254. if test -r "$cache_file"; then
  2255. # Some versions of bash will fail to source /dev/null (special
  2256. # files actually), so we avoid doing that.
  2257. if test -f "$cache_file"; then
  2258. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2259. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2260. case $cache_file in
  2261. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2262. *) . "./$cache_file";;
  2263. esac
  2264. fi
  2265. else
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2267. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2268. >$cache_file
  2269. fi
  2270. # Check that the precious variables saved in the cache have kept the same
  2271. # value.
  2272. ac_cache_corrupted=false
  2273. for ac_var in $ac_precious_vars; do
  2274. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2275. eval ac_new_set=\$ac_env_${ac_var}_set
  2276. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2277. eval ac_new_val=\$ac_env_${ac_var}_value
  2278. case $ac_old_set,$ac_new_set in
  2279. set,)
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2281. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2282. ac_cache_corrupted=: ;;
  2283. ,set)
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2285. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2286. ac_cache_corrupted=: ;;
  2287. ,);;
  2288. *)
  2289. if test "x$ac_old_val" != "x$ac_new_val"; then
  2290. # differences in whitespace do not lead to failure.
  2291. ac_old_val_w=`echo x $ac_old_val`
  2292. ac_new_val_w=`echo x $ac_new_val`
  2293. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2295. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2296. ac_cache_corrupted=:
  2297. else
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2299. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2300. eval $ac_var=\$ac_old_val
  2301. fi
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2303. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2305. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2306. fi;;
  2307. esac
  2308. # Pass precious variables to config.status.
  2309. if test "$ac_new_set" = set; then
  2310. case $ac_new_val in
  2311. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2312. *) ac_arg=$ac_var=$ac_new_val ;;
  2313. esac
  2314. case " $ac_configure_args " in
  2315. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2316. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2317. esac
  2318. fi
  2319. done
  2320. if $ac_cache_corrupted; then
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2324. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2325. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2326. fi
  2327. ## -------------------- ##
  2328. ## Main body of script. ##
  2329. ## -------------------- ##
  2330. ac_ext=c
  2331. ac_cpp='$CPP $CPPFLAGS'
  2332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2335. ac_aux_dir=
  2336. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2337. for ac_t in install-sh install.sh shtool; do
  2338. if test -f "$ac_dir/$ac_t"; then
  2339. ac_aux_dir=$ac_dir
  2340. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2341. break 2
  2342. fi
  2343. done
  2344. done
  2345. if test -z "$ac_aux_dir"; then
  2346. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2347. fi
  2348. # These three variables are undocumented and unsupported,
  2349. # and are intended to be withdrawn in a future Autoconf release.
  2350. # They can cause serious problems if a builder's source tree is in a directory
  2351. # whose full name contains unusual characters.
  2352. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2353. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2354. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2355. # Make sure we can run config.sub.
  2356. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2357. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2359. $as_echo_n "checking build system type... " >&6; }
  2360. if test "${ac_cv_build+set}" = set; then :
  2361. $as_echo_n "(cached) " >&6
  2362. else
  2363. ac_build_alias=$build_alias
  2364. test "x$ac_build_alias" = x &&
  2365. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2366. test "x$ac_build_alias" = x &&
  2367. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2368. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2369. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2370. fi
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2372. $as_echo "$ac_cv_build" >&6; }
  2373. case $ac_cv_build in
  2374. *-*-*) ;;
  2375. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2376. esac
  2377. build=$ac_cv_build
  2378. ac_save_IFS=$IFS; IFS='-'
  2379. set x $ac_cv_build
  2380. shift
  2381. build_cpu=$1
  2382. build_vendor=$2
  2383. shift; shift
  2384. # Remember, the first character of IFS is used to create $*,
  2385. # except with old shells:
  2386. build_os=$*
  2387. IFS=$ac_save_IFS
  2388. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2390. $as_echo_n "checking host system type... " >&6; }
  2391. if test "${ac_cv_host+set}" = set; then :
  2392. $as_echo_n "(cached) " >&6
  2393. else
  2394. if test "x$host_alias" = x; then
  2395. ac_cv_host=$ac_cv_build
  2396. else
  2397. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2398. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2399. fi
  2400. fi
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2402. $as_echo "$ac_cv_host" >&6; }
  2403. case $ac_cv_host in
  2404. *-*-*) ;;
  2405. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2406. esac
  2407. host=$ac_cv_host
  2408. ac_save_IFS=$IFS; IFS='-'
  2409. set x $ac_cv_host
  2410. shift
  2411. host_cpu=$1
  2412. host_vendor=$2
  2413. shift; shift
  2414. # Remember, the first character of IFS is used to create $*,
  2415. # except with old shells:
  2416. host_os=$*
  2417. IFS=$ac_save_IFS
  2418. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2420. $as_echo_n "checking target system type... " >&6; }
  2421. if test "${ac_cv_target+set}" = set; then :
  2422. $as_echo_n "(cached) " >&6
  2423. else
  2424. if test "x$target_alias" = x; then
  2425. ac_cv_target=$ac_cv_host
  2426. else
  2427. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2428. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2429. fi
  2430. fi
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2432. $as_echo "$ac_cv_target" >&6; }
  2433. case $ac_cv_target in
  2434. *-*-*) ;;
  2435. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2436. esac
  2437. target=$ac_cv_target
  2438. ac_save_IFS=$IFS; IFS='-'
  2439. set x $ac_cv_target
  2440. shift
  2441. target_cpu=$1
  2442. target_vendor=$2
  2443. shift; shift
  2444. # Remember, the first character of IFS is used to create $*,
  2445. # except with old shells:
  2446. target_os=$*
  2447. IFS=$ac_save_IFS
  2448. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2449. # The aliases save the names the user supplied, while $host etc.
  2450. # will get canonicalized.
  2451. test -n "$target_alias" &&
  2452. test "$program_prefix$program_suffix$program_transform_name" = \
  2453. NONENONEs,x,x, &&
  2454. program_prefix=${target_alias}-
  2455. # Checks for programs.
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2457. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2458. set x ${MAKE-make}
  2459. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2460. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2461. $as_echo_n "(cached) " >&6
  2462. else
  2463. cat >conftest.make <<\_ACEOF
  2464. SHELL = /bin/sh
  2465. all:
  2466. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2467. _ACEOF
  2468. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2469. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2470. *@@@%%%=?*=@@@%%%*)
  2471. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2472. *)
  2473. eval ac_cv_prog_make_${ac_make}_set=no;;
  2474. esac
  2475. rm -f conftest.make
  2476. fi
  2477. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2479. $as_echo "yes" >&6; }
  2480. SET_MAKE=
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2483. $as_echo "no" >&6; }
  2484. SET_MAKE="MAKE=${MAKE-make}"
  2485. fi
  2486. # Find a good install program. We prefer a C program (faster),
  2487. # so one script is as good as another. But avoid the broken or
  2488. # incompatible versions:
  2489. # SysV /etc/install, /usr/sbin/install
  2490. # SunOS /usr/etc/install
  2491. # IRIX /sbin/install
  2492. # AIX /bin/install
  2493. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2494. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2495. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2496. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2497. # OS/2's system install, which has a completely different semantic
  2498. # ./install, which can be erroneously created by make from ./install.sh.
  2499. # Reject install programs that cannot install multiple files.
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2501. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2502. if test -z "$INSTALL"; then
  2503. if test "${ac_cv_path_install+set}" = set; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2507. for as_dir in $PATH
  2508. do
  2509. IFS=$as_save_IFS
  2510. test -z "$as_dir" && as_dir=.
  2511. # Account for people who put trailing slashes in PATH elements.
  2512. case $as_dir/ in #((
  2513. ./ | .// | /[cC]/* | \
  2514. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2515. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2516. /usr/ucb/* ) ;;
  2517. *)
  2518. # OSF1 and SCO ODT 3.0 have their own names for install.
  2519. # Don't use installbsd from OSF since it installs stuff as root
  2520. # by default.
  2521. for ac_prog in ginstall scoinst install; do
  2522. for ac_exec_ext in '' $ac_executable_extensions; do
  2523. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2524. if test $ac_prog = install &&
  2525. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2526. # AIX install. It has an incompatible calling convention.
  2527. :
  2528. elif test $ac_prog = install &&
  2529. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2530. # program-specific install script used by HP pwplus--don't use.
  2531. :
  2532. else
  2533. rm -rf conftest.one conftest.two conftest.dir
  2534. echo one > conftest.one
  2535. echo two > conftest.two
  2536. mkdir conftest.dir
  2537. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2538. test -s conftest.one && test -s conftest.two &&
  2539. test -s conftest.dir/conftest.one &&
  2540. test -s conftest.dir/conftest.two
  2541. then
  2542. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2543. break 3
  2544. fi
  2545. fi
  2546. fi
  2547. done
  2548. done
  2549. ;;
  2550. esac
  2551. done
  2552. IFS=$as_save_IFS
  2553. rm -rf conftest.one conftest.two conftest.dir
  2554. fi
  2555. if test "${ac_cv_path_install+set}" = set; then
  2556. INSTALL=$ac_cv_path_install
  2557. else
  2558. # As a last resort, use the slow shell script. Don't cache a
  2559. # value for INSTALL within a source directory, because that will
  2560. # break other packages using the cache if that directory is
  2561. # removed, or if the value is a relative name.
  2562. INSTALL=$ac_install_sh
  2563. fi
  2564. fi
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2566. $as_echo "$INSTALL" >&6; }
  2567. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2568. # It thinks the first close brace ends the variable substitution.
  2569. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2570. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2571. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2572. ac_ext=c
  2573. ac_cpp='$CPP $CPPFLAGS'
  2574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2577. if test -n "$ac_tool_prefix"; then
  2578. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2579. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2581. $as_echo_n "checking for $ac_word... " >&6; }
  2582. if test "${ac_cv_prog_CC+set}" = set; then :
  2583. $as_echo_n "(cached) " >&6
  2584. else
  2585. if test -n "$CC"; then
  2586. ac_cv_prog_CC="$CC" # Let the user override the test.
  2587. else
  2588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2589. for as_dir in $PATH
  2590. do
  2591. IFS=$as_save_IFS
  2592. test -z "$as_dir" && as_dir=.
  2593. for ac_exec_ext in '' $ac_executable_extensions; do
  2594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2595. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2597. break 2
  2598. fi
  2599. done
  2600. done
  2601. IFS=$as_save_IFS
  2602. fi
  2603. fi
  2604. CC=$ac_cv_prog_CC
  2605. if test -n "$CC"; then
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2607. $as_echo "$CC" >&6; }
  2608. else
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2610. $as_echo "no" >&6; }
  2611. fi
  2612. fi
  2613. if test -z "$ac_cv_prog_CC"; then
  2614. ac_ct_CC=$CC
  2615. # Extract the first word of "gcc", so it can be a program name with args.
  2616. set dummy gcc; ac_word=$2
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2618. $as_echo_n "checking for $ac_word... " >&6; }
  2619. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. if test -n "$ac_ct_CC"; then
  2623. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2624. else
  2625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2626. for as_dir in $PATH
  2627. do
  2628. IFS=$as_save_IFS
  2629. test -z "$as_dir" && as_dir=.
  2630. for ac_exec_ext in '' $ac_executable_extensions; do
  2631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2632. ac_cv_prog_ac_ct_CC="gcc"
  2633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2634. break 2
  2635. fi
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. fi
  2640. fi
  2641. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2642. if test -n "$ac_ct_CC"; then
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2644. $as_echo "$ac_ct_CC" >&6; }
  2645. else
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2647. $as_echo "no" >&6; }
  2648. fi
  2649. if test "x$ac_ct_CC" = x; then
  2650. CC=""
  2651. else
  2652. case $cross_compiling:$ac_tool_warned in
  2653. yes:)
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2656. ac_tool_warned=yes ;;
  2657. esac
  2658. CC=$ac_ct_CC
  2659. fi
  2660. else
  2661. CC="$ac_cv_prog_CC"
  2662. fi
  2663. if test -z "$CC"; then
  2664. if test -n "$ac_tool_prefix"; then
  2665. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2666. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2668. $as_echo_n "checking for $ac_word... " >&6; }
  2669. if test "${ac_cv_prog_CC+set}" = set; then :
  2670. $as_echo_n "(cached) " >&6
  2671. else
  2672. if test -n "$CC"; then
  2673. ac_cv_prog_CC="$CC" # Let the user override the test.
  2674. else
  2675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2676. for as_dir in $PATH
  2677. do
  2678. IFS=$as_save_IFS
  2679. test -z "$as_dir" && as_dir=.
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2682. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2684. break 2
  2685. fi
  2686. done
  2687. done
  2688. IFS=$as_save_IFS
  2689. fi
  2690. fi
  2691. CC=$ac_cv_prog_CC
  2692. if test -n "$CC"; then
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2694. $as_echo "$CC" >&6; }
  2695. else
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2697. $as_echo "no" >&6; }
  2698. fi
  2699. fi
  2700. fi
  2701. if test -z "$CC"; then
  2702. # Extract the first word of "cc", so it can be a program name with args.
  2703. set dummy cc; ac_word=$2
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2705. $as_echo_n "checking for $ac_word... " >&6; }
  2706. if test "${ac_cv_prog_CC+set}" = set; then :
  2707. $as_echo_n "(cached) " >&6
  2708. else
  2709. if test -n "$CC"; then
  2710. ac_cv_prog_CC="$CC" # Let the user override the test.
  2711. else
  2712. ac_prog_rejected=no
  2713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2714. for as_dir in $PATH
  2715. do
  2716. IFS=$as_save_IFS
  2717. test -z "$as_dir" && as_dir=.
  2718. for ac_exec_ext in '' $ac_executable_extensions; do
  2719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2720. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2721. ac_prog_rejected=yes
  2722. continue
  2723. fi
  2724. ac_cv_prog_CC="cc"
  2725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726. break 2
  2727. fi
  2728. done
  2729. done
  2730. IFS=$as_save_IFS
  2731. if test $ac_prog_rejected = yes; then
  2732. # We found a bogon in the path, so make sure we never use it.
  2733. set dummy $ac_cv_prog_CC
  2734. shift
  2735. if test $# != 0; then
  2736. # We chose a different compiler from the bogus one.
  2737. # However, it has the same basename, so the bogon will be chosen
  2738. # first if we set CC to just the basename; use the full file name.
  2739. shift
  2740. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2741. fi
  2742. fi
  2743. fi
  2744. fi
  2745. CC=$ac_cv_prog_CC
  2746. if test -n "$CC"; then
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2748. $as_echo "$CC" >&6; }
  2749. else
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi
  2753. fi
  2754. if test -z "$CC"; then
  2755. if test -n "$ac_tool_prefix"; then
  2756. for ac_prog in cl.exe
  2757. do
  2758. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2759. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2761. $as_echo_n "checking for $ac_word... " >&6; }
  2762. if test "${ac_cv_prog_CC+set}" = set; then :
  2763. $as_echo_n "(cached) " >&6
  2764. else
  2765. if test -n "$CC"; then
  2766. ac_cv_prog_CC="$CC" # Let the user override the test.
  2767. else
  2768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2769. for as_dir in $PATH
  2770. do
  2771. IFS=$as_save_IFS
  2772. test -z "$as_dir" && as_dir=.
  2773. for ac_exec_ext in '' $ac_executable_extensions; do
  2774. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2775. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2777. break 2
  2778. fi
  2779. done
  2780. done
  2781. IFS=$as_save_IFS
  2782. fi
  2783. fi
  2784. CC=$ac_cv_prog_CC
  2785. if test -n "$CC"; then
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2787. $as_echo "$CC" >&6; }
  2788. else
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2790. $as_echo "no" >&6; }
  2791. fi
  2792. test -n "$CC" && break
  2793. done
  2794. fi
  2795. if test -z "$CC"; then
  2796. ac_ct_CC=$CC
  2797. for ac_prog in cl.exe
  2798. do
  2799. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2800. set dummy $ac_prog; ac_word=$2
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2802. $as_echo_n "checking for $ac_word... " >&6; }
  2803. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. if test -n "$ac_ct_CC"; then
  2807. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2808. else
  2809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2810. for as_dir in $PATH
  2811. do
  2812. IFS=$as_save_IFS
  2813. test -z "$as_dir" && as_dir=.
  2814. for ac_exec_ext in '' $ac_executable_extensions; do
  2815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2816. ac_cv_prog_ac_ct_CC="$ac_prog"
  2817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2818. break 2
  2819. fi
  2820. done
  2821. done
  2822. IFS=$as_save_IFS
  2823. fi
  2824. fi
  2825. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2826. if test -n "$ac_ct_CC"; then
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2828. $as_echo "$ac_ct_CC" >&6; }
  2829. else
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2831. $as_echo "no" >&6; }
  2832. fi
  2833. test -n "$ac_ct_CC" && break
  2834. done
  2835. if test "x$ac_ct_CC" = x; then
  2836. CC=""
  2837. else
  2838. case $cross_compiling:$ac_tool_warned in
  2839. yes:)
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2842. ac_tool_warned=yes ;;
  2843. esac
  2844. CC=$ac_ct_CC
  2845. fi
  2846. fi
  2847. fi
  2848. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2850. as_fn_error "no acceptable C compiler found in \$PATH
  2851. See \`config.log' for more details." "$LINENO" 5; }
  2852. # Provide some information about the compiler.
  2853. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2854. set X $ac_compile
  2855. ac_compiler=$2
  2856. for ac_option in --version -v -V -qversion; do
  2857. { { ac_try="$ac_compiler $ac_option >&5"
  2858. case "(($ac_try" in
  2859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2860. *) ac_try_echo=$ac_try;;
  2861. esac
  2862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2863. $as_echo "$ac_try_echo"; } >&5
  2864. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2865. ac_status=$?
  2866. if test -s conftest.err; then
  2867. sed '10a\
  2868. ... rest of stderr output deleted ...
  2869. 10q' conftest.err >conftest.er1
  2870. cat conftest.er1 >&5
  2871. rm -f conftest.er1 conftest.err
  2872. fi
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2874. test $ac_status = 0; }
  2875. done
  2876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2877. /* end confdefs.h. */
  2878. int
  2879. main ()
  2880. {
  2881. ;
  2882. return 0;
  2883. }
  2884. _ACEOF
  2885. ac_clean_files_save=$ac_clean_files
  2886. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2887. # Try to create an executable without -o first, disregard a.out.
  2888. # It will help us diagnose broken compilers, and finding out an intuition
  2889. # of exeext.
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2891. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2892. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2893. # The possible output files:
  2894. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2895. ac_rmfiles=
  2896. for ac_file in $ac_files
  2897. do
  2898. case $ac_file in
  2899. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2900. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2901. esac
  2902. done
  2903. rm -f $ac_rmfiles
  2904. if { { ac_try="$ac_link_default"
  2905. case "(($ac_try" in
  2906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2907. *) ac_try_echo=$ac_try;;
  2908. esac
  2909. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2910. $as_echo "$ac_try_echo"; } >&5
  2911. (eval "$ac_link_default") 2>&5
  2912. ac_status=$?
  2913. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2914. test $ac_status = 0; }; then :
  2915. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2916. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2917. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2918. # so that the user can short-circuit this test for compilers unknown to
  2919. # Autoconf.
  2920. for ac_file in $ac_files ''
  2921. do
  2922. test -f "$ac_file" || continue
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2925. ;;
  2926. [ab].out )
  2927. # We found the default executable, but exeext='' is most
  2928. # certainly right.
  2929. break;;
  2930. *.* )
  2931. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2932. then :; else
  2933. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2934. fi
  2935. # We set ac_cv_exeext here because the later test for it is not
  2936. # safe: cross compilers may not add the suffix if given an `-o'
  2937. # argument, so we may need to know it at that point already.
  2938. # Even if this section looks crufty: it has the advantage of
  2939. # actually working.
  2940. break;;
  2941. * )
  2942. break;;
  2943. esac
  2944. done
  2945. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2946. else
  2947. ac_file=''
  2948. fi
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2950. $as_echo "$ac_file" >&6; }
  2951. if test -z "$ac_file"; then :
  2952. $as_echo "$as_me: failed program was:" >&5
  2953. sed 's/^/| /' conftest.$ac_ext >&5
  2954. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2955. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2956. { as_fn_set_status 77
  2957. as_fn_error "C compiler cannot create executables
  2958. See \`config.log' for more details." "$LINENO" 5; }; }
  2959. fi
  2960. ac_exeext=$ac_cv_exeext
  2961. # Check that the compiler produces executables we can run. If not, either
  2962. # the compiler is broken, or we cross compile.
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2964. $as_echo_n "checking whether the C compiler works... " >&6; }
  2965. # If not cross compiling, check that we can run a simple program.
  2966. if test "$cross_compiling" != yes; then
  2967. if { ac_try='./$ac_file'
  2968. { { case "(($ac_try" in
  2969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2970. *) ac_try_echo=$ac_try;;
  2971. esac
  2972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2973. $as_echo "$ac_try_echo"; } >&5
  2974. (eval "$ac_try") 2>&5
  2975. ac_status=$?
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2977. test $ac_status = 0; }; }; then
  2978. cross_compiling=no
  2979. else
  2980. if test "$cross_compiling" = maybe; then
  2981. cross_compiling=yes
  2982. else
  2983. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2984. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2985. as_fn_error "cannot run C compiled programs.
  2986. If you meant to cross compile, use \`--host'.
  2987. See \`config.log' for more details." "$LINENO" 5; }
  2988. fi
  2989. fi
  2990. fi
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2992. $as_echo "yes" >&6; }
  2993. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2994. ac_clean_files=$ac_clean_files_save
  2995. # Check that the compiler produces executables we can run. If not, either
  2996. # the compiler is broken, or we cross compile.
  2997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2998. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3000. $as_echo "$cross_compiling" >&6; }
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3002. $as_echo_n "checking for suffix of executables... " >&6; }
  3003. if { { ac_try="$ac_link"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3009. $as_echo "$ac_try_echo"; } >&5
  3010. (eval "$ac_link") 2>&5
  3011. ac_status=$?
  3012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3013. test $ac_status = 0; }; then :
  3014. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3015. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3016. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3017. # `rm'.
  3018. for ac_file in conftest.exe conftest conftest.*; do
  3019. test -f "$ac_file" || continue
  3020. case $ac_file in
  3021. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3022. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3023. break;;
  3024. * ) break;;
  3025. esac
  3026. done
  3027. else
  3028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3030. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3031. See \`config.log' for more details." "$LINENO" 5; }
  3032. fi
  3033. rm -f conftest$ac_cv_exeext
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3035. $as_echo "$ac_cv_exeext" >&6; }
  3036. rm -f conftest.$ac_ext
  3037. EXEEXT=$ac_cv_exeext
  3038. ac_exeext=$EXEEXT
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3040. $as_echo_n "checking for suffix of object files... " >&6; }
  3041. if test "${ac_cv_objext+set}" = set; then :
  3042. $as_echo_n "(cached) " >&6
  3043. else
  3044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3045. /* end confdefs.h. */
  3046. int
  3047. main ()
  3048. {
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. rm -f conftest.o conftest.obj
  3054. if { { ac_try="$ac_compile"
  3055. case "(($ac_try" in
  3056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3057. *) ac_try_echo=$ac_try;;
  3058. esac
  3059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3060. $as_echo "$ac_try_echo"; } >&5
  3061. (eval "$ac_compile") 2>&5
  3062. ac_status=$?
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3064. test $ac_status = 0; }; then :
  3065. for ac_file in conftest.o conftest.obj conftest.*; do
  3066. test -f "$ac_file" || continue;
  3067. case $ac_file in
  3068. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3069. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3070. break;;
  3071. esac
  3072. done
  3073. else
  3074. $as_echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. as_fn_error "cannot compute suffix of object files: cannot compile
  3079. See \`config.log' for more details." "$LINENO" 5; }
  3080. fi
  3081. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3082. fi
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3084. $as_echo "$ac_cv_objext" >&6; }
  3085. OBJEXT=$ac_cv_objext
  3086. ac_objext=$OBJEXT
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3088. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3089. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3090. $as_echo_n "(cached) " >&6
  3091. else
  3092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3093. /* end confdefs.h. */
  3094. int
  3095. main ()
  3096. {
  3097. #ifndef __GNUC__
  3098. choke me
  3099. #endif
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. if ac_fn_c_try_compile "$LINENO"; then :
  3105. ac_compiler_gnu=yes
  3106. else
  3107. ac_compiler_gnu=no
  3108. fi
  3109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3110. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3111. fi
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3113. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3114. if test $ac_compiler_gnu = yes; then
  3115. GCC=yes
  3116. else
  3117. GCC=
  3118. fi
  3119. ac_test_CFLAGS=${CFLAGS+set}
  3120. ac_save_CFLAGS=$CFLAGS
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3122. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3123. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3124. $as_echo_n "(cached) " >&6
  3125. else
  3126. ac_save_c_werror_flag=$ac_c_werror_flag
  3127. ac_c_werror_flag=yes
  3128. ac_cv_prog_cc_g=no
  3129. CFLAGS="-g"
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. int
  3133. main ()
  3134. {
  3135. ;
  3136. return 0;
  3137. }
  3138. _ACEOF
  3139. if ac_fn_c_try_compile "$LINENO"; then :
  3140. ac_cv_prog_cc_g=yes
  3141. else
  3142. CFLAGS=""
  3143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3144. /* end confdefs.h. */
  3145. int
  3146. main ()
  3147. {
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. if ac_fn_c_try_compile "$LINENO"; then :
  3153. else
  3154. ac_c_werror_flag=$ac_save_c_werror_flag
  3155. CFLAGS="-g"
  3156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3157. /* end confdefs.h. */
  3158. int
  3159. main ()
  3160. {
  3161. ;
  3162. return 0;
  3163. }
  3164. _ACEOF
  3165. if ac_fn_c_try_compile "$LINENO"; then :
  3166. ac_cv_prog_cc_g=yes
  3167. fi
  3168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3169. fi
  3170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3171. fi
  3172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3173. ac_c_werror_flag=$ac_save_c_werror_flag
  3174. fi
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3176. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3177. if test "$ac_test_CFLAGS" = set; then
  3178. CFLAGS=$ac_save_CFLAGS
  3179. elif test $ac_cv_prog_cc_g = yes; then
  3180. if test "$GCC" = yes; then
  3181. CFLAGS="-g -O2"
  3182. else
  3183. CFLAGS="-g"
  3184. fi
  3185. else
  3186. if test "$GCC" = yes; then
  3187. CFLAGS="-O2"
  3188. else
  3189. CFLAGS=
  3190. fi
  3191. fi
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3193. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3194. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. ac_cv_prog_cc_c89=no
  3198. ac_save_CC=$CC
  3199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3200. /* end confdefs.h. */
  3201. #include <stdarg.h>
  3202. #include <stdio.h>
  3203. #include <sys/types.h>
  3204. #include <sys/stat.h>
  3205. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3206. struct buf { int x; };
  3207. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3208. static char *e (p, i)
  3209. char **p;
  3210. int i;
  3211. {
  3212. return p[i];
  3213. }
  3214. static char *f (char * (*g) (char **, int), char **p, ...)
  3215. {
  3216. char *s;
  3217. va_list v;
  3218. va_start (v,p);
  3219. s = g (p, va_arg (v,int));
  3220. va_end (v);
  3221. return s;
  3222. }
  3223. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3224. function prototypes and stuff, but not '\xHH' hex character constants.
  3225. These don't provoke an error unfortunately, instead are silently treated
  3226. as 'x'. The following induces an error, until -std is added to get
  3227. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3228. array size at least. It's necessary to write '\x00'==0 to get something
  3229. that's true only with -std. */
  3230. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3231. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3232. inside strings and character constants. */
  3233. #define FOO(x) 'x'
  3234. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3235. int test (int i, double x);
  3236. struct s1 {int (*f) (int a);};
  3237. struct s2 {int (*f) (double a);};
  3238. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3239. int argc;
  3240. char **argv;
  3241. int
  3242. main ()
  3243. {
  3244. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3245. ;
  3246. return 0;
  3247. }
  3248. _ACEOF
  3249. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3250. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3251. do
  3252. CC="$ac_save_CC $ac_arg"
  3253. if ac_fn_c_try_compile "$LINENO"; then :
  3254. ac_cv_prog_cc_c89=$ac_arg
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext
  3257. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3258. done
  3259. rm -f conftest.$ac_ext
  3260. CC=$ac_save_CC
  3261. fi
  3262. # AC_CACHE_VAL
  3263. case "x$ac_cv_prog_cc_c89" in
  3264. x)
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3266. $as_echo "none needed" >&6; } ;;
  3267. xno)
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3269. $as_echo "unsupported" >&6; } ;;
  3270. *)
  3271. CC="$CC $ac_cv_prog_cc_c89"
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3273. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3274. esac
  3275. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3276. fi
  3277. ac_ext=c
  3278. ac_cpp='$CPP $CPPFLAGS'
  3279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3282. ac_ext=cpp
  3283. ac_cpp='$CXXCPP $CPPFLAGS'
  3284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3287. if test -z "$CXX"; then
  3288. if test -n "$CCC"; then
  3289. CXX=$CCC
  3290. else
  3291. if test -n "$ac_tool_prefix"; then
  3292. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3293. do
  3294. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3295. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3297. $as_echo_n "checking for $ac_word... " >&6; }
  3298. if test "${ac_cv_prog_CXX+set}" = set; then :
  3299. $as_echo_n "(cached) " >&6
  3300. else
  3301. if test -n "$CXX"; then
  3302. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3303. else
  3304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3305. for as_dir in $PATH
  3306. do
  3307. IFS=$as_save_IFS
  3308. test -z "$as_dir" && as_dir=.
  3309. for ac_exec_ext in '' $ac_executable_extensions; do
  3310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3311. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3313. break 2
  3314. fi
  3315. done
  3316. done
  3317. IFS=$as_save_IFS
  3318. fi
  3319. fi
  3320. CXX=$ac_cv_prog_CXX
  3321. if test -n "$CXX"; then
  3322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3323. $as_echo "$CXX" >&6; }
  3324. else
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3326. $as_echo "no" >&6; }
  3327. fi
  3328. test -n "$CXX" && break
  3329. done
  3330. fi
  3331. if test -z "$CXX"; then
  3332. ac_ct_CXX=$CXX
  3333. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3334. do
  3335. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3336. set dummy $ac_prog; ac_word=$2
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3338. $as_echo_n "checking for $ac_word... " >&6; }
  3339. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3340. $as_echo_n "(cached) " >&6
  3341. else
  3342. if test -n "$ac_ct_CXX"; then
  3343. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3344. else
  3345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3346. for as_dir in $PATH
  3347. do
  3348. IFS=$as_save_IFS
  3349. test -z "$as_dir" && as_dir=.
  3350. for ac_exec_ext in '' $ac_executable_extensions; do
  3351. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3352. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3354. break 2
  3355. fi
  3356. done
  3357. done
  3358. IFS=$as_save_IFS
  3359. fi
  3360. fi
  3361. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3362. if test -n "$ac_ct_CXX"; then
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3364. $as_echo "$ac_ct_CXX" >&6; }
  3365. else
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3367. $as_echo "no" >&6; }
  3368. fi
  3369. test -n "$ac_ct_CXX" && break
  3370. done
  3371. if test "x$ac_ct_CXX" = x; then
  3372. CXX="g++"
  3373. else
  3374. case $cross_compiling:$ac_tool_warned in
  3375. yes:)
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3377. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3378. ac_tool_warned=yes ;;
  3379. esac
  3380. CXX=$ac_ct_CXX
  3381. fi
  3382. fi
  3383. fi
  3384. fi
  3385. # Provide some information about the compiler.
  3386. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3387. set X $ac_compile
  3388. ac_compiler=$2
  3389. for ac_option in --version -v -V -qversion; do
  3390. { { ac_try="$ac_compiler $ac_option >&5"
  3391. case "(($ac_try" in
  3392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3393. *) ac_try_echo=$ac_try;;
  3394. esac
  3395. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3396. $as_echo "$ac_try_echo"; } >&5
  3397. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3398. ac_status=$?
  3399. if test -s conftest.err; then
  3400. sed '10a\
  3401. ... rest of stderr output deleted ...
  3402. 10q' conftest.err >conftest.er1
  3403. cat conftest.er1 >&5
  3404. rm -f conftest.er1 conftest.err
  3405. fi
  3406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3407. test $ac_status = 0; }
  3408. done
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3410. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3411. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3415. /* end confdefs.h. */
  3416. int
  3417. main ()
  3418. {
  3419. #ifndef __GNUC__
  3420. choke me
  3421. #endif
  3422. ;
  3423. return 0;
  3424. }
  3425. _ACEOF
  3426. if ac_fn_cxx_try_compile "$LINENO"; then :
  3427. ac_compiler_gnu=yes
  3428. else
  3429. ac_compiler_gnu=no
  3430. fi
  3431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3432. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3433. fi
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3435. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3436. if test $ac_compiler_gnu = yes; then
  3437. GXX=yes
  3438. else
  3439. GXX=
  3440. fi
  3441. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3442. ac_save_CXXFLAGS=$CXXFLAGS
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3444. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3445. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3446. $as_echo_n "(cached) " >&6
  3447. else
  3448. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3449. ac_cxx_werror_flag=yes
  3450. ac_cv_prog_cxx_g=no
  3451. CXXFLAGS="-g"
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. int
  3455. main ()
  3456. {
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. if ac_fn_cxx_try_compile "$LINENO"; then :
  3462. ac_cv_prog_cxx_g=yes
  3463. else
  3464. CXXFLAGS=""
  3465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3466. /* end confdefs.h. */
  3467. int
  3468. main ()
  3469. {
  3470. ;
  3471. return 0;
  3472. }
  3473. _ACEOF
  3474. if ac_fn_cxx_try_compile "$LINENO"; then :
  3475. else
  3476. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3477. CXXFLAGS="-g"
  3478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3479. /* end confdefs.h. */
  3480. int
  3481. main ()
  3482. {
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. if ac_fn_cxx_try_compile "$LINENO"; then :
  3488. ac_cv_prog_cxx_g=yes
  3489. fi
  3490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3491. fi
  3492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3493. fi
  3494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3495. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3496. fi
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3498. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3499. if test "$ac_test_CXXFLAGS" = set; then
  3500. CXXFLAGS=$ac_save_CXXFLAGS
  3501. elif test $ac_cv_prog_cxx_g = yes; then
  3502. if test "$GXX" = yes; then
  3503. CXXFLAGS="-g -O2"
  3504. else
  3505. CXXFLAGS="-g"
  3506. fi
  3507. else
  3508. if test "$GXX" = yes; then
  3509. CXXFLAGS="-O2"
  3510. else
  3511. CXXFLAGS=
  3512. fi
  3513. fi
  3514. ac_ext=c
  3515. ac_cpp='$CPP $CPPFLAGS'
  3516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3519. if test -n "$ac_tool_prefix"; then
  3520. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3521. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3523. $as_echo_n "checking for $ac_word... " >&6; }
  3524. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. if test -n "$RANLIB"; then
  3528. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3529. else
  3530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3531. for as_dir in $PATH
  3532. do
  3533. IFS=$as_save_IFS
  3534. test -z "$as_dir" && as_dir=.
  3535. for ac_exec_ext in '' $ac_executable_extensions; do
  3536. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3537. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3539. break 2
  3540. fi
  3541. done
  3542. done
  3543. IFS=$as_save_IFS
  3544. fi
  3545. fi
  3546. RANLIB=$ac_cv_prog_RANLIB
  3547. if test -n "$RANLIB"; then
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  3549. $as_echo "$RANLIB" >&6; }
  3550. else
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3552. $as_echo "no" >&6; }
  3553. fi
  3554. fi
  3555. if test -z "$ac_cv_prog_RANLIB"; then
  3556. ac_ct_RANLIB=$RANLIB
  3557. # Extract the first word of "ranlib", so it can be a program name with args.
  3558. set dummy ranlib; ac_word=$2
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3560. $as_echo_n "checking for $ac_word... " >&6; }
  3561. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  3562. $as_echo_n "(cached) " >&6
  3563. else
  3564. if test -n "$ac_ct_RANLIB"; then
  3565. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3566. else
  3567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3568. for as_dir in $PATH
  3569. do
  3570. IFS=$as_save_IFS
  3571. test -z "$as_dir" && as_dir=.
  3572. for ac_exec_ext in '' $ac_executable_extensions; do
  3573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3574. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3576. break 2
  3577. fi
  3578. done
  3579. done
  3580. IFS=$as_save_IFS
  3581. fi
  3582. fi
  3583. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3584. if test -n "$ac_ct_RANLIB"; then
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  3586. $as_echo "$ac_ct_RANLIB" >&6; }
  3587. else
  3588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3589. $as_echo "no" >&6; }
  3590. fi
  3591. if test "x$ac_ct_RANLIB" = x; then
  3592. RANLIB=":"
  3593. else
  3594. case $cross_compiling:$ac_tool_warned in
  3595. yes:)
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3597. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3598. ac_tool_warned=yes ;;
  3599. esac
  3600. RANLIB=$ac_ct_RANLIB
  3601. fi
  3602. else
  3603. RANLIB="$ac_cv_prog_RANLIB"
  3604. fi
  3605. ac_ext=c
  3606. ac_cpp='$CPP $CPPFLAGS'
  3607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3611. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3612. # On Suns, sometimes $CPP names a directory.
  3613. if test -n "$CPP" && test -d "$CPP"; then
  3614. CPP=
  3615. fi
  3616. if test -z "$CPP"; then
  3617. if test "${ac_cv_prog_CPP+set}" = set; then :
  3618. $as_echo_n "(cached) " >&6
  3619. else
  3620. # Double quotes because CPP needs to be expanded
  3621. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3622. do
  3623. ac_preproc_ok=false
  3624. for ac_c_preproc_warn_flag in '' yes
  3625. do
  3626. # Use a header file that comes with gcc, so configuring glibc
  3627. # with a fresh cross-compiler works.
  3628. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3629. # <limits.h> exists even on freestanding compilers.
  3630. # On the NeXT, cc -E runs the code through the compiler's parser,
  3631. # not just through cpp. "Syntax error" is here to catch this case.
  3632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3633. /* end confdefs.h. */
  3634. #ifdef __STDC__
  3635. # include <limits.h>
  3636. #else
  3637. # include <assert.h>
  3638. #endif
  3639. Syntax error
  3640. _ACEOF
  3641. if ac_fn_c_try_cpp "$LINENO"; then :
  3642. else
  3643. # Broken: fails on valid input.
  3644. continue
  3645. fi
  3646. rm -f conftest.err conftest.$ac_ext
  3647. # OK, works on sane cases. Now check whether nonexistent headers
  3648. # can be detected and how.
  3649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3650. /* end confdefs.h. */
  3651. #include <ac_nonexistent.h>
  3652. _ACEOF
  3653. if ac_fn_c_try_cpp "$LINENO"; then :
  3654. # Broken: success on invalid input.
  3655. continue
  3656. else
  3657. # Passes both tests.
  3658. ac_preproc_ok=:
  3659. break
  3660. fi
  3661. rm -f conftest.err conftest.$ac_ext
  3662. done
  3663. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3664. rm -f conftest.err conftest.$ac_ext
  3665. if $ac_preproc_ok; then :
  3666. break
  3667. fi
  3668. done
  3669. ac_cv_prog_CPP=$CPP
  3670. fi
  3671. CPP=$ac_cv_prog_CPP
  3672. else
  3673. ac_cv_prog_CPP=$CPP
  3674. fi
  3675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3676. $as_echo "$CPP" >&6; }
  3677. ac_preproc_ok=false
  3678. for ac_c_preproc_warn_flag in '' yes
  3679. do
  3680. # Use a header file that comes with gcc, so configuring glibc
  3681. # with a fresh cross-compiler works.
  3682. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3683. # <limits.h> exists even on freestanding compilers.
  3684. # On the NeXT, cc -E runs the code through the compiler's parser,
  3685. # not just through cpp. "Syntax error" is here to catch this case.
  3686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3687. /* end confdefs.h. */
  3688. #ifdef __STDC__
  3689. # include <limits.h>
  3690. #else
  3691. # include <assert.h>
  3692. #endif
  3693. Syntax error
  3694. _ACEOF
  3695. if ac_fn_c_try_cpp "$LINENO"; then :
  3696. else
  3697. # Broken: fails on valid input.
  3698. continue
  3699. fi
  3700. rm -f conftest.err conftest.$ac_ext
  3701. # OK, works on sane cases. Now check whether nonexistent headers
  3702. # can be detected and how.
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. #include <ac_nonexistent.h>
  3706. _ACEOF
  3707. if ac_fn_c_try_cpp "$LINENO"; then :
  3708. # Broken: success on invalid input.
  3709. continue
  3710. else
  3711. # Passes both tests.
  3712. ac_preproc_ok=:
  3713. break
  3714. fi
  3715. rm -f conftest.err conftest.$ac_ext
  3716. done
  3717. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3718. rm -f conftest.err conftest.$ac_ext
  3719. if $ac_preproc_ok; then :
  3720. else
  3721. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3722. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3723. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3724. See \`config.log' for more details." "$LINENO" 5; }
  3725. fi
  3726. ac_ext=c
  3727. ac_cpp='$CPP $CPPFLAGS'
  3728. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3729. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3730. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3732. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3733. if test "${ac_cv_path_GREP+set}" = set; then :
  3734. $as_echo_n "(cached) " >&6
  3735. else
  3736. if test -z "$GREP"; then
  3737. ac_path_GREP_found=false
  3738. # Loop through the user's path and test for each of PROGNAME-LIST
  3739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3740. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3741. do
  3742. IFS=$as_save_IFS
  3743. test -z "$as_dir" && as_dir=.
  3744. for ac_prog in grep ggrep; do
  3745. for ac_exec_ext in '' $ac_executable_extensions; do
  3746. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3747. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3748. # Check for GNU ac_path_GREP and select it if it is found.
  3749. # Check for GNU $ac_path_GREP
  3750. case `"$ac_path_GREP" --version 2>&1` in
  3751. *GNU*)
  3752. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3753. *)
  3754. ac_count=0
  3755. $as_echo_n 0123456789 >"conftest.in"
  3756. while :
  3757. do
  3758. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3759. mv "conftest.tmp" "conftest.in"
  3760. cp "conftest.in" "conftest.nl"
  3761. $as_echo 'GREP' >> "conftest.nl"
  3762. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3763. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3764. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3765. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3766. # Best one so far, save it but keep looking for a better one
  3767. ac_cv_path_GREP="$ac_path_GREP"
  3768. ac_path_GREP_max=$ac_count
  3769. fi
  3770. # 10*(2^10) chars as input seems more than enough
  3771. test $ac_count -gt 10 && break
  3772. done
  3773. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3774. esac
  3775. $ac_path_GREP_found && break 3
  3776. done
  3777. done
  3778. done
  3779. IFS=$as_save_IFS
  3780. if test -z "$ac_cv_path_GREP"; then
  3781. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3782. fi
  3783. else
  3784. ac_cv_path_GREP=$GREP
  3785. fi
  3786. fi
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3788. $as_echo "$ac_cv_path_GREP" >&6; }
  3789. GREP="$ac_cv_path_GREP"
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3791. $as_echo_n "checking for egrep... " >&6; }
  3792. if test "${ac_cv_path_EGREP+set}" = set; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3796. then ac_cv_path_EGREP="$GREP -E"
  3797. else
  3798. if test -z "$EGREP"; then
  3799. ac_path_EGREP_found=false
  3800. # Loop through the user's path and test for each of PROGNAME-LIST
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_prog in egrep; do
  3807. for ac_exec_ext in '' $ac_executable_extensions; do
  3808. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3809. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3810. # Check for GNU ac_path_EGREP and select it if it is found.
  3811. # Check for GNU $ac_path_EGREP
  3812. case `"$ac_path_EGREP" --version 2>&1` in
  3813. *GNU*)
  3814. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3815. *)
  3816. ac_count=0
  3817. $as_echo_n 0123456789 >"conftest.in"
  3818. while :
  3819. do
  3820. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3821. mv "conftest.tmp" "conftest.in"
  3822. cp "conftest.in" "conftest.nl"
  3823. $as_echo 'EGREP' >> "conftest.nl"
  3824. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3825. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3826. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3827. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3828. # Best one so far, save it but keep looking for a better one
  3829. ac_cv_path_EGREP="$ac_path_EGREP"
  3830. ac_path_EGREP_max=$ac_count
  3831. fi
  3832. # 10*(2^10) chars as input seems more than enough
  3833. test $ac_count -gt 10 && break
  3834. done
  3835. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3836. esac
  3837. $ac_path_EGREP_found && break 3
  3838. done
  3839. done
  3840. done
  3841. IFS=$as_save_IFS
  3842. if test -z "$ac_cv_path_EGREP"; then
  3843. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3844. fi
  3845. else
  3846. ac_cv_path_EGREP=$EGREP
  3847. fi
  3848. fi
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3851. $as_echo "$ac_cv_path_EGREP" >&6; }
  3852. EGREP="$ac_cv_path_EGREP"
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3854. $as_echo_n "checking for ANSI C header files... " >&6; }
  3855. if test "${ac_cv_header_stdc+set}" = set; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3859. /* end confdefs.h. */
  3860. #include <stdlib.h>
  3861. #include <stdarg.h>
  3862. #include <string.h>
  3863. #include <float.h>
  3864. int
  3865. main ()
  3866. {
  3867. ;
  3868. return 0;
  3869. }
  3870. _ACEOF
  3871. if ac_fn_c_try_compile "$LINENO"; then :
  3872. ac_cv_header_stdc=yes
  3873. else
  3874. ac_cv_header_stdc=no
  3875. fi
  3876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3877. if test $ac_cv_header_stdc = yes; then
  3878. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3880. /* end confdefs.h. */
  3881. #include <string.h>
  3882. _ACEOF
  3883. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3884. $EGREP "memchr" >/dev/null 2>&1; then :
  3885. else
  3886. ac_cv_header_stdc=no
  3887. fi
  3888. rm -f conftest*
  3889. fi
  3890. if test $ac_cv_header_stdc = yes; then
  3891. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3893. /* end confdefs.h. */
  3894. #include <stdlib.h>
  3895. _ACEOF
  3896. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3897. $EGREP "free" >/dev/null 2>&1; then :
  3898. else
  3899. ac_cv_header_stdc=no
  3900. fi
  3901. rm -f conftest*
  3902. fi
  3903. if test $ac_cv_header_stdc = yes; then
  3904. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3905. if test "$cross_compiling" = yes; then :
  3906. :
  3907. else
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. #include <ctype.h>
  3911. #include <stdlib.h>
  3912. #if ((' ' & 0x0FF) == 0x020)
  3913. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3914. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3915. #else
  3916. # define ISLOWER(c) \
  3917. (('a' <= (c) && (c) <= 'i') \
  3918. || ('j' <= (c) && (c) <= 'r') \
  3919. || ('s' <= (c) && (c) <= 'z'))
  3920. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3921. #endif
  3922. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3923. int
  3924. main ()
  3925. {
  3926. int i;
  3927. for (i = 0; i < 256; i++)
  3928. if (XOR (islower (i), ISLOWER (i))
  3929. || toupper (i) != TOUPPER (i))
  3930. return 2;
  3931. return 0;
  3932. }
  3933. _ACEOF
  3934. if ac_fn_c_try_run "$LINENO"; then :
  3935. else
  3936. ac_cv_header_stdc=no
  3937. fi
  3938. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3939. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3940. fi
  3941. fi
  3942. fi
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3944. $as_echo "$ac_cv_header_stdc" >&6; }
  3945. if test $ac_cv_header_stdc = yes; then
  3946. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3947. fi
  3948. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3949. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3950. inttypes.h stdint.h unistd.h
  3951. do :
  3952. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3953. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3954. "
  3955. eval as_val=\$$as_ac_Header
  3956. if test "x$as_val" = x""yes; then :
  3957. cat >>confdefs.h <<_ACEOF
  3958. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3959. _ACEOF
  3960. fi
  3961. done
  3962. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3963. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3964. MINIX=yes
  3965. else
  3966. MINIX=
  3967. fi
  3968. if test "$MINIX" = yes; then
  3969. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3970. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3971. $as_echo "#define _MINIX 1" >>confdefs.h
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3974. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3975. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3976. $as_echo_n "(cached) " >&6
  3977. else
  3978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3979. /* end confdefs.h. */
  3980. # define __EXTENSIONS__ 1
  3981. $ac_includes_default
  3982. int
  3983. main ()
  3984. {
  3985. ;
  3986. return 0;
  3987. }
  3988. _ACEOF
  3989. if ac_fn_c_try_compile "$LINENO"; then :
  3990. ac_cv_safe_to_define___extensions__=yes
  3991. else
  3992. ac_cv_safe_to_define___extensions__=no
  3993. fi
  3994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3997. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3998. test $ac_cv_safe_to_define___extensions__ = yes &&
  3999. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4000. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4001. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4002. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4003. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4004. # Check whether --enable-largefile was given.
  4005. if test "${enable_largefile+set}" = set; then :
  4006. enableval=$enable_largefile;
  4007. fi
  4008. if test "$enable_largefile" != no; then
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4010. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4011. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  4012. $as_echo_n "(cached) " >&6
  4013. else
  4014. ac_cv_sys_largefile_CC=no
  4015. if test "$GCC" != yes; then
  4016. ac_save_CC=$CC
  4017. while :; do
  4018. # IRIX 6.2 and later do not support large files by default,
  4019. # so use the C compiler's -n32 option if that helps.
  4020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4021. /* end confdefs.h. */
  4022. #include <sys/types.h>
  4023. /* Check that off_t can represent 2**63 - 1 correctly.
  4024. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4025. since some C++ compilers masquerading as C compilers
  4026. incorrectly reject 9223372036854775807. */
  4027. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4028. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4029. && LARGE_OFF_T % 2147483647 == 1)
  4030. ? 1 : -1];
  4031. int
  4032. main ()
  4033. {
  4034. ;
  4035. return 0;
  4036. }
  4037. _ACEOF
  4038. if ac_fn_c_try_compile "$LINENO"; then :
  4039. break
  4040. fi
  4041. rm -f core conftest.err conftest.$ac_objext
  4042. CC="$CC -n32"
  4043. if ac_fn_c_try_compile "$LINENO"; then :
  4044. ac_cv_sys_largefile_CC=' -n32'; break
  4045. fi
  4046. rm -f core conftest.err conftest.$ac_objext
  4047. break
  4048. done
  4049. CC=$ac_save_CC
  4050. rm -f conftest.$ac_ext
  4051. fi
  4052. fi
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4054. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4055. if test "$ac_cv_sys_largefile_CC" != no; then
  4056. CC=$CC$ac_cv_sys_largefile_CC
  4057. fi
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4059. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4060. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  4061. $as_echo_n "(cached) " >&6
  4062. else
  4063. while :; do
  4064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4065. /* end confdefs.h. */
  4066. #include <sys/types.h>
  4067. /* Check that off_t can represent 2**63 - 1 correctly.
  4068. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4069. since some C++ compilers masquerading as C compilers
  4070. incorrectly reject 9223372036854775807. */
  4071. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4072. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4073. && LARGE_OFF_T % 2147483647 == 1)
  4074. ? 1 : -1];
  4075. int
  4076. main ()
  4077. {
  4078. ;
  4079. return 0;
  4080. }
  4081. _ACEOF
  4082. if ac_fn_c_try_compile "$LINENO"; then :
  4083. ac_cv_sys_file_offset_bits=no; break
  4084. fi
  4085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4087. /* end confdefs.h. */
  4088. #define _FILE_OFFSET_BITS 64
  4089. #include <sys/types.h>
  4090. /* Check that off_t can represent 2**63 - 1 correctly.
  4091. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4092. since some C++ compilers masquerading as C compilers
  4093. incorrectly reject 9223372036854775807. */
  4094. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4095. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4096. && LARGE_OFF_T % 2147483647 == 1)
  4097. ? 1 : -1];
  4098. int
  4099. main ()
  4100. {
  4101. ;
  4102. return 0;
  4103. }
  4104. _ACEOF
  4105. if ac_fn_c_try_compile "$LINENO"; then :
  4106. ac_cv_sys_file_offset_bits=64; break
  4107. fi
  4108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4109. ac_cv_sys_file_offset_bits=unknown
  4110. break
  4111. done
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4114. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4115. case $ac_cv_sys_file_offset_bits in #(
  4116. no | unknown) ;;
  4117. *)
  4118. cat >>confdefs.h <<_ACEOF
  4119. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4120. _ACEOF
  4121. ;;
  4122. esac
  4123. rm -rf conftest*
  4124. if test $ac_cv_sys_file_offset_bits = unknown; then
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  4126. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  4127. if test "${ac_cv_sys_large_files+set}" = set; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. while :; do
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. #include <sys/types.h>
  4134. /* Check that off_t can represent 2**63 - 1 correctly.
  4135. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4136. since some C++ compilers masquerading as C compilers
  4137. incorrectly reject 9223372036854775807. */
  4138. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4139. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4140. && LARGE_OFF_T % 2147483647 == 1)
  4141. ? 1 : -1];
  4142. int
  4143. main ()
  4144. {
  4145. ;
  4146. return 0;
  4147. }
  4148. _ACEOF
  4149. if ac_fn_c_try_compile "$LINENO"; then :
  4150. ac_cv_sys_large_files=no; break
  4151. fi
  4152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4154. /* end confdefs.h. */
  4155. #define _LARGE_FILES 1
  4156. #include <sys/types.h>
  4157. /* Check that off_t can represent 2**63 - 1 correctly.
  4158. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4159. since some C++ compilers masquerading as C compilers
  4160. incorrectly reject 9223372036854775807. */
  4161. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4162. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4163. && LARGE_OFF_T % 2147483647 == 1)
  4164. ? 1 : -1];
  4165. int
  4166. main ()
  4167. {
  4168. ;
  4169. return 0;
  4170. }
  4171. _ACEOF
  4172. if ac_fn_c_try_compile "$LINENO"; then :
  4173. ac_cv_sys_large_files=1; break
  4174. fi
  4175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4176. ac_cv_sys_large_files=unknown
  4177. break
  4178. done
  4179. fi
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4181. $as_echo "$ac_cv_sys_large_files" >&6; }
  4182. case $ac_cv_sys_large_files in #(
  4183. no | unknown) ;;
  4184. *)
  4185. cat >>confdefs.h <<_ACEOF
  4186. #define _LARGE_FILES $ac_cv_sys_large_files
  4187. _ACEOF
  4188. ;;
  4189. esac
  4190. rm -rf conftest*
  4191. fi
  4192. fi
  4193. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  4194. for ac_prog in aclocal
  4195. do
  4196. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4197. set dummy $ac_prog; ac_word=$2
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4199. $as_echo_n "checking for $ac_word... " >&6; }
  4200. if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. if test -n "$ACLOCAL"; then
  4204. ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
  4205. else
  4206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4207. for as_dir in $PATH
  4208. do
  4209. IFS=$as_save_IFS
  4210. test -z "$as_dir" && as_dir=.
  4211. for ac_exec_ext in '' $ac_executable_extensions; do
  4212. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4213. ac_cv_prog_ACLOCAL="$ac_prog"
  4214. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4215. break 2
  4216. fi
  4217. done
  4218. done
  4219. IFS=$as_save_IFS
  4220. fi
  4221. fi
  4222. ACLOCAL=$ac_cv_prog_ACLOCAL
  4223. if test -n "$ACLOCAL"; then
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
  4225. $as_echo "$ACLOCAL" >&6; }
  4226. else
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4228. $as_echo "no" >&6; }
  4229. fi
  4230. test -n "$ACLOCAL" && break
  4231. done
  4232. test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
  4233. for ac_prog in autoconf
  4234. do
  4235. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4236. set dummy $ac_prog; ac_word=$2
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4238. $as_echo_n "checking for $ac_word... " >&6; }
  4239. if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. if test -n "$AUTOCONF"; then
  4243. ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
  4244. else
  4245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4246. for as_dir in $PATH
  4247. do
  4248. IFS=$as_save_IFS
  4249. test -z "$as_dir" && as_dir=.
  4250. for ac_exec_ext in '' $ac_executable_extensions; do
  4251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4252. ac_cv_prog_AUTOCONF="$ac_prog"
  4253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4254. break 2
  4255. fi
  4256. done
  4257. done
  4258. IFS=$as_save_IFS
  4259. fi
  4260. fi
  4261. AUTOCONF=$ac_cv_prog_AUTOCONF
  4262. if test -n "$AUTOCONF"; then
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
  4264. $as_echo "$AUTOCONF" >&6; }
  4265. else
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4267. $as_echo "no" >&6; }
  4268. fi
  4269. test -n "$AUTOCONF" && break
  4270. done
  4271. test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
  4272. for ac_prog in autoheader
  4273. do
  4274. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4275. set dummy $ac_prog; ac_word=$2
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4277. $as_echo_n "checking for $ac_word... " >&6; }
  4278. if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
  4279. $as_echo_n "(cached) " >&6
  4280. else
  4281. if test -n "$AUTOHEADER"; then
  4282. ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
  4283. else
  4284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4285. for as_dir in $PATH
  4286. do
  4287. IFS=$as_save_IFS
  4288. test -z "$as_dir" && as_dir=.
  4289. for ac_exec_ext in '' $ac_executable_extensions; do
  4290. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4291. ac_cv_prog_AUTOHEADER="$ac_prog"
  4292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4293. break 2
  4294. fi
  4295. done
  4296. done
  4297. IFS=$as_save_IFS
  4298. fi
  4299. fi
  4300. AUTOHEADER=$ac_cv_prog_AUTOHEADER
  4301. if test -n "$AUTOHEADER"; then
  4302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
  4303. $as_echo "$AUTOHEADER" >&6; }
  4304. else
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4306. $as_echo "no" >&6; }
  4307. fi
  4308. test -n "$AUTOHEADER" && break
  4309. done
  4310. test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
  4311. # Figure out what compiler warnings we can enable.
  4312. # See config/warnings.m4 for details.
  4313. warn=
  4314. save_CFLAGS="$CFLAGS"
  4315. for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
  4316. -Wmissing-format-attribute; do
  4317. # Do the check with the no- prefix removed since gcc silently
  4318. # accepts any -Wno-* option on purpose
  4319. case $real_option in
  4320. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  4321. *) option=$real_option ;;
  4322. esac
  4323. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  4325. $as_echo_n "checking whether $CC supports $option... " >&6; }
  4326. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  4327. $as_echo_n "(cached) " >&6
  4328. else
  4329. CFLAGS="$option"
  4330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4331. /* end confdefs.h. */
  4332. int
  4333. main ()
  4334. {
  4335. ;
  4336. return 0;
  4337. }
  4338. _ACEOF
  4339. if ac_fn_c_try_compile "$LINENO"; then :
  4340. eval "$as_acx_Woption=yes"
  4341. else
  4342. eval "$as_acx_Woption=no"
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4345. fi
  4346. eval ac_res=\$$as_acx_Woption
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4348. $as_echo "$ac_res" >&6; }
  4349. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  4350. warn="$warn${warn:+ }$real_option"
  4351. fi
  4352. done
  4353. CFLAGS="$save_CFLAGS"
  4354. c_warn=
  4355. save_CFLAGS="$CFLAGS"
  4356. for real_option in -Wstrict-prototypes -Wmissing-prototypes \
  4357. -Wold-style-definition -Wc++-compat; do
  4358. # Do the check with the no- prefix removed since gcc silently
  4359. # accepts any -Wno-* option on purpose
  4360. case $real_option in
  4361. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  4362. *) option=$real_option ;;
  4363. esac
  4364. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  4366. $as_echo_n "checking whether $CC supports $option... " >&6; }
  4367. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  4368. $as_echo_n "(cached) " >&6
  4369. else
  4370. CFLAGS="$option"
  4371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4372. /* end confdefs.h. */
  4373. int
  4374. main ()
  4375. {
  4376. ;
  4377. return 0;
  4378. }
  4379. _ACEOF
  4380. if ac_fn_c_try_compile "$LINENO"; then :
  4381. eval "$as_acx_Woption=yes"
  4382. else
  4383. eval "$as_acx_Woption=no"
  4384. fi
  4385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4386. fi
  4387. eval ac_res=\$$as_acx_Woption
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4389. $as_echo "$ac_res" >&6; }
  4390. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  4391. c_warn="$c_warn${c_warn:+ }$real_option"
  4392. fi
  4393. done
  4394. CFLAGS="$save_CFLAGS"
  4395. WARN_PEDANTIC=
  4396. # Do the check with the no- prefix removed from the warning options
  4397. # since gcc silently accepts any -Wno-* option on purpose
  4398. if test "$GCC" = yes; then :
  4399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
  4400. $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
  4401. if test "${acx_cv_prog_cc_pedantic__Wlong_long+set}" = set; then :
  4402. $as_echo_n "(cached) " >&6
  4403. else
  4404. save_CFLAGS="$CFLAGS"
  4405. CFLAGS="-pedantic -Wlong-long"
  4406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4407. /* end confdefs.h. */
  4408. int
  4409. main ()
  4410. {
  4411. ;
  4412. return 0;
  4413. }
  4414. _ACEOF
  4415. if ac_fn_c_try_compile "$LINENO"; then :
  4416. acx_cv_prog_cc_pedantic__Wlong_long=yes
  4417. else
  4418. acx_cv_prog_cc_pedantic__Wlong_long=no
  4419. fi
  4420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4421. CFLAGS="$save_CFLAGS"
  4422. fi
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
  4424. $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
  4425. if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
  4426. WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
  4427. fi
  4428. fi
  4429. # Disable exceptions and RTTI if building with g++
  4430. noexception_flags=
  4431. save_CFLAGS="$CFLAGS"
  4432. for real_option in -fno-exceptions -fno-rtti; do
  4433. # Do the check with the no- prefix removed since gcc silently
  4434. # accepts any -Wno-* option on purpose
  4435. case $real_option in
  4436. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  4437. *) option=$real_option ;;
  4438. esac
  4439. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  4441. $as_echo_n "checking whether $CC supports $option... " >&6; }
  4442. if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. CFLAGS="$option"
  4446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4447. /* end confdefs.h. */
  4448. int
  4449. main ()
  4450. {
  4451. ;
  4452. return 0;
  4453. }
  4454. _ACEOF
  4455. if ac_fn_c_try_compile "$LINENO"; then :
  4456. eval "$as_acx_Woption=yes"
  4457. else
  4458. eval "$as_acx_Woption=no"
  4459. fi
  4460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4461. fi
  4462. eval ac_res=\$$as_acx_Woption
  4463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  4464. $as_echo "$ac_res" >&6; }
  4465. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  4466. noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
  4467. fi
  4468. done
  4469. CFLAGS="$save_CFLAGS"
  4470. # Only enable with --enable-werror-always until existing warnings are
  4471. # corrected.
  4472. WERROR=
  4473. # Check whether --enable-werror-always was given.
  4474. if test "${enable_werror_always+set}" = set; then :
  4475. enableval=$enable_werror_always;
  4476. else
  4477. enable_werror_always=no
  4478. fi
  4479. if test $enable_werror_always = yes; then :
  4480. WERROR="$WERROR${WERROR:+ }-Werror"
  4481. fi
  4482. # Dependency checking.
  4483. rm -rf .tst 2>/dev/null
  4484. mkdir .tst 2>/dev/null
  4485. if test -d .tst; then
  4486. am__leading_dot=.
  4487. else
  4488. am__leading_dot=_
  4489. fi
  4490. rmdir .tst 2>/dev/null
  4491. DEPDIR="${am__leading_dot}deps"
  4492. ac_config_commands="$ac_config_commands depdir"
  4493. ac_ext=cpp
  4494. ac_cpp='$CXXCPP $CPPFLAGS'
  4495. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4496. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4497. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4499. /* end confdefs.h. */
  4500. int i;
  4501. _ACEOF
  4502. if ac_fn_cxx_try_compile "$LINENO"; then :
  4503. else
  4504. as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
  4505. fi
  4506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4507. ac_ext=c
  4508. ac_cpp='$CPP $CPPFLAGS'
  4509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4512. depcc="$CXX" am_compiler_list=
  4513. am_depcomp=$ac_aux_dir/depcomp
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4515. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4516. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  4517. $as_echo_n "(cached) " >&6
  4518. else
  4519. if test -f "$am_depcomp"; then
  4520. # We make a subdir and do the tests there. Otherwise we can end up
  4521. # making bogus files that we don't know about and never remove. For
  4522. # instance it was reported that on HP-UX the gcc test will end up
  4523. # making a dummy file named `D' -- because `-MD' means `put the output
  4524. # in D'.
  4525. mkdir conftest.dir
  4526. # Copy depcomp to subdir because otherwise we won't find it if we're
  4527. # using a relative directory.
  4528. cp "$am_depcomp" conftest.dir
  4529. cd conftest.dir
  4530. # We will build objects and dependencies in a subdirectory because
  4531. # it helps to detect inapplicable dependency modes. For instance
  4532. # both Tru64's cc and ICC support -MD to output dependencies as a
  4533. # side effect of compilation, but ICC will put the dependencies in
  4534. # the current directory while Tru64 will put them in the object
  4535. # directory.
  4536. mkdir sub
  4537. am_cv_CXX_dependencies_compiler_type=none
  4538. if test "$am_compiler_list" = ""; then
  4539. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4540. fi
  4541. for depmode in $am_compiler_list; do
  4542. if test $depmode = none; then break; fi
  4543. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  4544. # Setup a source with many dependencies, because some compilers
  4545. # like to wrap large dependency lists on column 80 (with \), and
  4546. # we should not choose a depcomp mode which is confused by this.
  4547. #
  4548. # We need to recreate these files for each test, as the compiler may
  4549. # overwrite some of them when testing with obscure command lines.
  4550. # This happens at least with the AIX C compiler.
  4551. : > sub/conftest.c
  4552. for i in 1 2 3 4 5 6; do
  4553. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4554. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4555. # Solaris 8's {/usr,}/bin/sh.
  4556. touch sub/conftst$i.h
  4557. done
  4558. echo "include sub/conftest.Po" > confmf
  4559. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4560. # mode. It turns out that the SunPro C++ compiler does not properly
  4561. # handle `-M -o', and we need to detect this.
  4562. depcmd="depmode=$depmode \
  4563. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4564. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4565. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  4566. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  4567. if env $depcmd > conftest.err 2>&1 &&
  4568. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  4569. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  4570. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  4571. # icc doesn't choke on unknown options, it will just issue warnings
  4572. # or remarks (even with -Werror). So we grep stderr for any message
  4573. # that says an option was ignored or not supported.
  4574. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4575. # icc: Command line warning: ignoring option '-M'; no argument required
  4576. # The diagnosis changed in icc 8.0:
  4577. # icc: Command line remark: option '-MP' not supported
  4578. if (grep 'ignoring option' conftest.err ||
  4579. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4580. am_cv_CXX_dependencies_compiler_type=$depmode
  4581. $as_echo "$as_me:$LINENO: success" >&5
  4582. break
  4583. fi
  4584. fi
  4585. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  4586. sed -e 's/^/| /' < conftest.err >&5
  4587. done
  4588. cd ..
  4589. rm -rf conftest.dir
  4590. else
  4591. am_cv_CXX_dependencies_compiler_type=none
  4592. fi
  4593. fi
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4595. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4596. if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
  4597. then as_fn_error "no usable dependency style found" "$LINENO" 5
  4598. else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4599. fi
  4600. # Checks for header files.
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  4602. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  4603. if test "${ac_cv_header_time+set}" = set; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4607. /* end confdefs.h. */
  4608. #include <sys/types.h>
  4609. #include <sys/time.h>
  4610. #include <time.h>
  4611. int
  4612. main ()
  4613. {
  4614. if ((struct tm *) 0)
  4615. return 0;
  4616. ;
  4617. return 0;
  4618. }
  4619. _ACEOF
  4620. if ac_fn_c_try_compile "$LINENO"; then :
  4621. ac_cv_header_time=yes
  4622. else
  4623. ac_cv_header_time=no
  4624. fi
  4625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4626. fi
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  4628. $as_echo "$ac_cv_header_time" >&6; }
  4629. if test $ac_cv_header_time = yes; then
  4630. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  4631. fi
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  4633. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  4634. if test "${gcc_cv_header_string+set}" = set; then :
  4635. $as_echo_n "(cached) " >&6
  4636. else
  4637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4638. /* end confdefs.h. */
  4639. #include <string.h>
  4640. #include <strings.h>
  4641. int
  4642. main ()
  4643. {
  4644. ;
  4645. return 0;
  4646. }
  4647. _ACEOF
  4648. if ac_fn_c_try_compile "$LINENO"; then :
  4649. gcc_cv_header_string=yes
  4650. else
  4651. gcc_cv_header_string=no
  4652. fi
  4653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4654. fi
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  4656. $as_echo "$gcc_cv_header_string" >&6; }
  4657. if test $gcc_cv_header_string = yes; then
  4658. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  4659. fi
  4660. for ac_header in locale.h fcntl.h limits.h stddef.h \
  4661. stdlib.h strings.h string.h sys/file.h unistd.h
  4662. do :
  4663. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4664. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  4665. eval as_val=\$$as_ac_Header
  4666. if test "x$as_val" = x""yes; then :
  4667. cat >>confdefs.h <<_ACEOF
  4668. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4669. _ACEOF
  4670. fi
  4671. done
  4672. # Checks for typedefs, structures, and compiler characteristics.
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4674. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4675. if test "${ac_cv_c_bigendian+set}" = set; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. ac_cv_c_bigendian=unknown
  4679. # See if we're dealing with a universal compiler.
  4680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4681. /* end confdefs.h. */
  4682. #ifndef __APPLE_CC__
  4683. not a universal capable compiler
  4684. #endif
  4685. typedef int dummy;
  4686. _ACEOF
  4687. if ac_fn_c_try_compile "$LINENO"; then :
  4688. # Check for potential -arch flags. It is not universal unless
  4689. # there are at least two -arch flags with different values.
  4690. ac_arch=
  4691. ac_prev=
  4692. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4693. if test -n "$ac_prev"; then
  4694. case $ac_word in
  4695. i?86 | x86_64 | ppc | ppc64)
  4696. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4697. ac_arch=$ac_word
  4698. else
  4699. ac_cv_c_bigendian=universal
  4700. break
  4701. fi
  4702. ;;
  4703. esac
  4704. ac_prev=
  4705. elif test "x$ac_word" = "x-arch"; then
  4706. ac_prev=arch
  4707. fi
  4708. done
  4709. fi
  4710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4711. if test $ac_cv_c_bigendian = unknown; then
  4712. # See if sys/param.h defines the BYTE_ORDER macro.
  4713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4714. /* end confdefs.h. */
  4715. #include <sys/types.h>
  4716. #include <sys/param.h>
  4717. int
  4718. main ()
  4719. {
  4720. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4721. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4722. && LITTLE_ENDIAN)
  4723. bogus endian macros
  4724. #endif
  4725. ;
  4726. return 0;
  4727. }
  4728. _ACEOF
  4729. if ac_fn_c_try_compile "$LINENO"; then :
  4730. # It does; now see whether it defined to BIG_ENDIAN or not.
  4731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4732. /* end confdefs.h. */
  4733. #include <sys/types.h>
  4734. #include <sys/param.h>
  4735. int
  4736. main ()
  4737. {
  4738. #if BYTE_ORDER != BIG_ENDIAN
  4739. not big endian
  4740. #endif
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. if ac_fn_c_try_compile "$LINENO"; then :
  4746. ac_cv_c_bigendian=yes
  4747. else
  4748. ac_cv_c_bigendian=no
  4749. fi
  4750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. fi
  4754. if test $ac_cv_c_bigendian = unknown; then
  4755. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4757. /* end confdefs.h. */
  4758. #include <limits.h>
  4759. int
  4760. main ()
  4761. {
  4762. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4763. bogus endian macros
  4764. #endif
  4765. ;
  4766. return 0;
  4767. }
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"; then :
  4770. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. #include <limits.h>
  4774. int
  4775. main ()
  4776. {
  4777. #ifndef _BIG_ENDIAN
  4778. not big endian
  4779. #endif
  4780. ;
  4781. return 0;
  4782. }
  4783. _ACEOF
  4784. if ac_fn_c_try_compile "$LINENO"; then :
  4785. ac_cv_c_bigendian=yes
  4786. else
  4787. ac_cv_c_bigendian=no
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4790. fi
  4791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4792. fi
  4793. if test $ac_cv_c_bigendian = unknown; then
  4794. # Compile a test program.
  4795. if test "$cross_compiling" = yes; then :
  4796. # Try to guess by grepping values from an object file.
  4797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4798. /* end confdefs.h. */
  4799. short int ascii_mm[] =
  4800. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4801. short int ascii_ii[] =
  4802. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4803. int use_ascii (int i) {
  4804. return ascii_mm[i] + ascii_ii[i];
  4805. }
  4806. short int ebcdic_ii[] =
  4807. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4808. short int ebcdic_mm[] =
  4809. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4810. int use_ebcdic (int i) {
  4811. return ebcdic_mm[i] + ebcdic_ii[i];
  4812. }
  4813. extern int foo;
  4814. int
  4815. main ()
  4816. {
  4817. return use_ascii (foo) == use_ebcdic (foo);
  4818. ;
  4819. return 0;
  4820. }
  4821. _ACEOF
  4822. if ac_fn_c_try_compile "$LINENO"; then :
  4823. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4824. ac_cv_c_bigendian=yes
  4825. fi
  4826. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4827. if test "$ac_cv_c_bigendian" = unknown; then
  4828. ac_cv_c_bigendian=no
  4829. else
  4830. # finding both strings is unlikely to happen, but who knows?
  4831. ac_cv_c_bigendian=unknown
  4832. fi
  4833. fi
  4834. fi
  4835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4836. else
  4837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4838. /* end confdefs.h. */
  4839. $ac_includes_default
  4840. int
  4841. main ()
  4842. {
  4843. /* Are we little or big endian? From Harbison&Steele. */
  4844. union
  4845. {
  4846. long int l;
  4847. char c[sizeof (long int)];
  4848. } u;
  4849. u.l = 1;
  4850. return u.c[sizeof (long int) - 1] == 1;
  4851. ;
  4852. return 0;
  4853. }
  4854. _ACEOF
  4855. if ac_fn_c_try_run "$LINENO"; then :
  4856. ac_cv_c_bigendian=no
  4857. else
  4858. ac_cv_c_bigendian=yes
  4859. fi
  4860. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4861. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4862. fi
  4863. fi
  4864. fi
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4866. $as_echo "$ac_cv_c_bigendian" >&6; }
  4867. case $ac_cv_c_bigendian in #(
  4868. yes)
  4869. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4870. ;; #(
  4871. no)
  4872. ;; #(
  4873. universal)
  4874. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4875. ;; #(
  4876. *)
  4877. as_fn_error "unknown endianness
  4878. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4879. esac
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4881. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4882. if test "${ac_cv_c_const+set}" = set; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4886. /* end confdefs.h. */
  4887. int
  4888. main ()
  4889. {
  4890. /* FIXME: Include the comments suggested by Paul. */
  4891. #ifndef __cplusplus
  4892. /* Ultrix mips cc rejects this. */
  4893. typedef int charset[2];
  4894. const charset cs;
  4895. /* SunOS 4.1.1 cc rejects this. */
  4896. char const *const *pcpcc;
  4897. char **ppc;
  4898. /* NEC SVR4.0.2 mips cc rejects this. */
  4899. struct point {int x, y;};
  4900. static struct point const zero = {0,0};
  4901. /* AIX XL C 1.02.0.0 rejects this.
  4902. It does not let you subtract one const X* pointer from another in
  4903. an arm of an if-expression whose if-part is not a constant
  4904. expression */
  4905. const char *g = "string";
  4906. pcpcc = &g + (g ? g-g : 0);
  4907. /* HPUX 7.0 cc rejects these. */
  4908. ++pcpcc;
  4909. ppc = (char**) pcpcc;
  4910. pcpcc = (char const *const *) ppc;
  4911. { /* SCO 3.2v4 cc rejects this. */
  4912. char *t;
  4913. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4914. *t++ = 0;
  4915. if (s) return 0;
  4916. }
  4917. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4918. int x[] = {25, 17};
  4919. const int *foo = &x[0];
  4920. ++foo;
  4921. }
  4922. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4923. typedef const int *iptr;
  4924. iptr p = 0;
  4925. ++p;
  4926. }
  4927. { /* AIX XL C 1.02.0.0 rejects this saying
  4928. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4929. struct s { int j; const int *ap[3]; };
  4930. struct s *b; b->j = 5;
  4931. }
  4932. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4933. const int foo = 10;
  4934. if (!foo) return 0;
  4935. }
  4936. return !cs[0] && !zero.x;
  4937. #endif
  4938. ;
  4939. return 0;
  4940. }
  4941. _ACEOF
  4942. if ac_fn_c_try_compile "$LINENO"; then :
  4943. ac_cv_c_const=yes
  4944. else
  4945. ac_cv_c_const=no
  4946. fi
  4947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4948. fi
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4950. $as_echo "$ac_cv_c_const" >&6; }
  4951. if test $ac_cv_c_const = no; then
  4952. $as_echo "#define const /**/" >>confdefs.h
  4953. fi
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4955. $as_echo_n "checking for inline... " >&6; }
  4956. if test "${ac_cv_c_inline+set}" = set; then :
  4957. $as_echo_n "(cached) " >&6
  4958. else
  4959. ac_cv_c_inline=no
  4960. for ac_kw in inline __inline__ __inline; do
  4961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4962. /* end confdefs.h. */
  4963. #ifndef __cplusplus
  4964. typedef int foo_t;
  4965. static $ac_kw foo_t static_foo () {return 0; }
  4966. $ac_kw foo_t foo () {return 0; }
  4967. #endif
  4968. _ACEOF
  4969. if ac_fn_c_try_compile "$LINENO"; then :
  4970. ac_cv_c_inline=$ac_kw
  4971. fi
  4972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4973. test "$ac_cv_c_inline" != no && break
  4974. done
  4975. fi
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4977. $as_echo "$ac_cv_c_inline" >&6; }
  4978. case $ac_cv_c_inline in
  4979. inline | yes) ;;
  4980. *)
  4981. case $ac_cv_c_inline in
  4982. no) ac_val=;;
  4983. *) ac_val=$ac_cv_c_inline;;
  4984. esac
  4985. cat >>confdefs.h <<_ACEOF
  4986. #ifndef __cplusplus
  4987. #define inline $ac_val
  4988. #endif
  4989. _ACEOF
  4990. ;;
  4991. esac
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
  4993. $as_echo_n "checking for obstacks... " >&6; }
  4994. if test "${ac_cv_func_obstack+set}" = set; then :
  4995. $as_echo_n "(cached) " >&6
  4996. else
  4997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4998. /* end confdefs.h. */
  4999. $ac_includes_default
  5000. #include "obstack.h"
  5001. int
  5002. main ()
  5003. {
  5004. struct obstack mem;
  5005. #define obstack_chunk_alloc malloc
  5006. #define obstack_chunk_free free
  5007. obstack_init (&mem);
  5008. obstack_free (&mem, 0);
  5009. ;
  5010. return 0;
  5011. }
  5012. _ACEOF
  5013. if ac_fn_c_try_link "$LINENO"; then :
  5014. ac_cv_func_obstack=yes
  5015. else
  5016. ac_cv_func_obstack=no
  5017. fi
  5018. rm -f core conftest.err conftest.$ac_objext \
  5019. conftest$ac_exeext conftest.$ac_ext
  5020. fi
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
  5022. $as_echo "$ac_cv_func_obstack" >&6; }
  5023. if test $ac_cv_func_obstack = yes; then
  5024. $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
  5025. else
  5026. case " $LIBOBJS " in
  5027. *" obstack.$ac_objext "* ) ;;
  5028. *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
  5029. ;;
  5030. esac
  5031. fi
  5032. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  5033. if test "x$ac_cv_type_off_t" = x""yes; then :
  5034. else
  5035. cat >>confdefs.h <<_ACEOF
  5036. #define off_t long int
  5037. _ACEOF
  5038. fi
  5039. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  5040. if test "x$ac_cv_type_size_t" = x""yes; then :
  5041. else
  5042. cat >>confdefs.h <<_ACEOF
  5043. #define size_t unsigned int
  5044. _ACEOF
  5045. fi
  5046. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  5047. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  5048. else
  5049. cat >>confdefs.h <<_ACEOF
  5050. #define ssize_t int
  5051. _ACEOF
  5052. fi
  5053. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  5054. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  5055. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  5056. else
  5057. for ac_type in 'unsigned int' 'unsigned long int' \
  5058. 'unsigned long long int'; do
  5059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5060. /* end confdefs.h. */
  5061. $ac_includes_default
  5062. int
  5063. main ()
  5064. {
  5065. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  5066. test_array [0] = 0
  5067. ;
  5068. return 0;
  5069. }
  5070. _ACEOF
  5071. if ac_fn_c_try_compile "$LINENO"; then :
  5072. cat >>confdefs.h <<_ACEOF
  5073. #define uintptr_t $ac_type
  5074. _ACEOF
  5075. ac_type=
  5076. fi
  5077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5078. test -z "$ac_type" && break
  5079. done
  5080. fi
  5081. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  5082. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  5083. else
  5084. cat >>confdefs.h <<_ACEOF
  5085. #define ptrdiff_t int
  5086. _ACEOF
  5087. fi
  5088. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  5089. case $ac_cv_c_uint64_t in #(
  5090. no|yes) ;; #(
  5091. *)
  5092. $as_echo "#define _UINT64_T 1" >>confdefs.h
  5093. cat >>confdefs.h <<_ACEOF
  5094. #define uint64_t $ac_cv_c_uint64_t
  5095. _ACEOF
  5096. ;;
  5097. esac
  5098. if test x"$ac_cv_c_uint64_t" = x"no"; then
  5099. as_fn_error "uint64_t not found" "$LINENO" 5
  5100. fi
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  5102. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  5103. if test "${ac_cv_struct_tm+set}" = set; then :
  5104. $as_echo_n "(cached) " >&6
  5105. else
  5106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5107. /* end confdefs.h. */
  5108. #include <sys/types.h>
  5109. #include <time.h>
  5110. int
  5111. main ()
  5112. {
  5113. struct tm tm;
  5114. int *p = &tm.tm_sec;
  5115. return !p;
  5116. ;
  5117. return 0;
  5118. }
  5119. _ACEOF
  5120. if ac_fn_c_try_compile "$LINENO"; then :
  5121. ac_cv_struct_tm=time.h
  5122. else
  5123. ac_cv_struct_tm=sys/time.h
  5124. fi
  5125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5126. fi
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  5128. $as_echo "$ac_cv_struct_tm" >&6; }
  5129. if test $ac_cv_struct_tm = sys/time.h; then
  5130. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  5131. fi
  5132. # The cast to long int works around a bug in the HP C Compiler
  5133. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5134. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5135. # This bug is HP SR number 8606223364.
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  5137. $as_echo_n "checking size of int... " >&6; }
  5138. if test "${ac_cv_sizeof_int+set}" = set; then :
  5139. $as_echo_n "(cached) " >&6
  5140. else
  5141. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  5142. else
  5143. if test "$ac_cv_type_int" = yes; then
  5144. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5146. { as_fn_set_status 77
  5147. as_fn_error "cannot compute sizeof (int)
  5148. See \`config.log' for more details." "$LINENO" 5; }; }
  5149. else
  5150. ac_cv_sizeof_int=0
  5151. fi
  5152. fi
  5153. fi
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  5155. $as_echo "$ac_cv_sizeof_int" >&6; }
  5156. cat >>confdefs.h <<_ACEOF
  5157. #define SIZEOF_INT $ac_cv_sizeof_int
  5158. _ACEOF
  5159. # The cast to long int works around a bug in the HP C Compiler
  5160. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5161. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5162. # This bug is HP SR number 8606223364.
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5164. $as_echo_n "checking size of long... " >&6; }
  5165. if test "${ac_cv_sizeof_long+set}" = set; then :
  5166. $as_echo_n "(cached) " >&6
  5167. else
  5168. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5169. else
  5170. if test "$ac_cv_type_long" = yes; then
  5171. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5172. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5173. { as_fn_set_status 77
  5174. as_fn_error "cannot compute sizeof (long)
  5175. See \`config.log' for more details." "$LINENO" 5; }; }
  5176. else
  5177. ac_cv_sizeof_long=0
  5178. fi
  5179. fi
  5180. fi
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5182. $as_echo "$ac_cv_sizeof_long" >&6; }
  5183. cat >>confdefs.h <<_ACEOF
  5184. #define SIZEOF_LONG $ac_cv_sizeof_long
  5185. _ACEOF
  5186. for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
  5187. do :
  5188. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5189. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5190. eval as_val=\$$as_ac_var
  5191. if test "x$as_val" = x""yes; then :
  5192. cat >>confdefs.h <<_ACEOF
  5193. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5194. _ACEOF
  5195. fi
  5196. done
  5197. ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
  5198. if test "x$ac_cv_have_decl_abort" = x""yes; then :
  5199. ac_have_decl=1
  5200. else
  5201. ac_have_decl=0
  5202. fi
  5203. cat >>confdefs.h <<_ACEOF
  5204. #define HAVE_DECL_ABORT $ac_have_decl
  5205. _ACEOF
  5206. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  5207. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  5208. ac_have_decl=1
  5209. else
  5210. ac_have_decl=0
  5211. fi
  5212. cat >>confdefs.h <<_ACEOF
  5213. #define HAVE_DECL_ASPRINTF $ac_have_decl
  5214. _ACEOF
  5215. ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
  5216. if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
  5217. ac_have_decl=1
  5218. else
  5219. ac_have_decl=0
  5220. fi
  5221. cat >>confdefs.h <<_ACEOF
  5222. #define HAVE_DECL_BASENAME $ac_have_decl
  5223. _ACEOF
  5224. ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
  5225. if test "x$ac_cv_have_decl_errno" = x""yes; then :
  5226. ac_have_decl=1
  5227. else
  5228. ac_have_decl=0
  5229. fi
  5230. cat >>confdefs.h <<_ACEOF
  5231. #define HAVE_DECL_ERRNO $ac_have_decl
  5232. _ACEOF
  5233. ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
  5234. if test "x$ac_cv_have_decl_getopt" = x""yes; then :
  5235. ac_have_decl=1
  5236. else
  5237. ac_have_decl=0
  5238. fi
  5239. cat >>confdefs.h <<_ACEOF
  5240. #define HAVE_DECL_GETOPT $ac_have_decl
  5241. _ACEOF
  5242. ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
  5243. if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
  5244. ac_have_decl=1
  5245. else
  5246. ac_have_decl=0
  5247. fi
  5248. cat >>confdefs.h <<_ACEOF
  5249. #define HAVE_DECL_VASPRINTF $ac_have_decl
  5250. _ACEOF
  5251. ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
  5252. if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
  5253. ac_have_decl=1
  5254. else
  5255. ac_have_decl=0
  5256. fi
  5257. cat >>confdefs.h <<_ACEOF
  5258. #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
  5259. _ACEOF
  5260. ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
  5261. if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
  5262. ac_have_decl=1
  5263. else
  5264. ac_have_decl=0
  5265. fi
  5266. cat >>confdefs.h <<_ACEOF
  5267. #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
  5268. _ACEOF
  5269. ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
  5270. if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
  5271. ac_have_decl=1
  5272. else
  5273. ac_have_decl=0
  5274. fi
  5275. cat >>confdefs.h <<_ACEOF
  5276. #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
  5277. _ACEOF
  5278. ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
  5279. if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
  5280. ac_have_decl=1
  5281. else
  5282. ac_have_decl=0
  5283. fi
  5284. cat >>confdefs.h <<_ACEOF
  5285. #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
  5286. _ACEOF
  5287. ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
  5288. if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
  5289. ac_have_decl=1
  5290. else
  5291. ac_have_decl=0
  5292. fi
  5293. cat >>confdefs.h <<_ACEOF
  5294. #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
  5295. _ACEOF
  5296. ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
  5297. if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
  5298. ac_have_decl=1
  5299. else
  5300. ac_have_decl=0
  5301. fi
  5302. cat >>confdefs.h <<_ACEOF
  5303. #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
  5304. _ACEOF
  5305. ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
  5306. if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
  5307. ac_have_decl=1
  5308. else
  5309. ac_have_decl=0
  5310. fi
  5311. cat >>confdefs.h <<_ACEOF
  5312. #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
  5313. _ACEOF
  5314. ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
  5315. if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
  5316. ac_have_decl=1
  5317. else
  5318. ac_have_decl=0
  5319. fi
  5320. cat >>confdefs.h <<_ACEOF
  5321. #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
  5322. _ACEOF
  5323. ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
  5324. if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
  5325. ac_have_decl=1
  5326. else
  5327. ac_have_decl=0
  5328. fi
  5329. cat >>confdefs.h <<_ACEOF
  5330. #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
  5331. _ACEOF
  5332. ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
  5333. if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
  5334. ac_have_decl=1
  5335. else
  5336. ac_have_decl=0
  5337. fi
  5338. cat >>confdefs.h <<_ACEOF
  5339. #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
  5340. _ACEOF
  5341. ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
  5342. if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
  5343. ac_have_decl=1
  5344. else
  5345. ac_have_decl=0
  5346. fi
  5347. cat >>confdefs.h <<_ACEOF
  5348. #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
  5349. _ACEOF
  5350. ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
  5351. if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
  5352. ac_have_decl=1
  5353. else
  5354. ac_have_decl=0
  5355. fi
  5356. cat >>confdefs.h <<_ACEOF
  5357. #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
  5358. _ACEOF
  5359. ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
  5360. if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
  5361. ac_have_decl=1
  5362. else
  5363. ac_have_decl=0
  5364. fi
  5365. cat >>confdefs.h <<_ACEOF
  5366. #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
  5367. _ACEOF
  5368. ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  5369. if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
  5370. ac_have_decl=1
  5371. else
  5372. ac_have_decl=0
  5373. fi
  5374. cat >>confdefs.h <<_ACEOF
  5375. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  5376. _ACEOF
  5377. ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
  5378. if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
  5379. ac_have_decl=1
  5380. else
  5381. ac_have_decl=0
  5382. fi
  5383. cat >>confdefs.h <<_ACEOF
  5384. #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
  5385. _ACEOF
  5386. ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
  5387. if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
  5388. ac_have_decl=1
  5389. else
  5390. ac_have_decl=0
  5391. fi
  5392. cat >>confdefs.h <<_ACEOF
  5393. #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
  5394. _ACEOF
  5395. # Checks for library functions.
  5396. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5397. # for constant arguments. Useless!
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  5399. $as_echo_n "checking for working alloca.h... " >&6; }
  5400. if test "${ac_cv_working_alloca_h+set}" = set; then :
  5401. $as_echo_n "(cached) " >&6
  5402. else
  5403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5404. /* end confdefs.h. */
  5405. #include <alloca.h>
  5406. int
  5407. main ()
  5408. {
  5409. char *p = (char *) alloca (2 * sizeof (int));
  5410. if (p) return 0;
  5411. ;
  5412. return 0;
  5413. }
  5414. _ACEOF
  5415. if ac_fn_c_try_link "$LINENO"; then :
  5416. ac_cv_working_alloca_h=yes
  5417. else
  5418. ac_cv_working_alloca_h=no
  5419. fi
  5420. rm -f core conftest.err conftest.$ac_objext \
  5421. conftest$ac_exeext conftest.$ac_ext
  5422. fi
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  5424. $as_echo "$ac_cv_working_alloca_h" >&6; }
  5425. if test $ac_cv_working_alloca_h = yes; then
  5426. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  5427. fi
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  5429. $as_echo_n "checking for alloca... " >&6; }
  5430. if test "${ac_cv_func_alloca_works+set}" = set; then :
  5431. $as_echo_n "(cached) " >&6
  5432. else
  5433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5434. /* end confdefs.h. */
  5435. #ifdef __GNUC__
  5436. # define alloca __builtin_alloca
  5437. #else
  5438. # ifdef _MSC_VER
  5439. # include <malloc.h>
  5440. # define alloca _alloca
  5441. # else
  5442. # ifdef HAVE_ALLOCA_H
  5443. # include <alloca.h>
  5444. # else
  5445. # ifdef _AIX
  5446. #pragma alloca
  5447. # else
  5448. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5449. char *alloca ();
  5450. # endif
  5451. # endif
  5452. # endif
  5453. # endif
  5454. #endif
  5455. int
  5456. main ()
  5457. {
  5458. char *p = (char *) alloca (1);
  5459. if (p) return 0;
  5460. ;
  5461. return 0;
  5462. }
  5463. _ACEOF
  5464. if ac_fn_c_try_link "$LINENO"; then :
  5465. ac_cv_func_alloca_works=yes
  5466. else
  5467. ac_cv_func_alloca_works=no
  5468. fi
  5469. rm -f core conftest.err conftest.$ac_objext \
  5470. conftest$ac_exeext conftest.$ac_ext
  5471. fi
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  5473. $as_echo "$ac_cv_func_alloca_works" >&6; }
  5474. if test $ac_cv_func_alloca_works = yes; then
  5475. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  5476. else
  5477. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5478. # that cause trouble. Some versions do not even contain alloca or
  5479. # contain a buggy version. If you still want to use their alloca,
  5480. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5481. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5482. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  5484. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  5485. if test "${ac_cv_os_cray+set}" = set; then :
  5486. $as_echo_n "(cached) " >&6
  5487. else
  5488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5489. /* end confdefs.h. */
  5490. #if defined CRAY && ! defined CRAY2
  5491. webecray
  5492. #else
  5493. wenotbecray
  5494. #endif
  5495. _ACEOF
  5496. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5497. $EGREP "webecray" >/dev/null 2>&1; then :
  5498. ac_cv_os_cray=yes
  5499. else
  5500. ac_cv_os_cray=no
  5501. fi
  5502. rm -f conftest*
  5503. fi
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  5505. $as_echo "$ac_cv_os_cray" >&6; }
  5506. if test $ac_cv_os_cray = yes; then
  5507. for ac_func in _getb67 GETB67 getb67; do
  5508. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5509. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5510. eval as_val=\$$as_ac_var
  5511. if test "x$as_val" = x""yes; then :
  5512. cat >>confdefs.h <<_ACEOF
  5513. #define CRAY_STACKSEG_END $ac_func
  5514. _ACEOF
  5515. break
  5516. fi
  5517. done
  5518. fi
  5519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  5520. $as_echo_n "checking stack direction for C alloca... " >&6; }
  5521. if test "${ac_cv_c_stack_direction+set}" = set; then :
  5522. $as_echo_n "(cached) " >&6
  5523. else
  5524. if test "$cross_compiling" = yes; then :
  5525. ac_cv_c_stack_direction=0
  5526. else
  5527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5528. /* end confdefs.h. */
  5529. $ac_includes_default
  5530. int
  5531. find_stack_direction ()
  5532. {
  5533. static char *addr = 0;
  5534. auto char dummy;
  5535. if (addr == 0)
  5536. {
  5537. addr = &dummy;
  5538. return find_stack_direction ();
  5539. }
  5540. else
  5541. return (&dummy > addr) ? 1 : -1;
  5542. }
  5543. int
  5544. main ()
  5545. {
  5546. return find_stack_direction () < 0;
  5547. }
  5548. _ACEOF
  5549. if ac_fn_c_try_run "$LINENO"; then :
  5550. ac_cv_c_stack_direction=1
  5551. else
  5552. ac_cv_c_stack_direction=-1
  5553. fi
  5554. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5555. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5556. fi
  5557. fi
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  5559. $as_echo "$ac_cv_c_stack_direction" >&6; }
  5560. cat >>confdefs.h <<_ACEOF
  5561. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5562. _ACEOF
  5563. fi
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5565. $as_echo_n "checking for ANSI C header files... " >&6; }
  5566. if test "${ac_cv_header_stdc+set}" = set; then :
  5567. $as_echo_n "(cached) " >&6
  5568. else
  5569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5570. /* end confdefs.h. */
  5571. #include <stdlib.h>
  5572. #include <stdarg.h>
  5573. #include <string.h>
  5574. #include <float.h>
  5575. int
  5576. main ()
  5577. {
  5578. ;
  5579. return 0;
  5580. }
  5581. _ACEOF
  5582. if ac_fn_c_try_compile "$LINENO"; then :
  5583. ac_cv_header_stdc=yes
  5584. else
  5585. ac_cv_header_stdc=no
  5586. fi
  5587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5588. if test $ac_cv_header_stdc = yes; then
  5589. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5591. /* end confdefs.h. */
  5592. #include <string.h>
  5593. _ACEOF
  5594. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5595. $EGREP "memchr" >/dev/null 2>&1; then :
  5596. else
  5597. ac_cv_header_stdc=no
  5598. fi
  5599. rm -f conftest*
  5600. fi
  5601. if test $ac_cv_header_stdc = yes; then
  5602. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5604. /* end confdefs.h. */
  5605. #include <stdlib.h>
  5606. _ACEOF
  5607. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5608. $EGREP "free" >/dev/null 2>&1; then :
  5609. else
  5610. ac_cv_header_stdc=no
  5611. fi
  5612. rm -f conftest*
  5613. fi
  5614. if test $ac_cv_header_stdc = yes; then
  5615. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5616. if test "$cross_compiling" = yes; then :
  5617. :
  5618. else
  5619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5620. /* end confdefs.h. */
  5621. #include <ctype.h>
  5622. #include <stdlib.h>
  5623. #if ((' ' & 0x0FF) == 0x020)
  5624. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5625. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5626. #else
  5627. # define ISLOWER(c) \
  5628. (('a' <= (c) && (c) <= 'i') \
  5629. || ('j' <= (c) && (c) <= 'r') \
  5630. || ('s' <= (c) && (c) <= 'z'))
  5631. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5632. #endif
  5633. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5634. int
  5635. main ()
  5636. {
  5637. int i;
  5638. for (i = 0; i < 256; i++)
  5639. if (XOR (islower (i), ISLOWER (i))
  5640. || toupper (i) != TOUPPER (i))
  5641. return 2;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. if ac_fn_c_try_run "$LINENO"; then :
  5646. else
  5647. ac_cv_header_stdc=no
  5648. fi
  5649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5651. fi
  5652. fi
  5653. fi
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5655. $as_echo "$ac_cv_header_stdc" >&6; }
  5656. if test $ac_cv_header_stdc = yes; then
  5657. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5658. fi
  5659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  5660. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  5661. if test "${am_cv_langinfo_codeset+set}" = set; then :
  5662. $as_echo_n "(cached) " >&6
  5663. else
  5664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5665. /* end confdefs.h. */
  5666. #include <langinfo.h>
  5667. int
  5668. main ()
  5669. {
  5670. char* cs = nl_langinfo(CODESET);
  5671. ;
  5672. return 0;
  5673. }
  5674. _ACEOF
  5675. if ac_fn_c_try_link "$LINENO"; then :
  5676. am_cv_langinfo_codeset=yes
  5677. else
  5678. am_cv_langinfo_codeset=no
  5679. fi
  5680. rm -f core conftest.err conftest.$ac_objext \
  5681. conftest$ac_exeext conftest.$ac_ext
  5682. fi
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  5684. $as_echo "$am_cv_langinfo_codeset" >&6; }
  5685. if test $am_cv_langinfo_codeset = yes; then
  5686. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  5687. fi
  5688. # If we haven't got the data from the intl directory,
  5689. # assume NLS is disabled.
  5690. USE_NLS=no
  5691. LIBINTL=
  5692. LIBINTL_DEP=
  5693. INCINTL=
  5694. XGETTEXT=
  5695. GMSGFMT=
  5696. POSUB=
  5697. if test -f ../intl/config.intl; then
  5698. . ../intl/config.intl
  5699. fi
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  5701. $as_echo_n "checking whether NLS is requested... " >&6; }
  5702. if test x"$USE_NLS" != xyes; then
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5704. $as_echo "no" >&6; }
  5705. else
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5707. $as_echo "yes" >&6; }
  5708. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  5710. $as_echo_n "checking for catalogs to be installed... " >&6; }
  5711. # Look for .po and .gmo files in the source directory.
  5712. CATALOGS=
  5713. XLINGUAS=
  5714. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  5715. # If there aren't any .gmo files the shell will give us the
  5716. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  5717. # weeded out.
  5718. case "$cat" in *\**)
  5719. continue;;
  5720. esac
  5721. # The quadruple backslash is collapsed to a double backslash
  5722. # by the backticks, then collapsed again by the double quotes,
  5723. # leaving us with one backslash in the sed expression (right
  5724. # before the dot that mustn't act as a wildcard).
  5725. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  5726. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  5727. # The user is allowed to set LINGUAS to a list of languages to
  5728. # install catalogs for. If it's empty that means "all of them."
  5729. if test "x$LINGUAS" = x; then
  5730. CATALOGS="$CATALOGS $cat"
  5731. XLINGUAS="$XLINGUAS $lang"
  5732. else
  5733. case "$LINGUAS" in *$lang*)
  5734. CATALOGS="$CATALOGS $cat"
  5735. XLINGUAS="$XLINGUAS $lang"
  5736. ;;
  5737. esac
  5738. fi
  5739. done
  5740. LINGUAS="$XLINGUAS"
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  5742. $as_echo "$LINGUAS" >&6; }
  5743. DATADIRNAME=share
  5744. INSTOBJEXT=.mo
  5745. GENCAT=gencat
  5746. CATOBJEXT=.gmo
  5747. fi
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
  5749. $as_echo_n "checking for uchar... " >&6; }
  5750. if test "${gcc_cv_type_uchar+set}" = set; then :
  5751. $as_echo_n "(cached) " >&6
  5752. else
  5753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5754. /* end confdefs.h. */
  5755. #include <sys/types.h>
  5756. int
  5757. main ()
  5758. {
  5759. if ((uchar *)0) return 0;
  5760. if (sizeof(uchar)) return 0;
  5761. ;
  5762. return 0;
  5763. }
  5764. _ACEOF
  5765. if ac_fn_c_try_compile "$LINENO"; then :
  5766. ac_cv_type_uchar=yes
  5767. else
  5768. ac_cv_type_uchar=no
  5769. fi
  5770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5771. fi
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
  5773. $as_echo "$gcc_cv_type_uchar" >&6; }
  5774. if test $ac_cv_type_uchar = yes; then
  5775. $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
  5776. fi
  5777. # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
  5778. # iconv() prototype.
  5779. ac_ext=cpp
  5780. ac_cpp='$CXXCPP $CPPFLAGS'
  5781. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5782. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5783. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5784. if test "X$prefix" = "XNONE"; then
  5785. acl_final_prefix="$ac_default_prefix"
  5786. else
  5787. acl_final_prefix="$prefix"
  5788. fi
  5789. if test "X$exec_prefix" = "XNONE"; then
  5790. acl_final_exec_prefix='${prefix}'
  5791. else
  5792. acl_final_exec_prefix="$exec_prefix"
  5793. fi
  5794. acl_save_prefix="$prefix"
  5795. prefix="$acl_final_prefix"
  5796. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  5797. prefix="$acl_save_prefix"
  5798. # Check whether --with-gnu-ld was given.
  5799. if test "${with_gnu_ld+set}" = set; then :
  5800. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5801. else
  5802. with_gnu_ld=no
  5803. fi
  5804. # Prepare PATH_SEPARATOR.
  5805. # The user is always right.
  5806. if test "${PATH_SEPARATOR+set}" != set; then
  5807. echo "#! /bin/sh" >conf$$.sh
  5808. echo "exit 0" >>conf$$.sh
  5809. chmod +x conf$$.sh
  5810. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5811. PATH_SEPARATOR=';'
  5812. else
  5813. PATH_SEPARATOR=:
  5814. fi
  5815. rm -f conf$$.sh
  5816. fi
  5817. ac_prog=ld
  5818. if test "$GCC" = yes; then
  5819. # Check if gcc -print-prog-name=ld gives a path.
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  5821. $as_echo_n "checking for ld used by GCC... " >&6; }
  5822. case $host in
  5823. *-*-mingw*)
  5824. # gcc leaves a trailing carriage return which upsets mingw
  5825. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5826. *)
  5827. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5828. esac
  5829. case $ac_prog in
  5830. # Accept absolute paths.
  5831. [\\/]* | [A-Za-z]:[\\/]*)
  5832. re_direlt='/[^/][^/]*/\.\./'
  5833. # Canonicalize the path of ld
  5834. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  5835. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5836. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  5837. done
  5838. test -z "$LD" && LD="$ac_prog"
  5839. ;;
  5840. "")
  5841. # If it fails, then pretend we aren't using GCC.
  5842. ac_prog=ld
  5843. ;;
  5844. *)
  5845. # If it is relative, then search for the first ld in PATH.
  5846. with_gnu_ld=unknown
  5847. ;;
  5848. esac
  5849. elif test "$with_gnu_ld" = yes; then
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5851. $as_echo_n "checking for GNU ld... " >&6; }
  5852. else
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5854. $as_echo_n "checking for non-GNU ld... " >&6; }
  5855. fi
  5856. if test "${acl_cv_path_LD+set}" = set; then :
  5857. $as_echo_n "(cached) " >&6
  5858. else
  5859. if test -z "$LD"; then
  5860. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  5861. for ac_dir in $PATH; do
  5862. test -z "$ac_dir" && ac_dir=.
  5863. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5864. acl_cv_path_LD="$ac_dir/$ac_prog"
  5865. # Check to see if the program is GNU ld. I'd rather use --version,
  5866. # but apparently some GNU ld's only accept -v.
  5867. # Break only if it was the GNU/non-GNU ld that we prefer.
  5868. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  5869. test "$with_gnu_ld" != no && break
  5870. else
  5871. test "$with_gnu_ld" != yes && break
  5872. fi
  5873. fi
  5874. done
  5875. IFS="$ac_save_ifs"
  5876. else
  5877. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  5878. fi
  5879. fi
  5880. LD="$acl_cv_path_LD"
  5881. if test -n "$LD"; then
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5883. $as_echo "$LD" >&6; }
  5884. else
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5886. $as_echo "no" >&6; }
  5887. fi
  5888. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5890. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5891. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  5895. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  5896. acl_cv_prog_gnu_ld=yes
  5897. else
  5898. acl_cv_prog_gnu_ld=no
  5899. fi
  5900. fi
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  5902. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  5903. with_gnu_ld=$acl_cv_prog_gnu_ld
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  5905. $as_echo_n "checking for shared library run path origin... " >&6; }
  5906. if test "${acl_cv_rpath+set}" = set; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  5910. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  5911. . ./conftest.sh
  5912. rm -f ./conftest.sh
  5913. acl_cv_rpath=done
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  5916. $as_echo "$acl_cv_rpath" >&6; }
  5917. wl="$acl_cv_wl"
  5918. libext="$acl_cv_libext"
  5919. shlibext="$acl_cv_shlibext"
  5920. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  5921. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  5922. hardcode_direct="$acl_cv_hardcode_direct"
  5923. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  5924. # Check whether --enable-rpath was given.
  5925. if test "${enable_rpath+set}" = set; then :
  5926. enableval=$enable_rpath; :
  5927. else
  5928. enable_rpath=yes
  5929. fi
  5930. use_additional=yes
  5931. acl_save_prefix="$prefix"
  5932. prefix="$acl_final_prefix"
  5933. acl_save_exec_prefix="$exec_prefix"
  5934. exec_prefix="$acl_final_exec_prefix"
  5935. eval additional_includedir=\"$includedir\"
  5936. eval additional_libdir=\"$libdir\"
  5937. exec_prefix="$acl_save_exec_prefix"
  5938. prefix="$acl_save_prefix"
  5939. # Check whether --with-libiconv-prefix was given.
  5940. if test "${with_libiconv_prefix+set}" = set; then :
  5941. withval=$with_libiconv_prefix;
  5942. if test "X$withval" = "Xno"; then
  5943. use_additional=no
  5944. else
  5945. if test "X$withval" = "X"; then
  5946. acl_save_prefix="$prefix"
  5947. prefix="$acl_final_prefix"
  5948. acl_save_exec_prefix="$exec_prefix"
  5949. exec_prefix="$acl_final_exec_prefix"
  5950. eval additional_includedir=\"$includedir\"
  5951. eval additional_libdir=\"$libdir\"
  5952. exec_prefix="$acl_save_exec_prefix"
  5953. prefix="$acl_save_prefix"
  5954. else
  5955. additional_includedir="$withval/include"
  5956. additional_libdir="$withval/lib"
  5957. fi
  5958. fi
  5959. fi
  5960. LIBICONV=
  5961. LTLIBICONV=
  5962. INCICONV=
  5963. rpathdirs=
  5964. ltrpathdirs=
  5965. names_already_handled=
  5966. names_next_round='iconv '
  5967. while test -n "$names_next_round"; do
  5968. names_this_round="$names_next_round"
  5969. names_next_round=
  5970. for name in $names_this_round; do
  5971. already_handled=
  5972. for n in $names_already_handled; do
  5973. if test "$n" = "$name"; then
  5974. already_handled=yes
  5975. break
  5976. fi
  5977. done
  5978. if test -z "$already_handled"; then
  5979. names_already_handled="$names_already_handled $name"
  5980. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  5981. eval value=\"\$HAVE_LIB$uppername\"
  5982. if test -n "$value"; then
  5983. if test "$value" = yes; then
  5984. eval value=\"\$LIB$uppername\"
  5985. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  5986. eval value=\"\$LTLIB$uppername\"
  5987. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  5988. else
  5989. :
  5990. fi
  5991. else
  5992. found_dir=
  5993. found_la=
  5994. found_so=
  5995. found_a=
  5996. if test $use_additional = yes; then
  5997. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  5998. found_dir="$additional_libdir"
  5999. found_so="$additional_libdir/lib$name.$shlibext"
  6000. if test -f "$additional_libdir/lib$name.la"; then
  6001. found_la="$additional_libdir/lib$name.la"
  6002. fi
  6003. else
  6004. if test -f "$additional_libdir/lib$name.$libext"; then
  6005. found_dir="$additional_libdir"
  6006. found_a="$additional_libdir/lib$name.$libext"
  6007. if test -f "$additional_libdir/lib$name.la"; then
  6008. found_la="$additional_libdir/lib$name.la"
  6009. fi
  6010. fi
  6011. fi
  6012. fi
  6013. if test "X$found_dir" = "X"; then
  6014. for x in $LDFLAGS $LTLIBICONV; do
  6015. acl_save_prefix="$prefix"
  6016. prefix="$acl_final_prefix"
  6017. acl_save_exec_prefix="$exec_prefix"
  6018. exec_prefix="$acl_final_exec_prefix"
  6019. eval x=\"$x\"
  6020. exec_prefix="$acl_save_exec_prefix"
  6021. prefix="$acl_save_prefix"
  6022. case "$x" in
  6023. -L*)
  6024. dir=`echo "X$x" | sed -e 's/^X-L//'`
  6025. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6026. found_dir="$dir"
  6027. found_so="$dir/lib$name.$shlibext"
  6028. if test -f "$dir/lib$name.la"; then
  6029. found_la="$dir/lib$name.la"
  6030. fi
  6031. else
  6032. if test -f "$dir/lib$name.$libext"; then
  6033. found_dir="$dir"
  6034. found_a="$dir/lib$name.$libext"
  6035. if test -f "$dir/lib$name.la"; then
  6036. found_la="$dir/lib$name.la"
  6037. fi
  6038. fi
  6039. fi
  6040. ;;
  6041. esac
  6042. if test "X$found_dir" != "X"; then
  6043. break
  6044. fi
  6045. done
  6046. fi
  6047. if test "X$found_dir" != "X"; then
  6048. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  6049. if test "X$found_so" != "X"; then
  6050. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6051. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6052. else
  6053. haveit=
  6054. for x in $ltrpathdirs; do
  6055. if test "X$x" = "X$found_dir"; then
  6056. haveit=yes
  6057. break
  6058. fi
  6059. done
  6060. if test -z "$haveit"; then
  6061. ltrpathdirs="$ltrpathdirs $found_dir"
  6062. fi
  6063. if test "$hardcode_direct" = yes; then
  6064. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6065. else
  6066. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  6067. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6068. haveit=
  6069. for x in $rpathdirs; do
  6070. if test "X$x" = "X$found_dir"; then
  6071. haveit=yes
  6072. break
  6073. fi
  6074. done
  6075. if test -z "$haveit"; then
  6076. rpathdirs="$rpathdirs $found_dir"
  6077. fi
  6078. else
  6079. haveit=
  6080. for x in $LDFLAGS $LIBICONV; do
  6081. acl_save_prefix="$prefix"
  6082. prefix="$acl_final_prefix"
  6083. acl_save_exec_prefix="$exec_prefix"
  6084. exec_prefix="$acl_final_exec_prefix"
  6085. eval x=\"$x\"
  6086. exec_prefix="$acl_save_exec_prefix"
  6087. prefix="$acl_save_prefix"
  6088. if test "X$x" = "X-L$found_dir"; then
  6089. haveit=yes
  6090. break
  6091. fi
  6092. done
  6093. if test -z "$haveit"; then
  6094. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  6095. fi
  6096. if test "$hardcode_minus_L" != no; then
  6097. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  6098. else
  6099. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6100. fi
  6101. fi
  6102. fi
  6103. fi
  6104. else
  6105. if test "X$found_a" != "X"; then
  6106. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  6107. else
  6108. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  6109. fi
  6110. fi
  6111. additional_includedir=
  6112. case "$found_dir" in
  6113. */lib | */lib/)
  6114. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  6115. additional_includedir="$basedir/include"
  6116. ;;
  6117. esac
  6118. if test "X$additional_includedir" != "X"; then
  6119. if test "X$additional_includedir" != "X/usr/include"; then
  6120. haveit=
  6121. if test "X$additional_includedir" = "X/usr/local/include"; then
  6122. if test -n "$GCC"; then
  6123. case $host_os in
  6124. linux*) haveit=yes;;
  6125. esac
  6126. fi
  6127. fi
  6128. if test -z "$haveit"; then
  6129. for x in $CPPFLAGS $INCICONV; do
  6130. acl_save_prefix="$prefix"
  6131. prefix="$acl_final_prefix"
  6132. acl_save_exec_prefix="$exec_prefix"
  6133. exec_prefix="$acl_final_exec_prefix"
  6134. eval x=\"$x\"
  6135. exec_prefix="$acl_save_exec_prefix"
  6136. prefix="$acl_save_prefix"
  6137. if test "X$x" = "X-I$additional_includedir"; then
  6138. haveit=yes
  6139. break
  6140. fi
  6141. done
  6142. if test -z "$haveit"; then
  6143. if test -d "$additional_includedir"; then
  6144. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  6145. fi
  6146. fi
  6147. fi
  6148. fi
  6149. fi
  6150. if test -n "$found_la"; then
  6151. save_libdir="$libdir"
  6152. case "$found_la" in
  6153. */* | *\\*) . "$found_la" ;;
  6154. *) . "./$found_la" ;;
  6155. esac
  6156. libdir="$save_libdir"
  6157. for dep in $dependency_libs; do
  6158. case "$dep" in
  6159. -L*)
  6160. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  6161. if test "X$additional_libdir" != "X/usr/lib"; then
  6162. haveit=
  6163. if test "X$additional_libdir" = "X/usr/local/lib"; then
  6164. if test -n "$GCC"; then
  6165. case $host_os in
  6166. linux*) haveit=yes;;
  6167. esac
  6168. fi
  6169. fi
  6170. if test -z "$haveit"; then
  6171. haveit=
  6172. for x in $LDFLAGS $LIBICONV; do
  6173. acl_save_prefix="$prefix"
  6174. prefix="$acl_final_prefix"
  6175. acl_save_exec_prefix="$exec_prefix"
  6176. exec_prefix="$acl_final_exec_prefix"
  6177. eval x=\"$x\"
  6178. exec_prefix="$acl_save_exec_prefix"
  6179. prefix="$acl_save_prefix"
  6180. if test "X$x" = "X-L$additional_libdir"; then
  6181. haveit=yes
  6182. break
  6183. fi
  6184. done
  6185. if test -z "$haveit"; then
  6186. if test -d "$additional_libdir"; then
  6187. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  6188. fi
  6189. fi
  6190. haveit=
  6191. for x in $LDFLAGS $LTLIBICONV; do
  6192. acl_save_prefix="$prefix"
  6193. prefix="$acl_final_prefix"
  6194. acl_save_exec_prefix="$exec_prefix"
  6195. exec_prefix="$acl_final_exec_prefix"
  6196. eval x=\"$x\"
  6197. exec_prefix="$acl_save_exec_prefix"
  6198. prefix="$acl_save_prefix"
  6199. if test "X$x" = "X-L$additional_libdir"; then
  6200. haveit=yes
  6201. break
  6202. fi
  6203. done
  6204. if test -z "$haveit"; then
  6205. if test -d "$additional_libdir"; then
  6206. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  6207. fi
  6208. fi
  6209. fi
  6210. fi
  6211. ;;
  6212. -R*)
  6213. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  6214. if test "$enable_rpath" != no; then
  6215. haveit=
  6216. for x in $rpathdirs; do
  6217. if test "X$x" = "X$dir"; then
  6218. haveit=yes
  6219. break
  6220. fi
  6221. done
  6222. if test -z "$haveit"; then
  6223. rpathdirs="$rpathdirs $dir"
  6224. fi
  6225. haveit=
  6226. for x in $ltrpathdirs; do
  6227. if test "X$x" = "X$dir"; then
  6228. haveit=yes
  6229. break
  6230. fi
  6231. done
  6232. if test -z "$haveit"; then
  6233. ltrpathdirs="$ltrpathdirs $dir"
  6234. fi
  6235. fi
  6236. ;;
  6237. -l*)
  6238. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  6239. ;;
  6240. *.la)
  6241. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  6242. ;;
  6243. *)
  6244. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  6245. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  6246. ;;
  6247. esac
  6248. done
  6249. fi
  6250. else
  6251. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  6252. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  6253. fi
  6254. fi
  6255. fi
  6256. done
  6257. done
  6258. if test "X$rpathdirs" != "X"; then
  6259. if test -n "$hardcode_libdir_separator"; then
  6260. alldirs=
  6261. for found_dir in $rpathdirs; do
  6262. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  6263. done
  6264. acl_save_libdir="$libdir"
  6265. libdir="$alldirs"
  6266. eval flag=\"$hardcode_libdir_flag_spec\"
  6267. libdir="$acl_save_libdir"
  6268. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  6269. else
  6270. for found_dir in $rpathdirs; do
  6271. acl_save_libdir="$libdir"
  6272. libdir="$found_dir"
  6273. eval flag=\"$hardcode_libdir_flag_spec\"
  6274. libdir="$acl_save_libdir"
  6275. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  6276. done
  6277. fi
  6278. fi
  6279. if test "X$ltrpathdirs" != "X"; then
  6280. for found_dir in $ltrpathdirs; do
  6281. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  6282. done
  6283. fi
  6284. am_save_CPPFLAGS="$CPPFLAGS"
  6285. for element in $INCICONV; do
  6286. haveit=
  6287. for x in $CPPFLAGS; do
  6288. acl_save_prefix="$prefix"
  6289. prefix="$acl_final_prefix"
  6290. acl_save_exec_prefix="$exec_prefix"
  6291. exec_prefix="$acl_final_exec_prefix"
  6292. eval x=\"$x\"
  6293. exec_prefix="$acl_save_exec_prefix"
  6294. prefix="$acl_save_prefix"
  6295. if test "X$x" = "X$element"; then
  6296. haveit=yes
  6297. break
  6298. fi
  6299. done
  6300. if test -z "$haveit"; then
  6301. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  6302. fi
  6303. done
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  6305. $as_echo_n "checking for iconv... " >&6; }
  6306. if test "${am_cv_func_iconv+set}" = set; then :
  6307. $as_echo_n "(cached) " >&6
  6308. else
  6309. am_cv_func_iconv="no, consider installing GNU libiconv"
  6310. am_cv_lib_iconv=no
  6311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6312. /* end confdefs.h. */
  6313. #include <stdlib.h>
  6314. #include <iconv.h>
  6315. int
  6316. main ()
  6317. {
  6318. iconv_t cd = iconv_open("","");
  6319. iconv(cd,NULL,NULL,NULL,NULL);
  6320. iconv_close(cd);
  6321. ;
  6322. return 0;
  6323. }
  6324. _ACEOF
  6325. if ac_fn_cxx_try_link "$LINENO"; then :
  6326. am_cv_func_iconv=yes
  6327. fi
  6328. rm -f core conftest.err conftest.$ac_objext \
  6329. conftest$ac_exeext conftest.$ac_ext
  6330. if test "$am_cv_func_iconv" != yes; then
  6331. am_save_LIBS="$LIBS"
  6332. LIBS="$LIBS $LIBICONV"
  6333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6334. /* end confdefs.h. */
  6335. #include <stdlib.h>
  6336. #include <iconv.h>
  6337. int
  6338. main ()
  6339. {
  6340. iconv_t cd = iconv_open("","");
  6341. iconv(cd,NULL,NULL,NULL,NULL);
  6342. iconv_close(cd);
  6343. ;
  6344. return 0;
  6345. }
  6346. _ACEOF
  6347. if ac_fn_cxx_try_link "$LINENO"; then :
  6348. am_cv_lib_iconv=yes
  6349. am_cv_func_iconv=yes
  6350. fi
  6351. rm -f core conftest.err conftest.$ac_objext \
  6352. conftest$ac_exeext conftest.$ac_ext
  6353. LIBS="$am_save_LIBS"
  6354. fi
  6355. fi
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  6357. $as_echo "$am_cv_func_iconv" >&6; }
  6358. if test "$am_cv_func_iconv" = yes; then
  6359. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  6360. fi
  6361. if test "$am_cv_lib_iconv" = yes; then
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  6363. $as_echo_n "checking how to link with libiconv... " >&6; }
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  6365. $as_echo "$LIBICONV" >&6; }
  6366. else
  6367. CPPFLAGS="$am_save_CPPFLAGS"
  6368. LIBICONV=
  6369. LTLIBICONV=
  6370. fi
  6371. if test "$am_cv_func_iconv" = yes; then
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  6373. $as_echo_n "checking for iconv declaration... " >&6; }
  6374. if test "${am_cv_proto_iconv+set}" = set; then :
  6375. $as_echo_n "(cached) " >&6
  6376. else
  6377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6378. /* end confdefs.h. */
  6379. #include <stdlib.h>
  6380. #include <iconv.h>
  6381. extern
  6382. #ifdef __cplusplus
  6383. "C"
  6384. #endif
  6385. #if defined(__STDC__) || defined(__cplusplus)
  6386. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  6387. #else
  6388. size_t iconv();
  6389. #endif
  6390. int
  6391. main ()
  6392. {
  6393. ;
  6394. return 0;
  6395. }
  6396. _ACEOF
  6397. if ac_fn_cxx_try_compile "$LINENO"; then :
  6398. am_cv_proto_iconv_arg1=""
  6399. else
  6400. am_cv_proto_iconv_arg1="const"
  6401. fi
  6402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6403. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  6404. fi
  6405. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  6407. }$am_cv_proto_iconv" >&5
  6408. $as_echo "${ac_t:-
  6409. }$am_cv_proto_iconv" >&6; }
  6410. cat >>confdefs.h <<_ACEOF
  6411. #define ICONV_CONST $am_cv_proto_iconv_arg1
  6412. _ACEOF
  6413. fi
  6414. ac_ext=c
  6415. ac_cpp='$CPP $CPPFLAGS'
  6416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6419. # More defines and substitutions.
  6420. PACKAGE="$PACKAGE_TARNAME"
  6421. cat >>confdefs.h <<_ACEOF
  6422. #define PACKAGE "$PACKAGE"
  6423. _ACEOF
  6424. if test "x$enable_nls" != xno; then
  6425. USED_CATALOGS='$(CATALOGS)'
  6426. else
  6427. USED_CATALOGS=
  6428. fi
  6429. # Check whether --enable-maintainer-mode was given.
  6430. if test "${enable_maintainer_mode+set}" = set; then :
  6431. enableval=$enable_maintainer_mode;
  6432. else
  6433. enable_maintainer_mode=no
  6434. fi
  6435. if test "x$enable_maintainer_mode" = xno; then
  6436. MAINT='#'
  6437. else
  6438. MAINT=
  6439. fi
  6440. # Enable expensive internal checks
  6441. is_release=
  6442. if test -f $srcdir/../gcc/DEV-PHASE \
  6443. && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
  6444. is_release=yes
  6445. fi
  6446. # Check whether --enable-checking was given.
  6447. if test "${enable_checking+set}" = set; then :
  6448. enableval=$enable_checking; ac_checking_flags="${enableval}"
  6449. else
  6450. # Determine the default checks.
  6451. if test x$is_release = x ; then
  6452. ac_checking_flags=yes
  6453. else
  6454. ac_checking_flags=release
  6455. fi
  6456. fi
  6457. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
  6458. for check in release $ac_checking_flags
  6459. do
  6460. case $check in
  6461. # these set all the flags to specific states
  6462. yes|all) ac_checking=1 ; ac_valgrind_checking= ;;
  6463. no|none|release) ac_checking= ; ac_valgrind_checking= ;;
  6464. # these enable particular checks
  6465. misc) ac_checking=1 ;;
  6466. valgrind) ac_valgrind_checking=1 ;;
  6467. # accept
  6468. *) ;;
  6469. esac
  6470. done
  6471. IFS="$ac_save_IFS"
  6472. if test x$ac_checking != x ; then
  6473. $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  6474. fi
  6475. if test x$ac_valgrind_checking != x ; then
  6476. $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
  6477. fi
  6478. # Check whether --enable-canonical-system-headers was given.
  6479. if test "${enable_canonical_system_headers+set}" = set; then :
  6480. enableval=$enable_canonical_system_headers;
  6481. else
  6482. enable_canonical_system_headers=yes
  6483. fi
  6484. if test $enable_canonical_system_headers != no; then
  6485. $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
  6486. fi
  6487. case $target in
  6488. i?86-* | x86_64-*)
  6489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6490. /* end confdefs.h. */
  6491. int
  6492. main ()
  6493. {
  6494. asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
  6495. ;
  6496. return 0;
  6497. }
  6498. _ACEOF
  6499. if ac_fn_c_try_compile "$LINENO"; then :
  6500. $as_echo "#define HAVE_SSE4 1" >>confdefs.h
  6501. fi
  6502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6503. esac
  6504. # Enable --enable-host-shared.
  6505. # Check whether --enable-host-shared was given.
  6506. if test "${enable_host_shared+set}" = set; then :
  6507. enableval=$enable_host_shared; PICFLAG=-fPIC
  6508. else
  6509. PICFLAG=
  6510. fi
  6511. # Output.
  6512. ac_config_headers="$ac_config_headers config.h:config.in"
  6513. ac_config_files="$ac_config_files Makefile"
  6514. cat >confcache <<\_ACEOF
  6515. # This file is a shell script that caches the results of configure
  6516. # tests run on this system so they can be shared between configure
  6517. # scripts and configure runs, see configure's option --config-cache.
  6518. # It is not useful on other systems. If it contains results you don't
  6519. # want to keep, you may remove or edit it.
  6520. #
  6521. # config.status only pays attention to the cache file if you give it
  6522. # the --recheck option to rerun configure.
  6523. #
  6524. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6525. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6526. # following values.
  6527. _ACEOF
  6528. # The following way of writing the cache mishandles newlines in values,
  6529. # but we know of no workaround that is simple, portable, and efficient.
  6530. # So, we kill variables containing newlines.
  6531. # Ultrix sh set writes to stderr and can't be redirected directly,
  6532. # and sets the high bit in the cache file unless we assign to the vars.
  6533. (
  6534. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6535. eval ac_val=\$$ac_var
  6536. case $ac_val in #(
  6537. *${as_nl}*)
  6538. case $ac_var in #(
  6539. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6540. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6541. esac
  6542. case $ac_var in #(
  6543. _ | IFS | as_nl) ;; #(
  6544. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6545. *) { eval $ac_var=; unset $ac_var;} ;;
  6546. esac ;;
  6547. esac
  6548. done
  6549. (set) 2>&1 |
  6550. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6551. *${as_nl}ac_space=\ *)
  6552. # `set' does not quote correctly, so add quotes: double-quote
  6553. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6554. sed -n \
  6555. "s/'/'\\\\''/g;
  6556. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6557. ;; #(
  6558. *)
  6559. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6560. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6561. ;;
  6562. esac |
  6563. sort
  6564. ) |
  6565. sed '
  6566. /^ac_cv_env_/b end
  6567. t clear
  6568. :clear
  6569. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6570. t end
  6571. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6572. :end' >>confcache
  6573. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6574. if test -w "$cache_file"; then
  6575. test "x$cache_file" != "x/dev/null" &&
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6577. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6578. cat confcache >$cache_file
  6579. else
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6581. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6582. fi
  6583. fi
  6584. rm -f confcache
  6585. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6586. # Let make expand exec_prefix.
  6587. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6588. DEFS=-DHAVE_CONFIG_H
  6589. ac_libobjs=
  6590. ac_ltlibobjs=
  6591. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6592. # 1. Remove the extension, and $U if already installed.
  6593. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  6594. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  6595. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  6596. # will be set to the directory where LIBOBJS objects are built.
  6597. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  6598. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  6599. done
  6600. LIBOBJS=$ac_libobjs
  6601. LTLIBOBJS=$ac_ltlibobjs
  6602. : ${CONFIG_STATUS=./config.status}
  6603. ac_write_fail=0
  6604. ac_clean_files_save=$ac_clean_files
  6605. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  6607. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6608. as_write_fail=0
  6609. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  6610. #! $SHELL
  6611. # Generated by $as_me.
  6612. # Run this file to recreate the current configuration.
  6613. # Compiler output produced by configure, useful for debugging
  6614. # configure, is in config.log if it exists.
  6615. debug=false
  6616. ac_cs_recheck=false
  6617. ac_cs_silent=false
  6618. SHELL=\${CONFIG_SHELL-$SHELL}
  6619. export SHELL
  6620. _ASEOF
  6621. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  6622. ## -------------------- ##
  6623. ## M4sh Initialization. ##
  6624. ## -------------------- ##
  6625. # Be more Bourne compatible
  6626. DUALCASE=1; export DUALCASE # for MKS sh
  6627. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  6628. emulate sh
  6629. NULLCMD=:
  6630. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  6631. # is contrary to our usage. Disable this feature.
  6632. alias -g '${1+"$@"}'='"$@"'
  6633. setopt NO_GLOB_SUBST
  6634. else
  6635. case `(set -o) 2>/dev/null` in #(
  6636. *posix*) :
  6637. set -o posix ;; #(
  6638. *) :
  6639. ;;
  6640. esac
  6641. fi
  6642. as_nl='
  6643. '
  6644. export as_nl
  6645. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  6646. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6647. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  6648. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  6649. # Prefer a ksh shell builtin over an external printf program on Solaris,
  6650. # but without wasting forks for bash or zsh.
  6651. if test -z "$BASH_VERSION$ZSH_VERSION" \
  6652. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  6653. as_echo='print -r --'
  6654. as_echo_n='print -rn --'
  6655. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  6656. as_echo='printf %s\n'
  6657. as_echo_n='printf %s'
  6658. else
  6659. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  6660. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  6661. as_echo_n='/usr/ucb/echo -n'
  6662. else
  6663. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  6664. as_echo_n_body='eval
  6665. arg=$1;
  6666. case $arg in #(
  6667. *"$as_nl"*)
  6668. expr "X$arg" : "X\\(.*\\)$as_nl";
  6669. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  6670. esac;
  6671. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  6672. '
  6673. export as_echo_n_body
  6674. as_echo_n='sh -c $as_echo_n_body as_echo'
  6675. fi
  6676. export as_echo_body
  6677. as_echo='sh -c $as_echo_body as_echo'
  6678. fi
  6679. # The user is always right.
  6680. if test "${PATH_SEPARATOR+set}" != set; then
  6681. PATH_SEPARATOR=:
  6682. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  6683. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  6684. PATH_SEPARATOR=';'
  6685. }
  6686. fi
  6687. # IFS
  6688. # We need space, tab and new line, in precisely that order. Quoting is
  6689. # there to prevent editors from complaining about space-tab.
  6690. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  6691. # splitting by setting IFS to empty value.)
  6692. IFS=" "" $as_nl"
  6693. # Find who we are. Look in the path if we contain no directory separator.
  6694. case $0 in #((
  6695. *[\\/]* ) as_myself=$0 ;;
  6696. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6697. for as_dir in $PATH
  6698. do
  6699. IFS=$as_save_IFS
  6700. test -z "$as_dir" && as_dir=.
  6701. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6702. done
  6703. IFS=$as_save_IFS
  6704. ;;
  6705. esac
  6706. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6707. # in which case we are not to be found in the path.
  6708. if test "x$as_myself" = x; then
  6709. as_myself=$0
  6710. fi
  6711. if test ! -f "$as_myself"; then
  6712. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  6713. exit 1
  6714. fi
  6715. # Unset variables that we do not need and which cause bugs (e.g. in
  6716. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  6717. # suppresses any "Segmentation fault" message there. '((' could
  6718. # trigger a bug in pdksh 5.2.14.
  6719. for as_var in BASH_ENV ENV MAIL MAILPATH
  6720. do eval test x\${$as_var+set} = xset \
  6721. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  6722. done
  6723. PS1='$ '
  6724. PS2='> '
  6725. PS4='+ '
  6726. # NLS nuisances.
  6727. LC_ALL=C
  6728. export LC_ALL
  6729. LANGUAGE=C
  6730. export LANGUAGE
  6731. # CDPATH.
  6732. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  6733. # as_fn_error ERROR [LINENO LOG_FD]
  6734. # ---------------------------------
  6735. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  6736. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  6737. # script with status $?, using 1 if that was 0.
  6738. as_fn_error ()
  6739. {
  6740. as_status=$?; test $as_status -eq 0 && as_status=1
  6741. if test "$3"; then
  6742. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  6743. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  6744. fi
  6745. $as_echo "$as_me: error: $1" >&2
  6746. as_fn_exit $as_status
  6747. } # as_fn_error
  6748. # as_fn_set_status STATUS
  6749. # -----------------------
  6750. # Set $? to STATUS, without forking.
  6751. as_fn_set_status ()
  6752. {
  6753. return $1
  6754. } # as_fn_set_status
  6755. # as_fn_exit STATUS
  6756. # -----------------
  6757. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  6758. as_fn_exit ()
  6759. {
  6760. set +e
  6761. as_fn_set_status $1
  6762. exit $1
  6763. } # as_fn_exit
  6764. # as_fn_unset VAR
  6765. # ---------------
  6766. # Portably unset VAR.
  6767. as_fn_unset ()
  6768. {
  6769. { eval $1=; unset $1;}
  6770. }
  6771. as_unset=as_fn_unset
  6772. # as_fn_append VAR VALUE
  6773. # ----------------------
  6774. # Append the text in VALUE to the end of the definition contained in VAR. Take
  6775. # advantage of any shell optimizations that allow amortized linear growth over
  6776. # repeated appends, instead of the typical quadratic growth present in naive
  6777. # implementations.
  6778. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  6779. eval 'as_fn_append ()
  6780. {
  6781. eval $1+=\$2
  6782. }'
  6783. else
  6784. as_fn_append ()
  6785. {
  6786. eval $1=\$$1\$2
  6787. }
  6788. fi # as_fn_append
  6789. # as_fn_arith ARG...
  6790. # ------------------
  6791. # Perform arithmetic evaluation on the ARGs, and store the result in the
  6792. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  6793. # must be portable across $(()) and expr.
  6794. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  6795. eval 'as_fn_arith ()
  6796. {
  6797. as_val=$(( $* ))
  6798. }'
  6799. else
  6800. as_fn_arith ()
  6801. {
  6802. as_val=`expr "$@" || test $? -eq 1`
  6803. }
  6804. fi # as_fn_arith
  6805. if expr a : '\(a\)' >/dev/null 2>&1 &&
  6806. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  6807. as_expr=expr
  6808. else
  6809. as_expr=false
  6810. fi
  6811. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  6812. as_basename=basename
  6813. else
  6814. as_basename=false
  6815. fi
  6816. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  6817. as_dirname=dirname
  6818. else
  6819. as_dirname=false
  6820. fi
  6821. as_me=`$as_basename -- "$0" ||
  6822. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6823. X"$0" : 'X\(//\)$' \| \
  6824. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  6825. $as_echo X/"$0" |
  6826. sed '/^.*\/\([^/][^/]*\)\/*$/{
  6827. s//\1/
  6828. q
  6829. }
  6830. /^X\/\(\/\/\)$/{
  6831. s//\1/
  6832. q
  6833. }
  6834. /^X\/\(\/\).*/{
  6835. s//\1/
  6836. q
  6837. }
  6838. s/.*/./; q'`
  6839. # Avoid depending upon Character Ranges.
  6840. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6841. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6842. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6843. as_cr_digits='0123456789'
  6844. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6845. ECHO_C= ECHO_N= ECHO_T=
  6846. case `echo -n x` in #(((((
  6847. -n*)
  6848. case `echo 'xy\c'` in
  6849. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  6850. xy) ECHO_C='\c';;
  6851. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  6852. ECHO_T=' ';;
  6853. esac;;
  6854. *)
  6855. ECHO_N='-n';;
  6856. esac
  6857. rm -f conf$$ conf$$.exe conf$$.file
  6858. if test -d conf$$.dir; then
  6859. rm -f conf$$.dir/conf$$.file
  6860. else
  6861. rm -f conf$$.dir
  6862. mkdir conf$$.dir 2>/dev/null
  6863. fi
  6864. if (echo >conf$$.file) 2>/dev/null; then
  6865. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6866. as_ln_s='ln -s'
  6867. # ... but there are two gotchas:
  6868. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  6869. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  6870. # In both cases, we have to default to `cp -p'.
  6871. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  6872. as_ln_s='cp -p'
  6873. elif ln conf$$.file conf$$ 2>/dev/null; then
  6874. as_ln_s=ln
  6875. else
  6876. as_ln_s='cp -p'
  6877. fi
  6878. else
  6879. as_ln_s='cp -p'
  6880. fi
  6881. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  6882. rmdir conf$$.dir 2>/dev/null
  6883. # as_fn_mkdir_p
  6884. # -------------
  6885. # Create "$as_dir" as a directory, including parents if necessary.
  6886. as_fn_mkdir_p ()
  6887. {
  6888. case $as_dir in #(
  6889. -*) as_dir=./$as_dir;;
  6890. esac
  6891. test -d "$as_dir" || eval $as_mkdir_p || {
  6892. as_dirs=
  6893. while :; do
  6894. case $as_dir in #(
  6895. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  6896. *) as_qdir=$as_dir;;
  6897. esac
  6898. as_dirs="'$as_qdir' $as_dirs"
  6899. as_dir=`$as_dirname -- "$as_dir" ||
  6900. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6901. X"$as_dir" : 'X\(//\)[^/]' \| \
  6902. X"$as_dir" : 'X\(//\)$' \| \
  6903. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  6904. $as_echo X"$as_dir" |
  6905. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  6906. s//\1/
  6907. q
  6908. }
  6909. /^X\(\/\/\)[^/].*/{
  6910. s//\1/
  6911. q
  6912. }
  6913. /^X\(\/\/\)$/{
  6914. s//\1/
  6915. q
  6916. }
  6917. /^X\(\/\).*/{
  6918. s//\1/
  6919. q
  6920. }
  6921. s/.*/./; q'`
  6922. test -d "$as_dir" && break
  6923. done
  6924. test -z "$as_dirs" || eval "mkdir $as_dirs"
  6925. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  6926. } # as_fn_mkdir_p
  6927. if mkdir -p . 2>/dev/null; then
  6928. as_mkdir_p='mkdir -p "$as_dir"'
  6929. else
  6930. test -d ./-p && rmdir ./-p
  6931. as_mkdir_p=false
  6932. fi
  6933. if test -x / >/dev/null 2>&1; then
  6934. as_test_x='test -x'
  6935. else
  6936. if ls -dL / >/dev/null 2>&1; then
  6937. as_ls_L_option=L
  6938. else
  6939. as_ls_L_option=
  6940. fi
  6941. as_test_x='
  6942. eval sh -c '\''
  6943. if test -d "$1"; then
  6944. test -d "$1/.";
  6945. else
  6946. case $1 in #(
  6947. -*)set "./$1";;
  6948. esac;
  6949. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  6950. ???[sx]*):;;*)false;;esac;fi
  6951. '\'' sh
  6952. '
  6953. fi
  6954. as_executable_p=$as_test_x
  6955. # Sed expression to map a string onto a valid CPP name.
  6956. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6957. # Sed expression to map a string onto a valid variable name.
  6958. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6959. exec 6>&1
  6960. ## ----------------------------------- ##
  6961. ## Main body of $CONFIG_STATUS script. ##
  6962. ## ----------------------------------- ##
  6963. _ASEOF
  6964. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  6965. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6966. # Save the log message, to keep $0 and so on meaningful, and to
  6967. # report actual input values of CONFIG_FILES etc. instead of their
  6968. # values after options handling.
  6969. ac_log="
  6970. This file was extended by cpplib $as_me , which was
  6971. generated by GNU Autoconf 2.64. Invocation command line was
  6972. CONFIG_FILES = $CONFIG_FILES
  6973. CONFIG_HEADERS = $CONFIG_HEADERS
  6974. CONFIG_LINKS = $CONFIG_LINKS
  6975. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6976. $ $0 $@
  6977. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  6978. "
  6979. _ACEOF
  6980. case $ac_config_files in *"
  6981. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  6982. esac
  6983. case $ac_config_headers in *"
  6984. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  6985. esac
  6986. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  6987. # Files that config.status was made for.
  6988. config_files="$ac_config_files"
  6989. config_headers="$ac_config_headers"
  6990. config_commands="$ac_config_commands"
  6991. _ACEOF
  6992. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  6993. ac_cs_usage="\
  6994. \`$as_me' instantiates files and other configuration actions
  6995. from templates according to the current configuration. Unless the files
  6996. and actions are specified as TAGs, all are instantiated by default.
  6997. Usage: $0 [OPTION]... [TAG]...
  6998. -h, --help print this help, then exit
  6999. -V, --version print version number and configuration settings, then exit
  7000. -q, --quiet, --silent
  7001. do not print progress messages
  7002. -d, --debug don't remove temporary files
  7003. --recheck update $as_me by reconfiguring in the same conditions
  7004. --file=FILE[:TEMPLATE]
  7005. instantiate the configuration file FILE
  7006. --header=FILE[:TEMPLATE]
  7007. instantiate the configuration header FILE
  7008. Configuration files:
  7009. $config_files
  7010. Configuration headers:
  7011. $config_headers
  7012. Configuration commands:
  7013. $config_commands
  7014. Report bugs to <gcc-bugs@gcc.gnu.org>."
  7015. _ACEOF
  7016. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7017. ac_cs_version="\\
  7018. cpplib config.status
  7019. configured by $0, generated by GNU Autoconf 2.64,
  7020. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  7021. Copyright (C) 2009 Free Software Foundation, Inc.
  7022. This config.status script is free software; the Free Software Foundation
  7023. gives unlimited permission to copy, distribute and modify it."
  7024. ac_pwd='$ac_pwd'
  7025. srcdir='$srcdir'
  7026. INSTALL='$INSTALL'
  7027. test -n "\$AWK" || AWK=awk
  7028. _ACEOF
  7029. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7030. # The default lists apply if the user does not specify any file.
  7031. ac_need_defaults=:
  7032. while test $# != 0
  7033. do
  7034. case $1 in
  7035. --*=*)
  7036. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7037. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7038. ac_shift=:
  7039. ;;
  7040. *)
  7041. ac_option=$1
  7042. ac_optarg=$2
  7043. ac_shift=shift
  7044. ;;
  7045. esac
  7046. case $ac_option in
  7047. # Handling of the options.
  7048. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7049. ac_cs_recheck=: ;;
  7050. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7051. $as_echo "$ac_cs_version"; exit ;;
  7052. --debug | --debu | --deb | --de | --d | -d )
  7053. debug=: ;;
  7054. --file | --fil | --fi | --f )
  7055. $ac_shift
  7056. case $ac_optarg in
  7057. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7058. esac
  7059. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7060. ac_need_defaults=false;;
  7061. --header | --heade | --head | --hea )
  7062. $ac_shift
  7063. case $ac_optarg in
  7064. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7065. esac
  7066. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7067. ac_need_defaults=false;;
  7068. --he | --h)
  7069. # Conflict between --help and --header
  7070. as_fn_error "ambiguous option: \`$1'
  7071. Try \`$0 --help' for more information.";;
  7072. --help | --hel | -h )
  7073. $as_echo "$ac_cs_usage"; exit ;;
  7074. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7075. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7076. ac_cs_silent=: ;;
  7077. # This is an error.
  7078. -*) as_fn_error "unrecognized option: \`$1'
  7079. Try \`$0 --help' for more information." ;;
  7080. *) as_fn_append ac_config_targets " $1"
  7081. ac_need_defaults=false ;;
  7082. esac
  7083. shift
  7084. done
  7085. ac_configure_extra_args=
  7086. if $ac_cs_silent; then
  7087. exec 6>/dev/null
  7088. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7089. fi
  7090. _ACEOF
  7091. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7092. if \$ac_cs_recheck; then
  7093. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7094. shift
  7095. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7096. CONFIG_SHELL='$SHELL'
  7097. export CONFIG_SHELL
  7098. exec "\$@"
  7099. fi
  7100. _ACEOF
  7101. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7102. exec 5>>config.log
  7103. {
  7104. echo
  7105. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7106. ## Running $as_me. ##
  7107. _ASBOX
  7108. $as_echo "$ac_log"
  7109. } >&5
  7110. _ACEOF
  7111. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7112. #
  7113. # INIT-COMMANDS
  7114. #
  7115. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  7116. _ACEOF
  7117. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7118. # Handling of arguments.
  7119. for ac_config_target in $ac_config_targets
  7120. do
  7121. case $ac_config_target in
  7122. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  7123. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  7124. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7125. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7126. esac
  7127. done
  7128. # If the user did not use the arguments to specify the items to instantiate,
  7129. # then the envvar interface is used. Set only those that are not.
  7130. # We use the long form for the default assignment because of an extremely
  7131. # bizarre bug on SunOS 4.1.3.
  7132. if $ac_need_defaults; then
  7133. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7134. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7135. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7136. fi
  7137. # Have a temporary directory for convenience. Make it in the build tree
  7138. # simply because there is no reason against having it here, and in addition,
  7139. # creating and moving files from /tmp can sometimes cause problems.
  7140. # Hook for its removal unless debugging.
  7141. # Note that there is a small window in which the directory will not be cleaned:
  7142. # after its creation but before its name has been assigned to `$tmp'.
  7143. $debug ||
  7144. {
  7145. tmp=
  7146. trap 'exit_status=$?
  7147. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  7148. ' 0
  7149. trap 'as_fn_exit 1' 1 2 13 15
  7150. }
  7151. # Create a (secure) tmp directory for tmp files.
  7152. {
  7153. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7154. test -n "$tmp" && test -d "$tmp"
  7155. } ||
  7156. {
  7157. tmp=./conf$$-$RANDOM
  7158. (umask 077 && mkdir "$tmp")
  7159. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  7160. # Set up the scripts for CONFIG_FILES section.
  7161. # No need to generate them if there are no CONFIG_FILES.
  7162. # This happens for instance with `./config.status config.h'.
  7163. if test -n "$CONFIG_FILES"; then
  7164. ac_cr=`echo X | tr X '\015'`
  7165. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7166. # But we know of no other shell where ac_cr would be empty at this
  7167. # point, so we can use a bashism as a fallback.
  7168. if test "x$ac_cr" = x; then
  7169. eval ac_cr=\$\'\\r\'
  7170. fi
  7171. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7172. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7173. ac_cs_awk_cr='\r'
  7174. else
  7175. ac_cs_awk_cr=$ac_cr
  7176. fi
  7177. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  7178. _ACEOF
  7179. {
  7180. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7181. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7182. echo "_ACEOF"
  7183. } >conf$$subs.sh ||
  7184. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7185. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  7186. ac_delim='%!_!# '
  7187. for ac_last_try in false false false false false :; do
  7188. . ./conf$$subs.sh ||
  7189. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7190. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7191. if test $ac_delim_n = $ac_delim_num; then
  7192. break
  7193. elif $ac_last_try; then
  7194. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  7195. else
  7196. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7197. fi
  7198. done
  7199. rm -f conf$$subs.sh
  7200. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7201. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  7202. _ACEOF
  7203. sed -n '
  7204. h
  7205. s/^/S["/; s/!.*/"]=/
  7206. p
  7207. g
  7208. s/^[^!]*!//
  7209. :repl
  7210. t repl
  7211. s/'"$ac_delim"'$//
  7212. t delim
  7213. :nl
  7214. h
  7215. s/\(.\{148\}\).*/\1/
  7216. t more1
  7217. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7218. p
  7219. n
  7220. b repl
  7221. :more1
  7222. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7223. p
  7224. g
  7225. s/.\{148\}//
  7226. t nl
  7227. :delim
  7228. h
  7229. s/\(.\{148\}\).*/\1/
  7230. t more2
  7231. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7232. p
  7233. b
  7234. :more2
  7235. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7236. p
  7237. g
  7238. s/.\{148\}//
  7239. t delim
  7240. ' <conf$$subs.awk | sed '
  7241. /^[^""]/{
  7242. N
  7243. s/\n//
  7244. }
  7245. ' >>$CONFIG_STATUS || ac_write_fail=1
  7246. rm -f conf$$subs.awk
  7247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7248. _ACAWK
  7249. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  7250. for (key in S) S_is_set[key] = 1
  7251. FS = ""
  7252. }
  7253. {
  7254. line = $ 0
  7255. nfields = split(line, field, "@")
  7256. substed = 0
  7257. len = length(field[1])
  7258. for (i = 2; i < nfields; i++) {
  7259. key = field[i]
  7260. keylen = length(key)
  7261. if (S_is_set[key]) {
  7262. value = S[key]
  7263. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7264. len += length(value) + length(field[++i])
  7265. substed = 1
  7266. } else
  7267. len += 1 + keylen
  7268. }
  7269. print line
  7270. }
  7271. _ACAWK
  7272. _ACEOF
  7273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7274. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7275. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7276. else
  7277. cat
  7278. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  7279. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  7280. _ACEOF
  7281. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7282. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7283. # trailing colons and then remove the whole line if VPATH becomes empty
  7284. # (actually we leave an empty line to preserve line numbers).
  7285. if test "x$srcdir" = x.; then
  7286. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7287. s/:*\$(srcdir):*/:/
  7288. s/:*\${srcdir}:*/:/
  7289. s/:*@srcdir@:*/:/
  7290. s/^\([^=]*=[ ]*\):*/\1/
  7291. s/:*$//
  7292. s/^[^=]*=[ ]*$//
  7293. }'
  7294. fi
  7295. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7296. fi # test -n "$CONFIG_FILES"
  7297. # Set up the scripts for CONFIG_HEADERS section.
  7298. # No need to generate them if there are no CONFIG_HEADERS.
  7299. # This happens for instance with `./config.status Makefile'.
  7300. if test -n "$CONFIG_HEADERS"; then
  7301. cat >"$tmp/defines.awk" <<\_ACAWK ||
  7302. BEGIN {
  7303. _ACEOF
  7304. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7305. # here-document in config.status, that substitutes the proper values into
  7306. # config.h.in to produce config.h.
  7307. # Create a delimiter string that does not exist in confdefs.h, to ease
  7308. # handling of long lines.
  7309. ac_delim='%!_!# '
  7310. for ac_last_try in false false :; do
  7311. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  7312. if test -z "$ac_t"; then
  7313. break
  7314. elif $ac_last_try; then
  7315. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  7316. else
  7317. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7318. fi
  7319. done
  7320. # For the awk script, D is an array of macro values keyed by name,
  7321. # likewise P contains macro parameters if any. Preserve backslash
  7322. # newline sequences.
  7323. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7324. sed -n '
  7325. s/.\{148\}/&'"$ac_delim"'/g
  7326. t rset
  7327. :rset
  7328. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7329. t def
  7330. d
  7331. :def
  7332. s/\\$//
  7333. t bsnl
  7334. s/["\\]/\\&/g
  7335. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7336. D["\1"]=" \3"/p
  7337. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7338. d
  7339. :bsnl
  7340. s/["\\]/\\&/g
  7341. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7342. D["\1"]=" \3\\\\\\n"\\/p
  7343. t cont
  7344. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7345. t cont
  7346. d
  7347. :cont
  7348. n
  7349. s/.\{148\}/&'"$ac_delim"'/g
  7350. t clear
  7351. :clear
  7352. s/\\$//
  7353. t bsnlc
  7354. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7355. d
  7356. :bsnlc
  7357. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7358. b cont
  7359. ' <confdefs.h | sed '
  7360. s/'"$ac_delim"'/"\\\
  7361. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7362. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7363. for (key in D) D_is_set[key] = 1
  7364. FS = ""
  7365. }
  7366. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7367. line = \$ 0
  7368. split(line, arg, " ")
  7369. if (arg[1] == "#") {
  7370. defundef = arg[2]
  7371. mac1 = arg[3]
  7372. } else {
  7373. defundef = substr(arg[1], 2)
  7374. mac1 = arg[2]
  7375. }
  7376. split(mac1, mac2, "(") #)
  7377. macro = mac2[1]
  7378. prefix = substr(line, 1, index(line, defundef) - 1)
  7379. if (D_is_set[macro]) {
  7380. # Preserve the white space surrounding the "#".
  7381. print prefix "define", macro P[macro] D[macro]
  7382. next
  7383. } else {
  7384. # Replace #undef with comments. This is necessary, for example,
  7385. # in the case of _POSIX_SOURCE, which is predefined and required
  7386. # on some systems where configure will not decide to define it.
  7387. if (defundef == "undef") {
  7388. print "/*", prefix defundef, macro, "*/"
  7389. next
  7390. }
  7391. }
  7392. }
  7393. { print }
  7394. _ACAWK
  7395. _ACEOF
  7396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7397. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  7398. fi # test -n "$CONFIG_HEADERS"
  7399. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7400. shift
  7401. for ac_tag
  7402. do
  7403. case $ac_tag in
  7404. :[FHLC]) ac_mode=$ac_tag; continue;;
  7405. esac
  7406. case $ac_mode$ac_tag in
  7407. :[FHL]*:*);;
  7408. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7409. :[FH]-) ac_tag=-:-;;
  7410. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7411. esac
  7412. ac_save_IFS=$IFS
  7413. IFS=:
  7414. set x $ac_tag
  7415. IFS=$ac_save_IFS
  7416. shift
  7417. ac_file=$1
  7418. shift
  7419. case $ac_mode in
  7420. :L) ac_source=$1;;
  7421. :[FH])
  7422. ac_file_inputs=
  7423. for ac_f
  7424. do
  7425. case $ac_f in
  7426. -) ac_f="$tmp/stdin";;
  7427. *) # Look for the file first in the build tree, then in the source tree
  7428. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7429. # because $ac_f cannot contain `:'.
  7430. test -f "$ac_f" ||
  7431. case $ac_f in
  7432. [\\/$]*) false;;
  7433. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7434. esac ||
  7435. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7436. esac
  7437. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7438. as_fn_append ac_file_inputs " '$ac_f'"
  7439. done
  7440. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7441. # use $as_me), people would be surprised to read:
  7442. # /* config.h. Generated by config.status. */
  7443. configure_input='Generated from '`
  7444. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7445. `' by configure.'
  7446. if test x"$ac_file" != x-; then
  7447. configure_input="$ac_file. $configure_input"
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7449. $as_echo "$as_me: creating $ac_file" >&6;}
  7450. fi
  7451. # Neutralize special characters interpreted by sed in replacement strings.
  7452. case $configure_input in #(
  7453. *\&* | *\|* | *\\* )
  7454. ac_sed_conf_input=`$as_echo "$configure_input" |
  7455. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7456. *) ac_sed_conf_input=$configure_input;;
  7457. esac
  7458. case $ac_tag in
  7459. *:-:* | *:-) cat >"$tmp/stdin" \
  7460. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  7461. esac
  7462. ;;
  7463. esac
  7464. ac_dir=`$as_dirname -- "$ac_file" ||
  7465. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7466. X"$ac_file" : 'X\(//\)[^/]' \| \
  7467. X"$ac_file" : 'X\(//\)$' \| \
  7468. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7469. $as_echo X"$ac_file" |
  7470. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7471. s//\1/
  7472. q
  7473. }
  7474. /^X\(\/\/\)[^/].*/{
  7475. s//\1/
  7476. q
  7477. }
  7478. /^X\(\/\/\)$/{
  7479. s//\1/
  7480. q
  7481. }
  7482. /^X\(\/\).*/{
  7483. s//\1/
  7484. q
  7485. }
  7486. s/.*/./; q'`
  7487. as_dir="$ac_dir"; as_fn_mkdir_p
  7488. ac_builddir=.
  7489. case "$ac_dir" in
  7490. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7491. *)
  7492. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7493. # A ".." for each directory in $ac_dir_suffix.
  7494. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7495. case $ac_top_builddir_sub in
  7496. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7497. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  7498. esac ;;
  7499. esac
  7500. ac_abs_top_builddir=$ac_pwd
  7501. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  7502. # for backward compatibility:
  7503. ac_top_builddir=$ac_top_build_prefix
  7504. case $srcdir in
  7505. .) # We are building in place.
  7506. ac_srcdir=.
  7507. ac_top_srcdir=$ac_top_builddir_sub
  7508. ac_abs_top_srcdir=$ac_pwd ;;
  7509. [\\/]* | ?:[\\/]* ) # Absolute name.
  7510. ac_srcdir=$srcdir$ac_dir_suffix;
  7511. ac_top_srcdir=$srcdir
  7512. ac_abs_top_srcdir=$srcdir ;;
  7513. *) # Relative name.
  7514. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  7515. ac_top_srcdir=$ac_top_build_prefix$srcdir
  7516. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  7517. esac
  7518. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  7519. case $ac_mode in
  7520. :F)
  7521. #
  7522. # CONFIG_FILE
  7523. #
  7524. case $INSTALL in
  7525. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7526. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  7527. esac
  7528. _ACEOF
  7529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7530. # If the template does not know about datarootdir, expand it.
  7531. # FIXME: This hack should be removed a few years after 2.60.
  7532. ac_datarootdir_hack=; ac_datarootdir_seen=
  7533. ac_sed_dataroot='
  7534. /datarootdir/ {
  7535. p
  7536. q
  7537. }
  7538. /@datadir@/p
  7539. /@docdir@/p
  7540. /@infodir@/p
  7541. /@localedir@/p
  7542. /@mandir@/p'
  7543. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  7544. *datarootdir*) ac_datarootdir_seen=yes;;
  7545. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  7547. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  7548. _ACEOF
  7549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7550. ac_datarootdir_hack='
  7551. s&@datadir@&$datadir&g
  7552. s&@docdir@&$docdir&g
  7553. s&@infodir@&$infodir&g
  7554. s&@localedir@&$localedir&g
  7555. s&@mandir@&$mandir&g
  7556. s&\\\${datarootdir}&$datarootdir&g' ;;
  7557. esac
  7558. _ACEOF
  7559. # Neutralize VPATH when `$srcdir' = `.'.
  7560. # Shell code in configure.ac might set extrasub.
  7561. # FIXME: do we really want to maintain this feature?
  7562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7563. ac_sed_extra="$ac_vpsub
  7564. $extrasub
  7565. _ACEOF
  7566. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7567. :t
  7568. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7569. s|@configure_input@|$ac_sed_conf_input|;t t
  7570. s&@top_builddir@&$ac_top_builddir_sub&;t t
  7571. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  7572. s&@srcdir@&$ac_srcdir&;t t
  7573. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  7574. s&@top_srcdir@&$ac_top_srcdir&;t t
  7575. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  7576. s&@builddir@&$ac_builddir&;t t
  7577. s&@abs_builddir@&$ac_abs_builddir&;t t
  7578. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  7579. s&@INSTALL@&$ac_INSTALL&;t t
  7580. $ac_datarootdir_hack
  7581. "
  7582. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  7583. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7584. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  7585. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  7586. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7588. which seems to be undefined. Please make sure it is defined." >&5
  7589. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  7590. which seems to be undefined. Please make sure it is defined." >&2;}
  7591. rm -f "$tmp/stdin"
  7592. case $ac_file in
  7593. -) cat "$tmp/out" && rm -f "$tmp/out";;
  7594. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  7595. esac \
  7596. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7597. ;;
  7598. :H)
  7599. #
  7600. # CONFIG_HEADER
  7601. #
  7602. if test x"$ac_file" != x-; then
  7603. {
  7604. $as_echo "/* $configure_input */" \
  7605. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  7606. } >"$tmp/config.h" \
  7607. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7608. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  7610. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  7611. else
  7612. rm -f "$ac_file"
  7613. mv "$tmp/config.h" "$ac_file" \
  7614. || as_fn_error "could not create $ac_file" "$LINENO" 5
  7615. fi
  7616. else
  7617. $as_echo "/* $configure_input */" \
  7618. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  7619. || as_fn_error "could not create -" "$LINENO" 5
  7620. fi
  7621. ;;
  7622. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  7623. $as_echo "$as_me: executing $ac_file commands" >&6;}
  7624. ;;
  7625. esac
  7626. case $ac_file$ac_mode in
  7627. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  7628. "config.h":H) echo timestamp > stamp-h1 ;;
  7629. esac
  7630. done # for ac_tag
  7631. as_fn_exit 0
  7632. _ACEOF
  7633. ac_clean_files=$ac_clean_files_save
  7634. test $ac_write_fail = 0 ||
  7635. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  7636. # configure is writing to config.log, and then calls config.status.
  7637. # config.status does its own redirection, appending to config.log.
  7638. # Unfortunately, on DOS this fails, as config.log is still kept open
  7639. # by configure, so config.status won't be able to write to it; its
  7640. # output is simply discarded. So we exec the FD to /dev/null,
  7641. # effectively closing config.log, so it can be properly (re)opened and
  7642. # appended to by config.status. When coming back to configure, we
  7643. # need to make the FD available again.
  7644. if test "$no_create" != yes; then
  7645. ac_cs_success=:
  7646. ac_config_status_args=
  7647. test "$silent" = yes &&
  7648. ac_config_status_args="$ac_config_status_args --quiet"
  7649. exec 5>/dev/null
  7650. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7651. exec 5>>config.log
  7652. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7653. # would make configure fail if this is the last instruction.
  7654. $ac_cs_success || as_fn_exit $?
  7655. fi
  7656. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  7658. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  7659. fi