1
0

configure 206 KB

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