configure 181 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for Mini-XML 3.3.1.
  4. #
  5. # Report bugs to <https://github.com/michaelrsweet/mxml/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  169. if (eval "$as_required") 2>/dev/null
  170. then :
  171. as_have_required=yes
  172. else $as_nop
  173. as_have_required=no
  174. fi
  175. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  176. then :
  177. else $as_nop
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. case $as_dir in #(((
  184. '') as_dir=./ ;;
  185. */) ;;
  186. *) as_dir=$as_dir/ ;;
  187. esac
  188. as_found=:
  189. case $as_dir in #(
  190. /*)
  191. for as_base in sh bash ksh sh5; do
  192. # Try only shells that exist, to save several forks.
  193. as_shell=$as_dir$as_base
  194. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  195. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  196. then :
  197. CONFIG_SHELL=$as_shell as_have_required=yes
  198. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  199. then :
  200. break 2
  201. fi
  202. fi
  203. done;;
  204. esac
  205. as_found=false
  206. done
  207. IFS=$as_save_IFS
  208. if $as_found
  209. then :
  210. else $as_nop
  211. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  212. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  213. then :
  214. CONFIG_SHELL=$SHELL as_have_required=yes
  215. fi
  216. fi
  217. if test "x$CONFIG_SHELL" != x
  218. then :
  219. export CONFIG_SHELL
  220. # We cannot yet assume a decent shell, so we have to provide a
  221. # neutralization value for shells without unset; and this also
  222. # works around shells that cannot unset nonexistent variables.
  223. # Preserve -v and -x to the replacement shell.
  224. BASH_ENV=/dev/null
  225. ENV=/dev/null
  226. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  227. case $- in # ((((
  228. *v*x* | *x*v* ) as_opts=-vx ;;
  229. *v* ) as_opts=-v ;;
  230. *x* ) as_opts=-x ;;
  231. * ) as_opts= ;;
  232. esac
  233. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  234. # Admittedly, this is quite paranoid, since all the known shells bail
  235. # out after a failed `exec'.
  236. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  237. exit 255
  238. fi
  239. if test x$as_have_required = xno
  240. then :
  241. printf "%s\n" "$0: This script requires a shell more modern than all"
  242. printf "%s\n" "$0: the shells that I found on your system."
  243. if test ${ZSH_VERSION+y} ; then
  244. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  245. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  246. else
  247. printf "%s\n" "$0: Please tell [email protected] and
  248. $0: https://github.com/michaelrsweet/mxml/issues about your
  249. $0: system, including any error possibly output before this
  250. $0: message. Then install a modern shell, or manually run
  251. $0: the script under such a shell if you do have one."
  252. fi
  253. exit 1
  254. fi
  255. fi
  256. fi
  257. SHELL=${CONFIG_SHELL-/bin/sh}
  258. export SHELL
  259. # Unset more variables known to interfere with behavior of common tools.
  260. CLICOLOR_FORCE= GREP_OPTIONS=
  261. unset CLICOLOR_FORCE GREP_OPTIONS
  262. ## --------------------- ##
  263. ## M4sh Shell Functions. ##
  264. ## --------------------- ##
  265. # as_fn_unset VAR
  266. # ---------------
  267. # Portably unset VAR.
  268. as_fn_unset ()
  269. {
  270. { eval $1=; unset $1;}
  271. }
  272. as_unset=as_fn_unset
  273. # as_fn_set_status STATUS
  274. # -----------------------
  275. # Set $? to STATUS, without forking.
  276. as_fn_set_status ()
  277. {
  278. return $1
  279. } # as_fn_set_status
  280. # as_fn_exit STATUS
  281. # -----------------
  282. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  283. as_fn_exit ()
  284. {
  285. set +e
  286. as_fn_set_status $1
  287. exit $1
  288. } # as_fn_exit
  289. # as_fn_nop
  290. # ---------
  291. # Do nothing but, unlike ":", preserve the value of $?.
  292. as_fn_nop ()
  293. {
  294. return $?
  295. }
  296. as_nop=as_fn_nop
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. printf "%s\n" X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  355. then :
  356. eval 'as_fn_append ()
  357. {
  358. eval $1+=\$2
  359. }'
  360. else $as_nop
  361. as_fn_append ()
  362. {
  363. eval $1=\$$1\$2
  364. }
  365. fi # as_fn_append
  366. # as_fn_arith ARG...
  367. # ------------------
  368. # Perform arithmetic evaluation on the ARGs, and store the result in the
  369. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  370. # must be portable across $(()) and expr.
  371. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  372. then :
  373. eval 'as_fn_arith ()
  374. {
  375. as_val=$(( $* ))
  376. }'
  377. else $as_nop
  378. as_fn_arith ()
  379. {
  380. as_val=`expr "$@" || test $? -eq 1`
  381. }
  382. fi # as_fn_arith
  383. # as_fn_nop
  384. # ---------
  385. # Do nothing but, unlike ":", preserve the value of $?.
  386. as_fn_nop ()
  387. {
  388. return $?
  389. }
  390. as_nop=as_fn_nop
  391. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  392. # ----------------------------------------
  393. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  394. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  395. # script with STATUS, using 1 if that was 0.
  396. as_fn_error ()
  397. {
  398. as_status=$1; test $as_status -eq 0 && as_status=1
  399. if test "$4"; then
  400. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  402. fi
  403. printf "%s\n" "$as_me: error: $2" >&2
  404. as_fn_exit $as_status
  405. } # as_fn_error
  406. if expr a : '\(a\)' >/dev/null 2>&1 &&
  407. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  408. as_expr=expr
  409. else
  410. as_expr=false
  411. fi
  412. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  413. as_basename=basename
  414. else
  415. as_basename=false
  416. fi
  417. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  418. as_dirname=dirname
  419. else
  420. as_dirname=false
  421. fi
  422. as_me=`$as_basename -- "$0" ||
  423. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  424. X"$0" : 'X\(//\)$' \| \
  425. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  426. printf "%s\n" X/"$0" |
  427. sed '/^.*\/\([^/][^/]*\)\/*$/{
  428. s//\1/
  429. q
  430. }
  431. /^X\/\(\/\/\)$/{
  432. s//\1/
  433. q
  434. }
  435. /^X\/\(\/\).*/{
  436. s//\1/
  437. q
  438. }
  439. s/.*/./; q'`
  440. # Avoid depending upon Character Ranges.
  441. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  442. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  443. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  444. as_cr_digits='0123456789'
  445. as_cr_alnum=$as_cr_Letters$as_cr_digits
  446. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  447. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  448. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  449. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  450. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  451. sed -n '
  452. p
  453. /[$]LINENO/=
  454. ' <$as_myself |
  455. sed '
  456. s/[$]LINENO.*/&-/
  457. t lineno
  458. b
  459. :lineno
  460. N
  461. :loop
  462. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  463. t loop
  464. s/-\n.*//
  465. ' >$as_me.lineno &&
  466. chmod +x "$as_me.lineno" ||
  467. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  468. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  469. # already done that, so ensure we don't try to do so again and fall
  470. # in an infinite loop. This has already happened in practice.
  471. _as_can_reexec=no; export _as_can_reexec
  472. # Don't try to exec as it changes $[0], causing all sort of problems
  473. # (the dirname of $[0] is not the place where we might find the
  474. # original and so on. Autoconf is especially sensitive to this).
  475. . "./$as_me.lineno"
  476. # Exit status is that of the last command.
  477. exit
  478. }
  479. # Determine whether it's possible to make 'echo' print without a newline.
  480. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  481. # for compatibility with existing Makefiles.
  482. ECHO_C= ECHO_N= ECHO_T=
  483. case `echo -n x` in #(((((
  484. -n*)
  485. case `echo 'xy\c'` in
  486. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  487. xy) ECHO_C='\c';;
  488. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  489. ECHO_T=' ';;
  490. esac;;
  491. *)
  492. ECHO_N='-n';;
  493. esac
  494. # For backward compatibility with old third-party macros, we provide
  495. # the shell variables $as_echo and $as_echo_n. New code should use
  496. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  497. as_echo='printf %s\n'
  498. as_echo_n='printf %s'
  499. rm -f conf$$ conf$$.exe conf$$.file
  500. if test -d conf$$.dir; then
  501. rm -f conf$$.dir/conf$$.file
  502. else
  503. rm -f conf$$.dir
  504. mkdir conf$$.dir 2>/dev/null
  505. fi
  506. if (echo >conf$$.file) 2>/dev/null; then
  507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s='ln -s'
  509. # ... but there are two gotchas:
  510. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  511. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  512. # In both cases, we have to default to `cp -pR'.
  513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  514. as_ln_s='cp -pR'
  515. elif ln conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s=ln
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. else
  521. as_ln_s='cp -pR'
  522. fi
  523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  524. rmdir conf$$.dir 2>/dev/null
  525. if mkdir -p . 2>/dev/null; then
  526. as_mkdir_p='mkdir -p "$as_dir"'
  527. else
  528. test -d ./-p && rmdir ./-p
  529. as_mkdir_p=false
  530. fi
  531. as_test_x='test -x'
  532. as_executable_p=as_fn_executable_p
  533. # Sed expression to map a string onto a valid CPP name.
  534. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  535. # Sed expression to map a string onto a valid variable name.
  536. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  537. test -n "$DJDIR" || exec 7<&0 </dev/null
  538. exec 6>&1
  539. # Name of the host.
  540. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  541. # so uname gets run too.
  542. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  543. #
  544. # Initializations.
  545. #
  546. ac_default_prefix=/usr/local
  547. ac_clean_files=
  548. ac_config_libobj_dir=.
  549. LIBOBJS=
  550. cross_compiling=no
  551. subdirs=
  552. MFLAGS=
  553. MAKEFLAGS=
  554. # Identity of this package.
  555. PACKAGE_NAME='Mini-XML'
  556. PACKAGE_TARNAME='mxml'
  557. PACKAGE_VERSION='3.3.1'
  558. PACKAGE_STRING='Mini-XML 3.3.1'
  559. PACKAGE_BUGREPORT='https://github.com/michaelrsweet/mxml/issues'
  560. PACKAGE_URL='https://www.msweet.org/mxml'
  561. # Factoring default headers for most tests.
  562. ac_includes_default="\
  563. #include <stddef.h>
  564. #ifdef HAVE_STDIO_H
  565. # include <stdio.h>
  566. #endif
  567. #ifdef HAVE_STDLIB_H
  568. # include <stdlib.h>
  569. #endif
  570. #ifdef HAVE_STRING_H
  571. # include <string.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_STRINGS_H
  580. # include <strings.h>
  581. #endif
  582. #ifdef HAVE_SYS_TYPES_H
  583. # include <sys/types.h>
  584. #endif
  585. #ifdef HAVE_SYS_STAT_H
  586. # include <sys/stat.h>
  587. #endif
  588. #ifdef HAVE_UNISTD_H
  589. # include <unistd.h>
  590. #endif"
  591. ac_header_c_list=
  592. ac_subst_vars='LTLIBOBJS
  593. LIBOBJS
  594. PC_LIBS
  595. PC_CFLAGS
  596. TARGETS
  597. WARNINGS
  598. PICFLAG
  599. LIBMXML
  600. DSOFLAGS
  601. DSO
  602. ARFLAGS
  603. RM
  604. MKDIR
  605. LN
  606. LDCONFIG
  607. CP
  608. AR
  609. RANLIB
  610. INSTALL_DATA
  611. INSTALL_SCRIPT
  612. INSTALL_PROGRAM
  613. ac_ct_CXX
  614. CXXFLAGS
  615. CXX
  616. OBJEXT
  617. EXEEXT
  618. ac_ct_CC
  619. CPPFLAGS
  620. CFLAGS
  621. CC
  622. OPTIM
  623. ARCHFLAGS
  624. LDFLAGS
  625. VERSION
  626. host_os
  627. host_vendor
  628. host_cpu
  629. host
  630. build_os
  631. build_vendor
  632. build_cpu
  633. build
  634. target_alias
  635. host_alias
  636. build_alias
  637. LIBS
  638. ECHO_T
  639. ECHO_N
  640. ECHO_C
  641. DEFS
  642. mandir
  643. localedir
  644. libdir
  645. psdir
  646. pdfdir
  647. dvidir
  648. htmldir
  649. infodir
  650. docdir
  651. oldincludedir
  652. includedir
  653. runstatedir
  654. localstatedir
  655. sharedstatedir
  656. sysconfdir
  657. datadir
  658. datarootdir
  659. libexecdir
  660. sbindir
  661. bindir
  662. program_transform_name
  663. prefix
  664. exec_prefix
  665. PACKAGE_URL
  666. PACKAGE_BUGREPORT
  667. PACKAGE_STRING
  668. PACKAGE_VERSION
  669. PACKAGE_TARNAME
  670. PACKAGE_NAME
  671. PATH_SEPARATOR
  672. SHELL'
  673. ac_subst_files=''
  674. ac_user_opts='
  675. enable_option_checking
  676. with_ansi
  677. with_archflags
  678. with_optim
  679. enable_debug
  680. enable_maintainer
  681. enable_sanitizer
  682. with_docdir
  683. with_vsnprintf
  684. enable_threads
  685. enable_shared
  686. '
  687. ac_precious_vars='build_alias
  688. host_alias
  689. target_alias
  690. CC
  691. CFLAGS
  692. LDFLAGS
  693. LIBS
  694. CPPFLAGS
  695. CXX
  696. CXXFLAGS
  697. CCC'
  698. # Initialize some variables set by options.
  699. ac_init_help=
  700. ac_init_version=false
  701. ac_unrecognized_opts=
  702. ac_unrecognized_sep=
  703. # The variables have the same names as the options, with
  704. # dashes changed to underlines.
  705. cache_file=/dev/null
  706. exec_prefix=NONE
  707. no_create=
  708. no_recursion=
  709. prefix=NONE
  710. program_prefix=NONE
  711. program_suffix=NONE
  712. program_transform_name=s,x,x,
  713. silent=
  714. site=
  715. srcdir=
  716. verbose=
  717. x_includes=NONE
  718. x_libraries=NONE
  719. # Installation directory options.
  720. # These are left unexpanded so users can "make install exec_prefix=/foo"
  721. # and all the variables that are supposed to be based on exec_prefix
  722. # by default will actually change.
  723. # Use braces instead of parens because sh, perl, etc. also accept them.
  724. # (The list follows the same order as the GNU Coding Standards.)
  725. bindir='${exec_prefix}/bin'
  726. sbindir='${exec_prefix}/sbin'
  727. libexecdir='${exec_prefix}/libexec'
  728. datarootdir='${prefix}/share'
  729. datadir='${datarootdir}'
  730. sysconfdir='${prefix}/etc'
  731. sharedstatedir='${prefix}/com'
  732. localstatedir='${prefix}/var'
  733. runstatedir='${localstatedir}/run'
  734. includedir='${prefix}/include'
  735. oldincludedir='/usr/include'
  736. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  737. infodir='${datarootdir}/info'
  738. htmldir='${docdir}'
  739. dvidir='${docdir}'
  740. pdfdir='${docdir}'
  741. psdir='${docdir}'
  742. libdir='${exec_prefix}/lib'
  743. localedir='${datarootdir}/locale'
  744. mandir='${datarootdir}/man'
  745. ac_prev=
  746. ac_dashdash=
  747. for ac_option
  748. do
  749. # If the previous option needs an argument, assign it.
  750. if test -n "$ac_prev"; then
  751. eval $ac_prev=\$ac_option
  752. ac_prev=
  753. continue
  754. fi
  755. case $ac_option in
  756. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  757. *=) ac_optarg= ;;
  758. *) ac_optarg=yes ;;
  759. esac
  760. case $ac_dashdash$ac_option in
  761. --)
  762. ac_dashdash=yes ;;
  763. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  764. ac_prev=bindir ;;
  765. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  766. bindir=$ac_optarg ;;
  767. -build | --build | --buil | --bui | --bu)
  768. ac_prev=build_alias ;;
  769. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  770. build_alias=$ac_optarg ;;
  771. -cache-file | --cache-file | --cache-fil | --cache-fi \
  772. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  773. ac_prev=cache_file ;;
  774. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  775. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  776. cache_file=$ac_optarg ;;
  777. --config-cache | -C)
  778. cache_file=config.cache ;;
  779. -datadir | --datadir | --datadi | --datad)
  780. ac_prev=datadir ;;
  781. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  782. datadir=$ac_optarg ;;
  783. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  784. | --dataroo | --dataro | --datar)
  785. ac_prev=datarootdir ;;
  786. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  787. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  788. datarootdir=$ac_optarg ;;
  789. -disable-* | --disable-*)
  790. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  791. # Reject names that are not valid shell variable names.
  792. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  793. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  794. ac_useropt_orig=$ac_useropt
  795. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  796. case $ac_user_opts in
  797. *"
  798. "enable_$ac_useropt"
  799. "*) ;;
  800. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  801. ac_unrecognized_sep=', ';;
  802. esac
  803. eval enable_$ac_useropt=no ;;
  804. -docdir | --docdir | --docdi | --doc | --do)
  805. ac_prev=docdir ;;
  806. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  807. docdir=$ac_optarg ;;
  808. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  809. ac_prev=dvidir ;;
  810. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  811. dvidir=$ac_optarg ;;
  812. -enable-* | --enable-*)
  813. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  814. # Reject names that are not valid shell variable names.
  815. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  816. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  817. ac_useropt_orig=$ac_useropt
  818. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  819. case $ac_user_opts in
  820. *"
  821. "enable_$ac_useropt"
  822. "*) ;;
  823. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  824. ac_unrecognized_sep=', ';;
  825. esac
  826. eval enable_$ac_useropt=\$ac_optarg ;;
  827. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  828. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  829. | --exec | --exe | --ex)
  830. ac_prev=exec_prefix ;;
  831. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  832. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  833. | --exec=* | --exe=* | --ex=*)
  834. exec_prefix=$ac_optarg ;;
  835. -gas | --gas | --ga | --g)
  836. # Obsolete; use --with-gas.
  837. with_gas=yes ;;
  838. -help | --help | --hel | --he | -h)
  839. ac_init_help=long ;;
  840. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  841. ac_init_help=recursive ;;
  842. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  843. ac_init_help=short ;;
  844. -host | --host | --hos | --ho)
  845. ac_prev=host_alias ;;
  846. -host=* | --host=* | --hos=* | --ho=*)
  847. host_alias=$ac_optarg ;;
  848. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  849. ac_prev=htmldir ;;
  850. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  851. | --ht=*)
  852. htmldir=$ac_optarg ;;
  853. -includedir | --includedir | --includedi | --included | --include \
  854. | --includ | --inclu | --incl | --inc)
  855. ac_prev=includedir ;;
  856. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  857. | --includ=* | --inclu=* | --incl=* | --inc=*)
  858. includedir=$ac_optarg ;;
  859. -infodir | --infodir | --infodi | --infod | --info | --inf)
  860. ac_prev=infodir ;;
  861. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  862. infodir=$ac_optarg ;;
  863. -libdir | --libdir | --libdi | --libd)
  864. ac_prev=libdir ;;
  865. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  866. libdir=$ac_optarg ;;
  867. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  868. | --libexe | --libex | --libe)
  869. ac_prev=libexecdir ;;
  870. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  871. | --libexe=* | --libex=* | --libe=*)
  872. libexecdir=$ac_optarg ;;
  873. -localedir | --localedir | --localedi | --localed | --locale)
  874. ac_prev=localedir ;;
  875. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  876. localedir=$ac_optarg ;;
  877. -localstatedir | --localstatedir | --localstatedi | --localstated \
  878. | --localstate | --localstat | --localsta | --localst | --locals)
  879. ac_prev=localstatedir ;;
  880. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  881. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  882. localstatedir=$ac_optarg ;;
  883. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  884. ac_prev=mandir ;;
  885. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  886. mandir=$ac_optarg ;;
  887. -nfp | --nfp | --nf)
  888. # Obsolete; use --without-fp.
  889. with_fp=no ;;
  890. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  891. | --no-cr | --no-c | -n)
  892. no_create=yes ;;
  893. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  894. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  895. no_recursion=yes ;;
  896. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  897. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  898. | --oldin | --oldi | --old | --ol | --o)
  899. ac_prev=oldincludedir ;;
  900. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  901. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  902. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  903. oldincludedir=$ac_optarg ;;
  904. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  905. ac_prev=prefix ;;
  906. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  907. prefix=$ac_optarg ;;
  908. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  909. | --program-pre | --program-pr | --program-p)
  910. ac_prev=program_prefix ;;
  911. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  912. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  913. program_prefix=$ac_optarg ;;
  914. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  915. | --program-suf | --program-su | --program-s)
  916. ac_prev=program_suffix ;;
  917. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  918. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  919. program_suffix=$ac_optarg ;;
  920. -program-transform-name | --program-transform-name \
  921. | --program-transform-nam | --program-transform-na \
  922. | --program-transform-n | --program-transform- \
  923. | --program-transform | --program-transfor \
  924. | --program-transfo | --program-transf \
  925. | --program-trans | --program-tran \
  926. | --progr-tra | --program-tr | --program-t)
  927. ac_prev=program_transform_name ;;
  928. -program-transform-name=* | --program-transform-name=* \
  929. | --program-transform-nam=* | --program-transform-na=* \
  930. | --program-transform-n=* | --program-transform-=* \
  931. | --program-transform=* | --program-transfor=* \
  932. | --program-transfo=* | --program-transf=* \
  933. | --program-trans=* | --program-tran=* \
  934. | --progr-tra=* | --program-tr=* | --program-t=*)
  935. program_transform_name=$ac_optarg ;;
  936. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  937. ac_prev=pdfdir ;;
  938. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  939. pdfdir=$ac_optarg ;;
  940. -psdir | --psdir | --psdi | --psd | --ps)
  941. ac_prev=psdir ;;
  942. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  943. psdir=$ac_optarg ;;
  944. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  945. | -silent | --silent | --silen | --sile | --sil)
  946. silent=yes ;;
  947. -runstatedir | --runstatedir | --runstatedi | --runstated \
  948. | --runstate | --runstat | --runsta | --runst | --runs \
  949. | --run | --ru | --r)
  950. ac_prev=runstatedir ;;
  951. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  952. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  953. | --run=* | --ru=* | --r=*)
  954. runstatedir=$ac_optarg ;;
  955. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  956. ac_prev=sbindir ;;
  957. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  958. | --sbi=* | --sb=*)
  959. sbindir=$ac_optarg ;;
  960. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  961. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  962. | --sharedst | --shareds | --shared | --share | --shar \
  963. | --sha | --sh)
  964. ac_prev=sharedstatedir ;;
  965. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  966. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  967. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  968. | --sha=* | --sh=*)
  969. sharedstatedir=$ac_optarg ;;
  970. -site | --site | --sit)
  971. ac_prev=site ;;
  972. -site=* | --site=* | --sit=*)
  973. site=$ac_optarg ;;
  974. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  975. ac_prev=srcdir ;;
  976. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  977. srcdir=$ac_optarg ;;
  978. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  979. | --syscon | --sysco | --sysc | --sys | --sy)
  980. ac_prev=sysconfdir ;;
  981. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  982. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  983. sysconfdir=$ac_optarg ;;
  984. -target | --target | --targe | --targ | --tar | --ta | --t)
  985. ac_prev=target_alias ;;
  986. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  987. target_alias=$ac_optarg ;;
  988. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  989. verbose=yes ;;
  990. -version | --version | --versio | --versi | --vers | -V)
  991. ac_init_version=: ;;
  992. -with-* | --with-*)
  993. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  994. # Reject names that are not valid shell variable names.
  995. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  996. as_fn_error $? "invalid package name: \`$ac_useropt'"
  997. ac_useropt_orig=$ac_useropt
  998. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  999. case $ac_user_opts in
  1000. *"
  1001. "with_$ac_useropt"
  1002. "*) ;;
  1003. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1004. ac_unrecognized_sep=', ';;
  1005. esac
  1006. eval with_$ac_useropt=\$ac_optarg ;;
  1007. -without-* | --without-*)
  1008. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1009. # Reject names that are not valid shell variable names.
  1010. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1011. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1012. ac_useropt_orig=$ac_useropt
  1013. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1014. case $ac_user_opts in
  1015. *"
  1016. "with_$ac_useropt"
  1017. "*) ;;
  1018. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1019. ac_unrecognized_sep=', ';;
  1020. esac
  1021. eval with_$ac_useropt=no ;;
  1022. --x)
  1023. # Obsolete; use --with-x.
  1024. with_x=yes ;;
  1025. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1026. | --x-incl | --x-inc | --x-in | --x-i)
  1027. ac_prev=x_includes ;;
  1028. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1029. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1030. x_includes=$ac_optarg ;;
  1031. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1032. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1033. ac_prev=x_libraries ;;
  1034. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1035. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1036. x_libraries=$ac_optarg ;;
  1037. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1038. Try \`$0 --help' for more information"
  1039. ;;
  1040. *=*)
  1041. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1042. # Reject names that are not valid shell variable names.
  1043. case $ac_envvar in #(
  1044. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1045. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1046. esac
  1047. eval $ac_envvar=\$ac_optarg
  1048. export $ac_envvar ;;
  1049. *)
  1050. # FIXME: should be removed in autoconf 3.0.
  1051. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1052. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1053. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1054. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1055. ;;
  1056. esac
  1057. done
  1058. if test -n "$ac_prev"; then
  1059. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1060. as_fn_error $? "missing argument to $ac_option"
  1061. fi
  1062. if test -n "$ac_unrecognized_opts"; then
  1063. case $enable_option_checking in
  1064. no) ;;
  1065. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1066. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1067. esac
  1068. fi
  1069. # Check all directory arguments for consistency.
  1070. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1071. datadir sysconfdir sharedstatedir localstatedir includedir \
  1072. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1073. libdir localedir mandir runstatedir
  1074. do
  1075. eval ac_val=\$$ac_var
  1076. # Remove trailing slashes.
  1077. case $ac_val in
  1078. */ )
  1079. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1080. eval $ac_var=\$ac_val;;
  1081. esac
  1082. # Be sure to have absolute directory names.
  1083. case $ac_val in
  1084. [\\/$]* | ?:[\\/]* ) continue;;
  1085. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1086. esac
  1087. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1088. done
  1089. # There might be people who depend on the old broken behavior: `$host'
  1090. # used to hold the argument of --host etc.
  1091. # FIXME: To remove some day.
  1092. build=$build_alias
  1093. host=$host_alias
  1094. target=$target_alias
  1095. # FIXME: To remove some day.
  1096. if test "x$host_alias" != x; then
  1097. if test "x$build_alias" = x; then
  1098. cross_compiling=maybe
  1099. elif test "x$build_alias" != "x$host_alias"; then
  1100. cross_compiling=yes
  1101. fi
  1102. fi
  1103. ac_tool_prefix=
  1104. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1105. test "$silent" = yes && exec 6>/dev/null
  1106. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1107. ac_ls_di=`ls -di .` &&
  1108. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1109. as_fn_error $? "working directory cannot be determined"
  1110. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1111. as_fn_error $? "pwd does not report name of working directory"
  1112. # Find the source files, if location was not specified.
  1113. if test -z "$srcdir"; then
  1114. ac_srcdir_defaulted=yes
  1115. # Try the directory containing this script, then the parent directory.
  1116. ac_confdir=`$as_dirname -- "$as_myself" ||
  1117. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1118. X"$as_myself" : 'X\(//\)[^/]' \| \
  1119. X"$as_myself" : 'X\(//\)$' \| \
  1120. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1121. printf "%s\n" X"$as_myself" |
  1122. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1123. s//\1/
  1124. q
  1125. }
  1126. /^X\(\/\/\)[^/].*/{
  1127. s//\1/
  1128. q
  1129. }
  1130. /^X\(\/\/\)$/{
  1131. s//\1/
  1132. q
  1133. }
  1134. /^X\(\/\).*/{
  1135. s//\1/
  1136. q
  1137. }
  1138. s/.*/./; q'`
  1139. srcdir=$ac_confdir
  1140. if test ! -r "$srcdir/$ac_unique_file"; then
  1141. srcdir=..
  1142. fi
  1143. else
  1144. ac_srcdir_defaulted=no
  1145. fi
  1146. if test ! -r "$srcdir/$ac_unique_file"; then
  1147. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1148. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1149. fi
  1150. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1151. ac_abs_confdir=`(
  1152. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1153. pwd)`
  1154. # When building in place, set srcdir=.
  1155. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1156. srcdir=.
  1157. fi
  1158. # Remove unnecessary trailing slashes from srcdir.
  1159. # Double slashes in file names in object file debugging info
  1160. # mess up M-x gdb in Emacs.
  1161. case $srcdir in
  1162. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1163. esac
  1164. for ac_var in $ac_precious_vars; do
  1165. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_env_${ac_var}_value=\$${ac_var}
  1167. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1168. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1169. done
  1170. #
  1171. # Report the --help message.
  1172. #
  1173. if test "$ac_init_help" = "long"; then
  1174. # Omit some internal or obsolete options to make the list less imposing.
  1175. # This message is too long to be a string in the A/UX 3.1 sh.
  1176. cat <<_ACEOF
  1177. \`configure' configures Mini-XML 3.3.1 to adapt to many kinds of systems.
  1178. Usage: $0 [OPTION]... [VAR=VALUE]...
  1179. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1180. VAR=VALUE. See below for descriptions of some of the useful variables.
  1181. Defaults for the options are specified in brackets.
  1182. Configuration:
  1183. -h, --help display this help and exit
  1184. --help=short display options specific to this package
  1185. --help=recursive display the short help of all the included packages
  1186. -V, --version display version information and exit
  1187. -q, --quiet, --silent do not print \`checking ...' messages
  1188. --cache-file=FILE cache test results in FILE [disabled]
  1189. -C, --config-cache alias for \`--cache-file=config.cache'
  1190. -n, --no-create do not create output files
  1191. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1192. Installation directories:
  1193. --prefix=PREFIX install architecture-independent files in PREFIX
  1194. [$ac_default_prefix]
  1195. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1196. [PREFIX]
  1197. By default, \`make install' will install all the files in
  1198. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1199. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1200. for instance \`--prefix=\$HOME'.
  1201. For better control, use the options below.
  1202. Fine tuning of the installation directories:
  1203. --bindir=DIR user executables [EPREFIX/bin]
  1204. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1205. --libexecdir=DIR program executables [EPREFIX/libexec]
  1206. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1207. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1208. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1209. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1210. --libdir=DIR object code libraries [EPREFIX/lib]
  1211. --includedir=DIR C header files [PREFIX/include]
  1212. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1213. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1214. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1215. --infodir=DIR info documentation [DATAROOTDIR/info]
  1216. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1217. --mandir=DIR man documentation [DATAROOTDIR/man]
  1218. --docdir=DIR documentation root [DATAROOTDIR/doc/mxml]
  1219. --htmldir=DIR html documentation [DOCDIR]
  1220. --dvidir=DIR dvi documentation [DOCDIR]
  1221. --pdfdir=DIR pdf documentation [DOCDIR]
  1222. --psdir=DIR ps documentation [DOCDIR]
  1223. _ACEOF
  1224. cat <<\_ACEOF
  1225. System types:
  1226. --build=BUILD configure for building on BUILD [guessed]
  1227. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1228. _ACEOF
  1229. fi
  1230. if test -n "$ac_init_help"; then
  1231. case $ac_init_help in
  1232. short | recursive ) echo "Configuration of Mini-XML 3.3.1:";;
  1233. esac
  1234. cat <<\_ACEOF
  1235. Optional Features:
  1236. --disable-option-checking ignore unrecognized --enable/--with options
  1237. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1238. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1239. --enable-debug turn on debugging, default=no
  1240. --enable-maintainer turn on maintainer mode, default=no
  1241. --enable-sanitizer build with AddressSanitizer, default=no
  1242. --disable-threads disable multi-threading support, default=no
  1243. --disable-shared turn off shared libraries, default=no
  1244. Optional Packages:
  1245. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1246. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1247. --with-ansi set full ANSI C mode, default=no
  1248. --with-archflags set additional architecture flags, default=none
  1249. --with-optim set additional optimization flags, default=none
  1250. --with-docdir set directory for documentation,
  1251. default=${prefix}/share/doc/mxml
  1252. --with-vsnprintf use vsnprintf emulation functions, default=auto
  1253. Some influential environment variables:
  1254. CC C compiler command
  1255. CFLAGS C compiler flags
  1256. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1257. nonstandard directory <lib dir>
  1258. LIBS libraries to pass to the linker, e.g. -l<library>
  1259. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1260. you have headers in a nonstandard directory <include dir>
  1261. CXX C++ compiler command
  1262. CXXFLAGS C++ compiler flags
  1263. Use these variables to override the choices made by `configure' or to help
  1264. it to find libraries and programs with nonstandard names/locations.
  1265. Report bugs to <https://github.com/michaelrsweet/mxml/issues>.
  1266. Mini-XML home page: <https://www.msweet.org/mxml>.
  1267. _ACEOF
  1268. ac_status=$?
  1269. fi
  1270. if test "$ac_init_help" = "recursive"; then
  1271. # If there are subdirs, report their specific --help.
  1272. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1273. test -d "$ac_dir" ||
  1274. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1275. continue
  1276. ac_builddir=.
  1277. case "$ac_dir" in
  1278. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1279. *)
  1280. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1281. # A ".." for each directory in $ac_dir_suffix.
  1282. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1283. case $ac_top_builddir_sub in
  1284. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1285. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1286. esac ;;
  1287. esac
  1288. ac_abs_top_builddir=$ac_pwd
  1289. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1290. # for backward compatibility:
  1291. ac_top_builddir=$ac_top_build_prefix
  1292. case $srcdir in
  1293. .) # We are building in place.
  1294. ac_srcdir=.
  1295. ac_top_srcdir=$ac_top_builddir_sub
  1296. ac_abs_top_srcdir=$ac_pwd ;;
  1297. [\\/]* | ?:[\\/]* ) # Absolute name.
  1298. ac_srcdir=$srcdir$ac_dir_suffix;
  1299. ac_top_srcdir=$srcdir
  1300. ac_abs_top_srcdir=$srcdir ;;
  1301. *) # Relative name.
  1302. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1303. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1304. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1305. esac
  1306. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1307. cd "$ac_dir" || { ac_status=$?; continue; }
  1308. # Check for configure.gnu first; this name is used for a wrapper for
  1309. # Metaconfig's "Configure" on case-insensitive file systems.
  1310. if test -f "$ac_srcdir/configure.gnu"; then
  1311. echo &&
  1312. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1313. elif test -f "$ac_srcdir/configure"; then
  1314. echo &&
  1315. $SHELL "$ac_srcdir/configure" --help=recursive
  1316. else
  1317. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1318. fi || ac_status=$?
  1319. cd "$ac_pwd" || { ac_status=$?; break; }
  1320. done
  1321. fi
  1322. test -n "$ac_init_help" && exit $ac_status
  1323. if $ac_init_version; then
  1324. cat <<\_ACEOF
  1325. Mini-XML configure 3.3.1
  1326. generated by GNU Autoconf 2.71
  1327. Copyright (C) 2021 Free Software Foundation, Inc.
  1328. This configure script is free software; the Free Software Foundation
  1329. gives unlimited permission to copy, distribute and modify it.
  1330. _ACEOF
  1331. exit
  1332. fi
  1333. ## ------------------------ ##
  1334. ## Autoconf initialization. ##
  1335. ## ------------------------ ##
  1336. # ac_fn_c_try_compile LINENO
  1337. # --------------------------
  1338. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1339. ac_fn_c_try_compile ()
  1340. {
  1341. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1342. rm -f conftest.$ac_objext conftest.beam
  1343. if { { ac_try="$ac_compile"
  1344. case "(($ac_try" in
  1345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1346. *) ac_try_echo=$ac_try;;
  1347. esac
  1348. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1349. printf "%s\n" "$ac_try_echo"; } >&5
  1350. (eval "$ac_compile") 2>conftest.err
  1351. ac_status=$?
  1352. if test -s conftest.err; then
  1353. grep -v '^ *+' conftest.err >conftest.er1
  1354. cat conftest.er1 >&5
  1355. mv -f conftest.er1 conftest.err
  1356. fi
  1357. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1358. test $ac_status = 0; } && {
  1359. test -z "$ac_c_werror_flag" ||
  1360. test ! -s conftest.err
  1361. } && test -s conftest.$ac_objext
  1362. then :
  1363. ac_retval=0
  1364. else $as_nop
  1365. printf "%s\n" "$as_me: failed program was:" >&5
  1366. sed 's/^/| /' conftest.$ac_ext >&5
  1367. ac_retval=1
  1368. fi
  1369. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1370. as_fn_set_status $ac_retval
  1371. } # ac_fn_c_try_compile
  1372. # ac_fn_cxx_try_compile LINENO
  1373. # ----------------------------
  1374. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1375. ac_fn_cxx_try_compile ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. rm -f conftest.$ac_objext conftest.beam
  1379. if { { ac_try="$ac_compile"
  1380. case "(($ac_try" in
  1381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1382. *) ac_try_echo=$ac_try;;
  1383. esac
  1384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1385. printf "%s\n" "$ac_try_echo"; } >&5
  1386. (eval "$ac_compile") 2>conftest.err
  1387. ac_status=$?
  1388. if test -s conftest.err; then
  1389. grep -v '^ *+' conftest.err >conftest.er1
  1390. cat conftest.er1 >&5
  1391. mv -f conftest.er1 conftest.err
  1392. fi
  1393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1394. test $ac_status = 0; } && {
  1395. test -z "$ac_cxx_werror_flag" ||
  1396. test ! -s conftest.err
  1397. } && test -s conftest.$ac_objext
  1398. then :
  1399. ac_retval=0
  1400. else $as_nop
  1401. printf "%s\n" "$as_me: failed program was:" >&5
  1402. sed 's/^/| /' conftest.$ac_ext >&5
  1403. ac_retval=1
  1404. fi
  1405. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1406. as_fn_set_status $ac_retval
  1407. } # ac_fn_cxx_try_compile
  1408. # ac_fn_c_try_link LINENO
  1409. # -----------------------
  1410. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1411. ac_fn_c_try_link ()
  1412. {
  1413. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1414. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1415. if { { ac_try="$ac_link"
  1416. case "(($ac_try" in
  1417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1418. *) ac_try_echo=$ac_try;;
  1419. esac
  1420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1421. printf "%s\n" "$ac_try_echo"; } >&5
  1422. (eval "$ac_link") 2>conftest.err
  1423. ac_status=$?
  1424. if test -s conftest.err; then
  1425. grep -v '^ *+' conftest.err >conftest.er1
  1426. cat conftest.er1 >&5
  1427. mv -f conftest.er1 conftest.err
  1428. fi
  1429. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1430. test $ac_status = 0; } && {
  1431. test -z "$ac_c_werror_flag" ||
  1432. test ! -s conftest.err
  1433. } && test -s conftest$ac_exeext && {
  1434. test "$cross_compiling" = yes ||
  1435. test -x conftest$ac_exeext
  1436. }
  1437. then :
  1438. ac_retval=0
  1439. else $as_nop
  1440. printf "%s\n" "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1445. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1446. # interfere with the next link command; also delete a directory that is
  1447. # left behind by Apple's compiler. We do this before executing the actions.
  1448. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1449. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1450. as_fn_set_status $ac_retval
  1451. } # ac_fn_c_try_link
  1452. # ac_fn_c_check_func LINENO FUNC VAR
  1453. # ----------------------------------
  1454. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1455. ac_fn_c_check_func ()
  1456. {
  1457. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1459. printf %s "checking for $2... " >&6; }
  1460. if eval test \${$3+y}
  1461. then :
  1462. printf %s "(cached) " >&6
  1463. else $as_nop
  1464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1465. /* end confdefs.h. */
  1466. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1467. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1468. #define $2 innocuous_$2
  1469. /* System header to define __stub macros and hopefully few prototypes,
  1470. which can conflict with char $2 (); below. */
  1471. #include <limits.h>
  1472. #undef $2
  1473. /* Override any GCC internal prototype to avoid an error.
  1474. Use char because int might match the return type of a GCC
  1475. builtin and then its argument prototype would still apply. */
  1476. #ifdef __cplusplus
  1477. extern "C"
  1478. #endif
  1479. char $2 ();
  1480. /* The GNU C library defines this for functions which it implements
  1481. to always fail with ENOSYS. Some functions are actually named
  1482. something starting with __ and the normal name is an alias. */
  1483. #if defined __stub_$2 || defined __stub___$2
  1484. choke me
  1485. #endif
  1486. int
  1487. main (void)
  1488. {
  1489. return $2 ();
  1490. ;
  1491. return 0;
  1492. }
  1493. _ACEOF
  1494. if ac_fn_c_try_link "$LINENO"
  1495. then :
  1496. eval "$3=yes"
  1497. else $as_nop
  1498. eval "$3=no"
  1499. fi
  1500. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1501. conftest$ac_exeext conftest.$ac_ext
  1502. fi
  1503. eval ac_res=\$$3
  1504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1505. printf "%s\n" "$ac_res" >&6; }
  1506. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1507. } # ac_fn_c_check_func
  1508. # ac_fn_c_try_run LINENO
  1509. # ----------------------
  1510. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1511. # executables *can* be run.
  1512. ac_fn_c_try_run ()
  1513. {
  1514. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1515. if { { ac_try="$ac_link"
  1516. case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. printf "%s\n" "$ac_try_echo"; } >&5
  1522. (eval "$ac_link") 2>&5
  1523. ac_status=$?
  1524. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1525. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1526. { { case "(($ac_try" in
  1527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1528. *) ac_try_echo=$ac_try;;
  1529. esac
  1530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1531. printf "%s\n" "$ac_try_echo"; } >&5
  1532. (eval "$ac_try") 2>&5
  1533. ac_status=$?
  1534. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1535. test $ac_status = 0; }; }
  1536. then :
  1537. ac_retval=0
  1538. else $as_nop
  1539. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1540. printf "%s\n" "$as_me: failed program was:" >&5
  1541. sed 's/^/| /' conftest.$ac_ext >&5
  1542. ac_retval=$ac_status
  1543. fi
  1544. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. as_fn_set_status $ac_retval
  1547. } # ac_fn_c_try_run
  1548. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1549. # -------------------------------------------------------
  1550. # Tests whether HEADER exists and can be compiled using the include files in
  1551. # INCLUDES, setting the cache variable VAR accordingly.
  1552. ac_fn_c_check_header_compile ()
  1553. {
  1554. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1556. printf %s "checking for $2... " >&6; }
  1557. if eval test \${$3+y}
  1558. then :
  1559. printf %s "(cached) " >&6
  1560. else $as_nop
  1561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1562. /* end confdefs.h. */
  1563. $4
  1564. #include <$2>
  1565. _ACEOF
  1566. if ac_fn_c_try_compile "$LINENO"
  1567. then :
  1568. eval "$3=yes"
  1569. else $as_nop
  1570. eval "$3=no"
  1571. fi
  1572. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1573. fi
  1574. eval ac_res=\$$3
  1575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1576. printf "%s\n" "$ac_res" >&6; }
  1577. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1578. } # ac_fn_c_check_header_compile
  1579. ac_configure_args_raw=
  1580. for ac_arg
  1581. do
  1582. case $ac_arg in
  1583. *\'*)
  1584. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1585. esac
  1586. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1587. done
  1588. case $ac_configure_args_raw in
  1589. *$as_nl*)
  1590. ac_safe_unquote= ;;
  1591. *)
  1592. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1593. ac_unsafe_a="$ac_unsafe_z#~"
  1594. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1595. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1596. esac
  1597. cat >config.log <<_ACEOF
  1598. This file contains any messages produced by compilers while
  1599. running configure, to aid debugging if configure makes a mistake.
  1600. It was created by Mini-XML $as_me 3.3.1, which was
  1601. generated by GNU Autoconf 2.71. Invocation command line was
  1602. $ $0$ac_configure_args_raw
  1603. _ACEOF
  1604. exec 5>>config.log
  1605. {
  1606. cat <<_ASUNAME
  1607. ## --------- ##
  1608. ## Platform. ##
  1609. ## --------- ##
  1610. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1611. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1612. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1613. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1614. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1615. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1616. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1617. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1618. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1619. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1620. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1621. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1622. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1623. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1624. _ASUNAME
  1625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1626. for as_dir in $PATH
  1627. do
  1628. IFS=$as_save_IFS
  1629. case $as_dir in #(((
  1630. '') as_dir=./ ;;
  1631. */) ;;
  1632. *) as_dir=$as_dir/ ;;
  1633. esac
  1634. printf "%s\n" "PATH: $as_dir"
  1635. done
  1636. IFS=$as_save_IFS
  1637. } >&5
  1638. cat >&5 <<_ACEOF
  1639. ## ----------- ##
  1640. ## Core tests. ##
  1641. ## ----------- ##
  1642. _ACEOF
  1643. # Keep a trace of the command line.
  1644. # Strip out --no-create and --no-recursion so they do not pile up.
  1645. # Strip out --silent because we don't want to record it for future runs.
  1646. # Also quote any args containing shell meta-characters.
  1647. # Make two passes to allow for proper duplicate-argument suppression.
  1648. ac_configure_args=
  1649. ac_configure_args0=
  1650. ac_configure_args1=
  1651. ac_must_keep_next=false
  1652. for ac_pass in 1 2
  1653. do
  1654. for ac_arg
  1655. do
  1656. case $ac_arg in
  1657. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1658. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1659. | -silent | --silent | --silen | --sile | --sil)
  1660. continue ;;
  1661. *\'*)
  1662. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1663. esac
  1664. case $ac_pass in
  1665. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1666. 2)
  1667. as_fn_append ac_configure_args1 " '$ac_arg'"
  1668. if test $ac_must_keep_next = true; then
  1669. ac_must_keep_next=false # Got value, back to normal.
  1670. else
  1671. case $ac_arg in
  1672. *=* | --config-cache | -C | -disable-* | --disable-* \
  1673. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1674. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1675. | -with-* | --with-* | -without-* | --without-* | --x)
  1676. case "$ac_configure_args0 " in
  1677. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1678. esac
  1679. ;;
  1680. -* ) ac_must_keep_next=true ;;
  1681. esac
  1682. fi
  1683. as_fn_append ac_configure_args " '$ac_arg'"
  1684. ;;
  1685. esac
  1686. done
  1687. done
  1688. { ac_configure_args0=; unset ac_configure_args0;}
  1689. { ac_configure_args1=; unset ac_configure_args1;}
  1690. # When interrupted or exit'd, cleanup temporary files, and complete
  1691. # config.log. We remove comments because anyway the quotes in there
  1692. # would cause problems or look ugly.
  1693. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1694. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1695. trap 'exit_status=$?
  1696. # Sanitize IFS.
  1697. IFS=" "" $as_nl"
  1698. # Save into config.log some information that might help in debugging.
  1699. {
  1700. echo
  1701. printf "%s\n" "## ---------------- ##
  1702. ## Cache variables. ##
  1703. ## ---------------- ##"
  1704. echo
  1705. # The following way of writing the cache mishandles newlines in values,
  1706. (
  1707. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1708. eval ac_val=\$$ac_var
  1709. case $ac_val in #(
  1710. *${as_nl}*)
  1711. case $ac_var in #(
  1712. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1713. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1714. esac
  1715. case $ac_var in #(
  1716. _ | IFS | as_nl) ;; #(
  1717. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1718. *) { eval $ac_var=; unset $ac_var;} ;;
  1719. esac ;;
  1720. esac
  1721. done
  1722. (set) 2>&1 |
  1723. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1724. *${as_nl}ac_space=\ *)
  1725. sed -n \
  1726. "s/'\''/'\''\\\\'\'''\''/g;
  1727. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1728. ;; #(
  1729. *)
  1730. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1731. ;;
  1732. esac |
  1733. sort
  1734. )
  1735. echo
  1736. printf "%s\n" "## ----------------- ##
  1737. ## Output variables. ##
  1738. ## ----------------- ##"
  1739. echo
  1740. for ac_var in $ac_subst_vars
  1741. do
  1742. eval ac_val=\$$ac_var
  1743. case $ac_val in
  1744. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1745. esac
  1746. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1747. done | sort
  1748. echo
  1749. if test -n "$ac_subst_files"; then
  1750. printf "%s\n" "## ------------------- ##
  1751. ## File substitutions. ##
  1752. ## ------------------- ##"
  1753. echo
  1754. for ac_var in $ac_subst_files
  1755. do
  1756. eval ac_val=\$$ac_var
  1757. case $ac_val in
  1758. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1759. esac
  1760. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1761. done | sort
  1762. echo
  1763. fi
  1764. if test -s confdefs.h; then
  1765. printf "%s\n" "## ----------- ##
  1766. ## confdefs.h. ##
  1767. ## ----------- ##"
  1768. echo
  1769. cat confdefs.h
  1770. echo
  1771. fi
  1772. test "$ac_signal" != 0 &&
  1773. printf "%s\n" "$as_me: caught signal $ac_signal"
  1774. printf "%s\n" "$as_me: exit $exit_status"
  1775. } >&5
  1776. rm -f core *.core core.conftest.* &&
  1777. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1778. exit $exit_status
  1779. ' 0
  1780. for ac_signal in 1 2 13 15; do
  1781. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1782. done
  1783. ac_signal=0
  1784. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1785. rm -f -r conftest* confdefs.h
  1786. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1787. # Predefined preprocessor variables.
  1788. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1789. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1790. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1791. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1792. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1793. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1794. # Let the site file select an alternate cache file if it wants to.
  1795. # Prefer an explicitly selected file to automatically selected ones.
  1796. if test -n "$CONFIG_SITE"; then
  1797. ac_site_files="$CONFIG_SITE"
  1798. elif test "x$prefix" != xNONE; then
  1799. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1800. else
  1801. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1802. fi
  1803. for ac_site_file in $ac_site_files
  1804. do
  1805. case $ac_site_file in #(
  1806. */*) :
  1807. ;; #(
  1808. *) :
  1809. ac_site_file=./$ac_site_file ;;
  1810. esac
  1811. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1813. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1814. sed 's/^/| /' "$ac_site_file" >&5
  1815. . "$ac_site_file" \
  1816. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1817. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1818. as_fn_error $? "failed to load site script $ac_site_file
  1819. See \`config.log' for more details" "$LINENO" 5; }
  1820. fi
  1821. done
  1822. if test -r "$cache_file"; then
  1823. # Some versions of bash will fail to source /dev/null (special files
  1824. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1825. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1827. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1828. case $cache_file in
  1829. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1830. *) . "./$cache_file";;
  1831. esac
  1832. fi
  1833. else
  1834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1835. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1836. >$cache_file
  1837. fi
  1838. # Test code for whether the C compiler supports C89 (global declarations)
  1839. ac_c_conftest_c89_globals='
  1840. /* Does the compiler advertise C89 conformance?
  1841. Do not test the value of __STDC__, because some compilers set it to 0
  1842. while being otherwise adequately conformant. */
  1843. #if !defined __STDC__
  1844. # error "Compiler does not advertise C89 conformance"
  1845. #endif
  1846. #include <stddef.h>
  1847. #include <stdarg.h>
  1848. struct stat;
  1849. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1850. struct buf { int x; };
  1851. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1852. static char *e (p, i)
  1853. char **p;
  1854. int i;
  1855. {
  1856. return p[i];
  1857. }
  1858. static char *f (char * (*g) (char **, int), char **p, ...)
  1859. {
  1860. char *s;
  1861. va_list v;
  1862. va_start (v,p);
  1863. s = g (p, va_arg (v,int));
  1864. va_end (v);
  1865. return s;
  1866. }
  1867. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1868. function prototypes and stuff, but not \xHH hex character constants.
  1869. These do not provoke an error unfortunately, instead are silently treated
  1870. as an "x". The following induces an error, until -std is added to get
  1871. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1872. array size at least. It is necessary to write \x00 == 0 to get something
  1873. that is true only with -std. */
  1874. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1875. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1876. inside strings and character constants. */
  1877. #define FOO(x) '\''x'\''
  1878. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1879. int test (int i, double x);
  1880. struct s1 {int (*f) (int a);};
  1881. struct s2 {int (*f) (double a);};
  1882. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1883. int, int);'
  1884. # Test code for whether the C compiler supports C89 (body of main).
  1885. ac_c_conftest_c89_main='
  1886. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  1887. '
  1888. # Test code for whether the C compiler supports C99 (global declarations)
  1889. ac_c_conftest_c99_globals='
  1890. // Does the compiler advertise C99 conformance?
  1891. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  1892. # error "Compiler does not advertise C99 conformance"
  1893. #endif
  1894. #include <stdbool.h>
  1895. extern int puts (const char *);
  1896. extern int printf (const char *, ...);
  1897. extern int dprintf (int, const char *, ...);
  1898. extern void *malloc (size_t);
  1899. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1900. // dprintf is used instead of fprintf to avoid needing to declare
  1901. // FILE and stderr.
  1902. #define debug(...) dprintf (2, __VA_ARGS__)
  1903. #define showlist(...) puts (#__VA_ARGS__)
  1904. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1905. static void
  1906. test_varargs_macros (void)
  1907. {
  1908. int x = 1234;
  1909. int y = 5678;
  1910. debug ("Flag");
  1911. debug ("X = %d\n", x);
  1912. showlist (The first, second, and third items.);
  1913. report (x>y, "x is %d but y is %d", x, y);
  1914. }
  1915. // Check long long types.
  1916. #define BIG64 18446744073709551615ull
  1917. #define BIG32 4294967295ul
  1918. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1919. #if !BIG_OK
  1920. #error "your preprocessor is broken"
  1921. #endif
  1922. #if BIG_OK
  1923. #else
  1924. #error "your preprocessor is broken"
  1925. #endif
  1926. static long long int bignum = -9223372036854775807LL;
  1927. static unsigned long long int ubignum = BIG64;
  1928. struct incomplete_array
  1929. {
  1930. int datasize;
  1931. double data[];
  1932. };
  1933. struct named_init {
  1934. int number;
  1935. const wchar_t *name;
  1936. double average;
  1937. };
  1938. typedef const char *ccp;
  1939. static inline int
  1940. test_restrict (ccp restrict text)
  1941. {
  1942. // See if C++-style comments work.
  1943. // Iterate through items via the restricted pointer.
  1944. // Also check for declarations in for loops.
  1945. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  1946. continue;
  1947. return 0;
  1948. }
  1949. // Check varargs and va_copy.
  1950. static bool
  1951. test_varargs (const char *format, ...)
  1952. {
  1953. va_list args;
  1954. va_start (args, format);
  1955. va_list args_copy;
  1956. va_copy (args_copy, args);
  1957. const char *str = "";
  1958. int number = 0;
  1959. float fnumber = 0;
  1960. while (*format)
  1961. {
  1962. switch (*format++)
  1963. {
  1964. case '\''s'\'': // string
  1965. str = va_arg (args_copy, const char *);
  1966. break;
  1967. case '\''d'\'': // int
  1968. number = va_arg (args_copy, int);
  1969. break;
  1970. case '\''f'\'': // float
  1971. fnumber = va_arg (args_copy, double);
  1972. break;
  1973. default:
  1974. break;
  1975. }
  1976. }
  1977. va_end (args_copy);
  1978. va_end (args);
  1979. return *str && number && fnumber;
  1980. }
  1981. '
  1982. # Test code for whether the C compiler supports C99 (body of main).
  1983. ac_c_conftest_c99_main='
  1984. // Check bool.
  1985. _Bool success = false;
  1986. success |= (argc != 0);
  1987. // Check restrict.
  1988. if (test_restrict ("String literal") == 0)
  1989. success = true;
  1990. char *restrict newvar = "Another string";
  1991. // Check varargs.
  1992. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  1993. test_varargs_macros ();
  1994. // Check flexible array members.
  1995. struct incomplete_array *ia =
  1996. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1997. ia->datasize = 10;
  1998. for (int i = 0; i < ia->datasize; ++i)
  1999. ia->data[i] = i * 1.234;
  2000. // Check named initializers.
  2001. struct named_init ni = {
  2002. .number = 34,
  2003. .name = L"Test wide string",
  2004. .average = 543.34343,
  2005. };
  2006. ni.number = 58;
  2007. int dynamic_array[ni.number];
  2008. dynamic_array[0] = argv[0][0];
  2009. dynamic_array[ni.number - 1] = 543;
  2010. // work around unused variable warnings
  2011. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2012. || dynamic_array[ni.number - 1] != 543);
  2013. '
  2014. # Test code for whether the C compiler supports C11 (global declarations)
  2015. ac_c_conftest_c11_globals='
  2016. // Does the compiler advertise C11 conformance?
  2017. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2018. # error "Compiler does not advertise C11 conformance"
  2019. #endif
  2020. // Check _Alignas.
  2021. char _Alignas (double) aligned_as_double;
  2022. char _Alignas (0) no_special_alignment;
  2023. extern char aligned_as_int;
  2024. char _Alignas (0) _Alignas (int) aligned_as_int;
  2025. // Check _Alignof.
  2026. enum
  2027. {
  2028. int_alignment = _Alignof (int),
  2029. int_array_alignment = _Alignof (int[100]),
  2030. char_alignment = _Alignof (char)
  2031. };
  2032. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2033. // Check _Noreturn.
  2034. int _Noreturn does_not_return (void) { for (;;) continue; }
  2035. // Check _Static_assert.
  2036. struct test_static_assert
  2037. {
  2038. int x;
  2039. _Static_assert (sizeof (int) <= sizeof (long int),
  2040. "_Static_assert does not work in struct");
  2041. long int y;
  2042. };
  2043. // Check UTF-8 literals.
  2044. #define u8 syntax error!
  2045. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2046. // Check duplicate typedefs.
  2047. typedef long *long_ptr;
  2048. typedef long int *long_ptr;
  2049. typedef long_ptr long_ptr;
  2050. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2051. struct anonymous
  2052. {
  2053. union {
  2054. struct { int i; int j; };
  2055. struct { int k; long int l; } w;
  2056. };
  2057. int m;
  2058. } v1;
  2059. '
  2060. # Test code for whether the C compiler supports C11 (body of main).
  2061. ac_c_conftest_c11_main='
  2062. _Static_assert ((offsetof (struct anonymous, i)
  2063. == offsetof (struct anonymous, w.k)),
  2064. "Anonymous union alignment botch");
  2065. v1.i = 2;
  2066. v1.w.k = 5;
  2067. ok |= v1.i != 5;
  2068. '
  2069. # Test code for whether the C compiler supports C11 (complete).
  2070. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2071. ${ac_c_conftest_c99_globals}
  2072. ${ac_c_conftest_c11_globals}
  2073. int
  2074. main (int argc, char **argv)
  2075. {
  2076. int ok = 0;
  2077. ${ac_c_conftest_c89_main}
  2078. ${ac_c_conftest_c99_main}
  2079. ${ac_c_conftest_c11_main}
  2080. return ok;
  2081. }
  2082. "
  2083. # Test code for whether the C compiler supports C99 (complete).
  2084. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2085. ${ac_c_conftest_c99_globals}
  2086. int
  2087. main (int argc, char **argv)
  2088. {
  2089. int ok = 0;
  2090. ${ac_c_conftest_c89_main}
  2091. ${ac_c_conftest_c99_main}
  2092. return ok;
  2093. }
  2094. "
  2095. # Test code for whether the C compiler supports C89 (complete).
  2096. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2097. int
  2098. main (int argc, char **argv)
  2099. {
  2100. int ok = 0;
  2101. ${ac_c_conftest_c89_main}
  2102. return ok;
  2103. }
  2104. "
  2105. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2106. ac_cxx_conftest_cxx98_globals='
  2107. // Does the compiler advertise C++98 conformance?
  2108. #if !defined __cplusplus || __cplusplus < 199711L
  2109. # error "Compiler does not advertise C++98 conformance"
  2110. #endif
  2111. // These inclusions are to reject old compilers that
  2112. // lack the unsuffixed header files.
  2113. #include <cstdlib>
  2114. #include <exception>
  2115. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2116. extern void assert (int);
  2117. namespace std {
  2118. extern int strcmp (const char *, const char *);
  2119. }
  2120. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2121. using std::exception;
  2122. using std::strcmp;
  2123. namespace {
  2124. void test_exception_syntax()
  2125. {
  2126. try {
  2127. throw "test";
  2128. } catch (const char *s) {
  2129. // Extra parentheses suppress a warning when building autoconf itself,
  2130. // due to lint rules shared with more typical C programs.
  2131. assert (!(strcmp) (s, "test"));
  2132. }
  2133. }
  2134. template <typename T> struct test_template
  2135. {
  2136. T const val;
  2137. explicit test_template(T t) : val(t) {}
  2138. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2139. };
  2140. } // anonymous namespace
  2141. '
  2142. # Test code for whether the C++ compiler supports C++98 (body of main)
  2143. ac_cxx_conftest_cxx98_main='
  2144. assert (argc);
  2145. assert (! argv[0]);
  2146. {
  2147. test_exception_syntax ();
  2148. test_template<double> tt (2.0);
  2149. assert (tt.add (4) == 6.0);
  2150. assert (true && !false);
  2151. }
  2152. '
  2153. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2154. ac_cxx_conftest_cxx11_globals='
  2155. // Does the compiler advertise C++ 2011 conformance?
  2156. #if !defined __cplusplus || __cplusplus < 201103L
  2157. # error "Compiler does not advertise C++11 conformance"
  2158. #endif
  2159. namespace cxx11test
  2160. {
  2161. constexpr int get_val() { return 20; }
  2162. struct testinit
  2163. {
  2164. int i;
  2165. double d;
  2166. };
  2167. class delegate
  2168. {
  2169. public:
  2170. delegate(int n) : n(n) {}
  2171. delegate(): delegate(2354) {}
  2172. virtual int getval() { return this->n; };
  2173. protected:
  2174. int n;
  2175. };
  2176. class overridden : public delegate
  2177. {
  2178. public:
  2179. overridden(int n): delegate(n) {}
  2180. virtual int getval() override final { return this->n * 2; }
  2181. };
  2182. class nocopy
  2183. {
  2184. public:
  2185. nocopy(int i): i(i) {}
  2186. nocopy() = default;
  2187. nocopy(const nocopy&) = delete;
  2188. nocopy & operator=(const nocopy&) = delete;
  2189. private:
  2190. int i;
  2191. };
  2192. // for testing lambda expressions
  2193. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2194. {
  2195. return f(v);
  2196. }
  2197. // for testing variadic templates and trailing return types
  2198. template <typename V> auto sum(V first) -> V
  2199. {
  2200. return first;
  2201. }
  2202. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2203. {
  2204. return first + sum(rest...);
  2205. }
  2206. }
  2207. '
  2208. # Test code for whether the C++ compiler supports C++11 (body of main)
  2209. ac_cxx_conftest_cxx11_main='
  2210. {
  2211. // Test auto and decltype
  2212. auto a1 = 6538;
  2213. auto a2 = 48573953.4;
  2214. auto a3 = "String literal";
  2215. int total = 0;
  2216. for (auto i = a3; *i; ++i) { total += *i; }
  2217. decltype(a2) a4 = 34895.034;
  2218. }
  2219. {
  2220. // Test constexpr
  2221. short sa[cxx11test::get_val()] = { 0 };
  2222. }
  2223. {
  2224. // Test initializer lists
  2225. cxx11test::testinit il = { 4323, 435234.23544 };
  2226. }
  2227. {
  2228. // Test range-based for
  2229. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2230. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2231. for (auto &x : array) { x += 23; }
  2232. }
  2233. {
  2234. // Test lambda expressions
  2235. using cxx11test::eval;
  2236. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2237. double d = 2.0;
  2238. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2239. assert (d == 5.0);
  2240. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2241. assert (d == 5.0);
  2242. }
  2243. {
  2244. // Test use of variadic templates
  2245. using cxx11test::sum;
  2246. auto a = sum(1);
  2247. auto b = sum(1, 2);
  2248. auto c = sum(1.0, 2.0, 3.0);
  2249. }
  2250. {
  2251. // Test constructor delegation
  2252. cxx11test::delegate d1;
  2253. cxx11test::delegate d2();
  2254. cxx11test::delegate d3(45);
  2255. }
  2256. {
  2257. // Test override and final
  2258. cxx11test::overridden o1(55464);
  2259. }
  2260. {
  2261. // Test nullptr
  2262. char *c = nullptr;
  2263. }
  2264. {
  2265. // Test template brackets
  2266. test_template<::test_template<int>> v(test_template<int>(12));
  2267. }
  2268. {
  2269. // Unicode literals
  2270. char const *utf8 = u8"UTF-8 string \u2500";
  2271. char16_t const *utf16 = u"UTF-8 string \u2500";
  2272. char32_t const *utf32 = U"UTF-32 string \u2500";
  2273. }
  2274. '
  2275. # Test code for whether the C compiler supports C++11 (complete).
  2276. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2277. ${ac_cxx_conftest_cxx11_globals}
  2278. int
  2279. main (int argc, char **argv)
  2280. {
  2281. int ok = 0;
  2282. ${ac_cxx_conftest_cxx98_main}
  2283. ${ac_cxx_conftest_cxx11_main}
  2284. return ok;
  2285. }
  2286. "
  2287. # Test code for whether the C compiler supports C++98 (complete).
  2288. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2289. int
  2290. main (int argc, char **argv)
  2291. {
  2292. int ok = 0;
  2293. ${ac_cxx_conftest_cxx98_main}
  2294. return ok;
  2295. }
  2296. "
  2297. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2298. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2299. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2300. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2301. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2302. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2303. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2304. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2305. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2306. # Auxiliary files required by this configure script.
  2307. ac_aux_files="install-sh config.guess config.sub"
  2308. # Locations in which to look for auxiliary files.
  2309. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2310. # Search for a directory containing all of the required auxiliary files,
  2311. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2312. # If we don't find one directory that contains all the files we need,
  2313. # we report the set of missing files from the *first* directory in
  2314. # $ac_aux_dir_candidates and give up.
  2315. ac_missing_aux_files=""
  2316. ac_first_candidate=:
  2317. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2319. as_found=false
  2320. for as_dir in $ac_aux_dir_candidates
  2321. do
  2322. IFS=$as_save_IFS
  2323. case $as_dir in #(((
  2324. '') as_dir=./ ;;
  2325. */) ;;
  2326. *) as_dir=$as_dir/ ;;
  2327. esac
  2328. as_found=:
  2329. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2330. ac_aux_dir_found=yes
  2331. ac_install_sh=
  2332. for ac_aux in $ac_aux_files
  2333. do
  2334. # As a special case, if "install-sh" is required, that requirement
  2335. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2336. # and $ac_install_sh is set appropriately for whichever one is found.
  2337. if test x"$ac_aux" = x"install-sh"
  2338. then
  2339. if test -f "${as_dir}install-sh"; then
  2340. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2341. ac_install_sh="${as_dir}install-sh -c"
  2342. elif test -f "${as_dir}install.sh"; then
  2343. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2344. ac_install_sh="${as_dir}install.sh -c"
  2345. elif test -f "${as_dir}shtool"; then
  2346. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2347. ac_install_sh="${as_dir}shtool install -c"
  2348. else
  2349. ac_aux_dir_found=no
  2350. if $ac_first_candidate; then
  2351. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2352. else
  2353. break
  2354. fi
  2355. fi
  2356. else
  2357. if test -f "${as_dir}${ac_aux}"; then
  2358. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2359. else
  2360. ac_aux_dir_found=no
  2361. if $ac_first_candidate; then
  2362. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2363. else
  2364. break
  2365. fi
  2366. fi
  2367. fi
  2368. done
  2369. if test "$ac_aux_dir_found" = yes; then
  2370. ac_aux_dir="$as_dir"
  2371. break
  2372. fi
  2373. ac_first_candidate=false
  2374. as_found=false
  2375. done
  2376. IFS=$as_save_IFS
  2377. if $as_found
  2378. then :
  2379. else $as_nop
  2380. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2381. fi
  2382. # These three variables are undocumented and unsupported,
  2383. # and are intended to be withdrawn in a future Autoconf release.
  2384. # They can cause serious problems if a builder's source tree is in a directory
  2385. # whose full name contains unusual characters.
  2386. if test -f "${ac_aux_dir}config.guess"; then
  2387. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2388. fi
  2389. if test -f "${ac_aux_dir}config.sub"; then
  2390. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2391. fi
  2392. if test -f "$ac_aux_dir/configure"; then
  2393. ac_configure="$SHELL ${ac_aux_dir}configure"
  2394. fi
  2395. # Check that the precious variables saved in the cache have kept the same
  2396. # value.
  2397. ac_cache_corrupted=false
  2398. for ac_var in $ac_precious_vars; do
  2399. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2400. eval ac_new_set=\$ac_env_${ac_var}_set
  2401. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2402. eval ac_new_val=\$ac_env_${ac_var}_value
  2403. case $ac_old_set,$ac_new_set in
  2404. set,)
  2405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2406. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2407. ac_cache_corrupted=: ;;
  2408. ,set)
  2409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2410. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2411. ac_cache_corrupted=: ;;
  2412. ,);;
  2413. *)
  2414. if test "x$ac_old_val" != "x$ac_new_val"; then
  2415. # differences in whitespace do not lead to failure.
  2416. ac_old_val_w=`echo x $ac_old_val`
  2417. ac_new_val_w=`echo x $ac_new_val`
  2418. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2420. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2421. ac_cache_corrupted=:
  2422. else
  2423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2424. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2425. eval $ac_var=\$ac_old_val
  2426. fi
  2427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2428. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2430. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2431. fi;;
  2432. esac
  2433. # Pass precious variables to config.status.
  2434. if test "$ac_new_set" = set; then
  2435. case $ac_new_val in
  2436. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2437. *) ac_arg=$ac_var=$ac_new_val ;;
  2438. esac
  2439. case " $ac_configure_args " in
  2440. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2441. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2442. esac
  2443. fi
  2444. done
  2445. if $ac_cache_corrupted; then
  2446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2447. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2449. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2450. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2451. and start over" "$LINENO" 5
  2452. fi
  2453. ## -------------------- ##
  2454. ## Main body of script. ##
  2455. ## -------------------- ##
  2456. ac_ext=c
  2457. ac_cpp='$CPP $CPPFLAGS'
  2458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2461. # Make sure we can run config.sub.
  2462. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  2463. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  2464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2465. printf %s "checking build system type... " >&6; }
  2466. if test ${ac_cv_build+y}
  2467. then :
  2468. printf %s "(cached) " >&6
  2469. else $as_nop
  2470. ac_build_alias=$build_alias
  2471. test "x$ac_build_alias" = x &&
  2472. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  2473. test "x$ac_build_alias" = x &&
  2474. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2475. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  2476. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  2477. fi
  2478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2479. printf "%s\n" "$ac_cv_build" >&6; }
  2480. case $ac_cv_build in
  2481. *-*-*) ;;
  2482. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2483. esac
  2484. build=$ac_cv_build
  2485. ac_save_IFS=$IFS; IFS='-'
  2486. set x $ac_cv_build
  2487. shift
  2488. build_cpu=$1
  2489. build_vendor=$2
  2490. shift; shift
  2491. # Remember, the first character of IFS is used to create $*,
  2492. # except with old shells:
  2493. build_os=$*
  2494. IFS=$ac_save_IFS
  2495. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2497. printf %s "checking host system type... " >&6; }
  2498. if test ${ac_cv_host+y}
  2499. then :
  2500. printf %s "(cached) " >&6
  2501. else $as_nop
  2502. if test "x$host_alias" = x; then
  2503. ac_cv_host=$ac_cv_build
  2504. else
  2505. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  2506. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  2507. fi
  2508. fi
  2509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2510. printf "%s\n" "$ac_cv_host" >&6; }
  2511. case $ac_cv_host in
  2512. *-*-*) ;;
  2513. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2514. esac
  2515. host=$ac_cv_host
  2516. ac_save_IFS=$IFS; IFS='-'
  2517. set x $ac_cv_host
  2518. shift
  2519. host_cpu=$1
  2520. host_vendor=$2
  2521. shift; shift
  2522. # Remember, the first character of IFS is used to create $*,
  2523. # except with old shells:
  2524. host_os=$*
  2525. IFS=$ac_save_IFS
  2526. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2527. host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`
  2528. host_os_version="$(echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}')"
  2529. # Linux often does not yield an OS version we can use...
  2530. if test "x$host_os_version" = x
  2531. then :
  2532. host_os_version="0"
  2533. fi
  2534. ac_config_headers="$ac_config_headers config.h"
  2535. VERSION="3.3.1"
  2536. printf "%s\n" "#define MXML_VERSION \"Mini-XML v$VERSION\"" >>confdefs.h
  2537. CFLAGS="${CFLAGS:=}"
  2538. CPPFLAGS="${CPPFLAGS:=}"
  2539. LDFLAGS="${LDFLAGS:=}"
  2540. LIBS="${LIBS:=}"
  2541. # Check whether --with-ansi was given.
  2542. if test ${with_ansi+y}
  2543. then :
  2544. withval=$with_ansi;
  2545. use_ansi="$withval"
  2546. else $as_nop
  2547. use_ansi="no"
  2548. fi
  2549. # Check whether --with-archflags was given.
  2550. if test ${with_archflags+y}
  2551. then :
  2552. withval=$with_archflags;
  2553. ARCHFLAGS="$withval"
  2554. else $as_nop
  2555. case "$host_os_name" in #(
  2556. darwin*) :
  2557. if test "$host_os_version" -ge 200 -a x$enable_debug != xyes
  2558. then :
  2559. # macOS 11.0 and higher support the Apple Silicon (arm64) CPUs
  2560. ARCHFLAGS="-mmacosx-version-min=10.14 -arch x86_64 -arch arm64"
  2561. elif test x$enable_debug != xyes
  2562. then :
  2563. ARCHFLAGS="-mmacosx-version-min=10.14 -arch x86_64"
  2564. fi
  2565. ;; #(
  2566. *) :
  2567. ARCHFLAGS=""
  2568. ;; #(
  2569. *) :
  2570. ;;
  2571. esac
  2572. fi
  2573. # Check whether --with-optim was given.
  2574. if test ${with_optim+y}
  2575. then :
  2576. withval=$with_optim;
  2577. OPTIM="$withval"
  2578. else $as_nop
  2579. OPTIM=""
  2580. fi
  2581. # Check whether --enable-debug was given.
  2582. if test ${enable_debug+y}
  2583. then :
  2584. enableval=$enable_debug;
  2585. fi
  2586. # Check whether --enable-maintainer was given.
  2587. if test ${enable_maintainer+y}
  2588. then :
  2589. enableval=$enable_maintainer;
  2590. fi
  2591. # Check whether --enable-sanitizer was given.
  2592. if test ${enable_sanitizer+y}
  2593. then :
  2594. enableval=$enable_sanitizer;
  2595. fi
  2596. # Check whether --with-docdir was given.
  2597. if test ${with_docdir+y}
  2598. then :
  2599. withval=$with_docdir;
  2600. docdir="$withval"
  2601. else $as_nop
  2602. docdir="NONE"
  2603. fi
  2604. # Check whether --with-vsnprintf was given.
  2605. if test ${with_vsnprintf+y}
  2606. then :
  2607. withval=$with_vsnprintf;
  2608. use_vsnprintf="$withval"
  2609. else $as_nop
  2610. use_vsnprintf="no"
  2611. fi
  2612. ac_ext=c
  2613. ac_cpp='$CPP $CPPFLAGS'
  2614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2617. if test -n "$ac_tool_prefix"; then
  2618. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2619. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2621. printf %s "checking for $ac_word... " >&6; }
  2622. if test ${ac_cv_prog_CC+y}
  2623. then :
  2624. printf %s "(cached) " >&6
  2625. else $as_nop
  2626. if test -n "$CC"; then
  2627. ac_cv_prog_CC="$CC" # Let the user override the test.
  2628. else
  2629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2630. for as_dir in $PATH
  2631. do
  2632. IFS=$as_save_IFS
  2633. case $as_dir in #(((
  2634. '') as_dir=./ ;;
  2635. */) ;;
  2636. *) as_dir=$as_dir/ ;;
  2637. esac
  2638. for ac_exec_ext in '' $ac_executable_extensions; do
  2639. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2640. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2641. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2642. break 2
  2643. fi
  2644. done
  2645. done
  2646. IFS=$as_save_IFS
  2647. fi
  2648. fi
  2649. CC=$ac_cv_prog_CC
  2650. if test -n "$CC"; then
  2651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2652. printf "%s\n" "$CC" >&6; }
  2653. else
  2654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2655. printf "%s\n" "no" >&6; }
  2656. fi
  2657. fi
  2658. if test -z "$ac_cv_prog_CC"; then
  2659. ac_ct_CC=$CC
  2660. # Extract the first word of "gcc", so it can be a program name with args.
  2661. set dummy gcc; ac_word=$2
  2662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2663. printf %s "checking for $ac_word... " >&6; }
  2664. if test ${ac_cv_prog_ac_ct_CC+y}
  2665. then :
  2666. printf %s "(cached) " >&6
  2667. else $as_nop
  2668. if test -n "$ac_ct_CC"; then
  2669. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2670. else
  2671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2672. for as_dir in $PATH
  2673. do
  2674. IFS=$as_save_IFS
  2675. case $as_dir in #(((
  2676. '') as_dir=./ ;;
  2677. */) ;;
  2678. *) as_dir=$as_dir/ ;;
  2679. esac
  2680. for ac_exec_ext in '' $ac_executable_extensions; do
  2681. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2682. ac_cv_prog_ac_ct_CC="gcc"
  2683. printf "%s\n" "$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. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2692. if test -n "$ac_ct_CC"; then
  2693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2694. printf "%s\n" "$ac_ct_CC" >&6; }
  2695. else
  2696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2697. printf "%s\n" "no" >&6; }
  2698. fi
  2699. if test "x$ac_ct_CC" = x; then
  2700. CC=""
  2701. else
  2702. case $cross_compiling:$ac_tool_warned in
  2703. yes:)
  2704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2705. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2706. ac_tool_warned=yes ;;
  2707. esac
  2708. CC=$ac_ct_CC
  2709. fi
  2710. else
  2711. CC="$ac_cv_prog_CC"
  2712. fi
  2713. if test -z "$CC"; then
  2714. if test -n "$ac_tool_prefix"; then
  2715. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2716. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2718. printf %s "checking for $ac_word... " >&6; }
  2719. if test ${ac_cv_prog_CC+y}
  2720. then :
  2721. printf %s "(cached) " >&6
  2722. else $as_nop
  2723. if test -n "$CC"; then
  2724. ac_cv_prog_CC="$CC" # Let the user override the test.
  2725. else
  2726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2727. for as_dir in $PATH
  2728. do
  2729. IFS=$as_save_IFS
  2730. case $as_dir in #(((
  2731. '') as_dir=./ ;;
  2732. */) ;;
  2733. *) as_dir=$as_dir/ ;;
  2734. esac
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2737. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. IFS=$as_save_IFS
  2744. fi
  2745. fi
  2746. CC=$ac_cv_prog_CC
  2747. if test -n "$CC"; then
  2748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2749. printf "%s\n" "$CC" >&6; }
  2750. else
  2751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2752. printf "%s\n" "no" >&6; }
  2753. fi
  2754. fi
  2755. fi
  2756. if test -z "$CC"; then
  2757. # Extract the first word of "cc", so it can be a program name with args.
  2758. set dummy cc; ac_word=$2
  2759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2760. printf %s "checking for $ac_word... " >&6; }
  2761. if test ${ac_cv_prog_CC+y}
  2762. then :
  2763. printf %s "(cached) " >&6
  2764. else $as_nop
  2765. if test -n "$CC"; then
  2766. ac_cv_prog_CC="$CC" # Let the user override the test.
  2767. else
  2768. ac_prog_rejected=no
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. case $as_dir in #(((
  2774. '') as_dir=./ ;;
  2775. */) ;;
  2776. *) as_dir=$as_dir/ ;;
  2777. esac
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2780. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2781. ac_prog_rejected=yes
  2782. continue
  2783. fi
  2784. ac_cv_prog_CC="cc"
  2785. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. if test $ac_prog_rejected = yes; then
  2792. # We found a bogon in the path, so make sure we never use it.
  2793. set dummy $ac_cv_prog_CC
  2794. shift
  2795. if test $# != 0; then
  2796. # We chose a different compiler from the bogus one.
  2797. # However, it has the same basename, so the bogon will be chosen
  2798. # first if we set CC to just the basename; use the full file name.
  2799. shift
  2800. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  2801. fi
  2802. fi
  2803. fi
  2804. fi
  2805. CC=$ac_cv_prog_CC
  2806. if test -n "$CC"; then
  2807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2808. printf "%s\n" "$CC" >&6; }
  2809. else
  2810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2811. printf "%s\n" "no" >&6; }
  2812. fi
  2813. fi
  2814. if test -z "$CC"; then
  2815. if test -n "$ac_tool_prefix"; then
  2816. for ac_prog in cl.exe
  2817. do
  2818. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2819. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2821. printf %s "checking for $ac_word... " >&6; }
  2822. if test ${ac_cv_prog_CC+y}
  2823. then :
  2824. printf %s "(cached) " >&6
  2825. else $as_nop
  2826. if test -n "$CC"; then
  2827. ac_cv_prog_CC="$CC" # Let the user override the test.
  2828. else
  2829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2830. for as_dir in $PATH
  2831. do
  2832. IFS=$as_save_IFS
  2833. case $as_dir in #(((
  2834. '') as_dir=./ ;;
  2835. */) ;;
  2836. *) as_dir=$as_dir/ ;;
  2837. esac
  2838. for ac_exec_ext in '' $ac_executable_extensions; do
  2839. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2840. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2841. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2842. break 2
  2843. fi
  2844. done
  2845. done
  2846. IFS=$as_save_IFS
  2847. fi
  2848. fi
  2849. CC=$ac_cv_prog_CC
  2850. if test -n "$CC"; then
  2851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2852. printf "%s\n" "$CC" >&6; }
  2853. else
  2854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2855. printf "%s\n" "no" >&6; }
  2856. fi
  2857. test -n "$CC" && break
  2858. done
  2859. fi
  2860. if test -z "$CC"; then
  2861. ac_ct_CC=$CC
  2862. for ac_prog in cl.exe
  2863. do
  2864. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2865. set dummy $ac_prog; ac_word=$2
  2866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2867. printf %s "checking for $ac_word... " >&6; }
  2868. if test ${ac_cv_prog_ac_ct_CC+y}
  2869. then :
  2870. printf %s "(cached) " >&6
  2871. else $as_nop
  2872. if test -n "$ac_ct_CC"; then
  2873. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2874. else
  2875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2876. for as_dir in $PATH
  2877. do
  2878. IFS=$as_save_IFS
  2879. case $as_dir in #(((
  2880. '') as_dir=./ ;;
  2881. */) ;;
  2882. *) as_dir=$as_dir/ ;;
  2883. esac
  2884. for ac_exec_ext in '' $ac_executable_extensions; do
  2885. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2886. ac_cv_prog_ac_ct_CC="$ac_prog"
  2887. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2888. break 2
  2889. fi
  2890. done
  2891. done
  2892. IFS=$as_save_IFS
  2893. fi
  2894. fi
  2895. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2896. if test -n "$ac_ct_CC"; then
  2897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2898. printf "%s\n" "$ac_ct_CC" >&6; }
  2899. else
  2900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2901. printf "%s\n" "no" >&6; }
  2902. fi
  2903. test -n "$ac_ct_CC" && break
  2904. done
  2905. if test "x$ac_ct_CC" = x; then
  2906. CC=""
  2907. else
  2908. case $cross_compiling:$ac_tool_warned in
  2909. yes:)
  2910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2911. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2912. ac_tool_warned=yes ;;
  2913. esac
  2914. CC=$ac_ct_CC
  2915. fi
  2916. fi
  2917. fi
  2918. if test -z "$CC"; then
  2919. if test -n "$ac_tool_prefix"; then
  2920. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  2921. set dummy ${ac_tool_prefix}clang; ac_word=$2
  2922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2923. printf %s "checking for $ac_word... " >&6; }
  2924. if test ${ac_cv_prog_CC+y}
  2925. then :
  2926. printf %s "(cached) " >&6
  2927. else $as_nop
  2928. if test -n "$CC"; then
  2929. ac_cv_prog_CC="$CC" # Let the user override the test.
  2930. else
  2931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2932. for as_dir in $PATH
  2933. do
  2934. IFS=$as_save_IFS
  2935. case $as_dir in #(((
  2936. '') as_dir=./ ;;
  2937. */) ;;
  2938. *) as_dir=$as_dir/ ;;
  2939. esac
  2940. for ac_exec_ext in '' $ac_executable_extensions; do
  2941. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2942. ac_cv_prog_CC="${ac_tool_prefix}clang"
  2943. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2944. break 2
  2945. fi
  2946. done
  2947. done
  2948. IFS=$as_save_IFS
  2949. fi
  2950. fi
  2951. CC=$ac_cv_prog_CC
  2952. if test -n "$CC"; then
  2953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2954. printf "%s\n" "$CC" >&6; }
  2955. else
  2956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2957. printf "%s\n" "no" >&6; }
  2958. fi
  2959. fi
  2960. if test -z "$ac_cv_prog_CC"; then
  2961. ac_ct_CC=$CC
  2962. # Extract the first word of "clang", so it can be a program name with args.
  2963. set dummy clang; ac_word=$2
  2964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2965. printf %s "checking for $ac_word... " >&6; }
  2966. if test ${ac_cv_prog_ac_ct_CC+y}
  2967. then :
  2968. printf %s "(cached) " >&6
  2969. else $as_nop
  2970. if test -n "$ac_ct_CC"; then
  2971. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2972. else
  2973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2974. for as_dir in $PATH
  2975. do
  2976. IFS=$as_save_IFS
  2977. case $as_dir in #(((
  2978. '') as_dir=./ ;;
  2979. */) ;;
  2980. *) as_dir=$as_dir/ ;;
  2981. esac
  2982. for ac_exec_ext in '' $ac_executable_extensions; do
  2983. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2984. ac_cv_prog_ac_ct_CC="clang"
  2985. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2986. break 2
  2987. fi
  2988. done
  2989. done
  2990. IFS=$as_save_IFS
  2991. fi
  2992. fi
  2993. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2994. if test -n "$ac_ct_CC"; then
  2995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2996. printf "%s\n" "$ac_ct_CC" >&6; }
  2997. else
  2998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2999. printf "%s\n" "no" >&6; }
  3000. fi
  3001. if test "x$ac_ct_CC" = x; then
  3002. CC=""
  3003. else
  3004. case $cross_compiling:$ac_tool_warned in
  3005. yes:)
  3006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3007. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3008. ac_tool_warned=yes ;;
  3009. esac
  3010. CC=$ac_ct_CC
  3011. fi
  3012. else
  3013. CC="$ac_cv_prog_CC"
  3014. fi
  3015. fi
  3016. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3017. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3018. as_fn_error $? "no acceptable C compiler found in \$PATH
  3019. See \`config.log' for more details" "$LINENO" 5; }
  3020. # Provide some information about the compiler.
  3021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3022. set X $ac_compile
  3023. ac_compiler=$2
  3024. for ac_option in --version -v -V -qversion -version; do
  3025. { { ac_try="$ac_compiler $ac_option >&5"
  3026. case "(($ac_try" in
  3027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028. *) ac_try_echo=$ac_try;;
  3029. esac
  3030. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3031. printf "%s\n" "$ac_try_echo"; } >&5
  3032. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3033. ac_status=$?
  3034. if test -s conftest.err; then
  3035. sed '10a\
  3036. ... rest of stderr output deleted ...
  3037. 10q' conftest.err >conftest.er1
  3038. cat conftest.er1 >&5
  3039. fi
  3040. rm -f conftest.er1 conftest.err
  3041. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3042. test $ac_status = 0; }
  3043. done
  3044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3045. /* end confdefs.h. */
  3046. int
  3047. main (void)
  3048. {
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. ac_clean_files_save=$ac_clean_files
  3054. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3055. # Try to create an executable without -o first, disregard a.out.
  3056. # It will help us diagnose broken compilers, and finding out an intuition
  3057. # of exeext.
  3058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3059. printf %s "checking whether the C compiler works... " >&6; }
  3060. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3061. # The possible output files:
  3062. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3063. ac_rmfiles=
  3064. for ac_file in $ac_files
  3065. do
  3066. case $ac_file in
  3067. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3068. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3069. esac
  3070. done
  3071. rm -f $ac_rmfiles
  3072. if { { ac_try="$ac_link_default"
  3073. case "(($ac_try" in
  3074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. *) ac_try_echo=$ac_try;;
  3076. esac
  3077. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3078. printf "%s\n" "$ac_try_echo"; } >&5
  3079. (eval "$ac_link_default") 2>&5
  3080. ac_status=$?
  3081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3082. test $ac_status = 0; }
  3083. then :
  3084. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3085. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3086. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3087. # so that the user can short-circuit this test for compilers unknown to
  3088. # Autoconf.
  3089. for ac_file in $ac_files ''
  3090. do
  3091. test -f "$ac_file" || continue
  3092. case $ac_file in
  3093. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3094. ;;
  3095. [ab].out )
  3096. # We found the default executable, but exeext='' is most
  3097. # certainly right.
  3098. break;;
  3099. *.* )
  3100. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3101. then :; else
  3102. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3103. fi
  3104. # We set ac_cv_exeext here because the later test for it is not
  3105. # safe: cross compilers may not add the suffix if given an `-o'
  3106. # argument, so we may need to know it at that point already.
  3107. # Even if this section looks crufty: it has the advantage of
  3108. # actually working.
  3109. break;;
  3110. * )
  3111. break;;
  3112. esac
  3113. done
  3114. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3115. else $as_nop
  3116. ac_file=''
  3117. fi
  3118. if test -z "$ac_file"
  3119. then :
  3120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3121. printf "%s\n" "no" >&6; }
  3122. printf "%s\n" "$as_me: failed program was:" >&5
  3123. sed 's/^/| /' conftest.$ac_ext >&5
  3124. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. as_fn_error 77 "C compiler cannot create executables
  3127. See \`config.log' for more details" "$LINENO" 5; }
  3128. else $as_nop
  3129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3130. printf "%s\n" "yes" >&6; }
  3131. fi
  3132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3133. printf %s "checking for C compiler default output file name... " >&6; }
  3134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3135. printf "%s\n" "$ac_file" >&6; }
  3136. ac_exeext=$ac_cv_exeext
  3137. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3138. ac_clean_files=$ac_clean_files_save
  3139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3140. printf %s "checking for suffix of executables... " >&6; }
  3141. if { { ac_try="$ac_link"
  3142. case "(($ac_try" in
  3143. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3144. *) ac_try_echo=$ac_try;;
  3145. esac
  3146. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3147. printf "%s\n" "$ac_try_echo"; } >&5
  3148. (eval "$ac_link") 2>&5
  3149. ac_status=$?
  3150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3151. test $ac_status = 0; }
  3152. then :
  3153. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3154. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3155. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3156. # `rm'.
  3157. for ac_file in conftest.exe conftest conftest.*; do
  3158. test -f "$ac_file" || continue
  3159. case $ac_file in
  3160. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3161. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3162. break;;
  3163. * ) break;;
  3164. esac
  3165. done
  3166. else $as_nop
  3167. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3168. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3169. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3170. See \`config.log' for more details" "$LINENO" 5; }
  3171. fi
  3172. rm -f conftest conftest$ac_cv_exeext
  3173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3174. printf "%s\n" "$ac_cv_exeext" >&6; }
  3175. rm -f conftest.$ac_ext
  3176. EXEEXT=$ac_cv_exeext
  3177. ac_exeext=$EXEEXT
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. #include <stdio.h>
  3181. int
  3182. main (void)
  3183. {
  3184. FILE *f = fopen ("conftest.out", "w");
  3185. return ferror (f) || fclose (f) != 0;
  3186. ;
  3187. return 0;
  3188. }
  3189. _ACEOF
  3190. ac_clean_files="$ac_clean_files conftest.out"
  3191. # Check that the compiler produces executables we can run. If not, either
  3192. # the compiler is broken, or we cross compile.
  3193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3194. printf %s "checking whether we are cross compiling... " >&6; }
  3195. if test "$cross_compiling" != yes; then
  3196. { { ac_try="$ac_link"
  3197. case "(($ac_try" in
  3198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3199. *) ac_try_echo=$ac_try;;
  3200. esac
  3201. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3202. printf "%s\n" "$ac_try_echo"; } >&5
  3203. (eval "$ac_link") 2>&5
  3204. ac_status=$?
  3205. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3206. test $ac_status = 0; }
  3207. if { ac_try='./conftest$ac_cv_exeext'
  3208. { { case "(($ac_try" in
  3209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3210. *) ac_try_echo=$ac_try;;
  3211. esac
  3212. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3213. printf "%s\n" "$ac_try_echo"; } >&5
  3214. (eval "$ac_try") 2>&5
  3215. ac_status=$?
  3216. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3217. test $ac_status = 0; }; }; then
  3218. cross_compiling=no
  3219. else
  3220. if test "$cross_compiling" = maybe; then
  3221. cross_compiling=yes
  3222. else
  3223. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3224. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3225. as_fn_error 77 "cannot run C compiled programs.
  3226. If you meant to cross compile, use \`--host'.
  3227. See \`config.log' for more details" "$LINENO" 5; }
  3228. fi
  3229. fi
  3230. fi
  3231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3232. printf "%s\n" "$cross_compiling" >&6; }
  3233. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3234. ac_clean_files=$ac_clean_files_save
  3235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3236. printf %s "checking for suffix of object files... " >&6; }
  3237. if test ${ac_cv_objext+y}
  3238. then :
  3239. printf %s "(cached) " >&6
  3240. else $as_nop
  3241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3242. /* end confdefs.h. */
  3243. int
  3244. main (void)
  3245. {
  3246. ;
  3247. return 0;
  3248. }
  3249. _ACEOF
  3250. rm -f conftest.o conftest.obj
  3251. if { { ac_try="$ac_compile"
  3252. case "(($ac_try" in
  3253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3254. *) ac_try_echo=$ac_try;;
  3255. esac
  3256. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3257. printf "%s\n" "$ac_try_echo"; } >&5
  3258. (eval "$ac_compile") 2>&5
  3259. ac_status=$?
  3260. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3261. test $ac_status = 0; }
  3262. then :
  3263. for ac_file in conftest.o conftest.obj conftest.*; do
  3264. test -f "$ac_file" || continue;
  3265. case $ac_file in
  3266. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3267. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3268. break;;
  3269. esac
  3270. done
  3271. else $as_nop
  3272. printf "%s\n" "$as_me: failed program was:" >&5
  3273. sed 's/^/| /' conftest.$ac_ext >&5
  3274. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3275. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3276. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3277. See \`config.log' for more details" "$LINENO" 5; }
  3278. fi
  3279. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3280. fi
  3281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3282. printf "%s\n" "$ac_cv_objext" >&6; }
  3283. OBJEXT=$ac_cv_objext
  3284. ac_objext=$OBJEXT
  3285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3286. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3287. if test ${ac_cv_c_compiler_gnu+y}
  3288. then :
  3289. printf %s "(cached) " >&6
  3290. else $as_nop
  3291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3292. /* end confdefs.h. */
  3293. int
  3294. main (void)
  3295. {
  3296. #ifndef __GNUC__
  3297. choke me
  3298. #endif
  3299. ;
  3300. return 0;
  3301. }
  3302. _ACEOF
  3303. if ac_fn_c_try_compile "$LINENO"
  3304. then :
  3305. ac_compiler_gnu=yes
  3306. else $as_nop
  3307. ac_compiler_gnu=no
  3308. fi
  3309. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3310. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3311. fi
  3312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3313. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3315. if test $ac_compiler_gnu = yes; then
  3316. GCC=yes
  3317. else
  3318. GCC=
  3319. fi
  3320. ac_test_CFLAGS=${CFLAGS+y}
  3321. ac_save_CFLAGS=$CFLAGS
  3322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3323. printf %s "checking whether $CC accepts -g... " >&6; }
  3324. if test ${ac_cv_prog_cc_g+y}
  3325. then :
  3326. printf %s "(cached) " >&6
  3327. else $as_nop
  3328. ac_save_c_werror_flag=$ac_c_werror_flag
  3329. ac_c_werror_flag=yes
  3330. ac_cv_prog_cc_g=no
  3331. CFLAGS="-g"
  3332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3333. /* end confdefs.h. */
  3334. int
  3335. main (void)
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. if ac_fn_c_try_compile "$LINENO"
  3342. then :
  3343. ac_cv_prog_cc_g=yes
  3344. else $as_nop
  3345. CFLAGS=""
  3346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3347. /* end confdefs.h. */
  3348. int
  3349. main (void)
  3350. {
  3351. ;
  3352. return 0;
  3353. }
  3354. _ACEOF
  3355. if ac_fn_c_try_compile "$LINENO"
  3356. then :
  3357. else $as_nop
  3358. ac_c_werror_flag=$ac_save_c_werror_flag
  3359. CFLAGS="-g"
  3360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3361. /* end confdefs.h. */
  3362. int
  3363. main (void)
  3364. {
  3365. ;
  3366. return 0;
  3367. }
  3368. _ACEOF
  3369. if ac_fn_c_try_compile "$LINENO"
  3370. then :
  3371. ac_cv_prog_cc_g=yes
  3372. fi
  3373. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3374. fi
  3375. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3376. fi
  3377. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3378. ac_c_werror_flag=$ac_save_c_werror_flag
  3379. fi
  3380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3381. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3382. if test $ac_test_CFLAGS; then
  3383. CFLAGS=$ac_save_CFLAGS
  3384. elif test $ac_cv_prog_cc_g = yes; then
  3385. if test "$GCC" = yes; then
  3386. CFLAGS="-g -O2"
  3387. else
  3388. CFLAGS="-g"
  3389. fi
  3390. else
  3391. if test "$GCC" = yes; then
  3392. CFLAGS="-O2"
  3393. else
  3394. CFLAGS=
  3395. fi
  3396. fi
  3397. ac_prog_cc_stdc=no
  3398. if test x$ac_prog_cc_stdc = xno
  3399. then :
  3400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3401. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3402. if test ${ac_cv_prog_cc_c11+y}
  3403. then :
  3404. printf %s "(cached) " >&6
  3405. else $as_nop
  3406. ac_cv_prog_cc_c11=no
  3407. ac_save_CC=$CC
  3408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3409. /* end confdefs.h. */
  3410. $ac_c_conftest_c11_program
  3411. _ACEOF
  3412. for ac_arg in '' -std=gnu11
  3413. do
  3414. CC="$ac_save_CC $ac_arg"
  3415. if ac_fn_c_try_compile "$LINENO"
  3416. then :
  3417. ac_cv_prog_cc_c11=$ac_arg
  3418. fi
  3419. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3420. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3421. done
  3422. rm -f conftest.$ac_ext
  3423. CC=$ac_save_CC
  3424. fi
  3425. if test "x$ac_cv_prog_cc_c11" = xno
  3426. then :
  3427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3428. printf "%s\n" "unsupported" >&6; }
  3429. else $as_nop
  3430. if test "x$ac_cv_prog_cc_c11" = x
  3431. then :
  3432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3433. printf "%s\n" "none needed" >&6; }
  3434. else $as_nop
  3435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3436. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3437. CC="$CC $ac_cv_prog_cc_c11"
  3438. fi
  3439. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3440. ac_prog_cc_stdc=c11
  3441. fi
  3442. fi
  3443. if test x$ac_prog_cc_stdc = xno
  3444. then :
  3445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3446. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3447. if test ${ac_cv_prog_cc_c99+y}
  3448. then :
  3449. printf %s "(cached) " >&6
  3450. else $as_nop
  3451. ac_cv_prog_cc_c99=no
  3452. ac_save_CC=$CC
  3453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3454. /* end confdefs.h. */
  3455. $ac_c_conftest_c99_program
  3456. _ACEOF
  3457. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3458. do
  3459. CC="$ac_save_CC $ac_arg"
  3460. if ac_fn_c_try_compile "$LINENO"
  3461. then :
  3462. ac_cv_prog_cc_c99=$ac_arg
  3463. fi
  3464. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3465. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3466. done
  3467. rm -f conftest.$ac_ext
  3468. CC=$ac_save_CC
  3469. fi
  3470. if test "x$ac_cv_prog_cc_c99" = xno
  3471. then :
  3472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3473. printf "%s\n" "unsupported" >&6; }
  3474. else $as_nop
  3475. if test "x$ac_cv_prog_cc_c99" = x
  3476. then :
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3478. printf "%s\n" "none needed" >&6; }
  3479. else $as_nop
  3480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3481. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3482. CC="$CC $ac_cv_prog_cc_c99"
  3483. fi
  3484. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3485. ac_prog_cc_stdc=c99
  3486. fi
  3487. fi
  3488. if test x$ac_prog_cc_stdc = xno
  3489. then :
  3490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3491. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3492. if test ${ac_cv_prog_cc_c89+y}
  3493. then :
  3494. printf %s "(cached) " >&6
  3495. else $as_nop
  3496. ac_cv_prog_cc_c89=no
  3497. ac_save_CC=$CC
  3498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3499. /* end confdefs.h. */
  3500. $ac_c_conftest_c89_program
  3501. _ACEOF
  3502. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3503. do
  3504. CC="$ac_save_CC $ac_arg"
  3505. if ac_fn_c_try_compile "$LINENO"
  3506. then :
  3507. ac_cv_prog_cc_c89=$ac_arg
  3508. fi
  3509. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3510. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3511. done
  3512. rm -f conftest.$ac_ext
  3513. CC=$ac_save_CC
  3514. fi
  3515. if test "x$ac_cv_prog_cc_c89" = xno
  3516. then :
  3517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3518. printf "%s\n" "unsupported" >&6; }
  3519. else $as_nop
  3520. if test "x$ac_cv_prog_cc_c89" = x
  3521. then :
  3522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3523. printf "%s\n" "none needed" >&6; }
  3524. else $as_nop
  3525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3526. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3527. CC="$CC $ac_cv_prog_cc_c89"
  3528. fi
  3529. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3530. ac_prog_cc_stdc=c89
  3531. fi
  3532. fi
  3533. ac_ext=c
  3534. ac_cpp='$CPP $CPPFLAGS'
  3535. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3536. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3537. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3538. ac_ext=cpp
  3539. ac_cpp='$CXXCPP $CPPFLAGS'
  3540. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3541. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3542. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3543. if test -z "$CXX"; then
  3544. if test -n "$CCC"; then
  3545. CXX=$CCC
  3546. else
  3547. if test -n "$ac_tool_prefix"; then
  3548. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3549. do
  3550. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3551. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3553. printf %s "checking for $ac_word... " >&6; }
  3554. if test ${ac_cv_prog_CXX+y}
  3555. then :
  3556. printf %s "(cached) " >&6
  3557. else $as_nop
  3558. if test -n "$CXX"; then
  3559. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3560. else
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH
  3563. do
  3564. IFS=$as_save_IFS
  3565. case $as_dir in #(((
  3566. '') as_dir=./ ;;
  3567. */) ;;
  3568. *) as_dir=$as_dir/ ;;
  3569. esac
  3570. for ac_exec_ext in '' $ac_executable_extensions; do
  3571. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3572. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3573. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3574. break 2
  3575. fi
  3576. done
  3577. done
  3578. IFS=$as_save_IFS
  3579. fi
  3580. fi
  3581. CXX=$ac_cv_prog_CXX
  3582. if test -n "$CXX"; then
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3584. printf "%s\n" "$CXX" >&6; }
  3585. else
  3586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3587. printf "%s\n" "no" >&6; }
  3588. fi
  3589. test -n "$CXX" && break
  3590. done
  3591. fi
  3592. if test -z "$CXX"; then
  3593. ac_ct_CXX=$CXX
  3594. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  3595. do
  3596. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3597. set dummy $ac_prog; ac_word=$2
  3598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3599. printf %s "checking for $ac_word... " >&6; }
  3600. if test ${ac_cv_prog_ac_ct_CXX+y}
  3601. then :
  3602. printf %s "(cached) " >&6
  3603. else $as_nop
  3604. if test -n "$ac_ct_CXX"; then
  3605. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3606. else
  3607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3608. for as_dir in $PATH
  3609. do
  3610. IFS=$as_save_IFS
  3611. case $as_dir in #(((
  3612. '') as_dir=./ ;;
  3613. */) ;;
  3614. *) as_dir=$as_dir/ ;;
  3615. esac
  3616. for ac_exec_ext in '' $ac_executable_extensions; do
  3617. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3618. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3620. break 2
  3621. fi
  3622. done
  3623. done
  3624. IFS=$as_save_IFS
  3625. fi
  3626. fi
  3627. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3628. if test -n "$ac_ct_CXX"; then
  3629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3630. printf "%s\n" "$ac_ct_CXX" >&6; }
  3631. else
  3632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3633. printf "%s\n" "no" >&6; }
  3634. fi
  3635. test -n "$ac_ct_CXX" && break
  3636. done
  3637. if test "x$ac_ct_CXX" = x; then
  3638. CXX="g++"
  3639. else
  3640. case $cross_compiling:$ac_tool_warned in
  3641. yes:)
  3642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3643. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3644. ac_tool_warned=yes ;;
  3645. esac
  3646. CXX=$ac_ct_CXX
  3647. fi
  3648. fi
  3649. fi
  3650. fi
  3651. # Provide some information about the compiler.
  3652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3653. set X $ac_compile
  3654. ac_compiler=$2
  3655. for ac_option in --version -v -V -qversion; do
  3656. { { ac_try="$ac_compiler $ac_option >&5"
  3657. case "(($ac_try" in
  3658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3659. *) ac_try_echo=$ac_try;;
  3660. esac
  3661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3662. printf "%s\n" "$ac_try_echo"; } >&5
  3663. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3664. ac_status=$?
  3665. if test -s conftest.err; then
  3666. sed '10a\
  3667. ... rest of stderr output deleted ...
  3668. 10q' conftest.err >conftest.er1
  3669. cat conftest.er1 >&5
  3670. fi
  3671. rm -f conftest.er1 conftest.err
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3673. test $ac_status = 0; }
  3674. done
  3675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  3676. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  3677. if test ${ac_cv_cxx_compiler_gnu+y}
  3678. then :
  3679. printf %s "(cached) " >&6
  3680. else $as_nop
  3681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3682. /* end confdefs.h. */
  3683. int
  3684. main (void)
  3685. {
  3686. #ifndef __GNUC__
  3687. choke me
  3688. #endif
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. if ac_fn_cxx_try_compile "$LINENO"
  3694. then :
  3695. ac_compiler_gnu=yes
  3696. else $as_nop
  3697. ac_compiler_gnu=no
  3698. fi
  3699. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3700. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3701. fi
  3702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3703. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  3704. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3705. if test $ac_compiler_gnu = yes; then
  3706. GXX=yes
  3707. else
  3708. GXX=
  3709. fi
  3710. ac_test_CXXFLAGS=${CXXFLAGS+y}
  3711. ac_save_CXXFLAGS=$CXXFLAGS
  3712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3713. printf %s "checking whether $CXX accepts -g... " >&6; }
  3714. if test ${ac_cv_prog_cxx_g+y}
  3715. then :
  3716. printf %s "(cached) " >&6
  3717. else $as_nop
  3718. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3719. ac_cxx_werror_flag=yes
  3720. ac_cv_prog_cxx_g=no
  3721. CXXFLAGS="-g"
  3722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3723. /* end confdefs.h. */
  3724. int
  3725. main (void)
  3726. {
  3727. ;
  3728. return 0;
  3729. }
  3730. _ACEOF
  3731. if ac_fn_cxx_try_compile "$LINENO"
  3732. then :
  3733. ac_cv_prog_cxx_g=yes
  3734. else $as_nop
  3735. CXXFLAGS=""
  3736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3737. /* end confdefs.h. */
  3738. int
  3739. main (void)
  3740. {
  3741. ;
  3742. return 0;
  3743. }
  3744. _ACEOF
  3745. if ac_fn_cxx_try_compile "$LINENO"
  3746. then :
  3747. else $as_nop
  3748. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3749. CXXFLAGS="-g"
  3750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3751. /* end confdefs.h. */
  3752. int
  3753. main (void)
  3754. {
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. if ac_fn_cxx_try_compile "$LINENO"
  3760. then :
  3761. ac_cv_prog_cxx_g=yes
  3762. fi
  3763. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3764. fi
  3765. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3766. fi
  3767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3768. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3769. fi
  3770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3771. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  3772. if test $ac_test_CXXFLAGS; then
  3773. CXXFLAGS=$ac_save_CXXFLAGS
  3774. elif test $ac_cv_prog_cxx_g = yes; then
  3775. if test "$GXX" = yes; then
  3776. CXXFLAGS="-g -O2"
  3777. else
  3778. CXXFLAGS="-g"
  3779. fi
  3780. else
  3781. if test "$GXX" = yes; then
  3782. CXXFLAGS="-O2"
  3783. else
  3784. CXXFLAGS=
  3785. fi
  3786. fi
  3787. ac_prog_cxx_stdcxx=no
  3788. if test x$ac_prog_cxx_stdcxx = xno
  3789. then :
  3790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  3791. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  3792. if test ${ac_cv_prog_cxx_11+y}
  3793. then :
  3794. printf %s "(cached) " >&6
  3795. else $as_nop
  3796. ac_cv_prog_cxx_11=no
  3797. ac_save_CXX=$CXX
  3798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3799. /* end confdefs.h. */
  3800. $ac_cxx_conftest_cxx11_program
  3801. _ACEOF
  3802. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  3803. do
  3804. CXX="$ac_save_CXX $ac_arg"
  3805. if ac_fn_cxx_try_compile "$LINENO"
  3806. then :
  3807. ac_cv_prog_cxx_cxx11=$ac_arg
  3808. fi
  3809. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3810. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  3811. done
  3812. rm -f conftest.$ac_ext
  3813. CXX=$ac_save_CXX
  3814. fi
  3815. if test "x$ac_cv_prog_cxx_cxx11" = xno
  3816. then :
  3817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3818. printf "%s\n" "unsupported" >&6; }
  3819. else $as_nop
  3820. if test "x$ac_cv_prog_cxx_cxx11" = x
  3821. then :
  3822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3823. printf "%s\n" "none needed" >&6; }
  3824. else $as_nop
  3825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  3826. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  3827. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  3828. fi
  3829. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  3830. ac_prog_cxx_stdcxx=cxx11
  3831. fi
  3832. fi
  3833. if test x$ac_prog_cxx_stdcxx = xno
  3834. then :
  3835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  3836. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  3837. if test ${ac_cv_prog_cxx_98+y}
  3838. then :
  3839. printf %s "(cached) " >&6
  3840. else $as_nop
  3841. ac_cv_prog_cxx_98=no
  3842. ac_save_CXX=$CXX
  3843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3844. /* end confdefs.h. */
  3845. $ac_cxx_conftest_cxx98_program
  3846. _ACEOF
  3847. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  3848. do
  3849. CXX="$ac_save_CXX $ac_arg"
  3850. if ac_fn_cxx_try_compile "$LINENO"
  3851. then :
  3852. ac_cv_prog_cxx_cxx98=$ac_arg
  3853. fi
  3854. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3855. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  3856. done
  3857. rm -f conftest.$ac_ext
  3858. CXX=$ac_save_CXX
  3859. fi
  3860. if test "x$ac_cv_prog_cxx_cxx98" = xno
  3861. then :
  3862. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3863. printf "%s\n" "unsupported" >&6; }
  3864. else $as_nop
  3865. if test "x$ac_cv_prog_cxx_cxx98" = x
  3866. then :
  3867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3868. printf "%s\n" "none needed" >&6; }
  3869. else $as_nop
  3870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  3871. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  3872. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  3873. fi
  3874. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  3875. ac_prog_cxx_stdcxx=cxx98
  3876. fi
  3877. fi
  3878. ac_ext=c
  3879. ac_cpp='$CPP $CPPFLAGS'
  3880. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3881. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3882. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3883. # Find a good install program. We prefer a C program (faster),
  3884. # so one script is as good as another. But avoid the broken or
  3885. # incompatible versions:
  3886. # SysV /etc/install, /usr/sbin/install
  3887. # SunOS /usr/etc/install
  3888. # IRIX /sbin/install
  3889. # AIX /bin/install
  3890. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3891. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3892. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3893. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3894. # OS/2's system install, which has a completely different semantic
  3895. # ./install, which can be erroneously created by make from ./install.sh.
  3896. # Reject install programs that cannot install multiple files.
  3897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3898. printf %s "checking for a BSD-compatible install... " >&6; }
  3899. if test -z "$INSTALL"; then
  3900. if test ${ac_cv_path_install+y}
  3901. then :
  3902. printf %s "(cached) " >&6
  3903. else $as_nop
  3904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3905. for as_dir in $PATH
  3906. do
  3907. IFS=$as_save_IFS
  3908. case $as_dir in #(((
  3909. '') as_dir=./ ;;
  3910. */) ;;
  3911. *) as_dir=$as_dir/ ;;
  3912. esac
  3913. # Account for fact that we put trailing slashes in our PATH walk.
  3914. case $as_dir in #((
  3915. ./ | /[cC]/* | \
  3916. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3917. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3918. /usr/ucb/* ) ;;
  3919. *)
  3920. # OSF1 and SCO ODT 3.0 have their own names for install.
  3921. # Don't use installbsd from OSF since it installs stuff as root
  3922. # by default.
  3923. for ac_prog in ginstall scoinst install; do
  3924. for ac_exec_ext in '' $ac_executable_extensions; do
  3925. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  3926. if test $ac_prog = install &&
  3927. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3928. # AIX install. It has an incompatible calling convention.
  3929. :
  3930. elif test $ac_prog = install &&
  3931. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3932. # program-specific install script used by HP pwplus--don't use.
  3933. :
  3934. else
  3935. rm -rf conftest.one conftest.two conftest.dir
  3936. echo one > conftest.one
  3937. echo two > conftest.two
  3938. mkdir conftest.dir
  3939. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3940. test -s conftest.one && test -s conftest.two &&
  3941. test -s conftest.dir/conftest.one &&
  3942. test -s conftest.dir/conftest.two
  3943. then
  3944. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3945. break 3
  3946. fi
  3947. fi
  3948. fi
  3949. done
  3950. done
  3951. ;;
  3952. esac
  3953. done
  3954. IFS=$as_save_IFS
  3955. rm -rf conftest.one conftest.two conftest.dir
  3956. fi
  3957. if test ${ac_cv_path_install+y}; then
  3958. INSTALL=$ac_cv_path_install
  3959. else
  3960. # As a last resort, use the slow shell script. Don't cache a
  3961. # value for INSTALL within a source directory, because that will
  3962. # break other packages using the cache if that directory is
  3963. # removed, or if the value is a relative name.
  3964. INSTALL=$ac_install_sh
  3965. fi
  3966. fi
  3967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3968. printf "%s\n" "$INSTALL" >&6; }
  3969. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3970. # It thinks the first close brace ends the variable substitution.
  3971. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3972. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3973. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3974. if test "$INSTALL" = "$ac_install_sh"
  3975. then :
  3976. # Use full path to install-sh script...
  3977. INSTALL="`pwd`/install-sh -c"
  3978. fi
  3979. if test -n "$ac_tool_prefix"; then
  3980. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3981. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3983. printf %s "checking for $ac_word... " >&6; }
  3984. if test ${ac_cv_prog_RANLIB+y}
  3985. then :
  3986. printf %s "(cached) " >&6
  3987. else $as_nop
  3988. if test -n "$RANLIB"; then
  3989. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3990. else
  3991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3992. for as_dir in $PATH
  3993. do
  3994. IFS=$as_save_IFS
  3995. case $as_dir in #(((
  3996. '') as_dir=./ ;;
  3997. */) ;;
  3998. *) as_dir=$as_dir/ ;;
  3999. esac
  4000. for ac_exec_ext in '' $ac_executable_extensions; do
  4001. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4002. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4004. break 2
  4005. fi
  4006. done
  4007. done
  4008. IFS=$as_save_IFS
  4009. fi
  4010. fi
  4011. RANLIB=$ac_cv_prog_RANLIB
  4012. if test -n "$RANLIB"; then
  4013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4014. printf "%s\n" "$RANLIB" >&6; }
  4015. else
  4016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4017. printf "%s\n" "no" >&6; }
  4018. fi
  4019. fi
  4020. if test -z "$ac_cv_prog_RANLIB"; then
  4021. ac_ct_RANLIB=$RANLIB
  4022. # Extract the first word of "ranlib", so it can be a program name with args.
  4023. set dummy ranlib; ac_word=$2
  4024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4025. printf %s "checking for $ac_word... " >&6; }
  4026. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  4027. then :
  4028. printf %s "(cached) " >&6
  4029. else $as_nop
  4030. if test -n "$ac_ct_RANLIB"; then
  4031. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4032. else
  4033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4034. for as_dir in $PATH
  4035. do
  4036. IFS=$as_save_IFS
  4037. case $as_dir in #(((
  4038. '') as_dir=./ ;;
  4039. */) ;;
  4040. *) as_dir=$as_dir/ ;;
  4041. esac
  4042. for ac_exec_ext in '' $ac_executable_extensions; do
  4043. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4044. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4045. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4046. break 2
  4047. fi
  4048. done
  4049. done
  4050. IFS=$as_save_IFS
  4051. fi
  4052. fi
  4053. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4054. if test -n "$ac_ct_RANLIB"; then
  4055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4056. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  4057. else
  4058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4059. printf "%s\n" "no" >&6; }
  4060. fi
  4061. if test "x$ac_ct_RANLIB" = x; then
  4062. RANLIB=":"
  4063. else
  4064. case $cross_compiling:$ac_tool_warned in
  4065. yes:)
  4066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4067. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4068. ac_tool_warned=yes ;;
  4069. esac
  4070. RANLIB=$ac_ct_RANLIB
  4071. fi
  4072. else
  4073. RANLIB="$ac_cv_prog_RANLIB"
  4074. fi
  4075. if test -n "$ac_tool_prefix"; then
  4076. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4077. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4079. printf %s "checking for $ac_word... " >&6; }
  4080. if test ${ac_cv_prog_AR+y}
  4081. then :
  4082. printf %s "(cached) " >&6
  4083. else $as_nop
  4084. if test -n "$AR"; then
  4085. ac_cv_prog_AR="$AR" # Let the user override the test.
  4086. else
  4087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4088. for as_dir in $PATH
  4089. do
  4090. IFS=$as_save_IFS
  4091. case $as_dir in #(((
  4092. '') as_dir=./ ;;
  4093. */) ;;
  4094. *) as_dir=$as_dir/ ;;
  4095. esac
  4096. for ac_exec_ext in '' $ac_executable_extensions; do
  4097. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4098. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4099. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4100. break 2
  4101. fi
  4102. done
  4103. done
  4104. IFS=$as_save_IFS
  4105. fi
  4106. fi
  4107. AR=$ac_cv_prog_AR
  4108. if test -n "$AR"; then
  4109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4110. printf "%s\n" "$AR" >&6; }
  4111. else
  4112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4113. printf "%s\n" "no" >&6; }
  4114. fi
  4115. fi
  4116. if test -z "$ac_cv_prog_AR"; then
  4117. ac_ct_AR=$AR
  4118. # Extract the first word of "ar", so it can be a program name with args.
  4119. set dummy ar; ac_word=$2
  4120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4121. printf %s "checking for $ac_word... " >&6; }
  4122. if test ${ac_cv_prog_ac_ct_AR+y}
  4123. then :
  4124. printf %s "(cached) " >&6
  4125. else $as_nop
  4126. if test -n "$ac_ct_AR"; then
  4127. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4128. else
  4129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4130. for as_dir in $PATH
  4131. do
  4132. IFS=$as_save_IFS
  4133. case $as_dir in #(((
  4134. '') as_dir=./ ;;
  4135. */) ;;
  4136. *) as_dir=$as_dir/ ;;
  4137. esac
  4138. for ac_exec_ext in '' $ac_executable_extensions; do
  4139. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4140. ac_cv_prog_ac_ct_AR="ar"
  4141. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4142. break 2
  4143. fi
  4144. done
  4145. done
  4146. IFS=$as_save_IFS
  4147. fi
  4148. fi
  4149. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4150. if test -n "$ac_ct_AR"; then
  4151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4152. printf "%s\n" "$ac_ct_AR" >&6; }
  4153. else
  4154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4155. printf "%s\n" "no" >&6; }
  4156. fi
  4157. if test "x$ac_ct_AR" = x; then
  4158. AR=""
  4159. else
  4160. case $cross_compiling:$ac_tool_warned in
  4161. yes:)
  4162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4163. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4164. ac_tool_warned=yes ;;
  4165. esac
  4166. AR=$ac_ct_AR
  4167. fi
  4168. else
  4169. AR="$ac_cv_prog_AR"
  4170. fi
  4171. # Extract the first word of "cp", so it can be a program name with args.
  4172. set dummy cp; ac_word=$2
  4173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4174. printf %s "checking for $ac_word... " >&6; }
  4175. if test ${ac_cv_path_CP+y}
  4176. then :
  4177. printf %s "(cached) " >&6
  4178. else $as_nop
  4179. case $CP in
  4180. [\\/]* | ?:[\\/]*)
  4181. ac_cv_path_CP="$CP" # Let the user override the test with a path.
  4182. ;;
  4183. *)
  4184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4185. for as_dir in $PATH
  4186. do
  4187. IFS=$as_save_IFS
  4188. case $as_dir in #(((
  4189. '') as_dir=./ ;;
  4190. */) ;;
  4191. *) as_dir=$as_dir/ ;;
  4192. esac
  4193. for ac_exec_ext in '' $ac_executable_extensions; do
  4194. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4195. ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
  4196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4197. break 2
  4198. fi
  4199. done
  4200. done
  4201. IFS=$as_save_IFS
  4202. ;;
  4203. esac
  4204. fi
  4205. CP=$ac_cv_path_CP
  4206. if test -n "$CP"; then
  4207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
  4208. printf "%s\n" "$CP" >&6; }
  4209. else
  4210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4211. printf "%s\n" "no" >&6; }
  4212. fi
  4213. for ac_prog in ldconfig false
  4214. do
  4215. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4216. set dummy $ac_prog; ac_word=$2
  4217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4218. printf %s "checking for $ac_word... " >&6; }
  4219. if test ${ac_cv_path_LDCONFIG+y}
  4220. then :
  4221. printf %s "(cached) " >&6
  4222. else $as_nop
  4223. case $LDCONFIG in
  4224. [\\/]* | ?:[\\/]*)
  4225. ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  4226. ;;
  4227. *)
  4228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4229. for as_dir in $PATH
  4230. do
  4231. IFS=$as_save_IFS
  4232. case $as_dir in #(((
  4233. '') as_dir=./ ;;
  4234. */) ;;
  4235. *) as_dir=$as_dir/ ;;
  4236. esac
  4237. for ac_exec_ext in '' $ac_executable_extensions; do
  4238. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4239. ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
  4240. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4241. break 2
  4242. fi
  4243. done
  4244. done
  4245. IFS=$as_save_IFS
  4246. ;;
  4247. esac
  4248. fi
  4249. LDCONFIG=$ac_cv_path_LDCONFIG
  4250. if test -n "$LDCONFIG"; then
  4251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
  4252. printf "%s\n" "$LDCONFIG" >&6; }
  4253. else
  4254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4255. printf "%s\n" "no" >&6; }
  4256. fi
  4257. test -n "$LDCONFIG" && break
  4258. done
  4259. # Extract the first word of "ln", so it can be a program name with args.
  4260. set dummy ln; ac_word=$2
  4261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4262. printf %s "checking for $ac_word... " >&6; }
  4263. if test ${ac_cv_path_LN+y}
  4264. then :
  4265. printf %s "(cached) " >&6
  4266. else $as_nop
  4267. case $LN in
  4268. [\\/]* | ?:[\\/]*)
  4269. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  4270. ;;
  4271. *)
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH
  4274. do
  4275. IFS=$as_save_IFS
  4276. case $as_dir in #(((
  4277. '') as_dir=./ ;;
  4278. */) ;;
  4279. *) as_dir=$as_dir/ ;;
  4280. esac
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4283. ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
  4284. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4285. break 2
  4286. fi
  4287. done
  4288. done
  4289. IFS=$as_save_IFS
  4290. ;;
  4291. esac
  4292. fi
  4293. LN=$ac_cv_path_LN
  4294. if test -n "$LN"; then
  4295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  4296. printf "%s\n" "$LN" >&6; }
  4297. else
  4298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4299. printf "%s\n" "no" >&6; }
  4300. fi
  4301. # Extract the first word of "mkdir", so it can be a program name with args.
  4302. set dummy mkdir; ac_word=$2
  4303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4304. printf %s "checking for $ac_word... " >&6; }
  4305. if test ${ac_cv_path_MKDIR+y}
  4306. then :
  4307. printf %s "(cached) " >&6
  4308. else $as_nop
  4309. case $MKDIR in
  4310. [\\/]* | ?:[\\/]*)
  4311. ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
  4312. ;;
  4313. *)
  4314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4315. for as_dir in $PATH
  4316. do
  4317. IFS=$as_save_IFS
  4318. case $as_dir in #(((
  4319. '') as_dir=./ ;;
  4320. */) ;;
  4321. *) as_dir=$as_dir/ ;;
  4322. esac
  4323. for ac_exec_ext in '' $ac_executable_extensions; do
  4324. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4325. ac_cv_path_MKDIR="$as_dir$ac_word$ac_exec_ext"
  4326. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4327. break 2
  4328. fi
  4329. done
  4330. done
  4331. IFS=$as_save_IFS
  4332. ;;
  4333. esac
  4334. fi
  4335. MKDIR=$ac_cv_path_MKDIR
  4336. if test -n "$MKDIR"; then
  4337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
  4338. printf "%s\n" "$MKDIR" >&6; }
  4339. else
  4340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4341. printf "%s\n" "no" >&6; }
  4342. fi
  4343. # Extract the first word of "rm", so it can be a program name with args.
  4344. set dummy rm; ac_word=$2
  4345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4346. printf %s "checking for $ac_word... " >&6; }
  4347. if test ${ac_cv_path_RM+y}
  4348. then :
  4349. printf %s "(cached) " >&6
  4350. else $as_nop
  4351. case $RM in
  4352. [\\/]* | ?:[\\/]*)
  4353. ac_cv_path_RM="$RM" # Let the user override the test with a path.
  4354. ;;
  4355. *)
  4356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4357. for as_dir in $PATH
  4358. do
  4359. IFS=$as_save_IFS
  4360. case $as_dir in #(((
  4361. '') as_dir=./ ;;
  4362. */) ;;
  4363. *) as_dir=$as_dir/ ;;
  4364. esac
  4365. for ac_exec_ext in '' $ac_executable_extensions; do
  4366. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4367. ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
  4368. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4369. break 2
  4370. fi
  4371. done
  4372. done
  4373. IFS=$as_save_IFS
  4374. ;;
  4375. esac
  4376. fi
  4377. RM=$ac_cv_path_RM
  4378. if test -n "$RM"; then
  4379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
  4380. printf "%s\n" "$RM" >&6; }
  4381. else
  4382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4383. printf "%s\n" "no" >&6; }
  4384. fi
  4385. case "$host_os_name" in #(
  4386. darwin* | *bsd) :
  4387. ARFLAGS="-rcv"
  4388. ;; #(
  4389. *) :
  4390. ARFLAGS="crvs"
  4391. ;; #(
  4392. *) :
  4393. ;;
  4394. esac
  4395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4396. printf %s "checking for inline... " >&6; }
  4397. if test ${ac_cv_c_inline+y}
  4398. then :
  4399. printf %s "(cached) " >&6
  4400. else $as_nop
  4401. ac_cv_c_inline=no
  4402. for ac_kw in inline __inline__ __inline; do
  4403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4404. /* end confdefs.h. */
  4405. #ifndef __cplusplus
  4406. typedef int foo_t;
  4407. static $ac_kw foo_t static_foo (void) {return 0; }
  4408. $ac_kw foo_t foo (void) {return 0; }
  4409. #endif
  4410. _ACEOF
  4411. if ac_fn_c_try_compile "$LINENO"
  4412. then :
  4413. ac_cv_c_inline=$ac_kw
  4414. fi
  4415. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4416. test "$ac_cv_c_inline" != no && break
  4417. done
  4418. fi
  4419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4420. printf "%s\n" "$ac_cv_c_inline" >&6; }
  4421. case $ac_cv_c_inline in
  4422. inline | yes) ;;
  4423. *)
  4424. case $ac_cv_c_inline in
  4425. no) ac_val=;;
  4426. *) ac_val=$ac_cv_c_inline;;
  4427. esac
  4428. cat >>confdefs.h <<_ACEOF
  4429. #ifndef __cplusplus
  4430. #define inline $ac_val
  4431. #endif
  4432. _ACEOF
  4433. ;;
  4434. esac
  4435. if test "x$use_ansi" != xyes
  4436. then :
  4437. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  4438. if test "x$ac_cv_func_strdup" = xyes
  4439. then :
  4440. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  4441. fi
  4442. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  4443. if test "x$ac_cv_func_strlcat" = xyes
  4444. then :
  4445. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  4446. fi
  4447. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  4448. if test "x$ac_cv_func_strlcpy" = xyes
  4449. then :
  4450. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  4451. fi
  4452. fi
  4453. if test "x$use_vsnprintf" != xyes
  4454. then :
  4455. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  4456. if test "x$ac_cv_func_snprintf" = xyes
  4457. then :
  4458. printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
  4459. fi
  4460. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  4461. if test "x$ac_cv_func_vasprintf" = xyes
  4462. then :
  4463. printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
  4464. fi
  4465. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  4466. if test "x$ac_cv_func_vsnprintf" = xyes
  4467. then :
  4468. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  4469. fi
  4470. fi
  4471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  4472. printf %s "checking for unsigned long long int... " >&6; }
  4473. if test ${ac_cv_type_unsigned_long_long_int+y}
  4474. then :
  4475. printf %s "(cached) " >&6
  4476. else $as_nop
  4477. ac_cv_type_unsigned_long_long_int=yes
  4478. case $ac_prog_cc_stdc in
  4479. no | c89) ;;
  4480. *)
  4481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4482. /* end confdefs.h. */
  4483. /* For now, do not test the preprocessor; as of 2007 there are too many
  4484. implementations with broken preprocessors. Perhaps this can
  4485. be revisited in 2012. In the meantime, code should not expect
  4486. #if to work with literals wider than 32 bits. */
  4487. /* Test literals. */
  4488. long long int ll = 9223372036854775807ll;
  4489. long long int nll = -9223372036854775807LL;
  4490. unsigned long long int ull = 18446744073709551615ULL;
  4491. /* Test constant expressions. */
  4492. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  4493. ? 1 : -1)];
  4494. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  4495. ? 1 : -1)];
  4496. int i = 63;
  4497. int
  4498. main (void)
  4499. {
  4500. /* Test availability of runtime routines for shift and division. */
  4501. long long int llmax = 9223372036854775807ll;
  4502. unsigned long long int ullmax = 18446744073709551615ull;
  4503. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  4504. | (llmax / ll) | (llmax % ll)
  4505. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  4506. | (ullmax / ull) | (ullmax % ull));
  4507. ;
  4508. return 0;
  4509. }
  4510. _ACEOF
  4511. if ac_fn_c_try_link "$LINENO"
  4512. then :
  4513. else $as_nop
  4514. ac_cv_type_unsigned_long_long_int=no
  4515. fi
  4516. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4517. conftest$ac_exeext conftest.$ac_ext;;
  4518. esac
  4519. fi
  4520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  4521. printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
  4522. if test $ac_cv_type_unsigned_long_long_int = yes; then
  4523. printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  4524. fi
  4525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  4526. printf %s "checking for long long int... " >&6; }
  4527. if test ${ac_cv_type_long_long_int+y}
  4528. then :
  4529. printf %s "(cached) " >&6
  4530. else $as_nop
  4531. ac_cv_type_long_long_int=yes
  4532. case $ac_prog_cc_stdc in
  4533. no | c89) ;;
  4534. *)
  4535. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  4536. if test $ac_cv_type_long_long_int = yes; then
  4537. if test "$cross_compiling" = yes
  4538. then :
  4539. :
  4540. else $as_nop
  4541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4542. /* end confdefs.h. */
  4543. #include <limits.h>
  4544. #ifndef LLONG_MAX
  4545. # define HALF \
  4546. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  4547. # define LLONG_MAX (HALF - 1 + HALF)
  4548. #endif
  4549. int
  4550. main (void)
  4551. {
  4552. long long int n = 1;
  4553. int i;
  4554. for (i = 0; ; i++)
  4555. {
  4556. long long int m = n << i;
  4557. if (m >> i != n)
  4558. return 1;
  4559. if (LLONG_MAX / 2 < m)
  4560. break;
  4561. }
  4562. return 0;
  4563. ;
  4564. return 0;
  4565. }
  4566. _ACEOF
  4567. if ac_fn_c_try_run "$LINENO"
  4568. then :
  4569. else $as_nop
  4570. ac_cv_type_long_long_int=no
  4571. fi
  4572. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4573. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4574. fi
  4575. fi;;
  4576. esac
  4577. fi
  4578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  4579. printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
  4580. if test $ac_cv_type_long_long_int = yes; then
  4581. printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  4582. fi
  4583. # Check whether --enable-threads was given.
  4584. if test ${enable_threads+y}
  4585. then :
  4586. enableval=$enable_threads;
  4587. fi
  4588. have_pthread=no
  4589. ac_header= ac_cache=
  4590. for ac_item in $ac_header_c_list
  4591. do
  4592. if test $ac_cache; then
  4593. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4594. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4595. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4596. fi
  4597. ac_header= ac_cache=
  4598. elif test $ac_header; then
  4599. ac_cache=$ac_item
  4600. else
  4601. ac_header=$ac_item
  4602. fi
  4603. done
  4604. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4605. then :
  4606. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4607. fi
  4608. if test "x$enable_threads" != xno
  4609. then :
  4610. ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  4611. if test "x$ac_cv_header_pthread_h" = xyes
  4612. then :
  4613. printf "%s\n" "#define HAVE_PTHREAD_H Have <pthread.h>?" >>confdefs.h
  4614. fi
  4615. if test x$ac_cv_header_pthread_h = xyes
  4616. then :
  4617. for flag in -lpthreads -lpthread -pthread; do
  4618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
  4619. printf %s "checking for pthread_create using $flag... " >&6; }
  4620. SAVELIBS="$LIBS"
  4621. LIBS="$flag $LIBS"
  4622. ac_ext=c
  4623. ac_cpp='$CPP $CPPFLAGS'
  4624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4628. /* end confdefs.h. */
  4629. #include <pthread.h>
  4630. int
  4631. main (void)
  4632. {
  4633. pthread_create(0, 0, 0, 0);
  4634. ;
  4635. return 0;
  4636. }
  4637. _ACEOF
  4638. if ac_fn_c_try_link "$LINENO"
  4639. then :
  4640. have_pthread=yes
  4641. else $as_nop
  4642. LIBS="$SAVELIBS"
  4643. fi
  4644. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  4645. conftest$ac_exeext conftest.$ac_ext
  4646. if test x$have_pthread = xyes
  4647. then :
  4648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4649. printf "%s\n" "yes" >&6; }
  4650. CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE -D_REENTRANT"
  4651. break
  4652. else $as_nop
  4653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4654. printf "%s\n" "no" >&6; }
  4655. fi
  4656. done
  4657. fi
  4658. fi
  4659. DSO="${DSO:=:}"
  4660. DSOFLAGS="${DSOFLAGS:=}"
  4661. # Check whether --enable-shared was given.
  4662. if test ${enable_shared+y}
  4663. then :
  4664. enableval=$enable_shared;
  4665. fi
  4666. if test x$enable_shared != xno
  4667. then :
  4668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library support" >&5
  4669. printf %s "checking for shared library support... " >&6; }
  4670. PICFLAG=1
  4671. case "$host_os_name" in #(
  4672. sunos | unix_s) :
  4673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4674. printf "%s\n" "yes" >&6; }
  4675. LIBMXML="libmxml.so.1.6"
  4676. DSO="\$(CC)"
  4677. DSOFLAGS="$DSOFLAGS -Wl,-h,libmxml.so.1 -G -R\$(libdir) \$(OPTIM)"
  4678. LDFLAGS="$LDFLAGS -R\$(libdir)"
  4679. ;; #(
  4680. linux*) :
  4681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4682. printf "%s\n" "yes" >&6; }
  4683. LIBMXML="libmxml.so.1.6"
  4684. DSO="\$(CC)"
  4685. DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1 -shared \$(OPTIM)"
  4686. ;; #(
  4687. osf | gnu) :
  4688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4689. printf "%s\n" "yes" >&6; }
  4690. LIBMXML="libmxml.so.1.6"
  4691. DSO="\$(CC)"
  4692. DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-rpath,\$(libdir) -shared \$(OPTIM)"
  4693. LDFLAGS="$LDFLAGS -Wl,-rpath,\$(libdir)"
  4694. ;; #(
  4695. *bsd | haiku*) :
  4696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4697. printf "%s\n" "yes" >&6; }
  4698. LIBMXML="libmxml.so.1.6"
  4699. DSO="\$(CC)"
  4700. DSOFLAGS="$DSOFLAGS -Wl,-soname,libmxml.so.1,-R\$(libdir) -shared \$(OPTIM)"
  4701. LDFLAGS="$LDFLAGS -Wl,-R\$(libdir)"
  4702. ;; #(
  4703. darwin) :
  4704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4705. printf "%s\n" "yes" >&6; }
  4706. LIBMXML="libmxml.1.dylib"
  4707. DSO="\$(CC)"
  4708. DSOFLAGS="$DSOFLAGS \$(RC_CFLAGS) -dynamiclib -lc"
  4709. ;; #(
  4710. mingw) :
  4711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4712. printf "%s\n" "yes" >&6; }
  4713. LIBMXML="mxml1.dll"
  4714. DSO="\$(CC)"
  4715. DSOFLAGS="$DSOFLAGS -shared -Wl,--out-implib,libmxml1.a,--no-undefined,--enable-runtime-pseudo-reloc"
  4716. ;; #(
  4717. *) :
  4718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4719. printf "%s\n" "no" >&6; }
  4720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared libraries not supported on this platform." >&5
  4721. printf "%s\n" "$as_me: WARNING: shared libraries not supported on this platform." >&2;}
  4722. PICFLAG=0
  4723. LIBMXML="libmxml.a"
  4724. ;; #(
  4725. *) :
  4726. ;;
  4727. esac
  4728. else $as_nop
  4729. PICFLAG=0
  4730. LIBMXML="libmxml.a"
  4731. fi
  4732. WARNINGS=""
  4733. if test -n "$GCC"
  4734. then :
  4735. CFLAGS="-D_GNU_SOURCE $CFLAGS"
  4736. if test "x$OPTIM" = x
  4737. then :
  4738. if test x$enable_debug = xyes
  4739. then :
  4740. OPTIM="-g"
  4741. else $as_nop
  4742. OPTIM="-g -Os"
  4743. fi
  4744. elif test x$enable_debug = xyes
  4745. then :
  4746. OPTIM="$OPTIM -g"
  4747. fi
  4748. if test x$enable_sanitizer = xyes
  4749. then :
  4750. # Use -fsanitize=address with debugging...
  4751. OPTIM="$OPTIM -fsanitize=address"
  4752. else $as_nop
  4753. # Otherwise use the Fortify enhancements to catch any unbounded
  4754. # string operations...
  4755. CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
  4756. fi
  4757. if test "x$use_ansi" = xyes
  4758. then :
  4759. CFLAGS="-ansi -pedantic $CFLAGS"
  4760. fi
  4761. WARNINGS="-Wall -Wunused"
  4762. for warning in char-subscripts format-truncation format-y2k switch unused-result; do
  4763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-$warning" >&5
  4764. printf %s "checking whether compiler supports -Wno-$warning... " >&6; }
  4765. OLDCFLAGS="$CFLAGS"
  4766. CFLAGS="$CFLAGS -Wno-$warning -Werror"
  4767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4768. /* end confdefs.h. */
  4769. int
  4770. main (void)
  4771. {
  4772. ;
  4773. return 0;
  4774. }
  4775. _ACEOF
  4776. if ac_fn_c_try_compile "$LINENO"
  4777. then :
  4778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4779. printf "%s\n" "yes" >&6; }
  4780. WARNINGS="$WARNINGS -Wno-$warning"
  4781. else $as_nop
  4782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4783. printf "%s\n" "no" >&6; }
  4784. fi
  4785. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4786. CFLAGS="$OLDCFLAGS"
  4787. done
  4788. if test x$enable_maintainer = xyes
  4789. then :
  4790. WARNINGS="$WARNINGS -Werror"
  4791. fi
  4792. if test $PICFLAG = 1 -a "$host_os_name" != aix
  4793. then :
  4794. OPTIM="-fPIC $OPTIM"
  4795. fi
  4796. else $as_nop
  4797. if test "x$OPTIM" = x
  4798. then :
  4799. if test x$enable_debug = xyes
  4800. then :
  4801. OPTIM="-g"
  4802. else $as_nop
  4803. OPTIM="-O"
  4804. fi
  4805. fi
  4806. case "$host_os_name" in #(
  4807. hp-ux) :
  4808. CFLAGS="-Ae $CFLAGS"
  4809. OPTIM="+DAportable $OPTIM"
  4810. if test $PICFLAG = 1
  4811. then :
  4812. OPTIM="+z $OPTIM"
  4813. fi
  4814. ;; #(
  4815. unix_svr | sunos) :
  4816. if test $PICFLAG = 1
  4817. then :
  4818. OPTIM="-KPIC $OPTIM"
  4819. fi
  4820. ;; #(
  4821. *) :
  4822. ;;
  4823. esac
  4824. fi
  4825. if test "$build" = "$host"
  4826. then :
  4827. TARGETS="ALLTARGETS"
  4828. else $as_nop
  4829. TARGETS="CROSSTARGETS"
  4830. fi
  4831. if test "$prefix" = "NONE"
  4832. then :
  4833. prefix="/usr/local"
  4834. fi
  4835. if test "$exec_prefix" = "NONE"
  4836. then :
  4837. exec_prefix="$prefix"
  4838. fi
  4839. if test "$docdir" = "NONE"
  4840. then :
  4841. docdir="$datadir/doc/mxml"
  4842. fi
  4843. if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"
  4844. then :
  4845. mandir="/usr/share/man"
  4846. fi
  4847. if test "$includedir" != /usr/include
  4848. then :
  4849. PC_CFLAGS="-I$includedir"
  4850. else $as_nop
  4851. PC_CFLAGS=""
  4852. fi
  4853. if test "$libdir" != /usr/lib
  4854. then :
  4855. PC_LIBS="-L$libdir -lmxml"
  4856. else $as_nop
  4857. PC_LIBS="-lmxml"
  4858. fi
  4859. ac_config_files="$ac_config_files Makefile mxml.pc"
  4860. cat >confcache <<\_ACEOF
  4861. # This file is a shell script that caches the results of configure
  4862. # tests run on this system so they can be shared between configure
  4863. # scripts and configure runs, see configure's option --config-cache.
  4864. # It is not useful on other systems. If it contains results you don't
  4865. # want to keep, you may remove or edit it.
  4866. #
  4867. # config.status only pays attention to the cache file if you give it
  4868. # the --recheck option to rerun configure.
  4869. #
  4870. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4871. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4872. # following values.
  4873. _ACEOF
  4874. # The following way of writing the cache mishandles newlines in values,
  4875. # but we know of no workaround that is simple, portable, and efficient.
  4876. # So, we kill variables containing newlines.
  4877. # Ultrix sh set writes to stderr and can't be redirected directly,
  4878. # and sets the high bit in the cache file unless we assign to the vars.
  4879. (
  4880. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4881. eval ac_val=\$$ac_var
  4882. case $ac_val in #(
  4883. *${as_nl}*)
  4884. case $ac_var in #(
  4885. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4886. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4887. esac
  4888. case $ac_var in #(
  4889. _ | IFS | as_nl) ;; #(
  4890. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4891. *) { eval $ac_var=; unset $ac_var;} ;;
  4892. esac ;;
  4893. esac
  4894. done
  4895. (set) 2>&1 |
  4896. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4897. *${as_nl}ac_space=\ *)
  4898. # `set' does not quote correctly, so add quotes: double-quote
  4899. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4900. sed -n \
  4901. "s/'/'\\\\''/g;
  4902. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4903. ;; #(
  4904. *)
  4905. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4906. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4907. ;;
  4908. esac |
  4909. sort
  4910. ) |
  4911. sed '
  4912. /^ac_cv_env_/b end
  4913. t clear
  4914. :clear
  4915. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  4916. t end
  4917. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4918. :end' >>confcache
  4919. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4920. if test -w "$cache_file"; then
  4921. if test "x$cache_file" != "x/dev/null"; then
  4922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4923. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  4924. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4925. cat confcache >"$cache_file"
  4926. else
  4927. case $cache_file in #(
  4928. */* | ?:*)
  4929. mv -f confcache "$cache_file"$$ &&
  4930. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4931. *)
  4932. mv -f confcache "$cache_file" ;;
  4933. esac
  4934. fi
  4935. fi
  4936. else
  4937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4938. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  4939. fi
  4940. fi
  4941. rm -f confcache
  4942. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  4943. # Let make expand exec_prefix.
  4944. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4945. DEFS=-DHAVE_CONFIG_H
  4946. ac_libobjs=
  4947. ac_ltlibobjs=
  4948. U=
  4949. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  4950. # 1. Remove the extension, and $U if already installed.
  4951. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  4952. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  4953. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  4954. # will be set to the directory where LIBOBJS objects are built.
  4955. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  4956. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  4957. done
  4958. LIBOBJS=$ac_libobjs
  4959. LTLIBOBJS=$ac_ltlibobjs
  4960. : "${CONFIG_STATUS=./config.status}"
  4961. ac_write_fail=0
  4962. ac_clean_files_save=$ac_clean_files
  4963. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  4964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  4965. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  4966. as_write_fail=0
  4967. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  4968. #! $SHELL
  4969. # Generated by $as_me.
  4970. # Run this file to recreate the current configuration.
  4971. # Compiler output produced by configure, useful for debugging
  4972. # configure, is in config.log if it exists.
  4973. debug=false
  4974. ac_cs_recheck=false
  4975. ac_cs_silent=false
  4976. SHELL=\${CONFIG_SHELL-$SHELL}
  4977. export SHELL
  4978. _ASEOF
  4979. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  4980. ## -------------------- ##
  4981. ## M4sh Initialization. ##
  4982. ## -------------------- ##
  4983. # Be more Bourne compatible
  4984. DUALCASE=1; export DUALCASE # for MKS sh
  4985. as_nop=:
  4986. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  4987. then :
  4988. emulate sh
  4989. NULLCMD=:
  4990. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  4991. # is contrary to our usage. Disable this feature.
  4992. alias -g '${1+"$@"}'='"$@"'
  4993. setopt NO_GLOB_SUBST
  4994. else $as_nop
  4995. case `(set -o) 2>/dev/null` in #(
  4996. *posix*) :
  4997. set -o posix ;; #(
  4998. *) :
  4999. ;;
  5000. esac
  5001. fi
  5002. # Reset variables that may have inherited troublesome values from
  5003. # the environment.
  5004. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  5005. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  5006. # side effect of setting IFS to empty, thus disabling word splitting.)
  5007. # Quoting is to prevent editors from complaining about space-tab.
  5008. as_nl='
  5009. '
  5010. export as_nl
  5011. IFS=" "" $as_nl"
  5012. PS1='$ '
  5013. PS2='> '
  5014. PS4='+ '
  5015. # Ensure predictable behavior from utilities with locale-dependent output.
  5016. LC_ALL=C
  5017. export LC_ALL
  5018. LANGUAGE=C
  5019. export LANGUAGE
  5020. # We cannot yet rely on "unset" to work, but we need these variables
  5021. # to be unset--not just set to an empty or harmless value--now, to
  5022. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  5023. # also avoids known problems related to "unset" and subshell syntax
  5024. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  5025. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  5026. do eval test \${$as_var+y} \
  5027. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  5028. done
  5029. # Ensure that fds 0, 1, and 2 are open.
  5030. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  5031. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  5032. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  5033. # The user is always right.
  5034. if ${PATH_SEPARATOR+false} :; then
  5035. PATH_SEPARATOR=:
  5036. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  5037. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  5038. PATH_SEPARATOR=';'
  5039. }
  5040. fi
  5041. # Find who we are. Look in the path if we contain no directory separator.
  5042. as_myself=
  5043. case $0 in #((
  5044. *[\\/]* ) as_myself=$0 ;;
  5045. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5046. for as_dir in $PATH
  5047. do
  5048. IFS=$as_save_IFS
  5049. case $as_dir in #(((
  5050. '') as_dir=./ ;;
  5051. */) ;;
  5052. *) as_dir=$as_dir/ ;;
  5053. esac
  5054. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  5055. done
  5056. IFS=$as_save_IFS
  5057. ;;
  5058. esac
  5059. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5060. # in which case we are not to be found in the path.
  5061. if test "x$as_myself" = x; then
  5062. as_myself=$0
  5063. fi
  5064. if test ! -f "$as_myself"; then
  5065. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5066. exit 1
  5067. fi
  5068. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  5069. # ----------------------------------------
  5070. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  5071. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  5072. # script with STATUS, using 1 if that was 0.
  5073. as_fn_error ()
  5074. {
  5075. as_status=$1; test $as_status -eq 0 && as_status=1
  5076. if test "$4"; then
  5077. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  5078. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  5079. fi
  5080. printf "%s\n" "$as_me: error: $2" >&2
  5081. as_fn_exit $as_status
  5082. } # as_fn_error
  5083. # as_fn_set_status STATUS
  5084. # -----------------------
  5085. # Set $? to STATUS, without forking.
  5086. as_fn_set_status ()
  5087. {
  5088. return $1
  5089. } # as_fn_set_status
  5090. # as_fn_exit STATUS
  5091. # -----------------
  5092. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  5093. as_fn_exit ()
  5094. {
  5095. set +e
  5096. as_fn_set_status $1
  5097. exit $1
  5098. } # as_fn_exit
  5099. # as_fn_unset VAR
  5100. # ---------------
  5101. # Portably unset VAR.
  5102. as_fn_unset ()
  5103. {
  5104. { eval $1=; unset $1;}
  5105. }
  5106. as_unset=as_fn_unset
  5107. # as_fn_append VAR VALUE
  5108. # ----------------------
  5109. # Append the text in VALUE to the end of the definition contained in VAR. Take
  5110. # advantage of any shell optimizations that allow amortized linear growth over
  5111. # repeated appends, instead of the typical quadratic growth present in naive
  5112. # implementations.
  5113. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  5114. then :
  5115. eval 'as_fn_append ()
  5116. {
  5117. eval $1+=\$2
  5118. }'
  5119. else $as_nop
  5120. as_fn_append ()
  5121. {
  5122. eval $1=\$$1\$2
  5123. }
  5124. fi # as_fn_append
  5125. # as_fn_arith ARG...
  5126. # ------------------
  5127. # Perform arithmetic evaluation on the ARGs, and store the result in the
  5128. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  5129. # must be portable across $(()) and expr.
  5130. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  5131. then :
  5132. eval 'as_fn_arith ()
  5133. {
  5134. as_val=$(( $* ))
  5135. }'
  5136. else $as_nop
  5137. as_fn_arith ()
  5138. {
  5139. as_val=`expr "$@" || test $? -eq 1`
  5140. }
  5141. fi # as_fn_arith
  5142. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5143. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5144. as_expr=expr
  5145. else
  5146. as_expr=false
  5147. fi
  5148. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5149. as_basename=basename
  5150. else
  5151. as_basename=false
  5152. fi
  5153. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5154. as_dirname=dirname
  5155. else
  5156. as_dirname=false
  5157. fi
  5158. as_me=`$as_basename -- "$0" ||
  5159. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5160. X"$0" : 'X\(//\)$' \| \
  5161. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5162. printf "%s\n" X/"$0" |
  5163. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5164. s//\1/
  5165. q
  5166. }
  5167. /^X\/\(\/\/\)$/{
  5168. s//\1/
  5169. q
  5170. }
  5171. /^X\/\(\/\).*/{
  5172. s//\1/
  5173. q
  5174. }
  5175. s/.*/./; q'`
  5176. # Avoid depending upon Character Ranges.
  5177. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5178. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5179. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5180. as_cr_digits='0123456789'
  5181. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5182. # Determine whether it's possible to make 'echo' print without a newline.
  5183. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  5184. # for compatibility with existing Makefiles.
  5185. ECHO_C= ECHO_N= ECHO_T=
  5186. case `echo -n x` in #(((((
  5187. -n*)
  5188. case `echo 'xy\c'` in
  5189. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5190. xy) ECHO_C='\c';;
  5191. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  5192. ECHO_T=' ';;
  5193. esac;;
  5194. *)
  5195. ECHO_N='-n';;
  5196. esac
  5197. # For backward compatibility with old third-party macros, we provide
  5198. # the shell variables $as_echo and $as_echo_n. New code should use
  5199. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  5200. as_echo='printf %s\n'
  5201. as_echo_n='printf %s'
  5202. rm -f conf$$ conf$$.exe conf$$.file
  5203. if test -d conf$$.dir; then
  5204. rm -f conf$$.dir/conf$$.file
  5205. else
  5206. rm -f conf$$.dir
  5207. mkdir conf$$.dir 2>/dev/null
  5208. fi
  5209. if (echo >conf$$.file) 2>/dev/null; then
  5210. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5211. as_ln_s='ln -s'
  5212. # ... but there are two gotchas:
  5213. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5214. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5215. # In both cases, we have to default to `cp -pR'.
  5216. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5217. as_ln_s='cp -pR'
  5218. elif ln conf$$.file conf$$ 2>/dev/null; then
  5219. as_ln_s=ln
  5220. else
  5221. as_ln_s='cp -pR'
  5222. fi
  5223. else
  5224. as_ln_s='cp -pR'
  5225. fi
  5226. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5227. rmdir conf$$.dir 2>/dev/null
  5228. # as_fn_mkdir_p
  5229. # -------------
  5230. # Create "$as_dir" as a directory, including parents if necessary.
  5231. as_fn_mkdir_p ()
  5232. {
  5233. case $as_dir in #(
  5234. -*) as_dir=./$as_dir;;
  5235. esac
  5236. test -d "$as_dir" || eval $as_mkdir_p || {
  5237. as_dirs=
  5238. while :; do
  5239. case $as_dir in #(
  5240. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  5241. *) as_qdir=$as_dir;;
  5242. esac
  5243. as_dirs="'$as_qdir' $as_dirs"
  5244. as_dir=`$as_dirname -- "$as_dir" ||
  5245. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5246. X"$as_dir" : 'X\(//\)[^/]' \| \
  5247. X"$as_dir" : 'X\(//\)$' \| \
  5248. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5249. printf "%s\n" X"$as_dir" |
  5250. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5251. s//\1/
  5252. q
  5253. }
  5254. /^X\(\/\/\)[^/].*/{
  5255. s//\1/
  5256. q
  5257. }
  5258. /^X\(\/\/\)$/{
  5259. s//\1/
  5260. q
  5261. }
  5262. /^X\(\/\).*/{
  5263. s//\1/
  5264. q
  5265. }
  5266. s/.*/./; q'`
  5267. test -d "$as_dir" && break
  5268. done
  5269. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5270. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  5271. } # as_fn_mkdir_p
  5272. if mkdir -p . 2>/dev/null; then
  5273. as_mkdir_p='mkdir -p "$as_dir"'
  5274. else
  5275. test -d ./-p && rmdir ./-p
  5276. as_mkdir_p=false
  5277. fi
  5278. # as_fn_executable_p FILE
  5279. # -----------------------
  5280. # Test if FILE is an executable regular file.
  5281. as_fn_executable_p ()
  5282. {
  5283. test -f "$1" && test -x "$1"
  5284. } # as_fn_executable_p
  5285. as_test_x='test -x'
  5286. as_executable_p=as_fn_executable_p
  5287. # Sed expression to map a string onto a valid CPP name.
  5288. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5289. # Sed expression to map a string onto a valid variable name.
  5290. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5291. exec 6>&1
  5292. ## ----------------------------------- ##
  5293. ## Main body of $CONFIG_STATUS script. ##
  5294. ## ----------------------------------- ##
  5295. _ASEOF
  5296. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  5297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5298. # Save the log message, to keep $0 and so on meaningful, and to
  5299. # report actual input values of CONFIG_FILES etc. instead of their
  5300. # values after options handling.
  5301. ac_log="
  5302. This file was extended by Mini-XML $as_me 3.3.1, which was
  5303. generated by GNU Autoconf 2.71. Invocation command line was
  5304. CONFIG_FILES = $CONFIG_FILES
  5305. CONFIG_HEADERS = $CONFIG_HEADERS
  5306. CONFIG_LINKS = $CONFIG_LINKS
  5307. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5308. $ $0 $@
  5309. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5310. "
  5311. _ACEOF
  5312. case $ac_config_files in *"
  5313. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  5314. esac
  5315. case $ac_config_headers in *"
  5316. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  5317. esac
  5318. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5319. # Files that config.status was made for.
  5320. config_files="$ac_config_files"
  5321. config_headers="$ac_config_headers"
  5322. _ACEOF
  5323. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5324. ac_cs_usage="\
  5325. \`$as_me' instantiates files and other configuration actions
  5326. from templates according to the current configuration. Unless the files
  5327. and actions are specified as TAGs, all are instantiated by default.
  5328. Usage: $0 [OPTION]... [TAG]...
  5329. -h, --help print this help, then exit
  5330. -V, --version print version number and configuration settings, then exit
  5331. --config print configuration, then exit
  5332. -q, --quiet, --silent
  5333. do not print progress messages
  5334. -d, --debug don't remove temporary files
  5335. --recheck update $as_me by reconfiguring in the same conditions
  5336. --file=FILE[:TEMPLATE]
  5337. instantiate the configuration file FILE
  5338. --header=FILE[:TEMPLATE]
  5339. instantiate the configuration header FILE
  5340. Configuration files:
  5341. $config_files
  5342. Configuration headers:
  5343. $config_headers
  5344. Report bugs to <https://github.com/michaelrsweet/mxml/issues>.
  5345. Mini-XML home page: <https://www.msweet.org/mxml>."
  5346. _ACEOF
  5347. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  5348. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  5349. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5350. ac_cs_config='$ac_cs_config_escaped'
  5351. ac_cs_version="\\
  5352. Mini-XML config.status 3.3.1
  5353. configured by $0, generated by GNU Autoconf 2.71,
  5354. with options \\"\$ac_cs_config\\"
  5355. Copyright (C) 2021 Free Software Foundation, Inc.
  5356. This config.status script is free software; the Free Software Foundation
  5357. gives unlimited permission to copy, distribute and modify it."
  5358. ac_pwd='$ac_pwd'
  5359. srcdir='$srcdir'
  5360. INSTALL='$INSTALL'
  5361. test -n "\$AWK" || AWK=awk
  5362. _ACEOF
  5363. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5364. # The default lists apply if the user does not specify any file.
  5365. ac_need_defaults=:
  5366. while test $# != 0
  5367. do
  5368. case $1 in
  5369. --*=?*)
  5370. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5371. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5372. ac_shift=:
  5373. ;;
  5374. --*=)
  5375. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5376. ac_optarg=
  5377. ac_shift=:
  5378. ;;
  5379. *)
  5380. ac_option=$1
  5381. ac_optarg=$2
  5382. ac_shift=shift
  5383. ;;
  5384. esac
  5385. case $ac_option in
  5386. # Handling of the options.
  5387. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5388. ac_cs_recheck=: ;;
  5389. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5390. printf "%s\n" "$ac_cs_version"; exit ;;
  5391. --config | --confi | --conf | --con | --co | --c )
  5392. printf "%s\n" "$ac_cs_config"; exit ;;
  5393. --debug | --debu | --deb | --de | --d | -d )
  5394. debug=: ;;
  5395. --file | --fil | --fi | --f )
  5396. $ac_shift
  5397. case $ac_optarg in
  5398. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5399. '') as_fn_error $? "missing file argument" ;;
  5400. esac
  5401. as_fn_append CONFIG_FILES " '$ac_optarg'"
  5402. ac_need_defaults=false;;
  5403. --header | --heade | --head | --hea )
  5404. $ac_shift
  5405. case $ac_optarg in
  5406. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  5407. esac
  5408. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  5409. ac_need_defaults=false;;
  5410. --he | --h)
  5411. # Conflict between --help and --header
  5412. as_fn_error $? "ambiguous option: \`$1'
  5413. Try \`$0 --help' for more information.";;
  5414. --help | --hel | -h )
  5415. printf "%s\n" "$ac_cs_usage"; exit ;;
  5416. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5417. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5418. ac_cs_silent=: ;;
  5419. # This is an error.
  5420. -*) as_fn_error $? "unrecognized option: \`$1'
  5421. Try \`$0 --help' for more information." ;;
  5422. *) as_fn_append ac_config_targets " $1"
  5423. ac_need_defaults=false ;;
  5424. esac
  5425. shift
  5426. done
  5427. ac_configure_extra_args=
  5428. if $ac_cs_silent; then
  5429. exec 6>/dev/null
  5430. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5431. fi
  5432. _ACEOF
  5433. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5434. if \$ac_cs_recheck; then
  5435. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5436. shift
  5437. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  5438. CONFIG_SHELL='$SHELL'
  5439. export CONFIG_SHELL
  5440. exec "\$@"
  5441. fi
  5442. _ACEOF
  5443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5444. exec 5>>config.log
  5445. {
  5446. echo
  5447. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5448. ## Running $as_me. ##
  5449. _ASBOX
  5450. printf "%s\n" "$ac_log"
  5451. } >&5
  5452. _ACEOF
  5453. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5454. _ACEOF
  5455. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5456. # Handling of arguments.
  5457. for ac_config_target in $ac_config_targets
  5458. do
  5459. case $ac_config_target in
  5460. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  5461. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5462. "mxml.pc") CONFIG_FILES="$CONFIG_FILES mxml.pc" ;;
  5463. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  5464. esac
  5465. done
  5466. # If the user did not use the arguments to specify the items to instantiate,
  5467. # then the envvar interface is used. Set only those that are not.
  5468. # We use the long form for the default assignment because of an extremely
  5469. # bizarre bug on SunOS 4.1.3.
  5470. if $ac_need_defaults; then
  5471. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  5472. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  5473. fi
  5474. # Have a temporary directory for convenience. Make it in the build tree
  5475. # simply because there is no reason against having it here, and in addition,
  5476. # creating and moving files from /tmp can sometimes cause problems.
  5477. # Hook for its removal unless debugging.
  5478. # Note that there is a small window in which the directory will not be cleaned:
  5479. # after its creation but before its name has been assigned to `$tmp'.
  5480. $debug ||
  5481. {
  5482. tmp= ac_tmp=
  5483. trap 'exit_status=$?
  5484. : "${ac_tmp:=$tmp}"
  5485. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  5486. ' 0
  5487. trap 'as_fn_exit 1' 1 2 13 15
  5488. }
  5489. # Create a (secure) tmp directory for tmp files.
  5490. {
  5491. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5492. test -d "$tmp"
  5493. } ||
  5494. {
  5495. tmp=./conf$$-$RANDOM
  5496. (umask 077 && mkdir "$tmp")
  5497. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  5498. ac_tmp=$tmp
  5499. # Set up the scripts for CONFIG_FILES section.
  5500. # No need to generate them if there are no CONFIG_FILES.
  5501. # This happens for instance with `./config.status config.h'.
  5502. if test -n "$CONFIG_FILES"; then
  5503. ac_cr=`echo X | tr X '\015'`
  5504. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  5505. # But we know of no other shell where ac_cr would be empty at this
  5506. # point, so we can use a bashism as a fallback.
  5507. if test "x$ac_cr" = x; then
  5508. eval ac_cr=\$\'\\r\'
  5509. fi
  5510. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  5511. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  5512. ac_cs_awk_cr='\\r'
  5513. else
  5514. ac_cs_awk_cr=$ac_cr
  5515. fi
  5516. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  5517. _ACEOF
  5518. {
  5519. echo "cat >conf$$subs.awk <<_ACEOF" &&
  5520. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  5521. echo "_ACEOF"
  5522. } >conf$$subs.sh ||
  5523. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5524. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  5525. ac_delim='%!_!# '
  5526. for ac_last_try in false false false false false :; do
  5527. . ./conf$$subs.sh ||
  5528. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5529. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  5530. if test $ac_delim_n = $ac_delim_num; then
  5531. break
  5532. elif $ac_last_try; then
  5533. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  5534. else
  5535. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5536. fi
  5537. done
  5538. rm -f conf$$subs.sh
  5539. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5540. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  5541. _ACEOF
  5542. sed -n '
  5543. h
  5544. s/^/S["/; s/!.*/"]=/
  5545. p
  5546. g
  5547. s/^[^!]*!//
  5548. :repl
  5549. t repl
  5550. s/'"$ac_delim"'$//
  5551. t delim
  5552. :nl
  5553. h
  5554. s/\(.\{148\}\)..*/\1/
  5555. t more1
  5556. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  5557. p
  5558. n
  5559. b repl
  5560. :more1
  5561. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5562. p
  5563. g
  5564. s/.\{148\}//
  5565. t nl
  5566. :delim
  5567. h
  5568. s/\(.\{148\}\)..*/\1/
  5569. t more2
  5570. s/["\\]/\\&/g; s/^/"/; s/$/"/
  5571. p
  5572. b
  5573. :more2
  5574. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  5575. p
  5576. g
  5577. s/.\{148\}//
  5578. t delim
  5579. ' <conf$$subs.awk | sed '
  5580. /^[^""]/{
  5581. N
  5582. s/\n//
  5583. }
  5584. ' >>$CONFIG_STATUS || ac_write_fail=1
  5585. rm -f conf$$subs.awk
  5586. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5587. _ACAWK
  5588. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  5589. for (key in S) S_is_set[key] = 1
  5590. FS = ""
  5591. }
  5592. {
  5593. line = $ 0
  5594. nfields = split(line, field, "@")
  5595. substed = 0
  5596. len = length(field[1])
  5597. for (i = 2; i < nfields; i++) {
  5598. key = field[i]
  5599. keylen = length(key)
  5600. if (S_is_set[key]) {
  5601. value = S[key]
  5602. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  5603. len += length(value) + length(field[++i])
  5604. substed = 1
  5605. } else
  5606. len += 1 + keylen
  5607. }
  5608. print line
  5609. }
  5610. _ACAWK
  5611. _ACEOF
  5612. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5613. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  5614. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  5615. else
  5616. cat
  5617. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  5618. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  5619. _ACEOF
  5620. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  5621. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  5622. # trailing colons and then remove the whole line if VPATH becomes empty
  5623. # (actually we leave an empty line to preserve line numbers).
  5624. if test "x$srcdir" = x.; then
  5625. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  5626. h
  5627. s///
  5628. s/^/:/
  5629. s/[ ]*$/:/
  5630. s/:\$(srcdir):/:/g
  5631. s/:\${srcdir}:/:/g
  5632. s/:@srcdir@:/:/g
  5633. s/^:*//
  5634. s/:*$//
  5635. x
  5636. s/\(=[ ]*\).*/\1/
  5637. G
  5638. s/\n//
  5639. s/^[^=]*=[ ]*$//
  5640. }'
  5641. fi
  5642. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5643. fi # test -n "$CONFIG_FILES"
  5644. # Set up the scripts for CONFIG_HEADERS section.
  5645. # No need to generate them if there are no CONFIG_HEADERS.
  5646. # This happens for instance with `./config.status Makefile'.
  5647. if test -n "$CONFIG_HEADERS"; then
  5648. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  5649. BEGIN {
  5650. _ACEOF
  5651. # Transform confdefs.h into an awk script `defines.awk', embedded as
  5652. # here-document in config.status, that substitutes the proper values into
  5653. # config.h.in to produce config.h.
  5654. # Create a delimiter string that does not exist in confdefs.h, to ease
  5655. # handling of long lines.
  5656. ac_delim='%!_!# '
  5657. for ac_last_try in false false :; do
  5658. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  5659. if test -z "$ac_tt"; then
  5660. break
  5661. elif $ac_last_try; then
  5662. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  5663. else
  5664. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5665. fi
  5666. done
  5667. # For the awk script, D is an array of macro values keyed by name,
  5668. # likewise P contains macro parameters if any. Preserve backslash
  5669. # newline sequences.
  5670. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5671. sed -n '
  5672. s/.\{148\}/&'"$ac_delim"'/g
  5673. t rset
  5674. :rset
  5675. s/^[ ]*#[ ]*define[ ][ ]*/ /
  5676. t def
  5677. d
  5678. :def
  5679. s/\\$//
  5680. t bsnl
  5681. s/["\\]/\\&/g
  5682. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5683. D["\1"]=" \3"/p
  5684. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  5685. d
  5686. :bsnl
  5687. s/["\\]/\\&/g
  5688. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  5689. D["\1"]=" \3\\\\\\n"\\/p
  5690. t cont
  5691. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  5692. t cont
  5693. d
  5694. :cont
  5695. n
  5696. s/.\{148\}/&'"$ac_delim"'/g
  5697. t clear
  5698. :clear
  5699. s/\\$//
  5700. t bsnlc
  5701. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  5702. d
  5703. :bsnlc
  5704. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  5705. b cont
  5706. ' <confdefs.h | sed '
  5707. s/'"$ac_delim"'/"\\\
  5708. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  5709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5710. for (key in D) D_is_set[key] = 1
  5711. FS = ""
  5712. }
  5713. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  5714. line = \$ 0
  5715. split(line, arg, " ")
  5716. if (arg[1] == "#") {
  5717. defundef = arg[2]
  5718. mac1 = arg[3]
  5719. } else {
  5720. defundef = substr(arg[1], 2)
  5721. mac1 = arg[2]
  5722. }
  5723. split(mac1, mac2, "(") #)
  5724. macro = mac2[1]
  5725. prefix = substr(line, 1, index(line, defundef) - 1)
  5726. if (D_is_set[macro]) {
  5727. # Preserve the white space surrounding the "#".
  5728. print prefix "define", macro P[macro] D[macro]
  5729. next
  5730. } else {
  5731. # Replace #undef with comments. This is necessary, for example,
  5732. # in the case of _POSIX_SOURCE, which is predefined and required
  5733. # on some systems where configure will not decide to define it.
  5734. if (defundef == "undef") {
  5735. print "/*", prefix defundef, macro, "*/"
  5736. next
  5737. }
  5738. }
  5739. }
  5740. { print }
  5741. _ACAWK
  5742. _ACEOF
  5743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5744. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  5745. fi # test -n "$CONFIG_HEADERS"
  5746. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  5747. shift
  5748. for ac_tag
  5749. do
  5750. case $ac_tag in
  5751. :[FHLC]) ac_mode=$ac_tag; continue;;
  5752. esac
  5753. case $ac_mode$ac_tag in
  5754. :[FHL]*:*);;
  5755. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  5756. :[FH]-) ac_tag=-:-;;
  5757. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5758. esac
  5759. ac_save_IFS=$IFS
  5760. IFS=:
  5761. set x $ac_tag
  5762. IFS=$ac_save_IFS
  5763. shift
  5764. ac_file=$1
  5765. shift
  5766. case $ac_mode in
  5767. :L) ac_source=$1;;
  5768. :[FH])
  5769. ac_file_inputs=
  5770. for ac_f
  5771. do
  5772. case $ac_f in
  5773. -) ac_f="$ac_tmp/stdin";;
  5774. *) # Look for the file first in the build tree, then in the source tree
  5775. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5776. # because $ac_f cannot contain `:'.
  5777. test -f "$ac_f" ||
  5778. case $ac_f in
  5779. [\\/$]*) false;;
  5780. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5781. esac ||
  5782. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  5783. esac
  5784. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  5785. as_fn_append ac_file_inputs " '$ac_f'"
  5786. done
  5787. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5788. # use $as_me), people would be surprised to read:
  5789. # /* config.h. Generated by config.status. */
  5790. configure_input='Generated from '`
  5791. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  5792. `' by configure.'
  5793. if test x"$ac_file" != x-; then
  5794. configure_input="$ac_file. $configure_input"
  5795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  5796. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  5797. fi
  5798. # Neutralize special characters interpreted by sed in replacement strings.
  5799. case $configure_input in #(
  5800. *\&* | *\|* | *\\* )
  5801. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  5802. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  5803. *) ac_sed_conf_input=$configure_input;;
  5804. esac
  5805. case $ac_tag in
  5806. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  5807. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  5808. esac
  5809. ;;
  5810. esac
  5811. ac_dir=`$as_dirname -- "$ac_file" ||
  5812. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5813. X"$ac_file" : 'X\(//\)[^/]' \| \
  5814. X"$ac_file" : 'X\(//\)$' \| \
  5815. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5816. printf "%s\n" X"$ac_file" |
  5817. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5818. s//\1/
  5819. q
  5820. }
  5821. /^X\(\/\/\)[^/].*/{
  5822. s//\1/
  5823. q
  5824. }
  5825. /^X\(\/\/\)$/{
  5826. s//\1/
  5827. q
  5828. }
  5829. /^X\(\/\).*/{
  5830. s//\1/
  5831. q
  5832. }
  5833. s/.*/./; q'`
  5834. as_dir="$ac_dir"; as_fn_mkdir_p
  5835. ac_builddir=.
  5836. case "$ac_dir" in
  5837. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5838. *)
  5839. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  5840. # A ".." for each directory in $ac_dir_suffix.
  5841. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  5842. case $ac_top_builddir_sub in
  5843. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5844. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5845. esac ;;
  5846. esac
  5847. ac_abs_top_builddir=$ac_pwd
  5848. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5849. # for backward compatibility:
  5850. ac_top_builddir=$ac_top_build_prefix
  5851. case $srcdir in
  5852. .) # We are building in place.
  5853. ac_srcdir=.
  5854. ac_top_srcdir=$ac_top_builddir_sub
  5855. ac_abs_top_srcdir=$ac_pwd ;;
  5856. [\\/]* | ?:[\\/]* ) # Absolute name.
  5857. ac_srcdir=$srcdir$ac_dir_suffix;
  5858. ac_top_srcdir=$srcdir
  5859. ac_abs_top_srcdir=$srcdir ;;
  5860. *) # Relative name.
  5861. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5862. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5863. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5864. esac
  5865. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5866. case $ac_mode in
  5867. :F)
  5868. #
  5869. # CONFIG_FILE
  5870. #
  5871. case $INSTALL in
  5872. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5873. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5874. esac
  5875. _ACEOF
  5876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5877. # If the template does not know about datarootdir, expand it.
  5878. # FIXME: This hack should be removed a few years after 2.60.
  5879. ac_datarootdir_hack=; ac_datarootdir_seen=
  5880. ac_sed_dataroot='
  5881. /datarootdir/ {
  5882. p
  5883. q
  5884. }
  5885. /@datadir@/p
  5886. /@docdir@/p
  5887. /@infodir@/p
  5888. /@localedir@/p
  5889. /@mandir@/p'
  5890. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  5891. *datarootdir*) ac_datarootdir_seen=yes;;
  5892. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5894. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5895. _ACEOF
  5896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5897. ac_datarootdir_hack='
  5898. s&@datadir@&$datadir&g
  5899. s&@docdir@&$docdir&g
  5900. s&@infodir@&$infodir&g
  5901. s&@localedir@&$localedir&g
  5902. s&@mandir@&$mandir&g
  5903. s&\\\${datarootdir}&$datarootdir&g' ;;
  5904. esac
  5905. _ACEOF
  5906. # Neutralize VPATH when `$srcdir' = `.'.
  5907. # Shell code in configure.ac might set extrasub.
  5908. # FIXME: do we really want to maintain this feature?
  5909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  5910. ac_sed_extra="$ac_vpsub
  5911. $extrasub
  5912. _ACEOF
  5913. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  5914. :t
  5915. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5916. s|@configure_input@|$ac_sed_conf_input|;t t
  5917. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5918. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  5919. s&@srcdir@&$ac_srcdir&;t t
  5920. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5921. s&@top_srcdir@&$ac_top_srcdir&;t t
  5922. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5923. s&@builddir@&$ac_builddir&;t t
  5924. s&@abs_builddir@&$ac_abs_builddir&;t t
  5925. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5926. s&@INSTALL@&$ac_INSTALL&;t t
  5927. $ac_datarootdir_hack
  5928. "
  5929. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  5930. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5931. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5932. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  5933. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  5934. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  5935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5936. which seems to be undefined. Please make sure it is defined" >&5
  5937. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5938. which seems to be undefined. Please make sure it is defined" >&2;}
  5939. rm -f "$ac_tmp/stdin"
  5940. case $ac_file in
  5941. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  5942. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  5943. esac \
  5944. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5945. ;;
  5946. :H)
  5947. #
  5948. # CONFIG_HEADER
  5949. #
  5950. if test x"$ac_file" != x-; then
  5951. {
  5952. printf "%s\n" "/* $configure_input */" >&1 \
  5953. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  5954. } >"$ac_tmp/config.h" \
  5955. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5956. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  5957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  5958. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  5959. else
  5960. rm -f "$ac_file"
  5961. mv "$ac_tmp/config.h" "$ac_file" \
  5962. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  5963. fi
  5964. else
  5965. printf "%s\n" "/* $configure_input */" >&1 \
  5966. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  5967. || as_fn_error $? "could not create -" "$LINENO" 5
  5968. fi
  5969. ;;
  5970. esac
  5971. done # for ac_tag
  5972. as_fn_exit 0
  5973. _ACEOF
  5974. ac_clean_files=$ac_clean_files_save
  5975. test $ac_write_fail = 0 ||
  5976. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  5977. # configure is writing to config.log, and then calls config.status.
  5978. # config.status does its own redirection, appending to config.log.
  5979. # Unfortunately, on DOS this fails, as config.log is still kept open
  5980. # by configure, so config.status won't be able to write to it; its
  5981. # output is simply discarded. So we exec the FD to /dev/null,
  5982. # effectively closing config.log, so it can be properly (re)opened and
  5983. # appended to by config.status. When coming back to configure, we
  5984. # need to make the FD available again.
  5985. if test "$no_create" != yes; then
  5986. ac_cs_success=:
  5987. ac_config_status_args=
  5988. test "$silent" = yes &&
  5989. ac_config_status_args="$ac_config_status_args --quiet"
  5990. exec 5>/dev/null
  5991. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5992. exec 5>>config.log
  5993. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5994. # would make configure fail if this is the last instruction.
  5995. $ac_cs_success || as_fn_exit 1
  5996. fi
  5997. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  5998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  5999. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  6000. fi