configure 633 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for emacs 24.2.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # 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. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. test -n "$DJDIR" || exec 7<&0 </dev/null
  486. exec 6>&1
  487. # Name of the host.
  488. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  489. # so uname gets run too.
  490. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  491. #
  492. # Initializations.
  493. #
  494. ac_default_prefix=/usr/local
  495. ac_clean_files=
  496. ac_config_libobj_dir=.
  497. LIBOBJS=
  498. cross_compiling=no
  499. subdirs=
  500. MFLAGS=
  501. MAKEFLAGS=
  502. # Identity of this package.
  503. PACKAGE_NAME='emacs'
  504. PACKAGE_TARNAME='emacs'
  505. PACKAGE_VERSION='24.2'
  506. PACKAGE_STRING='emacs 24.2'
  507. PACKAGE_BUGREPORT=''
  508. PACKAGE_URL=''
  509. ac_unique_file="src/lisp.h"
  510. # Factoring default headers for most tests.
  511. ac_includes_default="\
  512. #include <stdio.h>
  513. #ifdef HAVE_SYS_TYPES_H
  514. # include <sys/types.h>
  515. #endif
  516. #ifdef HAVE_SYS_STAT_H
  517. # include <sys/stat.h>
  518. #endif
  519. #ifdef STDC_HEADERS
  520. # include <stdlib.h>
  521. # include <stddef.h>
  522. #else
  523. # ifdef HAVE_STDLIB_H
  524. # include <stdlib.h>
  525. # endif
  526. #endif
  527. #ifdef HAVE_STRING_H
  528. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  529. # include <memory.h>
  530. # endif
  531. # include <string.h>
  532. #endif
  533. #ifdef HAVE_STRINGS_H
  534. # include <strings.h>
  535. #endif
  536. #ifdef HAVE_INTTYPES_H
  537. # include <inttypes.h>
  538. #endif
  539. #ifdef HAVE_STDINT_H
  540. # include <stdint.h>
  541. #endif
  542. #ifdef HAVE_UNISTD_H
  543. # include <unistd.h>
  544. #endif"
  545. ac_header_list=
  546. ac_func_list=
  547. gl_getopt_required=POSIX
  548. gl_getopt_required=POSIX
  549. ac_subst_vars='gltests_LTLIBOBJS
  550. gltests_LIBOBJS
  551. gl_LTLIBOBJS
  552. gl_LIBOBJS
  553. am__EXEEXT_FALSE
  554. am__EXEEXT_TRUE
  555. LTLIBOBJS
  556. LIBOBJS
  557. SUBDIR_MAKEFILES_IN
  558. LIB_GCC
  559. LD_FIRSTFLAG
  560. LD_SWITCH_SYSTEM_TEMACS
  561. LIBGNU_LTLIBDEPS
  562. LIBGNU_LIBDEPS
  563. gltests_WITNESS
  564. gl_GNULIB_ENABLED_verify_FALSE
  565. gl_GNULIB_ENABLED_verify_TRUE
  566. gl_GNULIB_ENABLED_strtoull_FALSE
  567. gl_GNULIB_ENABLED_strtoull_TRUE
  568. gl_GNULIB_ENABLED_strtoll_FALSE
  569. gl_GNULIB_ENABLED_strtoll_TRUE
  570. gl_GNULIB_ENABLED_stat_FALSE
  571. gl_GNULIB_ENABLED_stat_TRUE
  572. gl_GNULIB_ENABLED_sigprocmask_FALSE
  573. gl_GNULIB_ENABLED_sigprocmask_TRUE
  574. gl_GNULIB_ENABLED_pathmax_FALSE
  575. gl_GNULIB_ENABLED_pathmax_TRUE
  576. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
  577. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
  578. gl_GNULIB_ENABLED_dosname_FALSE
  579. gl_GNULIB_ENABLED_dosname_TRUE
  580. LTLIBINTL
  581. LIBINTL
  582. HAVE_UNISTD_H
  583. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
  584. NEXT_UNISTD_H
  585. PTHREAD_H_DEFINES_STRUCT_TIMESPEC
  586. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
  587. TIME_H_DEFINES_STRUCT_TIMESPEC
  588. NEXT_AS_FIRST_DIRECTIVE_TIME_H
  589. NEXT_TIME_H
  590. NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
  591. NEXT_SYS_STAT_H
  592. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
  593. NEXT_STDLIB_H
  594. NEXT_AS_FIRST_DIRECTIVE_STDIO_H
  595. NEXT_STDIO_H
  596. REPLACE_VSPRINTF
  597. REPLACE_VSNPRINTF
  598. REPLACE_VPRINTF
  599. REPLACE_VFPRINTF
  600. REPLACE_VDPRINTF
  601. REPLACE_VASPRINTF
  602. REPLACE_TMPFILE
  603. REPLACE_STDIO_WRITE_FUNCS
  604. REPLACE_STDIO_READ_FUNCS
  605. REPLACE_SPRINTF
  606. REPLACE_SNPRINTF
  607. REPLACE_RENAMEAT
  608. REPLACE_RENAME
  609. REPLACE_REMOVE
  610. REPLACE_PRINTF
  611. REPLACE_POPEN
  612. REPLACE_PERROR
  613. REPLACE_OBSTACK_PRINTF
  614. REPLACE_GETLINE
  615. REPLACE_GETDELIM
  616. REPLACE_FTELLO
  617. REPLACE_FTELL
  618. REPLACE_FSEEKO
  619. REPLACE_FSEEK
  620. REPLACE_FREOPEN
  621. REPLACE_FPURGE
  622. REPLACE_FPRINTF
  623. REPLACE_FOPEN
  624. REPLACE_FFLUSH
  625. REPLACE_FDOPEN
  626. REPLACE_FCLOSE
  627. REPLACE_DPRINTF
  628. HAVE_VDPRINTF
  629. HAVE_VASPRINTF
  630. HAVE_RENAMEAT
  631. HAVE_POPEN
  632. HAVE_PCLOSE
  633. HAVE_FTELLO
  634. HAVE_FSEEKO
  635. HAVE_DPRINTF
  636. HAVE_DECL_VSNPRINTF
  637. HAVE_DECL_SNPRINTF
  638. HAVE_DECL_OBSTACK_PRINTF
  639. HAVE_DECL_GETLINE
  640. HAVE_DECL_GETDELIM
  641. HAVE_DECL_FTELLO
  642. HAVE_DECL_FSEEKO
  643. HAVE_DECL_FPURGE
  644. GNULIB_VSPRINTF_POSIX
  645. GNULIB_VSNPRINTF
  646. GNULIB_VPRINTF_POSIX
  647. GNULIB_VPRINTF
  648. GNULIB_VFPRINTF_POSIX
  649. GNULIB_VFPRINTF
  650. GNULIB_VDPRINTF
  651. GNULIB_VSCANF
  652. GNULIB_VFSCANF
  653. GNULIB_VASPRINTF
  654. GNULIB_TMPFILE
  655. GNULIB_STDIO_H_SIGPIPE
  656. GNULIB_STDIO_H_NONBLOCKING
  657. GNULIB_SPRINTF_POSIX
  658. GNULIB_SNPRINTF
  659. GNULIB_SCANF
  660. GNULIB_RENAMEAT
  661. GNULIB_RENAME
  662. GNULIB_REMOVE
  663. GNULIB_PUTS
  664. GNULIB_PUTCHAR
  665. GNULIB_PUTC
  666. GNULIB_PRINTF_POSIX
  667. GNULIB_PRINTF
  668. GNULIB_POPEN
  669. GNULIB_PERROR
  670. GNULIB_PCLOSE
  671. GNULIB_OBSTACK_PRINTF_POSIX
  672. GNULIB_OBSTACK_PRINTF
  673. GNULIB_GETLINE
  674. GNULIB_GETDELIM
  675. GNULIB_GETCHAR
  676. GNULIB_GETC
  677. GNULIB_FWRITE
  678. GNULIB_FTELLO
  679. GNULIB_FTELL
  680. GNULIB_FSEEKO
  681. GNULIB_FSEEK
  682. GNULIB_FSCANF
  683. GNULIB_FREOPEN
  684. GNULIB_FREAD
  685. GNULIB_FPUTS
  686. GNULIB_FPUTC
  687. GNULIB_FPURGE
  688. GNULIB_FPRINTF_POSIX
  689. GNULIB_FPRINTF
  690. GNULIB_FOPEN
  691. GNULIB_FGETS
  692. GNULIB_FGETC
  693. GNULIB_FFLUSH
  694. GNULIB_FDOPEN
  695. GNULIB_FCLOSE
  696. GNULIB_DPRINTF
  697. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
  698. NEXT_STDDEF_H
  699. GL_GENERATE_STDDEF_H_FALSE
  700. GL_GENERATE_STDDEF_H_TRUE
  701. STDDEF_H
  702. HAVE_WCHAR_T
  703. REPLACE_NULL
  704. HAVE__BOOL
  705. GL_GENERATE_STDBOOL_H_FALSE
  706. GL_GENERATE_STDBOOL_H_TRUE
  707. STDBOOL_H
  708. GL_GENERATE_STDARG_H_FALSE
  709. GL_GENERATE_STDARG_H_TRUE
  710. STDARG_H
  711. NEXT_AS_FIRST_DIRECTIVE_STDARG_H
  712. NEXT_STDARG_H
  713. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
  714. NEXT_SIGNAL_H
  715. REPLACE_RAISE
  716. REPLACE_PTHREAD_SIGMASK
  717. HAVE_SIGHANDLER_T
  718. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
  719. HAVE_STRUCT_SIGACTION_SA_SIGACTION
  720. HAVE_SIGACTION
  721. HAVE_SIGINFO_T
  722. HAVE_SIGSET_T
  723. HAVE_RAISE
  724. HAVE_PTHREAD_SIGMASK
  725. HAVE_POSIX_SIGNALBLOCKING
  726. GNULIB_SIGACTION
  727. GNULIB_SIGPROCMASK
  728. GNULIB_SIGNAL_H_SIGPIPE
  729. GNULIB_RAISE
  730. GNULIB_PTHREAD_SIGMASK
  731. LIB_PTHREAD_SIGMASK
  732. REPLACE_TIMEGM
  733. REPLACE_NANOSLEEP
  734. REPLACE_MKTIME
  735. REPLACE_LOCALTIME_R
  736. HAVE_TIMEGM
  737. HAVE_STRPTIME
  738. HAVE_NANOSLEEP
  739. HAVE_DECL_LOCALTIME_R
  740. GNULIB_TIME_R
  741. GNULIB_TIMEGM
  742. GNULIB_STRPTIME
  743. GNULIB_NANOSLEEP
  744. GNULIB_MKTIME
  745. REPLACE_UTIMENSAT
  746. REPLACE_STAT
  747. REPLACE_MKNOD
  748. REPLACE_MKFIFO
  749. REPLACE_MKDIR
  750. REPLACE_LSTAT
  751. REPLACE_FUTIMENS
  752. REPLACE_FSTATAT
  753. REPLACE_FSTAT
  754. HAVE_UTIMENSAT
  755. HAVE_MKNODAT
  756. HAVE_MKNOD
  757. HAVE_MKFIFOAT
  758. HAVE_MKFIFO
  759. HAVE_MKDIRAT
  760. HAVE_LSTAT
  761. HAVE_LCHMOD
  762. HAVE_FUTIMENS
  763. HAVE_FSTATAT
  764. HAVE_FCHMODAT
  765. GNULIB_UTIMENSAT
  766. GNULIB_STAT
  767. GNULIB_MKNODAT
  768. GNULIB_MKNOD
  769. GNULIB_MKFIFOAT
  770. GNULIB_MKFIFO
  771. GNULIB_MKDIRAT
  772. GNULIB_LSTAT
  773. GNULIB_LCHMOD
  774. GNULIB_FUTIMENS
  775. GNULIB_FSTATAT
  776. GNULIB_FSTAT
  777. GNULIB_FCHMODAT
  778. NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
  779. NEXT_INTTYPES_H
  780. UINT64_MAX_EQ_ULONG_MAX
  781. UINT32_MAX_LT_UINTMAX_MAX
  782. PRIPTR_PREFIX
  783. PRI_MACROS_BROKEN
  784. INT64_MAX_EQ_LONG_MAX
  785. INT32_MAX_LT_INTMAX_MAX
  786. HAVE_DECL_STRTOUMAX
  787. HAVE_DECL_STRTOIMAX
  788. HAVE_DECL_IMAXDIV
  789. HAVE_DECL_IMAXABS
  790. GNULIB_STRTOUMAX
  791. GNULIB_STRTOIMAX
  792. GNULIB_IMAXDIV
  793. GNULIB_IMAXABS
  794. GL_GENERATE_STDINT_H_FALSE
  795. GL_GENERATE_STDINT_H_TRUE
  796. STDINT_H
  797. WINT_T_SUFFIX
  798. WCHAR_T_SUFFIX
  799. SIG_ATOMIC_T_SUFFIX
  800. SIZE_T_SUFFIX
  801. PTRDIFF_T_SUFFIX
  802. HAVE_SIGNED_WINT_T
  803. HAVE_SIGNED_WCHAR_T
  804. HAVE_SIGNED_SIG_ATOMIC_T
  805. BITSIZEOF_WINT_T
  806. BITSIZEOF_WCHAR_T
  807. BITSIZEOF_SIG_ATOMIC_T
  808. BITSIZEOF_SIZE_T
  809. BITSIZEOF_PTRDIFF_T
  810. APPLE_UNIVERSAL_BUILD
  811. HAVE_SYS_BITYPES_H
  812. HAVE_SYS_INTTYPES_H
  813. HAVE_STDINT_H
  814. NEXT_AS_FIRST_DIRECTIVE_STDINT_H
  815. NEXT_STDINT_H
  816. HAVE_SYS_TYPES_H
  817. HAVE_INTTYPES_H
  818. HAVE_WCHAR_H
  819. HAVE_UNSIGNED_LONG_LONG_INT
  820. HAVE_LONG_LONG_INT
  821. GETOPT_H
  822. HAVE_GETOPT_H
  823. NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
  824. NEXT_GETOPT_H
  825. PRAGMA_COLUMNS
  826. PRAGMA_SYSTEM_HEADER
  827. INCLUDE_NEXT_AS_FIRST_DIRECTIVE
  828. INCLUDE_NEXT
  829. GETLOADAVG_LIBS
  830. REPLACE_WCTOMB
  831. REPLACE_UNSETENV
  832. REPLACE_STRTOD
  833. REPLACE_SETENV
  834. REPLACE_REALPATH
  835. REPLACE_REALLOC
  836. REPLACE_PUTENV
  837. REPLACE_MKSTEMP
  838. REPLACE_MBTOWC
  839. REPLACE_MALLOC
  840. REPLACE_CANONICALIZE_FILE_NAME
  841. REPLACE_CALLOC
  842. HAVE_DECL_UNSETENV
  843. HAVE_UNLOCKPT
  844. HAVE_SYS_LOADAVG_H
  845. HAVE_STRUCT_RANDOM_DATA
  846. HAVE_STRTOULL
  847. HAVE_STRTOLL
  848. HAVE_STRTOD
  849. HAVE_DECL_SETENV
  850. HAVE_SETENV
  851. HAVE_RPMATCH
  852. HAVE_REALPATH
  853. HAVE_RANDOM_R
  854. HAVE_RANDOM_H
  855. HAVE_PTSNAME
  856. HAVE_MKSTEMPS
  857. HAVE_MKSTEMP
  858. HAVE_MKOSTEMPS
  859. HAVE_MKOSTEMP
  860. HAVE_MKDTEMP
  861. HAVE_GRANTPT
  862. HAVE_GETSUBOPT
  863. HAVE_DECL_GETLOADAVG
  864. HAVE_CANONICALIZE_FILE_NAME
  865. HAVE_ATOLL
  866. HAVE__EXIT
  867. GNULIB_WCTOMB
  868. GNULIB_UNSETENV
  869. GNULIB_UNLOCKPT
  870. GNULIB_SYSTEM_POSIX
  871. GNULIB_STRTOULL
  872. GNULIB_STRTOLL
  873. GNULIB_STRTOD
  874. GNULIB_SETENV
  875. GNULIB_RPMATCH
  876. GNULIB_REALPATH
  877. GNULIB_REALLOC_POSIX
  878. GNULIB_RANDOM_R
  879. GNULIB_PUTENV
  880. GNULIB_PTSNAME
  881. GNULIB_MKSTEMPS
  882. GNULIB_MKSTEMP
  883. GNULIB_MKOSTEMPS
  884. GNULIB_MKOSTEMP
  885. GNULIB_MKDTEMP
  886. GNULIB_MBTOWC
  887. GNULIB_MALLOC_POSIX
  888. GNULIB_GRANTPT
  889. GNULIB_GETSUBOPT
  890. GNULIB_GETLOADAVG
  891. GNULIB_CANONICALIZE_FILE_NAME
  892. GNULIB_CALLOC_POSIX
  893. GNULIB_ATOLL
  894. GNULIB__EXIT
  895. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
  896. UNISTD_H_HAVE_WINSOCK2_H
  897. REPLACE_WRITE
  898. REPLACE_USLEEP
  899. REPLACE_UNLINKAT
  900. REPLACE_UNLINK
  901. REPLACE_TTYNAME_R
  902. REPLACE_SYMLINK
  903. REPLACE_SLEEP
  904. REPLACE_RMDIR
  905. REPLACE_READLINK
  906. REPLACE_READ
  907. REPLACE_PWRITE
  908. REPLACE_PREAD
  909. REPLACE_LSEEK
  910. REPLACE_LINKAT
  911. REPLACE_LINK
  912. REPLACE_LCHOWN
  913. REPLACE_GETPAGESIZE
  914. REPLACE_GETGROUPS
  915. REPLACE_GETLOGIN_R
  916. REPLACE_GETDOMAINNAME
  917. REPLACE_GETCWD
  918. REPLACE_FCHOWNAT
  919. REPLACE_DUP2
  920. REPLACE_DUP
  921. REPLACE_CLOSE
  922. REPLACE_CHOWN
  923. HAVE_SYS_PARAM_H
  924. HAVE_OS_H
  925. HAVE_DECL_TTYNAME_R
  926. HAVE_DECL_GETUSERSHELL
  927. HAVE_DECL_GETPAGESIZE
  928. HAVE_DECL_GETLOGIN_R
  929. HAVE_DECL_GETDOMAINNAME
  930. HAVE_DECL_FDATASYNC
  931. HAVE_DECL_FCHDIR
  932. HAVE_DECL_ENVIRON
  933. HAVE_USLEEP
  934. HAVE_UNLINKAT
  935. HAVE_SYMLINKAT
  936. HAVE_SYMLINK
  937. HAVE_SLEEP
  938. HAVE_READLINKAT
  939. HAVE_READLINK
  940. HAVE_PWRITE
  941. HAVE_PREAD
  942. HAVE_PIPE2
  943. HAVE_PIPE
  944. HAVE_LINKAT
  945. HAVE_LINK
  946. HAVE_LCHOWN
  947. HAVE_GROUP_MEMBER
  948. HAVE_GETPAGESIZE
  949. HAVE_GETLOGIN
  950. HAVE_GETHOSTNAME
  951. HAVE_GETGROUPS
  952. HAVE_GETDTABLESIZE
  953. HAVE_FTRUNCATE
  954. HAVE_FSYNC
  955. HAVE_FDATASYNC
  956. HAVE_FCHOWNAT
  957. HAVE_FCHDIR
  958. HAVE_FACCESSAT
  959. HAVE_EUIDACCESS
  960. HAVE_DUP3
  961. HAVE_DUP2
  962. HAVE_CHOWN
  963. GNULIB_WRITE
  964. GNULIB_USLEEP
  965. GNULIB_UNLINKAT
  966. GNULIB_UNLINK
  967. GNULIB_UNISTD_H_SIGPIPE
  968. GNULIB_UNISTD_H_NONBLOCKING
  969. GNULIB_UNISTD_H_GETOPT
  970. GNULIB_TTYNAME_R
  971. GNULIB_SYMLINKAT
  972. GNULIB_SYMLINK
  973. GNULIB_SLEEP
  974. GNULIB_RMDIR
  975. GNULIB_READLINKAT
  976. GNULIB_READLINK
  977. GNULIB_READ
  978. GNULIB_PWRITE
  979. GNULIB_PREAD
  980. GNULIB_PIPE2
  981. GNULIB_PIPE
  982. GNULIB_LSEEK
  983. GNULIB_LINKAT
  984. GNULIB_LINK
  985. GNULIB_LCHOWN
  986. GNULIB_GROUP_MEMBER
  987. GNULIB_GETUSERSHELL
  988. GNULIB_GETPAGESIZE
  989. GNULIB_GETLOGIN_R
  990. GNULIB_GETLOGIN
  991. GNULIB_GETHOSTNAME
  992. GNULIB_GETGROUPS
  993. GNULIB_GETDTABLESIZE
  994. GNULIB_GETDOMAINNAME
  995. GNULIB_GETCWD
  996. GNULIB_FTRUNCATE
  997. GNULIB_FSYNC
  998. GNULIB_FDATASYNC
  999. GNULIB_FCHOWNAT
  1000. GNULIB_FCHDIR
  1001. GNULIB_FACCESSAT
  1002. GNULIB_EUIDACCESS
  1003. GNULIB_ENVIRON
  1004. GNULIB_DUP3
  1005. GNULIB_DUP2
  1006. GNULIB_DUP
  1007. GNULIB_CLOSE
  1008. GNULIB_CHOWN
  1009. GNULIB_CHDIR
  1010. GL_GENERATE_ALLOCA_H_FALSE
  1011. GL_GENERATE_ALLOCA_H_TRUE
  1012. ALLOCA_H
  1013. ALLOCA
  1014. GL_COND_LIBTOOL_FALSE
  1015. GL_COND_LIBTOOL_TRUE
  1016. POST_ALLOC_OBJ
  1017. PRE_ALLOC_OBJ
  1018. CYGWIN_OBJ
  1019. RALLOC_OBJ
  1020. OLDXMENU_DEPS
  1021. LIBX_OTHER
  1022. LIBXMENU
  1023. OLDXMENU
  1024. OLDXMENU_TARGET
  1025. LIBXT_OTHER
  1026. TOOLKIT_LIBW
  1027. WIDGET_OBJ
  1028. XOBJ
  1029. XMENU_OBJ
  1030. FONT_OBJ
  1031. OTHER_FILES
  1032. GNU_OBJC_CFLAGS
  1033. ns_appsrc
  1034. ns_appresdir
  1035. ns_appbindir
  1036. ns_appdir
  1037. S_FILE
  1038. M_FILE
  1039. X_TOOLKIT_TYPE
  1040. C_SWITCH_X_SYSTEM
  1041. C_SWITCH_X_SITE
  1042. LD_SWITCH_X_SITE
  1043. gameuser
  1044. gamedir
  1045. bitmapdir
  1046. archlibdir
  1047. etcdir
  1048. x_default_search_path
  1049. lisppath
  1050. locallisppath
  1051. lispdir
  1052. srcdir
  1053. canonical
  1054. configuration
  1055. version
  1056. KRB4LIB
  1057. DESLIB
  1058. KRB5LIB
  1059. CRYPTOLIB
  1060. COM_ERRLIB
  1061. LIBRESOLV
  1062. LIBHESIOD
  1063. TERMCAP_OBJ
  1064. LIBS_TERMCAP
  1065. BLESSMAIL_TARGET
  1066. LIBS_MAIL
  1067. liblockfile
  1068. LIBXML2_LIBS
  1069. LIBXML2_CFLAGS
  1070. LIBXSM
  1071. LIBGPM
  1072. LIBGIF
  1073. LIBTIFF
  1074. LIBPNG
  1075. LIBJPEG
  1076. LIBXPM
  1077. M17N_FLT_LIBS
  1078. M17N_FLT_CFLAGS
  1079. LIBOTF_LIBS
  1080. LIBOTF_CFLAGS
  1081. FREETYPE_LIBS
  1082. FREETYPE_CFLAGS
  1083. XFT_LIBS
  1084. XFT_CFLAGS
  1085. FONTCONFIG_LIBS
  1086. FONTCONFIG_CFLAGS
  1087. LIBXMU
  1088. LIBXTR6
  1089. LIBGNUTLS_LIBS
  1090. LIBGNUTLS_CFLAGS
  1091. LIBSELINUX_LIBS
  1092. SETTINGS_LIBS
  1093. SETTINGS_CFLAGS
  1094. GCONF_LIBS
  1095. GCONF_CFLAGS
  1096. GSETTINGS_LIBS
  1097. GSETTINGS_CFLAGS
  1098. DBUS_OBJ
  1099. DBUS_LIBS
  1100. DBUS_CFLAGS
  1101. GTK_OBJ
  1102. GTK_LIBS
  1103. GTK_CFLAGS
  1104. IMAGEMAGICK_LIBS
  1105. IMAGEMAGICK_CFLAGS
  1106. RSVG_LIBS
  1107. RSVG_CFLAGS
  1108. LIB_PTHREAD
  1109. VMLIMIT_OBJ
  1110. GMALLOC_OBJ
  1111. HAVE_XSERVER
  1112. LIB_STANDARD
  1113. NS_OBJC_OBJ
  1114. NS_OBJ
  1115. TEMACS_LDFLAGS2
  1116. LD_SWITCH_X_SITE_AUX_RPATH
  1117. LD_SWITCH_X_SITE_AUX
  1118. XMKMF
  1119. DEPFLAGS
  1120. MKDEPDIR
  1121. CFLAGS_SOUND
  1122. ALSA_LIBS
  1123. ALSA_CFLAGS
  1124. PKG_CONFIG
  1125. LIBSOUND
  1126. CRT_DIR
  1127. START_FILES
  1128. LIB_MATH
  1129. LIBS_SYSTEM
  1130. C_SWITCH_SYSTEM
  1131. UNEXEC_OBJ
  1132. C_SWITCH_MACHINE
  1133. LD_SWITCH_SYSTEM
  1134. CANNOT_DUMP
  1135. HAVE_MAKEINFO
  1136. GZIP_PROG
  1137. INSTALL_INFO
  1138. C_WARNINGS_SWITCH
  1139. RANLIB
  1140. ARFLAGS
  1141. AR
  1142. EGREP
  1143. GREP
  1144. CPP
  1145. am__fastdepCC_FALSE
  1146. am__fastdepCC_TRUE
  1147. CCDEPMODE
  1148. AMDEPBACKSLASH
  1149. AMDEP_FALSE
  1150. AMDEP_TRUE
  1151. am__quote
  1152. am__include
  1153. DEPDIR
  1154. OBJEXT
  1155. EXEEXT
  1156. ac_ct_CC
  1157. CPPFLAGS
  1158. LDFLAGS
  1159. CFLAGS
  1160. CC
  1161. host_os
  1162. host_vendor
  1163. host_cpu
  1164. host
  1165. build_os
  1166. build_vendor
  1167. build_cpu
  1168. build
  1169. PROFILING_CFLAGS
  1170. MAINT
  1171. GZIP_INFO
  1172. cache_file
  1173. am__untar
  1174. am__tar
  1175. AMTAR
  1176. am__leading_dot
  1177. SET_MAKE
  1178. AWK
  1179. mkdir_p
  1180. MKDIR_P
  1181. INSTALL_STRIP_PROGRAM
  1182. STRIP
  1183. install_sh
  1184. MAKEINFO
  1185. AUTOHEADER
  1186. AUTOMAKE
  1187. AUTOCONF
  1188. ACLOCAL
  1189. VERSION
  1190. PACKAGE
  1191. CYGPATH_W
  1192. am__isrc
  1193. INSTALL_DATA
  1194. INSTALL_SCRIPT
  1195. INSTALL_PROGRAM
  1196. target_alias
  1197. host_alias
  1198. build_alias
  1199. LIBS
  1200. ECHO_T
  1201. ECHO_N
  1202. ECHO_C
  1203. DEFS
  1204. mandir
  1205. localedir
  1206. libdir
  1207. psdir
  1208. pdfdir
  1209. dvidir
  1210. htmldir
  1211. infodir
  1212. docdir
  1213. oldincludedir
  1214. includedir
  1215. localstatedir
  1216. sharedstatedir
  1217. sysconfdir
  1218. datadir
  1219. datarootdir
  1220. libexecdir
  1221. sbindir
  1222. bindir
  1223. program_transform_name
  1224. prefix
  1225. exec_prefix
  1226. PACKAGE_URL
  1227. PACKAGE_BUGREPORT
  1228. PACKAGE_STRING
  1229. PACKAGE_VERSION
  1230. PACKAGE_TARNAME
  1231. PACKAGE_NAME
  1232. PATH_SEPARATOR
  1233. SHELL'
  1234. ac_subst_files='deps_frag
  1235. lisp_frag
  1236. ns_frag'
  1237. ac_user_opts='
  1238. enable_option_checking
  1239. with_pop
  1240. with_kerberos
  1241. with_kerberos5
  1242. with_hesiod
  1243. with_mmdf
  1244. with_mail_unlink
  1245. with_mailhost
  1246. with_sound
  1247. with_sync_input
  1248. with_x_toolkit
  1249. with_wide_int
  1250. with_xpm
  1251. with_jpeg
  1252. with_tiff
  1253. with_gif
  1254. with_png
  1255. with_rsvg
  1256. with_xml2
  1257. with_imagemagick
  1258. with_xft
  1259. with_libotf
  1260. with_m17n_flt
  1261. with_toolkit_scroll_bars
  1262. with_xaw3d
  1263. with_xim
  1264. with_ns
  1265. with_gpm
  1266. with_dbus
  1267. with_gconf
  1268. with_gsettings
  1269. with_selinux
  1270. with_gnutls
  1271. with_makeinfo
  1272. with_compress_info
  1273. with_pkg_config_prog
  1274. with_crt_dir
  1275. with_gameuser
  1276. with_gnustep_conf
  1277. enable_ns_self_contained
  1278. enable_asserts
  1279. enable_maintainer_mode
  1280. enable_locallisppath
  1281. enable_checking
  1282. enable_use_lisp_union_type
  1283. enable_profiling
  1284. enable_autodepend
  1285. enable_dependency_tracking
  1286. enable_largefile
  1287. with_x
  1288. '
  1289. ac_precious_vars='build_alias
  1290. host_alias
  1291. target_alias
  1292. CC
  1293. CFLAGS
  1294. LDFLAGS
  1295. LIBS
  1296. CPPFLAGS
  1297. CPP
  1298. XMKMF'
  1299. # Initialize some variables set by options.
  1300. ac_init_help=
  1301. ac_init_version=false
  1302. ac_unrecognized_opts=
  1303. ac_unrecognized_sep=
  1304. # The variables have the same names as the options, with
  1305. # dashes changed to underlines.
  1306. cache_file=/dev/null
  1307. exec_prefix=NONE
  1308. no_create=
  1309. no_recursion=
  1310. prefix=NONE
  1311. program_prefix=NONE
  1312. program_suffix=NONE
  1313. program_transform_name=s,x,x,
  1314. silent=
  1315. site=
  1316. srcdir=
  1317. verbose=
  1318. x_includes=NONE
  1319. x_libraries=NONE
  1320. # Installation directory options.
  1321. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1322. # and all the variables that are supposed to be based on exec_prefix
  1323. # by default will actually change.
  1324. # Use braces instead of parens because sh, perl, etc. also accept them.
  1325. # (The list follows the same order as the GNU Coding Standards.)
  1326. bindir='${exec_prefix}/bin'
  1327. sbindir='${exec_prefix}/sbin'
  1328. libexecdir='${exec_prefix}/libexec'
  1329. datarootdir='${prefix}/share'
  1330. datadir='${datarootdir}'
  1331. sysconfdir='${prefix}/etc'
  1332. sharedstatedir='${prefix}/com'
  1333. localstatedir='${prefix}/var'
  1334. includedir='${prefix}/include'
  1335. oldincludedir='/usr/include'
  1336. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1337. infodir='${datarootdir}/info'
  1338. htmldir='${docdir}'
  1339. dvidir='${docdir}'
  1340. pdfdir='${docdir}'
  1341. psdir='${docdir}'
  1342. libdir='${exec_prefix}/lib'
  1343. localedir='${datarootdir}/locale'
  1344. mandir='${datarootdir}/man'
  1345. ac_prev=
  1346. ac_dashdash=
  1347. for ac_option
  1348. do
  1349. # If the previous option needs an argument, assign it.
  1350. if test -n "$ac_prev"; then
  1351. eval $ac_prev=\$ac_option
  1352. ac_prev=
  1353. continue
  1354. fi
  1355. case $ac_option in
  1356. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1357. *) ac_optarg=yes ;;
  1358. esac
  1359. # Accept the important Cygnus configure options, so we can diagnose typos.
  1360. case $ac_dashdash$ac_option in
  1361. --)
  1362. ac_dashdash=yes ;;
  1363. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1364. ac_prev=bindir ;;
  1365. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1366. bindir=$ac_optarg ;;
  1367. -build | --build | --buil | --bui | --bu)
  1368. ac_prev=build_alias ;;
  1369. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1370. build_alias=$ac_optarg ;;
  1371. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1372. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1373. ac_prev=cache_file ;;
  1374. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1375. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1376. cache_file=$ac_optarg ;;
  1377. --config-cache | -C)
  1378. cache_file=config.cache ;;
  1379. -datadir | --datadir | --datadi | --datad)
  1380. ac_prev=datadir ;;
  1381. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1382. datadir=$ac_optarg ;;
  1383. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1384. | --dataroo | --dataro | --datar)
  1385. ac_prev=datarootdir ;;
  1386. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1387. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1388. datarootdir=$ac_optarg ;;
  1389. -disable-* | --disable-*)
  1390. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1391. # Reject names that are not valid shell variable names.
  1392. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1393. as_fn_error "invalid feature name: $ac_useropt"
  1394. ac_useropt_orig=$ac_useropt
  1395. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1396. case $ac_user_opts in
  1397. *"
  1398. "enable_$ac_useropt"
  1399. "*) ;;
  1400. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1401. ac_unrecognized_sep=', ';;
  1402. esac
  1403. eval enable_$ac_useropt=no ;;
  1404. -docdir | --docdir | --docdi | --doc | --do)
  1405. ac_prev=docdir ;;
  1406. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1407. docdir=$ac_optarg ;;
  1408. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1409. ac_prev=dvidir ;;
  1410. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1411. dvidir=$ac_optarg ;;
  1412. -enable-* | --enable-*)
  1413. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1414. # Reject names that are not valid shell variable names.
  1415. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1416. as_fn_error "invalid feature name: $ac_useropt"
  1417. ac_useropt_orig=$ac_useropt
  1418. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1419. case $ac_user_opts in
  1420. *"
  1421. "enable_$ac_useropt"
  1422. "*) ;;
  1423. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1424. ac_unrecognized_sep=', ';;
  1425. esac
  1426. eval enable_$ac_useropt=\$ac_optarg ;;
  1427. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1428. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1429. | --exec | --exe | --ex)
  1430. ac_prev=exec_prefix ;;
  1431. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1432. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1433. | --exec=* | --exe=* | --ex=*)
  1434. exec_prefix=$ac_optarg ;;
  1435. -gas | --gas | --ga | --g)
  1436. # Obsolete; use --with-gas.
  1437. with_gas=yes ;;
  1438. -help | --help | --hel | --he | -h)
  1439. ac_init_help=long ;;
  1440. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1441. ac_init_help=recursive ;;
  1442. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1443. ac_init_help=short ;;
  1444. -host | --host | --hos | --ho)
  1445. ac_prev=host_alias ;;
  1446. -host=* | --host=* | --hos=* | --ho=*)
  1447. host_alias=$ac_optarg ;;
  1448. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1449. ac_prev=htmldir ;;
  1450. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1451. | --ht=*)
  1452. htmldir=$ac_optarg ;;
  1453. -includedir | --includedir | --includedi | --included | --include \
  1454. | --includ | --inclu | --incl | --inc)
  1455. ac_prev=includedir ;;
  1456. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1457. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1458. includedir=$ac_optarg ;;
  1459. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1460. ac_prev=infodir ;;
  1461. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1462. infodir=$ac_optarg ;;
  1463. -libdir | --libdir | --libdi | --libd)
  1464. ac_prev=libdir ;;
  1465. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1466. libdir=$ac_optarg ;;
  1467. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1468. | --libexe | --libex | --libe)
  1469. ac_prev=libexecdir ;;
  1470. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1471. | --libexe=* | --libex=* | --libe=*)
  1472. libexecdir=$ac_optarg ;;
  1473. -localedir | --localedir | --localedi | --localed | --locale)
  1474. ac_prev=localedir ;;
  1475. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1476. localedir=$ac_optarg ;;
  1477. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1478. | --localstate | --localstat | --localsta | --localst | --locals)
  1479. ac_prev=localstatedir ;;
  1480. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1481. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1482. localstatedir=$ac_optarg ;;
  1483. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1484. ac_prev=mandir ;;
  1485. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1486. mandir=$ac_optarg ;;
  1487. -nfp | --nfp | --nf)
  1488. # Obsolete; use --without-fp.
  1489. with_fp=no ;;
  1490. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1491. | --no-cr | --no-c | -n)
  1492. no_create=yes ;;
  1493. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1494. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1495. no_recursion=yes ;;
  1496. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1497. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1498. | --oldin | --oldi | --old | --ol | --o)
  1499. ac_prev=oldincludedir ;;
  1500. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1501. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1502. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1503. oldincludedir=$ac_optarg ;;
  1504. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1505. ac_prev=prefix ;;
  1506. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1507. prefix=$ac_optarg ;;
  1508. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1509. | --program-pre | --program-pr | --program-p)
  1510. ac_prev=program_prefix ;;
  1511. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1512. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1513. program_prefix=$ac_optarg ;;
  1514. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1515. | --program-suf | --program-su | --program-s)
  1516. ac_prev=program_suffix ;;
  1517. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1518. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1519. program_suffix=$ac_optarg ;;
  1520. -program-transform-name | --program-transform-name \
  1521. | --program-transform-nam | --program-transform-na \
  1522. | --program-transform-n | --program-transform- \
  1523. | --program-transform | --program-transfor \
  1524. | --program-transfo | --program-transf \
  1525. | --program-trans | --program-tran \
  1526. | --progr-tra | --program-tr | --program-t)
  1527. ac_prev=program_transform_name ;;
  1528. -program-transform-name=* | --program-transform-name=* \
  1529. | --program-transform-nam=* | --program-transform-na=* \
  1530. | --program-transform-n=* | --program-transform-=* \
  1531. | --program-transform=* | --program-transfor=* \
  1532. | --program-transfo=* | --program-transf=* \
  1533. | --program-trans=* | --program-tran=* \
  1534. | --progr-tra=* | --program-tr=* | --program-t=*)
  1535. program_transform_name=$ac_optarg ;;
  1536. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1537. ac_prev=pdfdir ;;
  1538. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1539. pdfdir=$ac_optarg ;;
  1540. -psdir | --psdir | --psdi | --psd | --ps)
  1541. ac_prev=psdir ;;
  1542. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1543. psdir=$ac_optarg ;;
  1544. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1545. | -silent | --silent | --silen | --sile | --sil)
  1546. silent=yes ;;
  1547. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1548. ac_prev=sbindir ;;
  1549. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1550. | --sbi=* | --sb=*)
  1551. sbindir=$ac_optarg ;;
  1552. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1553. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1554. | --sharedst | --shareds | --shared | --share | --shar \
  1555. | --sha | --sh)
  1556. ac_prev=sharedstatedir ;;
  1557. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1558. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1559. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1560. | --sha=* | --sh=*)
  1561. sharedstatedir=$ac_optarg ;;
  1562. -site | --site | --sit)
  1563. ac_prev=site ;;
  1564. -site=* | --site=* | --sit=*)
  1565. site=$ac_optarg ;;
  1566. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1567. ac_prev=srcdir ;;
  1568. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1569. srcdir=$ac_optarg ;;
  1570. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1571. | --syscon | --sysco | --sysc | --sys | --sy)
  1572. ac_prev=sysconfdir ;;
  1573. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1574. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1575. sysconfdir=$ac_optarg ;;
  1576. -target | --target | --targe | --targ | --tar | --ta | --t)
  1577. ac_prev=target_alias ;;
  1578. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1579. target_alias=$ac_optarg ;;
  1580. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1581. verbose=yes ;;
  1582. -version | --version | --versio | --versi | --vers | -V)
  1583. ac_init_version=: ;;
  1584. -with-* | --with-*)
  1585. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1586. # Reject names that are not valid shell variable names.
  1587. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1588. as_fn_error "invalid package name: $ac_useropt"
  1589. ac_useropt_orig=$ac_useropt
  1590. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1591. case $ac_user_opts in
  1592. *"
  1593. "with_$ac_useropt"
  1594. "*) ;;
  1595. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1596. ac_unrecognized_sep=', ';;
  1597. esac
  1598. eval with_$ac_useropt=\$ac_optarg ;;
  1599. -without-* | --without-*)
  1600. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1601. # Reject names that are not valid shell variable names.
  1602. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1603. as_fn_error "invalid package name: $ac_useropt"
  1604. ac_useropt_orig=$ac_useropt
  1605. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1606. case $ac_user_opts in
  1607. *"
  1608. "with_$ac_useropt"
  1609. "*) ;;
  1610. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1611. ac_unrecognized_sep=', ';;
  1612. esac
  1613. eval with_$ac_useropt=no ;;
  1614. --x)
  1615. # Obsolete; use --with-x.
  1616. with_x=yes ;;
  1617. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1618. | --x-incl | --x-inc | --x-in | --x-i)
  1619. ac_prev=x_includes ;;
  1620. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1621. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1622. x_includes=$ac_optarg ;;
  1623. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1624. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1625. ac_prev=x_libraries ;;
  1626. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1627. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1628. x_libraries=$ac_optarg ;;
  1629. -*) as_fn_error "unrecognized option: \`$ac_option'
  1630. Try \`$0 --help' for more information."
  1631. ;;
  1632. *=*)
  1633. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1634. # Reject names that are not valid shell variable names.
  1635. case $ac_envvar in #(
  1636. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1637. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1638. esac
  1639. eval $ac_envvar=\$ac_optarg
  1640. export $ac_envvar ;;
  1641. *)
  1642. # FIXME: should be removed in autoconf 3.0.
  1643. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1644. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1645. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1646. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1647. ;;
  1648. esac
  1649. done
  1650. if test -n "$ac_prev"; then
  1651. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1652. as_fn_error "missing argument to $ac_option"
  1653. fi
  1654. if test -n "$ac_unrecognized_opts"; then
  1655. case $enable_option_checking in
  1656. no) ;;
  1657. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1658. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1659. esac
  1660. fi
  1661. # Check all directory arguments for consistency.
  1662. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1663. datadir sysconfdir sharedstatedir localstatedir includedir \
  1664. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1665. libdir localedir mandir
  1666. do
  1667. eval ac_val=\$$ac_var
  1668. # Remove trailing slashes.
  1669. case $ac_val in
  1670. */ )
  1671. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1672. eval $ac_var=\$ac_val;;
  1673. esac
  1674. # Be sure to have absolute directory names.
  1675. case $ac_val in
  1676. [\\/$]* | ?:[\\/]* ) continue;;
  1677. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1678. esac
  1679. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1680. done
  1681. # There might be people who depend on the old broken behavior: `$host'
  1682. # used to hold the argument of --host etc.
  1683. # FIXME: To remove some day.
  1684. build=$build_alias
  1685. host=$host_alias
  1686. target=$target_alias
  1687. # FIXME: To remove some day.
  1688. if test "x$host_alias" != x; then
  1689. if test "x$build_alias" = x; then
  1690. cross_compiling=maybe
  1691. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1692. If a cross compiler is detected then cross compile mode will be used." >&2
  1693. elif test "x$build_alias" != "x$host_alias"; then
  1694. cross_compiling=yes
  1695. fi
  1696. fi
  1697. ac_tool_prefix=
  1698. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1699. test "$silent" = yes && exec 6>/dev/null
  1700. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1701. ac_ls_di=`ls -di .` &&
  1702. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1703. as_fn_error "working directory cannot be determined"
  1704. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1705. as_fn_error "pwd does not report name of working directory"
  1706. # Find the source files, if location was not specified.
  1707. if test -z "$srcdir"; then
  1708. ac_srcdir_defaulted=yes
  1709. # Try the directory containing this script, then the parent directory.
  1710. ac_confdir=`$as_dirname -- "$as_myself" ||
  1711. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1712. X"$as_myself" : 'X\(//\)[^/]' \| \
  1713. X"$as_myself" : 'X\(//\)$' \| \
  1714. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1715. $as_echo X"$as_myself" |
  1716. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1717. s//\1/
  1718. q
  1719. }
  1720. /^X\(\/\/\)[^/].*/{
  1721. s//\1/
  1722. q
  1723. }
  1724. /^X\(\/\/\)$/{
  1725. s//\1/
  1726. q
  1727. }
  1728. /^X\(\/\).*/{
  1729. s//\1/
  1730. q
  1731. }
  1732. s/.*/./; q'`
  1733. srcdir=$ac_confdir
  1734. if test ! -r "$srcdir/$ac_unique_file"; then
  1735. srcdir=..
  1736. fi
  1737. else
  1738. ac_srcdir_defaulted=no
  1739. fi
  1740. if test ! -r "$srcdir/$ac_unique_file"; then
  1741. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1742. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1743. fi
  1744. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1745. ac_abs_confdir=`(
  1746. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1747. pwd)`
  1748. # When building in place, set srcdir=.
  1749. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1750. srcdir=.
  1751. fi
  1752. # Remove unnecessary trailing slashes from srcdir.
  1753. # Double slashes in file names in object file debugging info
  1754. # mess up M-x gdb in Emacs.
  1755. case $srcdir in
  1756. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1757. esac
  1758. for ac_var in $ac_precious_vars; do
  1759. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1760. eval ac_env_${ac_var}_value=\$${ac_var}
  1761. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1762. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1763. done
  1764. #
  1765. # Report the --help message.
  1766. #
  1767. if test "$ac_init_help" = "long"; then
  1768. # Omit some internal or obsolete options to make the list less imposing.
  1769. # This message is too long to be a string in the A/UX 3.1 sh.
  1770. cat <<_ACEOF
  1771. \`configure' configures emacs 24.2 to adapt to many kinds of systems.
  1772. Usage: $0 [OPTION]... [VAR=VALUE]...
  1773. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1774. VAR=VALUE. See below for descriptions of some of the useful variables.
  1775. Defaults for the options are specified in brackets.
  1776. Configuration:
  1777. -h, --help display this help and exit
  1778. --help=short display options specific to this package
  1779. --help=recursive display the short help of all the included packages
  1780. -V, --version display version information and exit
  1781. -q, --quiet, --silent do not print \`checking...' messages
  1782. --cache-file=FILE cache test results in FILE [disabled]
  1783. -C, --config-cache alias for \`--cache-file=config.cache'
  1784. -n, --no-create do not create output files
  1785. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1786. Installation directories:
  1787. --prefix=PREFIX install architecture-independent files in PREFIX
  1788. [$ac_default_prefix]
  1789. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1790. [PREFIX]
  1791. By default, \`make install' will install all the files in
  1792. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1793. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1794. for instance \`--prefix=\$HOME'.
  1795. For better control, use the options below.
  1796. Fine tuning of the installation directories:
  1797. --bindir=DIR user executables [EPREFIX/bin]
  1798. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1799. --libexecdir=DIR program executables [EPREFIX/libexec]
  1800. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1801. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1802. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1803. --libdir=DIR object code libraries [EPREFIX/lib]
  1804. --includedir=DIR C header files [PREFIX/include]
  1805. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1806. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1807. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1808. --infodir=DIR info documentation [DATAROOTDIR/info]
  1809. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1810. --mandir=DIR man documentation [DATAROOTDIR/man]
  1811. --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
  1812. --htmldir=DIR html documentation [DOCDIR]
  1813. --dvidir=DIR dvi documentation [DOCDIR]
  1814. --pdfdir=DIR pdf documentation [DOCDIR]
  1815. --psdir=DIR ps documentation [DOCDIR]
  1816. _ACEOF
  1817. cat <<\_ACEOF
  1818. Program names:
  1819. --program-prefix=PREFIX prepend PREFIX to installed program names
  1820. --program-suffix=SUFFIX append SUFFIX to installed program names
  1821. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1822. X features:
  1823. --x-includes=DIR X include files are in DIR
  1824. --x-libraries=DIR X library files are in DIR
  1825. System types:
  1826. --build=BUILD configure for building on BUILD [guessed]
  1827. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1828. _ACEOF
  1829. fi
  1830. if test -n "$ac_init_help"; then
  1831. case $ac_init_help in
  1832. short | recursive ) echo "Configuration of emacs 24.2:";;
  1833. esac
  1834. cat <<\_ACEOF
  1835. Optional Features:
  1836. --disable-option-checking ignore unrecognized --enable/--with options
  1837. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1838. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1839. --disable-ns-self-contained
  1840. disable self contained build under NeXTstep
  1841. --enable-asserts compile code with asserts enabled
  1842. --disable-maintainer-mode
  1843. disable make rules and dependencies not useful (and
  1844. sometimes confusing) to the casual installer
  1845. --enable-locallisppath=PATH
  1846. directories Emacs should search for lisp files
  1847. specific to this site
  1848. --enable-checking[=LIST]
  1849. enable expensive run-time checks. With LIST, enable
  1850. only specific categories of checks. Categories are:
  1851. all,yes,no. Flags are: stringbytes, stringoverrun,
  1852. stringfreelist, xmallocoverrun, conslist
  1853. --enable-use-lisp-union-type
  1854. use a union for the Lisp_Object data type. This is
  1855. only useful for development for catching certain
  1856. types of bugs.
  1857. --enable-profiling build emacs with profiling support. This might not
  1858. work on all platforms
  1859. --enable-autodepend automatically generate dependencies to .h-files.
  1860. Requires GNU Make and Gcc. Enabled if GNU Make and
  1861. Gcc is found
  1862. --disable-dependency-tracking speeds up one-time build
  1863. --enable-dependency-tracking do not reject slow dependency extractors
  1864. --disable-largefile omit support for large files
  1865. Optional Packages:
  1866. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1867. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1868. --without-pop don't support POP mail retrieval with movemail
  1869. --with-kerberos support Kerberos-authenticated POP
  1870. --with-kerberos5 support Kerberos version 5 authenticated POP
  1871. --with-hesiod support Hesiod to get the POP server host
  1872. --with-mmdf support MMDF mailboxes
  1873. --with-mail-unlink unlink, rather than empty, mail spool after reading
  1874. --with-mailhost=HOSTNAME
  1875. string giving default POP mail host
  1876. --without-sound don't compile with sound support
  1877. --without-sync-input process async input synchronously
  1878. --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
  1879. lucid or athena, motif, no)
  1880. --with-wide-int prefer wide Emacs integers (typically 62-bit)
  1881. --without-xpm don't compile with XPM image support
  1882. --without-jpeg don't compile with JPEG image support
  1883. --without-tiff don't compile with TIFF image support
  1884. --without-gif don't compile with GIF image support
  1885. --without-png don't compile with PNG image support
  1886. --without-rsvg don't compile with SVG image support
  1887. --without-xml2 don't compile with XML parsing support
  1888. --without-imagemagick don't compile with ImageMagick image support
  1889. --without-xft don't use XFT for anti aliased fonts
  1890. --without-libotf don't use libotf for OpenType font support
  1891. --without-m17n-flt don't use m17n-flt for text shaping
  1892. --without-toolkit-scroll-bars
  1893. don't use Motif or Xaw3d scroll bars
  1894. --without-xaw3d don't use Xaw3d
  1895. --without-xim don't use X11 XIM
  1896. --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
  1897. --without-gpm don't use -lgpm for mouse support on a GNU/Linux
  1898. console
  1899. --without-dbus don't compile with D-Bus support
  1900. --without-gconf don't compile with GConf support
  1901. --without-gsettings don't compile with GSettings support
  1902. --without-selinux don't compile with SELinux support
  1903. --without-gnutls don't use -lgnutls for SSL/TLS support
  1904. --without-makeinfo don't require makeinfo for building manuals
  1905. --without-compress-info don't compress the installed Info pages
  1906. --with-pkg-config-prog=PATH
  1907. path to pkg-config for finding GTK and librsvg
  1908. --with-crt-dir=DIR directory containing crtn.o etc. The default is
  1909. /usr/lib, or /usr/lib64 on some platforms.
  1910. --with-gameuser=USER user for shared game score files
  1911. --with-gnustep-conf=PATH
  1912. path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
  1913. or /etc/GNUstep/GNUstep.conf
  1914. --with-x use the X Window System
  1915. Some influential environment variables:
  1916. CC C compiler command
  1917. CFLAGS C compiler flags
  1918. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1919. nonstandard directory <lib dir>
  1920. LIBS libraries to pass to the linker, e.g. -l<library>
  1921. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1922. you have headers in a nonstandard directory <include dir>
  1923. CPP C preprocessor
  1924. XMKMF Path to xmkmf, Makefile generator for X Window System
  1925. Use these variables to override the choices made by `configure' or to help
  1926. it to find libraries and programs with nonstandard names/locations.
  1927. Report bugs to the package provider.
  1928. _ACEOF
  1929. ac_status=$?
  1930. fi
  1931. if test "$ac_init_help" = "recursive"; then
  1932. # If there are subdirs, report their specific --help.
  1933. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1934. test -d "$ac_dir" ||
  1935. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1936. continue
  1937. ac_builddir=.
  1938. case "$ac_dir" in
  1939. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1940. *)
  1941. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1942. # A ".." for each directory in $ac_dir_suffix.
  1943. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1944. case $ac_top_builddir_sub in
  1945. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1946. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1947. esac ;;
  1948. esac
  1949. ac_abs_top_builddir=$ac_pwd
  1950. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1951. # for backward compatibility:
  1952. ac_top_builddir=$ac_top_build_prefix
  1953. case $srcdir in
  1954. .) # We are building in place.
  1955. ac_srcdir=.
  1956. ac_top_srcdir=$ac_top_builddir_sub
  1957. ac_abs_top_srcdir=$ac_pwd ;;
  1958. [\\/]* | ?:[\\/]* ) # Absolute name.
  1959. ac_srcdir=$srcdir$ac_dir_suffix;
  1960. ac_top_srcdir=$srcdir
  1961. ac_abs_top_srcdir=$srcdir ;;
  1962. *) # Relative name.
  1963. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1964. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1965. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1966. esac
  1967. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1968. cd "$ac_dir" || { ac_status=$?; continue; }
  1969. # Check for guested configure.
  1970. if test -f "$ac_srcdir/configure.gnu"; then
  1971. echo &&
  1972. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1973. elif test -f "$ac_srcdir/configure"; then
  1974. echo &&
  1975. $SHELL "$ac_srcdir/configure" --help=recursive
  1976. else
  1977. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1978. fi || ac_status=$?
  1979. cd "$ac_pwd" || { ac_status=$?; break; }
  1980. done
  1981. fi
  1982. test -n "$ac_init_help" && exit $ac_status
  1983. if $ac_init_version; then
  1984. cat <<\_ACEOF
  1985. emacs configure 24.2
  1986. generated by GNU Autoconf 2.65
  1987. Copyright (C) 2009 Free Software Foundation, Inc.
  1988. This configure script is free software; the Free Software Foundation
  1989. gives unlimited permission to copy, distribute and modify it.
  1990. _ACEOF
  1991. exit
  1992. fi
  1993. ## ------------------------ ##
  1994. ## Autoconf initialization. ##
  1995. ## ------------------------ ##
  1996. # ac_fn_c_try_compile LINENO
  1997. # --------------------------
  1998. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1999. ac_fn_c_try_compile ()
  2000. {
  2001. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2002. rm -f conftest.$ac_objext
  2003. if { { ac_try="$ac_compile"
  2004. case "(($ac_try" in
  2005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2006. *) ac_try_echo=$ac_try;;
  2007. esac
  2008. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2009. $as_echo "$ac_try_echo"; } >&5
  2010. (eval "$ac_compile") 2>conftest.err
  2011. ac_status=$?
  2012. if test -s conftest.err; then
  2013. grep -v '^ *+' conftest.err >conftest.er1
  2014. cat conftest.er1 >&5
  2015. mv -f conftest.er1 conftest.err
  2016. fi
  2017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2018. test $ac_status = 0; } && {
  2019. test -z "$ac_c_werror_flag" ||
  2020. test ! -s conftest.err
  2021. } && test -s conftest.$ac_objext; then :
  2022. ac_retval=0
  2023. else
  2024. $as_echo "$as_me: failed program was:" >&5
  2025. sed 's/^/| /' conftest.$ac_ext >&5
  2026. ac_retval=1
  2027. fi
  2028. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2029. as_fn_set_status $ac_retval
  2030. } # ac_fn_c_try_compile
  2031. # ac_fn_c_try_cpp LINENO
  2032. # ----------------------
  2033. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2034. ac_fn_c_try_cpp ()
  2035. {
  2036. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2037. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2038. case "(($ac_try" in
  2039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2040. *) ac_try_echo=$ac_try;;
  2041. esac
  2042. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2043. $as_echo "$ac_try_echo"; } >&5
  2044. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2045. ac_status=$?
  2046. if test -s conftest.err; then
  2047. grep -v '^ *+' conftest.err >conftest.er1
  2048. cat conftest.er1 >&5
  2049. mv -f conftest.er1 conftest.err
  2050. fi
  2051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2052. test $ac_status = 0; } >/dev/null && {
  2053. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2054. test ! -s conftest.err
  2055. }; then :
  2056. ac_retval=0
  2057. else
  2058. $as_echo "$as_me: failed program was:" >&5
  2059. sed 's/^/| /' conftest.$ac_ext >&5
  2060. ac_retval=1
  2061. fi
  2062. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2063. as_fn_set_status $ac_retval
  2064. } # ac_fn_c_try_cpp
  2065. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2066. # -------------------------------------------------------
  2067. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2068. # the include files in INCLUDES and setting the cache variable VAR
  2069. # accordingly.
  2070. ac_fn_c_check_header_mongrel ()
  2071. {
  2072. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2073. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2075. $as_echo_n "checking for $2... " >&6; }
  2076. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2077. $as_echo_n "(cached) " >&6
  2078. fi
  2079. eval ac_res=\$$3
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2081. $as_echo "$ac_res" >&6; }
  2082. else
  2083. # Is the header compilable?
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2085. $as_echo_n "checking $2 usability... " >&6; }
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $4
  2089. #include <$2>
  2090. _ACEOF
  2091. if ac_fn_c_try_compile "$LINENO"; then :
  2092. ac_header_compiler=yes
  2093. else
  2094. ac_header_compiler=no
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2098. $as_echo "$ac_header_compiler" >&6; }
  2099. # Is the header present?
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2101. $as_echo_n "checking $2 presence... " >&6; }
  2102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2103. /* end confdefs.h. */
  2104. #include <$2>
  2105. _ACEOF
  2106. if ac_fn_c_try_cpp "$LINENO"; then :
  2107. ac_header_preproc=yes
  2108. else
  2109. ac_header_preproc=no
  2110. fi
  2111. rm -f conftest.err conftest.$ac_ext
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2113. $as_echo "$ac_header_preproc" >&6; }
  2114. # So? What about this header?
  2115. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2116. yes:no: )
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2118. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2120. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2121. ;;
  2122. no:yes:* )
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2124. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2126. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2128. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2130. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2132. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2133. ;;
  2134. esac
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2136. $as_echo_n "checking for $2... " >&6; }
  2137. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2138. $as_echo_n "(cached) " >&6
  2139. else
  2140. eval "$3=\$ac_header_compiler"
  2141. fi
  2142. eval ac_res=\$$3
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2144. $as_echo "$ac_res" >&6; }
  2145. fi
  2146. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2147. } # ac_fn_c_check_header_mongrel
  2148. # ac_fn_c_try_run LINENO
  2149. # ----------------------
  2150. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2151. # that executables *can* be run.
  2152. ac_fn_c_try_run ()
  2153. {
  2154. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2155. if { { ac_try="$ac_link"
  2156. case "(($ac_try" in
  2157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2158. *) ac_try_echo=$ac_try;;
  2159. esac
  2160. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2161. $as_echo "$ac_try_echo"; } >&5
  2162. (eval "$ac_link") 2>&5
  2163. ac_status=$?
  2164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2165. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2166. { { case "(($ac_try" in
  2167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2168. *) ac_try_echo=$ac_try;;
  2169. esac
  2170. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2171. $as_echo "$ac_try_echo"; } >&5
  2172. (eval "$ac_try") 2>&5
  2173. ac_status=$?
  2174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2175. test $ac_status = 0; }; }; then :
  2176. ac_retval=0
  2177. else
  2178. $as_echo "$as_me: program exited with status $ac_status" >&5
  2179. $as_echo "$as_me: failed program was:" >&5
  2180. sed 's/^/| /' conftest.$ac_ext >&5
  2181. ac_retval=$ac_status
  2182. fi
  2183. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2184. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2185. as_fn_set_status $ac_retval
  2186. } # ac_fn_c_try_run
  2187. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2188. # -------------------------------------------------------
  2189. # Tests whether HEADER exists and can be compiled using the include files in
  2190. # INCLUDES, setting the cache variable VAR accordingly.
  2191. ac_fn_c_check_header_compile ()
  2192. {
  2193. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2195. $as_echo_n "checking for $2... " >&6; }
  2196. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2197. $as_echo_n "(cached) " >&6
  2198. else
  2199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2200. /* end confdefs.h. */
  2201. $4
  2202. #include <$2>
  2203. _ACEOF
  2204. if ac_fn_c_try_compile "$LINENO"; then :
  2205. eval "$3=yes"
  2206. else
  2207. eval "$3=no"
  2208. fi
  2209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2210. fi
  2211. eval ac_res=\$$3
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2213. $as_echo "$ac_res" >&6; }
  2214. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2215. } # ac_fn_c_check_header_compile
  2216. # ac_fn_c_try_link LINENO
  2217. # -----------------------
  2218. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2219. ac_fn_c_try_link ()
  2220. {
  2221. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2222. rm -f conftest.$ac_objext conftest$ac_exeext
  2223. if { { ac_try="$ac_link"
  2224. case "(($ac_try" in
  2225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2226. *) ac_try_echo=$ac_try;;
  2227. esac
  2228. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2229. $as_echo "$ac_try_echo"; } >&5
  2230. (eval "$ac_link") 2>conftest.err
  2231. ac_status=$?
  2232. if test -s conftest.err; then
  2233. grep -v '^ *+' conftest.err >conftest.er1
  2234. cat conftest.er1 >&5
  2235. mv -f conftest.er1 conftest.err
  2236. fi
  2237. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2238. test $ac_status = 0; } && {
  2239. test -z "$ac_c_werror_flag" ||
  2240. test ! -s conftest.err
  2241. } && test -s conftest$ac_exeext && {
  2242. test "$cross_compiling" = yes ||
  2243. $as_test_x conftest$ac_exeext
  2244. }; then :
  2245. ac_retval=0
  2246. else
  2247. $as_echo "$as_me: failed program was:" >&5
  2248. sed 's/^/| /' conftest.$ac_ext >&5
  2249. ac_retval=1
  2250. fi
  2251. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2252. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2253. # interfere with the next link command; also delete a directory that is
  2254. # left behind by Apple's compiler. We do this before executing the actions.
  2255. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2256. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2257. as_fn_set_status $ac_retval
  2258. } # ac_fn_c_try_link
  2259. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2260. # ------------------------------------
  2261. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2262. ac_fn_c_check_decl ()
  2263. {
  2264. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  2266. $as_echo_n "checking whether $2 is declared... " >&6; }
  2267. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2268. $as_echo_n "(cached) " >&6
  2269. else
  2270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2271. /* end confdefs.h. */
  2272. $4
  2273. int
  2274. main ()
  2275. {
  2276. #ifndef $2
  2277. (void) $2;
  2278. #endif
  2279. ;
  2280. return 0;
  2281. }
  2282. _ACEOF
  2283. if ac_fn_c_try_compile "$LINENO"; then :
  2284. eval "$3=yes"
  2285. else
  2286. eval "$3=no"
  2287. fi
  2288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2289. fi
  2290. eval ac_res=\$$3
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2292. $as_echo "$ac_res" >&6; }
  2293. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2294. } # ac_fn_c_check_decl
  2295. # ac_fn_c_check_header_preproc LINENO HEADER VAR
  2296. # ----------------------------------------------
  2297. # Tests whether HEADER is present, setting the cache variable VAR accordingly.
  2298. ac_fn_c_check_header_preproc ()
  2299. {
  2300. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2302. $as_echo_n "checking for $2... " >&6; }
  2303. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2307. /* end confdefs.h. */
  2308. #include <$2>
  2309. _ACEOF
  2310. if ac_fn_c_try_cpp "$LINENO"; then :
  2311. eval "$3=yes"
  2312. else
  2313. eval "$3=no"
  2314. fi
  2315. rm -f conftest.err conftest.$ac_ext
  2316. fi
  2317. eval ac_res=\$$3
  2318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2319. $as_echo "$ac_res" >&6; }
  2320. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2321. } # ac_fn_c_check_header_preproc
  2322. # ac_fn_c_check_func LINENO FUNC VAR
  2323. # ----------------------------------
  2324. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2325. ac_fn_c_check_func ()
  2326. {
  2327. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2329. $as_echo_n "checking for $2... " >&6; }
  2330. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2334. /* end confdefs.h. */
  2335. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2336. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2337. #define $2 innocuous_$2
  2338. /* System header to define __stub macros and hopefully few prototypes,
  2339. which can conflict with char $2 (); below.
  2340. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2341. <limits.h> exists even on freestanding compilers. */
  2342. #ifdef __STDC__
  2343. # include <limits.h>
  2344. #else
  2345. # include <assert.h>
  2346. #endif
  2347. #undef $2
  2348. /* Override any GCC internal prototype to avoid an error.
  2349. Use char because int might match the return type of a GCC
  2350. builtin and then its argument prototype would still apply. */
  2351. #ifdef __cplusplus
  2352. extern "C"
  2353. #endif
  2354. char $2 ();
  2355. /* The GNU C library defines this for functions which it implements
  2356. to always fail with ENOSYS. Some functions are actually named
  2357. something starting with __ and the normal name is an alias. */
  2358. #if defined __stub_$2 || defined __stub___$2
  2359. choke me
  2360. #endif
  2361. int
  2362. main ()
  2363. {
  2364. return $2 ();
  2365. ;
  2366. return 0;
  2367. }
  2368. _ACEOF
  2369. if ac_fn_c_try_link "$LINENO"; then :
  2370. eval "$3=yes"
  2371. else
  2372. eval "$3=no"
  2373. fi
  2374. rm -f core conftest.err conftest.$ac_objext \
  2375. conftest$ac_exeext conftest.$ac_ext
  2376. fi
  2377. eval ac_res=\$$3
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2379. $as_echo "$ac_res" >&6; }
  2380. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2381. } # ac_fn_c_check_func
  2382. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2383. # ----------------------------------------------------
  2384. # Tries to find if the field MEMBER exists in type AGGR, after including
  2385. # INCLUDES, setting cache variable VAR accordingly.
  2386. ac_fn_c_check_member ()
  2387. {
  2388. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2390. $as_echo_n "checking for $2.$3... " >&6; }
  2391. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2392. $as_echo_n "(cached) " >&6
  2393. else
  2394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2395. /* end confdefs.h. */
  2396. $5
  2397. int
  2398. main ()
  2399. {
  2400. static $2 ac_aggr;
  2401. if (ac_aggr.$3)
  2402. return 0;
  2403. ;
  2404. return 0;
  2405. }
  2406. _ACEOF
  2407. if ac_fn_c_try_compile "$LINENO"; then :
  2408. eval "$4=yes"
  2409. else
  2410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2411. /* end confdefs.h. */
  2412. $5
  2413. int
  2414. main ()
  2415. {
  2416. static $2 ac_aggr;
  2417. if (sizeof ac_aggr.$3)
  2418. return 0;
  2419. ;
  2420. return 0;
  2421. }
  2422. _ACEOF
  2423. if ac_fn_c_try_compile "$LINENO"; then :
  2424. eval "$4=yes"
  2425. else
  2426. eval "$4=no"
  2427. fi
  2428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2429. fi
  2430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2431. fi
  2432. eval ac_res=\$$4
  2433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2434. $as_echo "$ac_res" >&6; }
  2435. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2436. } # ac_fn_c_check_member
  2437. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2438. # -------------------------------------------
  2439. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2440. # variable VAR accordingly.
  2441. ac_fn_c_check_type ()
  2442. {
  2443. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2445. $as_echo_n "checking for $2... " >&6; }
  2446. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2447. $as_echo_n "(cached) " >&6
  2448. else
  2449. eval "$3=no"
  2450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2451. /* end confdefs.h. */
  2452. $4
  2453. int
  2454. main ()
  2455. {
  2456. if (sizeof ($2))
  2457. return 0;
  2458. ;
  2459. return 0;
  2460. }
  2461. _ACEOF
  2462. if ac_fn_c_try_compile "$LINENO"; then :
  2463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2464. /* end confdefs.h. */
  2465. $4
  2466. int
  2467. main ()
  2468. {
  2469. if (sizeof (($2)))
  2470. return 0;
  2471. ;
  2472. return 0;
  2473. }
  2474. _ACEOF
  2475. if ac_fn_c_try_compile "$LINENO"; then :
  2476. else
  2477. eval "$3=yes"
  2478. fi
  2479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2480. fi
  2481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2482. fi
  2483. eval ac_res=\$$3
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2485. $as_echo "$ac_res" >&6; }
  2486. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2487. } # ac_fn_c_check_type
  2488. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2489. # --------------------------------------------
  2490. # Tries to find the compile-time value of EXPR in a program that includes
  2491. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2492. # computed
  2493. ac_fn_c_compute_int ()
  2494. {
  2495. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2496. if test "$cross_compiling" = yes; then
  2497. # Depending upon the size, compute the lo and hi bounds.
  2498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2499. /* end confdefs.h. */
  2500. $4
  2501. int
  2502. main ()
  2503. {
  2504. static int test_array [1 - 2 * !(($2) >= 0)];
  2505. test_array [0] = 0
  2506. ;
  2507. return 0;
  2508. }
  2509. _ACEOF
  2510. if ac_fn_c_try_compile "$LINENO"; then :
  2511. ac_lo=0 ac_mid=0
  2512. while :; do
  2513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2514. /* end confdefs.h. */
  2515. $4
  2516. int
  2517. main ()
  2518. {
  2519. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2520. test_array [0] = 0
  2521. ;
  2522. return 0;
  2523. }
  2524. _ACEOF
  2525. if ac_fn_c_try_compile "$LINENO"; then :
  2526. ac_hi=$ac_mid; break
  2527. else
  2528. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2529. if test $ac_lo -le $ac_mid; then
  2530. ac_lo= ac_hi=
  2531. break
  2532. fi
  2533. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2534. fi
  2535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2536. done
  2537. else
  2538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2539. /* end confdefs.h. */
  2540. $4
  2541. int
  2542. main ()
  2543. {
  2544. static int test_array [1 - 2 * !(($2) < 0)];
  2545. test_array [0] = 0
  2546. ;
  2547. return 0;
  2548. }
  2549. _ACEOF
  2550. if ac_fn_c_try_compile "$LINENO"; then :
  2551. ac_hi=-1 ac_mid=-1
  2552. while :; do
  2553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2554. /* end confdefs.h. */
  2555. $4
  2556. int
  2557. main ()
  2558. {
  2559. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2560. test_array [0] = 0
  2561. ;
  2562. return 0;
  2563. }
  2564. _ACEOF
  2565. if ac_fn_c_try_compile "$LINENO"; then :
  2566. ac_lo=$ac_mid; break
  2567. else
  2568. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2569. if test $ac_mid -le $ac_hi; then
  2570. ac_lo= ac_hi=
  2571. break
  2572. fi
  2573. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2574. fi
  2575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2576. done
  2577. else
  2578. ac_lo= ac_hi=
  2579. fi
  2580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2581. fi
  2582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2583. # Binary search between lo and hi bounds.
  2584. while test "x$ac_lo" != "x$ac_hi"; do
  2585. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2587. /* end confdefs.h. */
  2588. $4
  2589. int
  2590. main ()
  2591. {
  2592. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2593. test_array [0] = 0
  2594. ;
  2595. return 0;
  2596. }
  2597. _ACEOF
  2598. if ac_fn_c_try_compile "$LINENO"; then :
  2599. ac_hi=$ac_mid
  2600. else
  2601. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2602. fi
  2603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2604. done
  2605. case $ac_lo in #((
  2606. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2607. '') ac_retval=1 ;;
  2608. esac
  2609. else
  2610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2611. /* end confdefs.h. */
  2612. $4
  2613. static long int longval () { return $2; }
  2614. static unsigned long int ulongval () { return $2; }
  2615. #include <stdio.h>
  2616. #include <stdlib.h>
  2617. int
  2618. main ()
  2619. {
  2620. FILE *f = fopen ("conftest.val", "w");
  2621. if (! f)
  2622. return 1;
  2623. if (($2) < 0)
  2624. {
  2625. long int i = longval ();
  2626. if (i != ($2))
  2627. return 1;
  2628. fprintf (f, "%ld", i);
  2629. }
  2630. else
  2631. {
  2632. unsigned long int i = ulongval ();
  2633. if (i != ($2))
  2634. return 1;
  2635. fprintf (f, "%lu", i);
  2636. }
  2637. /* Do not output a trailing newline, as this causes \r\n confusion
  2638. on some platforms. */
  2639. return ferror (f) || fclose (f) != 0;
  2640. ;
  2641. return 0;
  2642. }
  2643. _ACEOF
  2644. if ac_fn_c_try_run "$LINENO"; then :
  2645. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2646. else
  2647. ac_retval=1
  2648. fi
  2649. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2650. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2651. rm -f conftest.val
  2652. fi
  2653. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2654. as_fn_set_status $ac_retval
  2655. } # ac_fn_c_compute_int
  2656. cat >config.log <<_ACEOF
  2657. This file contains any messages produced by compilers while
  2658. running configure, to aid debugging if configure makes a mistake.
  2659. It was created by emacs $as_me 24.2, which was
  2660. generated by GNU Autoconf 2.65. Invocation command line was
  2661. $ $0 $@
  2662. _ACEOF
  2663. exec 5>>config.log
  2664. {
  2665. cat <<_ASUNAME
  2666. ## --------- ##
  2667. ## Platform. ##
  2668. ## --------- ##
  2669. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2670. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2671. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2672. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2673. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2674. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2675. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2676. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2677. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2678. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2679. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2680. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2681. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2682. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2683. _ASUNAME
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. $as_echo "PATH: $as_dir"
  2690. done
  2691. IFS=$as_save_IFS
  2692. } >&5
  2693. cat >&5 <<_ACEOF
  2694. ## ----------- ##
  2695. ## Core tests. ##
  2696. ## ----------- ##
  2697. _ACEOF
  2698. # Keep a trace of the command line.
  2699. # Strip out --no-create and --no-recursion so they do not pile up.
  2700. # Strip out --silent because we don't want to record it for future runs.
  2701. # Also quote any args containing shell meta-characters.
  2702. # Make two passes to allow for proper duplicate-argument suppression.
  2703. ac_configure_args=
  2704. ac_configure_args0=
  2705. ac_configure_args1=
  2706. ac_must_keep_next=false
  2707. for ac_pass in 1 2
  2708. do
  2709. for ac_arg
  2710. do
  2711. case $ac_arg in
  2712. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2713. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2714. | -silent | --silent | --silen | --sile | --sil)
  2715. continue ;;
  2716. *\'*)
  2717. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2718. esac
  2719. case $ac_pass in
  2720. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2721. 2)
  2722. as_fn_append ac_configure_args1 " '$ac_arg'"
  2723. if test $ac_must_keep_next = true; then
  2724. ac_must_keep_next=false # Got value, back to normal.
  2725. else
  2726. case $ac_arg in
  2727. *=* | --config-cache | -C | -disable-* | --disable-* \
  2728. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2729. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2730. | -with-* | --with-* | -without-* | --without-* | --x)
  2731. case "$ac_configure_args0 " in
  2732. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2733. esac
  2734. ;;
  2735. -* ) ac_must_keep_next=true ;;
  2736. esac
  2737. fi
  2738. as_fn_append ac_configure_args " '$ac_arg'"
  2739. ;;
  2740. esac
  2741. done
  2742. done
  2743. { ac_configure_args0=; unset ac_configure_args0;}
  2744. { ac_configure_args1=; unset ac_configure_args1;}
  2745. # When interrupted or exit'd, cleanup temporary files, and complete
  2746. # config.log. We remove comments because anyway the quotes in there
  2747. # would cause problems or look ugly.
  2748. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2749. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2750. trap 'exit_status=$?
  2751. # Save into config.log some information that might help in debugging.
  2752. {
  2753. echo
  2754. cat <<\_ASBOX
  2755. ## ---------------- ##
  2756. ## Cache variables. ##
  2757. ## ---------------- ##
  2758. _ASBOX
  2759. echo
  2760. # The following way of writing the cache mishandles newlines in values,
  2761. (
  2762. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2763. eval ac_val=\$$ac_var
  2764. case $ac_val in #(
  2765. *${as_nl}*)
  2766. case $ac_var in #(
  2767. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2768. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2769. esac
  2770. case $ac_var in #(
  2771. _ | IFS | as_nl) ;; #(
  2772. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2773. *) { eval $ac_var=; unset $ac_var;} ;;
  2774. esac ;;
  2775. esac
  2776. done
  2777. (set) 2>&1 |
  2778. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2779. *${as_nl}ac_space=\ *)
  2780. sed -n \
  2781. "s/'\''/'\''\\\\'\'''\''/g;
  2782. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2783. ;; #(
  2784. *)
  2785. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2786. ;;
  2787. esac |
  2788. sort
  2789. )
  2790. echo
  2791. cat <<\_ASBOX
  2792. ## ----------------- ##
  2793. ## Output variables. ##
  2794. ## ----------------- ##
  2795. _ASBOX
  2796. echo
  2797. for ac_var in $ac_subst_vars
  2798. do
  2799. eval ac_val=\$$ac_var
  2800. case $ac_val in
  2801. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2802. esac
  2803. $as_echo "$ac_var='\''$ac_val'\''"
  2804. done | sort
  2805. echo
  2806. if test -n "$ac_subst_files"; then
  2807. cat <<\_ASBOX
  2808. ## ------------------- ##
  2809. ## File substitutions. ##
  2810. ## ------------------- ##
  2811. _ASBOX
  2812. echo
  2813. for ac_var in $ac_subst_files
  2814. do
  2815. eval ac_val=\$$ac_var
  2816. case $ac_val in
  2817. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2818. esac
  2819. $as_echo "$ac_var='\''$ac_val'\''"
  2820. done | sort
  2821. echo
  2822. fi
  2823. if test -s confdefs.h; then
  2824. cat <<\_ASBOX
  2825. ## ----------- ##
  2826. ## confdefs.h. ##
  2827. ## ----------- ##
  2828. _ASBOX
  2829. echo
  2830. cat confdefs.h
  2831. echo
  2832. fi
  2833. test "$ac_signal" != 0 &&
  2834. $as_echo "$as_me: caught signal $ac_signal"
  2835. $as_echo "$as_me: exit $exit_status"
  2836. } >&5
  2837. rm -f core *.core core.conftest.* &&
  2838. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2839. exit $exit_status
  2840. ' 0
  2841. for ac_signal in 1 2 13 15; do
  2842. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2843. done
  2844. ac_signal=0
  2845. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2846. rm -f -r conftest* confdefs.h
  2847. $as_echo "/* confdefs.h */" > confdefs.h
  2848. # Predefined preprocessor variables.
  2849. cat >>confdefs.h <<_ACEOF
  2850. #define PACKAGE_NAME "$PACKAGE_NAME"
  2851. _ACEOF
  2852. cat >>confdefs.h <<_ACEOF
  2853. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2854. _ACEOF
  2855. cat >>confdefs.h <<_ACEOF
  2856. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2857. _ACEOF
  2858. cat >>confdefs.h <<_ACEOF
  2859. #define PACKAGE_STRING "$PACKAGE_STRING"
  2860. _ACEOF
  2861. cat >>confdefs.h <<_ACEOF
  2862. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2863. _ACEOF
  2864. cat >>confdefs.h <<_ACEOF
  2865. #define PACKAGE_URL "$PACKAGE_URL"
  2866. _ACEOF
  2867. # Let the site file select an alternate cache file if it wants to.
  2868. # Prefer an explicitly selected file to automatically selected ones.
  2869. ac_site_file1=NONE
  2870. ac_site_file2=NONE
  2871. if test -n "$CONFIG_SITE"; then
  2872. ac_site_file1=$CONFIG_SITE
  2873. elif test "x$prefix" != xNONE; then
  2874. ac_site_file1=$prefix/share/config.site
  2875. ac_site_file2=$prefix/etc/config.site
  2876. else
  2877. ac_site_file1=$ac_default_prefix/share/config.site
  2878. ac_site_file2=$ac_default_prefix/etc/config.site
  2879. fi
  2880. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2881. do
  2882. test "x$ac_site_file" = xNONE && continue
  2883. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2885. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2886. sed 's/^/| /' "$ac_site_file" >&5
  2887. . "$ac_site_file"
  2888. fi
  2889. done
  2890. if test -r "$cache_file"; then
  2891. # Some versions of bash will fail to source /dev/null (special files
  2892. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2893. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2895. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2896. case $cache_file in
  2897. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2898. *) . "./$cache_file";;
  2899. esac
  2900. fi
  2901. else
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2903. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2904. >$cache_file
  2905. fi
  2906. as_fn_append ac_header_list " stdlib.h"
  2907. as_fn_append ac_header_list " unistd.h"
  2908. as_fn_append ac_header_list " sys/param.h"
  2909. as_fn_append ac_func_list " readlinkat"
  2910. gl_getopt_required=GNU
  2911. as_fn_append ac_header_list " getopt.h"
  2912. as_fn_append ac_header_list " wchar.h"
  2913. as_fn_append ac_header_list " stdint.h"
  2914. as_fn_append ac_header_list " inttypes.h"
  2915. as_fn_append ac_func_list " lstat"
  2916. as_fn_append ac_func_list " alarm"
  2917. as_fn_append ac_func_list " pthread_sigmask"
  2918. as_fn_append ac_func_list " readlink"
  2919. as_fn_append ac_header_list " sys/socket.h"
  2920. as_fn_append ac_func_list " tzset"
  2921. as_fn_append ac_func_list " strtoimax"
  2922. as_fn_append ac_func_list " strtoumax"
  2923. as_fn_append ac_func_list " symlink"
  2924. as_fn_append ac_header_list " sys/stat.h"
  2925. as_fn_append ac_header_list " sys/time.h"
  2926. as_fn_append ac_func_list " localtime_r"
  2927. # Check that the precious variables saved in the cache have kept the same
  2928. # value.
  2929. ac_cache_corrupted=false
  2930. for ac_var in $ac_precious_vars; do
  2931. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2932. eval ac_new_set=\$ac_env_${ac_var}_set
  2933. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2934. eval ac_new_val=\$ac_env_${ac_var}_value
  2935. case $ac_old_set,$ac_new_set in
  2936. set,)
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2938. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2939. ac_cache_corrupted=: ;;
  2940. ,set)
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2942. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2943. ac_cache_corrupted=: ;;
  2944. ,);;
  2945. *)
  2946. if test "x$ac_old_val" != "x$ac_new_val"; then
  2947. # differences in whitespace do not lead to failure.
  2948. ac_old_val_w=`echo x $ac_old_val`
  2949. ac_new_val_w=`echo x $ac_new_val`
  2950. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2952. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2953. ac_cache_corrupted=:
  2954. else
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2956. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2957. eval $ac_var=\$ac_old_val
  2958. fi
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2960. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2962. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2963. fi;;
  2964. esac
  2965. # Pass precious variables to config.status.
  2966. if test "$ac_new_set" = set; then
  2967. case $ac_new_val in
  2968. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2969. *) ac_arg=$ac_var=$ac_new_val ;;
  2970. esac
  2971. case " $ac_configure_args " in
  2972. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2973. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2974. esac
  2975. fi
  2976. done
  2977. if $ac_cache_corrupted; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2979. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2981. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2982. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2983. fi
  2984. ## -------------------- ##
  2985. ## Main body of script. ##
  2986. ## -------------------- ##
  2987. ac_ext=c
  2988. ac_cpp='$CPP $CPPFLAGS'
  2989. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2990. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2991. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2992. ac_config_headers="$ac_config_headers src/config.h:src/config.in"
  2993. ac_aux_dir=
  2994. for ac_dir in build-aux "$srcdir"/build-aux; do
  2995. for ac_t in install-sh install.sh shtool; do
  2996. if test -f "$ac_dir/$ac_t"; then
  2997. ac_aux_dir=$ac_dir
  2998. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2999. break 2
  3000. fi
  3001. done
  3002. done
  3003. if test -z "$ac_aux_dir"; then
  3004. as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  3005. fi
  3006. # These three variables are undocumented and unsupported,
  3007. # and are intended to be withdrawn in a future Autoconf release.
  3008. # They can cause serious problems if a builder's source tree is in a directory
  3009. # whose full name contains unusual characters.
  3010. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3011. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3012. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3013. am__api_version='1.11'
  3014. # Find a good install program. We prefer a C program (faster),
  3015. # so one script is as good as another. But avoid the broken or
  3016. # incompatible versions:
  3017. # SysV /etc/install, /usr/sbin/install
  3018. # SunOS /usr/etc/install
  3019. # IRIX /sbin/install
  3020. # AIX /bin/install
  3021. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3022. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3023. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3024. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3025. # OS/2's system install, which has a completely different semantic
  3026. # ./install, which can be erroneously created by make from ./install.sh.
  3027. # Reject install programs that cannot install multiple files.
  3028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3029. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3030. if test -z "$INSTALL"; then
  3031. if test "${ac_cv_path_install+set}" = set; then :
  3032. $as_echo_n "(cached) " >&6
  3033. else
  3034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3035. for as_dir in $PATH
  3036. do
  3037. IFS=$as_save_IFS
  3038. test -z "$as_dir" && as_dir=.
  3039. # Account for people who put trailing slashes in PATH elements.
  3040. case $as_dir/ in #((
  3041. ./ | .// | /[cC]/* | \
  3042. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3043. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3044. /usr/ucb/* ) ;;
  3045. *)
  3046. # OSF1 and SCO ODT 3.0 have their own names for install.
  3047. # Don't use installbsd from OSF since it installs stuff as root
  3048. # by default.
  3049. for ac_prog in ginstall scoinst install; do
  3050. for ac_exec_ext in '' $ac_executable_extensions; do
  3051. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3052. if test $ac_prog = install &&
  3053. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3054. # AIX install. It has an incompatible calling convention.
  3055. :
  3056. elif test $ac_prog = install &&
  3057. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3058. # program-specific install script used by HP pwplus--don't use.
  3059. :
  3060. else
  3061. rm -rf conftest.one conftest.two conftest.dir
  3062. echo one > conftest.one
  3063. echo two > conftest.two
  3064. mkdir conftest.dir
  3065. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3066. test -s conftest.one && test -s conftest.two &&
  3067. test -s conftest.dir/conftest.one &&
  3068. test -s conftest.dir/conftest.two
  3069. then
  3070. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3071. break 3
  3072. fi
  3073. fi
  3074. fi
  3075. done
  3076. done
  3077. ;;
  3078. esac
  3079. done
  3080. IFS=$as_save_IFS
  3081. rm -rf conftest.one conftest.two conftest.dir
  3082. fi
  3083. if test "${ac_cv_path_install+set}" = set; then
  3084. INSTALL=$ac_cv_path_install
  3085. else
  3086. # As a last resort, use the slow shell script. Don't cache a
  3087. # value for INSTALL within a source directory, because that will
  3088. # break other packages using the cache if that directory is
  3089. # removed, or if the value is a relative name.
  3090. INSTALL=$ac_install_sh
  3091. fi
  3092. fi
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3094. $as_echo "$INSTALL" >&6; }
  3095. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3096. # It thinks the first close brace ends the variable substitution.
  3097. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3098. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3099. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3101. $as_echo_n "checking whether build environment is sane... " >&6; }
  3102. # Just in case
  3103. sleep 1
  3104. echo timestamp > conftest.file
  3105. # Reject unsafe characters in $srcdir or the absolute working directory
  3106. # name. Accept space and tab only in the latter.
  3107. am_lf='
  3108. '
  3109. case `pwd` in
  3110. *[\\\"\#\$\&\'\`$am_lf]*)
  3111. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3112. esac
  3113. case $srcdir in
  3114. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3115. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3116. esac
  3117. # Do `set' in a subshell so we don't clobber the current shell's
  3118. # arguments. Must try -L first in case configure is actually a
  3119. # symlink; some systems play weird games with the mod time of symlinks
  3120. # (eg FreeBSD returns the mod time of the symlink's containing
  3121. # directory).
  3122. if (
  3123. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3124. if test "$*" = "X"; then
  3125. # -L didn't work.
  3126. set X `ls -t "$srcdir/configure" conftest.file`
  3127. fi
  3128. rm -f conftest.file
  3129. if test "$*" != "X $srcdir/configure conftest.file" \
  3130. && test "$*" != "X conftest.file $srcdir/configure"; then
  3131. # If neither matched, then we have a broken ls. This can happen
  3132. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3133. # broken ls alias from the environment. This has actually
  3134. # happened. Such a system could not be considered "sane".
  3135. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3136. alias in your environment" "$LINENO" 5
  3137. fi
  3138. test "$2" = conftest.file
  3139. )
  3140. then
  3141. # Ok.
  3142. :
  3143. else
  3144. as_fn_error "newly created file is older than distributed files!
  3145. Check your system clock" "$LINENO" 5
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3148. $as_echo "yes" >&6; }
  3149. test "$program_prefix" != NONE &&
  3150. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3151. # Use a double $ so make ignores it.
  3152. test "$program_suffix" != NONE &&
  3153. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3154. # Double any \ or $.
  3155. # By default was `s,x,x', remove it if useless.
  3156. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3157. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3158. # expand $ac_aux_dir to an absolute path
  3159. am_aux_dir=`cd $ac_aux_dir && pwd`
  3160. if test x"${MISSING+set}" != xset; then
  3161. case $am_aux_dir in
  3162. *\ * | *\ *)
  3163. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3164. *)
  3165. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3166. esac
  3167. fi
  3168. # Use eval to expand $SHELL
  3169. if eval "$MISSING --run true"; then
  3170. am_missing_run="$MISSING --run "
  3171. else
  3172. am_missing_run=
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3174. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3175. fi
  3176. if test x"${install_sh}" != xset; then
  3177. case $am_aux_dir in
  3178. *\ * | *\ *)
  3179. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3180. *)
  3181. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3182. esac
  3183. fi
  3184. # Installed binaries are usually stripped using `strip' when the user
  3185. # run `make install-strip'. However `strip' might not be the right
  3186. # tool to use in cross-compilation environments, therefore Automake
  3187. # will honor the `STRIP' environment variable to overrule this program.
  3188. if test "$cross_compiling" != no; then
  3189. if test -n "$ac_tool_prefix"; then
  3190. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3191. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3193. $as_echo_n "checking for $ac_word... " >&6; }
  3194. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. if test -n "$STRIP"; then
  3198. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3199. else
  3200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3201. for as_dir in $PATH
  3202. do
  3203. IFS=$as_save_IFS
  3204. test -z "$as_dir" && as_dir=.
  3205. for ac_exec_ext in '' $ac_executable_extensions; do
  3206. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3207. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3209. break 2
  3210. fi
  3211. done
  3212. done
  3213. IFS=$as_save_IFS
  3214. fi
  3215. fi
  3216. STRIP=$ac_cv_prog_STRIP
  3217. if test -n "$STRIP"; then
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3219. $as_echo "$STRIP" >&6; }
  3220. else
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3222. $as_echo "no" >&6; }
  3223. fi
  3224. fi
  3225. if test -z "$ac_cv_prog_STRIP"; then
  3226. ac_ct_STRIP=$STRIP
  3227. # Extract the first word of "strip", so it can be a program name with args.
  3228. set dummy strip; ac_word=$2
  3229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3230. $as_echo_n "checking for $ac_word... " >&6; }
  3231. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3232. $as_echo_n "(cached) " >&6
  3233. else
  3234. if test -n "$ac_ct_STRIP"; then
  3235. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3236. else
  3237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. for as_dir in $PATH
  3239. do
  3240. IFS=$as_save_IFS
  3241. test -z "$as_dir" && as_dir=.
  3242. for ac_exec_ext in '' $ac_executable_extensions; do
  3243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3244. ac_cv_prog_ac_ct_STRIP="strip"
  3245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3246. break 2
  3247. fi
  3248. done
  3249. done
  3250. IFS=$as_save_IFS
  3251. fi
  3252. fi
  3253. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3254. if test -n "$ac_ct_STRIP"; then
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3256. $as_echo "$ac_ct_STRIP" >&6; }
  3257. else
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3259. $as_echo "no" >&6; }
  3260. fi
  3261. if test "x$ac_ct_STRIP" = x; then
  3262. STRIP=":"
  3263. else
  3264. case $cross_compiling:$ac_tool_warned in
  3265. yes:)
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3267. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3268. ac_tool_warned=yes ;;
  3269. esac
  3270. STRIP=$ac_ct_STRIP
  3271. fi
  3272. else
  3273. STRIP="$ac_cv_prog_STRIP"
  3274. fi
  3275. fi
  3276. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3278. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3279. if test -z "$MKDIR_P"; then
  3280. if test "${ac_cv_path_mkdir+set}" = set; then :
  3281. $as_echo_n "(cached) " >&6
  3282. else
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_prog in mkdir gmkdir; do
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3291. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3292. 'mkdir (GNU coreutils) '* | \
  3293. 'mkdir (coreutils) '* | \
  3294. 'mkdir (fileutils) '4.1*)
  3295. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3296. break 3;;
  3297. esac
  3298. done
  3299. done
  3300. done
  3301. IFS=$as_save_IFS
  3302. fi
  3303. test -d ./--version && rmdir ./--version
  3304. if test "${ac_cv_path_mkdir+set}" = set; then
  3305. MKDIR_P="$ac_cv_path_mkdir -p"
  3306. else
  3307. # As a last resort, use the slow shell script. Don't cache a
  3308. # value for MKDIR_P within a source directory, because that will
  3309. # break other packages using the cache if that directory is
  3310. # removed, or if the value is a relative name.
  3311. MKDIR_P="$ac_install_sh -d"
  3312. fi
  3313. fi
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3315. $as_echo "$MKDIR_P" >&6; }
  3316. mkdir_p="$MKDIR_P"
  3317. case $mkdir_p in
  3318. [\\/$]* | ?:[\\/]*) ;;
  3319. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3320. esac
  3321. for ac_prog in gawk mawk nawk awk
  3322. do
  3323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3324. set dummy $ac_prog; ac_word=$2
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3326. $as_echo_n "checking for $ac_word... " >&6; }
  3327. if test "${ac_cv_prog_AWK+set}" = set; then :
  3328. $as_echo_n "(cached) " >&6
  3329. else
  3330. if test -n "$AWK"; then
  3331. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3332. else
  3333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3334. for as_dir in $PATH
  3335. do
  3336. IFS=$as_save_IFS
  3337. test -z "$as_dir" && as_dir=.
  3338. for ac_exec_ext in '' $ac_executable_extensions; do
  3339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3340. ac_cv_prog_AWK="$ac_prog"
  3341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3342. break 2
  3343. fi
  3344. done
  3345. done
  3346. IFS=$as_save_IFS
  3347. fi
  3348. fi
  3349. AWK=$ac_cv_prog_AWK
  3350. if test -n "$AWK"; then
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3352. $as_echo "$AWK" >&6; }
  3353. else
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3355. $as_echo "no" >&6; }
  3356. fi
  3357. test -n "$AWK" && break
  3358. done
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3360. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3361. set x ${MAKE-make}
  3362. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3363. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3364. $as_echo_n "(cached) " >&6
  3365. else
  3366. cat >conftest.make <<\_ACEOF
  3367. SHELL = /bin/sh
  3368. all:
  3369. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3370. _ACEOF
  3371. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3372. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3373. *@@@%%%=?*=@@@%%%*)
  3374. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3375. *)
  3376. eval ac_cv_prog_make_${ac_make}_set=no;;
  3377. esac
  3378. rm -f conftest.make
  3379. fi
  3380. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3382. $as_echo "yes" >&6; }
  3383. SET_MAKE=
  3384. else
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3386. $as_echo "no" >&6; }
  3387. SET_MAKE="MAKE=${MAKE-make}"
  3388. fi
  3389. rm -rf .tst 2>/dev/null
  3390. mkdir .tst 2>/dev/null
  3391. if test -d .tst; then
  3392. am__leading_dot=.
  3393. else
  3394. am__leading_dot=_
  3395. fi
  3396. rmdir .tst 2>/dev/null
  3397. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3398. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3399. # is not polluted with repeated "-I."
  3400. am__isrc=' -I$(srcdir)'
  3401. # test to see if srcdir already configured
  3402. if test -f $srcdir/config.status; then
  3403. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3404. fi
  3405. fi
  3406. # test whether we have cygpath
  3407. if test -z "$CYGPATH_W"; then
  3408. if (cygpath --version) >/dev/null 2>/dev/null; then
  3409. CYGPATH_W='cygpath -w'
  3410. else
  3411. CYGPATH_W=echo
  3412. fi
  3413. fi
  3414. # Define the identity of the package.
  3415. PACKAGE='emacs'
  3416. VERSION='24.2'
  3417. cat >>confdefs.h <<_ACEOF
  3418. #define PACKAGE "$PACKAGE"
  3419. _ACEOF
  3420. cat >>confdefs.h <<_ACEOF
  3421. #define VERSION "$VERSION"
  3422. _ACEOF
  3423. # Some tools Automake needs.
  3424. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3425. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3426. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3427. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3428. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3429. # We need awk for the "check" target. The system "awk" is bad on
  3430. # some platforms.
  3431. # Always define AMTAR for backward compatibility.
  3432. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3433. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3434. lispdir='${datadir}/emacs/${version}/lisp'
  3435. locallisppath='${datadir}/emacs/${version}/site-lisp:'\
  3436. '${datadir}/emacs/site-lisp'
  3437. lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
  3438. etcdir='${datadir}/emacs/${version}/etc'
  3439. archlibdir='${libexecdir}/emacs/${version}/${configuration}'
  3440. docdir='${datadir}/emacs/${version}/etc'
  3441. gamedir='${localstatedir}/games/emacs'
  3442. # Check whether --with-pop was given.
  3443. if test "${with_pop+set}" = set; then :
  3444. withval=$with_pop;
  3445. else
  3446. with_pop=yes
  3447. fi
  3448. if test "$with_pop" = yes; then
  3449. $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
  3450. fi
  3451. # Check whether --with-kerberos was given.
  3452. if test "${with_kerberos+set}" = set; then :
  3453. withval=$with_kerberos;
  3454. else
  3455. with_kerberos=no
  3456. fi
  3457. if test "$with_kerberos" != no; then
  3458. $as_echo "#define KERBEROS 1" >>confdefs.h
  3459. fi
  3460. # Check whether --with-kerberos5 was given.
  3461. if test "${with_kerberos5+set}" = set; then :
  3462. withval=$with_kerberos5;
  3463. else
  3464. with_kerberos5=no
  3465. fi
  3466. if test "${with_kerberos5}" != no; then
  3467. if test "${with_kerberos}" = no; then
  3468. with_kerberos=yes
  3469. $as_echo "#define KERBEROS 1" >>confdefs.h
  3470. fi
  3471. $as_echo "#define KERBEROS5 1" >>confdefs.h
  3472. fi
  3473. # Check whether --with-hesiod was given.
  3474. if test "${with_hesiod+set}" = set; then :
  3475. withval=$with_hesiod;
  3476. else
  3477. with_hesiod=no
  3478. fi
  3479. if test "$with_hesiod" != no; then
  3480. $as_echo "#define HESIOD 1" >>confdefs.h
  3481. fi
  3482. # Check whether --with-mmdf was given.
  3483. if test "${with_mmdf+set}" = set; then :
  3484. withval=$with_mmdf;
  3485. else
  3486. with_mmdf=no
  3487. fi
  3488. if test "$with_mmdf" != no; then
  3489. $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
  3490. fi
  3491. # Check whether --with-mail-unlink was given.
  3492. if test "${with_mail_unlink+set}" = set; then :
  3493. withval=$with_mail_unlink;
  3494. else
  3495. with_mail_unlink=no
  3496. fi
  3497. if test "$with_mail_unlink" != no; then
  3498. $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
  3499. fi
  3500. # Check whether --with-mailhost was given.
  3501. if test "${with_mailhost+set}" = set; then :
  3502. withval=$with_mailhost;
  3503. cat >>confdefs.h <<_ACEOF
  3504. #define MAILHOST "$withval"
  3505. _ACEOF
  3506. fi
  3507. # Check whether --with-sound was given.
  3508. if test "${with_sound+set}" = set; then :
  3509. withval=$with_sound;
  3510. else
  3511. with_sound=yes
  3512. fi
  3513. # Check whether --with-sync-input was given.
  3514. if test "${with_sync_input+set}" = set; then :
  3515. withval=$with_sync_input;
  3516. else
  3517. with_sync_input=yes
  3518. fi
  3519. if test "$with_sync_input" = yes; then
  3520. $as_echo "#define SYNC_INPUT 1" >>confdefs.h
  3521. fi
  3522. # Check whether --with-x-toolkit was given.
  3523. if test "${with_x_toolkit+set}" = set; then :
  3524. withval=$with_x_toolkit; case "${withval}" in
  3525. y | ye | yes ) val=gtk ;;
  3526. n | no ) val=no ;;
  3527. l | lu | luc | luci | lucid ) val=lucid ;;
  3528. a | at | ath | athe | athen | athena ) val=athena ;;
  3529. m | mo | mot | moti | motif ) val=motif ;;
  3530. g | gt | gtk ) val=gtk ;;
  3531. gtk3 ) val=gtk3 ;;
  3532. * )
  3533. as_fn_error "\`--with-x-toolkit=$withval' is invalid;
  3534. this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
  3535. \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
  3536. ;;
  3537. esac
  3538. with_x_toolkit=$val
  3539. fi
  3540. # Check whether --with-wide-int was given.
  3541. if test "${with_wide_int+set}" = set; then :
  3542. withval=$with_wide_int;
  3543. else
  3544. with_wide_int=no
  3545. fi
  3546. if test "$with_wide_int" = yes; then
  3547. $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
  3548. fi
  3549. # Check whether --with-xpm was given.
  3550. if test "${with_xpm+set}" = set; then :
  3551. withval=$with_xpm;
  3552. else
  3553. with_xpm=yes
  3554. fi
  3555. # Check whether --with-jpeg was given.
  3556. if test "${with_jpeg+set}" = set; then :
  3557. withval=$with_jpeg;
  3558. else
  3559. with_jpeg=yes
  3560. fi
  3561. # Check whether --with-tiff was given.
  3562. if test "${with_tiff+set}" = set; then :
  3563. withval=$with_tiff;
  3564. else
  3565. with_tiff=yes
  3566. fi
  3567. # Check whether --with-gif was given.
  3568. if test "${with_gif+set}" = set; then :
  3569. withval=$with_gif;
  3570. else
  3571. with_gif=yes
  3572. fi
  3573. # Check whether --with-png was given.
  3574. if test "${with_png+set}" = set; then :
  3575. withval=$with_png;
  3576. else
  3577. with_png=yes
  3578. fi
  3579. # Check whether --with-rsvg was given.
  3580. if test "${with_rsvg+set}" = set; then :
  3581. withval=$with_rsvg;
  3582. else
  3583. with_rsvg=yes
  3584. fi
  3585. # Check whether --with-xml2 was given.
  3586. if test "${with_xml2+set}" = set; then :
  3587. withval=$with_xml2;
  3588. else
  3589. with_xml2=yes
  3590. fi
  3591. # Check whether --with-imagemagick was given.
  3592. if test "${with_imagemagick+set}" = set; then :
  3593. withval=$with_imagemagick;
  3594. else
  3595. with_imagemagick=yes
  3596. fi
  3597. # Check whether --with-xft was given.
  3598. if test "${with_xft+set}" = set; then :
  3599. withval=$with_xft;
  3600. else
  3601. with_xft=yes
  3602. fi
  3603. # Check whether --with-libotf was given.
  3604. if test "${with_libotf+set}" = set; then :
  3605. withval=$with_libotf;
  3606. else
  3607. with_libotf=yes
  3608. fi
  3609. # Check whether --with-m17n-flt was given.
  3610. if test "${with_m17n_flt+set}" = set; then :
  3611. withval=$with_m17n_flt;
  3612. else
  3613. with_m17n_flt=yes
  3614. fi
  3615. # Check whether --with-toolkit-scroll-bars was given.
  3616. if test "${with_toolkit_scroll_bars+set}" = set; then :
  3617. withval=$with_toolkit_scroll_bars;
  3618. else
  3619. with_toolkit_scroll_bars=yes
  3620. fi
  3621. # Check whether --with-xaw3d was given.
  3622. if test "${with_xaw3d+set}" = set; then :
  3623. withval=$with_xaw3d;
  3624. else
  3625. with_xaw3d=yes
  3626. fi
  3627. # Check whether --with-xim was given.
  3628. if test "${with_xim+set}" = set; then :
  3629. withval=$with_xim;
  3630. else
  3631. with_xim=yes
  3632. fi
  3633. # Check whether --with-ns was given.
  3634. if test "${with_ns+set}" = set; then :
  3635. withval=$with_ns;
  3636. else
  3637. with_ns=no
  3638. fi
  3639. # Check whether --with-gpm was given.
  3640. if test "${with_gpm+set}" = set; then :
  3641. withval=$with_gpm;
  3642. else
  3643. with_gpm=yes
  3644. fi
  3645. # Check whether --with-dbus was given.
  3646. if test "${with_dbus+set}" = set; then :
  3647. withval=$with_dbus;
  3648. else
  3649. with_dbus=yes
  3650. fi
  3651. # Check whether --with-gconf was given.
  3652. if test "${with_gconf+set}" = set; then :
  3653. withval=$with_gconf;
  3654. else
  3655. with_gconf=yes
  3656. fi
  3657. # Check whether --with-gsettings was given.
  3658. if test "${with_gsettings+set}" = set; then :
  3659. withval=$with_gsettings;
  3660. else
  3661. with_gsettings=yes
  3662. fi
  3663. # Check whether --with-selinux was given.
  3664. if test "${with_selinux+set}" = set; then :
  3665. withval=$with_selinux;
  3666. else
  3667. with_selinux=yes
  3668. fi
  3669. # Check whether --with-gnutls was given.
  3670. if test "${with_gnutls+set}" = set; then :
  3671. withval=$with_gnutls;
  3672. else
  3673. with_gnutls=yes
  3674. fi
  3675. ## For the times when you want to build Emacs but don't have
  3676. ## a suitable makeinfo, and can live without the manuals.
  3677. # Check whether --with-makeinfo was given.
  3678. if test "${with_makeinfo+set}" = set; then :
  3679. withval=$with_makeinfo;
  3680. else
  3681. with_makeinfo=yes
  3682. fi
  3683. ## Makefile.in needs the cache file name.
  3684. ## This is an option because I do not know if all info/man support
  3685. ## compressed files, nor how to test if they do so.
  3686. # Check whether --with-compress-info was given.
  3687. if test "${with_compress_info+set}" = set; then :
  3688. withval=$with_compress_info;
  3689. else
  3690. with_compress_info=yes
  3691. fi
  3692. if test $with_compress_info = yes; then
  3693. GZIP_INFO=yes
  3694. else
  3695. GZIP_INFO=
  3696. fi
  3697. # Check whether --with-pkg-config-prog was given.
  3698. if test "${with_pkg_config_prog+set}" = set; then :
  3699. withval=$with_pkg_config_prog;
  3700. fi
  3701. if test "X${with_pkg_config_prog}" != X; then
  3702. if test "${with_pkg_config_prog}" != yes; then
  3703. PKG_CONFIG="${with_pkg_config_prog}"
  3704. fi
  3705. fi
  3706. CRT_DIR=
  3707. # Check whether --with-crt-dir was given.
  3708. if test "${with_crt_dir+set}" = set; then :
  3709. withval=$with_crt_dir;
  3710. fi
  3711. CRT_DIR="${with_crt_dir}"
  3712. # Check whether --with-gameuser was given.
  3713. if test "${with_gameuser+set}" = set; then :
  3714. withval=$with_gameuser;
  3715. fi
  3716. test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
  3717. && gameuser="${with_gameuser}"
  3718. test "X$gameuser" = X && gameuser=games
  3719. # Check whether --with-gnustep-conf was given.
  3720. if test "${with_gnustep_conf+set}" = set; then :
  3721. withval=$with_gnustep_conf;
  3722. fi
  3723. test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
  3724. GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
  3725. test "X$GNUSTEP_CONFIG_FILE" = "X" && \
  3726. GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
  3727. # Check whether --enable-ns-self-contained was given.
  3728. if test "${enable_ns_self_contained+set}" = set; then :
  3729. enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
  3730. else
  3731. EN_NS_SELF_CONTAINED=yes
  3732. fi
  3733. # Check whether --enable-asserts was given.
  3734. if test "${enable_asserts+set}" = set; then :
  3735. enableval=$enable_asserts; USE_XASSERTS=$enableval
  3736. else
  3737. USE_XASSERTS=no
  3738. fi
  3739. # Check whether --enable-maintainer-mode was given.
  3740. if test "${enable_maintainer_mode+set}" = set; then :
  3741. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3742. else
  3743. USE_MAINTAINER_MODE=yes
  3744. fi
  3745. if test $USE_MAINTAINER_MODE = yes; then
  3746. MAINT=
  3747. else
  3748. MAINT=#
  3749. fi
  3750. # Check whether --enable-locallisppath was given.
  3751. if test "${enable_locallisppath+set}" = set; then :
  3752. enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
  3753. locallisppath=
  3754. elif test "${enableval}" != "yes"; then
  3755. locallisppath=${enableval}
  3756. fi
  3757. fi
  3758. # Check whether --enable-checking was given.
  3759. if test "${enable_checking+set}" = set; then :
  3760. enableval=$enable_checking; ac_checking_flags="${enableval}"
  3761. fi
  3762. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
  3763. for check in $ac_checking_flags
  3764. do
  3765. case $check in
  3766. # these set all the flags to specific states
  3767. yes) ac_enable_checking=1 ;;
  3768. no) ac_enable_checking= ;
  3769. ac_gc_check_stringbytes= ;
  3770. ac_gc_check_string_overrun= ;
  3771. ac_gc_check_string_free_list= ;
  3772. ac_xmalloc_overrun= ;
  3773. ac_gc_check_cons_list= ;;
  3774. all) ac_enable_checking=1 ;
  3775. ac_gc_check_stringbytes=1 ;
  3776. ac_gc_check_string_overrun=1 ;
  3777. ac_gc_check_string_free_list=1 ;
  3778. ac_xmalloc_overrun=1 ;
  3779. ac_gc_check_cons_list=1 ;;
  3780. # these enable particular checks
  3781. stringbytes) ac_gc_check_stringbytes=1 ;;
  3782. stringoverrun) ac_gc_check_string_overrun=1 ;;
  3783. stringfreelist) ac_gc_check_string_free_list=1 ;;
  3784. xmallocoverrun) ac_xmalloc_overrun=1 ;;
  3785. conslist) ac_gc_check_cons_list=1 ;;
  3786. *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
  3787. esac
  3788. done
  3789. IFS="$ac_save_IFS"
  3790. if test x$ac_enable_checking != x ; then
  3791. $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  3792. fi
  3793. if test x$ac_gc_check_stringbytes != x ; then
  3794. $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
  3795. fi
  3796. if test x$ac_gc_check_string_overrun != x ; then
  3797. $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
  3798. fi
  3799. if test x$ac_gc_check_string_free_list != x ; then
  3800. $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
  3801. fi
  3802. if test x$ac_xmalloc_overrun != x ; then
  3803. $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
  3804. fi
  3805. if test x$ac_gc_check_cons_list != x ; then
  3806. $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
  3807. fi
  3808. # Check whether --enable-use-lisp-union-type was given.
  3809. if test "${enable_use_lisp_union_type+set}" = set; then :
  3810. enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
  3811. $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
  3812. fi
  3813. fi
  3814. # Check whether --enable-profiling was given.
  3815. if test "${enable_profiling+set}" = set; then :
  3816. enableval=$enable_profiling; ac_enable_profiling="${enableval}"
  3817. fi
  3818. if test x$ac_enable_profiling != x ; then
  3819. PROFILING_CFLAGS="-DPROFILING=1 -pg"
  3820. else
  3821. PROFILING_CFLAGS=
  3822. fi
  3823. # Check whether --enable-autodepend was given.
  3824. if test "${enable_autodepend+set}" = set; then :
  3825. enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
  3826. else
  3827. ac_enable_autodepend=yes
  3828. fi
  3829. #### Make srcdir absolute, if it isn't already. It's important to
  3830. #### avoid running the path through pwd unnecessarily, since pwd can
  3831. #### give you automounter prefixes, which can go away. We do all this
  3832. #### so Emacs can find its files when run uninstalled.
  3833. ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
  3834. unset CDPATH
  3835. case "${srcdir}" in
  3836. /* ) ;;
  3837. . )
  3838. ## We may be able to use the $PWD environment variable to make this
  3839. ## absolute. But sometimes PWD is inaccurate.
  3840. ## Note: we used to use ${PWD} at the end instead of `pwd`,
  3841. ## but that tested only for a well-formed and valid PWD,
  3842. ## it did not object when PWD was well-formed and valid but just wrong.
  3843. if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
  3844. then
  3845. srcdir="$PWD"
  3846. else
  3847. srcdir="`(cd ${srcdir}; pwd)`"
  3848. fi
  3849. ;;
  3850. * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
  3851. esac
  3852. #### Given the configuration name, set machfile and opsysfile to the
  3853. #### names of the m/*.h and s/*.h files we should use.
  3854. ### Canonicalize the configuration name.
  3855. # Make sure we can run config.sub.
  3856. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3857. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3859. $as_echo_n "checking build system type... " >&6; }
  3860. if test "${ac_cv_build+set}" = set; then :
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. ac_build_alias=$build_alias
  3864. test "x$ac_build_alias" = x &&
  3865. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3866. test "x$ac_build_alias" = x &&
  3867. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3868. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3869. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3870. fi
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3872. $as_echo "$ac_cv_build" >&6; }
  3873. case $ac_cv_build in
  3874. *-*-*) ;;
  3875. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3876. esac
  3877. build=$ac_cv_build
  3878. ac_save_IFS=$IFS; IFS='-'
  3879. set x $ac_cv_build
  3880. shift
  3881. build_cpu=$1
  3882. build_vendor=$2
  3883. shift; shift
  3884. # Remember, the first character of IFS is used to create $*,
  3885. # except with old shells:
  3886. build_os=$*
  3887. IFS=$ac_save_IFS
  3888. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3890. $as_echo_n "checking host system type... " >&6; }
  3891. if test "${ac_cv_host+set}" = set; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. if test "x$host_alias" = x; then
  3895. ac_cv_host=$ac_cv_build
  3896. else
  3897. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3898. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3899. fi
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3902. $as_echo "$ac_cv_host" >&6; }
  3903. case $ac_cv_host in
  3904. *-*-*) ;;
  3905. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3906. esac
  3907. host=$ac_cv_host
  3908. ac_save_IFS=$IFS; IFS='-'
  3909. set x $ac_cv_host
  3910. shift
  3911. host_cpu=$1
  3912. host_vendor=$2
  3913. shift; shift
  3914. # Remember, the first character of IFS is used to create $*,
  3915. # except with old shells:
  3916. host_os=$*
  3917. IFS=$ac_save_IFS
  3918. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3919. canonical=$host
  3920. configuration=${host_alias-${build_alias-$host}}
  3921. ### If you add support for a new configuration, add code to this
  3922. ### switch statement to recognize your configuration name and select
  3923. ### the appropriate operating system and machine description files.
  3924. ### You would hope that you could choose an m/*.h file pretty much
  3925. ### based on the machine portion of the configuration name, and an s/*.h
  3926. ### file based on the operating system portion. However, it turns out
  3927. ### that each m/*.h file is pretty manufacturer-specific - for
  3928. ### example mips.h is MIPS
  3929. ### So we basically have to have a special case for each
  3930. ### configuration name.
  3931. ###
  3932. ### As far as handling version numbers on operating systems is
  3933. ### concerned, make sure things will fail in a fixable way. If
  3934. ### /etc/MACHINES doesn't say anything about version numbers, be
  3935. ### prepared to handle anything reasonably. If version numbers
  3936. ### matter, be sure /etc/MACHINES says something about it.
  3937. machine='' opsys='' unported=no
  3938. case "${canonical}" in
  3939. ## GNU/Linux and similar ports
  3940. *-*-linux* )
  3941. opsys=gnu-linux
  3942. case ${canonical} in
  3943. alpha*) machine=alpha ;;
  3944. s390x-*) machine=ibms390x ;;
  3945. powerpc*) machine=macppc ;;
  3946. sparc*) machine=sparc ;;
  3947. ia64*) machine=ia64 ;;
  3948. m68k*) machine=m68k ;;
  3949. x86_64*) machine=amdx86-64 ;;
  3950. esac
  3951. ;;
  3952. ## FreeBSD ports
  3953. *-*-freebsd* )
  3954. opsys=freebsd
  3955. case "${canonical}" in
  3956. alpha*) machine=alpha ;;
  3957. amd64-*|x86_64-*) machine=amdx86-64 ;;
  3958. ia64-*) machine=ia64 ;;
  3959. i[3456]86-*) machine=intel386 ;;
  3960. powerpc-*) machine=macppc ;;
  3961. sparc-*) machine=sparc ;;
  3962. sparc64-*) machine=sparc ;;
  3963. esac
  3964. ;;
  3965. ## FreeBSD kernel + glibc based userland
  3966. *-*-kfreebsd*gnu* )
  3967. opsys=gnu-kfreebsd
  3968. case "${canonical}" in
  3969. alpha*) machine=alpha ;;
  3970. amd64-*|x86_64-*) machine=amdx86-64 ;;
  3971. ia64-*) machine=ia64 ;;
  3972. i[3456]86-*) machine=intel386 ;;
  3973. powerpc-*) machine=macppc ;;
  3974. sparc-*) machine=sparc ;;
  3975. sparc64-*) machine=sparc ;;
  3976. esac
  3977. ;;
  3978. ## NetBSD ports
  3979. *-*-netbsd* )
  3980. opsys=netbsd
  3981. case "${canonical}" in
  3982. alpha*) machine=alpha ;;
  3983. x86_64-*) machine=amdx86-64 ;;
  3984. i[3456]86-*) machine=intel386 ;;
  3985. m68k-*) machine=m68k ;;
  3986. powerpc-*) machine=macppc ;;
  3987. sparc*-) machine=sparc ;;
  3988. vax-*) machine=vax ;;
  3989. esac
  3990. ;;
  3991. ## OpenBSD ports
  3992. *-*-openbsd* )
  3993. opsys=openbsd
  3994. case "${canonical}" in
  3995. alpha*) machine=alpha ;;
  3996. x86_64-*) machine=amdx86-64 ;;
  3997. i386-*) machine=intel386 ;;
  3998. powerpc-*) machine=macppc ;;
  3999. sparc*) machine=sparc ;;
  4000. vax-*) machine=vax ;;
  4001. esac
  4002. ;;
  4003. ## Apple Darwin / Mac OS X
  4004. *-apple-darwin* )
  4005. case "${canonical}" in
  4006. i[3456]86-* ) machine=intel386 ;;
  4007. powerpc-* ) machine=macppc ;;
  4008. x86_64-* ) machine=amdx86-64 ;;
  4009. * ) unported=yes ;;
  4010. esac
  4011. opsys=darwin
  4012. # Define CPP as follows to make autoconf work correctly.
  4013. CPP="${CC-cc} -E -no-cpp-precomp"
  4014. # Use fink packages if available.
  4015. if test -d /sw/include && test -d /sw/lib; then
  4016. GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
  4017. CPP="${CPP} ${GCC_TEST_OPTIONS}"
  4018. NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
  4019. fi
  4020. ;;
  4021. ## HP 9000 series 700 and 800, running HP/UX
  4022. hppa*-hp-hpux10.2* )
  4023. opsys=hpux10-20
  4024. ;;
  4025. hppa*-hp-hpux1[1-9]* )
  4026. opsys=hpux11
  4027. CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
  4028. ;;
  4029. ## IBM machines
  4030. rs6000-ibm-aix4.[23]* )
  4031. machine=ibmrs6000 opsys=aix4-2
  4032. ;;
  4033. powerpc-ibm-aix4.[23]* )
  4034. machine=ibmrs6000 opsys=aix4-2
  4035. ;;
  4036. rs6000-ibm-aix[56]* )
  4037. machine=ibmrs6000 opsys=aix4-2
  4038. ;;
  4039. powerpc-ibm-aix[56]* )
  4040. machine=ibmrs6000 opsys=aix4-2
  4041. ;;
  4042. ## Silicon Graphics machines
  4043. ## Iris 4D
  4044. mips-sgi-irix6.5 )
  4045. opsys=irix6-5
  4046. # Without defining _LANGUAGE_C, things get masked out in the headers
  4047. # so that, for instance, grepping for `free' in stdlib.h fails and
  4048. # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
  4049. NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
  4050. NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
  4051. ;;
  4052. ## Suns
  4053. *-sun-solaris* \
  4054. | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
  4055. | x86_64-*-solaris2* | x86_64-*-sunos5*)
  4056. case "${canonical}" in
  4057. i[3456]86-*-* ) machine=intel386 ;;
  4058. amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
  4059. sparc* ) machine=sparc ;;
  4060. * ) unported=yes ;;
  4061. esac
  4062. case "${canonical}" in
  4063. *-sunos5.6* | *-solaris2.6* )
  4064. opsys=sol2-6
  4065. NON_GNU_CPP=/usr/ccs/lib/cpp
  4066. RANLIB="ar -ts"
  4067. ;;
  4068. *-sunos5.[7-9]* | *-solaris2.[7-9]* )
  4069. opsys=sol2-6
  4070. emacs_check_sunpro_c=yes
  4071. NON_GNU_CPP=/usr/ccs/lib/cpp
  4072. ;;
  4073. *-sunos5* | *-solaris* )
  4074. opsys=sol2-10
  4075. emacs_check_sunpro_c=yes
  4076. NON_GNU_CPP=/usr/ccs/lib/cpp
  4077. ;;
  4078. esac
  4079. ## Watch out for a compiler that we know will not work.
  4080. case "${canonical}" in
  4081. *-solaris* | *-sunos5* )
  4082. if [ "x$CC" = x/usr/ucb/cc ]; then
  4083. ## /usr/ucb/cc doesn't work;
  4084. ## we should find some other compiler that does work.
  4085. unset CC
  4086. fi
  4087. ;;
  4088. *) ;;
  4089. esac
  4090. ;;
  4091. ## Intel 386 machines where we don't care about the manufacturer.
  4092. i[3456]86-*-* )
  4093. machine=intel386
  4094. case "${canonical}" in
  4095. *-cygwin ) opsys=cygwin ;;
  4096. *-darwin* ) opsys=darwin
  4097. CPP="${CC-cc} -E -no-cpp-precomp"
  4098. ;;
  4099. *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
  4100. *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
  4101. *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
  4102. ## Otherwise, we'll fall through to the generic opsys code at the bottom.
  4103. esac
  4104. ;;
  4105. * )
  4106. unported=yes
  4107. ;;
  4108. esac
  4109. ### If the code above didn't choose an operating system, just choose
  4110. ### an operating system based on the configuration name. You really
  4111. ### only want to use this when you have no idea what the right
  4112. ### operating system is; if you know what operating systems a machine
  4113. ### runs, it's cleaner to make it explicit in the case statement
  4114. ### above.
  4115. if test x"${opsys}" = x; then
  4116. case "${canonical}" in
  4117. *-gnu* ) opsys=gnu ;;
  4118. * )
  4119. unported=yes
  4120. ;;
  4121. esac
  4122. fi
  4123. if test $unported = yes; then
  4124. as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
  4125. Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
  4126. fi
  4127. if test -n "$machine"; then
  4128. machfile="m/${machine}.h"
  4129. else
  4130. machfile=
  4131. fi
  4132. opsysfile="s/${opsys}.h"
  4133. #### Choose a compiler.
  4134. test -n "$CC" && cc_specified=yes
  4135. # Save the value of CFLAGS that the user specified.
  4136. SPECIFIED_CFLAGS="$CFLAGS"
  4137. ac_ext=c
  4138. ac_cpp='$CPP $CPPFLAGS'
  4139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4142. if test -n "$ac_tool_prefix"; then
  4143. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4144. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4146. $as_echo_n "checking for $ac_word... " >&6; }
  4147. if test "${ac_cv_prog_CC+set}" = set; then :
  4148. $as_echo_n "(cached) " >&6
  4149. else
  4150. if test -n "$CC"; then
  4151. ac_cv_prog_CC="$CC" # Let the user override the test.
  4152. else
  4153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4154. for as_dir in $PATH
  4155. do
  4156. IFS=$as_save_IFS
  4157. test -z "$as_dir" && as_dir=.
  4158. for ac_exec_ext in '' $ac_executable_extensions; do
  4159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4160. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4162. break 2
  4163. fi
  4164. done
  4165. done
  4166. IFS=$as_save_IFS
  4167. fi
  4168. fi
  4169. CC=$ac_cv_prog_CC
  4170. if test -n "$CC"; then
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4172. $as_echo "$CC" >&6; }
  4173. else
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4175. $as_echo "no" >&6; }
  4176. fi
  4177. fi
  4178. if test -z "$ac_cv_prog_CC"; then
  4179. ac_ct_CC=$CC
  4180. # Extract the first word of "gcc", so it can be a program name with args.
  4181. set dummy gcc; ac_word=$2
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4183. $as_echo_n "checking for $ac_word... " >&6; }
  4184. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. if test -n "$ac_ct_CC"; then
  4188. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4189. else
  4190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4191. for as_dir in $PATH
  4192. do
  4193. IFS=$as_save_IFS
  4194. test -z "$as_dir" && as_dir=.
  4195. for ac_exec_ext in '' $ac_executable_extensions; do
  4196. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4197. ac_cv_prog_ac_ct_CC="gcc"
  4198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4199. break 2
  4200. fi
  4201. done
  4202. done
  4203. IFS=$as_save_IFS
  4204. fi
  4205. fi
  4206. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4207. if test -n "$ac_ct_CC"; then
  4208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4209. $as_echo "$ac_ct_CC" >&6; }
  4210. else
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4212. $as_echo "no" >&6; }
  4213. fi
  4214. if test "x$ac_ct_CC" = x; then
  4215. CC=""
  4216. else
  4217. case $cross_compiling:$ac_tool_warned in
  4218. yes:)
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4220. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4221. ac_tool_warned=yes ;;
  4222. esac
  4223. CC=$ac_ct_CC
  4224. fi
  4225. else
  4226. CC="$ac_cv_prog_CC"
  4227. fi
  4228. if test -z "$CC"; then
  4229. if test -n "$ac_tool_prefix"; then
  4230. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4231. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4233. $as_echo_n "checking for $ac_word... " >&6; }
  4234. if test "${ac_cv_prog_CC+set}" = set; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. if test -n "$CC"; then
  4238. ac_cv_prog_CC="$CC" # Let the user override the test.
  4239. else
  4240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4241. for as_dir in $PATH
  4242. do
  4243. IFS=$as_save_IFS
  4244. test -z "$as_dir" && as_dir=.
  4245. for ac_exec_ext in '' $ac_executable_extensions; do
  4246. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4247. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4249. break 2
  4250. fi
  4251. done
  4252. done
  4253. IFS=$as_save_IFS
  4254. fi
  4255. fi
  4256. CC=$ac_cv_prog_CC
  4257. if test -n "$CC"; then
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4259. $as_echo "$CC" >&6; }
  4260. else
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4262. $as_echo "no" >&6; }
  4263. fi
  4264. fi
  4265. fi
  4266. if test -z "$CC"; then
  4267. # Extract the first word of "cc", so it can be a program name with args.
  4268. set dummy cc; ac_word=$2
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4270. $as_echo_n "checking for $ac_word... " >&6; }
  4271. if test "${ac_cv_prog_CC+set}" = set; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. if test -n "$CC"; then
  4275. ac_cv_prog_CC="$CC" # Let the user override the test.
  4276. else
  4277. ac_prog_rejected=no
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4285. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4286. ac_prog_rejected=yes
  4287. continue
  4288. fi
  4289. ac_cv_prog_CC="cc"
  4290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4291. break 2
  4292. fi
  4293. done
  4294. done
  4295. IFS=$as_save_IFS
  4296. if test $ac_prog_rejected = yes; then
  4297. # We found a bogon in the path, so make sure we never use it.
  4298. set dummy $ac_cv_prog_CC
  4299. shift
  4300. if test $# != 0; then
  4301. # We chose a different compiler from the bogus one.
  4302. # However, it has the same basename, so the bogon will be chosen
  4303. # first if we set CC to just the basename; use the full file name.
  4304. shift
  4305. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4306. fi
  4307. fi
  4308. fi
  4309. fi
  4310. CC=$ac_cv_prog_CC
  4311. if test -n "$CC"; then
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4313. $as_echo "$CC" >&6; }
  4314. else
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4316. $as_echo "no" >&6; }
  4317. fi
  4318. fi
  4319. if test -z "$CC"; then
  4320. if test -n "$ac_tool_prefix"; then
  4321. for ac_prog in cl.exe
  4322. do
  4323. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4324. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4326. $as_echo_n "checking for $ac_word... " >&6; }
  4327. if test "${ac_cv_prog_CC+set}" = set; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. if test -n "$CC"; then
  4331. ac_cv_prog_CC="$CC" # Let the user override the test.
  4332. else
  4333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4334. for as_dir in $PATH
  4335. do
  4336. IFS=$as_save_IFS
  4337. test -z "$as_dir" && as_dir=.
  4338. for ac_exec_ext in '' $ac_executable_extensions; do
  4339. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4340. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4342. break 2
  4343. fi
  4344. done
  4345. done
  4346. IFS=$as_save_IFS
  4347. fi
  4348. fi
  4349. CC=$ac_cv_prog_CC
  4350. if test -n "$CC"; then
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4352. $as_echo "$CC" >&6; }
  4353. else
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4355. $as_echo "no" >&6; }
  4356. fi
  4357. test -n "$CC" && break
  4358. done
  4359. fi
  4360. if test -z "$CC"; then
  4361. ac_ct_CC=$CC
  4362. for ac_prog in cl.exe
  4363. do
  4364. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4365. set dummy $ac_prog; ac_word=$2
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4367. $as_echo_n "checking for $ac_word... " >&6; }
  4368. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4369. $as_echo_n "(cached) " >&6
  4370. else
  4371. if test -n "$ac_ct_CC"; then
  4372. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4373. else
  4374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4375. for as_dir in $PATH
  4376. do
  4377. IFS=$as_save_IFS
  4378. test -z "$as_dir" && as_dir=.
  4379. for ac_exec_ext in '' $ac_executable_extensions; do
  4380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4381. ac_cv_prog_ac_ct_CC="$ac_prog"
  4382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4383. break 2
  4384. fi
  4385. done
  4386. done
  4387. IFS=$as_save_IFS
  4388. fi
  4389. fi
  4390. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4391. if test -n "$ac_ct_CC"; then
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4393. $as_echo "$ac_ct_CC" >&6; }
  4394. else
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4396. $as_echo "no" >&6; }
  4397. fi
  4398. test -n "$ac_ct_CC" && break
  4399. done
  4400. if test "x$ac_ct_CC" = x; then
  4401. CC=""
  4402. else
  4403. case $cross_compiling:$ac_tool_warned in
  4404. yes:)
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4406. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4407. ac_tool_warned=yes ;;
  4408. esac
  4409. CC=$ac_ct_CC
  4410. fi
  4411. fi
  4412. fi
  4413. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4414. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4415. as_fn_error "no acceptable C compiler found in \$PATH
  4416. See \`config.log' for more details." "$LINENO" 5; }
  4417. # Provide some information about the compiler.
  4418. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4419. set X $ac_compile
  4420. ac_compiler=$2
  4421. for ac_option in --version -v -V -qversion; do
  4422. { { ac_try="$ac_compiler $ac_option >&5"
  4423. case "(($ac_try" in
  4424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4425. *) ac_try_echo=$ac_try;;
  4426. esac
  4427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4428. $as_echo "$ac_try_echo"; } >&5
  4429. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4430. ac_status=$?
  4431. if test -s conftest.err; then
  4432. sed '10a\
  4433. ... rest of stderr output deleted ...
  4434. 10q' conftest.err >conftest.er1
  4435. cat conftest.er1 >&5
  4436. fi
  4437. rm -f conftest.er1 conftest.err
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4439. test $ac_status = 0; }
  4440. done
  4441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4442. /* end confdefs.h. */
  4443. int
  4444. main ()
  4445. {
  4446. ;
  4447. return 0;
  4448. }
  4449. _ACEOF
  4450. ac_clean_files_save=$ac_clean_files
  4451. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4452. # Try to create an executable without -o first, disregard a.out.
  4453. # It will help us diagnose broken compilers, and finding out an intuition
  4454. # of exeext.
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4456. $as_echo_n "checking whether the C compiler works... " >&6; }
  4457. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4458. # The possible output files:
  4459. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4460. ac_rmfiles=
  4461. for ac_file in $ac_files
  4462. do
  4463. case $ac_file in
  4464. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4465. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4466. esac
  4467. done
  4468. rm -f $ac_rmfiles
  4469. if { { ac_try="$ac_link_default"
  4470. case "(($ac_try" in
  4471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4472. *) ac_try_echo=$ac_try;;
  4473. esac
  4474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4475. $as_echo "$ac_try_echo"; } >&5
  4476. (eval "$ac_link_default") 2>&5
  4477. ac_status=$?
  4478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4479. test $ac_status = 0; }; then :
  4480. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4481. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4482. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4483. # so that the user can short-circuit this test for compilers unknown to
  4484. # Autoconf.
  4485. for ac_file in $ac_files ''
  4486. do
  4487. test -f "$ac_file" || continue
  4488. case $ac_file in
  4489. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4490. ;;
  4491. [ab].out )
  4492. # We found the default executable, but exeext='' is most
  4493. # certainly right.
  4494. break;;
  4495. *.* )
  4496. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4497. then :; else
  4498. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4499. fi
  4500. # We set ac_cv_exeext here because the later test for it is not
  4501. # safe: cross compilers may not add the suffix if given an `-o'
  4502. # argument, so we may need to know it at that point already.
  4503. # Even if this section looks crufty: it has the advantage of
  4504. # actually working.
  4505. break;;
  4506. * )
  4507. break;;
  4508. esac
  4509. done
  4510. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4511. else
  4512. ac_file=''
  4513. fi
  4514. if test -z "$ac_file"; then :
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4516. $as_echo "no" >&6; }
  4517. $as_echo "$as_me: failed program was:" >&5
  4518. sed 's/^/| /' conftest.$ac_ext >&5
  4519. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4520. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4521. { as_fn_set_status 77
  4522. as_fn_error "C compiler cannot create executables
  4523. See \`config.log' for more details." "$LINENO" 5; }; }
  4524. else
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4526. $as_echo "yes" >&6; }
  4527. fi
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4529. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4531. $as_echo "$ac_file" >&6; }
  4532. ac_exeext=$ac_cv_exeext
  4533. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4534. ac_clean_files=$ac_clean_files_save
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4536. $as_echo_n "checking for suffix of executables... " >&6; }
  4537. if { { ac_try="$ac_link"
  4538. case "(($ac_try" in
  4539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4540. *) ac_try_echo=$ac_try;;
  4541. esac
  4542. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4543. $as_echo "$ac_try_echo"; } >&5
  4544. (eval "$ac_link") 2>&5
  4545. ac_status=$?
  4546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4547. test $ac_status = 0; }; then :
  4548. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4549. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4550. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4551. # `rm'.
  4552. for ac_file in conftest.exe conftest conftest.*; do
  4553. test -f "$ac_file" || continue
  4554. case $ac_file in
  4555. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4556. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4557. break;;
  4558. * ) break;;
  4559. esac
  4560. done
  4561. else
  4562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4564. as_fn_error "cannot compute suffix of executables: cannot compile and link
  4565. See \`config.log' for more details." "$LINENO" 5; }
  4566. fi
  4567. rm -f conftest conftest$ac_cv_exeext
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4569. $as_echo "$ac_cv_exeext" >&6; }
  4570. rm -f conftest.$ac_ext
  4571. EXEEXT=$ac_cv_exeext
  4572. ac_exeext=$EXEEXT
  4573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4574. /* end confdefs.h. */
  4575. #include <stdio.h>
  4576. int
  4577. main ()
  4578. {
  4579. FILE *f = fopen ("conftest.out", "w");
  4580. return ferror (f) || fclose (f) != 0;
  4581. ;
  4582. return 0;
  4583. }
  4584. _ACEOF
  4585. ac_clean_files="$ac_clean_files conftest.out"
  4586. # Check that the compiler produces executables we can run. If not, either
  4587. # the compiler is broken, or we cross compile.
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4589. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4590. if test "$cross_compiling" != yes; then
  4591. { { ac_try="$ac_link"
  4592. case "(($ac_try" in
  4593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4594. *) ac_try_echo=$ac_try;;
  4595. esac
  4596. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4597. $as_echo "$ac_try_echo"; } >&5
  4598. (eval "$ac_link") 2>&5
  4599. ac_status=$?
  4600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4601. test $ac_status = 0; }
  4602. if { ac_try='./conftest$ac_cv_exeext'
  4603. { { case "(($ac_try" in
  4604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4605. *) ac_try_echo=$ac_try;;
  4606. esac
  4607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4608. $as_echo "$ac_try_echo"; } >&5
  4609. (eval "$ac_try") 2>&5
  4610. ac_status=$?
  4611. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4612. test $ac_status = 0; }; }; then
  4613. cross_compiling=no
  4614. else
  4615. if test "$cross_compiling" = maybe; then
  4616. cross_compiling=yes
  4617. else
  4618. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4619. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4620. as_fn_error "cannot run C compiled programs.
  4621. If you meant to cross compile, use \`--host'.
  4622. See \`config.log' for more details." "$LINENO" 5; }
  4623. fi
  4624. fi
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4627. $as_echo "$cross_compiling" >&6; }
  4628. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4629. ac_clean_files=$ac_clean_files_save
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4631. $as_echo_n "checking for suffix of object files... " >&6; }
  4632. if test "${ac_cv_objext+set}" = set; then :
  4633. $as_echo_n "(cached) " >&6
  4634. else
  4635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4636. /* end confdefs.h. */
  4637. int
  4638. main ()
  4639. {
  4640. ;
  4641. return 0;
  4642. }
  4643. _ACEOF
  4644. rm -f conftest.o conftest.obj
  4645. if { { ac_try="$ac_compile"
  4646. case "(($ac_try" in
  4647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4648. *) ac_try_echo=$ac_try;;
  4649. esac
  4650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4651. $as_echo "$ac_try_echo"; } >&5
  4652. (eval "$ac_compile") 2>&5
  4653. ac_status=$?
  4654. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4655. test $ac_status = 0; }; then :
  4656. for ac_file in conftest.o conftest.obj conftest.*; do
  4657. test -f "$ac_file" || continue;
  4658. case $ac_file in
  4659. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4660. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4661. break;;
  4662. esac
  4663. done
  4664. else
  4665. $as_echo "$as_me: failed program was:" >&5
  4666. sed 's/^/| /' conftest.$ac_ext >&5
  4667. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4668. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4669. as_fn_error "cannot compute suffix of object files: cannot compile
  4670. See \`config.log' for more details." "$LINENO" 5; }
  4671. fi
  4672. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4673. fi
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4675. $as_echo "$ac_cv_objext" >&6; }
  4676. OBJEXT=$ac_cv_objext
  4677. ac_objext=$OBJEXT
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4679. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4680. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4681. $as_echo_n "(cached) " >&6
  4682. else
  4683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4684. /* end confdefs.h. */
  4685. int
  4686. main ()
  4687. {
  4688. #ifndef __GNUC__
  4689. choke me
  4690. #endif
  4691. ;
  4692. return 0;
  4693. }
  4694. _ACEOF
  4695. if ac_fn_c_try_compile "$LINENO"; then :
  4696. ac_compiler_gnu=yes
  4697. else
  4698. ac_compiler_gnu=no
  4699. fi
  4700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4701. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4702. fi
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4704. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4705. if test $ac_compiler_gnu = yes; then
  4706. GCC=yes
  4707. else
  4708. GCC=
  4709. fi
  4710. ac_test_CFLAGS=${CFLAGS+set}
  4711. ac_save_CFLAGS=$CFLAGS
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4713. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4714. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4715. $as_echo_n "(cached) " >&6
  4716. else
  4717. ac_save_c_werror_flag=$ac_c_werror_flag
  4718. ac_c_werror_flag=yes
  4719. ac_cv_prog_cc_g=no
  4720. CFLAGS="-g"
  4721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4722. /* end confdefs.h. */
  4723. int
  4724. main ()
  4725. {
  4726. ;
  4727. return 0;
  4728. }
  4729. _ACEOF
  4730. if ac_fn_c_try_compile "$LINENO"; then :
  4731. ac_cv_prog_cc_g=yes
  4732. else
  4733. CFLAGS=""
  4734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4735. /* end confdefs.h. */
  4736. int
  4737. main ()
  4738. {
  4739. ;
  4740. return 0;
  4741. }
  4742. _ACEOF
  4743. if ac_fn_c_try_compile "$LINENO"; then :
  4744. else
  4745. ac_c_werror_flag=$ac_save_c_werror_flag
  4746. CFLAGS="-g"
  4747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4748. /* end confdefs.h. */
  4749. int
  4750. main ()
  4751. {
  4752. ;
  4753. return 0;
  4754. }
  4755. _ACEOF
  4756. if ac_fn_c_try_compile "$LINENO"; then :
  4757. ac_cv_prog_cc_g=yes
  4758. fi
  4759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4760. fi
  4761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4762. fi
  4763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4764. ac_c_werror_flag=$ac_save_c_werror_flag
  4765. fi
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4767. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4768. if test "$ac_test_CFLAGS" = set; then
  4769. CFLAGS=$ac_save_CFLAGS
  4770. elif test $ac_cv_prog_cc_g = yes; then
  4771. if test "$GCC" = yes; then
  4772. CFLAGS="-g -O2"
  4773. else
  4774. CFLAGS="-g"
  4775. fi
  4776. else
  4777. if test "$GCC" = yes; then
  4778. CFLAGS="-O2"
  4779. else
  4780. CFLAGS=
  4781. fi
  4782. fi
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4784. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4785. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4786. $as_echo_n "(cached) " >&6
  4787. else
  4788. ac_cv_prog_cc_c89=no
  4789. ac_save_CC=$CC
  4790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4791. /* end confdefs.h. */
  4792. #include <stdarg.h>
  4793. #include <stdio.h>
  4794. #include <sys/types.h>
  4795. #include <sys/stat.h>
  4796. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4797. struct buf { int x; };
  4798. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4799. static char *e (p, i)
  4800. char **p;
  4801. int i;
  4802. {
  4803. return p[i];
  4804. }
  4805. static char *f (char * (*g) (char **, int), char **p, ...)
  4806. {
  4807. char *s;
  4808. va_list v;
  4809. va_start (v,p);
  4810. s = g (p, va_arg (v,int));
  4811. va_end (v);
  4812. return s;
  4813. }
  4814. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4815. function prototypes and stuff, but not '\xHH' hex character constants.
  4816. These don't provoke an error unfortunately, instead are silently treated
  4817. as 'x'. The following induces an error, until -std is added to get
  4818. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4819. array size at least. It's necessary to write '\x00'==0 to get something
  4820. that's true only with -std. */
  4821. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4822. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4823. inside strings and character constants. */
  4824. #define FOO(x) 'x'
  4825. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4826. int test (int i, double x);
  4827. struct s1 {int (*f) (int a);};
  4828. struct s2 {int (*f) (double a);};
  4829. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4830. int argc;
  4831. char **argv;
  4832. int
  4833. main ()
  4834. {
  4835. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4836. ;
  4837. return 0;
  4838. }
  4839. _ACEOF
  4840. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4841. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4842. do
  4843. CC="$ac_save_CC $ac_arg"
  4844. if ac_fn_c_try_compile "$LINENO"; then :
  4845. ac_cv_prog_cc_c89=$ac_arg
  4846. fi
  4847. rm -f core conftest.err conftest.$ac_objext
  4848. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4849. done
  4850. rm -f conftest.$ac_ext
  4851. CC=$ac_save_CC
  4852. fi
  4853. # AC_CACHE_VAL
  4854. case "x$ac_cv_prog_cc_c89" in
  4855. x)
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4857. $as_echo "none needed" >&6; } ;;
  4858. xno)
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4860. $as_echo "unsupported" >&6; } ;;
  4861. *)
  4862. CC="$CC $ac_cv_prog_cc_c89"
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4864. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4865. esac
  4866. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4867. fi
  4868. ac_ext=c
  4869. ac_cpp='$CPP $CPPFLAGS'
  4870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4873. DEPDIR="${am__leading_dot}deps"
  4874. ac_config_commands="$ac_config_commands depfiles"
  4875. am_make=${MAKE-make}
  4876. cat > confinc << 'END'
  4877. am__doit:
  4878. @echo this is the am__doit target
  4879. .PHONY: am__doit
  4880. END
  4881. # If we don't find an include directive, just comment out the code.
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4883. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4884. am__include="#"
  4885. am__quote=
  4886. _am_result=none
  4887. # First try GNU make style include.
  4888. echo "include confinc" > confmf
  4889. # Ignore all kinds of additional output from `make'.
  4890. case `$am_make -s -f confmf 2> /dev/null` in #(
  4891. *the\ am__doit\ target*)
  4892. am__include=include
  4893. am__quote=
  4894. _am_result=GNU
  4895. ;;
  4896. esac
  4897. # Now try BSD make style include.
  4898. if test "$am__include" = "#"; then
  4899. echo '.include "confinc"' > confmf
  4900. case `$am_make -s -f confmf 2> /dev/null` in #(
  4901. *the\ am__doit\ target*)
  4902. am__include=.include
  4903. am__quote="\""
  4904. _am_result=BSD
  4905. ;;
  4906. esac
  4907. fi
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4909. $as_echo "$_am_result" >&6; }
  4910. rm -f confinc confmf
  4911. # Check whether --enable-dependency-tracking was given.
  4912. if test "${enable_dependency_tracking+set}" = set; then :
  4913. enableval=$enable_dependency_tracking;
  4914. fi
  4915. if test "x$enable_dependency_tracking" != xno; then
  4916. am_depcomp="$ac_aux_dir/depcomp"
  4917. AMDEPBACKSLASH='\'
  4918. fi
  4919. if test "x$enable_dependency_tracking" != xno; then
  4920. AMDEP_TRUE=
  4921. AMDEP_FALSE='#'
  4922. else
  4923. AMDEP_TRUE='#'
  4924. AMDEP_FALSE=
  4925. fi
  4926. depcc="$CC" am_compiler_list=
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4928. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4929. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4933. # We make a subdir and do the tests there. Otherwise we can end up
  4934. # making bogus files that we don't know about and never remove. For
  4935. # instance it was reported that on HP-UX the gcc test will end up
  4936. # making a dummy file named `D' -- because `-MD' means `put the output
  4937. # in D'.
  4938. mkdir conftest.dir
  4939. # Copy depcomp to subdir because otherwise we won't find it if we're
  4940. # using a relative directory.
  4941. cp "$am_depcomp" conftest.dir
  4942. cd conftest.dir
  4943. # We will build objects and dependencies in a subdirectory because
  4944. # it helps to detect inapplicable dependency modes. For instance
  4945. # both Tru64's cc and ICC support -MD to output dependencies as a
  4946. # side effect of compilation, but ICC will put the dependencies in
  4947. # the current directory while Tru64 will put them in the object
  4948. # directory.
  4949. mkdir sub
  4950. am_cv_CC_dependencies_compiler_type=none
  4951. if test "$am_compiler_list" = ""; then
  4952. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4953. fi
  4954. am__universal=false
  4955. case " $depcc " in #(
  4956. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4957. esac
  4958. for depmode in $am_compiler_list; do
  4959. # Setup a source with many dependencies, because some compilers
  4960. # like to wrap large dependency lists on column 80 (with \), and
  4961. # we should not choose a depcomp mode which is confused by this.
  4962. #
  4963. # We need to recreate these files for each test, as the compiler may
  4964. # overwrite some of them when testing with obscure command lines.
  4965. # This happens at least with the AIX C compiler.
  4966. : > sub/conftest.c
  4967. for i in 1 2 3 4 5 6; do
  4968. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4969. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4970. # Solaris 8's {/usr,}/bin/sh.
  4971. touch sub/conftst$i.h
  4972. done
  4973. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4974. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4975. # mode. It turns out that the SunPro C++ compiler does not properly
  4976. # handle `-M -o', and we need to detect this. Also, some Intel
  4977. # versions had trouble with output in subdirs
  4978. am__obj=sub/conftest.${OBJEXT-o}
  4979. am__minus_obj="-o $am__obj"
  4980. case $depmode in
  4981. gcc)
  4982. # This depmode causes a compiler race in universal mode.
  4983. test "$am__universal" = false || continue
  4984. ;;
  4985. nosideeffect)
  4986. # after this tag, mechanisms are not by side-effect, so they'll
  4987. # only be used when explicitly requested
  4988. if test "x$enable_dependency_tracking" = xyes; then
  4989. continue
  4990. else
  4991. break
  4992. fi
  4993. ;;
  4994. msvisualcpp | msvcmsys)
  4995. # This compiler won't grok `-c -o', but also, the minuso test has
  4996. # not run yet. These depmodes are late enough in the game, and
  4997. # so weak that their functioning should not be impacted.
  4998. am__obj=conftest.${OBJEXT-o}
  4999. am__minus_obj=
  5000. ;;
  5001. none) break ;;
  5002. esac
  5003. if depmode=$depmode \
  5004. source=sub/conftest.c object=$am__obj \
  5005. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5006. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5007. >/dev/null 2>conftest.err &&
  5008. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5009. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5010. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5011. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5012. # icc doesn't choke on unknown options, it will just issue warnings
  5013. # or remarks (even with -Werror). So we grep stderr for any message
  5014. # that says an option was ignored or not supported.
  5015. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5016. # icc: Command line warning: ignoring option '-M'; no argument required
  5017. # The diagnosis changed in icc 8.0:
  5018. # icc: Command line remark: option '-MP' not supported
  5019. if (grep 'ignoring option' conftest.err ||
  5020. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5021. am_cv_CC_dependencies_compiler_type=$depmode
  5022. break
  5023. fi
  5024. fi
  5025. done
  5026. cd ..
  5027. rm -rf conftest.dir
  5028. else
  5029. am_cv_CC_dependencies_compiler_type=none
  5030. fi
  5031. fi
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5033. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5034. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5035. if
  5036. test "x$enable_dependency_tracking" != xno \
  5037. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5038. am__fastdepCC_TRUE=
  5039. am__fastdepCC_FALSE='#'
  5040. else
  5041. am__fastdepCC_TRUE='#'
  5042. am__fastdepCC_FALSE=
  5043. fi
  5044. if test "x$CC" != xcc; then
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  5046. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  5047. else
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  5049. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  5050. fi
  5051. set dummy $CC; ac_cc=`$as_echo "$2" |
  5052. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5053. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5057. /* end confdefs.h. */
  5058. int
  5059. main ()
  5060. {
  5061. ;
  5062. return 0;
  5063. }
  5064. _ACEOF
  5065. # Make sure it works both with $CC and with simple cc.
  5066. # We do the test twice because some compilers refuse to overwrite an
  5067. # existing .o file with -o, though they will create one.
  5068. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5069. rm -f conftest2.*
  5070. if { { case "(($ac_try" in
  5071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5072. *) ac_try_echo=$ac_try;;
  5073. esac
  5074. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5075. $as_echo "$ac_try_echo"; } >&5
  5076. (eval "$ac_try") 2>&5
  5077. ac_status=$?
  5078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5079. test $ac_status = 0; } &&
  5080. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5082. *) ac_try_echo=$ac_try;;
  5083. esac
  5084. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5085. $as_echo "$ac_try_echo"; } >&5
  5086. (eval "$ac_try") 2>&5
  5087. ac_status=$?
  5088. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5089. test $ac_status = 0; };
  5090. then
  5091. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5092. if test "x$CC" != xcc; then
  5093. # Test first that cc exists at all.
  5094. if { ac_try='cc -c conftest.$ac_ext >&5'
  5095. { { case "(($ac_try" in
  5096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5097. *) ac_try_echo=$ac_try;;
  5098. esac
  5099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5100. $as_echo "$ac_try_echo"; } >&5
  5101. (eval "$ac_try") 2>&5
  5102. ac_status=$?
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5104. test $ac_status = 0; }; }; then
  5105. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5106. rm -f conftest2.*
  5107. if { { case "(($ac_try" in
  5108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5109. *) ac_try_echo=$ac_try;;
  5110. esac
  5111. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5112. $as_echo "$ac_try_echo"; } >&5
  5113. (eval "$ac_try") 2>&5
  5114. ac_status=$?
  5115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5116. test $ac_status = 0; } &&
  5117. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5119. *) ac_try_echo=$ac_try;;
  5120. esac
  5121. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5122. $as_echo "$ac_try_echo"; } >&5
  5123. (eval "$ac_try") 2>&5
  5124. ac_status=$?
  5125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5126. test $ac_status = 0; };
  5127. then
  5128. # cc works too.
  5129. :
  5130. else
  5131. # cc exists but doesn't like -o.
  5132. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5133. fi
  5134. fi
  5135. fi
  5136. else
  5137. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5138. fi
  5139. rm -f core conftest*
  5140. fi
  5141. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5143. $as_echo "yes" >&6; }
  5144. else
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5146. $as_echo "no" >&6; }
  5147. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  5148. fi
  5149. # FIXME: we rely on the cache variable name because
  5150. # there is no other way.
  5151. set dummy $CC
  5152. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5153. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5154. if test "$am_t" != yes; then
  5155. # Losing compiler, so override with the script.
  5156. # FIXME: It is wrong to rewrite CC.
  5157. # But if we don't then we get into trouble of one sort or another.
  5158. # A longer-term fix would be to have automake use am__CC in this case,
  5159. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5160. CC="$am_aux_dir/compile $CC"
  5161. fi
  5162. # Initialize gnulib right after verifying that the C compiler works.
  5163. ac_ext=c
  5164. ac_cpp='$CPP $CPPFLAGS'
  5165. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5166. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5167. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5169. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5170. # On Suns, sometimes $CPP names a directory.
  5171. if test -n "$CPP" && test -d "$CPP"; then
  5172. CPP=
  5173. fi
  5174. if test -z "$CPP"; then
  5175. if test "${ac_cv_prog_CPP+set}" = set; then :
  5176. $as_echo_n "(cached) " >&6
  5177. else
  5178. # Double quotes because CPP needs to be expanded
  5179. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5180. do
  5181. ac_preproc_ok=false
  5182. for ac_c_preproc_warn_flag in '' yes
  5183. do
  5184. # Use a header file that comes with gcc, so configuring glibc
  5185. # with a fresh cross-compiler works.
  5186. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5187. # <limits.h> exists even on freestanding compilers.
  5188. # On the NeXT, cc -E runs the code through the compiler's parser,
  5189. # not just through cpp. "Syntax error" is here to catch this case.
  5190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5191. /* end confdefs.h. */
  5192. #ifdef __STDC__
  5193. # include <limits.h>
  5194. #else
  5195. # include <assert.h>
  5196. #endif
  5197. Syntax error
  5198. _ACEOF
  5199. if ac_fn_c_try_cpp "$LINENO"; then :
  5200. else
  5201. # Broken: fails on valid input.
  5202. continue
  5203. fi
  5204. rm -f conftest.err conftest.$ac_ext
  5205. # OK, works on sane cases. Now check whether nonexistent headers
  5206. # can be detected and how.
  5207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5208. /* end confdefs.h. */
  5209. #include <ac_nonexistent.h>
  5210. _ACEOF
  5211. if ac_fn_c_try_cpp "$LINENO"; then :
  5212. # Broken: success on invalid input.
  5213. continue
  5214. else
  5215. # Passes both tests.
  5216. ac_preproc_ok=:
  5217. break
  5218. fi
  5219. rm -f conftest.err conftest.$ac_ext
  5220. done
  5221. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5222. rm -f conftest.err conftest.$ac_ext
  5223. if $ac_preproc_ok; then :
  5224. break
  5225. fi
  5226. done
  5227. ac_cv_prog_CPP=$CPP
  5228. fi
  5229. CPP=$ac_cv_prog_CPP
  5230. else
  5231. ac_cv_prog_CPP=$CPP
  5232. fi
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5234. $as_echo "$CPP" >&6; }
  5235. ac_preproc_ok=false
  5236. for ac_c_preproc_warn_flag in '' yes
  5237. do
  5238. # Use a header file that comes with gcc, so configuring glibc
  5239. # with a fresh cross-compiler works.
  5240. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5241. # <limits.h> exists even on freestanding compilers.
  5242. # On the NeXT, cc -E runs the code through the compiler's parser,
  5243. # not just through cpp. "Syntax error" is here to catch this case.
  5244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5245. /* end confdefs.h. */
  5246. #ifdef __STDC__
  5247. # include <limits.h>
  5248. #else
  5249. # include <assert.h>
  5250. #endif
  5251. Syntax error
  5252. _ACEOF
  5253. if ac_fn_c_try_cpp "$LINENO"; then :
  5254. else
  5255. # Broken: fails on valid input.
  5256. continue
  5257. fi
  5258. rm -f conftest.err conftest.$ac_ext
  5259. # OK, works on sane cases. Now check whether nonexistent headers
  5260. # can be detected and how.
  5261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5262. /* end confdefs.h. */
  5263. #include <ac_nonexistent.h>
  5264. _ACEOF
  5265. if ac_fn_c_try_cpp "$LINENO"; then :
  5266. # Broken: success on invalid input.
  5267. continue
  5268. else
  5269. # Passes both tests.
  5270. ac_preproc_ok=:
  5271. break
  5272. fi
  5273. rm -f conftest.err conftest.$ac_ext
  5274. done
  5275. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5276. rm -f conftest.err conftest.$ac_ext
  5277. if $ac_preproc_ok; then :
  5278. else
  5279. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5281. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  5282. See \`config.log' for more details." "$LINENO" 5; }
  5283. fi
  5284. ac_ext=c
  5285. ac_cpp='$CPP $CPPFLAGS'
  5286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5290. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5291. if test "${ac_cv_path_GREP+set}" = set; then :
  5292. $as_echo_n "(cached) " >&6
  5293. else
  5294. if test -z "$GREP"; then
  5295. ac_path_GREP_found=false
  5296. # Loop through the user's path and test for each of PROGNAME-LIST
  5297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5298. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5299. do
  5300. IFS=$as_save_IFS
  5301. test -z "$as_dir" && as_dir=.
  5302. for ac_prog in grep ggrep; do
  5303. for ac_exec_ext in '' $ac_executable_extensions; do
  5304. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5305. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5306. # Check for GNU ac_path_GREP and select it if it is found.
  5307. # Check for GNU $ac_path_GREP
  5308. case `"$ac_path_GREP" --version 2>&1` in
  5309. *GNU*)
  5310. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5311. *)
  5312. ac_count=0
  5313. $as_echo_n 0123456789 >"conftest.in"
  5314. while :
  5315. do
  5316. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5317. mv "conftest.tmp" "conftest.in"
  5318. cp "conftest.in" "conftest.nl"
  5319. $as_echo 'GREP' >> "conftest.nl"
  5320. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5321. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5322. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5323. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5324. # Best one so far, save it but keep looking for a better one
  5325. ac_cv_path_GREP="$ac_path_GREP"
  5326. ac_path_GREP_max=$ac_count
  5327. fi
  5328. # 10*(2^10) chars as input seems more than enough
  5329. test $ac_count -gt 10 && break
  5330. done
  5331. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5332. esac
  5333. $ac_path_GREP_found && break 3
  5334. done
  5335. done
  5336. done
  5337. IFS=$as_save_IFS
  5338. if test -z "$ac_cv_path_GREP"; then
  5339. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5340. fi
  5341. else
  5342. ac_cv_path_GREP=$GREP
  5343. fi
  5344. fi
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5346. $as_echo "$ac_cv_path_GREP" >&6; }
  5347. GREP="$ac_cv_path_GREP"
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5349. $as_echo_n "checking for egrep... " >&6; }
  5350. if test "${ac_cv_path_EGREP+set}" = set; then :
  5351. $as_echo_n "(cached) " >&6
  5352. else
  5353. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5354. then ac_cv_path_EGREP="$GREP -E"
  5355. else
  5356. if test -z "$EGREP"; then
  5357. ac_path_EGREP_found=false
  5358. # Loop through the user's path and test for each of PROGNAME-LIST
  5359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5360. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5361. do
  5362. IFS=$as_save_IFS
  5363. test -z "$as_dir" && as_dir=.
  5364. for ac_prog in egrep; do
  5365. for ac_exec_ext in '' $ac_executable_extensions; do
  5366. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5367. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5368. # Check for GNU ac_path_EGREP and select it if it is found.
  5369. # Check for GNU $ac_path_EGREP
  5370. case `"$ac_path_EGREP" --version 2>&1` in
  5371. *GNU*)
  5372. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5373. *)
  5374. ac_count=0
  5375. $as_echo_n 0123456789 >"conftest.in"
  5376. while :
  5377. do
  5378. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5379. mv "conftest.tmp" "conftest.in"
  5380. cp "conftest.in" "conftest.nl"
  5381. $as_echo 'EGREP' >> "conftest.nl"
  5382. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5383. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5384. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5385. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5386. # Best one so far, save it but keep looking for a better one
  5387. ac_cv_path_EGREP="$ac_path_EGREP"
  5388. ac_path_EGREP_max=$ac_count
  5389. fi
  5390. # 10*(2^10) chars as input seems more than enough
  5391. test $ac_count -gt 10 && break
  5392. done
  5393. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5394. esac
  5395. $ac_path_EGREP_found && break 3
  5396. done
  5397. done
  5398. done
  5399. IFS=$as_save_IFS
  5400. if test -z "$ac_cv_path_EGREP"; then
  5401. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5402. fi
  5403. else
  5404. ac_cv_path_EGREP=$EGREP
  5405. fi
  5406. fi
  5407. fi
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5409. $as_echo "$ac_cv_path_EGREP" >&6; }
  5410. EGREP="$ac_cv_path_EGREP"
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
  5412. $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
  5413. if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
  5414. $as_echo_n "(cached) " >&6
  5415. else
  5416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5417. /* end confdefs.h. */
  5418. #ifdef __ACK__
  5419. Amsterdam
  5420. #endif
  5421. _ACEOF
  5422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5423. $EGREP "Amsterdam" >/dev/null 2>&1; then :
  5424. gl_cv_c_amsterdam_compiler=yes
  5425. else
  5426. gl_cv_c_amsterdam_compiler=no
  5427. fi
  5428. rm -f conftest*
  5429. fi
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
  5431. $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
  5432. if test -z "$AR"; then
  5433. if test $gl_cv_c_amsterdam_compiler = yes; then
  5434. AR='cc -c.a'
  5435. if test -z "$ARFLAGS"; then
  5436. ARFLAGS='-o'
  5437. fi
  5438. else
  5439. if test -n "$ac_tool_prefix"; then
  5440. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5441. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5443. $as_echo_n "checking for $ac_word... " >&6; }
  5444. if test "${ac_cv_prog_AR+set}" = set; then :
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. if test -n "$AR"; then
  5448. ac_cv_prog_AR="$AR" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. test -z "$as_dir" && as_dir=.
  5455. for ac_exec_ext in '' $ac_executable_extensions; do
  5456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5457. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5459. break 2
  5460. fi
  5461. done
  5462. done
  5463. IFS=$as_save_IFS
  5464. fi
  5465. fi
  5466. AR=$ac_cv_prog_AR
  5467. if test -n "$AR"; then
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5469. $as_echo "$AR" >&6; }
  5470. else
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5472. $as_echo "no" >&6; }
  5473. fi
  5474. fi
  5475. if test -z "$ac_cv_prog_AR"; then
  5476. ac_ct_AR=$AR
  5477. # Extract the first word of "ar", so it can be a program name with args.
  5478. set dummy ar; ac_word=$2
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5480. $as_echo_n "checking for $ac_word... " >&6; }
  5481. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. if test -n "$ac_ct_AR"; then
  5485. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5486. else
  5487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5488. for as_dir in $PATH
  5489. do
  5490. IFS=$as_save_IFS
  5491. test -z "$as_dir" && as_dir=.
  5492. for ac_exec_ext in '' $ac_executable_extensions; do
  5493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5494. ac_cv_prog_ac_ct_AR="ar"
  5495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5496. break 2
  5497. fi
  5498. done
  5499. done
  5500. IFS=$as_save_IFS
  5501. fi
  5502. fi
  5503. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5504. if test -n "$ac_ct_AR"; then
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5506. $as_echo "$ac_ct_AR" >&6; }
  5507. else
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5509. $as_echo "no" >&6; }
  5510. fi
  5511. if test "x$ac_ct_AR" = x; then
  5512. AR="ar"
  5513. else
  5514. case $cross_compiling:$ac_tool_warned in
  5515. yes:)
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5518. ac_tool_warned=yes ;;
  5519. esac
  5520. AR=$ac_ct_AR
  5521. fi
  5522. else
  5523. AR="$ac_cv_prog_AR"
  5524. fi
  5525. if test -z "$ARFLAGS"; then
  5526. ARFLAGS='cru'
  5527. fi
  5528. fi
  5529. else
  5530. if test -z "$ARFLAGS"; then
  5531. ARFLAGS='cru'
  5532. fi
  5533. fi
  5534. if test -z "$RANLIB"; then
  5535. if test $gl_cv_c_amsterdam_compiler = yes; then
  5536. RANLIB=':'
  5537. else
  5538. if test -n "$ac_tool_prefix"; then
  5539. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5540. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5542. $as_echo_n "checking for $ac_word... " >&6; }
  5543. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. if test -n "$RANLIB"; then
  5547. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5548. else
  5549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5550. for as_dir in $PATH
  5551. do
  5552. IFS=$as_save_IFS
  5553. test -z "$as_dir" && as_dir=.
  5554. for ac_exec_ext in '' $ac_executable_extensions; do
  5555. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5556. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5558. break 2
  5559. fi
  5560. done
  5561. done
  5562. IFS=$as_save_IFS
  5563. fi
  5564. fi
  5565. RANLIB=$ac_cv_prog_RANLIB
  5566. if test -n "$RANLIB"; then
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5568. $as_echo "$RANLIB" >&6; }
  5569. else
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5571. $as_echo "no" >&6; }
  5572. fi
  5573. fi
  5574. if test -z "$ac_cv_prog_RANLIB"; then
  5575. ac_ct_RANLIB=$RANLIB
  5576. # Extract the first word of "ranlib", so it can be a program name with args.
  5577. set dummy ranlib; ac_word=$2
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5579. $as_echo_n "checking for $ac_word... " >&6; }
  5580. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5581. $as_echo_n "(cached) " >&6
  5582. else
  5583. if test -n "$ac_ct_RANLIB"; then
  5584. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5585. else
  5586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5587. for as_dir in $PATH
  5588. do
  5589. IFS=$as_save_IFS
  5590. test -z "$as_dir" && as_dir=.
  5591. for ac_exec_ext in '' $ac_executable_extensions; do
  5592. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5593. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5595. break 2
  5596. fi
  5597. done
  5598. done
  5599. IFS=$as_save_IFS
  5600. fi
  5601. fi
  5602. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5603. if test -n "$ac_ct_RANLIB"; then
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5605. $as_echo "$ac_ct_RANLIB" >&6; }
  5606. else
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5608. $as_echo "no" >&6; }
  5609. fi
  5610. if test "x$ac_ct_RANLIB" = x; then
  5611. RANLIB=":"
  5612. else
  5613. case $cross_compiling:$ac_tool_warned in
  5614. yes:)
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5616. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5617. ac_tool_warned=yes ;;
  5618. esac
  5619. RANLIB=$ac_ct_RANLIB
  5620. fi
  5621. else
  5622. RANLIB="$ac_cv_prog_RANLIB"
  5623. fi
  5624. fi
  5625. fi
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5627. $as_echo_n "checking for ANSI C header files... " >&6; }
  5628. if test "${ac_cv_header_stdc+set}" = set; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5632. /* end confdefs.h. */
  5633. #include <stdlib.h>
  5634. #include <stdarg.h>
  5635. #include <string.h>
  5636. #include <float.h>
  5637. int
  5638. main ()
  5639. {
  5640. ;
  5641. return 0;
  5642. }
  5643. _ACEOF
  5644. if ac_fn_c_try_compile "$LINENO"; then :
  5645. ac_cv_header_stdc=yes
  5646. else
  5647. ac_cv_header_stdc=no
  5648. fi
  5649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5650. if test $ac_cv_header_stdc = yes; then
  5651. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5653. /* end confdefs.h. */
  5654. #include <string.h>
  5655. _ACEOF
  5656. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5657. $EGREP "memchr" >/dev/null 2>&1; then :
  5658. else
  5659. ac_cv_header_stdc=no
  5660. fi
  5661. rm -f conftest*
  5662. fi
  5663. if test $ac_cv_header_stdc = yes; then
  5664. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5666. /* end confdefs.h. */
  5667. #include <stdlib.h>
  5668. _ACEOF
  5669. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5670. $EGREP "free" >/dev/null 2>&1; then :
  5671. else
  5672. ac_cv_header_stdc=no
  5673. fi
  5674. rm -f conftest*
  5675. fi
  5676. if test $ac_cv_header_stdc = yes; then
  5677. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5678. if test "$cross_compiling" = yes; then :
  5679. :
  5680. else
  5681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5682. /* end confdefs.h. */
  5683. #include <ctype.h>
  5684. #include <stdlib.h>
  5685. #if ((' ' & 0x0FF) == 0x020)
  5686. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5687. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5688. #else
  5689. # define ISLOWER(c) \
  5690. (('a' <= (c) && (c) <= 'i') \
  5691. || ('j' <= (c) && (c) <= 'r') \
  5692. || ('s' <= (c) && (c) <= 'z'))
  5693. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5694. #endif
  5695. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5696. int
  5697. main ()
  5698. {
  5699. int i;
  5700. for (i = 0; i < 256; i++)
  5701. if (XOR (islower (i), ISLOWER (i))
  5702. || toupper (i) != TOUPPER (i))
  5703. return 2;
  5704. return 0;
  5705. }
  5706. _ACEOF
  5707. if ac_fn_c_try_run "$LINENO"; then :
  5708. else
  5709. ac_cv_header_stdc=no
  5710. fi
  5711. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5712. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5713. fi
  5714. fi
  5715. fi
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5717. $as_echo "$ac_cv_header_stdc" >&6; }
  5718. if test $ac_cv_header_stdc = yes; then
  5719. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5720. fi
  5721. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5722. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5723. inttypes.h stdint.h unistd.h
  5724. do :
  5725. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5726. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5727. "
  5728. eval as_val=\$$as_ac_Header
  5729. if test "x$as_val" = x""yes; then :
  5730. cat >>confdefs.h <<_ACEOF
  5731. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5732. _ACEOF
  5733. fi
  5734. done
  5735. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5736. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5737. MINIX=yes
  5738. else
  5739. MINIX=
  5740. fi
  5741. if test "$MINIX" = yes; then
  5742. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5743. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5744. $as_echo "#define _MINIX 1" >>confdefs.h
  5745. fi
  5746. case "$host_os" in
  5747. hpux*)
  5748. $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
  5749. ;;
  5750. esac
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5752. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5753. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5754. $as_echo_n "(cached) " >&6
  5755. else
  5756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5757. /* end confdefs.h. */
  5758. # define __EXTENSIONS__ 1
  5759. $ac_includes_default
  5760. int
  5761. main ()
  5762. {
  5763. ;
  5764. return 0;
  5765. }
  5766. _ACEOF
  5767. if ac_fn_c_try_compile "$LINENO"; then :
  5768. ac_cv_safe_to_define___extensions__=yes
  5769. else
  5770. ac_cv_safe_to_define___extensions__=no
  5771. fi
  5772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5773. fi
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5775. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5776. test $ac_cv_safe_to_define___extensions__ = yes &&
  5777. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5778. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5779. $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  5780. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5781. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5782. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5783. # Check whether --enable-largefile was given.
  5784. if test "${enable_largefile+set}" = set; then :
  5785. enableval=$enable_largefile;
  5786. fi
  5787. if test "$enable_largefile" != no; then
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  5789. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  5790. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  5791. $as_echo_n "(cached) " >&6
  5792. else
  5793. ac_cv_sys_largefile_CC=no
  5794. if test "$GCC" != yes; then
  5795. ac_save_CC=$CC
  5796. while :; do
  5797. # IRIX 6.2 and later do not support large files by default,
  5798. # so use the C compiler's -n32 option if that helps.
  5799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5800. /* end confdefs.h. */
  5801. #include <sys/types.h>
  5802. /* Check that off_t can represent 2**63 - 1 correctly.
  5803. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5804. since some C++ compilers masquerading as C compilers
  5805. incorrectly reject 9223372036854775807. */
  5806. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5807. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5808. && LARGE_OFF_T % 2147483647 == 1)
  5809. ? 1 : -1];
  5810. int
  5811. main ()
  5812. {
  5813. ;
  5814. return 0;
  5815. }
  5816. _ACEOF
  5817. if ac_fn_c_try_compile "$LINENO"; then :
  5818. break
  5819. fi
  5820. rm -f core conftest.err conftest.$ac_objext
  5821. CC="$CC -n32"
  5822. if ac_fn_c_try_compile "$LINENO"; then :
  5823. ac_cv_sys_largefile_CC=' -n32'; break
  5824. fi
  5825. rm -f core conftest.err conftest.$ac_objext
  5826. break
  5827. done
  5828. CC=$ac_save_CC
  5829. rm -f conftest.$ac_ext
  5830. fi
  5831. fi
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  5833. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  5834. if test "$ac_cv_sys_largefile_CC" != no; then
  5835. CC=$CC$ac_cv_sys_largefile_CC
  5836. fi
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5838. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  5839. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  5840. $as_echo_n "(cached) " >&6
  5841. else
  5842. while :; do
  5843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5844. /* end confdefs.h. */
  5845. #include <sys/types.h>
  5846. /* Check that off_t can represent 2**63 - 1 correctly.
  5847. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5848. since some C++ compilers masquerading as C compilers
  5849. incorrectly reject 9223372036854775807. */
  5850. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5851. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5852. && LARGE_OFF_T % 2147483647 == 1)
  5853. ? 1 : -1];
  5854. int
  5855. main ()
  5856. {
  5857. ;
  5858. return 0;
  5859. }
  5860. _ACEOF
  5861. if ac_fn_c_try_compile "$LINENO"; then :
  5862. ac_cv_sys_file_offset_bits=no; break
  5863. fi
  5864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5866. /* end confdefs.h. */
  5867. #define _FILE_OFFSET_BITS 64
  5868. #include <sys/types.h>
  5869. /* Check that off_t can represent 2**63 - 1 correctly.
  5870. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5871. since some C++ compilers masquerading as C compilers
  5872. incorrectly reject 9223372036854775807. */
  5873. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5874. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5875. && LARGE_OFF_T % 2147483647 == 1)
  5876. ? 1 : -1];
  5877. int
  5878. main ()
  5879. {
  5880. ;
  5881. return 0;
  5882. }
  5883. _ACEOF
  5884. if ac_fn_c_try_compile "$LINENO"; then :
  5885. ac_cv_sys_file_offset_bits=64; break
  5886. fi
  5887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5888. ac_cv_sys_file_offset_bits=unknown
  5889. break
  5890. done
  5891. fi
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5893. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5894. case $ac_cv_sys_file_offset_bits in #(
  5895. no | unknown) ;;
  5896. *)
  5897. cat >>confdefs.h <<_ACEOF
  5898. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5899. _ACEOF
  5900. ;;
  5901. esac
  5902. rm -rf conftest*
  5903. if test $ac_cv_sys_file_offset_bits = unknown; then
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5905. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5906. if test "${ac_cv_sys_large_files+set}" = set; then :
  5907. $as_echo_n "(cached) " >&6
  5908. else
  5909. while :; do
  5910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5911. /* end confdefs.h. */
  5912. #include <sys/types.h>
  5913. /* Check that off_t can represent 2**63 - 1 correctly.
  5914. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5915. since some C++ compilers masquerading as C compilers
  5916. incorrectly reject 9223372036854775807. */
  5917. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5918. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5919. && LARGE_OFF_T % 2147483647 == 1)
  5920. ? 1 : -1];
  5921. int
  5922. main ()
  5923. {
  5924. ;
  5925. return 0;
  5926. }
  5927. _ACEOF
  5928. if ac_fn_c_try_compile "$LINENO"; then :
  5929. ac_cv_sys_large_files=no; break
  5930. fi
  5931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5933. /* end confdefs.h. */
  5934. #define _LARGE_FILES 1
  5935. #include <sys/types.h>
  5936. /* Check that off_t can represent 2**63 - 1 correctly.
  5937. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5938. since some C++ compilers masquerading as C compilers
  5939. incorrectly reject 9223372036854775807. */
  5940. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5941. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5942. && LARGE_OFF_T % 2147483647 == 1)
  5943. ? 1 : -1];
  5944. int
  5945. main ()
  5946. {
  5947. ;
  5948. return 0;
  5949. }
  5950. _ACEOF
  5951. if ac_fn_c_try_compile "$LINENO"; then :
  5952. ac_cv_sys_large_files=1; break
  5953. fi
  5954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5955. ac_cv_sys_large_files=unknown
  5956. break
  5957. done
  5958. fi
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5960. $as_echo "$ac_cv_sys_large_files" >&6; }
  5961. case $ac_cv_sys_large_files in #(
  5962. no | unknown) ;;
  5963. *)
  5964. cat >>confdefs.h <<_ACEOF
  5965. #define _LARGE_FILES $ac_cv_sys_large_files
  5966. _ACEOF
  5967. ;;
  5968. esac
  5969. rm -rf conftest*
  5970. fi
  5971. fi
  5972. case $ac_cv_prog_cc_stdc in #(
  5973. no) :
  5974. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  5975. *) :
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  5977. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  5978. if test "${ac_cv_prog_cc_c99+set}" = set; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. ac_cv_prog_cc_c99=no
  5982. ac_save_CC=$CC
  5983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5984. /* end confdefs.h. */
  5985. #include <stdarg.h>
  5986. #include <stdbool.h>
  5987. #include <stdlib.h>
  5988. #include <wchar.h>
  5989. #include <stdio.h>
  5990. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  5991. #define debug(...) fprintf (stderr, __VA_ARGS__)
  5992. #define showlist(...) puts (#__VA_ARGS__)
  5993. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  5994. static void
  5995. test_varargs_macros (void)
  5996. {
  5997. int x = 1234;
  5998. int y = 5678;
  5999. debug ("Flag");
  6000. debug ("X = %d\n", x);
  6001. showlist (The first, second, and third items.);
  6002. report (x>y, "x is %d but y is %d", x, y);
  6003. }
  6004. // Check long long types.
  6005. #define BIG64 18446744073709551615ull
  6006. #define BIG32 4294967295ul
  6007. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  6008. #if !BIG_OK
  6009. your preprocessor is broken;
  6010. #endif
  6011. #if BIG_OK
  6012. #else
  6013. your preprocessor is broken;
  6014. #endif
  6015. static long long int bignum = -9223372036854775807LL;
  6016. static unsigned long long int ubignum = BIG64;
  6017. struct incomplete_array
  6018. {
  6019. int datasize;
  6020. double data[];
  6021. };
  6022. struct named_init {
  6023. int number;
  6024. const wchar_t *name;
  6025. double average;
  6026. };
  6027. typedef const char *ccp;
  6028. static inline int
  6029. test_restrict (ccp restrict text)
  6030. {
  6031. // See if C++-style comments work.
  6032. // Iterate through items via the restricted pointer.
  6033. // Also check for declarations in for loops.
  6034. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  6035. continue;
  6036. return 0;
  6037. }
  6038. // Check varargs and va_copy.
  6039. static void
  6040. test_varargs (const char *format, ...)
  6041. {
  6042. va_list args;
  6043. va_start (args, format);
  6044. va_list args_copy;
  6045. va_copy (args_copy, args);
  6046. const char *str;
  6047. int number;
  6048. float fnumber;
  6049. while (*format)
  6050. {
  6051. switch (*format++)
  6052. {
  6053. case 's': // string
  6054. str = va_arg (args_copy, const char *);
  6055. break;
  6056. case 'd': // int
  6057. number = va_arg (args_copy, int);
  6058. break;
  6059. case 'f': // float
  6060. fnumber = va_arg (args_copy, double);
  6061. break;
  6062. default:
  6063. break;
  6064. }
  6065. }
  6066. va_end (args_copy);
  6067. va_end (args);
  6068. }
  6069. int
  6070. main ()
  6071. {
  6072. // Check bool.
  6073. _Bool success = false;
  6074. // Check restrict.
  6075. if (test_restrict ("String literal") == 0)
  6076. success = true;
  6077. char *restrict newvar = "Another string";
  6078. // Check varargs.
  6079. test_varargs ("s, d' f .", "string", 65, 34.234);
  6080. test_varargs_macros ();
  6081. // Check flexible array members.
  6082. struct incomplete_array *ia =
  6083. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  6084. ia->datasize = 10;
  6085. for (int i = 0; i < ia->datasize; ++i)
  6086. ia->data[i] = i * 1.234;
  6087. // Check named initializers.
  6088. struct named_init ni = {
  6089. .number = 34,
  6090. .name = L"Test wide string",
  6091. .average = 543.34343,
  6092. };
  6093. ni.number = 58;
  6094. int dynamic_array[ni.number];
  6095. dynamic_array[ni.number - 1] = 543;
  6096. // work around unused variable warnings
  6097. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  6098. || dynamic_array[ni.number - 1] != 543);
  6099. ;
  6100. return 0;
  6101. }
  6102. _ACEOF
  6103. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  6104. do
  6105. CC="$ac_save_CC $ac_arg"
  6106. if ac_fn_c_try_compile "$LINENO"; then :
  6107. ac_cv_prog_cc_c99=$ac_arg
  6108. fi
  6109. rm -f core conftest.err conftest.$ac_objext
  6110. test "x$ac_cv_prog_cc_c99" != "xno" && break
  6111. done
  6112. rm -f conftest.$ac_ext
  6113. CC=$ac_save_CC
  6114. fi
  6115. # AC_CACHE_VAL
  6116. case "x$ac_cv_prog_cc_c99" in
  6117. x)
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6119. $as_echo "none needed" >&6; } ;;
  6120. xno)
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6122. $as_echo "unsupported" >&6; } ;;
  6123. *)
  6124. CC="$CC $ac_cv_prog_cc_c99"
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  6126. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  6127. esac
  6128. if test "x$ac_cv_prog_cc_c99" != xno; then :
  6129. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  6130. else
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  6132. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  6133. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. ac_cv_prog_cc_c89=no
  6137. ac_save_CC=$CC
  6138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6139. /* end confdefs.h. */
  6140. #include <stdarg.h>
  6141. #include <stdio.h>
  6142. #include <sys/types.h>
  6143. #include <sys/stat.h>
  6144. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  6145. struct buf { int x; };
  6146. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6147. static char *e (p, i)
  6148. char **p;
  6149. int i;
  6150. {
  6151. return p[i];
  6152. }
  6153. static char *f (char * (*g) (char **, int), char **p, ...)
  6154. {
  6155. char *s;
  6156. va_list v;
  6157. va_start (v,p);
  6158. s = g (p, va_arg (v,int));
  6159. va_end (v);
  6160. return s;
  6161. }
  6162. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  6163. function prototypes and stuff, but not '\xHH' hex character constants.
  6164. These don't provoke an error unfortunately, instead are silently treated
  6165. as 'x'. The following induces an error, until -std is added to get
  6166. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  6167. array size at least. It's necessary to write '\x00'==0 to get something
  6168. that's true only with -std. */
  6169. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6170. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6171. inside strings and character constants. */
  6172. #define FOO(x) 'x'
  6173. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6174. int test (int i, double x);
  6175. struct s1 {int (*f) (int a);};
  6176. struct s2 {int (*f) (double a);};
  6177. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6178. int argc;
  6179. char **argv;
  6180. int
  6181. main ()
  6182. {
  6183. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  6184. ;
  6185. return 0;
  6186. }
  6187. _ACEOF
  6188. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6189. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6190. do
  6191. CC="$ac_save_CC $ac_arg"
  6192. if ac_fn_c_try_compile "$LINENO"; then :
  6193. ac_cv_prog_cc_c89=$ac_arg
  6194. fi
  6195. rm -f core conftest.err conftest.$ac_objext
  6196. test "x$ac_cv_prog_cc_c89" != "xno" && break
  6197. done
  6198. rm -f conftest.$ac_ext
  6199. CC=$ac_save_CC
  6200. fi
  6201. # AC_CACHE_VAL
  6202. case "x$ac_cv_prog_cc_c89" in
  6203. x)
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6205. $as_echo "none needed" >&6; } ;;
  6206. xno)
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6208. $as_echo "unsupported" >&6; } ;;
  6209. *)
  6210. CC="$CC $ac_cv_prog_cc_c89"
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  6212. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  6213. esac
  6214. if test "x$ac_cv_prog_cc_c89" != xno; then :
  6215. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  6216. else
  6217. ac_cv_prog_cc_stdc=no
  6218. fi
  6219. fi
  6220. ;;
  6221. esac
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  6223. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  6224. if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  6225. $as_echo_n "(cached) " >&6
  6226. fi
  6227. case $ac_cv_prog_cc_stdc in #(
  6228. no) :
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6230. $as_echo "unsupported" >&6; } ;; #(
  6231. '') :
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6233. $as_echo "none needed" >&6; } ;; #(
  6234. *) :
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  6236. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  6237. esac
  6238. # Code from module alloca-opt:
  6239. # Code from module allocator:
  6240. # Code from module careadlinkat:
  6241. # Code from module crypto/md5:
  6242. # Code from module crypto/sha1:
  6243. # Code from module crypto/sha256:
  6244. # Code from module crypto/sha512:
  6245. # Code from module dosname:
  6246. # Code from module dtoastr:
  6247. # Code from module dup2:
  6248. # Code from module extensions:
  6249. # Code from module filemode:
  6250. # Code from module getloadavg:
  6251. # Code from module getopt-gnu:
  6252. # Code from module getopt-posix:
  6253. # Code from module gettext-h:
  6254. # Code from module ignore-value:
  6255. # Code from module include_next:
  6256. # Code from module intprops:
  6257. # Code from module inttypes-incomplete:
  6258. # Code from module largefile:
  6259. # Code from module lstat:
  6260. # Code from module mktime:
  6261. # Code from module multiarch:
  6262. # Code from module nocrash:
  6263. # Code from module pathmax:
  6264. # Code from module pthread_sigmask:
  6265. # Code from module readlink:
  6266. # Code from module signal-h:
  6267. # Code from module sigprocmask:
  6268. # Code from module snippet/_Noreturn:
  6269. # Code from module snippet/arg-nonnull:
  6270. # Code from module snippet/c++defs:
  6271. # Code from module snippet/warn-on-use:
  6272. # Code from module socklen:
  6273. # Code from module ssize_t:
  6274. # Code from module stat:
  6275. # Code from module stdarg:
  6276. # Code from module stdbool:
  6277. # Code from module stddef:
  6278. # Code from module stdint:
  6279. # Code from module stdio:
  6280. # Code from module stdlib:
  6281. # Code from module strftime:
  6282. # Code from module strtoimax:
  6283. # Code from module strtoll:
  6284. # Code from module strtoull:
  6285. # Code from module strtoumax:
  6286. # Code from module symlink:
  6287. # Code from module sys_stat:
  6288. # Code from module time:
  6289. # Code from module time_r:
  6290. # Code from module u64:
  6291. # Code from module unistd:
  6292. # Code from module verify:
  6293. # On Suns, sometimes $CPP names a directory.
  6294. if test -n "$CPP" && test -d "$CPP"; then
  6295. CPP=
  6296. fi
  6297. ## If not using gcc, and on Solaris, and no CPP specified, see if
  6298. ## using a Sun compiler, which needs -Xs to prevent whitespace.
  6299. if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
  6300. test x"$CPP" = x; then
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
  6302. $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
  6303. if test "${emacs_cv_sunpro_c+set}" = set; then :
  6304. $as_echo_n "(cached) " >&6
  6305. else
  6306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6307. /* end confdefs.h. */
  6308. int
  6309. main ()
  6310. {
  6311. #ifndef __SUNPRO_C
  6312. fail;
  6313. #endif
  6314. ;
  6315. return 0;
  6316. }
  6317. _ACEOF
  6318. if ac_fn_c_try_link "$LINENO"; then :
  6319. emacs_cv_sunpro_c=yes
  6320. else
  6321. emacs_cv_sunpro_c=no
  6322. fi
  6323. rm -f core conftest.err conftest.$ac_objext \
  6324. conftest$ac_exeext conftest.$ac_ext
  6325. fi
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
  6327. $as_echo "$emacs_cv_sunpro_c" >&6; }
  6328. if test x"$emacs_cv_sunpro_c" = xyes; then
  6329. NON_GNU_CPP="$CC -E -Xs"
  6330. fi
  6331. fi
  6332. #### Some systems specify a CPP to use unless we are using GCC.
  6333. #### Now that we know whether we are using GCC, we can decide whether
  6334. #### to use that one.
  6335. if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
  6336. then
  6337. CPP="$NON_GNU_CPP"
  6338. fi
  6339. #### Some systems specify a CC to use unless we are using GCC.
  6340. #### Now that we know whether we are using GCC, we can decide whether
  6341. #### to use that one.
  6342. if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
  6343. test x$cc_specified != xyes
  6344. then
  6345. CC="$NON_GNU_CC"
  6346. fi
  6347. if test x$GCC = xyes; then
  6348. test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
  6349. else
  6350. test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
  6351. fi
  6352. ### Use -Wdeclaration-after-statement if the compiler supports it
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
  6354. $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
  6355. SAVE_CFLAGS="$CFLAGS"
  6356. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  6357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6358. /* end confdefs.h. */
  6359. int
  6360. main ()
  6361. {
  6362. ;
  6363. return 0;
  6364. }
  6365. _ACEOF
  6366. if ac_fn_c_try_compile "$LINENO"; then :
  6367. has_option=yes
  6368. else
  6369. has_option=no
  6370. fi
  6371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6372. if test $has_option = yes; then
  6373. C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
  6374. fi
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
  6376. $as_echo "$has_option" >&6; }
  6377. CFLAGS="$SAVE_CFLAGS"
  6378. unset has_option
  6379. unset SAVE_CFLAGS
  6380. ### Use -Wold-style-definition if the compiler supports it
  6381. # This can be removed when conversion to standard C is finished.
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
  6383. $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
  6384. SAVE_CFLAGS="$CFLAGS"
  6385. CFLAGS="$CFLAGS -Wold-style-definition"
  6386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6387. /* end confdefs.h. */
  6388. int
  6389. main ()
  6390. {
  6391. ;
  6392. return 0;
  6393. }
  6394. _ACEOF
  6395. if ac_fn_c_try_compile "$LINENO"; then :
  6396. has_option=yes
  6397. else
  6398. has_option=no
  6399. fi
  6400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6401. if test $has_option = yes; then
  6402. C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
  6403. fi
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
  6405. $as_echo "$has_option" >&6; }
  6406. CFLAGS="$SAVE_CFLAGS"
  6407. unset has_option
  6408. unset SAVE_CFLAGS
  6409. ### Use -Wimplicit-function-declaration if the compiler supports it
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
  6411. $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
  6412. SAVE_CFLAGS="$CFLAGS"
  6413. CFLAGS="$CFLAGS -Wimplicit-function-declaration"
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h. */
  6416. int
  6417. main ()
  6418. {
  6419. ;
  6420. return 0;
  6421. }
  6422. _ACEOF
  6423. if ac_fn_c_try_compile "$LINENO"; then :
  6424. has_option=yes
  6425. else
  6426. has_option=no
  6427. fi
  6428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6429. if test $has_option = yes; then
  6430. C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
  6431. fi
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
  6433. $as_echo "$has_option" >&6; }
  6434. CFLAGS="$SAVE_CFLAGS"
  6435. unset has_option
  6436. unset SAVE_CFLAGS
  6437. #### Some other nice autoconf tests.
  6438. ac_ext=c
  6439. ac_cpp='$CPP $CPPFLAGS'
  6440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6444. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6445. # On Suns, sometimes $CPP names a directory.
  6446. if test -n "$CPP" && test -d "$CPP"; then
  6447. CPP=
  6448. fi
  6449. if test -z "$CPP"; then
  6450. if test "${ac_cv_prog_CPP+set}" = set; then :
  6451. $as_echo_n "(cached) " >&6
  6452. else
  6453. # Double quotes because CPP needs to be expanded
  6454. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6455. do
  6456. ac_preproc_ok=false
  6457. for ac_c_preproc_warn_flag in '' yes
  6458. do
  6459. # Use a header file that comes with gcc, so configuring glibc
  6460. # with a fresh cross-compiler works.
  6461. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6462. # <limits.h> exists even on freestanding compilers.
  6463. # On the NeXT, cc -E runs the code through the compiler's parser,
  6464. # not just through cpp. "Syntax error" is here to catch this case.
  6465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6466. /* end confdefs.h. */
  6467. #ifdef __STDC__
  6468. # include <limits.h>
  6469. #else
  6470. # include <assert.h>
  6471. #endif
  6472. Syntax error
  6473. _ACEOF
  6474. if ac_fn_c_try_cpp "$LINENO"; then :
  6475. else
  6476. # Broken: fails on valid input.
  6477. continue
  6478. fi
  6479. rm -f conftest.err conftest.$ac_ext
  6480. # OK, works on sane cases. Now check whether nonexistent headers
  6481. # can be detected and how.
  6482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6483. /* end confdefs.h. */
  6484. #include <ac_nonexistent.h>
  6485. _ACEOF
  6486. if ac_fn_c_try_cpp "$LINENO"; then :
  6487. # Broken: success on invalid input.
  6488. continue
  6489. else
  6490. # Passes both tests.
  6491. ac_preproc_ok=:
  6492. break
  6493. fi
  6494. rm -f conftest.err conftest.$ac_ext
  6495. done
  6496. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6497. rm -f conftest.err conftest.$ac_ext
  6498. if $ac_preproc_ok; then :
  6499. break
  6500. fi
  6501. done
  6502. ac_cv_prog_CPP=$CPP
  6503. fi
  6504. CPP=$ac_cv_prog_CPP
  6505. else
  6506. ac_cv_prog_CPP=$CPP
  6507. fi
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6509. $as_echo "$CPP" >&6; }
  6510. ac_preproc_ok=false
  6511. for ac_c_preproc_warn_flag in '' yes
  6512. do
  6513. # Use a header file that comes with gcc, so configuring glibc
  6514. # with a fresh cross-compiler works.
  6515. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6516. # <limits.h> exists even on freestanding compilers.
  6517. # On the NeXT, cc -E runs the code through the compiler's parser,
  6518. # not just through cpp. "Syntax error" is here to catch this case.
  6519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6520. /* end confdefs.h. */
  6521. #ifdef __STDC__
  6522. # include <limits.h>
  6523. #else
  6524. # include <assert.h>
  6525. #endif
  6526. Syntax error
  6527. _ACEOF
  6528. if ac_fn_c_try_cpp "$LINENO"; then :
  6529. else
  6530. # Broken: fails on valid input.
  6531. continue
  6532. fi
  6533. rm -f conftest.err conftest.$ac_ext
  6534. # OK, works on sane cases. Now check whether nonexistent headers
  6535. # can be detected and how.
  6536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6537. /* end confdefs.h. */
  6538. #include <ac_nonexistent.h>
  6539. _ACEOF
  6540. if ac_fn_c_try_cpp "$LINENO"; then :
  6541. # Broken: success on invalid input.
  6542. continue
  6543. else
  6544. # Passes both tests.
  6545. ac_preproc_ok=:
  6546. break
  6547. fi
  6548. rm -f conftest.err conftest.$ac_ext
  6549. done
  6550. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6551. rm -f conftest.err conftest.$ac_ext
  6552. if $ac_preproc_ok; then :
  6553. else
  6554. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6556. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6557. See \`config.log' for more details." "$LINENO" 5; }
  6558. fi
  6559. ac_ext=c
  6560. ac_cpp='$CPP $CPPFLAGS'
  6561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6564. if test "x$RANLIB" = x; then
  6565. if test -n "$ac_tool_prefix"; then
  6566. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6567. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6569. $as_echo_n "checking for $ac_word... " >&6; }
  6570. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6571. $as_echo_n "(cached) " >&6
  6572. else
  6573. if test -n "$RANLIB"; then
  6574. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6575. else
  6576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6577. for as_dir in $PATH
  6578. do
  6579. IFS=$as_save_IFS
  6580. test -z "$as_dir" && as_dir=.
  6581. for ac_exec_ext in '' $ac_executable_extensions; do
  6582. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6583. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6584. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6585. break 2
  6586. fi
  6587. done
  6588. done
  6589. IFS=$as_save_IFS
  6590. fi
  6591. fi
  6592. RANLIB=$ac_cv_prog_RANLIB
  6593. if test -n "$RANLIB"; then
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6595. $as_echo "$RANLIB" >&6; }
  6596. else
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6598. $as_echo "no" >&6; }
  6599. fi
  6600. fi
  6601. if test -z "$ac_cv_prog_RANLIB"; then
  6602. ac_ct_RANLIB=$RANLIB
  6603. # Extract the first word of "ranlib", so it can be a program name with args.
  6604. set dummy ranlib; ac_word=$2
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6606. $as_echo_n "checking for $ac_word... " >&6; }
  6607. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. if test -n "$ac_ct_RANLIB"; then
  6611. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6612. else
  6613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6614. for as_dir in $PATH
  6615. do
  6616. IFS=$as_save_IFS
  6617. test -z "$as_dir" && as_dir=.
  6618. for ac_exec_ext in '' $ac_executable_extensions; do
  6619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6620. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6622. break 2
  6623. fi
  6624. done
  6625. done
  6626. IFS=$as_save_IFS
  6627. fi
  6628. fi
  6629. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6630. if test -n "$ac_ct_RANLIB"; then
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6632. $as_echo "$ac_ct_RANLIB" >&6; }
  6633. else
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. $as_echo "no" >&6; }
  6636. fi
  6637. if test "x$ac_ct_RANLIB" = x; then
  6638. RANLIB=":"
  6639. else
  6640. case $cross_compiling:$ac_tool_warned in
  6641. yes:)
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6643. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6644. ac_tool_warned=yes ;;
  6645. esac
  6646. RANLIB=$ac_ct_RANLIB
  6647. fi
  6648. else
  6649. RANLIB="$ac_cv_prog_RANLIB"
  6650. fi
  6651. fi
  6652. ## Although we're running on an amd64 kernel, we're actually compiling for
  6653. ## the x86 architecture. The user should probably have provided an
  6654. ## explicit --build to `configure', but if everything else than the kernel
  6655. ## is running in i386 mode, we can help them out.
  6656. if test "$machine" = "amdx86-64"; then
  6657. ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
  6658. if test "x$ac_cv_have_decl_i386" = x""yes; then :
  6659. fi
  6660. if test "$ac_cv_have_decl_i386" = "yes"; then
  6661. canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
  6662. machine=intel386
  6663. machfile="m/${machine}.h"
  6664. fi
  6665. ac_fn_c_check_decl "$LINENO" "__ILP32__" "ac_cv_have_decl___ILP32__" "$ac_includes_default"
  6666. if test "x$ac_cv_have_decl___ILP32__" = x""yes; then :
  6667. machfile="m/intel386.h"
  6668. fi
  6669. fi
  6670. # Extract the first word of "install-info", so it can be a program name with args.
  6671. set dummy install-info; ac_word=$2
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6673. $as_echo_n "checking for $ac_word... " >&6; }
  6674. if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
  6675. $as_echo_n "(cached) " >&6
  6676. else
  6677. case $INSTALL_INFO in
  6678. [\\/]* | ?:[\\/]*)
  6679. ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  6680. ;;
  6681. *)
  6682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6683. for as_dir in $PATH
  6684. do
  6685. IFS=$as_save_IFS
  6686. test -z "$as_dir" && as_dir=.
  6687. for ac_exec_ext in '' $ac_executable_extensions; do
  6688. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6689. ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
  6690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6691. break 2
  6692. fi
  6693. done
  6694. done
  6695. IFS=$as_save_IFS
  6696. ;;
  6697. esac
  6698. fi
  6699. INSTALL_INFO=$ac_cv_path_INSTALL_INFO
  6700. if test -n "$INSTALL_INFO"; then
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
  6702. $as_echo "$INSTALL_INFO" >&6; }
  6703. else
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6705. $as_echo "no" >&6; }
  6706. fi
  6707. # Extract the first word of "install-info", so it can be a program name with args.
  6708. set dummy install-info; ac_word=$2
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6710. $as_echo_n "checking for $ac_word... " >&6; }
  6711. if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. case $INSTALL_INFO in
  6715. [\\/]* | ?:[\\/]*)
  6716. ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  6717. ;;
  6718. *)
  6719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6720. for as_dir in /usr/sbin
  6721. do
  6722. IFS=$as_save_IFS
  6723. test -z "$as_dir" && as_dir=.
  6724. for ac_exec_ext in '' $ac_executable_extensions; do
  6725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6726. ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
  6727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6728. break 2
  6729. fi
  6730. done
  6731. done
  6732. IFS=$as_save_IFS
  6733. ;;
  6734. esac
  6735. fi
  6736. INSTALL_INFO=$ac_cv_path_INSTALL_INFO
  6737. if test -n "$INSTALL_INFO"; then
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
  6739. $as_echo "$INSTALL_INFO" >&6; }
  6740. else
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6742. $as_echo "no" >&6; }
  6743. fi
  6744. # Extract the first word of "install-info", so it can be a program name with args.
  6745. set dummy install-info; ac_word=$2
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6747. $as_echo_n "checking for $ac_word... " >&6; }
  6748. if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
  6749. $as_echo_n "(cached) " >&6
  6750. else
  6751. case $INSTALL_INFO in
  6752. [\\/]* | ?:[\\/]*)
  6753. ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
  6754. ;;
  6755. *)
  6756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6757. for as_dir in /sbin
  6758. do
  6759. IFS=$as_save_IFS
  6760. test -z "$as_dir" && as_dir=.
  6761. for ac_exec_ext in '' $ac_executable_extensions; do
  6762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6763. ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
  6764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6765. break 2
  6766. fi
  6767. done
  6768. done
  6769. IFS=$as_save_IFS
  6770. test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
  6771. ;;
  6772. esac
  6773. fi
  6774. INSTALL_INFO=$ac_cv_path_INSTALL_INFO
  6775. if test -n "$INSTALL_INFO"; then
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
  6777. $as_echo "$INSTALL_INFO" >&6; }
  6778. else
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6780. $as_echo "no" >&6; }
  6781. fi
  6782. # Extract the first word of "gzip", so it can be a program name with args.
  6783. set dummy gzip; ac_word=$2
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6785. $as_echo_n "checking for $ac_word... " >&6; }
  6786. if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
  6787. $as_echo_n "(cached) " >&6
  6788. else
  6789. case $GZIP_PROG in
  6790. [\\/]* | ?:[\\/]*)
  6791. ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
  6792. ;;
  6793. *)
  6794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6795. for as_dir in $PATH
  6796. do
  6797. IFS=$as_save_IFS
  6798. test -z "$as_dir" && as_dir=.
  6799. for ac_exec_ext in '' $ac_executable_extensions; do
  6800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6801. ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
  6802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6803. break 2
  6804. fi
  6805. done
  6806. done
  6807. IFS=$as_save_IFS
  6808. ;;
  6809. esac
  6810. fi
  6811. GZIP_PROG=$ac_cv_path_GZIP_PROG
  6812. if test -n "$GZIP_PROG"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
  6814. $as_echo "$GZIP_PROG" >&6; }
  6815. else
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6817. $as_echo "no" >&6; }
  6818. fi
  6819. ## Need makeinfo >= 4.6 (?) to build the manuals.
  6820. # Extract the first word of "makeinfo", so it can be a program name with args.
  6821. set dummy makeinfo; ac_word=$2
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6823. $as_echo_n "checking for $ac_word... " >&6; }
  6824. if test "${ac_cv_path_MAKEINFO+set}" = set; then :
  6825. $as_echo_n "(cached) " >&6
  6826. else
  6827. case $MAKEINFO in
  6828. [\\/]* | ?:[\\/]*)
  6829. ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
  6830. ;;
  6831. *)
  6832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6833. for as_dir in $PATH
  6834. do
  6835. IFS=$as_save_IFS
  6836. test -z "$as_dir" && as_dir=.
  6837. for ac_exec_ext in '' $ac_executable_extensions; do
  6838. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6839. ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
  6840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6841. break 2
  6842. fi
  6843. done
  6844. done
  6845. IFS=$as_save_IFS
  6846. test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
  6847. ;;
  6848. esac
  6849. fi
  6850. MAKEINFO=$ac_cv_path_MAKEINFO
  6851. if test -n "$MAKEINFO"; then
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  6853. $as_echo "$MAKEINFO" >&6; }
  6854. else
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6856. $as_echo "no" >&6; }
  6857. fi
  6858. if test "$MAKEINFO" != "no" && \
  6859. test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
  6860. MAKEINFO=no
  6861. fi
  6862. ## Makeinfo is unusual. For a released Emacs, the manuals are
  6863. ## pre-built, and not deleted by the normal clean rules. makeinfo is
  6864. ## therefore in the category of "special tools" not normally required, which
  6865. ## configure does not have to check for (eg autoconf itself).
  6866. ## In a Bazaar checkout on the other hand, the manuals are not included.
  6867. ## So makeinfo is a requirement to build from Bazaar, and configure
  6868. ## should test for it as it does for any other build requirement.
  6869. ## We use the presence of $srcdir/info/emacs to distinguish a release,
  6870. ## with pre-built manuals, from a Bazaar checkout.
  6871. HAVE_MAKEINFO=yes
  6872. if test "$MAKEINFO" = "no"; then
  6873. MAKEINFO=makeinfo
  6874. if test "x${with_makeinfo}" = "xno"; then
  6875. HAVE_MAKEINFO=no
  6876. elif test ! -e $srcdir/info/emacs; then
  6877. as_fn_error "You do not seem to have makeinfo >= 4.6, and your
  6878. source tree does not seem to have pre-built manuals in the \`info' directory.
  6879. Either install a suitable version of makeinfo, or re-run configure
  6880. with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
  6881. fi
  6882. fi
  6883. if test x$GCC = xyes; then
  6884. test "x$GCC_LINK_TEST_OPTIONS" != x && \
  6885. ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
  6886. else
  6887. test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
  6888. ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
  6889. fi
  6890. late_LDFLAGS=$LDFLAGS
  6891. if test x$GCC = xyes; then
  6892. LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
  6893. else
  6894. LDFLAGS="$LDFLAGS -znocombreloc"
  6895. fi
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
  6897. $as_echo_n "checking for -znocombreloc... " >&6; }
  6898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6899. /* end confdefs.h. */
  6900. int
  6901. main ()
  6902. {
  6903. ;
  6904. return 0;
  6905. }
  6906. _ACEOF
  6907. if ac_fn_c_try_link "$LINENO"; then :
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6909. $as_echo "yes" >&6; }
  6910. else
  6911. LDFLAGS=$late_LDFLAGS
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6913. $as_echo "no" >&6; }
  6914. fi
  6915. rm -f core conftest.err conftest.$ac_objext \
  6916. conftest$ac_exeext conftest.$ac_ext
  6917. # The value of CPP is a quoted variable reference, so we need to do this
  6918. # to get its actual value...
  6919. CPP=`eval "echo $CPP"`
  6920. test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
  6921. case "$opsys" in
  6922. your-opsys-here) CANNOT_DUMP=yes ;;
  6923. esac
  6924. test "$CANNOT_DUMP" = "yes" && \
  6925. $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
  6926. UNEXEC_OBJ=unexelf.o
  6927. case "$opsys" in
  6928. # MSDOS uses unexcoff.o
  6929. # MSWindows uses unexw32.o
  6930. aix4-2)
  6931. UNEXEC_OBJ=unexaix.o
  6932. ;;
  6933. cygwin)
  6934. UNEXEC_OBJ=unexcw.o
  6935. ;;
  6936. darwin)
  6937. UNEXEC_OBJ=unexmacosx.o
  6938. ;;
  6939. hpux10-20 | hpux11)
  6940. UNEXEC_OBJ=unexhp9k800.o
  6941. ;;
  6942. sol2-10)
  6943. # Use the Solaris dldump() function, called from unexsol.c, to dump
  6944. # emacs, instead of the generic ELF dump code found in unexelf.c.
  6945. # The resulting binary has a complete symbol table, and is better
  6946. # for debugging and other observability tools (debuggers, pstack, etc).
  6947. #
  6948. # If you encounter a problem using dldump(), please consider sending
  6949. # a message to the OpenSolaris tools-linking mailing list:
  6950. # http://mail.opensolaris.org/mailman/listinfo/tools-linking
  6951. #
  6952. # It is likely that dldump() works with older Solaris too, but this has
  6953. # not been tested, so for now this change is for Solaris 10 or newer.
  6954. UNEXEC_OBJ=unexsol.o
  6955. ;;
  6956. esac
  6957. LD_SWITCH_SYSTEM=
  6958. case "$opsys" in
  6959. freebsd)
  6960. ## Let `ld' find image libs and similar things in /usr/local/lib.
  6961. ## The system compiler, GCC, has apparently been modified to not
  6962. ## look there, contrary to what a stock GCC would do.
  6963. LD_SWITCH_SYSTEM=-L/usr/local/lib
  6964. ;;
  6965. gnu-linux)
  6966. ## cpp test was "ifdef __mips__", but presumably this is equivalent...
  6967. case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
  6968. ;;
  6969. netbsd)
  6970. LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
  6971. ;;
  6972. openbsd)
  6973. ## Han Boetes <han@mijncomputer.nl> says this is necessary,
  6974. ## otherwise Emacs dumps core on elf systems.
  6975. LD_SWITCH_SYSTEM="-Z"
  6976. ;;
  6977. esac
  6978. ac_link="$ac_link $LD_SWITCH_SYSTEM"
  6979. ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
  6980. ## which has not been defined yet. When this was handled with cpp,
  6981. ## it was expanded to null when configure sourced the s/*.h file.
  6982. ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
  6983. ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
  6984. ## (or somesuch), but because it is supposed to go at the _front_
  6985. ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
  6986. ## Compare with the gnu-linux case below, which added to the end
  6987. ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
  6988. ## LD_SWITCH_SYSTEM_TEMACS.
  6989. case "$opsys" in
  6990. netbsd|openbsd)
  6991. ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
  6992. LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
  6993. esac
  6994. C_SWITCH_MACHINE=
  6995. if test "$machine" = "alpha"; then
  6996. ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
  6997. if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
  6998. fi
  6999. if test "$ac_cv_have_decl___ELF__" = "yes"; then
  7000. ## With ELF, make sure that all common symbols get allocated to in the
  7001. ## data section. Otherwise, the dump of temacs may miss variables in
  7002. ## the shared library that have been initialized. For example, with
  7003. ## GNU libc, __malloc_initialized would normally be resolved to the
  7004. ## shared library's .bss section, which is fatal.
  7005. if test "x$GCC" = "xyes"; then
  7006. C_SWITCH_MACHINE="-fno-common"
  7007. else
  7008. as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
  7009. fi
  7010. else
  7011. UNEXEC_OBJ=unexalpha.o
  7012. fi
  7013. fi
  7014. C_SWITCH_SYSTEM=
  7015. ## Some programs in src produce warnings saying certain subprograms
  7016. ## are too complex and need a MAXMEM value greater than 2000 for
  7017. ## additional optimization. --nils@exp-math.uni-essen.de
  7018. test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
  7019. C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
  7020. ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
  7021. ## It is redundant in glibc2, since we define _GNU_SOURCE.
  7022. LIBS_SYSTEM=
  7023. case "$opsys" in
  7024. ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
  7025. aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
  7026. freebsd) LIBS_SYSTEM="-lutil" ;;
  7027. hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
  7028. sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
  7029. ## Motif needs -lgen.
  7030. unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
  7031. esac
  7032. ### Make sure subsequent tests use flags consistent with the build flags.
  7033. if test x"${OVERRIDE_CPPFLAGS}" != x; then
  7034. CPPFLAGS="${OVERRIDE_CPPFLAGS}"
  7035. else
  7036. CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
  7037. fi
  7038. # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
  7039. # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
  7040. # Check whether --enable-largefile was given.
  7041. if test "${enable_largefile+set}" = set; then :
  7042. enableval=$enable_largefile;
  7043. fi
  7044. if test "$enable_largefile" != no; then
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7046. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7047. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. ac_cv_sys_largefile_CC=no
  7051. if test "$GCC" != yes; then
  7052. ac_save_CC=$CC
  7053. while :; do
  7054. # IRIX 6.2 and later do not support large files by default,
  7055. # so use the C compiler's -n32 option if that helps.
  7056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7057. /* end confdefs.h. */
  7058. #include <sys/types.h>
  7059. /* Check that off_t can represent 2**63 - 1 correctly.
  7060. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7061. since some C++ compilers masquerading as C compilers
  7062. incorrectly reject 9223372036854775807. */
  7063. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7064. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7065. && LARGE_OFF_T % 2147483647 == 1)
  7066. ? 1 : -1];
  7067. int
  7068. main ()
  7069. {
  7070. ;
  7071. return 0;
  7072. }
  7073. _ACEOF
  7074. if ac_fn_c_try_compile "$LINENO"; then :
  7075. break
  7076. fi
  7077. rm -f core conftest.err conftest.$ac_objext
  7078. CC="$CC -n32"
  7079. if ac_fn_c_try_compile "$LINENO"; then :
  7080. ac_cv_sys_largefile_CC=' -n32'; break
  7081. fi
  7082. rm -f core conftest.err conftest.$ac_objext
  7083. break
  7084. done
  7085. CC=$ac_save_CC
  7086. rm -f conftest.$ac_ext
  7087. fi
  7088. fi
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7090. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7091. if test "$ac_cv_sys_largefile_CC" != no; then
  7092. CC=$CC$ac_cv_sys_largefile_CC
  7093. fi
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7095. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7096. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7097. $as_echo_n "(cached) " >&6
  7098. else
  7099. while :; do
  7100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7101. /* end confdefs.h. */
  7102. #include <sys/types.h>
  7103. /* Check that off_t can represent 2**63 - 1 correctly.
  7104. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7105. since some C++ compilers masquerading as C compilers
  7106. incorrectly reject 9223372036854775807. */
  7107. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7108. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7109. && LARGE_OFF_T % 2147483647 == 1)
  7110. ? 1 : -1];
  7111. int
  7112. main ()
  7113. {
  7114. ;
  7115. return 0;
  7116. }
  7117. _ACEOF
  7118. if ac_fn_c_try_compile "$LINENO"; then :
  7119. ac_cv_sys_file_offset_bits=no; break
  7120. fi
  7121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7123. /* end confdefs.h. */
  7124. #define _FILE_OFFSET_BITS 64
  7125. #include <sys/types.h>
  7126. /* Check that off_t can represent 2**63 - 1 correctly.
  7127. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7128. since some C++ compilers masquerading as C compilers
  7129. incorrectly reject 9223372036854775807. */
  7130. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7131. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7132. && LARGE_OFF_T % 2147483647 == 1)
  7133. ? 1 : -1];
  7134. int
  7135. main ()
  7136. {
  7137. ;
  7138. return 0;
  7139. }
  7140. _ACEOF
  7141. if ac_fn_c_try_compile "$LINENO"; then :
  7142. ac_cv_sys_file_offset_bits=64; break
  7143. fi
  7144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7145. ac_cv_sys_file_offset_bits=unknown
  7146. break
  7147. done
  7148. fi
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7150. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7151. case $ac_cv_sys_file_offset_bits in #(
  7152. no | unknown) ;;
  7153. *)
  7154. cat >>confdefs.h <<_ACEOF
  7155. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7156. _ACEOF
  7157. ;;
  7158. esac
  7159. rm -rf conftest*
  7160. if test $ac_cv_sys_file_offset_bits = unknown; then
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7162. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7163. if test "${ac_cv_sys_large_files+set}" = set; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. while :; do
  7167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7168. /* end confdefs.h. */
  7169. #include <sys/types.h>
  7170. /* Check that off_t can represent 2**63 - 1 correctly.
  7171. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7172. since some C++ compilers masquerading as C compilers
  7173. incorrectly reject 9223372036854775807. */
  7174. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7175. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7176. && LARGE_OFF_T % 2147483647 == 1)
  7177. ? 1 : -1];
  7178. int
  7179. main ()
  7180. {
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. if ac_fn_c_try_compile "$LINENO"; then :
  7186. ac_cv_sys_large_files=no; break
  7187. fi
  7188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7190. /* end confdefs.h. */
  7191. #define _LARGE_FILES 1
  7192. #include <sys/types.h>
  7193. /* Check that off_t can represent 2**63 - 1 correctly.
  7194. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7195. since some C++ compilers masquerading as C compilers
  7196. incorrectly reject 9223372036854775807. */
  7197. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7198. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7199. && LARGE_OFF_T % 2147483647 == 1)
  7200. ? 1 : -1];
  7201. int
  7202. main ()
  7203. {
  7204. ;
  7205. return 0;
  7206. }
  7207. _ACEOF
  7208. if ac_fn_c_try_compile "$LINENO"; then :
  7209. ac_cv_sys_large_files=1; break
  7210. fi
  7211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7212. ac_cv_sys_large_files=unknown
  7213. break
  7214. done
  7215. fi
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7217. $as_echo "$ac_cv_sys_large_files" >&6; }
  7218. case $ac_cv_sys_large_files in #(
  7219. no | unknown) ;;
  7220. *)
  7221. cat >>confdefs.h <<_ACEOF
  7222. #define _LARGE_FILES $ac_cv_sys_large_files
  7223. _ACEOF
  7224. ;;
  7225. esac
  7226. rm -rf conftest*
  7227. fi
  7228. fi
  7229. LIB_MATH=-lm
  7230. LIB_STANDARD=
  7231. START_FILES=
  7232. case $opsys in
  7233. cygwin )
  7234. LIB_MATH=
  7235. START_FILES='pre-crt0.o'
  7236. ;;
  7237. darwin )
  7238. ## Adding -lm confuses the dynamic linker, so omit it.
  7239. LIB_MATH=
  7240. START_FILES='pre-crt0.o'
  7241. ;;
  7242. freebsd )
  7243. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
  7244. START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
  7245. ;;
  7246. gnu-linux | gnu-kfreebsd )
  7247. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
  7248. START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
  7249. ;;
  7250. hpux10-20 | hpux11 )
  7251. LIB_STANDARD=-lc
  7252. START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
  7253. ;;
  7254. netbsd | openbsd )
  7255. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
  7256. START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
  7257. ;;
  7258. esac
  7259. crt_files=
  7260. for file in x $LIB_STANDARD $START_FILES; do
  7261. case "$file" in
  7262. *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
  7263. esac
  7264. done
  7265. if test "x$crt_files" != x; then
  7266. ## If user specified a crt-dir, use that unconditionally.
  7267. crt_gcc=no
  7268. if test "X$CRT_DIR" = "X"; then
  7269. CRT_DIR=/usr/lib # default
  7270. case "$canonical" in
  7271. x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
  7272. ## On x86-64 and s390x GNU/Linux distributions, the standard library
  7273. ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
  7274. ## For anything else (eg /usr/lib32), it is up the user to specify
  7275. ## the location (bug#5655).
  7276. ## Test for crtn.o, not just the directory, because sometimes the
  7277. ## directory exists but does not have the relevant files (bug#1287).
  7278. ## FIXME better to test for binary compatibility somehow.
  7279. test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
  7280. ;;
  7281. powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
  7282. esac
  7283. case "$opsys" in
  7284. hpux10-20) CRT_DIR=/lib ;;
  7285. esac
  7286. test "x${GCC}" = xyes && crt_gcc=yes
  7287. fi # CRT_DIR = ""
  7288. crt_missing=
  7289. for file in $crt_files; do
  7290. ## If we're using gcc, try to determine it automatically by asking
  7291. ## gcc. [If this doesn't work, CRT_DIR will remain at the
  7292. ## system-dependent default from above.]
  7293. if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
  7294. crt_file=`$CC --print-file-name=$file 2>/dev/null`
  7295. case "$crt_file" in
  7296. */*)
  7297. CRT_DIR=`$as_dirname -- "$crt_file" ||
  7298. $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7299. X"$crt_file" : 'X\(//\)[^/]' \| \
  7300. X"$crt_file" : 'X\(//\)$' \| \
  7301. X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
  7302. $as_echo X"$crt_file" |
  7303. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7304. s//\1/
  7305. q
  7306. }
  7307. /^X\(\/\/\)[^/].*/{
  7308. s//\1/
  7309. q
  7310. }
  7311. /^X\(\/\/\)$/{
  7312. s//\1/
  7313. q
  7314. }
  7315. /^X\(\/\).*/{
  7316. s//\1/
  7317. q
  7318. }
  7319. s/.*/./; q'`
  7320. ;;
  7321. esac
  7322. fi
  7323. crt_gcc=no
  7324. test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
  7325. done # $crt_files
  7326. test "x$crt_missing" = x || \
  7327. as_fn_error "Required file(s) not found:$crt_missing
  7328. Try using the --with-crt-dir option." "$LINENO" 5
  7329. fi # crt_files != ""
  7330. case $opsys in
  7331. netbsd | openbsd )
  7332. if test -f $CRT_DIR/crti.o; then
  7333. test -f $CRT_DIR/crtn.o || \
  7334. as_fn_error "Required file not found: crtn.o" "$LINENO" 5
  7335. LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
  7336. START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
  7337. fi
  7338. ;;
  7339. esac
  7340. if test "${with_sound}" != "no"; then
  7341. # Sound support for GNU/Linux and the free BSDs.
  7342. for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
  7343. do :
  7344. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7345. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7346. eval as_val=\$$as_ac_Header
  7347. if test "x$as_val" = x""yes; then :
  7348. cat >>confdefs.h <<_ACEOF
  7349. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7350. _ACEOF
  7351. have_sound_header=yes
  7352. fi
  7353. done
  7354. # Emulation library used on NetBSD.
  7355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
  7356. $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
  7357. if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
  7358. $as_echo_n "(cached) " >&6
  7359. else
  7360. ac_check_lib_save_LIBS=$LIBS
  7361. LIBS="-lossaudio $LIBS"
  7362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7363. /* end confdefs.h. */
  7364. /* Override any GCC internal prototype to avoid an error.
  7365. Use char because int might match the return type of a GCC
  7366. builtin and then its argument prototype would still apply. */
  7367. #ifdef __cplusplus
  7368. extern "C"
  7369. #endif
  7370. char _oss_ioctl ();
  7371. int
  7372. main ()
  7373. {
  7374. return _oss_ioctl ();
  7375. ;
  7376. return 0;
  7377. }
  7378. _ACEOF
  7379. if ac_fn_c_try_link "$LINENO"; then :
  7380. ac_cv_lib_ossaudio__oss_ioctl=yes
  7381. else
  7382. ac_cv_lib_ossaudio__oss_ioctl=no
  7383. fi
  7384. rm -f core conftest.err conftest.$ac_objext \
  7385. conftest$ac_exeext conftest.$ac_ext
  7386. LIBS=$ac_check_lib_save_LIBS
  7387. fi
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
  7389. $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
  7390. if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
  7391. LIBSOUND=-lossaudio
  7392. else
  7393. LIBSOUND=
  7394. fi
  7395. ALSA_REQUIRED=1.0.0
  7396. ALSA_MODULES="alsa >= $ALSA_REQUIRED"
  7397. succeeded=no
  7398. # Extract the first word of "pkg-config", so it can be a program name with args.
  7399. set dummy pkg-config; ac_word=$2
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7401. $as_echo_n "checking for $ac_word... " >&6; }
  7402. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  7403. $as_echo_n "(cached) " >&6
  7404. else
  7405. case $PKG_CONFIG in
  7406. [\\/]* | ?:[\\/]*)
  7407. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  7408. ;;
  7409. *)
  7410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7411. for as_dir in $PATH
  7412. do
  7413. IFS=$as_save_IFS
  7414. test -z "$as_dir" && as_dir=.
  7415. for ac_exec_ext in '' $ac_executable_extensions; do
  7416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7417. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  7418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7419. break 2
  7420. fi
  7421. done
  7422. done
  7423. IFS=$as_save_IFS
  7424. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  7425. ;;
  7426. esac
  7427. fi
  7428. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  7429. if test -n "$PKG_CONFIG"; then
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  7431. $as_echo "$PKG_CONFIG" >&6; }
  7432. else
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7434. $as_echo "no" >&6; }
  7435. fi
  7436. if test "$PKG_CONFIG" = "no" ; then
  7437. HAVE_ALSA=no
  7438. else
  7439. PKG_CONFIG_MIN_VERSION=0.9.0
  7440. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
  7442. $as_echo_n "checking for $ALSA_MODULES... " >&6; }
  7443. if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7445. $as_echo "yes" >&6; }
  7446. succeeded=yes
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
  7448. $as_echo_n "checking ALSA_CFLAGS... " >&6; }
  7449. ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  7451. $as_echo "$ALSA_CFLAGS" >&6; }
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
  7453. $as_echo_n "checking ALSA_LIBS... " >&6; }
  7454. ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
  7455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  7456. $as_echo "$ALSA_LIBS" >&6; }
  7457. else
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7459. $as_echo "no" >&6; }
  7460. ALSA_CFLAGS=""
  7461. ALSA_LIBS=""
  7462. ## If we have a custom action on failure, don't print errors, but
  7463. ## do set a variable so people can do so.
  7464. ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
  7465. fi
  7466. else
  7467. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  7468. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  7469. fi
  7470. fi
  7471. if test $succeeded = yes; then
  7472. HAVE_ALSA=yes
  7473. else
  7474. HAVE_ALSA=no
  7475. fi
  7476. if test $HAVE_ALSA = yes; then
  7477. SAVE_CFLAGS="$CFLAGS"
  7478. SAVE_LIBS="$LIBS"
  7479. CFLAGS="$ALSA_CFLAGS $CFLAGS"
  7480. LIBS="$ALSA_LIBS $LIBS"
  7481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7482. /* end confdefs.h. */
  7483. #include <asoundlib.h>
  7484. int
  7485. main ()
  7486. {
  7487. snd_lib_error_set_handler (0);
  7488. ;
  7489. return 0;
  7490. }
  7491. _ACEOF
  7492. if ac_fn_c_try_compile "$LINENO"; then :
  7493. emacs_alsa_normal=yes
  7494. else
  7495. emacs_alsa_normal=no
  7496. fi
  7497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7498. if test "$emacs_alsa_normal" != yes; then
  7499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7500. /* end confdefs.h. */
  7501. #include <alsa/asoundlib.h>
  7502. int
  7503. main ()
  7504. {
  7505. snd_lib_error_set_handler (0);
  7506. ;
  7507. return 0;
  7508. }
  7509. _ACEOF
  7510. if ac_fn_c_try_compile "$LINENO"; then :
  7511. emacs_alsa_subdir=yes
  7512. else
  7513. emacs_alsa_subdir=no
  7514. fi
  7515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7516. if test "$emacs_alsa_subdir" != yes; then
  7517. as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
  7518. fi
  7519. ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
  7520. fi
  7521. CFLAGS="$SAVE_CFLAGS"
  7522. LIBS="$SAVE_LIBS"
  7523. LIBSOUND="$LIBSOUND $ALSA_LIBS"
  7524. CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
  7525. $as_echo "#define HAVE_ALSA 1" >>confdefs.h
  7526. fi
  7527. if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
  7528. case "$opsys" in
  7529. gnu-linux|freebsd|netbsd)
  7530. $as_echo "#define HAVE_SOUND 1" >>confdefs.h
  7531. ;;
  7532. esac
  7533. fi
  7534. fi
  7535. for ac_header in sys/select.h sys/time.h unistd.h utime.h \
  7536. linux/version.h sys/systeminfo.h \
  7537. stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
  7538. sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
  7539. sys/utsname.h pwd.h utmp.h dirent.h util.h
  7540. do :
  7541. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7542. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7543. eval as_val=\$$as_ac_Header
  7544. if test "x$as_val" = x""yes; then :
  7545. cat >>confdefs.h <<_ACEOF
  7546. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7547. _ACEOF
  7548. fi
  7549. done
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
  7551. $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
  7552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7553. /* end confdefs.h. */
  7554. #include <sys/personality.h>
  7555. int
  7556. main ()
  7557. {
  7558. personality (PER_LINUX32)
  7559. ;
  7560. return 0;
  7561. }
  7562. _ACEOF
  7563. if ac_fn_c_try_compile "$LINENO"; then :
  7564. emacs_cv_personality_linux32=yes
  7565. else
  7566. emacs_cv_personality_linux32=no
  7567. fi
  7568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
  7570. $as_echo "$emacs_cv_personality_linux32" >&6; }
  7571. if test $emacs_cv_personality_linux32 = yes; then
  7572. $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
  7573. fi
  7574. for ac_header in term.h
  7575. do :
  7576. ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
  7577. if test "x$ac_cv_header_term_h" = x""yes; then :
  7578. cat >>confdefs.h <<_ACEOF
  7579. #define HAVE_TERM_H 1
  7580. _ACEOF
  7581. fi
  7582. done
  7583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7584. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7585. if test "${ac_cv_header_time+set}" = set; then :
  7586. $as_echo_n "(cached) " >&6
  7587. else
  7588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7589. /* end confdefs.h. */
  7590. #include <sys/types.h>
  7591. #include <sys/time.h>
  7592. #include <time.h>
  7593. int
  7594. main ()
  7595. {
  7596. if ((struct tm *) 0)
  7597. return 0;
  7598. ;
  7599. return 0;
  7600. }
  7601. _ACEOF
  7602. if ac_fn_c_try_compile "$LINENO"; then :
  7603. ac_cv_header_time=yes
  7604. else
  7605. ac_cv_header_time=no
  7606. fi
  7607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7608. fi
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7610. $as_echo "$ac_cv_header_time" >&6; }
  7611. if test $ac_cv_header_time = yes; then
  7612. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7613. fi
  7614. ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
  7615. if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
  7616. ac_have_decl=1
  7617. else
  7618. ac_have_decl=0
  7619. fi
  7620. cat >>confdefs.h <<_ACEOF
  7621. #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
  7622. _ACEOF
  7623. if test $ac_cv_have_decl_sys_siglist != yes; then
  7624. # For Tru64, at least:
  7625. ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
  7626. if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
  7627. ac_have_decl=1
  7628. else
  7629. ac_have_decl=0
  7630. fi
  7631. cat >>confdefs.h <<_ACEOF
  7632. #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
  7633. _ACEOF
  7634. if test $ac_cv_have_decl___sys_siglist = yes; then
  7635. $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
  7636. fi
  7637. fi
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  7639. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  7640. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  7641. $as_echo_n "(cached) " >&6
  7642. else
  7643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7644. /* end confdefs.h. */
  7645. #include <sys/types.h>
  7646. #include <sys/wait.h>
  7647. #ifndef WEXITSTATUS
  7648. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  7649. #endif
  7650. #ifndef WIFEXITED
  7651. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  7652. #endif
  7653. int
  7654. main ()
  7655. {
  7656. int s;
  7657. wait (&s);
  7658. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  7659. ;
  7660. return 0;
  7661. }
  7662. _ACEOF
  7663. if ac_fn_c_try_compile "$LINENO"; then :
  7664. ac_cv_header_sys_wait_h=yes
  7665. else
  7666. ac_cv_header_sys_wait_h=no
  7667. fi
  7668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7669. fi
  7670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  7671. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  7672. if test $ac_cv_header_sys_wait_h = yes; then
  7673. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  7674. fi
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
  7676. $as_echo_n "checking for struct utimbuf... " >&6; }
  7677. if test "${emacs_cv_struct_utimbuf+set}" = set; then :
  7678. $as_echo_n "(cached) " >&6
  7679. else
  7680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7681. /* end confdefs.h. */
  7682. #ifdef TIME_WITH_SYS_TIME
  7683. #include <sys/time.h>
  7684. #include <time.h>
  7685. #else
  7686. #ifdef HAVE_SYS_TIME_H
  7687. #include <sys/time.h>
  7688. #else
  7689. #include <time.h>
  7690. #endif
  7691. #endif
  7692. #ifdef HAVE_UTIME_H
  7693. #include <utime.h>
  7694. #endif
  7695. int
  7696. main ()
  7697. {
  7698. static struct utimbuf x; x.actime = x.modtime;
  7699. ;
  7700. return 0;
  7701. }
  7702. _ACEOF
  7703. if ac_fn_c_try_compile "$LINENO"; then :
  7704. emacs_cv_struct_utimbuf=yes
  7705. else
  7706. emacs_cv_struct_utimbuf=no
  7707. fi
  7708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7709. fi
  7710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
  7711. $as_echo "$emacs_cv_struct_utimbuf" >&6; }
  7712. if test $emacs_cv_struct_utimbuf = yes; then
  7713. $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
  7714. fi
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
  7716. $as_echo_n "checking for speed_t... " >&6; }
  7717. if test "${emacs_cv_speed_t+set}" = set; then :
  7718. $as_echo_n "(cached) " >&6
  7719. else
  7720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7721. /* end confdefs.h. */
  7722. #include <termios.h>
  7723. int
  7724. main ()
  7725. {
  7726. speed_t x = 1;
  7727. ;
  7728. return 0;
  7729. }
  7730. _ACEOF
  7731. if ac_fn_c_try_compile "$LINENO"; then :
  7732. emacs_cv_speed_t=yes
  7733. else
  7734. emacs_cv_speed_t=no
  7735. fi
  7736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7737. fi
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
  7739. $as_echo "$emacs_cv_speed_t" >&6; }
  7740. if test $emacs_cv_speed_t = yes; then
  7741. $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
  7742. fi
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  7744. $as_echo_n "checking for struct timeval... " >&6; }
  7745. if test "${emacs_cv_struct_timeval+set}" = set; then :
  7746. $as_echo_n "(cached) " >&6
  7747. else
  7748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7749. /* end confdefs.h. */
  7750. #ifdef TIME_WITH_SYS_TIME
  7751. #include <sys/time.h>
  7752. #include <time.h>
  7753. #else
  7754. #ifdef HAVE_SYS_TIME_H
  7755. #include <sys/time.h>
  7756. #else
  7757. #include <time.h>
  7758. #endif
  7759. #endif
  7760. int
  7761. main ()
  7762. {
  7763. static struct timeval x; x.tv_sec = x.tv_usec;
  7764. ;
  7765. return 0;
  7766. }
  7767. _ACEOF
  7768. if ac_fn_c_try_compile "$LINENO"; then :
  7769. emacs_cv_struct_timeval=yes
  7770. else
  7771. emacs_cv_struct_timeval=no
  7772. fi
  7773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7774. fi
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
  7776. $as_echo "$emacs_cv_struct_timeval" >&6; }
  7777. HAVE_TIMEVAL=$emacs_cv_struct_timeval
  7778. if test $emacs_cv_struct_timeval = yes; then
  7779. $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
  7780. fi
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
  7782. $as_echo_n "checking for struct exception... " >&6; }
  7783. if test "${emacs_cv_struct_exception+set}" = set; then :
  7784. $as_echo_n "(cached) " >&6
  7785. else
  7786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7787. /* end confdefs.h. */
  7788. #include <math.h>
  7789. int
  7790. main ()
  7791. {
  7792. static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
  7793. ;
  7794. return 0;
  7795. }
  7796. _ACEOF
  7797. if ac_fn_c_try_compile "$LINENO"; then :
  7798. emacs_cv_struct_exception=yes
  7799. else
  7800. emacs_cv_struct_exception=no
  7801. fi
  7802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7803. fi
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
  7805. $as_echo "$emacs_cv_struct_exception" >&6; }
  7806. HAVE_EXCEPTION=$emacs_cv_struct_exception
  7807. if test $emacs_cv_struct_exception != yes; then
  7808. $as_echo "#define NO_MATHERR 1" >>confdefs.h
  7809. fi
  7810. for ac_header in sys/socket.h
  7811. do :
  7812. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  7813. if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  7814. cat >>confdefs.h <<_ACEOF
  7815. #define HAVE_SYS_SOCKET_H 1
  7816. _ACEOF
  7817. fi
  7818. done
  7819. for ac_header in net/if.h
  7820. do :
  7821. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
  7822. #if HAVE_SYS_SOCKET_H
  7823. #include <sys/socket.h>
  7824. #endif
  7825. "
  7826. if test "x$ac_cv_header_net_if_h" = x""yes; then :
  7827. cat >>confdefs.h <<_ACEOF
  7828. #define HAVE_NET_IF_H 1
  7829. _ACEOF
  7830. fi
  7831. done
  7832. for ac_header in ifaddrs.h
  7833. do :
  7834. ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
  7835. #if HAVE_SYS_SOCKET_H
  7836. #include <sys/socket.h>
  7837. #endif
  7838. "
  7839. if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
  7840. cat >>confdefs.h <<_ACEOF
  7841. #define HAVE_IFADDRS_H 1
  7842. _ACEOF
  7843. fi
  7844. done
  7845. for ac_header in net/if_dl.h
  7846. do :
  7847. ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
  7848. #if HAVE_SYS_SOCKET_H
  7849. #include <sys/socket.h>
  7850. #endif
  7851. "
  7852. if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
  7853. cat >>confdefs.h <<_ACEOF
  7854. #define HAVE_NET_IF_DL_H 1
  7855. _ACEOF
  7856. fi
  7857. done
  7858. for ac_func in getifaddrs freeifaddrs
  7859. do :
  7860. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7861. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7862. eval as_val=\$$as_ac_var
  7863. if test "x$as_val" = x""yes; then :
  7864. cat >>confdefs.h <<_ACEOF
  7865. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7866. _ACEOF
  7867. fi
  7868. done
  7869. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
  7870. #if HAVE_SYS_SOCKET_H
  7871. #include <sys/socket.h>
  7872. #endif
  7873. #if HAVE_NET_IF_H
  7874. #include <net/if.h>
  7875. #endif
  7876. "
  7877. if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
  7878. cat >>confdefs.h <<_ACEOF
  7879. #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
  7880. _ACEOF
  7881. fi
  7882. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
  7883. #if HAVE_SYS_SOCKET_H
  7884. #include <sys/socket.h>
  7885. #endif
  7886. #if HAVE_NET_IF_H
  7887. #include <net/if.h>
  7888. #endif
  7889. "
  7890. if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
  7891. cat >>confdefs.h <<_ACEOF
  7892. #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
  7893. _ACEOF
  7894. fi
  7895. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
  7896. #if HAVE_SYS_SOCKET_H
  7897. #include <sys/socket.h>
  7898. #endif
  7899. #if HAVE_NET_IF_H
  7900. #include <net/if.h>
  7901. #endif
  7902. "
  7903. if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
  7904. cat >>confdefs.h <<_ACEOF
  7905. #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
  7906. _ACEOF
  7907. fi
  7908. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
  7909. #if HAVE_SYS_SOCKET_H
  7910. #include <sys/socket.h>
  7911. #endif
  7912. #if HAVE_NET_IF_H
  7913. #include <net/if.h>
  7914. #endif
  7915. "
  7916. if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
  7917. cat >>confdefs.h <<_ACEOF
  7918. #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
  7919. _ACEOF
  7920. fi
  7921. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
  7922. #if HAVE_SYS_SOCKET_H
  7923. #include <sys/socket.h>
  7924. #endif
  7925. #if HAVE_NET_IF_H
  7926. #include <net/if.h>
  7927. #endif
  7928. "
  7929. if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
  7930. cat >>confdefs.h <<_ACEOF
  7931. #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
  7932. _ACEOF
  7933. fi
  7934. ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
  7935. #if HAVE_SYS_SOCKET_H
  7936. #include <sys/socket.h>
  7937. #endif
  7938. #if HAVE_NET_IF_H
  7939. #include <net/if.h>
  7940. #endif
  7941. "
  7942. if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
  7943. cat >>confdefs.h <<_ACEOF
  7944. #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
  7945. _ACEOF
  7946. fi
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  7948. $as_echo_n "checking for function prototypes... " >&6; }
  7949. if test "$ac_cv_prog_cc_c89" != no; then
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7951. $as_echo "yes" >&6; }
  7952. $as_echo "#define PROTOTYPES 1" >>confdefs.h
  7953. $as_echo "#define __PROTOTYPES 1" >>confdefs.h
  7954. else
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7956. $as_echo "no" >&6; }
  7957. fi
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7959. $as_echo_n "checking for working volatile... " >&6; }
  7960. if test "${ac_cv_c_volatile+set}" = set; then :
  7961. $as_echo_n "(cached) " >&6
  7962. else
  7963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7964. /* end confdefs.h. */
  7965. int
  7966. main ()
  7967. {
  7968. volatile int x;
  7969. int * volatile y = (int *) 0;
  7970. return !x && !y;
  7971. ;
  7972. return 0;
  7973. }
  7974. _ACEOF
  7975. if ac_fn_c_try_compile "$LINENO"; then :
  7976. ac_cv_c_volatile=yes
  7977. else
  7978. ac_cv_c_volatile=no
  7979. fi
  7980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7981. fi
  7982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7983. $as_echo "$ac_cv_c_volatile" >&6; }
  7984. if test $ac_cv_c_volatile = no; then
  7985. $as_echo "#define volatile /**/" >>confdefs.h
  7986. fi
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7988. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7989. if test "${ac_cv_c_const+set}" = set; then :
  7990. $as_echo_n "(cached) " >&6
  7991. else
  7992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7993. /* end confdefs.h. */
  7994. int
  7995. main ()
  7996. {
  7997. /* FIXME: Include the comments suggested by Paul. */
  7998. #ifndef __cplusplus
  7999. /* Ultrix mips cc rejects this. */
  8000. typedef int charset[2];
  8001. const charset cs;
  8002. /* SunOS 4.1.1 cc rejects this. */
  8003. char const *const *pcpcc;
  8004. char **ppc;
  8005. /* NEC SVR4.0.2 mips cc rejects this. */
  8006. struct point {int x, y;};
  8007. static struct point const zero = {0,0};
  8008. /* AIX XL C 1.02.0.0 rejects this.
  8009. It does not let you subtract one const X* pointer from another in
  8010. an arm of an if-expression whose if-part is not a constant
  8011. expression */
  8012. const char *g = "string";
  8013. pcpcc = &g + (g ? g-g : 0);
  8014. /* HPUX 7.0 cc rejects these. */
  8015. ++pcpcc;
  8016. ppc = (char**) pcpcc;
  8017. pcpcc = (char const *const *) ppc;
  8018. { /* SCO 3.2v4 cc rejects this. */
  8019. char *t;
  8020. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8021. *t++ = 0;
  8022. if (s) return 0;
  8023. }
  8024. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8025. int x[] = {25, 17};
  8026. const int *foo = &x[0];
  8027. ++foo;
  8028. }
  8029. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8030. typedef const int *iptr;
  8031. iptr p = 0;
  8032. ++p;
  8033. }
  8034. { /* AIX XL C 1.02.0.0 rejects this saying
  8035. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8036. struct s { int j; const int *ap[3]; };
  8037. struct s *b; b->j = 5;
  8038. }
  8039. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8040. const int foo = 10;
  8041. if (!foo) return 0;
  8042. }
  8043. return !cs[0] && !zero.x;
  8044. #endif
  8045. ;
  8046. return 0;
  8047. }
  8048. _ACEOF
  8049. if ac_fn_c_try_compile "$LINENO"; then :
  8050. ac_cv_c_const=yes
  8051. else
  8052. ac_cv_c_const=no
  8053. fi
  8054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8055. fi
  8056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  8057. $as_echo "$ac_cv_c_const" >&6; }
  8058. if test $ac_cv_c_const = no; then
  8059. $as_echo "#define const /**/" >>confdefs.h
  8060. fi
  8061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
  8062. $as_echo_n "checking for void * support... " >&6; }
  8063. if test "${emacs_cv_void_star+set}" = set; then :
  8064. $as_echo_n "(cached) " >&6
  8065. else
  8066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8067. /* end confdefs.h. */
  8068. int
  8069. main ()
  8070. {
  8071. void * foo;
  8072. ;
  8073. return 0;
  8074. }
  8075. _ACEOF
  8076. if ac_fn_c_try_compile "$LINENO"; then :
  8077. emacs_cv_void_star=yes
  8078. else
  8079. emacs_cv_void_star=no
  8080. fi
  8081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8082. fi
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
  8084. $as_echo "$emacs_cv_void_star" >&6; }
  8085. if test $emacs_cv_void_star = yes; then
  8086. $as_echo "#define POINTER_TYPE void" >>confdefs.h
  8087. else
  8088. $as_echo "#define POINTER_TYPE char" >>confdefs.h
  8089. fi
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  8091. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  8092. if test "${ac_cv_c_bigendian+set}" = set; then :
  8093. $as_echo_n "(cached) " >&6
  8094. else
  8095. ac_cv_c_bigendian=unknown
  8096. # See if we're dealing with a universal compiler.
  8097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8098. /* end confdefs.h. */
  8099. #ifndef __APPLE_CC__
  8100. not a universal capable compiler
  8101. #endif
  8102. typedef int dummy;
  8103. _ACEOF
  8104. if ac_fn_c_try_compile "$LINENO"; then :
  8105. # Check for potential -arch flags. It is not universal unless
  8106. # there are at least two -arch flags with different values.
  8107. ac_arch=
  8108. ac_prev=
  8109. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  8110. if test -n "$ac_prev"; then
  8111. case $ac_word in
  8112. i?86 | x86_64 | ppc | ppc64)
  8113. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  8114. ac_arch=$ac_word
  8115. else
  8116. ac_cv_c_bigendian=universal
  8117. break
  8118. fi
  8119. ;;
  8120. esac
  8121. ac_prev=
  8122. elif test "x$ac_word" = "x-arch"; then
  8123. ac_prev=arch
  8124. fi
  8125. done
  8126. fi
  8127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8128. if test $ac_cv_c_bigendian = unknown; then
  8129. # See if sys/param.h defines the BYTE_ORDER macro.
  8130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8131. /* end confdefs.h. */
  8132. #include <sys/types.h>
  8133. #include <sys/param.h>
  8134. int
  8135. main ()
  8136. {
  8137. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  8138. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  8139. && LITTLE_ENDIAN)
  8140. bogus endian macros
  8141. #endif
  8142. ;
  8143. return 0;
  8144. }
  8145. _ACEOF
  8146. if ac_fn_c_try_compile "$LINENO"; then :
  8147. # It does; now see whether it defined to BIG_ENDIAN or not.
  8148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8149. /* end confdefs.h. */
  8150. #include <sys/types.h>
  8151. #include <sys/param.h>
  8152. int
  8153. main ()
  8154. {
  8155. #if BYTE_ORDER != BIG_ENDIAN
  8156. not big endian
  8157. #endif
  8158. ;
  8159. return 0;
  8160. }
  8161. _ACEOF
  8162. if ac_fn_c_try_compile "$LINENO"; then :
  8163. ac_cv_c_bigendian=yes
  8164. else
  8165. ac_cv_c_bigendian=no
  8166. fi
  8167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8168. fi
  8169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8170. fi
  8171. if test $ac_cv_c_bigendian = unknown; then
  8172. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  8173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8174. /* end confdefs.h. */
  8175. #include <limits.h>
  8176. int
  8177. main ()
  8178. {
  8179. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  8180. bogus endian macros
  8181. #endif
  8182. ;
  8183. return 0;
  8184. }
  8185. _ACEOF
  8186. if ac_fn_c_try_compile "$LINENO"; then :
  8187. # It does; now see whether it defined to _BIG_ENDIAN or not.
  8188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8189. /* end confdefs.h. */
  8190. #include <limits.h>
  8191. int
  8192. main ()
  8193. {
  8194. #ifndef _BIG_ENDIAN
  8195. not big endian
  8196. #endif
  8197. ;
  8198. return 0;
  8199. }
  8200. _ACEOF
  8201. if ac_fn_c_try_compile "$LINENO"; then :
  8202. ac_cv_c_bigendian=yes
  8203. else
  8204. ac_cv_c_bigendian=no
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8207. fi
  8208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8209. fi
  8210. if test $ac_cv_c_bigendian = unknown; then
  8211. # Compile a test program.
  8212. if test "$cross_compiling" = yes; then :
  8213. # Try to guess by grepping values from an object file.
  8214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8215. /* end confdefs.h. */
  8216. short int ascii_mm[] =
  8217. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8218. short int ascii_ii[] =
  8219. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8220. int use_ascii (int i) {
  8221. return ascii_mm[i] + ascii_ii[i];
  8222. }
  8223. short int ebcdic_ii[] =
  8224. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8225. short int ebcdic_mm[] =
  8226. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8227. int use_ebcdic (int i) {
  8228. return ebcdic_mm[i] + ebcdic_ii[i];
  8229. }
  8230. extern int foo;
  8231. int
  8232. main ()
  8233. {
  8234. return use_ascii (foo) == use_ebcdic (foo);
  8235. ;
  8236. return 0;
  8237. }
  8238. _ACEOF
  8239. if ac_fn_c_try_compile "$LINENO"; then :
  8240. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  8241. ac_cv_c_bigendian=yes
  8242. fi
  8243. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8244. if test "$ac_cv_c_bigendian" = unknown; then
  8245. ac_cv_c_bigendian=no
  8246. else
  8247. # finding both strings is unlikely to happen, but who knows?
  8248. ac_cv_c_bigendian=unknown
  8249. fi
  8250. fi
  8251. fi
  8252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8253. else
  8254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8255. /* end confdefs.h. */
  8256. $ac_includes_default
  8257. int
  8258. main ()
  8259. {
  8260. /* Are we little or big endian? From Harbison&Steele. */
  8261. union
  8262. {
  8263. long int l;
  8264. char c[sizeof (long int)];
  8265. } u;
  8266. u.l = 1;
  8267. return u.c[sizeof (long int) - 1] == 1;
  8268. ;
  8269. return 0;
  8270. }
  8271. _ACEOF
  8272. if ac_fn_c_try_run "$LINENO"; then :
  8273. ac_cv_c_bigendian=no
  8274. else
  8275. ac_cv_c_bigendian=yes
  8276. fi
  8277. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8278. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8279. fi
  8280. fi
  8281. fi
  8282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  8283. $as_echo "$ac_cv_c_bigendian" >&6; }
  8284. case $ac_cv_c_bigendian in #(
  8285. yes)
  8286. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  8287. ;; #(
  8288. no)
  8289. ;; #(
  8290. universal)
  8291. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  8292. ;; #(
  8293. *)
  8294. as_fn_error "unknown endianness
  8295. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  8296. esac
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
  8298. $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
  8299. if test "${emacs_cv_attribute_aligned+set}" = set; then :
  8300. $as_echo_n "(cached) " >&6
  8301. else
  8302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8303. /* end confdefs.h. */
  8304. char __attribute__ ((__aligned__ (1 << 3))) c;
  8305. int
  8306. main ()
  8307. {
  8308. ;
  8309. return 0;
  8310. }
  8311. _ACEOF
  8312. if ac_fn_c_try_compile "$LINENO"; then :
  8313. emacs_cv_attribute_aligned=yes
  8314. else
  8315. emacs_cv_attribute_aligned=no
  8316. fi
  8317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8318. fi
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
  8320. $as_echo "$emacs_cv_attribute_aligned" >&6; }
  8321. if test $emacs_cv_attribute_aligned = yes; then
  8322. $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
  8323. fi
  8324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  8325. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  8326. set x ${MAKE-make}
  8327. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  8328. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  8329. $as_echo_n "(cached) " >&6
  8330. else
  8331. cat >conftest.make <<\_ACEOF
  8332. SHELL = /bin/sh
  8333. all:
  8334. @echo '@@@%%%=$(MAKE)=@@@%%%'
  8335. _ACEOF
  8336. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  8337. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  8338. *@@@%%%=?*=@@@%%%*)
  8339. eval ac_cv_prog_make_${ac_make}_set=yes;;
  8340. *)
  8341. eval ac_cv_prog_make_${ac_make}_set=no;;
  8342. esac
  8343. rm -f conftest.make
  8344. fi
  8345. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8347. $as_echo "yes" >&6; }
  8348. SET_MAKE=
  8349. else
  8350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8351. $as_echo "no" >&6; }
  8352. SET_MAKE="MAKE=${MAKE-make}"
  8353. fi
  8354. DEPFLAGS=
  8355. MKDEPDIR=":"
  8356. deps_frag=deps.mk
  8357. if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
  8359. $as_echo_n "checking whether we are using GNU Make... " >&6; }
  8360. HAVE_GNU_MAKE=no
  8361. testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
  8362. if test "x$testval" != x; then
  8363. HAVE_GNU_MAKE=yes
  8364. else
  8365. ac_enable_autodepend=no
  8366. fi
  8367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
  8368. $as_echo "$HAVE_GNU_MAKE" >&6; }
  8369. if test $HAVE_GNU_MAKE = yes; then
  8370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
  8371. $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
  8372. SAVE_CFLAGS="$CFLAGS"
  8373. CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
  8374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8375. /* end confdefs.h. */
  8376. int
  8377. main ()
  8378. {
  8379. ;
  8380. return 0;
  8381. }
  8382. _ACEOF
  8383. if ac_fn_c_try_compile "$LINENO"; then :
  8384. else
  8385. ac_enable_autodepend=no
  8386. fi
  8387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8388. CFLAGS="$SAVE_CFLAGS"
  8389. test -f deps.d || ac_enable_autodepend=no
  8390. rm -rf deps.d
  8391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
  8392. $as_echo "$ac_enable_autodepend" >&6; }
  8393. fi
  8394. if test $ac_enable_autodepend = yes; then
  8395. DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
  8396. ## In parallel builds, another make might create depdir between
  8397. ## the first test and mkdir, so stick another test on the end.
  8398. ## Or use install-sh -d? mkdir -p is not portable.
  8399. MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
  8400. deps_frag=autodeps.mk
  8401. fi
  8402. fi
  8403. deps_frag=$srcdir/src/$deps_frag
  8404. lisp_frag=$srcdir/src/lisp.mk
  8405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
  8406. $as_echo_n "checking for long file names... " >&6; }
  8407. if test "${ac_cv_sys_long_file_names+set}" = set; then :
  8408. $as_echo_n "(cached) " >&6
  8409. else
  8410. ac_cv_sys_long_file_names=yes
  8411. # Test for long file names in all the places we know might matter:
  8412. # . the current directory, where building will happen
  8413. # $prefix/lib where we will be installing things
  8414. # $exec_prefix/lib likewise
  8415. # $TMPDIR if set, where it might want to write temporary files
  8416. # /tmp where it might want to write temporary files
  8417. # /var/tmp likewise
  8418. # /usr/tmp likewise
  8419. for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
  8420. # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
  8421. # in the usual case where exec_prefix is '${prefix}'.
  8422. case $ac_dir in #(
  8423. . | /* | ?:[\\/]*) ;; #(
  8424. *) continue;;
  8425. esac
  8426. test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
  8427. ac_xdir=$ac_dir/cf$$
  8428. (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
  8429. ac_tf1=$ac_xdir/conftest9012345
  8430. ac_tf2=$ac_xdir/conftest9012346
  8431. touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
  8432. ac_cv_sys_long_file_names=no
  8433. rm -f -r "$ac_xdir" 2>/dev/null
  8434. test $ac_cv_sys_long_file_names = no && break
  8435. done
  8436. fi
  8437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
  8438. $as_echo "$ac_cv_sys_long_file_names" >&6; }
  8439. if test $ac_cv_sys_long_file_names = yes; then
  8440. $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
  8441. fi
  8442. #### Choose a window system.
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  8444. $as_echo_n "checking for X... " >&6; }
  8445. # Check whether --with-x was given.
  8446. if test "${with_x+set}" = set; then :
  8447. withval=$with_x;
  8448. fi
  8449. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  8450. if test "x$with_x" = xno; then
  8451. # The user explicitly disabled X.
  8452. have_x=disabled
  8453. else
  8454. case $x_includes,$x_libraries in #(
  8455. *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
  8456. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  8457. $as_echo_n "(cached) " >&6
  8458. else
  8459. # One or both of the vars are not set, and there is no cached value.
  8460. ac_x_includes=no ac_x_libraries=no
  8461. rm -f -r conftest.dir
  8462. if mkdir conftest.dir; then
  8463. cd conftest.dir
  8464. cat >Imakefile <<'_ACEOF'
  8465. incroot:
  8466. @echo incroot='${INCROOT}'
  8467. usrlibdir:
  8468. @echo usrlibdir='${USRLIBDIR}'
  8469. libdir:
  8470. @echo libdir='${LIBDIR}'
  8471. _ACEOF
  8472. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  8473. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  8474. for ac_var in incroot usrlibdir libdir; do
  8475. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  8476. done
  8477. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  8478. for ac_extension in a so sl dylib la dll; do
  8479. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  8480. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  8481. ac_im_usrlibdir=$ac_im_libdir; break
  8482. fi
  8483. done
  8484. # Screen out bogus values from the imake configuration. They are
  8485. # bogus both because they are the default anyway, and because
  8486. # using them would break gcc on systems where it needs fixed includes.
  8487. case $ac_im_incroot in
  8488. /usr/include) ac_x_includes= ;;
  8489. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  8490. esac
  8491. case $ac_im_usrlibdir in
  8492. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  8493. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  8494. esac
  8495. fi
  8496. cd ..
  8497. rm -f -r conftest.dir
  8498. fi
  8499. # Standard set of common directories for X headers.
  8500. # Check X11 before X11Rn because it is often a symlink to the current release.
  8501. ac_x_header_dirs='
  8502. /usr/X11/include
  8503. /usr/X11R7/include
  8504. /usr/X11R6/include
  8505. /usr/X11R5/include
  8506. /usr/X11R4/include
  8507. /usr/include/X11
  8508. /usr/include/X11R7
  8509. /usr/include/X11R6
  8510. /usr/include/X11R5
  8511. /usr/include/X11R4
  8512. /usr/local/X11/include
  8513. /usr/local/X11R7/include
  8514. /usr/local/X11R6/include
  8515. /usr/local/X11R5/include
  8516. /usr/local/X11R4/include
  8517. /usr/local/include/X11
  8518. /usr/local/include/X11R7
  8519. /usr/local/include/X11R6
  8520. /usr/local/include/X11R5
  8521. /usr/local/include/X11R4
  8522. /usr/X386/include
  8523. /usr/x386/include
  8524. /usr/XFree86/include/X11
  8525. /usr/include
  8526. /usr/local/include
  8527. /usr/unsupported/include
  8528. /usr/athena/include
  8529. /usr/local/x11r5/include
  8530. /usr/lpp/Xamples/include
  8531. /usr/openwin/include
  8532. /usr/openwin/share/include'
  8533. if test "$ac_x_includes" = no; then
  8534. # Guess where to find include files, by looking for Xlib.h.
  8535. # First, try using that file with no special directory specified.
  8536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8537. /* end confdefs.h. */
  8538. #include <X11/Xlib.h>
  8539. _ACEOF
  8540. if ac_fn_c_try_cpp "$LINENO"; then :
  8541. # We can compile using X headers with no special include directory.
  8542. ac_x_includes=
  8543. else
  8544. for ac_dir in $ac_x_header_dirs; do
  8545. if test -r "$ac_dir/X11/Xlib.h"; then
  8546. ac_x_includes=$ac_dir
  8547. break
  8548. fi
  8549. done
  8550. fi
  8551. rm -f conftest.err conftest.$ac_ext
  8552. fi # $ac_x_includes = no
  8553. if test "$ac_x_libraries" = no; then
  8554. # Check for the libraries.
  8555. # See if we find them without any special options.
  8556. # Don't add to $LIBS permanently.
  8557. ac_save_LIBS=$LIBS
  8558. LIBS="-lX11 $LIBS"
  8559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8560. /* end confdefs.h. */
  8561. #include <X11/Xlib.h>
  8562. int
  8563. main ()
  8564. {
  8565. XrmInitialize ()
  8566. ;
  8567. return 0;
  8568. }
  8569. _ACEOF
  8570. if ac_fn_c_try_link "$LINENO"; then :
  8571. LIBS=$ac_save_LIBS
  8572. # We can link X programs with no special library path.
  8573. ac_x_libraries=
  8574. else
  8575. LIBS=$ac_save_LIBS
  8576. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  8577. do
  8578. # Don't even attempt the hair of trying to link an X program!
  8579. for ac_extension in a so sl dylib la dll; do
  8580. if test -r "$ac_dir/libX11.$ac_extension"; then
  8581. ac_x_libraries=$ac_dir
  8582. break 2
  8583. fi
  8584. done
  8585. done
  8586. fi
  8587. rm -f core conftest.err conftest.$ac_objext \
  8588. conftest$ac_exeext conftest.$ac_ext
  8589. fi # $ac_x_libraries = no
  8590. case $ac_x_includes,$ac_x_libraries in #(
  8591. no,* | *,no | *\'*)
  8592. # Didn't find X, or a directory has "'" in its name.
  8593. ac_cv_have_x="have_x=no";; #(
  8594. *)
  8595. # Record where we found X for the cache.
  8596. ac_cv_have_x="have_x=yes\
  8597. ac_x_includes='$ac_x_includes'\
  8598. ac_x_libraries='$ac_x_libraries'"
  8599. esac
  8600. fi
  8601. ;; #(
  8602. *) have_x=yes;;
  8603. esac
  8604. eval "$ac_cv_have_x"
  8605. fi # $with_x != no
  8606. if test "$have_x" != yes; then
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  8608. $as_echo "$have_x" >&6; }
  8609. no_x=yes
  8610. else
  8611. # If each of the values was on the command line, it overrides each guess.
  8612. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  8613. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  8614. # Update the cache value to reflect the command line values.
  8615. ac_cv_have_x="have_x=yes\
  8616. ac_x_includes='$x_includes'\
  8617. ac_x_libraries='$x_libraries'"
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  8619. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  8620. fi
  8621. if test "$no_x" = yes; then
  8622. window_system=none
  8623. else
  8624. window_system=x11
  8625. fi
  8626. ## Workaround for bug in autoconf <= 2.62.
  8627. ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
  8628. ## No need to do anything special for these standard directories.
  8629. if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
  8630. x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
  8631. fi
  8632. LD_SWITCH_X_SITE_AUX=
  8633. LD_SWITCH_X_SITE_AUX_RPATH=
  8634. if test "${x_libraries}" != NONE; then
  8635. if test -n "${x_libraries}"; then
  8636. LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
  8637. LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
  8638. LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
  8639. fi
  8640. x_default_search_path=""
  8641. x_search_path=${x_libraries}
  8642. if test -z "${x_search_path}"; then
  8643. x_search_path=/usr/lib
  8644. fi
  8645. for x_library in `echo ${x_search_path}: | \
  8646. sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
  8647. x_search_path="\
  8648. ${x_library}/X11/%L/%T/%N%C%S:\
  8649. ${x_library}/X11/%l/%T/%N%C%S:\
  8650. ${x_library}/X11/%T/%N%C%S:\
  8651. ${x_library}/X11/%L/%T/%N%S:\
  8652. ${x_library}/X11/%l/%T/%N%S:\
  8653. ${x_library}/X11/%T/%N%S"
  8654. if test x"${x_default_search_path}" = x; then
  8655. x_default_search_path=${x_search_path}
  8656. else
  8657. x_default_search_path="${x_search_path}:${x_default_search_path}"
  8658. fi
  8659. done
  8660. fi
  8661. if test "${x_includes}" != NONE && test -n "${x_includes}"; then
  8662. C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
  8663. fi
  8664. if test x"${x_includes}" = x; then
  8665. bitmapdir=/usr/include/X11/bitmaps
  8666. else
  8667. # accumulate include directories that have X11 bitmap subdirectories
  8668. bmd_acc="dummyval"
  8669. for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
  8670. if test -d "${bmd}/X11/bitmaps"; then
  8671. bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
  8672. fi
  8673. if test -d "${bmd}/bitmaps"; then
  8674. bmd_acc="${bmd_acc}:${bmd}/bitmaps"
  8675. fi
  8676. done
  8677. if test ${bmd_acc} != "dummyval"; then
  8678. bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
  8679. fi
  8680. fi
  8681. HAVE_NS=no
  8682. NS_IMPL_COCOA=no
  8683. NS_IMPL_GNUSTEP=no
  8684. tmp_CPPFLAGS="$CPPFLAGS"
  8685. tmp_CFLAGS="$CFLAGS"
  8686. CPPFLAGS="$CPPFLAGS -x objective-c"
  8687. CFLAGS="$CFLAGS -x objective-c"
  8688. TEMACS_LDFLAGS2="\${LDFLAGS}"
  8689. GNU_OBJC_CFLAGS=
  8690. if test "${with_ns}" != no; then
  8691. if test "${opsys}" = darwin; then
  8692. NS_IMPL_COCOA=yes
  8693. ns_appdir=`pwd`/nextstep/Emacs.app
  8694. ns_appbindir=${ns_appdir}/Contents/MacOS/
  8695. ns_appresdir=${ns_appdir}/Contents/Resources
  8696. ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
  8697. elif test -f $GNUSTEP_CONFIG_FILE; then
  8698. NS_IMPL_GNUSTEP=yes
  8699. ns_appdir=`pwd`/nextstep/Emacs.app
  8700. ns_appbindir=${ns_appdir}/
  8701. ns_appresdir=${ns_appdir}/Resources
  8702. ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
  8703. GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
  8704. GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
  8705. GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
  8706. GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
  8707. test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
  8708. GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
  8709. test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
  8710. GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
  8711. CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
  8712. CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
  8713. LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
  8714. LIB_STANDARD=
  8715. START_FILES=
  8716. TEMACS_LDFLAGS2=
  8717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
  8718. $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
  8719. if test "${emacs_cv_objc_exceptions+set}" = set; then :
  8720. $as_echo_n "(cached) " >&6
  8721. else
  8722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8723. /* end confdefs.h. */
  8724. #include <GNUstepBase/GSConfig.h>
  8725. int
  8726. main ()
  8727. {
  8728. #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
  8729. 1;
  8730. #else
  8731. fail;
  8732. #endif
  8733. ;
  8734. return 0;
  8735. }
  8736. _ACEOF
  8737. if ac_fn_c_try_compile "$LINENO"; then :
  8738. emacs_cv_objc_exceptions=yes
  8739. else
  8740. emacs_cv_objc_exceptions=no
  8741. fi
  8742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8743. fi
  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
  8745. $as_echo "$emacs_cv_objc_exceptions" >&6; }
  8746. if test $emacs_cv_objc_exceptions = yes; then
  8747. $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
  8748. GNU_OBJC_CFLAGS="-fobjc-exceptions"
  8749. fi
  8750. fi
  8751. CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
  8752. ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
  8753. if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
  8754. HAVE_NS=yes
  8755. else
  8756. as_fn_error "\`--with-ns' was specified, but the include
  8757. files are missing or cannot be compiled." "$LINENO" 5
  8758. fi
  8759. NS_HAVE_NSINTEGER=yes
  8760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8761. /* end confdefs.h. */
  8762. #include <Foundation/NSObjCRuntime.h>
  8763. int
  8764. main ()
  8765. {
  8766. NSInteger i;
  8767. ;
  8768. return 0;
  8769. }
  8770. _ACEOF
  8771. if ac_fn_c_try_compile "$LINENO"; then :
  8772. ns_have_nsinteger=yes
  8773. else
  8774. ns_have_nsinteger=no
  8775. fi
  8776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8777. if test $ns_have_nsinteger = no; then
  8778. NS_HAVE_NSINTEGER=no
  8779. fi
  8780. fi
  8781. ns_frag=/dev/null
  8782. NS_OBJ=
  8783. NS_OBJC_OBJ=
  8784. if test "${HAVE_NS}" = yes; then
  8785. if test "$with_toolkit_scroll_bars" = "no"; then
  8786. as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
  8787. fi
  8788. window_system=nextstep
  8789. with_xft=no
  8790. # set up packaging dirs
  8791. if test "${EN_NS_SELF_CONTAINED}" = yes; then
  8792. prefix=${ns_appresdir}
  8793. exec_prefix=${ns_appbindir}
  8794. libexecdir=${ns_appbindir}/libexec
  8795. fi
  8796. ns_frag=$srcdir/src/ns.mk
  8797. NS_OBJ="fontset.o fringe.o image.o"
  8798. NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
  8799. fi
  8800. CFLAGS="$tmp_CFLAGS"
  8801. CPPFLAGS="$tmp_CPPFLAGS"
  8802. case "${window_system}" in
  8803. x11 )
  8804. HAVE_X_WINDOWS=yes
  8805. HAVE_X11=yes
  8806. case "${with_x_toolkit}" in
  8807. athena | lucid ) USE_X_TOOLKIT=LUCID ;;
  8808. motif ) USE_X_TOOLKIT=MOTIF ;;
  8809. gtk ) with_gtk=yes
  8810. USE_X_TOOLKIT=none ;;
  8811. gtk3 ) with_gtk3=yes
  8812. USE_X_TOOLKIT=none ;;
  8813. no ) USE_X_TOOLKIT=none ;;
  8814. * ) USE_X_TOOLKIT=maybe ;;
  8815. esac
  8816. ;;
  8817. nextstep | none )
  8818. HAVE_X_WINDOWS=no
  8819. HAVE_X11=no
  8820. USE_X_TOOLKIT=none
  8821. ;;
  8822. esac
  8823. if test "$window_system" = none && test "X$with_x" != "Xno"; then
  8824. # Extract the first word of "X", so it can be a program name with args.
  8825. set dummy X; ac_word=$2
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8827. $as_echo_n "checking for $ac_word... " >&6; }
  8828. if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
  8829. $as_echo_n "(cached) " >&6
  8830. else
  8831. if test -n "$HAVE_XSERVER"; then
  8832. ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
  8833. else
  8834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8835. for as_dir in $PATH
  8836. do
  8837. IFS=$as_save_IFS
  8838. test -z "$as_dir" && as_dir=.
  8839. for ac_exec_ext in '' $ac_executable_extensions; do
  8840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8841. ac_cv_prog_HAVE_XSERVER="true"
  8842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8843. break 2
  8844. fi
  8845. done
  8846. done
  8847. IFS=$as_save_IFS
  8848. test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
  8849. fi
  8850. fi
  8851. HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
  8852. if test -n "$HAVE_XSERVER"; then
  8853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
  8854. $as_echo "$HAVE_XSERVER" >&6; }
  8855. else
  8856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8857. $as_echo "no" >&6; }
  8858. fi
  8859. if test "$HAVE_XSERVER" = true ||
  8860. test -n "$DISPLAY" ||
  8861. test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
  8862. as_fn_error "You seem to be running X, but no X development libraries
  8863. were found. You should install the relevant development files for X
  8864. and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
  8865. sure you have development files for image handling, i.e.
  8866. tiff, gif, jpeg, png and xpm.
  8867. If you are sure you want Emacs compiled without X window support, pass
  8868. --without-x
  8869. to configure." "$LINENO" 5
  8870. fi
  8871. fi
  8872. ### If we're using X11, we should use the X menu package.
  8873. HAVE_MENUS=no
  8874. case ${HAVE_X11} in
  8875. yes ) HAVE_MENUS=yes ;;
  8876. esac
  8877. # Do the opsystem or machine files prohibit the use of the GNU malloc?
  8878. # Assume not, until told otherwise.
  8879. GNU_MALLOC=yes
  8880. doug_lea_malloc=yes
  8881. ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
  8882. if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
  8883. else
  8884. doug_lea_malloc=no
  8885. fi
  8886. ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
  8887. if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
  8888. else
  8889. doug_lea_malloc=no
  8890. fi
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
  8892. $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
  8893. if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
  8894. $as_echo_n "(cached) " >&6
  8895. else
  8896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8897. /* end confdefs.h. */
  8898. extern void (* __after_morecore_hook)();
  8899. int
  8900. main ()
  8901. {
  8902. __after_morecore_hook = 0
  8903. ;
  8904. return 0;
  8905. }
  8906. _ACEOF
  8907. if ac_fn_c_try_link "$LINENO"; then :
  8908. emacs_cv_var___after_morecore_hook=yes
  8909. else
  8910. emacs_cv_var___after_morecore_hook=no
  8911. fi
  8912. rm -f core conftest.err conftest.$ac_objext \
  8913. conftest$ac_exeext conftest.$ac_ext
  8914. fi
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
  8916. $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
  8917. if test $emacs_cv_var___after_morecore_hook = no; then
  8918. doug_lea_malloc=no
  8919. fi
  8920. system_malloc=no
  8921. case "$opsys" in
  8922. ## darwin ld insists on the use of malloc routines in the System framework.
  8923. darwin|sol2-10) system_malloc=yes ;;
  8924. esac
  8925. if test "${system_malloc}" = "yes"; then
  8926. $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
  8927. GNU_MALLOC=no
  8928. GNU_MALLOC_reason="
  8929. (The GNU allocators don't work with this system configuration.)"
  8930. GMALLOC_OBJ=
  8931. VMLIMIT_OBJ=
  8932. else
  8933. test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
  8934. VMLIMIT_OBJ=vm-limit.o
  8935. fi
  8936. if test "$doug_lea_malloc" = "yes" ; then
  8937. if test "$GNU_MALLOC" = yes ; then
  8938. GNU_MALLOC_reason="
  8939. (Using Doug Lea's new malloc from the GNU C Library.)"
  8940. fi
  8941. $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
  8942. ## Use mmap directly for allocating larger buffers.
  8943. ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
  8944. ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
  8945. ## Does the AC_FUNC_MMAP test below make this check unnecessary?
  8946. case "$opsys" in
  8947. gnu*) REL_ALLOC=no ;;
  8948. esac
  8949. fi
  8950. if test x"${REL_ALLOC}" = x; then
  8951. REL_ALLOC=${GNU_MALLOC}
  8952. fi
  8953. use_mmap_for_buffers=no
  8954. case "$opsys" in
  8955. cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
  8956. esac
  8957. for ac_header in $ac_header_list
  8958. do :
  8959. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8960. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8961. "
  8962. eval as_val=\$$as_ac_Header
  8963. if test "x$as_val" = x""yes; then :
  8964. cat >>confdefs.h <<_ACEOF
  8965. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8966. _ACEOF
  8967. fi
  8968. done
  8969. for ac_func in getpagesize
  8970. do :
  8971. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8972. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8973. cat >>confdefs.h <<_ACEOF
  8974. #define HAVE_GETPAGESIZE 1
  8975. _ACEOF
  8976. fi
  8977. done
  8978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8979. $as_echo_n "checking for working mmap... " >&6; }
  8980. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8981. $as_echo_n "(cached) " >&6
  8982. else
  8983. if test "$cross_compiling" = yes; then :
  8984. ac_cv_func_mmap_fixed_mapped=no
  8985. else
  8986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8987. /* end confdefs.h. */
  8988. $ac_includes_default
  8989. /* malloc might have been renamed as rpl_malloc. */
  8990. #undef malloc
  8991. /* Thanks to Mike Haertel and Jim Avera for this test.
  8992. Here is a matrix of mmap possibilities:
  8993. mmap private not fixed
  8994. mmap private fixed at somewhere currently unmapped
  8995. mmap private fixed at somewhere already mapped
  8996. mmap shared not fixed
  8997. mmap shared fixed at somewhere currently unmapped
  8998. mmap shared fixed at somewhere already mapped
  8999. For private mappings, we should verify that changes cannot be read()
  9000. back from the file, nor mmap's back from the file at a different
  9001. address. (There have been systems where private was not correctly
  9002. implemented like the infamous i386 svr4.0, and systems where the
  9003. VM page cache was not coherent with the file system buffer cache
  9004. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9005. For shared mappings, we should conversely verify that changes get
  9006. propagated back to all the places they're supposed to be.
  9007. Grep wants private fixed already mapped.
  9008. The main things grep needs to know about mmap are:
  9009. * does it exist and is it safe to write into the mmap'd area
  9010. * how to use it (BSD variants) */
  9011. #include <fcntl.h>
  9012. #include <sys/mman.h>
  9013. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9014. char *malloc ();
  9015. #endif
  9016. /* This mess was copied from the GNU getpagesize.h. */
  9017. #ifndef HAVE_GETPAGESIZE
  9018. # ifdef _SC_PAGESIZE
  9019. # define getpagesize() sysconf(_SC_PAGESIZE)
  9020. # else /* no _SC_PAGESIZE */
  9021. # ifdef HAVE_SYS_PARAM_H
  9022. # include <sys/param.h>
  9023. # ifdef EXEC_PAGESIZE
  9024. # define getpagesize() EXEC_PAGESIZE
  9025. # else /* no EXEC_PAGESIZE */
  9026. # ifdef NBPG
  9027. # define getpagesize() NBPG * CLSIZE
  9028. # ifndef CLSIZE
  9029. # define CLSIZE 1
  9030. # endif /* no CLSIZE */
  9031. # else /* no NBPG */
  9032. # ifdef NBPC
  9033. # define getpagesize() NBPC
  9034. # else /* no NBPC */
  9035. # ifdef PAGESIZE
  9036. # define getpagesize() PAGESIZE
  9037. # endif /* PAGESIZE */
  9038. # endif /* no NBPC */
  9039. # endif /* no NBPG */
  9040. # endif /* no EXEC_PAGESIZE */
  9041. # else /* no HAVE_SYS_PARAM_H */
  9042. # define getpagesize() 8192 /* punt totally */
  9043. # endif /* no HAVE_SYS_PARAM_H */
  9044. # endif /* no _SC_PAGESIZE */
  9045. #endif /* no HAVE_GETPAGESIZE */
  9046. int
  9047. main ()
  9048. {
  9049. char *data, *data2, *data3;
  9050. const char *cdata2;
  9051. int i, pagesize;
  9052. int fd, fd2;
  9053. pagesize = getpagesize ();
  9054. /* First, make a file with some known garbage in it. */
  9055. data = (char *) malloc (pagesize);
  9056. if (!data)
  9057. return 1;
  9058. for (i = 0; i < pagesize; ++i)
  9059. *(data + i) = rand ();
  9060. umask (0);
  9061. fd = creat ("conftest.mmap", 0600);
  9062. if (fd < 0)
  9063. return 2;
  9064. if (write (fd, data, pagesize) != pagesize)
  9065. return 3;
  9066. close (fd);
  9067. /* Next, check that the tail of a page is zero-filled. File must have
  9068. non-zero length, otherwise we risk SIGBUS for entire page. */
  9069. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  9070. if (fd2 < 0)
  9071. return 4;
  9072. cdata2 = "";
  9073. if (write (fd2, cdata2, 1) != 1)
  9074. return 5;
  9075. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  9076. if (data2 == MAP_FAILED)
  9077. return 6;
  9078. for (i = 0; i < pagesize; ++i)
  9079. if (*(data2 + i))
  9080. return 7;
  9081. close (fd2);
  9082. if (munmap (data2, pagesize))
  9083. return 8;
  9084. /* Next, try to mmap the file at a fixed address which already has
  9085. something else allocated at it. If we can, also make sure that
  9086. we see the same garbage. */
  9087. fd = open ("conftest.mmap", O_RDWR);
  9088. if (fd < 0)
  9089. return 9;
  9090. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9091. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9092. return 10;
  9093. for (i = 0; i < pagesize; ++i)
  9094. if (*(data + i) != *(data2 + i))
  9095. return 11;
  9096. /* Finally, make sure that changes to the mapped area do not
  9097. percolate back to the file as seen by read(). (This is a bug on
  9098. some variants of i386 svr4.0.) */
  9099. for (i = 0; i < pagesize; ++i)
  9100. *(data2 + i) = *(data2 + i) + 1;
  9101. data3 = (char *) malloc (pagesize);
  9102. if (!data3)
  9103. return 12;
  9104. if (read (fd, data3, pagesize) != pagesize)
  9105. return 13;
  9106. for (i = 0; i < pagesize; ++i)
  9107. if (*(data + i) != *(data3 + i))
  9108. return 14;
  9109. close (fd);
  9110. return 0;
  9111. }
  9112. _ACEOF
  9113. if ac_fn_c_try_run "$LINENO"; then :
  9114. ac_cv_func_mmap_fixed_mapped=yes
  9115. else
  9116. ac_cv_func_mmap_fixed_mapped=no
  9117. fi
  9118. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9119. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9120. fi
  9121. fi
  9122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9123. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9124. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9125. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  9126. fi
  9127. rm -f conftest.mmap conftest.txt
  9128. if test $use_mmap_for_buffers = yes; then
  9129. $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
  9130. REL_ALLOC=no
  9131. fi
  9132. LIBS="$LIBS_SYSTEM $LIBS"
  9133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  9134. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  9135. if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
  9136. $as_echo_n "(cached) " >&6
  9137. else
  9138. ac_check_lib_save_LIBS=$LIBS
  9139. LIBS="-ldnet $LIBS"
  9140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9141. /* end confdefs.h. */
  9142. /* Override any GCC internal prototype to avoid an error.
  9143. Use char because int might match the return type of a GCC
  9144. builtin and then its argument prototype would still apply. */
  9145. #ifdef __cplusplus
  9146. extern "C"
  9147. #endif
  9148. char dnet_ntoa ();
  9149. int
  9150. main ()
  9151. {
  9152. return dnet_ntoa ();
  9153. ;
  9154. return 0;
  9155. }
  9156. _ACEOF
  9157. if ac_fn_c_try_link "$LINENO"; then :
  9158. ac_cv_lib_dnet_dnet_ntoa=yes
  9159. else
  9160. ac_cv_lib_dnet_dnet_ntoa=no
  9161. fi
  9162. rm -f core conftest.err conftest.$ac_objext \
  9163. conftest$ac_exeext conftest.$ac_ext
  9164. LIBS=$ac_check_lib_save_LIBS
  9165. fi
  9166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  9167. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  9168. if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
  9169. cat >>confdefs.h <<_ACEOF
  9170. #define HAVE_LIBDNET 1
  9171. _ACEOF
  9172. LIBS="-ldnet $LIBS"
  9173. fi
  9174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
  9175. $as_echo_n "checking for main in -lXbsd... " >&6; }
  9176. if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
  9177. $as_echo_n "(cached) " >&6
  9178. else
  9179. ac_check_lib_save_LIBS=$LIBS
  9180. LIBS="-lXbsd $LIBS"
  9181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9182. /* end confdefs.h. */
  9183. int
  9184. main ()
  9185. {
  9186. return main ();
  9187. ;
  9188. return 0;
  9189. }
  9190. _ACEOF
  9191. if ac_fn_c_try_link "$LINENO"; then :
  9192. ac_cv_lib_Xbsd_main=yes
  9193. else
  9194. ac_cv_lib_Xbsd_main=no
  9195. fi
  9196. rm -f core conftest.err conftest.$ac_objext \
  9197. conftest$ac_exeext conftest.$ac_ext
  9198. LIBS=$ac_check_lib_save_LIBS
  9199. fi
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
  9201. $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
  9202. if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
  9203. LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
  9204. fi
  9205. LIB_PTHREAD=
  9206. for ac_header in pthread.h
  9207. do :
  9208. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  9209. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  9210. cat >>confdefs.h <<_ACEOF
  9211. #define HAVE_PTHREAD_H 1
  9212. _ACEOF
  9213. fi
  9214. done
  9215. if test "$ac_cv_header_pthread_h"; then
  9216. if test "$GMALLOC_OBJ" = gmalloc.o; then
  9217. emacs_pthread_function=pthread_atfork
  9218. else
  9219. emacs_pthread_function=pthread_self
  9220. fi
  9221. as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
  9222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
  9223. $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
  9224. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  9225. $as_echo_n "(cached) " >&6
  9226. else
  9227. ac_check_lib_save_LIBS=$LIBS
  9228. LIBS="-lpthread $LIBS"
  9229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9230. /* end confdefs.h. */
  9231. /* Override any GCC internal prototype to avoid an error.
  9232. Use char because int might match the return type of a GCC
  9233. builtin and then its argument prototype would still apply. */
  9234. #ifdef __cplusplus
  9235. extern "C"
  9236. #endif
  9237. char $emacs_pthread_function ();
  9238. int
  9239. main ()
  9240. {
  9241. return $emacs_pthread_function ();
  9242. ;
  9243. return 0;
  9244. }
  9245. _ACEOF
  9246. if ac_fn_c_try_link "$LINENO"; then :
  9247. eval "$as_ac_Lib=yes"
  9248. else
  9249. eval "$as_ac_Lib=no"
  9250. fi
  9251. rm -f core conftest.err conftest.$ac_objext \
  9252. conftest$ac_exeext conftest.$ac_ext
  9253. LIBS=$ac_check_lib_save_LIBS
  9254. fi
  9255. eval ac_res=\$$as_ac_Lib
  9256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9257. $as_echo "$ac_res" >&6; }
  9258. eval as_val=\$$as_ac_Lib
  9259. if test "x$as_val" = x""yes; then :
  9260. HAVE_PTHREAD=yes
  9261. fi
  9262. fi
  9263. if test "$HAVE_PTHREAD" = yes; then
  9264. case "${canonical}" in
  9265. *-hpux*) ;;
  9266. *) LIB_PTHREAD="-lpthread"
  9267. LIBS="$LIB_PTHREAD $LIBS" ;;
  9268. esac
  9269. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  9270. fi
  9271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
  9272. $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
  9273. if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
  9274. $as_echo_n "(cached) " >&6
  9275. else
  9276. ac_check_lib_save_LIBS=$LIBS
  9277. LIBS="-lpthreads $LIBS"
  9278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9279. /* end confdefs.h. */
  9280. /* Override any GCC internal prototype to avoid an error.
  9281. Use char because int might match the return type of a GCC
  9282. builtin and then its argument prototype would still apply. */
  9283. #ifdef __cplusplus
  9284. extern "C"
  9285. #endif
  9286. char cma_open ();
  9287. int
  9288. main ()
  9289. {
  9290. return cma_open ();
  9291. ;
  9292. return 0;
  9293. }
  9294. _ACEOF
  9295. if ac_fn_c_try_link "$LINENO"; then :
  9296. ac_cv_lib_pthreads_cma_open=yes
  9297. else
  9298. ac_cv_lib_pthreads_cma_open=no
  9299. fi
  9300. rm -f core conftest.err conftest.$ac_objext \
  9301. conftest$ac_exeext conftest.$ac_ext
  9302. LIBS=$ac_check_lib_save_LIBS
  9303. fi
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
  9305. $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
  9306. if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
  9307. cat >>confdefs.h <<_ACEOF
  9308. #define HAVE_LIBPTHREADS 1
  9309. _ACEOF
  9310. LIBS="-lpthreads $LIBS"
  9311. fi
  9312. ## Note: when using cpp in s/aix4.2.h, this definition depended on
  9313. ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
  9314. ## the system file was sourced. Hence the value of LIBS_SYSTEM
  9315. ## added to LIBS in configure would never contain the pthreads part,
  9316. ## but the value used in Makefiles might. FIXME?
  9317. ##
  9318. ## -lpthreads seems to be necessary for Xlib in X11R6, and should
  9319. ## be harmless on older versions of X where it happens to exist.
  9320. test "$opsys" = "aix4-2" && \
  9321. test $ac_cv_lib_pthreads_cma_open = yes && \
  9322. LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
  9323. case ${host_os} in
  9324. aix*)
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
  9326. $as_echo_n "checking for -bbigtoc option... " >&6; }
  9327. if test "${gdb_cv_bigtoc+set}" = set; then :
  9328. $as_echo_n "(cached) " >&6
  9329. else
  9330. case $GCC in
  9331. yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
  9332. *) gdb_cv_bigtoc=-bbigtoc ;;
  9333. esac
  9334. LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
  9335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9336. /* end confdefs.h. */
  9337. int
  9338. main ()
  9339. {
  9340. int i;
  9341. ;
  9342. return 0;
  9343. }
  9344. _ACEOF
  9345. if ac_fn_c_try_link "$LINENO"; then :
  9346. else
  9347. gdb_cv_bigtoc=
  9348. fi
  9349. rm -f core conftest.err conftest.$ac_objext \
  9350. conftest$ac_exeext conftest.$ac_ext
  9351. fi
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
  9353. $as_echo "$gdb_cv_bigtoc" >&6; }
  9354. ;;
  9355. esac
  9356. # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
  9357. # used for the tests that follow. We set them back to REAL_CFLAGS and
  9358. # REAL_CPPFLAGS later on.
  9359. REAL_CFLAGS="$CFLAGS"
  9360. REAL_CPPFLAGS="$CPPFLAGS"
  9361. if test "${HAVE_X11}" = "yes"; then
  9362. DEFS="$C_SWITCH_X_SITE $DEFS"
  9363. LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
  9364. LIBS="-lX11 $LIBS"
  9365. CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
  9366. CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
  9367. # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
  9368. # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
  9369. # but it's more convenient here to set LD_RUN_PATH
  9370. # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
  9371. if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
  9372. LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
  9373. export LD_RUN_PATH
  9374. fi
  9375. if test "${opsys}" = "gnu-linux"; then
  9376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
  9377. $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
  9378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9379. /* end confdefs.h. */
  9380. int
  9381. main ()
  9382. {
  9383. XOpenDisplay ("foo");
  9384. ;
  9385. return 0;
  9386. }
  9387. _ACEOF
  9388. if ac_fn_c_try_link "$LINENO"; then :
  9389. xgnu_linux_first_failure=no
  9390. else
  9391. xgnu_linux_first_failure=yes
  9392. fi
  9393. rm -f core conftest.err conftest.$ac_objext \
  9394. conftest$ac_exeext conftest.$ac_ext
  9395. if test "${xgnu_linux_first_failure}" = "yes"; then
  9396. OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
  9397. OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
  9398. OLD_CPPFLAGS="$CPPFLAGS"
  9399. OLD_LIBS="$LIBS"
  9400. LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
  9401. C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
  9402. CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
  9403. LIBS="$LIBS -b i486-linuxaout"
  9404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9405. /* end confdefs.h. */
  9406. int
  9407. main ()
  9408. {
  9409. XOpenDisplay ("foo");
  9410. ;
  9411. return 0;
  9412. }
  9413. _ACEOF
  9414. if ac_fn_c_try_link "$LINENO"; then :
  9415. xgnu_linux_second_failure=no
  9416. else
  9417. xgnu_linux_second_failure=yes
  9418. fi
  9419. rm -f core conftest.err conftest.$ac_objext \
  9420. conftest$ac_exeext conftest.$ac_ext
  9421. if test "${xgnu_linux_second_failure}" = "yes"; then
  9422. # If we get the same failure with -b, there is no use adding -b.
  9423. # So take it out. This plays safe.
  9424. LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
  9425. C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
  9426. CPPFLAGS="$OLD_CPPFLAGS"
  9427. LIBS="$OLD_LIBS"
  9428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9429. $as_echo "no" >&6; }
  9430. else
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9432. $as_echo "yes" >&6; }
  9433. fi
  9434. else
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9436. $as_echo "no" >&6; }
  9437. fi
  9438. fi
  9439. # Reportedly, some broken Solaris systems have XKBlib.h but are missing
  9440. # header files included from there.
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
  9442. $as_echo_n "checking for Xkb... " >&6; }
  9443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9444. /* end confdefs.h. */
  9445. #include <X11/Xlib.h>
  9446. #include <X11/XKBlib.h>
  9447. int
  9448. main ()
  9449. {
  9450. XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
  9451. ;
  9452. return 0;
  9453. }
  9454. _ACEOF
  9455. if ac_fn_c_try_link "$LINENO"; then :
  9456. emacs_xkb=yes
  9457. else
  9458. emacs_xkb=no
  9459. fi
  9460. rm -f core conftest.err conftest.$ac_objext \
  9461. conftest$ac_exeext conftest.$ac_ext
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
  9463. $as_echo "$emacs_xkb" >&6; }
  9464. if test $emacs_xkb = yes; then
  9465. $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
  9466. fi
  9467. for ac_func in XrmSetDatabase XScreenResourceString \
  9468. XScreenNumberOfScreen XSetWMProtocols
  9469. do :
  9470. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9471. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9472. eval as_val=\$$as_ac_var
  9473. if test "x$as_val" = x""yes; then :
  9474. cat >>confdefs.h <<_ACEOF
  9475. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9476. _ACEOF
  9477. fi
  9478. done
  9479. fi
  9480. if test "${window_system}" = "x11"; then
  9481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
  9482. $as_echo_n "checking X11 version 6... " >&6; }
  9483. if test "${emacs_cv_x11_version_6+set}" = set; then :
  9484. $as_echo_n "(cached) " >&6
  9485. else
  9486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9487. /* end confdefs.h. */
  9488. #include <X11/Xlib.h>
  9489. int
  9490. main ()
  9491. {
  9492. #if XlibSpecificationRelease < 6
  9493. fail;
  9494. #endif
  9495. ;
  9496. return 0;
  9497. }
  9498. _ACEOF
  9499. if ac_fn_c_try_link "$LINENO"; then :
  9500. emacs_cv_x11_version_6=yes
  9501. else
  9502. emacs_cv_x11_version_6=no
  9503. fi
  9504. rm -f core conftest.err conftest.$ac_objext \
  9505. conftest$ac_exeext conftest.$ac_ext
  9506. fi
  9507. if test $emacs_cv_x11_version_6 = yes; then
  9508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
  9509. $as_echo "6 or newer" >&6; }
  9510. $as_echo "#define HAVE_X11R6 1" >>confdefs.h
  9511. $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
  9512. ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
  9513. ## XIM support.
  9514. case "$opsys" in
  9515. sol2-*) : ;;
  9516. *)
  9517. $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
  9518. ;;
  9519. esac
  9520. else
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
  9522. $as_echo "before 6" >&6; }
  9523. fi
  9524. fi
  9525. ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
  9526. HAVE_RSVG=no
  9527. if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
  9528. if test "${with_rsvg}" != "no"; then
  9529. RSVG_REQUIRED=2.11.0
  9530. RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
  9531. succeeded=no
  9532. # Extract the first word of "pkg-config", so it can be a program name with args.
  9533. set dummy pkg-config; ac_word=$2
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9535. $as_echo_n "checking for $ac_word... " >&6; }
  9536. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  9537. $as_echo_n "(cached) " >&6
  9538. else
  9539. case $PKG_CONFIG in
  9540. [\\/]* | ?:[\\/]*)
  9541. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9542. ;;
  9543. *)
  9544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9545. for as_dir in $PATH
  9546. do
  9547. IFS=$as_save_IFS
  9548. test -z "$as_dir" && as_dir=.
  9549. for ac_exec_ext in '' $ac_executable_extensions; do
  9550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9551. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9553. break 2
  9554. fi
  9555. done
  9556. done
  9557. IFS=$as_save_IFS
  9558. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9559. ;;
  9560. esac
  9561. fi
  9562. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9563. if test -n "$PKG_CONFIG"; then
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9565. $as_echo "$PKG_CONFIG" >&6; }
  9566. else
  9567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9568. $as_echo "no" >&6; }
  9569. fi
  9570. if test "$PKG_CONFIG" = "no" ; then
  9571. :
  9572. else
  9573. PKG_CONFIG_MIN_VERSION=0.9.0
  9574. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
  9576. $as_echo_n "checking for $RSVG_MODULE... " >&6; }
  9577. if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9579. $as_echo "yes" >&6; }
  9580. succeeded=yes
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
  9582. $as_echo_n "checking RSVG_CFLAGS... " >&6; }
  9583. RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
  9585. $as_echo "$RSVG_CFLAGS" >&6; }
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
  9587. $as_echo_n "checking RSVG_LIBS... " >&6; }
  9588. RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
  9590. $as_echo "$RSVG_LIBS" >&6; }
  9591. else
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9593. $as_echo "no" >&6; }
  9594. RSVG_CFLAGS=""
  9595. RSVG_LIBS=""
  9596. ## If we have a custom action on failure, don't print errors, but
  9597. ## do set a variable so people can do so.
  9598. RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
  9599. fi
  9600. else
  9601. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9602. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9603. fi
  9604. fi
  9605. if test $succeeded = yes; then
  9606. HAVE_RSVG=yes
  9607. else
  9608. :
  9609. fi
  9610. if test $HAVE_RSVG = yes; then
  9611. $as_echo "#define HAVE_RSVG 1" >>confdefs.h
  9612. CFLAGS="$CFLAGS $RSVG_CFLAGS"
  9613. LIBS="$RSVG_LIBS $LIBS"
  9614. fi
  9615. fi
  9616. fi
  9617. HAVE_IMAGEMAGICK=no
  9618. if test "${HAVE_X11}" = "yes"; then
  9619. if test "${with_imagemagick}" != "no"; then
  9620. ## 6.2.8 is the earliest version known to work, but earlier versions
  9621. ## might work - let us know if you find one.
  9622. ## 6.0.7 does not work. See bug#7955.
  9623. IMAGEMAGICK_MODULE="Wand >= 6.2.8"
  9624. succeeded=no
  9625. # Extract the first word of "pkg-config", so it can be a program name with args.
  9626. set dummy pkg-config; ac_word=$2
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9628. $as_echo_n "checking for $ac_word... " >&6; }
  9629. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  9630. $as_echo_n "(cached) " >&6
  9631. else
  9632. case $PKG_CONFIG in
  9633. [\\/]* | ?:[\\/]*)
  9634. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9635. ;;
  9636. *)
  9637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9638. for as_dir in $PATH
  9639. do
  9640. IFS=$as_save_IFS
  9641. test -z "$as_dir" && as_dir=.
  9642. for ac_exec_ext in '' $ac_executable_extensions; do
  9643. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9644. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9646. break 2
  9647. fi
  9648. done
  9649. done
  9650. IFS=$as_save_IFS
  9651. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9652. ;;
  9653. esac
  9654. fi
  9655. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9656. if test -n "$PKG_CONFIG"; then
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9658. $as_echo "$PKG_CONFIG" >&6; }
  9659. else
  9660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9661. $as_echo "no" >&6; }
  9662. fi
  9663. if test "$PKG_CONFIG" = "no" ; then
  9664. :
  9665. else
  9666. PKG_CONFIG_MIN_VERSION=0.9.0
  9667. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
  9669. $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
  9670. if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9672. $as_echo "yes" >&6; }
  9673. succeeded=yes
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
  9675. $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
  9676. IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
  9677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
  9678. $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
  9680. $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
  9681. IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
  9683. $as_echo "$IMAGEMAGICK_LIBS" >&6; }
  9684. else
  9685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9686. $as_echo "no" >&6; }
  9687. IMAGEMAGICK_CFLAGS=""
  9688. IMAGEMAGICK_LIBS=""
  9689. ## If we have a custom action on failure, don't print errors, but
  9690. ## do set a variable so people can do so.
  9691. IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
  9692. fi
  9693. else
  9694. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9695. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9696. fi
  9697. fi
  9698. if test $succeeded = yes; then
  9699. HAVE_IMAGEMAGICK=yes
  9700. else
  9701. :
  9702. fi
  9703. if test $HAVE_IMAGEMAGICK = yes; then
  9704. $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
  9705. CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
  9706. LIBS="$IMAGEMAGICK_LIBS $LIBS"
  9707. for ac_func in MagickExportImagePixels
  9708. do :
  9709. ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
  9710. if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
  9711. cat >>confdefs.h <<_ACEOF
  9712. #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
  9713. _ACEOF
  9714. fi
  9715. done
  9716. fi
  9717. fi
  9718. fi
  9719. HAVE_GTK=no
  9720. GTK_OBJ=
  9721. if test "${with_gtk3}" = "yes"; then
  9722. GLIB_REQUIRED=2.28
  9723. GTK_REQUIRED=3.0
  9724. GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
  9725. succeeded=no
  9726. # Extract the first word of "pkg-config", so it can be a program name with args.
  9727. set dummy pkg-config; ac_word=$2
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9729. $as_echo_n "checking for $ac_word... " >&6; }
  9730. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  9731. $as_echo_n "(cached) " >&6
  9732. else
  9733. case $PKG_CONFIG in
  9734. [\\/]* | ?:[\\/]*)
  9735. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9736. ;;
  9737. *)
  9738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9739. for as_dir in $PATH
  9740. do
  9741. IFS=$as_save_IFS
  9742. test -z "$as_dir" && as_dir=.
  9743. for ac_exec_ext in '' $ac_executable_extensions; do
  9744. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9745. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9747. break 2
  9748. fi
  9749. done
  9750. done
  9751. IFS=$as_save_IFS
  9752. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9753. ;;
  9754. esac
  9755. fi
  9756. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9757. if test -n "$PKG_CONFIG"; then
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9759. $as_echo "$PKG_CONFIG" >&6; }
  9760. else
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9762. $as_echo "no" >&6; }
  9763. fi
  9764. if test "$PKG_CONFIG" = "no" ; then
  9765. pkg_check_gtk=no
  9766. else
  9767. PKG_CONFIG_MIN_VERSION=0.9.0
  9768. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
  9770. $as_echo_n "checking for $GTK_MODULES... " >&6; }
  9771. if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9773. $as_echo "yes" >&6; }
  9774. succeeded=yes
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  9776. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  9777. GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  9779. $as_echo "$GTK_CFLAGS" >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  9781. $as_echo_n "checking GTK_LIBS... " >&6; }
  9782. GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  9784. $as_echo "$GTK_LIBS" >&6; }
  9785. else
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9787. $as_echo "no" >&6; }
  9788. GTK_CFLAGS=""
  9789. GTK_LIBS=""
  9790. ## If we have a custom action on failure, don't print errors, but
  9791. ## do set a variable so people can do so.
  9792. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
  9793. fi
  9794. else
  9795. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9796. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9797. fi
  9798. fi
  9799. if test $succeeded = yes; then
  9800. pkg_check_gtk=yes
  9801. else
  9802. pkg_check_gtk=no
  9803. fi
  9804. if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
  9805. as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
  9806. fi
  9807. $as_echo "#define HAVE_GTK3 1" >>confdefs.h
  9808. GTK_OBJ=emacsgtkfixed.o
  9809. fi
  9810. if test "$pkg_check_gtk" != "yes"; then
  9811. HAVE_GTK=no
  9812. if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
  9813. GLIB_REQUIRED=2.10
  9814. GTK_REQUIRED=2.10
  9815. GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
  9816. succeeded=no
  9817. # Extract the first word of "pkg-config", so it can be a program name with args.
  9818. set dummy pkg-config; ac_word=$2
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9820. $as_echo_n "checking for $ac_word... " >&6; }
  9821. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  9822. $as_echo_n "(cached) " >&6
  9823. else
  9824. case $PKG_CONFIG in
  9825. [\\/]* | ?:[\\/]*)
  9826. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9827. ;;
  9828. *)
  9829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9830. for as_dir in $PATH
  9831. do
  9832. IFS=$as_save_IFS
  9833. test -z "$as_dir" && as_dir=.
  9834. for ac_exec_ext in '' $ac_executable_extensions; do
  9835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9836. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9838. break 2
  9839. fi
  9840. done
  9841. done
  9842. IFS=$as_save_IFS
  9843. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  9844. ;;
  9845. esac
  9846. fi
  9847. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9848. if test -n "$PKG_CONFIG"; then
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9850. $as_echo "$PKG_CONFIG" >&6; }
  9851. else
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9853. $as_echo "no" >&6; }
  9854. fi
  9855. if test "$PKG_CONFIG" = "no" ; then
  9856. pkg_check_gtk=no
  9857. else
  9858. PKG_CONFIG_MIN_VERSION=0.9.0
  9859. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
  9861. $as_echo_n "checking for $GTK_MODULES... " >&6; }
  9862. if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9864. $as_echo "yes" >&6; }
  9865. succeeded=yes
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
  9867. $as_echo_n "checking GTK_CFLAGS... " >&6; }
  9868. GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
  9870. $as_echo "$GTK_CFLAGS" >&6; }
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
  9872. $as_echo_n "checking GTK_LIBS... " >&6; }
  9873. GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
  9875. $as_echo "$GTK_LIBS" >&6; }
  9876. else
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9878. $as_echo "no" >&6; }
  9879. GTK_CFLAGS=""
  9880. GTK_LIBS=""
  9881. ## If we have a custom action on failure, don't print errors, but
  9882. ## do set a variable so people can do so.
  9883. GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
  9884. fi
  9885. else
  9886. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9887. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9888. fi
  9889. fi
  9890. if test $succeeded = yes; then
  9891. pkg_check_gtk=yes
  9892. else
  9893. pkg_check_gtk=no
  9894. fi
  9895. if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
  9896. as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
  9897. fi
  9898. fi
  9899. fi
  9900. if test x"$pkg_check_gtk" = xyes; then
  9901. C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
  9902. CFLAGS="$CFLAGS $GTK_CFLAGS"
  9903. LIBS="$GTK_LIBS $LIBS"
  9904. GTK_COMPILES=no
  9905. for ac_func in gtk_main
  9906. do :
  9907. ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
  9908. if test "x$ac_cv_func_gtk_main" = x""yes; then :
  9909. cat >>confdefs.h <<_ACEOF
  9910. #define HAVE_GTK_MAIN 1
  9911. _ACEOF
  9912. GTK_COMPILES=yes
  9913. fi
  9914. done
  9915. if test "${GTK_COMPILES}" != "yes"; then
  9916. if test "$USE_X_TOOLKIT" != "maybe"; then
  9917. as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
  9918. fi
  9919. else
  9920. HAVE_GTK=yes
  9921. $as_echo "#define USE_GTK 1" >>confdefs.h
  9922. GTK_OBJ="gtkutil.o $GTK_OBJ"
  9923. USE_X_TOOLKIT=none
  9924. if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
  9925. :
  9926. else
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
  9928. closing open displays. This is no problem if you just use
  9929. one display, but if you use more than one and close one of them
  9930. Emacs may crash." >&5
  9931. $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
  9932. closing open displays. This is no problem if you just use
  9933. one display, but if you use more than one and close one of them
  9934. Emacs may crash." >&2;}
  9935. sleep 3
  9936. fi
  9937. fi
  9938. fi
  9939. if test "${HAVE_GTK}" = "yes"; then
  9940. if test "$with_toolkit_scroll_bars" != no; then
  9941. with_toolkit_scroll_bars=yes
  9942. fi
  9943. HAVE_GTK_FILE_SELECTION=no
  9944. ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
  9945. #include <gtk/gtk.h>
  9946. "
  9947. if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
  9948. HAVE_GTK_FILE_SELECTION=yes
  9949. else
  9950. HAVE_GTK_FILE_SELECTION=no
  9951. fi
  9952. if test "$HAVE_GTK_FILE_SELECTION" = yes; then
  9953. for ac_func in gtk_file_selection_new
  9954. do :
  9955. ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
  9956. if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
  9957. cat >>confdefs.h <<_ACEOF
  9958. #define HAVE_GTK_FILE_SELECTION_NEW 1
  9959. _ACEOF
  9960. fi
  9961. done
  9962. fi
  9963. for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
  9964. gtk_dialog_get_action_area gtk_widget_get_sensitive \
  9965. gtk_widget_get_mapped gtk_adjustment_get_page_size \
  9966. gtk_orientable_set_orientation \
  9967. gtk_window_set_has_resize_grip
  9968. do :
  9969. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9970. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9971. eval as_val=\$$as_ac_var
  9972. if test "x$as_val" = x""yes; then :
  9973. cat >>confdefs.h <<_ACEOF
  9974. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9975. _ACEOF
  9976. fi
  9977. done
  9978. fi
  9979. HAVE_DBUS=no
  9980. DBUS_OBJ=
  9981. if test "${with_dbus}" = "yes"; then
  9982. succeeded=no
  9983. # Extract the first word of "pkg-config", so it can be a program name with args.
  9984. set dummy pkg-config; ac_word=$2
  9985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9986. $as_echo_n "checking for $ac_word... " >&6; }
  9987. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  9988. $as_echo_n "(cached) " >&6
  9989. else
  9990. case $PKG_CONFIG in
  9991. [\\/]* | ?:[\\/]*)
  9992. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9993. ;;
  9994. *)
  9995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9996. for as_dir in $PATH
  9997. do
  9998. IFS=$as_save_IFS
  9999. test -z "$as_dir" && as_dir=.
  10000. for ac_exec_ext in '' $ac_executable_extensions; do
  10001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10002. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10003. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10004. break 2
  10005. fi
  10006. done
  10007. done
  10008. IFS=$as_save_IFS
  10009. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10010. ;;
  10011. esac
  10012. fi
  10013. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10014. if test -n "$PKG_CONFIG"; then
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10016. $as_echo "$PKG_CONFIG" >&6; }
  10017. else
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10019. $as_echo "no" >&6; }
  10020. fi
  10021. if test "$PKG_CONFIG" = "no" ; then
  10022. HAVE_DBUS=no
  10023. else
  10024. PKG_CONFIG_MIN_VERSION=0.9.0
  10025. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
  10027. $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
  10028. if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10030. $as_echo "yes" >&6; }
  10031. succeeded=yes
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
  10033. $as_echo_n "checking DBUS_CFLAGS... " >&6; }
  10034. DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
  10036. $as_echo "$DBUS_CFLAGS" >&6; }
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
  10038. $as_echo_n "checking DBUS_LIBS... " >&6; }
  10039. DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
  10040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
  10041. $as_echo "$DBUS_LIBS" >&6; }
  10042. else
  10043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10044. $as_echo "no" >&6; }
  10045. DBUS_CFLAGS=""
  10046. DBUS_LIBS=""
  10047. ## If we have a custom action on failure, don't print errors, but
  10048. ## do set a variable so people can do so.
  10049. DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
  10050. fi
  10051. else
  10052. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10053. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10054. fi
  10055. fi
  10056. if test $succeeded = yes; then
  10057. HAVE_DBUS=yes
  10058. else
  10059. HAVE_DBUS=no
  10060. fi
  10061. if test "$HAVE_DBUS" = yes; then
  10062. LIBS="$LIBS $DBUS_LIBS"
  10063. $as_echo "#define HAVE_DBUS 1" >>confdefs.h
  10064. for ac_func in dbus_watch_get_unix_fd
  10065. do :
  10066. ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
  10067. if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
  10068. cat >>confdefs.h <<_ACEOF
  10069. #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
  10070. _ACEOF
  10071. fi
  10072. done
  10073. DBUS_OBJ=dbusbind.o
  10074. fi
  10075. fi
  10076. HAVE_GSETTINGS=no
  10077. if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
  10078. succeeded=no
  10079. # Extract the first word of "pkg-config", so it can be a program name with args.
  10080. set dummy pkg-config; ac_word=$2
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10082. $as_echo_n "checking for $ac_word... " >&6; }
  10083. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10084. $as_echo_n "(cached) " >&6
  10085. else
  10086. case $PKG_CONFIG in
  10087. [\\/]* | ?:[\\/]*)
  10088. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10089. ;;
  10090. *)
  10091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10092. for as_dir in $PATH
  10093. do
  10094. IFS=$as_save_IFS
  10095. test -z "$as_dir" && as_dir=.
  10096. for ac_exec_ext in '' $ac_executable_extensions; do
  10097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10098. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10100. break 2
  10101. fi
  10102. done
  10103. done
  10104. IFS=$as_save_IFS
  10105. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10106. ;;
  10107. esac
  10108. fi
  10109. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10110. if test -n "$PKG_CONFIG"; then
  10111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10112. $as_echo "$PKG_CONFIG" >&6; }
  10113. else
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10115. $as_echo "no" >&6; }
  10116. fi
  10117. if test "$PKG_CONFIG" = "no" ; then
  10118. HAVE_GSETTINGS=no
  10119. else
  10120. PKG_CONFIG_MIN_VERSION=0.9.0
  10121. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
  10123. $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
  10124. if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5; then
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10126. $as_echo "yes" >&6; }
  10127. succeeded=yes
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_CFLAGS" >&5
  10129. $as_echo_n "checking GSETTINGS_CFLAGS... " >&6; }
  10130. GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_CFLAGS" >&5
  10132. $as_echo "$GSETTINGS_CFLAGS" >&6; }
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSETTINGS_LIBS" >&5
  10134. $as_echo_n "checking GSETTINGS_LIBS... " >&6; }
  10135. GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26"|sed -e 's,///*,/,g'`
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSETTINGS_LIBS" >&5
  10137. $as_echo "$GSETTINGS_LIBS" >&6; }
  10138. else
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10140. $as_echo "no" >&6; }
  10141. GSETTINGS_CFLAGS=""
  10142. GSETTINGS_LIBS=""
  10143. ## If we have a custom action on failure, don't print errors, but
  10144. ## do set a variable so people can do so.
  10145. GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
  10146. fi
  10147. else
  10148. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10149. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10150. fi
  10151. fi
  10152. if test $succeeded = yes; then
  10153. HAVE_GSETTINGS=yes
  10154. else
  10155. HAVE_GSETTINGS=no
  10156. fi
  10157. if test "$HAVE_GSETTINGS" = "yes"; then
  10158. $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
  10159. SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
  10160. SETTINGS_LIBS="$GSETTINGS_LIBS"
  10161. fi
  10162. fi
  10163. HAVE_GCONF=no
  10164. if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
  10165. succeeded=no
  10166. # Extract the first word of "pkg-config", so it can be a program name with args.
  10167. set dummy pkg-config; ac_word=$2
  10168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10169. $as_echo_n "checking for $ac_word... " >&6; }
  10170. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10171. $as_echo_n "(cached) " >&6
  10172. else
  10173. case $PKG_CONFIG in
  10174. [\\/]* | ?:[\\/]*)
  10175. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10176. ;;
  10177. *)
  10178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10179. for as_dir in $PATH
  10180. do
  10181. IFS=$as_save_IFS
  10182. test -z "$as_dir" && as_dir=.
  10183. for ac_exec_ext in '' $ac_executable_extensions; do
  10184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10185. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10187. break 2
  10188. fi
  10189. done
  10190. done
  10191. IFS=$as_save_IFS
  10192. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10193. ;;
  10194. esac
  10195. fi
  10196. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10197. if test -n "$PKG_CONFIG"; then
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10199. $as_echo "$PKG_CONFIG" >&6; }
  10200. else
  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10202. $as_echo "no" >&6; }
  10203. fi
  10204. if test "$PKG_CONFIG" = "no" ; then
  10205. HAVE_GCONF=no
  10206. else
  10207. PKG_CONFIG_MIN_VERSION=0.9.0
  10208. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
  10210. $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
  10211. if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10213. $as_echo "yes" >&6; }
  10214. succeeded=yes
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
  10216. $as_echo_n "checking GCONF_CFLAGS... " >&6; }
  10217. GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
  10218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
  10219. $as_echo "$GCONF_CFLAGS" >&6; }
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
  10221. $as_echo_n "checking GCONF_LIBS... " >&6; }
  10222. GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
  10224. $as_echo "$GCONF_LIBS" >&6; }
  10225. else
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10227. $as_echo "no" >&6; }
  10228. GCONF_CFLAGS=""
  10229. GCONF_LIBS=""
  10230. ## If we have a custom action on failure, don't print errors, but
  10231. ## do set a variable so people can do so.
  10232. GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
  10233. fi
  10234. else
  10235. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10236. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10237. fi
  10238. fi
  10239. if test $succeeded = yes; then
  10240. HAVE_GCONF=yes
  10241. else
  10242. HAVE_GCONF=no
  10243. fi
  10244. if test "$HAVE_GCONF" = yes; then
  10245. $as_echo "#define HAVE_GCONF 1" >>confdefs.h
  10246. SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
  10247. SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
  10248. fi
  10249. fi
  10250. if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
  10251. SAVE_CFLAGS="$CFLAGS"
  10252. SAVE_LIBS="$LIBS"
  10253. CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
  10254. LIBS="$SETTINGS_LIBS $LIBS"
  10255. for ac_func in g_type_init
  10256. do :
  10257. ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
  10258. if test "x$ac_cv_func_g_type_init" = x""yes; then :
  10259. cat >>confdefs.h <<_ACEOF
  10260. #define HAVE_G_TYPE_INIT 1
  10261. _ACEOF
  10262. fi
  10263. done
  10264. CFLAGS="$SAVE_CFLAGS"
  10265. LIBS="$SAVE_LIBS"
  10266. fi
  10267. HAVE_LIBSELINUX=no
  10268. LIBSELINUX_LIBS=
  10269. if test "${with_selinux}" = "yes"; then
  10270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
  10271. $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
  10272. if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
  10273. $as_echo_n "(cached) " >&6
  10274. else
  10275. ac_check_lib_save_LIBS=$LIBS
  10276. LIBS="-lselinux $LIBS"
  10277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10278. /* end confdefs.h. */
  10279. /* Override any GCC internal prototype to avoid an error.
  10280. Use char because int might match the return type of a GCC
  10281. builtin and then its argument prototype would still apply. */
  10282. #ifdef __cplusplus
  10283. extern "C"
  10284. #endif
  10285. char lgetfilecon ();
  10286. int
  10287. main ()
  10288. {
  10289. return lgetfilecon ();
  10290. ;
  10291. return 0;
  10292. }
  10293. _ACEOF
  10294. if ac_fn_c_try_link "$LINENO"; then :
  10295. ac_cv_lib_selinux_lgetfilecon=yes
  10296. else
  10297. ac_cv_lib_selinux_lgetfilecon=no
  10298. fi
  10299. rm -f core conftest.err conftest.$ac_objext \
  10300. conftest$ac_exeext conftest.$ac_ext
  10301. LIBS=$ac_check_lib_save_LIBS
  10302. fi
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
  10304. $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
  10305. if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
  10306. HAVE_LIBSELINUX=yes
  10307. else
  10308. HAVE_LIBSELINUX=no
  10309. fi
  10310. if test "$HAVE_LIBSELINUX" = yes; then
  10311. $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
  10312. LIBSELINUX_LIBS=-lselinux
  10313. fi
  10314. fi
  10315. HAVE_GNUTLS=no
  10316. HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
  10317. if test "${with_gnutls}" = "yes" ; then
  10318. succeeded=no
  10319. # Extract the first word of "pkg-config", so it can be a program name with args.
  10320. set dummy pkg-config; ac_word=$2
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10322. $as_echo_n "checking for $ac_word... " >&6; }
  10323. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10324. $as_echo_n "(cached) " >&6
  10325. else
  10326. case $PKG_CONFIG in
  10327. [\\/]* | ?:[\\/]*)
  10328. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10329. ;;
  10330. *)
  10331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10332. for as_dir in $PATH
  10333. do
  10334. IFS=$as_save_IFS
  10335. test -z "$as_dir" && as_dir=.
  10336. for ac_exec_ext in '' $ac_executable_extensions; do
  10337. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10338. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10340. break 2
  10341. fi
  10342. done
  10343. done
  10344. IFS=$as_save_IFS
  10345. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10346. ;;
  10347. esac
  10348. fi
  10349. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10350. if test -n "$PKG_CONFIG"; then
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10352. $as_echo "$PKG_CONFIG" >&6; }
  10353. else
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10355. $as_echo "no" >&6; }
  10356. fi
  10357. if test "$PKG_CONFIG" = "no" ; then
  10358. HAVE_GNUTLS=no
  10359. else
  10360. PKG_CONFIG_MIN_VERSION=0.9.0
  10361. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
  10363. $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
  10364. if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5; then
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10366. $as_echo "yes" >&6; }
  10367. succeeded=yes
  10368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
  10369. $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
  10370. LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
  10372. $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
  10374. $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
  10375. LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6"|sed -e 's,///*,/,g'`
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
  10377. $as_echo "$LIBGNUTLS_LIBS" >&6; }
  10378. else
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10380. $as_echo "no" >&6; }
  10381. LIBGNUTLS_CFLAGS=""
  10382. LIBGNUTLS_LIBS=""
  10383. ## If we have a custom action on failure, don't print errors, but
  10384. ## do set a variable so people can do so.
  10385. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
  10386. fi
  10387. else
  10388. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10389. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10390. fi
  10391. fi
  10392. if test $succeeded = yes; then
  10393. HAVE_GNUTLS=yes
  10394. else
  10395. HAVE_GNUTLS=no
  10396. fi
  10397. if test "${HAVE_GNUTLS}" = "yes"; then
  10398. $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
  10399. fi
  10400. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  10401. LIBS="$LIBGNUTLS_LIBS $LIBS"
  10402. for ac_func in gnutls_certificate_set_verify_function
  10403. do :
  10404. ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
  10405. if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
  10406. cat >>confdefs.h <<_ACEOF
  10407. #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
  10408. _ACEOF
  10409. HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
  10410. fi
  10411. done
  10412. if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
  10413. $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
  10414. fi
  10415. fi
  10416. HAVE_XAW3D=no
  10417. LUCID_LIBW=
  10418. if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
  10419. if test "$with_xaw3d" != no; then
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
  10421. $as_echo_n "checking for xaw3d... " >&6; }
  10422. if test "${emacs_cv_xaw3d+set}" = set; then :
  10423. $as_echo_n "(cached) " >&6
  10424. else
  10425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10426. /* end confdefs.h. */
  10427. #include <X11/Intrinsic.h>
  10428. #include <X11/Xaw3d/Simple.h>
  10429. int
  10430. main ()
  10431. {
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. if ac_fn_c_try_link "$LINENO"; then :
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
  10438. $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
  10439. if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
  10440. $as_echo_n "(cached) " >&6
  10441. else
  10442. ac_check_lib_save_LIBS=$LIBS
  10443. LIBS="-lXaw3d $LIBS"
  10444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10445. /* end confdefs.h. */
  10446. /* Override any GCC internal prototype to avoid an error.
  10447. Use char because int might match the return type of a GCC
  10448. builtin and then its argument prototype would still apply. */
  10449. #ifdef __cplusplus
  10450. extern "C"
  10451. #endif
  10452. char XawScrollbarSetThumb ();
  10453. int
  10454. main ()
  10455. {
  10456. return XawScrollbarSetThumb ();
  10457. ;
  10458. return 0;
  10459. }
  10460. _ACEOF
  10461. if ac_fn_c_try_link "$LINENO"; then :
  10462. ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
  10463. else
  10464. ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
  10465. fi
  10466. rm -f core conftest.err conftest.$ac_objext \
  10467. conftest$ac_exeext conftest.$ac_ext
  10468. LIBS=$ac_check_lib_save_LIBS
  10469. fi
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
  10471. $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
  10472. if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
  10473. emacs_cv_xaw3d=yes
  10474. else
  10475. emacs_cv_xaw3d=no
  10476. fi
  10477. else
  10478. emacs_cv_xaw3d=no
  10479. fi
  10480. rm -f core conftest.err conftest.$ac_objext \
  10481. conftest$ac_exeext conftest.$ac_ext
  10482. fi
  10483. else
  10484. emacs_cv_xaw3d=no
  10485. fi
  10486. if test $emacs_cv_xaw3d = yes; then
  10487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
  10488. $as_echo "yes; using Lucid toolkit" >&6; }
  10489. USE_X_TOOLKIT=LUCID
  10490. HAVE_XAW3D=yes
  10491. LUCID_LIBW=-lXaw3d
  10492. $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
  10493. else
  10494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10495. $as_echo "no" >&6; }
  10496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
  10497. $as_echo_n "checking for libXaw... " >&6; }
  10498. if test "${emacs_cv_xaw+set}" = set; then :
  10499. $as_echo_n "(cached) " >&6
  10500. else
  10501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10502. /* end confdefs.h. */
  10503. #include <X11/Intrinsic.h>
  10504. #include <X11/Xaw/Simple.h>
  10505. int
  10506. main ()
  10507. {
  10508. ;
  10509. return 0;
  10510. }
  10511. _ACEOF
  10512. if ac_fn_c_try_link "$LINENO"; then :
  10513. emacs_cv_xaw=yes
  10514. else
  10515. emacs_cv_xaw=no
  10516. fi
  10517. rm -f core conftest.err conftest.$ac_objext \
  10518. conftest$ac_exeext conftest.$ac_ext
  10519. fi
  10520. if test $emacs_cv_xaw = yes; then
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
  10522. $as_echo "yes; using Lucid toolkit" >&6; }
  10523. USE_X_TOOLKIT=LUCID
  10524. LUCID_LIBW=-lXaw
  10525. elif test x"${USE_X_TOOLKIT}" = xLUCID; then
  10526. as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
  10527. else
  10528. as_fn_error "No X toolkit could be found.
  10529. If you are sure you want Emacs compiled without an X toolkit, pass
  10530. --with-x-toolkit=no
  10531. to configure. Otherwise, install the development libraries for the toolkit
  10532. that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
  10533. fi
  10534. fi
  10535. fi
  10536. X_TOOLKIT_TYPE=$USE_X_TOOLKIT
  10537. LIBXTR6=
  10538. if test "${USE_X_TOOLKIT}" != "none"; then
  10539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
  10540. $as_echo_n "checking X11 toolkit version... " >&6; }
  10541. if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
  10542. $as_echo_n "(cached) " >&6
  10543. else
  10544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10545. /* end confdefs.h. */
  10546. #include <X11/Intrinsic.h>
  10547. int
  10548. main ()
  10549. {
  10550. #if XtSpecificationRelease < 6
  10551. fail;
  10552. #endif
  10553. ;
  10554. return 0;
  10555. }
  10556. _ACEOF
  10557. if ac_fn_c_try_link "$LINENO"; then :
  10558. emacs_cv_x11_toolkit_version_6=yes
  10559. else
  10560. emacs_cv_x11_toolkit_version_6=no
  10561. fi
  10562. rm -f core conftest.err conftest.$ac_objext \
  10563. conftest$ac_exeext conftest.$ac_ext
  10564. fi
  10565. HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
  10566. if test $emacs_cv_x11_toolkit_version_6 = yes; then
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
  10568. $as_echo "6 or newer" >&6; }
  10569. $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
  10570. LIBXTR6="-lSM -lICE"
  10571. case "$opsys" in
  10572. ## Use libw.a along with X11R6 Xt.
  10573. unixware) LIBXTR6="$LIBXTR6 -lw" ;;
  10574. esac
  10575. else
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
  10577. $as_echo "before 6" >&6; }
  10578. fi
  10579. OLDLIBS="$LIBS"
  10580. if test x$HAVE_X11XTR6 = xyes; then
  10581. LIBS="-lXt -lSM -lICE $LIBS"
  10582. else
  10583. LIBS="-lXt $LIBS"
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
  10586. $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
  10587. if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
  10588. $as_echo_n "(cached) " >&6
  10589. else
  10590. ac_check_lib_save_LIBS=$LIBS
  10591. LIBS="-lXmu $LIBS"
  10592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10593. /* end confdefs.h. */
  10594. /* Override any GCC internal prototype to avoid an error.
  10595. Use char because int might match the return type of a GCC
  10596. builtin and then its argument prototype would still apply. */
  10597. #ifdef __cplusplus
  10598. extern "C"
  10599. #endif
  10600. char XmuConvertStandardSelection ();
  10601. int
  10602. main ()
  10603. {
  10604. return XmuConvertStandardSelection ();
  10605. ;
  10606. return 0;
  10607. }
  10608. _ACEOF
  10609. if ac_fn_c_try_link "$LINENO"; then :
  10610. ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
  10611. else
  10612. ac_cv_lib_Xmu_XmuConvertStandardSelection=no
  10613. fi
  10614. rm -f core conftest.err conftest.$ac_objext \
  10615. conftest$ac_exeext conftest.$ac_ext
  10616. LIBS=$ac_check_lib_save_LIBS
  10617. fi
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
  10619. $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
  10620. if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
  10621. cat >>confdefs.h <<_ACEOF
  10622. #define HAVE_LIBXMU 1
  10623. _ACEOF
  10624. LIBS="-lXmu $LIBS"
  10625. fi
  10626. test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
  10627. fi
  10628. LIBXMU=-lXmu
  10629. case $opsys in
  10630. ## These systems don't supply Xmu.
  10631. hpux* | aix4-2 )
  10632. test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
  10633. ;;
  10634. esac
  10635. # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
  10636. if test "${HAVE_X11}" = "yes"; then
  10637. if test "${USE_X_TOOLKIT}" != "none"; then
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
  10639. $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
  10640. if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
  10641. $as_echo_n "(cached) " >&6
  10642. else
  10643. ac_check_lib_save_LIBS=$LIBS
  10644. LIBS="-lXext $LIBS"
  10645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10646. /* end confdefs.h. */
  10647. /* Override any GCC internal prototype to avoid an error.
  10648. Use char because int might match the return type of a GCC
  10649. builtin and then its argument prototype would still apply. */
  10650. #ifdef __cplusplus
  10651. extern "C"
  10652. #endif
  10653. char XShapeQueryExtension ();
  10654. int
  10655. main ()
  10656. {
  10657. return XShapeQueryExtension ();
  10658. ;
  10659. return 0;
  10660. }
  10661. _ACEOF
  10662. if ac_fn_c_try_link "$LINENO"; then :
  10663. ac_cv_lib_Xext_XShapeQueryExtension=yes
  10664. else
  10665. ac_cv_lib_Xext_XShapeQueryExtension=no
  10666. fi
  10667. rm -f core conftest.err conftest.$ac_objext \
  10668. conftest$ac_exeext conftest.$ac_ext
  10669. LIBS=$ac_check_lib_save_LIBS
  10670. fi
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
  10672. $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
  10673. if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
  10674. cat >>confdefs.h <<_ACEOF
  10675. #define HAVE_LIBXEXT 1
  10676. _ACEOF
  10677. LIBS="-lXext $LIBS"
  10678. fi
  10679. fi
  10680. fi
  10681. LIBXP=
  10682. if test "${USE_X_TOOLKIT}" = "MOTIF"; then
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
  10684. $as_echo_n "checking for Motif version 2.1... " >&6; }
  10685. if test "${emacs_cv_motif_version_2_1+set}" = set; then :
  10686. $as_echo_n "(cached) " >&6
  10687. else
  10688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10689. /* end confdefs.h. */
  10690. #include <Xm/Xm.h>
  10691. int
  10692. main ()
  10693. {
  10694. #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
  10695. int x = 5;
  10696. #else
  10697. Motif version prior to 2.1.
  10698. #endif
  10699. ;
  10700. return 0;
  10701. }
  10702. _ACEOF
  10703. if ac_fn_c_try_compile "$LINENO"; then :
  10704. emacs_cv_motif_version_2_1=yes
  10705. else
  10706. emacs_cv_motif_version_2_1=no
  10707. fi
  10708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10709. fi
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
  10711. $as_echo "$emacs_cv_motif_version_2_1" >&6; }
  10712. if test $emacs_cv_motif_version_2_1 = yes; then
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
  10714. $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
  10715. if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
  10716. $as_echo_n "(cached) " >&6
  10717. else
  10718. ac_check_lib_save_LIBS=$LIBS
  10719. LIBS="-lXp $LIBS"
  10720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10721. /* end confdefs.h. */
  10722. /* Override any GCC internal prototype to avoid an error.
  10723. Use char because int might match the return type of a GCC
  10724. builtin and then its argument prototype would still apply. */
  10725. #ifdef __cplusplus
  10726. extern "C"
  10727. #endif
  10728. char XpCreateContext ();
  10729. int
  10730. main ()
  10731. {
  10732. return XpCreateContext ();
  10733. ;
  10734. return 0;
  10735. }
  10736. _ACEOF
  10737. if ac_fn_c_try_link "$LINENO"; then :
  10738. ac_cv_lib_Xp_XpCreateContext=yes
  10739. else
  10740. ac_cv_lib_Xp_XpCreateContext=no
  10741. fi
  10742. rm -f core conftest.err conftest.$ac_objext \
  10743. conftest$ac_exeext conftest.$ac_ext
  10744. LIBS=$ac_check_lib_save_LIBS
  10745. fi
  10746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
  10747. $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
  10748. if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
  10749. LIBXP=-lXp
  10750. fi
  10751. else
  10752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
  10753. $as_echo_n "checking for LessTif where some systems put it... " >&6; }
  10754. if test "${emacs_cv_lesstif+set}" = set; then :
  10755. $as_echo_n "(cached) " >&6
  10756. else
  10757. # We put this in CFLAGS temporarily to precede other -I options
  10758. # that might be in CFLAGS temporarily.
  10759. # We put this in CPPFLAGS where it precedes the other -I options.
  10760. OLD_CPPFLAGS=$CPPFLAGS
  10761. OLD_CFLAGS=$CFLAGS
  10762. CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
  10763. CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
  10764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10765. /* end confdefs.h. */
  10766. #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
  10767. int
  10768. main ()
  10769. {
  10770. int x = 5;
  10771. ;
  10772. return 0;
  10773. }
  10774. _ACEOF
  10775. if ac_fn_c_try_compile "$LINENO"; then :
  10776. emacs_cv_lesstif=yes
  10777. else
  10778. emacs_cv_lesstif=no
  10779. fi
  10780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10781. fi
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
  10783. $as_echo "$emacs_cv_lesstif" >&6; }
  10784. if test $emacs_cv_lesstif = yes; then
  10785. # Make sure this -I option remains in CPPFLAGS after it is set
  10786. # back to REAL_CPPFLAGS.
  10787. # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
  10788. # have those other -I options anyway. Ultimately, having this
  10789. # directory ultimately in CPPFLAGS will be enough.
  10790. REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
  10791. LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
  10792. else
  10793. CFLAGS=$OLD_CFLAGS
  10794. CPPFLAGS=$OLD_CPPFLAGS
  10795. fi
  10796. fi
  10797. ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
  10798. if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
  10799. else
  10800. as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
  10801. fi
  10802. fi
  10803. USE_TOOLKIT_SCROLL_BARS=no
  10804. if test "${with_toolkit_scroll_bars}" != "no"; then
  10805. if test "${USE_X_TOOLKIT}" != "none"; then
  10806. if test "${USE_X_TOOLKIT}" = "MOTIF"; then
  10807. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10808. HAVE_XAW3D=no
  10809. USE_TOOLKIT_SCROLL_BARS=yes
  10810. elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
  10811. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10812. USE_TOOLKIT_SCROLL_BARS=yes
  10813. fi
  10814. elif test "${HAVE_GTK}" = "yes"; then
  10815. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10816. USE_TOOLKIT_SCROLL_BARS=yes
  10817. elif test "${HAVE_NS}" = "yes"; then
  10818. $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
  10819. USE_TOOLKIT_SCROLL_BARS=yes
  10820. fi
  10821. fi
  10822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10823. /* end confdefs.h. */
  10824. #include <X11/Xlib.h>
  10825. #include <X11/Xresource.h>
  10826. int
  10827. main ()
  10828. {
  10829. XIMProc callback;
  10830. ;
  10831. return 0;
  10832. }
  10833. _ACEOF
  10834. if ac_fn_c_try_compile "$LINENO"; then :
  10835. HAVE_XIM=yes
  10836. $as_echo "#define HAVE_XIM 1" >>confdefs.h
  10837. else
  10838. HAVE_XIM=no
  10839. fi
  10840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10841. if test "${with_xim}" != "no"; then
  10842. $as_echo "#define USE_XIM 1" >>confdefs.h
  10843. fi
  10844. if test "${HAVE_XIM}" != "no"; then
  10845. late_CFLAGS=$CFLAGS
  10846. if test "$GCC" = yes; then
  10847. CFLAGS="$CFLAGS --pedantic-errors"
  10848. fi
  10849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10850. /* end confdefs.h. */
  10851. #include <X11/Xlib.h>
  10852. #include <X11/Xresource.h>
  10853. int
  10854. main ()
  10855. {
  10856. Display *display;
  10857. XrmDatabase db;
  10858. char *res_name;
  10859. char *res_class;
  10860. XIMProc callback;
  10861. XPointer *client_data;
  10862. #ifndef __GNUC__
  10863. /* If we're not using GCC, it's probably not XFree86, and this is
  10864. probably right, but we can't use something like --pedantic-errors. */
  10865. extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
  10866. char*, XIMProc, XPointer*);
  10867. #endif
  10868. (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
  10869. client_data);
  10870. ;
  10871. return 0;
  10872. }
  10873. _ACEOF
  10874. if ac_fn_c_try_compile "$LINENO"; then :
  10875. emacs_cv_arg6_star=yes
  10876. fi
  10877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10878. if test "$emacs_cv_arg6_star" = yes; then
  10879. $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
  10880. else
  10881. $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
  10882. fi
  10883. CFLAGS=$late_CFLAGS
  10884. fi
  10885. ### Start of font-backend (under any platform) section.
  10886. # (nothing here yet -- this is a placeholder)
  10887. ### End of font-backend (under any platform) section.
  10888. ### Start of font-backend (under X11) section.
  10889. if test "${HAVE_X11}" = "yes"; then
  10890. succeeded=no
  10891. # Extract the first word of "pkg-config", so it can be a program name with args.
  10892. set dummy pkg-config; ac_word=$2
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10894. $as_echo_n "checking for $ac_word... " >&6; }
  10895. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10896. $as_echo_n "(cached) " >&6
  10897. else
  10898. case $PKG_CONFIG in
  10899. [\\/]* | ?:[\\/]*)
  10900. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10901. ;;
  10902. *)
  10903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10904. for as_dir in $PATH
  10905. do
  10906. IFS=$as_save_IFS
  10907. test -z "$as_dir" && as_dir=.
  10908. for ac_exec_ext in '' $ac_executable_extensions; do
  10909. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10910. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10912. break 2
  10913. fi
  10914. done
  10915. done
  10916. IFS=$as_save_IFS
  10917. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10918. ;;
  10919. esac
  10920. fi
  10921. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10922. if test -n "$PKG_CONFIG"; then
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10924. $as_echo "$PKG_CONFIG" >&6; }
  10925. else
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10927. $as_echo "no" >&6; }
  10928. fi
  10929. if test "$PKG_CONFIG" = "no" ; then
  10930. HAVE_FC=no
  10931. else
  10932. PKG_CONFIG_MIN_VERSION=0.9.0
  10933. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
  10935. $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
  10936. if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
  10937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10938. $as_echo "yes" >&6; }
  10939. succeeded=yes
  10940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
  10941. $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
  10942. FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
  10943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
  10944. $as_echo "$FONTCONFIG_CFLAGS" >&6; }
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
  10946. $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
  10947. FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
  10949. $as_echo "$FONTCONFIG_LIBS" >&6; }
  10950. else
  10951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10952. $as_echo "no" >&6; }
  10953. FONTCONFIG_CFLAGS=""
  10954. FONTCONFIG_LIBS=""
  10955. ## If we have a custom action on failure, don't print errors, but
  10956. ## do set a variable so people can do so.
  10957. FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
  10958. fi
  10959. else
  10960. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10961. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10962. fi
  10963. fi
  10964. if test $succeeded = yes; then
  10965. HAVE_FC=yes
  10966. else
  10967. HAVE_FC=no
  10968. fi
  10969. ## Use -lXft if available, unless `--with-xft=no'.
  10970. HAVE_XFT=maybe
  10971. if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
  10972. with_xft="no";
  10973. fi
  10974. if test "x${with_xft}" != "xno"; then
  10975. succeeded=no
  10976. # Extract the first word of "pkg-config", so it can be a program name with args.
  10977. set dummy pkg-config; ac_word=$2
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10979. $as_echo_n "checking for $ac_word... " >&6; }
  10980. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. case $PKG_CONFIG in
  10984. [\\/]* | ?:[\\/]*)
  10985. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10986. ;;
  10987. *)
  10988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10989. for as_dir in $PATH
  10990. do
  10991. IFS=$as_save_IFS
  10992. test -z "$as_dir" && as_dir=.
  10993. for ac_exec_ext in '' $ac_executable_extensions; do
  10994. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10995. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10997. break 2
  10998. fi
  10999. done
  11000. done
  11001. IFS=$as_save_IFS
  11002. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11003. ;;
  11004. esac
  11005. fi
  11006. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11007. if test -n "$PKG_CONFIG"; then
  11008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11009. $as_echo "$PKG_CONFIG" >&6; }
  11010. else
  11011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11012. $as_echo "no" >&6; }
  11013. fi
  11014. if test "$PKG_CONFIG" = "no" ; then
  11015. HAVE_XFT=no
  11016. else
  11017. PKG_CONFIG_MIN_VERSION=0.9.0
  11018. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
  11020. $as_echo_n "checking for xft >= 0.13.0... " >&6; }
  11021. if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
  11022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11023. $as_echo "yes" >&6; }
  11024. succeeded=yes
  11025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
  11026. $as_echo_n "checking XFT_CFLAGS... " >&6; }
  11027. XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
  11029. $as_echo "$XFT_CFLAGS" >&6; }
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
  11031. $as_echo_n "checking XFT_LIBS... " >&6; }
  11032. XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
  11033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
  11034. $as_echo "$XFT_LIBS" >&6; }
  11035. else
  11036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11037. $as_echo "no" >&6; }
  11038. XFT_CFLAGS=""
  11039. XFT_LIBS=""
  11040. ## If we have a custom action on failure, don't print errors, but
  11041. ## do set a variable so people can do so.
  11042. XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
  11043. fi
  11044. else
  11045. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11046. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11047. fi
  11048. fi
  11049. if test $succeeded = yes; then
  11050. :
  11051. else
  11052. HAVE_XFT=no
  11053. fi
  11054. ## Because xftfont.c uses XRenderQueryExtension, we also
  11055. ## need to link to -lXrender.
  11056. HAVE_XRENDER=no
  11057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
  11058. $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
  11059. if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
  11060. $as_echo_n "(cached) " >&6
  11061. else
  11062. ac_check_lib_save_LIBS=$LIBS
  11063. LIBS="-lXrender $LIBS"
  11064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11065. /* end confdefs.h. */
  11066. /* Override any GCC internal prototype to avoid an error.
  11067. Use char because int might match the return type of a GCC
  11068. builtin and then its argument prototype would still apply. */
  11069. #ifdef __cplusplus
  11070. extern "C"
  11071. #endif
  11072. char XRenderQueryExtension ();
  11073. int
  11074. main ()
  11075. {
  11076. return XRenderQueryExtension ();
  11077. ;
  11078. return 0;
  11079. }
  11080. _ACEOF
  11081. if ac_fn_c_try_link "$LINENO"; then :
  11082. ac_cv_lib_Xrender_XRenderQueryExtension=yes
  11083. else
  11084. ac_cv_lib_Xrender_XRenderQueryExtension=no
  11085. fi
  11086. rm -f core conftest.err conftest.$ac_objext \
  11087. conftest$ac_exeext conftest.$ac_ext
  11088. LIBS=$ac_check_lib_save_LIBS
  11089. fi
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
  11091. $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
  11092. if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
  11093. HAVE_XRENDER=yes
  11094. fi
  11095. if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
  11096. OLD_CPPFLAGS="$CPPFLAGS"
  11097. OLD_CFLAGS="$CFLAGS"
  11098. OLD_LIBS="$LIBS"
  11099. CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
  11100. CFLAGS="$CFLAGS $XFT_CFLAGS"
  11101. XFT_LIBS="-lXrender $XFT_LIBS"
  11102. LIBS="$XFT_LIBS $LIBS"
  11103. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
  11104. if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
  11106. $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
  11107. if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
  11108. $as_echo_n "(cached) " >&6
  11109. else
  11110. ac_check_lib_save_LIBS=$LIBS
  11111. LIBS="-lXft $XFT_LIBS $LIBS"
  11112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11113. /* end confdefs.h. */
  11114. /* Override any GCC internal prototype to avoid an error.
  11115. Use char because int might match the return type of a GCC
  11116. builtin and then its argument prototype would still apply. */
  11117. #ifdef __cplusplus
  11118. extern "C"
  11119. #endif
  11120. char XftFontOpen ();
  11121. int
  11122. main ()
  11123. {
  11124. return XftFontOpen ();
  11125. ;
  11126. return 0;
  11127. }
  11128. _ACEOF
  11129. if ac_fn_c_try_link "$LINENO"; then :
  11130. ac_cv_lib_Xft_XftFontOpen=yes
  11131. else
  11132. ac_cv_lib_Xft_XftFontOpen=no
  11133. fi
  11134. rm -f core conftest.err conftest.$ac_objext \
  11135. conftest$ac_exeext conftest.$ac_ext
  11136. LIBS=$ac_check_lib_save_LIBS
  11137. fi
  11138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
  11139. $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
  11140. if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
  11141. HAVE_XFT=yes
  11142. fi
  11143. fi
  11144. if test "${HAVE_XFT}" = "yes"; then
  11145. $as_echo "#define HAVE_XFT 1" >>confdefs.h
  11146. C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
  11147. else
  11148. CPPFLAGS="$OLD_CPPFLAGS"
  11149. CFLAGS="$OLD_CFLAGS"
  11150. LIBS="$OLD_LIBS"
  11151. fi # "${HAVE_XFT}" = "yes"
  11152. fi # "$HAVE_XFT" != no
  11153. fi # "x${with_xft}" != "xno"
  11154. ## We used to allow building with FreeType and without Xft.
  11155. ## However, the ftx font backend driver is not in good shape.
  11156. if test "$HAVE_XFT" != "yes"; then
  11157. HAVE_XFT=no
  11158. HAVE_FREETYPE=no
  11159. else
  11160. succeeded=no
  11161. # Extract the first word of "pkg-config", so it can be a program name with args.
  11162. set dummy pkg-config; ac_word=$2
  11163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11164. $as_echo_n "checking for $ac_word... " >&6; }
  11165. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  11166. $as_echo_n "(cached) " >&6
  11167. else
  11168. case $PKG_CONFIG in
  11169. [\\/]* | ?:[\\/]*)
  11170. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11171. ;;
  11172. *)
  11173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11174. for as_dir in $PATH
  11175. do
  11176. IFS=$as_save_IFS
  11177. test -z "$as_dir" && as_dir=.
  11178. for ac_exec_ext in '' $ac_executable_extensions; do
  11179. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11180. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11182. break 2
  11183. fi
  11184. done
  11185. done
  11186. IFS=$as_save_IFS
  11187. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11188. ;;
  11189. esac
  11190. fi
  11191. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11192. if test -n "$PKG_CONFIG"; then
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11194. $as_echo "$PKG_CONFIG" >&6; }
  11195. else
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11197. $as_echo "no" >&6; }
  11198. fi
  11199. if test "$PKG_CONFIG" = "no" ; then
  11200. HAVE_FREETYPE=no
  11201. else
  11202. PKG_CONFIG_MIN_VERSION=0.9.0
  11203. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
  11205. $as_echo_n "checking for freetype2... " >&6; }
  11206. if $PKG_CONFIG --exists "freetype2" 2>&5; then
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11208. $as_echo "yes" >&6; }
  11209. succeeded=yes
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
  11211. $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
  11212. FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
  11214. $as_echo "$FREETYPE_CFLAGS" >&6; }
  11215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
  11216. $as_echo_n "checking FREETYPE_LIBS... " >&6; }
  11217. FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
  11219. $as_echo "$FREETYPE_LIBS" >&6; }
  11220. else
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11222. $as_echo "no" >&6; }
  11223. FREETYPE_CFLAGS=""
  11224. FREETYPE_LIBS=""
  11225. ## If we have a custom action on failure, don't print errors, but
  11226. ## do set a variable so people can do so.
  11227. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
  11228. fi
  11229. else
  11230. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11231. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11232. fi
  11233. fi
  11234. if test $succeeded = yes; then
  11235. HAVE_FREETYPE=yes
  11236. else
  11237. HAVE_FREETYPE=no
  11238. fi
  11239. test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
  11240. fi
  11241. HAVE_LIBOTF=no
  11242. if test "${HAVE_FREETYPE}" = "yes"; then
  11243. $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
  11244. if test "${with_libotf}" != "no"; then
  11245. succeeded=no
  11246. # Extract the first word of "pkg-config", so it can be a program name with args.
  11247. set dummy pkg-config; ac_word=$2
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11249. $as_echo_n "checking for $ac_word... " >&6; }
  11250. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  11251. $as_echo_n "(cached) " >&6
  11252. else
  11253. case $PKG_CONFIG in
  11254. [\\/]* | ?:[\\/]*)
  11255. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11256. ;;
  11257. *)
  11258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11259. for as_dir in $PATH
  11260. do
  11261. IFS=$as_save_IFS
  11262. test -z "$as_dir" && as_dir=.
  11263. for ac_exec_ext in '' $ac_executable_extensions; do
  11264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11265. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11267. break 2
  11268. fi
  11269. done
  11270. done
  11271. IFS=$as_save_IFS
  11272. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11273. ;;
  11274. esac
  11275. fi
  11276. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11277. if test -n "$PKG_CONFIG"; then
  11278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11279. $as_echo "$PKG_CONFIG" >&6; }
  11280. else
  11281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11282. $as_echo "no" >&6; }
  11283. fi
  11284. if test "$PKG_CONFIG" = "no" ; then
  11285. HAVE_LIBOTF=no
  11286. else
  11287. PKG_CONFIG_MIN_VERSION=0.9.0
  11288. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
  11290. $as_echo_n "checking for libotf... " >&6; }
  11291. if $PKG_CONFIG --exists "libotf" 2>&5; then
  11292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11293. $as_echo "yes" >&6; }
  11294. succeeded=yes
  11295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
  11296. $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
  11297. LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
  11299. $as_echo "$LIBOTF_CFLAGS" >&6; }
  11300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
  11301. $as_echo_n "checking LIBOTF_LIBS... " >&6; }
  11302. LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
  11304. $as_echo "$LIBOTF_LIBS" >&6; }
  11305. else
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11307. $as_echo "no" >&6; }
  11308. LIBOTF_CFLAGS=""
  11309. LIBOTF_LIBS=""
  11310. ## If we have a custom action on failure, don't print errors, but
  11311. ## do set a variable so people can do so.
  11312. LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
  11313. fi
  11314. else
  11315. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11316. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11317. fi
  11318. fi
  11319. if test $succeeded = yes; then
  11320. HAVE_LIBOTF=yes
  11321. else
  11322. HAVE_LIBOTF=no
  11323. fi
  11324. if test "$HAVE_LIBOTF" = "yes"; then
  11325. $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
  11326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
  11327. $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
  11328. if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
  11329. $as_echo_n "(cached) " >&6
  11330. else
  11331. ac_check_lib_save_LIBS=$LIBS
  11332. LIBS="-lotf $LIBS"
  11333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11334. /* end confdefs.h. */
  11335. /* Override any GCC internal prototype to avoid an error.
  11336. Use char because int might match the return type of a GCC
  11337. builtin and then its argument prototype would still apply. */
  11338. #ifdef __cplusplus
  11339. extern "C"
  11340. #endif
  11341. char OTF_get_variation_glyphs ();
  11342. int
  11343. main ()
  11344. {
  11345. return OTF_get_variation_glyphs ();
  11346. ;
  11347. return 0;
  11348. }
  11349. _ACEOF
  11350. if ac_fn_c_try_link "$LINENO"; then :
  11351. ac_cv_lib_otf_OTF_get_variation_glyphs=yes
  11352. else
  11353. ac_cv_lib_otf_OTF_get_variation_glyphs=no
  11354. fi
  11355. rm -f core conftest.err conftest.$ac_objext \
  11356. conftest$ac_exeext conftest.$ac_ext
  11357. LIBS=$ac_check_lib_save_LIBS
  11358. fi
  11359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
  11360. $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
  11361. if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
  11362. HAVE_OTF_GET_VARIATION_GLYPHS=yes
  11363. else
  11364. HAVE_OTF_GET_VARIATION_GLYPHS=no
  11365. fi
  11366. if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
  11367. $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
  11368. fi
  11369. fi
  11370. fi
  11371. fi
  11372. HAVE_M17N_FLT=no
  11373. if test "${HAVE_LIBOTF}" = yes; then
  11374. if test "${with_m17n_flt}" != "no"; then
  11375. succeeded=no
  11376. # Extract the first word of "pkg-config", so it can be a program name with args.
  11377. set dummy pkg-config; ac_word=$2
  11378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11379. $as_echo_n "checking for $ac_word... " >&6; }
  11380. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  11381. $as_echo_n "(cached) " >&6
  11382. else
  11383. case $PKG_CONFIG in
  11384. [\\/]* | ?:[\\/]*)
  11385. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11386. ;;
  11387. *)
  11388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11389. for as_dir in $PATH
  11390. do
  11391. IFS=$as_save_IFS
  11392. test -z "$as_dir" && as_dir=.
  11393. for ac_exec_ext in '' $ac_executable_extensions; do
  11394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11395. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11397. break 2
  11398. fi
  11399. done
  11400. done
  11401. IFS=$as_save_IFS
  11402. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11403. ;;
  11404. esac
  11405. fi
  11406. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11407. if test -n "$PKG_CONFIG"; then
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11409. $as_echo "$PKG_CONFIG" >&6; }
  11410. else
  11411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11412. $as_echo "no" >&6; }
  11413. fi
  11414. if test "$PKG_CONFIG" = "no" ; then
  11415. HAVE_M17N_FLT=no
  11416. else
  11417. PKG_CONFIG_MIN_VERSION=0.9.0
  11418. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
  11420. $as_echo_n "checking for m17n-flt... " >&6; }
  11421. if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
  11422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11423. $as_echo "yes" >&6; }
  11424. succeeded=yes
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
  11426. $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
  11427. M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
  11428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
  11429. $as_echo "$M17N_FLT_CFLAGS" >&6; }
  11430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
  11431. $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
  11432. M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
  11434. $as_echo "$M17N_FLT_LIBS" >&6; }
  11435. else
  11436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11437. $as_echo "no" >&6; }
  11438. M17N_FLT_CFLAGS=""
  11439. M17N_FLT_LIBS=""
  11440. ## If we have a custom action on failure, don't print errors, but
  11441. ## do set a variable so people can do so.
  11442. M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
  11443. fi
  11444. else
  11445. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11446. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11447. fi
  11448. fi
  11449. if test $succeeded = yes; then
  11450. HAVE_M17N_FLT=yes
  11451. else
  11452. HAVE_M17N_FLT=no
  11453. fi
  11454. if test "$HAVE_M17N_FLT" = "yes"; then
  11455. $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
  11456. fi
  11457. fi
  11458. fi
  11459. else
  11460. HAVE_XFT=no
  11461. HAVE_FREETYPE=no
  11462. HAVE_LIBOTF=no
  11463. HAVE_M17N_FLT=no
  11464. fi
  11465. ### End of font-backend (under X11) section.
  11466. ### Use -lXpm if available, unless `--with-xpm=no'.
  11467. HAVE_XPM=no
  11468. LIBXPM=
  11469. if test "${HAVE_X11}" = "yes"; then
  11470. if test "${with_xpm}" != "no"; then
  11471. ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
  11472. if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
  11473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
  11474. $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
  11475. if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
  11476. $as_echo_n "(cached) " >&6
  11477. else
  11478. ac_check_lib_save_LIBS=$LIBS
  11479. LIBS="-lXpm -lX11 $LIBS"
  11480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11481. /* end confdefs.h. */
  11482. /* Override any GCC internal prototype to avoid an error.
  11483. Use char because int might match the return type of a GCC
  11484. builtin and then its argument prototype would still apply. */
  11485. #ifdef __cplusplus
  11486. extern "C"
  11487. #endif
  11488. char XpmReadFileToPixmap ();
  11489. int
  11490. main ()
  11491. {
  11492. return XpmReadFileToPixmap ();
  11493. ;
  11494. return 0;
  11495. }
  11496. _ACEOF
  11497. if ac_fn_c_try_link "$LINENO"; then :
  11498. ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
  11499. else
  11500. ac_cv_lib_Xpm_XpmReadFileToPixmap=no
  11501. fi
  11502. rm -f core conftest.err conftest.$ac_objext \
  11503. conftest$ac_exeext conftest.$ac_ext
  11504. LIBS=$ac_check_lib_save_LIBS
  11505. fi
  11506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
  11507. $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
  11508. if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
  11509. HAVE_XPM=yes
  11510. fi
  11511. fi
  11512. if test "${HAVE_XPM}" = "yes"; then
  11513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
  11514. $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
  11515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11516. /* end confdefs.h. */
  11517. #include "X11/xpm.h"
  11518. #ifndef XpmReturnAllocPixels
  11519. no_return_alloc_pixels
  11520. #endif
  11521. _ACEOF
  11522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11523. $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
  11524. HAVE_XPM=no
  11525. else
  11526. HAVE_XPM=yes
  11527. fi
  11528. rm -f conftest*
  11529. if test "${HAVE_XPM}" = "yes"; then
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11531. $as_echo "yes" >&6; }
  11532. else
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11534. $as_echo "no" >&6; }
  11535. fi
  11536. fi
  11537. fi
  11538. if test "${HAVE_XPM}" = "yes"; then
  11539. $as_echo "#define HAVE_XPM 1" >>confdefs.h
  11540. LIBXPM=-lXpm
  11541. fi
  11542. fi
  11543. ### Use -ljpeg if available, unless `--with-jpeg=no'.
  11544. HAVE_JPEG=no
  11545. LIBJPEG=
  11546. if test "${HAVE_X11}" = "yes"; then
  11547. if test "${with_jpeg}" != "no"; then
  11548. ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
  11549. if test "x$ac_cv_header_jerror_h" = x""yes; then :
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
  11551. $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
  11552. if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
  11553. $as_echo_n "(cached) " >&6
  11554. else
  11555. ac_check_lib_save_LIBS=$LIBS
  11556. LIBS="-ljpeg $LIBS"
  11557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11558. /* end confdefs.h. */
  11559. /* Override any GCC internal prototype to avoid an error.
  11560. Use char because int might match the return type of a GCC
  11561. builtin and then its argument prototype would still apply. */
  11562. #ifdef __cplusplus
  11563. extern "C"
  11564. #endif
  11565. char jpeg_destroy_compress ();
  11566. int
  11567. main ()
  11568. {
  11569. return jpeg_destroy_compress ();
  11570. ;
  11571. return 0;
  11572. }
  11573. _ACEOF
  11574. if ac_fn_c_try_link "$LINENO"; then :
  11575. ac_cv_lib_jpeg_jpeg_destroy_compress=yes
  11576. else
  11577. ac_cv_lib_jpeg_jpeg_destroy_compress=no
  11578. fi
  11579. rm -f core conftest.err conftest.$ac_objext \
  11580. conftest$ac_exeext conftest.$ac_ext
  11581. LIBS=$ac_check_lib_save_LIBS
  11582. fi
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
  11584. $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
  11585. if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
  11586. HAVE_JPEG=yes
  11587. fi
  11588. fi
  11589. fi
  11590. if test "${HAVE_JPEG}" = "yes"; then
  11591. $as_echo "#define HAVE_JPEG 1" >>confdefs.h
  11592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11593. /* end confdefs.h. */
  11594. #include <jpeglib.h>
  11595. version=JPEG_LIB_VERSION
  11596. _ACEOF
  11597. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11598. $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
  11599. $as_echo "#define HAVE_JPEG 1" >>confdefs.h
  11600. else
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
  11602. $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
  11603. HAVE_JPEG=no
  11604. fi
  11605. rm -f conftest*
  11606. fi
  11607. if test "${HAVE_JPEG}" = "yes"; then
  11608. LIBJPEG=-ljpeg
  11609. fi
  11610. fi
  11611. ### Use -lpng if available, unless `--with-png=no'.
  11612. HAVE_PNG=no
  11613. LIBPNG=
  11614. if test "${HAVE_X11}" = "yes"; then
  11615. if test "${with_png}" != "no"; then
  11616. # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
  11617. # in /usr/include/libpng.
  11618. for ac_header in png.h libpng/png.h
  11619. do :
  11620. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11621. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11622. eval as_val=\$$as_ac_Header
  11623. if test "x$as_val" = x""yes; then :
  11624. cat >>confdefs.h <<_ACEOF
  11625. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11626. _ACEOF
  11627. fi
  11628. done
  11629. if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
  11630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
  11631. $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
  11632. if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
  11633. $as_echo_n "(cached) " >&6
  11634. else
  11635. ac_check_lib_save_LIBS=$LIBS
  11636. LIBS="-lpng -lz -lm $LIBS"
  11637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11638. /* end confdefs.h. */
  11639. /* Override any GCC internal prototype to avoid an error.
  11640. Use char because int might match the return type of a GCC
  11641. builtin and then its argument prototype would still apply. */
  11642. #ifdef __cplusplus
  11643. extern "C"
  11644. #endif
  11645. char png_get_channels ();
  11646. int
  11647. main ()
  11648. {
  11649. return png_get_channels ();
  11650. ;
  11651. return 0;
  11652. }
  11653. _ACEOF
  11654. if ac_fn_c_try_link "$LINENO"; then :
  11655. ac_cv_lib_png_png_get_channels=yes
  11656. else
  11657. ac_cv_lib_png_png_get_channels=no
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext \
  11660. conftest$ac_exeext conftest.$ac_ext
  11661. LIBS=$ac_check_lib_save_LIBS
  11662. fi
  11663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
  11664. $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
  11665. if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
  11666. HAVE_PNG=yes
  11667. fi
  11668. fi
  11669. fi
  11670. if test "${HAVE_PNG}" = "yes"; then
  11671. $as_echo "#define HAVE_PNG 1" >>confdefs.h
  11672. LIBPNG="-lpng -lz -lm"
  11673. fi
  11674. fi
  11675. ### Use -ltiff if available, unless `--with-tiff=no'.
  11676. HAVE_TIFF=no
  11677. LIBTIFF=
  11678. if test "${HAVE_X11}" = "yes"; then
  11679. if test "${with_tiff}" != "no"; then
  11680. ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
  11681. if test "x$ac_cv_header_tiffio_h" = x""yes; then :
  11682. tifflibs="-lz -lm"
  11683. # At least one tiff package requires the jpeg library.
  11684. if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
  11686. $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
  11687. if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
  11688. $as_echo_n "(cached) " >&6
  11689. else
  11690. ac_check_lib_save_LIBS=$LIBS
  11691. LIBS="-ltiff $tifflibs $LIBS"
  11692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11693. /* end confdefs.h. */
  11694. /* Override any GCC internal prototype to avoid an error.
  11695. Use char because int might match the return type of a GCC
  11696. builtin and then its argument prototype would still apply. */
  11697. #ifdef __cplusplus
  11698. extern "C"
  11699. #endif
  11700. char TIFFGetVersion ();
  11701. int
  11702. main ()
  11703. {
  11704. return TIFFGetVersion ();
  11705. ;
  11706. return 0;
  11707. }
  11708. _ACEOF
  11709. if ac_fn_c_try_link "$LINENO"; then :
  11710. ac_cv_lib_tiff_TIFFGetVersion=yes
  11711. else
  11712. ac_cv_lib_tiff_TIFFGetVersion=no
  11713. fi
  11714. rm -f core conftest.err conftest.$ac_objext \
  11715. conftest$ac_exeext conftest.$ac_ext
  11716. LIBS=$ac_check_lib_save_LIBS
  11717. fi
  11718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
  11719. $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
  11720. if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
  11721. HAVE_TIFF=yes
  11722. fi
  11723. fi
  11724. fi
  11725. if test "${HAVE_TIFF}" = "yes"; then
  11726. $as_echo "#define HAVE_TIFF 1" >>confdefs.h
  11727. LIBTIFF=-ltiff
  11728. fi
  11729. fi
  11730. ### Use -lgif or -lungif if available, unless `--with-gif=no'.
  11731. HAVE_GIF=no
  11732. LIBGIF=
  11733. if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
  11734. ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
  11735. if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
  11736. # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
  11737. # Earlier versions can crash Emacs.
  11738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
  11739. $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
  11740. if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
  11741. $as_echo_n "(cached) " >&6
  11742. else
  11743. ac_check_lib_save_LIBS=$LIBS
  11744. LIBS="-lgif $LIBS"
  11745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11746. /* end confdefs.h. */
  11747. /* Override any GCC internal prototype to avoid an error.
  11748. Use char because int might match the return type of a GCC
  11749. builtin and then its argument prototype would still apply. */
  11750. #ifdef __cplusplus
  11751. extern "C"
  11752. #endif
  11753. char EGifPutExtensionLast ();
  11754. int
  11755. main ()
  11756. {
  11757. return EGifPutExtensionLast ();
  11758. ;
  11759. return 0;
  11760. }
  11761. _ACEOF
  11762. if ac_fn_c_try_link "$LINENO"; then :
  11763. ac_cv_lib_gif_EGifPutExtensionLast=yes
  11764. else
  11765. ac_cv_lib_gif_EGifPutExtensionLast=no
  11766. fi
  11767. rm -f core conftest.err conftest.$ac_objext \
  11768. conftest$ac_exeext conftest.$ac_ext
  11769. LIBS=$ac_check_lib_save_LIBS
  11770. fi
  11771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
  11772. $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
  11773. if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
  11774. HAVE_GIF=yes
  11775. else
  11776. HAVE_GIF=maybe
  11777. fi
  11778. fi
  11779. if test "$HAVE_GIF" = yes; then
  11780. LIBGIF=-lgif
  11781. elif test "$HAVE_GIF" = maybe; then
  11782. # If gif_lib.h but no libgif, try libungif.
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
  11784. $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
  11785. if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
  11786. $as_echo_n "(cached) " >&6
  11787. else
  11788. ac_check_lib_save_LIBS=$LIBS
  11789. LIBS="-lungif $LIBS"
  11790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11791. /* end confdefs.h. */
  11792. /* Override any GCC internal prototype to avoid an error.
  11793. Use char because int might match the return type of a GCC
  11794. builtin and then its argument prototype would still apply. */
  11795. #ifdef __cplusplus
  11796. extern "C"
  11797. #endif
  11798. char EGifPutExtensionLast ();
  11799. int
  11800. main ()
  11801. {
  11802. return EGifPutExtensionLast ();
  11803. ;
  11804. return 0;
  11805. }
  11806. _ACEOF
  11807. if ac_fn_c_try_link "$LINENO"; then :
  11808. ac_cv_lib_ungif_EGifPutExtensionLast=yes
  11809. else
  11810. ac_cv_lib_ungif_EGifPutExtensionLast=no
  11811. fi
  11812. rm -f core conftest.err conftest.$ac_objext \
  11813. conftest$ac_exeext conftest.$ac_ext
  11814. LIBS=$ac_check_lib_save_LIBS
  11815. fi
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
  11817. $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
  11818. if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
  11819. HAVE_GIF=yes
  11820. else
  11821. HAVE_GIF=no
  11822. fi
  11823. test "$HAVE_GIF" = yes && LIBGIF=-lungif
  11824. fi
  11825. if test "${HAVE_GIF}" = "yes"; then
  11826. $as_echo "#define HAVE_GIF 1" >>confdefs.h
  11827. fi
  11828. fi
  11829. if test "${HAVE_X11}" = "yes"; then
  11830. MISSING=""
  11831. WITH_NO=""
  11832. test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
  11833. MISSING="libXpm" && WITH_NO="--with-xpm=no"
  11834. test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
  11835. MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
  11836. test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
  11837. MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
  11838. test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
  11839. MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
  11840. test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
  11841. MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
  11842. if test "X${MISSING}" != X; then
  11843. as_fn_error "The following required libraries were not found:
  11844. $MISSING
  11845. Maybe some development libraries/packages are missing?
  11846. If you don't want to link with them give
  11847. $WITH_NO
  11848. as options to configure" "$LINENO" 5
  11849. fi
  11850. fi
  11851. ### Use -lgpm if available, unless `--with-gpm=no'.
  11852. HAVE_GPM=no
  11853. LIBGPM=
  11854. if test "${with_gpm}" != "no"; then
  11855. ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
  11856. if test "x$ac_cv_header_gpm_h" = x""yes; then :
  11857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
  11858. $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
  11859. if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
  11860. $as_echo_n "(cached) " >&6
  11861. else
  11862. ac_check_lib_save_LIBS=$LIBS
  11863. LIBS="-lgpm $LIBS"
  11864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11865. /* end confdefs.h. */
  11866. /* Override any GCC internal prototype to avoid an error.
  11867. Use char because int might match the return type of a GCC
  11868. builtin and then its argument prototype would still apply. */
  11869. #ifdef __cplusplus
  11870. extern "C"
  11871. #endif
  11872. char Gpm_Open ();
  11873. int
  11874. main ()
  11875. {
  11876. return Gpm_Open ();
  11877. ;
  11878. return 0;
  11879. }
  11880. _ACEOF
  11881. if ac_fn_c_try_link "$LINENO"; then :
  11882. ac_cv_lib_gpm_Gpm_Open=yes
  11883. else
  11884. ac_cv_lib_gpm_Gpm_Open=no
  11885. fi
  11886. rm -f core conftest.err conftest.$ac_objext \
  11887. conftest$ac_exeext conftest.$ac_ext
  11888. LIBS=$ac_check_lib_save_LIBS
  11889. fi
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
  11891. $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
  11892. if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
  11893. HAVE_GPM=yes
  11894. fi
  11895. fi
  11896. if test "${HAVE_GPM}" = "yes"; then
  11897. $as_echo "#define HAVE_GPM 1" >>confdefs.h
  11898. LIBGPM=-lgpm
  11899. fi
  11900. fi
  11901. ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
  11902. if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
  11903. $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
  11904. fi
  11905. C_SWITCH_X_SYSTEM=
  11906. ### Use NeXTstep API to implement GUI.
  11907. if test "${HAVE_NS}" = "yes"; then
  11908. $as_echo "#define HAVE_NS 1" >>confdefs.h
  11909. if test "${NS_IMPL_COCOA}" = "yes"; then
  11910. $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
  11911. fi
  11912. if test "${NS_IMPL_GNUSTEP}" = "yes"; then
  11913. $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
  11914. # See also .m.o rule in Makefile.in */
  11915. # FIXME: are all these flags really needed? Document here why. */
  11916. C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
  11917. ## Extra CFLAGS applied to src/*.m files.
  11918. GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
  11919. fi
  11920. if test "${NS_HAVE_NSINTEGER}" = "yes"; then
  11921. $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
  11922. fi
  11923. # We also have mouse menus.
  11924. HAVE_MENUS=yes
  11925. OTHER_FILES=ns-app
  11926. fi
  11927. ### Use session management (-lSM -lICE) if available
  11928. HAVE_X_SM=no
  11929. LIBXSM=
  11930. if test "${HAVE_X11}" = "yes"; then
  11931. ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
  11932. if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
  11934. $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
  11935. if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
  11936. $as_echo_n "(cached) " >&6
  11937. else
  11938. ac_check_lib_save_LIBS=$LIBS
  11939. LIBS="-lSM -lICE $LIBS"
  11940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11941. /* end confdefs.h. */
  11942. /* Override any GCC internal prototype to avoid an error.
  11943. Use char because int might match the return type of a GCC
  11944. builtin and then its argument prototype would still apply. */
  11945. #ifdef __cplusplus
  11946. extern "C"
  11947. #endif
  11948. char SmcOpenConnection ();
  11949. int
  11950. main ()
  11951. {
  11952. return SmcOpenConnection ();
  11953. ;
  11954. return 0;
  11955. }
  11956. _ACEOF
  11957. if ac_fn_c_try_link "$LINENO"; then :
  11958. ac_cv_lib_SM_SmcOpenConnection=yes
  11959. else
  11960. ac_cv_lib_SM_SmcOpenConnection=no
  11961. fi
  11962. rm -f core conftest.err conftest.$ac_objext \
  11963. conftest$ac_exeext conftest.$ac_ext
  11964. LIBS=$ac_check_lib_save_LIBS
  11965. fi
  11966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
  11967. $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
  11968. if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
  11969. HAVE_X_SM=yes
  11970. fi
  11971. fi
  11972. if test "${HAVE_X_SM}" = "yes"; then
  11973. $as_echo "#define HAVE_X_SM 1" >>confdefs.h
  11974. LIBXSM="-lSM -lICE"
  11975. case "$LIBS" in
  11976. *-lSM*) ;;
  11977. *) LIBS="$LIBXSM $LIBS" ;;
  11978. esac
  11979. fi
  11980. fi
  11981. ### Use libxml (-lxml2) if available
  11982. HAVE_LIBXML2=no
  11983. if test "${with_xml2}" != "no"; then
  11984. ### I'm not sure what the version number should be, so I just guessed.
  11985. succeeded=no
  11986. # Extract the first word of "pkg-config", so it can be a program name with args.
  11987. set dummy pkg-config; ac_word=$2
  11988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11989. $as_echo_n "checking for $ac_word... " >&6; }
  11990. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  11991. $as_echo_n "(cached) " >&6
  11992. else
  11993. case $PKG_CONFIG in
  11994. [\\/]* | ?:[\\/]*)
  11995. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11996. ;;
  11997. *)
  11998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11999. for as_dir in $PATH
  12000. do
  12001. IFS=$as_save_IFS
  12002. test -z "$as_dir" && as_dir=.
  12003. for ac_exec_ext in '' $ac_executable_extensions; do
  12004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12005. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12007. break 2
  12008. fi
  12009. done
  12010. done
  12011. IFS=$as_save_IFS
  12012. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12013. ;;
  12014. esac
  12015. fi
  12016. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12017. if test -n "$PKG_CONFIG"; then
  12018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12019. $as_echo "$PKG_CONFIG" >&6; }
  12020. else
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12022. $as_echo "no" >&6; }
  12023. fi
  12024. if test "$PKG_CONFIG" = "no" ; then
  12025. HAVE_LIBXML2=no
  12026. else
  12027. PKG_CONFIG_MIN_VERSION=0.9.0
  12028. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
  12030. $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
  12031. if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
  12032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12033. $as_echo "yes" >&6; }
  12034. succeeded=yes
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
  12036. $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
  12037. LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
  12038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
  12039. $as_echo "$LIBXML2_CFLAGS" >&6; }
  12040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
  12041. $as_echo_n "checking LIBXML2_LIBS... " >&6; }
  12042. LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
  12043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
  12044. $as_echo "$LIBXML2_LIBS" >&6; }
  12045. else
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12047. $as_echo "no" >&6; }
  12048. LIBXML2_CFLAGS=""
  12049. LIBXML2_LIBS=""
  12050. ## If we have a custom action on failure, don't print errors, but
  12051. ## do set a variable so people can do so.
  12052. LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
  12053. fi
  12054. else
  12055. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12056. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12057. fi
  12058. fi
  12059. if test $succeeded = yes; then
  12060. HAVE_LIBXML2=yes
  12061. else
  12062. HAVE_LIBXML2=no
  12063. fi
  12064. if test "${HAVE_LIBXML2}" = "yes"; then
  12065. LIBS="$LIBXML2_LIBS $LIBS"
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
  12067. $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
  12068. if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
  12069. $as_echo_n "(cached) " >&6
  12070. else
  12071. ac_check_lib_save_LIBS=$LIBS
  12072. LIBS="-lxml2 $LIBS"
  12073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12074. /* end confdefs.h. */
  12075. /* Override any GCC internal prototype to avoid an error.
  12076. Use char because int might match the return type of a GCC
  12077. builtin and then its argument prototype would still apply. */
  12078. #ifdef __cplusplus
  12079. extern "C"
  12080. #endif
  12081. char htmlReadMemory ();
  12082. int
  12083. main ()
  12084. {
  12085. return htmlReadMemory ();
  12086. ;
  12087. return 0;
  12088. }
  12089. _ACEOF
  12090. if ac_fn_c_try_link "$LINENO"; then :
  12091. ac_cv_lib_xml2_htmlReadMemory=yes
  12092. else
  12093. ac_cv_lib_xml2_htmlReadMemory=no
  12094. fi
  12095. rm -f core conftest.err conftest.$ac_objext \
  12096. conftest$ac_exeext conftest.$ac_ext
  12097. LIBS=$ac_check_lib_save_LIBS
  12098. fi
  12099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
  12100. $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
  12101. if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
  12102. HAVE_LIBXML2=yes
  12103. else
  12104. HAVE_LIBXML2=no
  12105. fi
  12106. if test "${HAVE_LIBXML2}" = "yes"; then
  12107. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  12108. else
  12109. LIBXML2_LIBS=""
  12110. LIBXML2_CFLAGS=""
  12111. fi
  12112. fi
  12113. fi
  12114. # If netdb.h doesn't declare h_errno, we must declare it by hand.
  12115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
  12116. $as_echo_n "checking whether netdb declares h_errno... " >&6; }
  12117. if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
  12118. $as_echo_n "(cached) " >&6
  12119. else
  12120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12121. /* end confdefs.h. */
  12122. #include <netdb.h>
  12123. int
  12124. main ()
  12125. {
  12126. return h_errno;
  12127. ;
  12128. return 0;
  12129. }
  12130. _ACEOF
  12131. if ac_fn_c_try_link "$LINENO"; then :
  12132. emacs_cv_netdb_declares_h_errno=yes
  12133. else
  12134. emacs_cv_netdb_declares_h_errno=no
  12135. fi
  12136. rm -f core conftest.err conftest.$ac_objext \
  12137. conftest$ac_exeext conftest.$ac_ext
  12138. fi
  12139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
  12140. $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
  12141. if test $emacs_cv_netdb_declares_h_errno = yes; then
  12142. $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
  12143. fi
  12144. # fmod, logb, and frexp are found in -lm on most systems.
  12145. # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
  12146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  12147. $as_echo_n "checking for sqrt in -lm... " >&6; }
  12148. if test "${ac_cv_lib_m_sqrt+set}" = set; then :
  12149. $as_echo_n "(cached) " >&6
  12150. else
  12151. ac_check_lib_save_LIBS=$LIBS
  12152. LIBS="-lm $LIBS"
  12153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12154. /* end confdefs.h. */
  12155. /* Override any GCC internal prototype to avoid an error.
  12156. Use char because int might match the return type of a GCC
  12157. builtin and then its argument prototype would still apply. */
  12158. #ifdef __cplusplus
  12159. extern "C"
  12160. #endif
  12161. char sqrt ();
  12162. int
  12163. main ()
  12164. {
  12165. return sqrt ();
  12166. ;
  12167. return 0;
  12168. }
  12169. _ACEOF
  12170. if ac_fn_c_try_link "$LINENO"; then :
  12171. ac_cv_lib_m_sqrt=yes
  12172. else
  12173. ac_cv_lib_m_sqrt=no
  12174. fi
  12175. rm -f core conftest.err conftest.$ac_objext \
  12176. conftest$ac_exeext conftest.$ac_ext
  12177. LIBS=$ac_check_lib_save_LIBS
  12178. fi
  12179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  12180. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  12181. if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
  12182. cat >>confdefs.h <<_ACEOF
  12183. #define HAVE_LIBM 1
  12184. _ACEOF
  12185. LIBS="-lm $LIBS"
  12186. fi
  12187. # Check for mail-locking functions in a "mail" library. Probably this should
  12188. # have the same check as for liblockfile below.
  12189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
  12190. $as_echo_n "checking for maillock in -lmail... " >&6; }
  12191. if test "${ac_cv_lib_mail_maillock+set}" = set; then :
  12192. $as_echo_n "(cached) " >&6
  12193. else
  12194. ac_check_lib_save_LIBS=$LIBS
  12195. LIBS="-lmail $LIBS"
  12196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12197. /* end confdefs.h. */
  12198. /* Override any GCC internal prototype to avoid an error.
  12199. Use char because int might match the return type of a GCC
  12200. builtin and then its argument prototype would still apply. */
  12201. #ifdef __cplusplus
  12202. extern "C"
  12203. #endif
  12204. char maillock ();
  12205. int
  12206. main ()
  12207. {
  12208. return maillock ();
  12209. ;
  12210. return 0;
  12211. }
  12212. _ACEOF
  12213. if ac_fn_c_try_link "$LINENO"; then :
  12214. ac_cv_lib_mail_maillock=yes
  12215. else
  12216. ac_cv_lib_mail_maillock=no
  12217. fi
  12218. rm -f core conftest.err conftest.$ac_objext \
  12219. conftest$ac_exeext conftest.$ac_ext
  12220. LIBS=$ac_check_lib_save_LIBS
  12221. fi
  12222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
  12223. $as_echo "$ac_cv_lib_mail_maillock" >&6; }
  12224. if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
  12225. have_mail=yes
  12226. else
  12227. have_mail=no
  12228. fi
  12229. if test $have_mail = yes; then
  12230. LIBS_MAIL=-lmail
  12231. LIBS="$LIBS_MAIL $LIBS"
  12232. $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
  12233. else
  12234. LIBS_MAIL=
  12235. fi
  12236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
  12237. $as_echo_n "checking for maillock in -llockfile... " >&6; }
  12238. if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
  12239. $as_echo_n "(cached) " >&6
  12240. else
  12241. ac_check_lib_save_LIBS=$LIBS
  12242. LIBS="-llockfile $LIBS"
  12243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12244. /* end confdefs.h. */
  12245. /* Override any GCC internal prototype to avoid an error.
  12246. Use char because int might match the return type of a GCC
  12247. builtin and then its argument prototype would still apply. */
  12248. #ifdef __cplusplus
  12249. extern "C"
  12250. #endif
  12251. char maillock ();
  12252. int
  12253. main ()
  12254. {
  12255. return maillock ();
  12256. ;
  12257. return 0;
  12258. }
  12259. _ACEOF
  12260. if ac_fn_c_try_link "$LINENO"; then :
  12261. ac_cv_lib_lockfile_maillock=yes
  12262. else
  12263. ac_cv_lib_lockfile_maillock=no
  12264. fi
  12265. rm -f core conftest.err conftest.$ac_objext \
  12266. conftest$ac_exeext conftest.$ac_ext
  12267. LIBS=$ac_check_lib_save_LIBS
  12268. fi
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
  12270. $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
  12271. if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
  12272. have_lockfile=yes
  12273. else
  12274. have_lockfile=no
  12275. fi
  12276. if test $have_lockfile = yes; then
  12277. LIBS_MAIL=-llockfile
  12278. LIBS="$LIBS_MAIL $LIBS"
  12279. $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
  12280. else
  12281. # If we have the shared liblockfile, assume we must use it for mail
  12282. # locking (e.g. Debian). If we couldn't link against liblockfile
  12283. # (no liblockfile.a installed), ensure that we don't need to.
  12284. # Extract the first word of "liblockfile.so", so it can be a program name with args.
  12285. set dummy liblockfile.so; ac_word=$2
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12287. $as_echo_n "checking for $ac_word... " >&6; }
  12288. if test "${ac_cv_prog_liblockfile+set}" = set; then :
  12289. $as_echo_n "(cached) " >&6
  12290. else
  12291. if test -n "$liblockfile"; then
  12292. ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
  12293. else
  12294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12295. as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
  12296. for as_dir in $as_dummy
  12297. do
  12298. IFS=$as_save_IFS
  12299. test -z "$as_dir" && as_dir=.
  12300. for ac_exec_ext in '' $ac_executable_extensions; do
  12301. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12302. ac_cv_prog_liblockfile="yes"
  12303. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12304. break 2
  12305. fi
  12306. done
  12307. done
  12308. IFS=$as_save_IFS
  12309. test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
  12310. fi
  12311. fi
  12312. liblockfile=$ac_cv_prog_liblockfile
  12313. if test -n "$liblockfile"; then
  12314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
  12315. $as_echo "$liblockfile" >&6; }
  12316. else
  12317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12318. $as_echo "no" >&6; }
  12319. fi
  12320. if test $ac_cv_prog_liblockfile = yes; then
  12321. as_fn_error "Shared liblockfile found but can't link against it.
  12322. This probably means that movemail could lose mail.
  12323. There may be a \`development' package to install containing liblockfile." "$LINENO" 5
  12324. fi
  12325. fi
  12326. for ac_func in touchlock
  12327. do :
  12328. ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
  12329. if test "x$ac_cv_func_touchlock" = x""yes; then :
  12330. cat >>confdefs.h <<_ACEOF
  12331. #define HAVE_TOUCHLOCK 1
  12332. _ACEOF
  12333. fi
  12334. done
  12335. for ac_header in maillock.h
  12336. do :
  12337. ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
  12338. if test "x$ac_cv_header_maillock_h" = x""yes; then :
  12339. cat >>confdefs.h <<_ACEOF
  12340. #define HAVE_MAILLOCK_H 1
  12341. _ACEOF
  12342. fi
  12343. done
  12344. ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
  12345. ## interlock access to the mail spool. The alternative is a lock file named
  12346. ## /usr/spool/mail/$USER.lock.
  12347. mail_lock=no
  12348. case "$opsys" in
  12349. aix4-2) mail_lock="lockf" ;;
  12350. gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
  12351. ## On GNU/Linux systems, both methods are used by various mail programs.
  12352. ## I assume most people are using newer mailers that have heard of flock.
  12353. ## Change this if you need to.
  12354. ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
  12355. ## configure gets the right answers, and that means *NOT* using flock.
  12356. ## Using flock is guaranteed to be the wrong thing. See Debian Policy
  12357. ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
  12358. ## Debian maintainer hasn't provided a clean fix for Emacs.
  12359. ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
  12360. ## HAVE_MAILLOCK_H are defined, so the following appears to be the
  12361. ## correct logic. -- fx
  12362. ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
  12363. ## liblockfile is a Free Software replacement for libmail, used on
  12364. ## Debian systems and elsewhere. -rfr.
  12365. gnu-*)
  12366. mail_lock="flock"
  12367. if test $have_mail = yes || test $have_lockfile = yes; then
  12368. test $ac_cv_header_maillock_h = yes && mail_lock=no
  12369. fi
  12370. ;;
  12371. esac
  12372. BLESSMAIL_TARGET=
  12373. case "$mail_lock" in
  12374. flock)
  12375. $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
  12376. ;;
  12377. lockf)
  12378. $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
  12379. ;;
  12380. *) BLESSMAIL_TARGET="need-blessmail" ;;
  12381. esac
  12382. for ac_func in gethostname getdomainname \
  12383. rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
  12384. random lrand48 logb frexp fmod rint cbrt ftime setsid \
  12385. strerror fpathconf select euidaccess getpagesize tzset setlocale \
  12386. utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
  12387. __fpending mblen mbrlen mbsinit strsignal setitimer ualarm \
  12388. sendto recvfrom getsockopt setsockopt getsockname getpeername \
  12389. gai_strerror mkstemp getline getdelim mremap fsync sync \
  12390. difftime mempcpy mblen mbrlen posix_memalign \
  12391. cfmakeraw cfsetspeed copysign __executable_start
  12392. do :
  12393. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12394. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12395. eval as_val=\$$as_ac_var
  12396. if test "x$as_val" = x""yes; then :
  12397. cat >>confdefs.h <<_ACEOF
  12398. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12399. _ACEOF
  12400. fi
  12401. done
  12402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
  12403. $as_echo_n "checking for __builtin_unwind_init... " >&6; }
  12404. if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
  12405. $as_echo_n "(cached) " >&6
  12406. else
  12407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12408. /* end confdefs.h. */
  12409. int
  12410. main ()
  12411. {
  12412. __builtin_unwind_init ();
  12413. ;
  12414. return 0;
  12415. }
  12416. _ACEOF
  12417. if ac_fn_c_try_link "$LINENO"; then :
  12418. emacs_cv_func___builtin_unwind_init=yes
  12419. else
  12420. emacs_cv_func___builtin_unwind_init=no
  12421. fi
  12422. rm -f core conftest.err conftest.$ac_objext \
  12423. conftest$ac_exeext conftest.$ac_ext
  12424. fi
  12425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
  12426. $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
  12427. if test $emacs_cv_func___builtin_unwind_init = yes; then
  12428. $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
  12429. fi
  12430. for ac_header in sys/un.h
  12431. do :
  12432. ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
  12433. if test "x$ac_cv_header_sys_un_h" = x""yes; then :
  12434. cat >>confdefs.h <<_ACEOF
  12435. #define HAVE_SYS_UN_H 1
  12436. _ACEOF
  12437. fi
  12438. done
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12440. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12441. if test "${ac_cv_sys_largefile_source+set}" = set; then :
  12442. $as_echo_n "(cached) " >&6
  12443. else
  12444. while :; do
  12445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12446. /* end confdefs.h. */
  12447. #include <sys/types.h> /* for off_t */
  12448. #include <stdio.h>
  12449. int
  12450. main ()
  12451. {
  12452. int (*fp) (FILE *, off_t, int) = fseeko;
  12453. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12454. ;
  12455. return 0;
  12456. }
  12457. _ACEOF
  12458. if ac_fn_c_try_link "$LINENO"; then :
  12459. ac_cv_sys_largefile_source=no; break
  12460. fi
  12461. rm -f core conftest.err conftest.$ac_objext \
  12462. conftest$ac_exeext conftest.$ac_ext
  12463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12464. /* end confdefs.h. */
  12465. #define _LARGEFILE_SOURCE 1
  12466. #include <sys/types.h> /* for off_t */
  12467. #include <stdio.h>
  12468. int
  12469. main ()
  12470. {
  12471. int (*fp) (FILE *, off_t, int) = fseeko;
  12472. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12473. ;
  12474. return 0;
  12475. }
  12476. _ACEOF
  12477. if ac_fn_c_try_link "$LINENO"; then :
  12478. ac_cv_sys_largefile_source=1; break
  12479. fi
  12480. rm -f core conftest.err conftest.$ac_objext \
  12481. conftest$ac_exeext conftest.$ac_ext
  12482. ac_cv_sys_largefile_source=unknown
  12483. break
  12484. done
  12485. fi
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12487. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12488. case $ac_cv_sys_largefile_source in #(
  12489. no | unknown) ;;
  12490. *)
  12491. cat >>confdefs.h <<_ACEOF
  12492. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12493. _ACEOF
  12494. ;;
  12495. esac
  12496. rm -rf conftest*
  12497. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12498. # in glibc 2.1.3, but that breaks too many other things.
  12499. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12500. if test $ac_cv_sys_largefile_source != unknown; then
  12501. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  12502. fi
  12503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
  12504. $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
  12505. if test "${ac_cv_func_getpgrp_void+set}" = set; then :
  12506. $as_echo_n "(cached) " >&6
  12507. else
  12508. # Use it with a single arg.
  12509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12510. /* end confdefs.h. */
  12511. $ac_includes_default
  12512. int
  12513. main ()
  12514. {
  12515. getpgrp (0);
  12516. ;
  12517. return 0;
  12518. }
  12519. _ACEOF
  12520. if ac_fn_c_try_compile "$LINENO"; then :
  12521. ac_cv_func_getpgrp_void=no
  12522. else
  12523. ac_cv_func_getpgrp_void=yes
  12524. fi
  12525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12526. fi
  12527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
  12528. $as_echo "$ac_cv_func_getpgrp_void" >&6; }
  12529. if test $ac_cv_func_getpgrp_void = yes; then
  12530. $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
  12531. fi
  12532. # UNIX98 PTYs.
  12533. for ac_func in grantpt
  12534. do :
  12535. ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
  12536. if test "x$ac_cv_func_grantpt" = x""yes; then :
  12537. cat >>confdefs.h <<_ACEOF
  12538. #define HAVE_GRANTPT 1
  12539. _ACEOF
  12540. fi
  12541. done
  12542. # PTY-related GNU extensions.
  12543. for ac_func in getpt
  12544. do :
  12545. ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
  12546. if test "x$ac_cv_func_getpt" = x""yes; then :
  12547. cat >>confdefs.h <<_ACEOF
  12548. #define HAVE_GETPT 1
  12549. _ACEOF
  12550. fi
  12551. done
  12552. # Check this now, so that we will NOT find the above functions in ncurses.
  12553. # That is because we have not set up to link ncurses in lib-src.
  12554. # It's better to believe a function is not available
  12555. # than to expect to find it in ncurses.
  12556. # Also we need tputs and friends to be able to build at all.
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
  12558. $as_echo_n "checking for library containing tputs... " >&6; }
  12559. # Run a test program that contains a call to tputs, a call that is
  12560. # never executed. This tests whether a pre-'main' dynamic linker
  12561. # works with the library. It's too much trouble to actually call
  12562. # tputs in the test program, due to portability hassles. When
  12563. # cross-compiling, assume the test program will run if it links.
  12564. # Maybe curses should be tried earlier?
  12565. # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
  12566. for tputs_library in '' ncurses terminfo termcap curses; do
  12567. OLIBS=$LIBS
  12568. if test -z "$tputs_library"; then
  12569. LIBS_TERMCAP=
  12570. msg='none required'
  12571. else
  12572. LIBS_TERMCAP=-l$tputs_library
  12573. msg=$LIBS_TERMCAP
  12574. LIBS="$LIBS_TERMCAP $LIBS"
  12575. fi
  12576. if test "$cross_compiling" = yes; then :
  12577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12578. /* end confdefs.h. */
  12579. extern void tputs (const char *, int, int (*)(int));
  12580. int main (int argc, char **argv)
  12581. {
  12582. if (argc == 10000)
  12583. tputs (argv[0], 0, 0);
  12584. return 0;
  12585. }
  12586. _ACEOF
  12587. if ac_fn_c_try_link "$LINENO"; then :
  12588. else
  12589. msg=no
  12590. fi
  12591. rm -f core conftest.err conftest.$ac_objext \
  12592. conftest$ac_exeext conftest.$ac_ext
  12593. else
  12594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12595. /* end confdefs.h. */
  12596. extern void tputs (const char *, int, int (*)(int));
  12597. int main (int argc, char **argv)
  12598. {
  12599. if (argc == 10000)
  12600. tputs (argv[0], 0, 0);
  12601. return 0;
  12602. }
  12603. _ACEOF
  12604. if ac_fn_c_try_run "$LINENO"; then :
  12605. else
  12606. msg=no
  12607. fi
  12608. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12609. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12610. fi
  12611. LIBS=$OLIBS
  12612. if test "X$msg" != Xno; then
  12613. break
  12614. fi
  12615. done
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
  12617. $as_echo "$msg" >&6; }
  12618. if test "X$msg" = Xno; then
  12619. as_fn_error "The required function \`tputs' was not found in any library.
  12620. These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
  12621. Please try installing whichever of these libraries is most appropriate
  12622. for your system, together with its header files.
  12623. For example, a libncurses-dev(el) or similar package." "$LINENO" 5
  12624. fi
  12625. # Must define this when any termcap library is found.
  12626. $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
  12627. ## FIXME This was the cpp logic, but I am not sure it is right.
  12628. ## The above test has not necessarily found libncurses.
  12629. HAVE_LIBNCURSES=yes
  12630. ## Use terminfo instead of termcap?
  12631. ## Note only system files NOT using terminfo are:
  12632. ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
  12633. ## darwin|gnu without ncurses.
  12634. TERMINFO=no
  12635. case "$opsys" in
  12636. ## cygwin: Fewer environment variables to go wrong, more terminal types.
  12637. ## hpux10-20: Use the system provided termcap(3) library.
  12638. ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
  12639. ## is necessary. Otherwise Emacs dumps core when run -nw.
  12640. aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
  12641. ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
  12642. ## The ncurses library has been moved out of the System framework in
  12643. ## Mac OS X 10.2. So if configure detects it, set the command-line
  12644. ## option to use it.
  12645. darwin|gnu*)
  12646. ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
  12647. if test "x$HAVE_LIBNCURSES" = "xyes"; then
  12648. TERMINFO=yes
  12649. LIBS_TERMCAP="-lncurses"
  12650. fi
  12651. ;;
  12652. freebsd)
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
  12654. $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
  12655. if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
  12656. $as_echo_n "(cached) " >&6
  12657. else
  12658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12659. /* end confdefs.h. */
  12660. #include <osreldate.h>
  12661. int
  12662. main ()
  12663. {
  12664. #if __FreeBSD_version < 400000
  12665. fail;
  12666. #endif
  12667. ;
  12668. return 0;
  12669. }
  12670. _ACEOF
  12671. if ac_fn_c_try_link "$LINENO"; then :
  12672. emacs_cv_freebsd_terminfo=yes
  12673. else
  12674. emacs_cv_freebsd_terminfo=no
  12675. fi
  12676. rm -f core conftest.err conftest.$ac_objext \
  12677. conftest$ac_exeext conftest.$ac_ext
  12678. fi
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
  12680. $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
  12681. if test $emacs_cv_freebsd_terminfo = yes; then
  12682. TERMINFO=yes
  12683. LIBS_TERMCAP="-lncurses"
  12684. else
  12685. LIBS_TERMCAP="-ltermcap"
  12686. fi
  12687. ;;
  12688. netbsd)
  12689. if test "x$LIBS_TERMCAP" = "x-lterminfo"; then
  12690. TERMINFO=yes
  12691. else
  12692. LIBS_TERMCAP="-ltermcap"
  12693. fi
  12694. ;;
  12695. esac
  12696. case "$opsys" in
  12697. ## hpux: Make sure we get select from libc rather than from libcurses
  12698. ## because libcurses on HPUX 10.10 has a broken version of select.
  12699. ## We used to use -lc -lcurses, but this may be cleaner.
  12700. hpux*) LIBS_TERMCAP="-ltermcap" ;;
  12701. openbsd) LIBS_TERMCAP="-lncurses" ;;
  12702. ## Must use system termcap, if we use any termcap. It does special things.
  12703. sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
  12704. esac
  12705. TERMCAP_OBJ=tparam.o
  12706. if test $TERMINFO = yes; then
  12707. $as_echo "#define TERMINFO 1" >>confdefs.h
  12708. TERMCAP_OBJ=terminfo.o
  12709. fi
  12710. # Do we have res_init, for detecting changes in /etc/resolv.conf?
  12711. resolv=no
  12712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h. */
  12714. #include <netinet/in.h>
  12715. #include <arpa/nameser.h>
  12716. #include <resolv.h>
  12717. int
  12718. main ()
  12719. {
  12720. return res_init();
  12721. ;
  12722. return 0;
  12723. }
  12724. _ACEOF
  12725. if ac_fn_c_try_link "$LINENO"; then :
  12726. have_res_init=yes
  12727. else
  12728. have_res_init=no
  12729. fi
  12730. rm -f core conftest.err conftest.$ac_objext \
  12731. conftest$ac_exeext conftest.$ac_ext
  12732. if test "$have_res_init" = no; then
  12733. OLIBS="$LIBS"
  12734. LIBS="$LIBS -lresolv"
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
  12736. $as_echo_n "checking for res_init with -lresolv... " >&6; }
  12737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12738. /* end confdefs.h. */
  12739. #include <netinet/in.h>
  12740. #include <arpa/nameser.h>
  12741. #include <resolv.h>
  12742. int
  12743. main ()
  12744. {
  12745. return res_init();
  12746. ;
  12747. return 0;
  12748. }
  12749. _ACEOF
  12750. if ac_fn_c_try_link "$LINENO"; then :
  12751. have_res_init=yes
  12752. else
  12753. have_res_init=no
  12754. fi
  12755. rm -f core conftest.err conftest.$ac_objext \
  12756. conftest$ac_exeext conftest.$ac_ext
  12757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
  12758. $as_echo "$have_res_init" >&6; }
  12759. if test "$have_res_init" = yes ; then
  12760. resolv=yes
  12761. fi
  12762. LIBS="$OLIBS"
  12763. fi
  12764. if test "$have_res_init" = yes; then
  12765. $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
  12766. fi
  12767. # Do we need the Hesiod library to provide the support routines?
  12768. LIBHESIOD=
  12769. if test "$with_hesiod" != no ; then
  12770. # Don't set $LIBS here -- see comments above. FIXME which comments?
  12771. ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
  12772. if test "x$ac_cv_func_res_send" = x""yes; then :
  12773. else
  12774. ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
  12775. if test "x$ac_cv_func___res_send" = x""yes; then :
  12776. else
  12777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
  12778. $as_echo_n "checking for res_send in -lresolv... " >&6; }
  12779. if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
  12780. $as_echo_n "(cached) " >&6
  12781. else
  12782. ac_check_lib_save_LIBS=$LIBS
  12783. LIBS="-lresolv $LIBS"
  12784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12785. /* end confdefs.h. */
  12786. /* Override any GCC internal prototype to avoid an error.
  12787. Use char because int might match the return type of a GCC
  12788. builtin and then its argument prototype would still apply. */
  12789. #ifdef __cplusplus
  12790. extern "C"
  12791. #endif
  12792. char res_send ();
  12793. int
  12794. main ()
  12795. {
  12796. return res_send ();
  12797. ;
  12798. return 0;
  12799. }
  12800. _ACEOF
  12801. if ac_fn_c_try_link "$LINENO"; then :
  12802. ac_cv_lib_resolv_res_send=yes
  12803. else
  12804. ac_cv_lib_resolv_res_send=no
  12805. fi
  12806. rm -f core conftest.err conftest.$ac_objext \
  12807. conftest$ac_exeext conftest.$ac_ext
  12808. LIBS=$ac_check_lib_save_LIBS
  12809. fi
  12810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
  12811. $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
  12812. if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
  12813. resolv=yes
  12814. else
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
  12816. $as_echo_n "checking for __res_send in -lresolv... " >&6; }
  12817. if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
  12818. $as_echo_n "(cached) " >&6
  12819. else
  12820. ac_check_lib_save_LIBS=$LIBS
  12821. LIBS="-lresolv $LIBS"
  12822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12823. /* end confdefs.h. */
  12824. /* Override any GCC internal prototype to avoid an error.
  12825. Use char because int might match the return type of a GCC
  12826. builtin and then its argument prototype would still apply. */
  12827. #ifdef __cplusplus
  12828. extern "C"
  12829. #endif
  12830. char __res_send ();
  12831. int
  12832. main ()
  12833. {
  12834. return __res_send ();
  12835. ;
  12836. return 0;
  12837. }
  12838. _ACEOF
  12839. if ac_fn_c_try_link "$LINENO"; then :
  12840. ac_cv_lib_resolv___res_send=yes
  12841. else
  12842. ac_cv_lib_resolv___res_send=no
  12843. fi
  12844. rm -f core conftest.err conftest.$ac_objext \
  12845. conftest$ac_exeext conftest.$ac_ext
  12846. LIBS=$ac_check_lib_save_LIBS
  12847. fi
  12848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
  12849. $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
  12850. if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
  12851. resolv=yes
  12852. fi
  12853. fi
  12854. fi
  12855. fi
  12856. if test "$resolv" = yes ; then
  12857. RESOLVLIB=-lresolv
  12858. else
  12859. RESOLVLIB=
  12860. fi
  12861. ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
  12862. if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
  12863. else
  12864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
  12865. $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
  12866. if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
  12867. $as_echo_n "(cached) " >&6
  12868. else
  12869. ac_check_lib_save_LIBS=$LIBS
  12870. LIBS="-lhesiod $RESOLVLIB $LIBS"
  12871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12872. /* end confdefs.h. */
  12873. /* Override any GCC internal prototype to avoid an error.
  12874. Use char because int might match the return type of a GCC
  12875. builtin and then its argument prototype would still apply. */
  12876. #ifdef __cplusplus
  12877. extern "C"
  12878. #endif
  12879. char hes_getmailhost ();
  12880. int
  12881. main ()
  12882. {
  12883. return hes_getmailhost ();
  12884. ;
  12885. return 0;
  12886. }
  12887. _ACEOF
  12888. if ac_fn_c_try_link "$LINENO"; then :
  12889. ac_cv_lib_hesiod_hes_getmailhost=yes
  12890. else
  12891. ac_cv_lib_hesiod_hes_getmailhost=no
  12892. fi
  12893. rm -f core conftest.err conftest.$ac_objext \
  12894. conftest$ac_exeext conftest.$ac_ext
  12895. LIBS=$ac_check_lib_save_LIBS
  12896. fi
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
  12898. $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
  12899. if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
  12900. hesiod=yes
  12901. else
  12902. :
  12903. fi
  12904. fi
  12905. if test x"$hesiod" = xyes; then
  12906. $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
  12907. LIBHESIOD=-lhesiod
  12908. fi
  12909. fi
  12910. # Do we need libresolv (due to res_init or Hesiod)?
  12911. if test "$resolv" = yes ; then
  12912. $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
  12913. LIBRESOLV=-lresolv
  12914. else
  12915. LIBRESOLV=
  12916. fi
  12917. # These tell us which Kerberos-related libraries to use.
  12918. COM_ERRLIB=
  12919. CRYPTOLIB=
  12920. KRB5LIB=
  12921. DESLIB=
  12922. KRB4LIB=
  12923. if test "${with_kerberos}" != no; then
  12924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
  12925. $as_echo_n "checking for com_err in -lcom_err... " >&6; }
  12926. if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
  12927. $as_echo_n "(cached) " >&6
  12928. else
  12929. ac_check_lib_save_LIBS=$LIBS
  12930. LIBS="-lcom_err $LIBS"
  12931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12932. /* end confdefs.h. */
  12933. /* Override any GCC internal prototype to avoid an error.
  12934. Use char because int might match the return type of a GCC
  12935. builtin and then its argument prototype would still apply. */
  12936. #ifdef __cplusplus
  12937. extern "C"
  12938. #endif
  12939. char com_err ();
  12940. int
  12941. main ()
  12942. {
  12943. return com_err ();
  12944. ;
  12945. return 0;
  12946. }
  12947. _ACEOF
  12948. if ac_fn_c_try_link "$LINENO"; then :
  12949. ac_cv_lib_com_err_com_err=yes
  12950. else
  12951. ac_cv_lib_com_err_com_err=no
  12952. fi
  12953. rm -f core conftest.err conftest.$ac_objext \
  12954. conftest$ac_exeext conftest.$ac_ext
  12955. LIBS=$ac_check_lib_save_LIBS
  12956. fi
  12957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
  12958. $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
  12959. if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
  12960. have_com_err=yes
  12961. else
  12962. have_com_err=no
  12963. fi
  12964. if test $have_com_err = yes; then
  12965. COM_ERRLIB=-lcom_err
  12966. LIBS="$COM_ERRLIB $LIBS"
  12967. $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
  12968. fi
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
  12970. $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
  12971. if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
  12972. $as_echo_n "(cached) " >&6
  12973. else
  12974. ac_check_lib_save_LIBS=$LIBS
  12975. LIBS="-lcrypto $LIBS"
  12976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12977. /* end confdefs.h. */
  12978. /* Override any GCC internal prototype to avoid an error.
  12979. Use char because int might match the return type of a GCC
  12980. builtin and then its argument prototype would still apply. */
  12981. #ifdef __cplusplus
  12982. extern "C"
  12983. #endif
  12984. char mit_des_cbc_encrypt ();
  12985. int
  12986. main ()
  12987. {
  12988. return mit_des_cbc_encrypt ();
  12989. ;
  12990. return 0;
  12991. }
  12992. _ACEOF
  12993. if ac_fn_c_try_link "$LINENO"; then :
  12994. ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
  12995. else
  12996. ac_cv_lib_crypto_mit_des_cbc_encrypt=no
  12997. fi
  12998. rm -f core conftest.err conftest.$ac_objext \
  12999. conftest$ac_exeext conftest.$ac_ext
  13000. LIBS=$ac_check_lib_save_LIBS
  13001. fi
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
  13003. $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
  13004. if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
  13005. have_crypto=yes
  13006. else
  13007. have_crypto=no
  13008. fi
  13009. if test $have_crypto = yes; then
  13010. CRYPTOLIB=-lcrypto
  13011. LIBS="$CRYPTOLIB $LIBS"
  13012. $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
  13013. fi
  13014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
  13015. $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
  13016. if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
  13017. $as_echo_n "(cached) " >&6
  13018. else
  13019. ac_check_lib_save_LIBS=$LIBS
  13020. LIBS="-lk5crypto $LIBS"
  13021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13022. /* end confdefs.h. */
  13023. /* Override any GCC internal prototype to avoid an error.
  13024. Use char because int might match the return type of a GCC
  13025. builtin and then its argument prototype would still apply. */
  13026. #ifdef __cplusplus
  13027. extern "C"
  13028. #endif
  13029. char mit_des_cbc_encrypt ();
  13030. int
  13031. main ()
  13032. {
  13033. return mit_des_cbc_encrypt ();
  13034. ;
  13035. return 0;
  13036. }
  13037. _ACEOF
  13038. if ac_fn_c_try_link "$LINENO"; then :
  13039. ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
  13040. else
  13041. ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
  13042. fi
  13043. rm -f core conftest.err conftest.$ac_objext \
  13044. conftest$ac_exeext conftest.$ac_ext
  13045. LIBS=$ac_check_lib_save_LIBS
  13046. fi
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
  13048. $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
  13049. if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
  13050. have_k5crypto=yes
  13051. else
  13052. have_k5crypto=no
  13053. fi
  13054. if test $have_k5crypto = yes; then
  13055. CRYPTOLIB=-lk5crypto
  13056. LIBS="$CRYPTOLIB $LIBS"
  13057. $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
  13058. fi
  13059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
  13060. $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
  13061. if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
  13062. $as_echo_n "(cached) " >&6
  13063. else
  13064. ac_check_lib_save_LIBS=$LIBS
  13065. LIBS="-lkrb5 $LIBS"
  13066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13067. /* end confdefs.h. */
  13068. /* Override any GCC internal prototype to avoid an error.
  13069. Use char because int might match the return type of a GCC
  13070. builtin and then its argument prototype would still apply. */
  13071. #ifdef __cplusplus
  13072. extern "C"
  13073. #endif
  13074. char krb5_init_context ();
  13075. int
  13076. main ()
  13077. {
  13078. return krb5_init_context ();
  13079. ;
  13080. return 0;
  13081. }
  13082. _ACEOF
  13083. if ac_fn_c_try_link "$LINENO"; then :
  13084. ac_cv_lib_krb5_krb5_init_context=yes
  13085. else
  13086. ac_cv_lib_krb5_krb5_init_context=no
  13087. fi
  13088. rm -f core conftest.err conftest.$ac_objext \
  13089. conftest$ac_exeext conftest.$ac_ext
  13090. LIBS=$ac_check_lib_save_LIBS
  13091. fi
  13092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
  13093. $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
  13094. if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
  13095. have_krb5=yes
  13096. else
  13097. have_krb5=no
  13098. fi
  13099. if test $have_krb5=yes; then
  13100. KRB5LIB=-lkrb5
  13101. LIBS="$KRB5LIB $LIBS"
  13102. $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
  13103. fi
  13104. if test "${with_kerberos5}" = no; then
  13105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
  13106. $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
  13107. if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
  13108. $as_echo_n "(cached) " >&6
  13109. else
  13110. ac_check_lib_save_LIBS=$LIBS
  13111. LIBS="-ldes425 $LIBS"
  13112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13113. /* end confdefs.h. */
  13114. /* Override any GCC internal prototype to avoid an error.
  13115. Use char because int might match the return type of a GCC
  13116. builtin and then its argument prototype would still apply. */
  13117. #ifdef __cplusplus
  13118. extern "C"
  13119. #endif
  13120. char des_cbc_encrypt ();
  13121. int
  13122. main ()
  13123. {
  13124. return des_cbc_encrypt ();
  13125. ;
  13126. return 0;
  13127. }
  13128. _ACEOF
  13129. if ac_fn_c_try_link "$LINENO"; then :
  13130. ac_cv_lib_des425_des_cbc_encrypt=yes
  13131. else
  13132. ac_cv_lib_des425_des_cbc_encrypt=no
  13133. fi
  13134. rm -f core conftest.err conftest.$ac_objext \
  13135. conftest$ac_exeext conftest.$ac_ext
  13136. LIBS=$ac_check_lib_save_LIBS
  13137. fi
  13138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
  13139. $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
  13140. if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
  13141. have_des425=yes
  13142. else
  13143. have_des425=no
  13144. fi
  13145. if test $have_des425 = yes; then
  13146. DESLIB=-ldes425
  13147. LIBS="$DESLIB $LIBS"
  13148. $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
  13149. else
  13150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
  13151. $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
  13152. if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
  13153. $as_echo_n "(cached) " >&6
  13154. else
  13155. ac_check_lib_save_LIBS=$LIBS
  13156. LIBS="-ldes $LIBS"
  13157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13158. /* end confdefs.h. */
  13159. /* Override any GCC internal prototype to avoid an error.
  13160. Use char because int might match the return type of a GCC
  13161. builtin and then its argument prototype would still apply. */
  13162. #ifdef __cplusplus
  13163. extern "C"
  13164. #endif
  13165. char des_cbc_encrypt ();
  13166. int
  13167. main ()
  13168. {
  13169. return des_cbc_encrypt ();
  13170. ;
  13171. return 0;
  13172. }
  13173. _ACEOF
  13174. if ac_fn_c_try_link "$LINENO"; then :
  13175. ac_cv_lib_des_des_cbc_encrypt=yes
  13176. else
  13177. ac_cv_lib_des_des_cbc_encrypt=no
  13178. fi
  13179. rm -f core conftest.err conftest.$ac_objext \
  13180. conftest$ac_exeext conftest.$ac_ext
  13181. LIBS=$ac_check_lib_save_LIBS
  13182. fi
  13183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
  13184. $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
  13185. if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
  13186. have_des=yes
  13187. else
  13188. have_des=no
  13189. fi
  13190. if test $have_des = yes; then
  13191. DESLIB=-ldes
  13192. LIBS="$DESLIB $LIBS"
  13193. $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
  13194. fi
  13195. fi
  13196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
  13197. $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
  13198. if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
  13199. $as_echo_n "(cached) " >&6
  13200. else
  13201. ac_check_lib_save_LIBS=$LIBS
  13202. LIBS="-lkrb4 $LIBS"
  13203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13204. /* end confdefs.h. */
  13205. /* Override any GCC internal prototype to avoid an error.
  13206. Use char because int might match the return type of a GCC
  13207. builtin and then its argument prototype would still apply. */
  13208. #ifdef __cplusplus
  13209. extern "C"
  13210. #endif
  13211. char krb_get_cred ();
  13212. int
  13213. main ()
  13214. {
  13215. return krb_get_cred ();
  13216. ;
  13217. return 0;
  13218. }
  13219. _ACEOF
  13220. if ac_fn_c_try_link "$LINENO"; then :
  13221. ac_cv_lib_krb4_krb_get_cred=yes
  13222. else
  13223. ac_cv_lib_krb4_krb_get_cred=no
  13224. fi
  13225. rm -f core conftest.err conftest.$ac_objext \
  13226. conftest$ac_exeext conftest.$ac_ext
  13227. LIBS=$ac_check_lib_save_LIBS
  13228. fi
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
  13230. $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
  13231. if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
  13232. have_krb4=yes
  13233. else
  13234. have_krb4=no
  13235. fi
  13236. if test $have_krb4 = yes; then
  13237. KRB4LIB=-lkrb4
  13238. LIBS="$KRB4LIB $LIBS"
  13239. $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
  13240. else
  13241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
  13242. $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
  13243. if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
  13244. $as_echo_n "(cached) " >&6
  13245. else
  13246. ac_check_lib_save_LIBS=$LIBS
  13247. LIBS="-lkrb $LIBS"
  13248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13249. /* end confdefs.h. */
  13250. /* Override any GCC internal prototype to avoid an error.
  13251. Use char because int might match the return type of a GCC
  13252. builtin and then its argument prototype would still apply. */
  13253. #ifdef __cplusplus
  13254. extern "C"
  13255. #endif
  13256. char krb_get_cred ();
  13257. int
  13258. main ()
  13259. {
  13260. return krb_get_cred ();
  13261. ;
  13262. return 0;
  13263. }
  13264. _ACEOF
  13265. if ac_fn_c_try_link "$LINENO"; then :
  13266. ac_cv_lib_krb_krb_get_cred=yes
  13267. else
  13268. ac_cv_lib_krb_krb_get_cred=no
  13269. fi
  13270. rm -f core conftest.err conftest.$ac_objext \
  13271. conftest$ac_exeext conftest.$ac_ext
  13272. LIBS=$ac_check_lib_save_LIBS
  13273. fi
  13274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
  13275. $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
  13276. if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
  13277. have_krb=yes
  13278. else
  13279. have_krb=no
  13280. fi
  13281. if test $have_krb = yes; then
  13282. KRB4LIB=-lkrb
  13283. LIBS="$KRB4LIB $LIBS"
  13284. $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
  13285. fi
  13286. fi
  13287. fi
  13288. if test "${with_kerberos5}" != no; then
  13289. for ac_header in krb5.h
  13290. do :
  13291. ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
  13292. if test "x$ac_cv_header_krb5_h" = x""yes; then :
  13293. cat >>confdefs.h <<_ACEOF
  13294. #define HAVE_KRB5_H 1
  13295. _ACEOF
  13296. ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
  13297. "
  13298. if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
  13299. cat >>confdefs.h <<_ACEOF
  13300. #define HAVE_KRB5_ERROR_TEXT 1
  13301. _ACEOF
  13302. fi
  13303. ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
  13304. "
  13305. if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
  13306. cat >>confdefs.h <<_ACEOF
  13307. #define HAVE_KRB5_ERROR_E_TEXT 1
  13308. _ACEOF
  13309. fi
  13310. fi
  13311. done
  13312. else
  13313. for ac_header in des.h
  13314. do :
  13315. ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
  13316. if test "x$ac_cv_header_des_h" = x""yes; then :
  13317. cat >>confdefs.h <<_ACEOF
  13318. #define HAVE_DES_H 1
  13319. _ACEOF
  13320. else
  13321. for ac_header in kerberosIV/des.h
  13322. do :
  13323. ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
  13324. if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
  13325. cat >>confdefs.h <<_ACEOF
  13326. #define HAVE_KERBEROSIV_DES_H 1
  13327. _ACEOF
  13328. else
  13329. for ac_header in kerberos/des.h
  13330. do :
  13331. ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
  13332. if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
  13333. cat >>confdefs.h <<_ACEOF
  13334. #define HAVE_KERBEROS_DES_H 1
  13335. _ACEOF
  13336. fi
  13337. done
  13338. fi
  13339. done
  13340. fi
  13341. done
  13342. for ac_header in krb.h
  13343. do :
  13344. ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
  13345. if test "x$ac_cv_header_krb_h" = x""yes; then :
  13346. cat >>confdefs.h <<_ACEOF
  13347. #define HAVE_KRB_H 1
  13348. _ACEOF
  13349. else
  13350. for ac_header in kerberosIV/krb.h
  13351. do :
  13352. ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
  13353. if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
  13354. cat >>confdefs.h <<_ACEOF
  13355. #define HAVE_KERBEROSIV_KRB_H 1
  13356. _ACEOF
  13357. else
  13358. for ac_header in kerberos/krb.h
  13359. do :
  13360. ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
  13361. if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
  13362. cat >>confdefs.h <<_ACEOF
  13363. #define HAVE_KERBEROS_KRB_H 1
  13364. _ACEOF
  13365. fi
  13366. done
  13367. fi
  13368. done
  13369. fi
  13370. done
  13371. fi
  13372. for ac_header in com_err.h
  13373. do :
  13374. ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
  13375. if test "x$ac_cv_header_com_err_h" = x""yes; then :
  13376. cat >>confdefs.h <<_ACEOF
  13377. #define HAVE_COM_ERR_H 1
  13378. _ACEOF
  13379. fi
  13380. done
  13381. fi
  13382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
  13383. $as_echo_n "checking whether localtime caches TZ... " >&6; }
  13384. if test "${emacs_cv_localtime_cache+set}" = set; then :
  13385. $as_echo_n "(cached) " >&6
  13386. else
  13387. if test x$ac_cv_func_tzset = xyes; then
  13388. if test "$cross_compiling" = yes; then :
  13389. # If we have tzset, assume the worst when cross-compiling.
  13390. emacs_cv_localtime_cache=yes
  13391. else
  13392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13393. /* end confdefs.h. */
  13394. #include <time.h>
  13395. char TZ_GMT0[] = "TZ=GMT0";
  13396. char TZ_PST8[] = "TZ=PST8";
  13397. main()
  13398. {
  13399. time_t now = time ((time_t *) 0);
  13400. int hour_GMT0, hour_unset;
  13401. if (putenv (TZ_GMT0) != 0)
  13402. exit (1);
  13403. hour_GMT0 = localtime (&now)->tm_hour;
  13404. unsetenv("TZ");
  13405. hour_unset = localtime (&now)->tm_hour;
  13406. if (putenv (TZ_PST8) != 0)
  13407. exit (1);
  13408. if (localtime (&now)->tm_hour == hour_GMT0)
  13409. exit (1);
  13410. unsetenv("TZ");
  13411. if (localtime (&now)->tm_hour != hour_unset)
  13412. exit (1);
  13413. exit (0);
  13414. }
  13415. _ACEOF
  13416. if ac_fn_c_try_run "$LINENO"; then :
  13417. emacs_cv_localtime_cache=no
  13418. else
  13419. emacs_cv_localtime_cache=yes
  13420. fi
  13421. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13422. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13423. fi
  13424. else
  13425. # If we lack tzset, report that localtime does not cache TZ,
  13426. # since we can't invalidate the cache if we don't have tzset.
  13427. emacs_cv_localtime_cache=no
  13428. fi
  13429. fi
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
  13431. $as_echo "$emacs_cv_localtime_cache" >&6; }
  13432. if test $emacs_cv_localtime_cache = yes; then
  13433. $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
  13434. fi
  13435. if test "x$HAVE_TIMEVAL" = xyes; then
  13436. for ac_func in gettimeofday
  13437. do :
  13438. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13439. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13440. cat >>confdefs.h <<_ACEOF
  13441. #define HAVE_GETTIMEOFDAY 1
  13442. _ACEOF
  13443. fi
  13444. done
  13445. if test $ac_cv_func_gettimeofday = yes; then
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
  13447. $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
  13448. if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
  13449. $as_echo_n "(cached) " >&6
  13450. else
  13451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13452. /* end confdefs.h. */
  13453. #ifdef TIME_WITH_SYS_TIME
  13454. #include <sys/time.h>
  13455. #include <time.h>
  13456. #else
  13457. #ifdef HAVE_SYS_TIME_H
  13458. #include <sys/time.h>
  13459. #else
  13460. #include <time.h>
  13461. #endif
  13462. #endif
  13463. int
  13464. main ()
  13465. {
  13466. struct timeval time;
  13467. gettimeofday (&time, 0);
  13468. ;
  13469. return 0;
  13470. }
  13471. _ACEOF
  13472. if ac_fn_c_try_compile "$LINENO"; then :
  13473. emacs_cv_gettimeofday_two_arguments=yes
  13474. else
  13475. emacs_cv_gettimeofday_two_arguments=no
  13476. fi
  13477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13478. fi
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
  13480. $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
  13481. if test $emacs_cv_gettimeofday_two_arguments = no; then
  13482. $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
  13483. fi
  13484. fi
  13485. fi
  13486. ok_so_far=yes
  13487. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  13488. if test "x$ac_cv_func_socket" = x""yes; then :
  13489. else
  13490. ok_so_far=no
  13491. fi
  13492. if test $ok_so_far = yes; then
  13493. ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  13494. if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
  13495. else
  13496. ok_so_far=no
  13497. fi
  13498. fi
  13499. if test $ok_so_far = yes; then
  13500. ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  13501. if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
  13502. else
  13503. ok_so_far=no
  13504. fi
  13505. fi
  13506. if test $ok_so_far = yes; then
  13507. $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
  13508. fi
  13509. if test -f /usr/lpp/X11/bin/smt.exp; then
  13510. $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
  13511. fi
  13512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
  13513. $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
  13514. if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
  13515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13516. $as_echo "yes" >&6; }
  13517. $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
  13518. else
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13520. $as_echo "no" >&6; }
  13521. fi
  13522. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  13523. if test "x$ac_cv_type_pid_t" = x""yes; then :
  13524. else
  13525. cat >>confdefs.h <<_ACEOF
  13526. #define pid_t int
  13527. _ACEOF
  13528. fi
  13529. for ac_header in vfork.h
  13530. do :
  13531. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  13532. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  13533. cat >>confdefs.h <<_ACEOF
  13534. #define HAVE_VFORK_H 1
  13535. _ACEOF
  13536. fi
  13537. done
  13538. for ac_func in fork vfork
  13539. do :
  13540. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13541. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13542. eval as_val=\$$as_ac_var
  13543. if test "x$as_val" = x""yes; then :
  13544. cat >>confdefs.h <<_ACEOF
  13545. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13546. _ACEOF
  13547. fi
  13548. done
  13549. if test "x$ac_cv_func_fork" = xyes; then
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  13551. $as_echo_n "checking for working fork... " >&6; }
  13552. if test "${ac_cv_func_fork_works+set}" = set; then :
  13553. $as_echo_n "(cached) " >&6
  13554. else
  13555. if test "$cross_compiling" = yes; then :
  13556. ac_cv_func_fork_works=cross
  13557. else
  13558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13559. /* end confdefs.h. */
  13560. $ac_includes_default
  13561. int
  13562. main ()
  13563. {
  13564. /* By Ruediger Kuhlmann. */
  13565. return fork () < 0;
  13566. ;
  13567. return 0;
  13568. }
  13569. _ACEOF
  13570. if ac_fn_c_try_run "$LINENO"; then :
  13571. ac_cv_func_fork_works=yes
  13572. else
  13573. ac_cv_func_fork_works=no
  13574. fi
  13575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13577. fi
  13578. fi
  13579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  13580. $as_echo "$ac_cv_func_fork_works" >&6; }
  13581. else
  13582. ac_cv_func_fork_works=$ac_cv_func_fork
  13583. fi
  13584. if test "x$ac_cv_func_fork_works" = xcross; then
  13585. case $host in
  13586. *-*-amigaos* | *-*-msdosdjgpp*)
  13587. # Override, as these systems have only a dummy fork() stub
  13588. ac_cv_func_fork_works=no
  13589. ;;
  13590. *)
  13591. ac_cv_func_fork_works=yes
  13592. ;;
  13593. esac
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  13595. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  13596. fi
  13597. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13598. if test "x$ac_cv_func_vfork" = xyes; then
  13599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  13600. $as_echo_n "checking for working vfork... " >&6; }
  13601. if test "${ac_cv_func_vfork_works+set}" = set; then :
  13602. $as_echo_n "(cached) " >&6
  13603. else
  13604. if test "$cross_compiling" = yes; then :
  13605. ac_cv_func_vfork_works=cross
  13606. else
  13607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13608. /* end confdefs.h. */
  13609. /* Thanks to Paul Eggert for this test. */
  13610. $ac_includes_default
  13611. #include <sys/wait.h>
  13612. #ifdef HAVE_VFORK_H
  13613. # include <vfork.h>
  13614. #endif
  13615. /* On some sparc systems, changes by the child to local and incoming
  13616. argument registers are propagated back to the parent. The compiler
  13617. is told about this with #include <vfork.h>, but some compilers
  13618. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  13619. static variable whose address is put into a register that is
  13620. clobbered by the vfork. */
  13621. static void
  13622. #ifdef __cplusplus
  13623. sparc_address_test (int arg)
  13624. # else
  13625. sparc_address_test (arg) int arg;
  13626. #endif
  13627. {
  13628. static pid_t child;
  13629. if (!child) {
  13630. child = vfork ();
  13631. if (child < 0) {
  13632. perror ("vfork");
  13633. _exit(2);
  13634. }
  13635. if (!child) {
  13636. arg = getpid();
  13637. write(-1, "", 0);
  13638. _exit (arg);
  13639. }
  13640. }
  13641. }
  13642. int
  13643. main ()
  13644. {
  13645. pid_t parent = getpid ();
  13646. pid_t child;
  13647. sparc_address_test (0);
  13648. child = vfork ();
  13649. if (child == 0) {
  13650. /* Here is another test for sparc vfork register problems. This
  13651. test uses lots of local variables, at least as many local
  13652. variables as main has allocated so far including compiler
  13653. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  13654. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  13655. reuse the register of parent for one of the local variables,
  13656. since it will think that parent can't possibly be used any more
  13657. in this routine. Assigning to the local variable will thus
  13658. munge parent in the parent process. */
  13659. pid_t
  13660. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  13661. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  13662. /* Convince the compiler that p..p7 are live; otherwise, it might
  13663. use the same hardware register for all 8 local variables. */
  13664. if (p != p1 || p != p2 || p != p3 || p != p4
  13665. || p != p5 || p != p6 || p != p7)
  13666. _exit(1);
  13667. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  13668. from child file descriptors. If the child closes a descriptor
  13669. before it execs or exits, this munges the parent's descriptor
  13670. as well. Test for this by closing stdout in the child. */
  13671. _exit(close(fileno(stdout)) != 0);
  13672. } else {
  13673. int status;
  13674. struct stat st;
  13675. while (wait(&status) != child)
  13676. ;
  13677. return (
  13678. /* Was there some problem with vforking? */
  13679. child < 0
  13680. /* Did the child fail? (This shouldn't happen.) */
  13681. || status
  13682. /* Did the vfork/compiler bug occur? */
  13683. || parent != getpid()
  13684. /* Did the file descriptor bug occur? */
  13685. || fstat(fileno(stdout), &st) != 0
  13686. );
  13687. }
  13688. }
  13689. _ACEOF
  13690. if ac_fn_c_try_run "$LINENO"; then :
  13691. ac_cv_func_vfork_works=yes
  13692. else
  13693. ac_cv_func_vfork_works=no
  13694. fi
  13695. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13696. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13697. fi
  13698. fi
  13699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  13700. $as_echo "$ac_cv_func_vfork_works" >&6; }
  13701. fi;
  13702. if test "x$ac_cv_func_fork_works" = xcross; then
  13703. ac_cv_func_vfork_works=$ac_cv_func_vfork
  13704. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  13705. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  13706. fi
  13707. if test "x$ac_cv_func_vfork_works" = xyes; then
  13708. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  13709. else
  13710. $as_echo "#define vfork fork" >>confdefs.h
  13711. fi
  13712. if test "x$ac_cv_func_fork_works" = xyes; then
  13713. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  13714. fi
  13715. for ac_func in snprintf
  13716. do :
  13717. ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
  13718. if test "x$ac_cv_func_snprintf" = x""yes; then :
  13719. cat >>confdefs.h <<_ACEOF
  13720. #define HAVE_SNPRINTF 1
  13721. _ACEOF
  13722. fi
  13723. done
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  13725. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  13726. if test "${emacs_cv_langinfo_codeset+set}" = set; then :
  13727. $as_echo_n "(cached) " >&6
  13728. else
  13729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13730. /* end confdefs.h. */
  13731. #include <langinfo.h>
  13732. int
  13733. main ()
  13734. {
  13735. char* cs = nl_langinfo(CODESET);
  13736. ;
  13737. return 0;
  13738. }
  13739. _ACEOF
  13740. if ac_fn_c_try_link "$LINENO"; then :
  13741. emacs_cv_langinfo_codeset=yes
  13742. else
  13743. emacs_cv_langinfo_codeset=no
  13744. fi
  13745. rm -f core conftest.err conftest.$ac_objext \
  13746. conftest$ac_exeext conftest.$ac_ext
  13747. fi
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
  13749. $as_echo "$emacs_cv_langinfo_codeset" >&6; }
  13750. if test $emacs_cv_langinfo_codeset = yes; then
  13751. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  13752. fi
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  13754. $as_echo_n "checking for mbstate_t... " >&6; }
  13755. if test "${ac_cv_type_mbstate_t+set}" = set; then :
  13756. $as_echo_n "(cached) " >&6
  13757. else
  13758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13759. /* end confdefs.h. */
  13760. $ac_includes_default
  13761. # include <wchar.h>
  13762. int
  13763. main ()
  13764. {
  13765. mbstate_t x; return sizeof x;
  13766. ;
  13767. return 0;
  13768. }
  13769. _ACEOF
  13770. if ac_fn_c_try_compile "$LINENO"; then :
  13771. ac_cv_type_mbstate_t=yes
  13772. else
  13773. ac_cv_type_mbstate_t=no
  13774. fi
  13775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13776. fi
  13777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  13778. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  13779. if test $ac_cv_type_mbstate_t = yes; then
  13780. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  13781. else
  13782. $as_echo "#define mbstate_t int" >>confdefs.h
  13783. fi
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
  13785. $as_echo_n "checking for C restricted array declarations... " >&6; }
  13786. if test "${emacs_cv_c_restrict_arr+set}" = set; then :
  13787. $as_echo_n "(cached) " >&6
  13788. else
  13789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13790. /* end confdefs.h. */
  13791. void fred (int x[__restrict]);
  13792. int
  13793. main ()
  13794. {
  13795. ;
  13796. return 0;
  13797. }
  13798. _ACEOF
  13799. if ac_fn_c_try_compile "$LINENO"; then :
  13800. emacs_cv_c_restrict_arr=yes
  13801. else
  13802. emacs_cv_c_restrict_arr=no
  13803. fi
  13804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13805. fi
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
  13807. $as_echo "$emacs_cv_c_restrict_arr" >&6; }
  13808. if test "$emacs_cv_c_restrict_arr" = yes; then
  13809. $as_echo "#define __restrict_arr __restrict" >>confdefs.h
  13810. fi
  13811. # Set up the CFLAGS for real compilation, so we can substitute it.
  13812. CFLAGS="$REAL_CFLAGS"
  13813. CPPFLAGS="$REAL_CPPFLAGS"
  13814. ## Hack to detect a buggy GCC version.
  13815. if test "x$GCC" = xyes \
  13816. && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
  13817. && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
  13818. && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
  13819. as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
  13820. fi
  13821. version=$PACKAGE_VERSION
  13822. ### Specify what sort of things we'll be editing into Makefile and config.h.
  13823. ### Use configuration here uncanonicalized to avoid exceeding size limits.
  13824. ## Unused?
  13825. ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
  13826. ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
  13827. ## end of LIBX_BASE, but nothing ever set it.
  13828. ## Used in lwlib/Makefile.in.
  13829. if test -n "${machfile}"; then
  13830. M_FILE="\$(srcdir)/${machfile}"
  13831. else
  13832. M_FILE=
  13833. fi
  13834. S_FILE="\$(srcdir)/${opsysfile}"
  13835. cat >>confdefs.h <<_ACEOF
  13836. #define EMACS_CONFIGURATION "${canonical}"
  13837. _ACEOF
  13838. cat >>confdefs.h <<_ACEOF
  13839. #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
  13840. _ACEOF
  13841. if test -n "$machfile"; then
  13842. cat >>confdefs.h <<_ACEOF
  13843. #define config_machfile "${machfile}"
  13844. _ACEOF
  13845. fi
  13846. cat >>confdefs.h <<_ACEOF
  13847. #define config_opsysfile "${opsysfile}"
  13848. _ACEOF
  13849. XMENU_OBJ=
  13850. XOBJ=
  13851. FONT_OBJ=
  13852. if test "${HAVE_X_WINDOWS}" = "yes" ; then
  13853. $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
  13854. XMENU_OBJ=xmenu.o
  13855. XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
  13856. FONT_OBJ=xfont.o
  13857. if test "$HAVE_XFT" = "yes"; then
  13858. FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
  13859. elif test "$HAVE_FREETYPE" = "yes"; then
  13860. FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
  13861. fi
  13862. fi
  13863. WIDGET_OBJ=
  13864. MOTIF_LIBW=
  13865. if test "${USE_X_TOOLKIT}" != "none" ; then
  13866. WIDGET_OBJ=widget.o
  13867. $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
  13868. if test "${USE_X_TOOLKIT}" = "LUCID"; then
  13869. $as_echo "#define USE_LUCID 1" >>confdefs.h
  13870. elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
  13871. $as_echo "#define USE_MOTIF 1" >>confdefs.h
  13872. MOTIF_LIBW=-lXm
  13873. case "$opsys" in
  13874. gnu-linux)
  13875. ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
  13876. MOTIF_LIBW="$MOTIF_LIBW -lXpm"
  13877. ;;
  13878. unixware)
  13879. ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
  13880. ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
  13881. MOTIF_LIBW="MOTIF_LIBW -lXimp"
  13882. ;;
  13883. aix4-2)
  13884. ## olson@mcs.anl.gov says -li18n is needed by -lXm.
  13885. MOTIF_LIBW="$MOTIF_LIBW -li18n"
  13886. ;;
  13887. esac
  13888. MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
  13889. fi
  13890. fi
  13891. TOOLKIT_LIBW=
  13892. case "$USE_X_TOOLKIT" in
  13893. MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
  13894. LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
  13895. none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
  13896. esac
  13897. if test "$USE_X_TOOLKIT" = "none"; then
  13898. LIBXT_OTHER="\$(LIBXSM)"
  13899. OLDXMENU_TARGET="really-oldXMenu"
  13900. else
  13901. LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
  13902. OLDXMENU_TARGET="really-lwlib"
  13903. fi
  13904. ## The X Menu stuff is present in the X10 distribution, but missing
  13905. ## from X11. If we have X10, just use the installed library;
  13906. ## otherwise, use our own copy.
  13907. if test "${HAVE_X11}" = "yes" ; then
  13908. $as_echo "#define HAVE_X11 1" >>confdefs.h
  13909. if test "$USE_X_TOOLKIT" = "none"; then
  13910. OLDXMENU="\${oldXMenudir}/libXMenu11.a"
  13911. else
  13912. OLDXMENU="\${lwlibdir}/liblw.a"
  13913. fi
  13914. LIBXMENU="\$(OLDXMENU)"
  13915. LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
  13916. OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
  13917. else
  13918. ## For a syntactically valid Makefile; not actually used for anything.
  13919. ## See comments in src/Makefile.in.
  13920. OLDXMENU=nothing
  13921. ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
  13922. if test "${HAVE_X_WINDOWS}" = "yes"; then
  13923. LIBXMENU="-lXMenu"
  13924. else
  13925. LIBXMENU=
  13926. fi
  13927. LIBX_OTHER=
  13928. OLDXMENU_DEPS=
  13929. fi
  13930. if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
  13931. OLDXMENU_TARGET=
  13932. OLDXMENU=nothing
  13933. LIBXMENU=
  13934. OLDXMENU_DEPS=
  13935. fi
  13936. if test "${HAVE_MENUS}" = "yes" ; then
  13937. $as_echo "#define HAVE_MENUS 1" >>confdefs.h
  13938. fi
  13939. if test "${GNU_MALLOC}" = "yes" ; then
  13940. $as_echo "#define GNU_MALLOC 1" >>confdefs.h
  13941. fi
  13942. RALLOC_OBJ=
  13943. if test "${REL_ALLOC}" = "yes" ; then
  13944. $as_echo "#define REL_ALLOC 1" >>confdefs.h
  13945. test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
  13946. fi
  13947. if test "$opsys" = "cygwin"; then
  13948. CYGWIN_OBJ="sheap.o"
  13949. ## Cygwin differs because of its unexec().
  13950. PRE_ALLOC_OBJ=
  13951. POST_ALLOC_OBJ=lastfile.o
  13952. else
  13953. CYGWIN_OBJ=
  13954. PRE_ALLOC_OBJ=lastfile.o
  13955. POST_ALLOC_OBJ=
  13956. fi
  13957. # Configure gnulib here, now that we know LIBS.
  13958. LIBC_FATAL_STDERR_=1
  13959. export LIBC_FATAL_STDERR_
  13960. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13961. # for constant arguments. Useless!
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13963. $as_echo_n "checking for working alloca.h... " >&6; }
  13964. if test "${ac_cv_working_alloca_h+set}" = set; then :
  13965. $as_echo_n "(cached) " >&6
  13966. else
  13967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13968. /* end confdefs.h. */
  13969. #include <alloca.h>
  13970. int
  13971. main ()
  13972. {
  13973. char *p = (char *) alloca (2 * sizeof (int));
  13974. if (p) return 0;
  13975. ;
  13976. return 0;
  13977. }
  13978. _ACEOF
  13979. if ac_fn_c_try_link "$LINENO"; then :
  13980. ac_cv_working_alloca_h=yes
  13981. else
  13982. ac_cv_working_alloca_h=no
  13983. fi
  13984. rm -f core conftest.err conftest.$ac_objext \
  13985. conftest$ac_exeext conftest.$ac_ext
  13986. fi
  13987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13988. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13989. if test $ac_cv_working_alloca_h = yes; then
  13990. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13991. fi
  13992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13993. $as_echo_n "checking for alloca... " >&6; }
  13994. if test "${ac_cv_func_alloca_works+set}" = set; then :
  13995. $as_echo_n "(cached) " >&6
  13996. else
  13997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13998. /* end confdefs.h. */
  13999. #ifdef __GNUC__
  14000. # define alloca __builtin_alloca
  14001. #else
  14002. # ifdef _MSC_VER
  14003. # include <malloc.h>
  14004. # define alloca _alloca
  14005. # else
  14006. # ifdef HAVE_ALLOCA_H
  14007. # include <alloca.h>
  14008. # else
  14009. # ifdef _AIX
  14010. #pragma alloca
  14011. # else
  14012. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14013. char *alloca ();
  14014. # endif
  14015. # endif
  14016. # endif
  14017. # endif
  14018. #endif
  14019. int
  14020. main ()
  14021. {
  14022. char *p = (char *) alloca (1);
  14023. if (p) return 0;
  14024. ;
  14025. return 0;
  14026. }
  14027. _ACEOF
  14028. if ac_fn_c_try_link "$LINENO"; then :
  14029. ac_cv_func_alloca_works=yes
  14030. else
  14031. ac_cv_func_alloca_works=no
  14032. fi
  14033. rm -f core conftest.err conftest.$ac_objext \
  14034. conftest$ac_exeext conftest.$ac_ext
  14035. fi
  14036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14037. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14038. if test $ac_cv_func_alloca_works = yes; then
  14039. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14040. else
  14041. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14042. # that cause trouble. Some versions do not even contain alloca or
  14043. # contain a buggy version. If you still want to use their alloca,
  14044. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14045. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14046. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14048. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14049. if test "${ac_cv_os_cray+set}" = set; then :
  14050. $as_echo_n "(cached) " >&6
  14051. else
  14052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14053. /* end confdefs.h. */
  14054. #if defined CRAY && ! defined CRAY2
  14055. webecray
  14056. #else
  14057. wenotbecray
  14058. #endif
  14059. _ACEOF
  14060. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14061. $EGREP "webecray" >/dev/null 2>&1; then :
  14062. ac_cv_os_cray=yes
  14063. else
  14064. ac_cv_os_cray=no
  14065. fi
  14066. rm -f conftest*
  14067. fi
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14069. $as_echo "$ac_cv_os_cray" >&6; }
  14070. if test $ac_cv_os_cray = yes; then
  14071. for ac_func in _getb67 GETB67 getb67; do
  14072. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14073. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14074. eval as_val=\$$as_ac_var
  14075. if test "x$as_val" = x""yes; then :
  14076. cat >>confdefs.h <<_ACEOF
  14077. #define CRAY_STACKSEG_END $ac_func
  14078. _ACEOF
  14079. break
  14080. fi
  14081. done
  14082. fi
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14084. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14085. if test "${ac_cv_c_stack_direction+set}" = set; then :
  14086. $as_echo_n "(cached) " >&6
  14087. else
  14088. if test "$cross_compiling" = yes; then :
  14089. ac_cv_c_stack_direction=0
  14090. else
  14091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14092. /* end confdefs.h. */
  14093. $ac_includes_default
  14094. int
  14095. find_stack_direction (int *addr, int depth)
  14096. {
  14097. int dir, dummy = 0;
  14098. if (! addr)
  14099. addr = &dummy;
  14100. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14101. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14102. return dir + dummy;
  14103. }
  14104. int
  14105. main (int argc, char **argv)
  14106. {
  14107. return find_stack_direction (0, argc + !argv + 20) < 0;
  14108. }
  14109. _ACEOF
  14110. if ac_fn_c_try_run "$LINENO"; then :
  14111. ac_cv_c_stack_direction=1
  14112. else
  14113. ac_cv_c_stack_direction=-1
  14114. fi
  14115. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14116. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14117. fi
  14118. fi
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14120. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14121. cat >>confdefs.h <<_ACEOF
  14122. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14123. _ACEOF
  14124. fi
  14125. for ac_func in $ac_func_list
  14126. do :
  14127. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14128. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14129. eval as_val=\$$as_ac_var
  14130. if test "x$as_val" = x""yes; then :
  14131. cat >>confdefs.h <<_ACEOF
  14132. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14133. _ACEOF
  14134. fi
  14135. done
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  14137. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  14138. if test "${ac_cv_c_bigendian+set}" = set; then :
  14139. $as_echo_n "(cached) " >&6
  14140. else
  14141. ac_cv_c_bigendian=unknown
  14142. # See if we're dealing with a universal compiler.
  14143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14144. /* end confdefs.h. */
  14145. #ifndef __APPLE_CC__
  14146. not a universal capable compiler
  14147. #endif
  14148. typedef int dummy;
  14149. _ACEOF
  14150. if ac_fn_c_try_compile "$LINENO"; then :
  14151. # Check for potential -arch flags. It is not universal unless
  14152. # there are at least two -arch flags with different values.
  14153. ac_arch=
  14154. ac_prev=
  14155. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  14156. if test -n "$ac_prev"; then
  14157. case $ac_word in
  14158. i?86 | x86_64 | ppc | ppc64)
  14159. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  14160. ac_arch=$ac_word
  14161. else
  14162. ac_cv_c_bigendian=universal
  14163. break
  14164. fi
  14165. ;;
  14166. esac
  14167. ac_prev=
  14168. elif test "x$ac_word" = "x-arch"; then
  14169. ac_prev=arch
  14170. fi
  14171. done
  14172. fi
  14173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14174. if test $ac_cv_c_bigendian = unknown; then
  14175. # See if sys/param.h defines the BYTE_ORDER macro.
  14176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14177. /* end confdefs.h. */
  14178. #include <sys/types.h>
  14179. #include <sys/param.h>
  14180. int
  14181. main ()
  14182. {
  14183. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  14184. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  14185. && LITTLE_ENDIAN)
  14186. bogus endian macros
  14187. #endif
  14188. ;
  14189. return 0;
  14190. }
  14191. _ACEOF
  14192. if ac_fn_c_try_compile "$LINENO"; then :
  14193. # It does; now see whether it defined to BIG_ENDIAN or not.
  14194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14195. /* end confdefs.h. */
  14196. #include <sys/types.h>
  14197. #include <sys/param.h>
  14198. int
  14199. main ()
  14200. {
  14201. #if BYTE_ORDER != BIG_ENDIAN
  14202. not big endian
  14203. #endif
  14204. ;
  14205. return 0;
  14206. }
  14207. _ACEOF
  14208. if ac_fn_c_try_compile "$LINENO"; then :
  14209. ac_cv_c_bigendian=yes
  14210. else
  14211. ac_cv_c_bigendian=no
  14212. fi
  14213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14214. fi
  14215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14216. fi
  14217. if test $ac_cv_c_bigendian = unknown; then
  14218. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  14219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14220. /* end confdefs.h. */
  14221. #include <limits.h>
  14222. int
  14223. main ()
  14224. {
  14225. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  14226. bogus endian macros
  14227. #endif
  14228. ;
  14229. return 0;
  14230. }
  14231. _ACEOF
  14232. if ac_fn_c_try_compile "$LINENO"; then :
  14233. # It does; now see whether it defined to _BIG_ENDIAN or not.
  14234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14235. /* end confdefs.h. */
  14236. #include <limits.h>
  14237. int
  14238. main ()
  14239. {
  14240. #ifndef _BIG_ENDIAN
  14241. not big endian
  14242. #endif
  14243. ;
  14244. return 0;
  14245. }
  14246. _ACEOF
  14247. if ac_fn_c_try_compile "$LINENO"; then :
  14248. ac_cv_c_bigendian=yes
  14249. else
  14250. ac_cv_c_bigendian=no
  14251. fi
  14252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14253. fi
  14254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14255. fi
  14256. if test $ac_cv_c_bigendian = unknown; then
  14257. # Compile a test program.
  14258. if test "$cross_compiling" = yes; then :
  14259. # Try to guess by grepping values from an object file.
  14260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14261. /* end confdefs.h. */
  14262. short int ascii_mm[] =
  14263. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  14264. short int ascii_ii[] =
  14265. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  14266. int use_ascii (int i) {
  14267. return ascii_mm[i] + ascii_ii[i];
  14268. }
  14269. short int ebcdic_ii[] =
  14270. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  14271. short int ebcdic_mm[] =
  14272. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  14273. int use_ebcdic (int i) {
  14274. return ebcdic_mm[i] + ebcdic_ii[i];
  14275. }
  14276. extern int foo;
  14277. int
  14278. main ()
  14279. {
  14280. return use_ascii (foo) == use_ebcdic (foo);
  14281. ;
  14282. return 0;
  14283. }
  14284. _ACEOF
  14285. if ac_fn_c_try_compile "$LINENO"; then :
  14286. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  14287. ac_cv_c_bigendian=yes
  14288. fi
  14289. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  14290. if test "$ac_cv_c_bigendian" = unknown; then
  14291. ac_cv_c_bigendian=no
  14292. else
  14293. # finding both strings is unlikely to happen, but who knows?
  14294. ac_cv_c_bigendian=unknown
  14295. fi
  14296. fi
  14297. fi
  14298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14299. else
  14300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14301. /* end confdefs.h. */
  14302. $ac_includes_default
  14303. int
  14304. main ()
  14305. {
  14306. /* Are we little or big endian? From Harbison&Steele. */
  14307. union
  14308. {
  14309. long int l;
  14310. char c[sizeof (long int)];
  14311. } u;
  14312. u.l = 1;
  14313. return u.c[sizeof (long int) - 1] == 1;
  14314. ;
  14315. return 0;
  14316. }
  14317. _ACEOF
  14318. if ac_fn_c_try_run "$LINENO"; then :
  14319. ac_cv_c_bigendian=no
  14320. else
  14321. ac_cv_c_bigendian=yes
  14322. fi
  14323. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14324. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14325. fi
  14326. fi
  14327. fi
  14328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14329. $as_echo "$ac_cv_c_bigendian" >&6; }
  14330. case $ac_cv_c_bigendian in #(
  14331. yes)
  14332. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  14333. ;; #(
  14334. no)
  14335. ;; #(
  14336. universal)
  14337. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  14338. ;; #(
  14339. *)
  14340. as_fn_error "unknown endianness
  14341. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  14342. esac
  14343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14344. $as_echo_n "checking for inline... " >&6; }
  14345. if test "${ac_cv_c_inline+set}" = set; then :
  14346. $as_echo_n "(cached) " >&6
  14347. else
  14348. ac_cv_c_inline=no
  14349. for ac_kw in inline __inline__ __inline; do
  14350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14351. /* end confdefs.h. */
  14352. #ifndef __cplusplus
  14353. typedef int foo_t;
  14354. static $ac_kw foo_t static_foo () {return 0; }
  14355. $ac_kw foo_t foo () {return 0; }
  14356. #endif
  14357. _ACEOF
  14358. if ac_fn_c_try_compile "$LINENO"; then :
  14359. ac_cv_c_inline=$ac_kw
  14360. fi
  14361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14362. test "$ac_cv_c_inline" != no && break
  14363. done
  14364. fi
  14365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14366. $as_echo "$ac_cv_c_inline" >&6; }
  14367. case $ac_cv_c_inline in
  14368. inline | yes) ;;
  14369. *)
  14370. case $ac_cv_c_inline in
  14371. no) ac_val=;;
  14372. *) ac_val=$ac_cv_c_inline;;
  14373. esac
  14374. cat >>confdefs.h <<_ACEOF
  14375. #ifndef __cplusplus
  14376. #define inline $ac_val
  14377. #endif
  14378. _ACEOF
  14379. ;;
  14380. esac
  14381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
  14382. $as_echo_n "checking whether strtold conforms to C99... " >&6; }
  14383. if test "${gl_cv_func_c99_strtold+set}" = set; then :
  14384. $as_echo_n "(cached) " >&6
  14385. else
  14386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14387. /* end confdefs.h. */
  14388. /* On HP-UX before 11.23, strtold returns a struct instead of
  14389. long double. Reject implementations like that, by requiring
  14390. compatibility with the C99 prototype. */
  14391. #include <stdlib.h>
  14392. static long double (*p) (char const *, char **) = strtold;
  14393. static long double
  14394. test (char const *nptr, char **endptr)
  14395. {
  14396. long double r;
  14397. r = strtold (nptr, endptr);
  14398. return r;
  14399. }
  14400. int
  14401. main ()
  14402. {
  14403. return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
  14404. ;
  14405. return 0;
  14406. }
  14407. _ACEOF
  14408. if ac_fn_c_try_link "$LINENO"; then :
  14409. gl_cv_func_c99_strtold=yes
  14410. else
  14411. gl_cv_func_c99_strtold=no
  14412. fi
  14413. rm -f core conftest.err conftest.$ac_objext \
  14414. conftest$ac_exeext conftest.$ac_ext
  14415. fi
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
  14417. $as_echo "$gl_cv_func_c99_strtold" >&6; }
  14418. if test $gl_cv_func_c99_strtold = yes; then
  14419. $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
  14420. fi
  14421. GNULIB_CHDIR=0;
  14422. GNULIB_CHOWN=0;
  14423. GNULIB_CLOSE=0;
  14424. GNULIB_DUP=0;
  14425. GNULIB_DUP2=0;
  14426. GNULIB_DUP3=0;
  14427. GNULIB_ENVIRON=0;
  14428. GNULIB_EUIDACCESS=0;
  14429. GNULIB_FACCESSAT=0;
  14430. GNULIB_FCHDIR=0;
  14431. GNULIB_FCHOWNAT=0;
  14432. GNULIB_FDATASYNC=0;
  14433. GNULIB_FSYNC=0;
  14434. GNULIB_FTRUNCATE=0;
  14435. GNULIB_GETCWD=0;
  14436. GNULIB_GETDOMAINNAME=0;
  14437. GNULIB_GETDTABLESIZE=0;
  14438. GNULIB_GETGROUPS=0;
  14439. GNULIB_GETHOSTNAME=0;
  14440. GNULIB_GETLOGIN=0;
  14441. GNULIB_GETLOGIN_R=0;
  14442. GNULIB_GETPAGESIZE=0;
  14443. GNULIB_GETUSERSHELL=0;
  14444. GNULIB_GROUP_MEMBER=0;
  14445. GNULIB_LCHOWN=0;
  14446. GNULIB_LINK=0;
  14447. GNULIB_LINKAT=0;
  14448. GNULIB_LSEEK=0;
  14449. GNULIB_PIPE=0;
  14450. GNULIB_PIPE2=0;
  14451. GNULIB_PREAD=0;
  14452. GNULIB_PWRITE=0;
  14453. GNULIB_READ=0;
  14454. GNULIB_READLINK=0;
  14455. GNULIB_READLINKAT=0;
  14456. GNULIB_RMDIR=0;
  14457. GNULIB_SLEEP=0;
  14458. GNULIB_SYMLINK=0;
  14459. GNULIB_SYMLINKAT=0;
  14460. GNULIB_TTYNAME_R=0;
  14461. GNULIB_UNISTD_H_GETOPT=0;
  14462. GNULIB_UNISTD_H_NONBLOCKING=0;
  14463. GNULIB_UNISTD_H_SIGPIPE=0;
  14464. GNULIB_UNLINK=0;
  14465. GNULIB_UNLINKAT=0;
  14466. GNULIB_USLEEP=0;
  14467. GNULIB_WRITE=0;
  14468. HAVE_CHOWN=1;
  14469. HAVE_DUP2=1;
  14470. HAVE_DUP3=1;
  14471. HAVE_EUIDACCESS=1;
  14472. HAVE_FACCESSAT=1;
  14473. HAVE_FCHDIR=1;
  14474. HAVE_FCHOWNAT=1;
  14475. HAVE_FDATASYNC=1;
  14476. HAVE_FSYNC=1;
  14477. HAVE_FTRUNCATE=1;
  14478. HAVE_GETDTABLESIZE=1;
  14479. HAVE_GETGROUPS=1;
  14480. HAVE_GETHOSTNAME=1;
  14481. HAVE_GETLOGIN=1;
  14482. HAVE_GETPAGESIZE=1;
  14483. HAVE_GROUP_MEMBER=1;
  14484. HAVE_LCHOWN=1;
  14485. HAVE_LINK=1;
  14486. HAVE_LINKAT=1;
  14487. HAVE_PIPE=1;
  14488. HAVE_PIPE2=1;
  14489. HAVE_PREAD=1;
  14490. HAVE_PWRITE=1;
  14491. HAVE_READLINK=1;
  14492. HAVE_READLINKAT=1;
  14493. HAVE_SLEEP=1;
  14494. HAVE_SYMLINK=1;
  14495. HAVE_SYMLINKAT=1;
  14496. HAVE_UNLINKAT=1;
  14497. HAVE_USLEEP=1;
  14498. HAVE_DECL_ENVIRON=1;
  14499. HAVE_DECL_FCHDIR=1;
  14500. HAVE_DECL_FDATASYNC=1;
  14501. HAVE_DECL_GETDOMAINNAME=1;
  14502. HAVE_DECL_GETLOGIN_R=1;
  14503. HAVE_DECL_GETPAGESIZE=1;
  14504. HAVE_DECL_GETUSERSHELL=1;
  14505. HAVE_DECL_TTYNAME_R=1;
  14506. HAVE_OS_H=0;
  14507. HAVE_SYS_PARAM_H=0;
  14508. REPLACE_CHOWN=0;
  14509. REPLACE_CLOSE=0;
  14510. REPLACE_DUP=0;
  14511. REPLACE_DUP2=0;
  14512. REPLACE_FCHOWNAT=0;
  14513. REPLACE_GETCWD=0;
  14514. REPLACE_GETDOMAINNAME=0;
  14515. REPLACE_GETLOGIN_R=0;
  14516. REPLACE_GETGROUPS=0;
  14517. REPLACE_GETPAGESIZE=0;
  14518. REPLACE_LCHOWN=0;
  14519. REPLACE_LINK=0;
  14520. REPLACE_LINKAT=0;
  14521. REPLACE_LSEEK=0;
  14522. REPLACE_PREAD=0;
  14523. REPLACE_PWRITE=0;
  14524. REPLACE_READ=0;
  14525. REPLACE_READLINK=0;
  14526. REPLACE_RMDIR=0;
  14527. REPLACE_SLEEP=0;
  14528. REPLACE_SYMLINK=0;
  14529. REPLACE_TTYNAME_R=0;
  14530. REPLACE_UNLINK=0;
  14531. REPLACE_UNLINKAT=0;
  14532. REPLACE_USLEEP=0;
  14533. REPLACE_WRITE=0;
  14534. UNISTD_H_HAVE_WINSOCK2_H=0;
  14535. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
  14536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
  14537. $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
  14538. if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
  14539. $as_echo_n "(cached) " >&6
  14540. else
  14541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14542. /* end confdefs.h. */
  14543. #include <sys/types.h>
  14544. #include <sys/stat.h>
  14545. int
  14546. main ()
  14547. {
  14548. struct stat s; s.st_dm_mode;
  14549. ;
  14550. return 0;
  14551. }
  14552. _ACEOF
  14553. if ac_fn_c_try_compile "$LINENO"; then :
  14554. ac_cv_struct_st_dm_mode=yes
  14555. else
  14556. ac_cv_struct_st_dm_mode=no
  14557. fi
  14558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14559. fi
  14560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
  14561. $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
  14562. if test $ac_cv_struct_st_dm_mode = yes; then
  14563. $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
  14564. fi
  14565. ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
  14566. if test "x$ac_cv_have_decl_strmode" = x""yes; then :
  14567. ac_have_decl=1
  14568. else
  14569. ac_have_decl=0
  14570. fi
  14571. cat >>confdefs.h <<_ACEOF
  14572. #define HAVE_DECL_STRMODE $ac_have_decl
  14573. _ACEOF
  14574. GNULIB__EXIT=0;
  14575. GNULIB_ATOLL=0;
  14576. GNULIB_CALLOC_POSIX=0;
  14577. GNULIB_CANONICALIZE_FILE_NAME=0;
  14578. GNULIB_GETLOADAVG=0;
  14579. GNULIB_GETSUBOPT=0;
  14580. GNULIB_GRANTPT=0;
  14581. GNULIB_MALLOC_POSIX=0;
  14582. GNULIB_MBTOWC=0;
  14583. GNULIB_MKDTEMP=0;
  14584. GNULIB_MKOSTEMP=0;
  14585. GNULIB_MKOSTEMPS=0;
  14586. GNULIB_MKSTEMP=0;
  14587. GNULIB_MKSTEMPS=0;
  14588. GNULIB_PTSNAME=0;
  14589. GNULIB_PUTENV=0;
  14590. GNULIB_RANDOM_R=0;
  14591. GNULIB_REALLOC_POSIX=0;
  14592. GNULIB_REALPATH=0;
  14593. GNULIB_RPMATCH=0;
  14594. GNULIB_SETENV=0;
  14595. GNULIB_STRTOD=0;
  14596. GNULIB_STRTOLL=0;
  14597. GNULIB_STRTOULL=0;
  14598. GNULIB_SYSTEM_POSIX=0;
  14599. GNULIB_UNLOCKPT=0;
  14600. GNULIB_UNSETENV=0;
  14601. GNULIB_WCTOMB=0;
  14602. HAVE__EXIT=1;
  14603. HAVE_ATOLL=1;
  14604. HAVE_CANONICALIZE_FILE_NAME=1;
  14605. HAVE_DECL_GETLOADAVG=1;
  14606. HAVE_GETSUBOPT=1;
  14607. HAVE_GRANTPT=1;
  14608. HAVE_MKDTEMP=1;
  14609. HAVE_MKOSTEMP=1;
  14610. HAVE_MKOSTEMPS=1;
  14611. HAVE_MKSTEMP=1;
  14612. HAVE_MKSTEMPS=1;
  14613. HAVE_PTSNAME=1;
  14614. HAVE_RANDOM_H=1;
  14615. HAVE_RANDOM_R=1;
  14616. HAVE_REALPATH=1;
  14617. HAVE_RPMATCH=1;
  14618. HAVE_SETENV=1;
  14619. HAVE_DECL_SETENV=1;
  14620. HAVE_STRTOD=1;
  14621. HAVE_STRTOLL=1;
  14622. HAVE_STRTOULL=1;
  14623. HAVE_STRUCT_RANDOM_DATA=1;
  14624. HAVE_SYS_LOADAVG_H=0;
  14625. HAVE_UNLOCKPT=1;
  14626. HAVE_DECL_UNSETENV=1;
  14627. REPLACE_CALLOC=0;
  14628. REPLACE_CANONICALIZE_FILE_NAME=0;
  14629. REPLACE_MALLOC=0;
  14630. REPLACE_MBTOWC=0;
  14631. REPLACE_MKSTEMP=0;
  14632. REPLACE_PUTENV=0;
  14633. REPLACE_REALLOC=0;
  14634. REPLACE_REALPATH=0;
  14635. REPLACE_SETENV=0;
  14636. REPLACE_STRTOD=0;
  14637. REPLACE_UNSETENV=0;
  14638. REPLACE_WCTOMB=0;
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
  14640. $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
  14641. if test "${gl_cv_have_include_next+set}" = set; then :
  14642. $as_echo_n "(cached) " >&6
  14643. else
  14644. rm -rf conftestd1a conftestd1b conftestd2
  14645. mkdir conftestd1a conftestd1b conftestd2
  14646. cat <<EOF > conftestd1a/conftest.h
  14647. #define DEFINED_IN_CONFTESTD1
  14648. #include_next <conftest.h>
  14649. #ifdef DEFINED_IN_CONFTESTD2
  14650. int foo;
  14651. #else
  14652. #error "include_next doesn't work"
  14653. #endif
  14654. EOF
  14655. cat <<EOF > conftestd1b/conftest.h
  14656. #define DEFINED_IN_CONFTESTD1
  14657. #include <stdio.h>
  14658. #include_next <conftest.h>
  14659. #ifdef DEFINED_IN_CONFTESTD2
  14660. int foo;
  14661. #else
  14662. #error "include_next doesn't work"
  14663. #endif
  14664. EOF
  14665. cat <<EOF > conftestd2/conftest.h
  14666. #ifndef DEFINED_IN_CONFTESTD1
  14667. #error "include_next test doesn't work"
  14668. #endif
  14669. #define DEFINED_IN_CONFTESTD2
  14670. EOF
  14671. gl_save_CPPFLAGS="$CPPFLAGS"
  14672. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
  14673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14674. /* end confdefs.h. */
  14675. #include <conftest.h>
  14676. _ACEOF
  14677. if ac_fn_c_try_compile "$LINENO"; then :
  14678. gl_cv_have_include_next=yes
  14679. else
  14680. CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
  14681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14682. /* end confdefs.h. */
  14683. #include <conftest.h>
  14684. _ACEOF
  14685. if ac_fn_c_try_compile "$LINENO"; then :
  14686. gl_cv_have_include_next=buggy
  14687. else
  14688. gl_cv_have_include_next=no
  14689. fi
  14690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14691. fi
  14692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14693. CPPFLAGS="$gl_save_CPPFLAGS"
  14694. rm -rf conftestd1a conftestd1b conftestd2
  14695. fi
  14696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
  14697. $as_echo "$gl_cv_have_include_next" >&6; }
  14698. PRAGMA_SYSTEM_HEADER=
  14699. if test $gl_cv_have_include_next = yes; then
  14700. INCLUDE_NEXT=include_next
  14701. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  14702. if test -n "$GCC"; then
  14703. PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
  14704. fi
  14705. else
  14706. if test $gl_cv_have_include_next = buggy; then
  14707. INCLUDE_NEXT=include
  14708. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
  14709. else
  14710. INCLUDE_NEXT=include
  14711. INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
  14712. fi
  14713. fi
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
  14715. $as_echo_n "checking whether system header files limit the line length... " >&6; }
  14716. if test "${gl_cv_pragma_columns+set}" = set; then :
  14717. $as_echo_n "(cached) " >&6
  14718. else
  14719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14720. /* end confdefs.h. */
  14721. #ifdef __TANDEM
  14722. choke me
  14723. #endif
  14724. _ACEOF
  14725. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14726. $EGREP "choke me" >/dev/null 2>&1; then :
  14727. gl_cv_pragma_columns=yes
  14728. else
  14729. gl_cv_pragma_columns=no
  14730. fi
  14731. rm -f conftest*
  14732. fi
  14733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
  14734. $as_echo "$gl_cv_pragma_columns" >&6; }
  14735. if test $gl_cv_pragma_columns = yes; then
  14736. PRAGMA_COLUMNS="#pragma COLUMNS 10000"
  14737. else
  14738. PRAGMA_COLUMNS=
  14739. fi
  14740. if test $gl_cv_have_include_next = yes; then
  14741. gl_cv_next_getopt_h='<'getopt.h'>'
  14742. else
  14743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
  14744. $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
  14745. if test "${gl_cv_next_getopt_h+set}" = set; then :
  14746. $as_echo_n "(cached) " >&6
  14747. else
  14748. if test $ac_cv_header_getopt_h = yes; then
  14749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14750. /* end confdefs.h. */
  14751. #include <getopt.h>
  14752. _ACEOF
  14753. case "$host_os" in
  14754. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  14755. *) gl_absname_cpp="$ac_cpp" ;;
  14756. esac
  14757. case "$host_os" in
  14758. mingw*)
  14759. gl_dirsep_regex='[/\\]'
  14760. ;;
  14761. *)
  14762. gl_dirsep_regex='/'
  14763. ;;
  14764. esac
  14765. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'getopt.h|{
  14766. s|.*"\(.*'"${gl_dirsep_regex}"'getopt.h\)".*|\1|
  14767. s|^/[^/]|//&|
  14768. p
  14769. q
  14770. }'
  14771. gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  14772. sed -n "$gl_absolute_header_sed"`'"'
  14773. else
  14774. gl_cv_next_getopt_h='<'getopt.h'>'
  14775. fi
  14776. fi
  14777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
  14778. $as_echo "$gl_cv_next_getopt_h" >&6; }
  14779. fi
  14780. NEXT_GETOPT_H=$gl_cv_next_getopt_h
  14781. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  14782. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  14783. gl_next_as_first_directive='<'getopt.h'>'
  14784. else
  14785. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  14786. gl_next_as_first_directive=$gl_cv_next_getopt_h
  14787. fi
  14788. NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
  14789. if test $ac_cv_header_getopt_h = yes; then
  14790. HAVE_GETOPT_H=1
  14791. else
  14792. HAVE_GETOPT_H=0
  14793. fi
  14794. gl_replace_getopt=
  14795. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
  14796. for ac_header in getopt.h
  14797. do :
  14798. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14799. if test "x$ac_cv_header_getopt_h" = x""yes; then :
  14800. cat >>confdefs.h <<_ACEOF
  14801. #define HAVE_GETOPT_H 1
  14802. _ACEOF
  14803. else
  14804. gl_replace_getopt=yes
  14805. fi
  14806. done
  14807. fi
  14808. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
  14809. for ac_func in getopt_long_only
  14810. do :
  14811. ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
  14812. if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
  14813. cat >>confdefs.h <<_ACEOF
  14814. #define HAVE_GETOPT_LONG_ONLY 1
  14815. _ACEOF
  14816. else
  14817. gl_replace_getopt=yes
  14818. fi
  14819. done
  14820. fi
  14821. if test -z "$gl_replace_getopt"; then
  14822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
  14823. $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
  14824. if test "${gl_cv_func_getopt_posix+set}" = set; then :
  14825. $as_echo_n "(cached) " >&6
  14826. else
  14827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14828. /* end confdefs.h. */
  14829. #include <unistd.h>
  14830. int
  14831. main ()
  14832. {
  14833. int *p = &optreset; return optreset;
  14834. ;
  14835. return 0;
  14836. }
  14837. _ACEOF
  14838. if ac_fn_c_try_link "$LINENO"; then :
  14839. gl_optind_min=1
  14840. else
  14841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14842. /* end confdefs.h. */
  14843. #include <getopt.h>
  14844. int
  14845. main ()
  14846. {
  14847. return !getopt_clip;
  14848. ;
  14849. return 0;
  14850. }
  14851. _ACEOF
  14852. if ac_fn_c_try_compile "$LINENO"; then :
  14853. gl_optind_min=1
  14854. else
  14855. gl_optind_min=0
  14856. fi
  14857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14858. fi
  14859. rm -f core conftest.err conftest.$ac_objext \
  14860. conftest$ac_exeext conftest.$ac_ext
  14861. gl_save_CPPFLAGS=$CPPFLAGS
  14862. CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
  14863. if test "$cross_compiling" = yes; then :
  14864. case "$host_os" in
  14865. mingw*) gl_cv_func_getopt_posix="guessing no";;
  14866. darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
  14867. *) gl_cv_func_getopt_posix="guessing yes";;
  14868. esac
  14869. else
  14870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14871. /* end confdefs.h. */
  14872. #include <unistd.h>
  14873. #include <stdlib.h>
  14874. #include <string.h>
  14875. int
  14876. main ()
  14877. {
  14878. {
  14879. static char program[] = "program";
  14880. static char a[] = "-a";
  14881. static char foo[] = "foo";
  14882. static char bar[] = "bar";
  14883. char *argv[] = { program, a, foo, bar, NULL };
  14884. int c;
  14885. optind = OPTIND_MIN;
  14886. opterr = 0;
  14887. c = getopt (4, argv, "ab");
  14888. if (!(c == 'a'))
  14889. return 1;
  14890. c = getopt (4, argv, "ab");
  14891. if (!(c == -1))
  14892. return 2;
  14893. if (!(optind == 2))
  14894. return 3;
  14895. }
  14896. /* Some internal state exists at this point. */
  14897. {
  14898. static char program[] = "program";
  14899. static char donald[] = "donald";
  14900. static char p[] = "-p";
  14901. static char billy[] = "billy";
  14902. static char duck[] = "duck";
  14903. static char a[] = "-a";
  14904. static char bar[] = "bar";
  14905. char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
  14906. int c;
  14907. optind = OPTIND_MIN;
  14908. opterr = 0;
  14909. c = getopt (7, argv, "+abp:q:");
  14910. if (!(c == -1))
  14911. return 4;
  14912. if (!(strcmp (argv[0], "program") == 0))
  14913. return 5;
  14914. if (!(strcmp (argv[1], "donald") == 0))
  14915. return 6;
  14916. if (!(strcmp (argv[2], "-p") == 0))
  14917. return 7;
  14918. if (!(strcmp (argv[3], "billy") == 0))
  14919. return 8;
  14920. if (!(strcmp (argv[4], "duck") == 0))
  14921. return 9;
  14922. if (!(strcmp (argv[5], "-a") == 0))
  14923. return 10;
  14924. if (!(strcmp (argv[6], "bar") == 0))
  14925. return 11;
  14926. if (!(optind == 1))
  14927. return 12;
  14928. }
  14929. /* Detect MacOS 10.5, AIX 7.1 bug. */
  14930. {
  14931. static char program[] = "program";
  14932. static char ab[] = "-ab";
  14933. char *argv[3] = { program, ab, NULL };
  14934. optind = OPTIND_MIN;
  14935. opterr = 0;
  14936. if (getopt (2, argv, "ab:") != 'a')
  14937. return 13;
  14938. if (getopt (2, argv, "ab:") != '?')
  14939. return 14;
  14940. if (optopt != 'b')
  14941. return 15;
  14942. if (optind != 2)
  14943. return 16;
  14944. }
  14945. return 0;
  14946. }
  14947. _ACEOF
  14948. if ac_fn_c_try_run "$LINENO"; then :
  14949. gl_cv_func_getopt_posix=yes
  14950. else
  14951. gl_cv_func_getopt_posix=no
  14952. fi
  14953. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14954. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14955. fi
  14956. CPPFLAGS=$gl_save_CPPFLAGS
  14957. fi
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
  14959. $as_echo "$gl_cv_func_getopt_posix" >&6; }
  14960. case "$gl_cv_func_getopt_posix" in
  14961. *no) gl_replace_getopt=yes ;;
  14962. esac
  14963. fi
  14964. if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
  14965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
  14966. $as_echo_n "checking for working GNU getopt function... " >&6; }
  14967. if test "${gl_cv_func_getopt_gnu+set}" = set; then :
  14968. $as_echo_n "(cached) " >&6
  14969. else
  14970. # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
  14971. # optstring is necessary for programs like m4 that have POSIX-mandated
  14972. # semantics for supporting options interspersed with files.
  14973. # Also, since getopt_long is a GNU extension, we require optind=0.
  14974. # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
  14975. # so take care to revert to the correct (non-)export state.
  14976. gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
  14977. case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
  14978. xx) gl_had_POSIXLY_CORRECT=exported ;;
  14979. x) gl_had_POSIXLY_CORRECT=yes ;;
  14980. *) gl_had_POSIXLY_CORRECT= ;;
  14981. esac
  14982. POSIXLY_CORRECT=1
  14983. export POSIXLY_CORRECT
  14984. if test "$cross_compiling" = yes; then :
  14985. case $host_os:$ac_cv_have_decl_optreset in
  14986. *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
  14987. *:yes) gl_cv_func_getopt_gnu=no;;
  14988. *) gl_cv_func_getopt_gnu=yes;;
  14989. esac
  14990. else
  14991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14992. /* end confdefs.h. */
  14993. #include <getopt.h>
  14994. #include <stddef.h>
  14995. #include <string.h>
  14996. #include <stdlib.h>
  14997. #if defined __MACH__ && defined __APPLE__
  14998. /* Avoid a crash on MacOS X. */
  14999. #include <mach/mach.h>
  15000. #include <mach/mach_error.h>
  15001. #include <mach/thread_status.h>
  15002. #include <mach/exception.h>
  15003. #include <mach/task.h>
  15004. #include <pthread.h>
  15005. /* The exception port on which our thread listens. */
  15006. static mach_port_t our_exception_port;
  15007. /* The main function of the thread listening for exceptions of type
  15008. EXC_BAD_ACCESS. */
  15009. static void *
  15010. mach_exception_thread (void *arg)
  15011. {
  15012. /* Buffer for a message to be received. */
  15013. struct {
  15014. mach_msg_header_t head;
  15015. mach_msg_body_t msgh_body;
  15016. char data[1024];
  15017. } msg;
  15018. mach_msg_return_t retval;
  15019. /* Wait for a message on the exception port. */
  15020. retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
  15021. our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
  15022. if (retval != MACH_MSG_SUCCESS)
  15023. abort ();
  15024. exit (1);
  15025. }
  15026. static void
  15027. nocrash_init (void)
  15028. {
  15029. mach_port_t self = mach_task_self ();
  15030. /* Allocate a port on which the thread shall listen for exceptions. */
  15031. if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
  15032. == KERN_SUCCESS) {
  15033. /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
  15034. if (mach_port_insert_right (self, our_exception_port, our_exception_port,
  15035. MACH_MSG_TYPE_MAKE_SEND)
  15036. == KERN_SUCCESS) {
  15037. /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
  15038. for us. */
  15039. exception_mask_t mask = EXC_MASK_BAD_ACCESS;
  15040. /* Create the thread listening on the exception port. */
  15041. pthread_attr_t attr;
  15042. pthread_t thread;
  15043. if (pthread_attr_init (&attr) == 0
  15044. && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
  15045. && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
  15046. pthread_attr_destroy (&attr);
  15047. /* Replace the exception port info for these exceptions with our own.
  15048. Note that we replace the exception port for the entire task, not only
  15049. for a particular thread. This has the effect that when our exception
  15050. port gets the message, the thread specific exception port has already
  15051. been asked, and we don't need to bother about it.
  15052. See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
  15053. task_set_exception_ports (self, mask, our_exception_port,
  15054. EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
  15055. }
  15056. }
  15057. }
  15058. }
  15059. #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
  15060. /* Avoid a crash on native Windows. */
  15061. #define WIN32_LEAN_AND_MEAN
  15062. #include <windows.h>
  15063. #include <winerror.h>
  15064. static LONG WINAPI
  15065. exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
  15066. {
  15067. switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
  15068. {
  15069. case EXCEPTION_ACCESS_VIOLATION:
  15070. case EXCEPTION_IN_PAGE_ERROR:
  15071. case EXCEPTION_STACK_OVERFLOW:
  15072. case EXCEPTION_GUARD_PAGE:
  15073. case EXCEPTION_PRIV_INSTRUCTION:
  15074. case EXCEPTION_ILLEGAL_INSTRUCTION:
  15075. case EXCEPTION_DATATYPE_MISALIGNMENT:
  15076. case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
  15077. case EXCEPTION_NONCONTINUABLE_EXCEPTION:
  15078. exit (1);
  15079. }
  15080. return EXCEPTION_CONTINUE_SEARCH;
  15081. }
  15082. static void
  15083. nocrash_init (void)
  15084. {
  15085. SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
  15086. }
  15087. #else
  15088. /* Avoid a crash on POSIX systems. */
  15089. #include <signal.h>
  15090. /* A POSIX signal handler. */
  15091. static void
  15092. exception_handler (int sig)
  15093. {
  15094. exit (1);
  15095. }
  15096. static void
  15097. nocrash_init (void)
  15098. {
  15099. #ifdef SIGSEGV
  15100. signal (SIGSEGV, exception_handler);
  15101. #endif
  15102. #ifdef SIGBUS
  15103. signal (SIGBUS, exception_handler);
  15104. #endif
  15105. }
  15106. #endif
  15107. int
  15108. main ()
  15109. {
  15110. int result = 0;
  15111. nocrash_init();
  15112. /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
  15113. and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
  15114. OSF/1 5.1, Solaris 10. */
  15115. {
  15116. static char conftest[] = "conftest";
  15117. static char plus[] = "-+";
  15118. char *argv[3] = { conftest, plus, NULL };
  15119. opterr = 0;
  15120. if (getopt (2, argv, "+a") != '?')
  15121. result |= 1;
  15122. }
  15123. /* This code succeeds on glibc 2.8, mingw,
  15124. and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
  15125. IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
  15126. {
  15127. static char program[] = "program";
  15128. static char p[] = "-p";
  15129. static char foo[] = "foo";
  15130. static char bar[] = "bar";
  15131. char *argv[] = { program, p, foo, bar, NULL };
  15132. optind = 1;
  15133. if (getopt (4, argv, "p::") != 'p')
  15134. result |= 2;
  15135. else if (optarg != NULL)
  15136. result |= 4;
  15137. else if (getopt (4, argv, "p::") != -1)
  15138. result |= 6;
  15139. else if (optind != 2)
  15140. result |= 8;
  15141. }
  15142. /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
  15143. {
  15144. static char program[] = "program";
  15145. static char foo[] = "foo";
  15146. static char p[] = "-p";
  15147. char *argv[] = { program, foo, p, NULL };
  15148. optind = 0;
  15149. if (getopt (3, argv, "-p") != 1)
  15150. result |= 16;
  15151. else if (getopt (3, argv, "-p") != 'p')
  15152. result |= 32;
  15153. }
  15154. /* This code fails on glibc 2.11. */
  15155. {
  15156. static char program[] = "program";
  15157. static char b[] = "-b";
  15158. static char a[] = "-a";
  15159. char *argv[] = { program, b, a, NULL };
  15160. optind = opterr = 0;
  15161. if (getopt (3, argv, "+:a:b") != 'b')
  15162. result |= 64;
  15163. else if (getopt (3, argv, "+:a:b") != ':')
  15164. result |= 64;
  15165. }
  15166. /* This code dumps core on glibc 2.14. */
  15167. {
  15168. static char program[] = "program";
  15169. static char w[] = "-W";
  15170. static char dummy[] = "dummy";
  15171. char *argv[] = { program, w, dummy, NULL };
  15172. optind = opterr = 1;
  15173. if (getopt (3, argv, "W;") != 'W')
  15174. result |= 128;
  15175. }
  15176. return result;
  15177. ;
  15178. return 0;
  15179. }
  15180. _ACEOF
  15181. if ac_fn_c_try_run "$LINENO"; then :
  15182. gl_cv_func_getopt_gnu=yes
  15183. else
  15184. gl_cv_func_getopt_gnu=no
  15185. fi
  15186. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15187. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15188. fi
  15189. case $gl_had_POSIXLY_CORRECT in
  15190. exported) ;;
  15191. yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
  15192. *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
  15193. esac
  15194. fi
  15195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
  15196. $as_echo "$gl_cv_func_getopt_gnu" >&6; }
  15197. if test "$gl_cv_func_getopt_gnu" = "no"; then
  15198. gl_replace_getopt=yes
  15199. fi
  15200. fi
  15201. REPLACE_GETOPT=0
  15202. if test -n "$gl_replace_getopt"; then :
  15203. REPLACE_GETOPT=1
  15204. fi
  15205. if test $REPLACE_GETOPT = 1; then
  15206. GETOPT_H=getopt.h
  15207. $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
  15208. GNULIB_UNISTD_H_GETOPT=1
  15209. fi
  15210. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  15211. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  15212. ac_have_decl=1
  15213. else
  15214. ac_have_decl=0
  15215. fi
  15216. cat >>confdefs.h <<_ACEOF
  15217. #define HAVE_DECL_GETENV $ac_have_decl
  15218. _ACEOF
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  15220. $as_echo_n "checking for unsigned long long int... " >&6; }
  15221. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  15222. $as_echo_n "(cached) " >&6
  15223. else
  15224. ac_cv_type_unsigned_long_long_int=yes
  15225. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  15226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15227. /* end confdefs.h. */
  15228. /* For now, do not test the preprocessor; as of 2007 there are too many
  15229. implementations with broken preprocessors. Perhaps this can
  15230. be revisited in 2012. In the meantime, code should not expect
  15231. #if to work with literals wider than 32 bits. */
  15232. /* Test literals. */
  15233. long long int ll = 9223372036854775807ll;
  15234. long long int nll = -9223372036854775807LL;
  15235. unsigned long long int ull = 18446744073709551615ULL;
  15236. /* Test constant expressions. */
  15237. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  15238. ? 1 : -1)];
  15239. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  15240. ? 1 : -1)];
  15241. int i = 63;
  15242. int
  15243. main ()
  15244. {
  15245. /* Test availability of runtime routines for shift and division. */
  15246. long long int llmax = 9223372036854775807ll;
  15247. unsigned long long int ullmax = 18446744073709551615ull;
  15248. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  15249. | (llmax / ll) | (llmax % ll)
  15250. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  15251. | (ullmax / ull) | (ullmax % ull));
  15252. ;
  15253. return 0;
  15254. }
  15255. _ACEOF
  15256. if ac_fn_c_try_link "$LINENO"; then :
  15257. else
  15258. ac_cv_type_unsigned_long_long_int=no
  15259. fi
  15260. rm -f core conftest.err conftest.$ac_objext \
  15261. conftest$ac_exeext conftest.$ac_ext
  15262. fi
  15263. fi
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  15265. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  15266. if test $ac_cv_type_unsigned_long_long_int = yes; then
  15267. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  15268. fi
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  15270. $as_echo_n "checking for long long int... " >&6; }
  15271. if test "${ac_cv_type_long_long_int+set}" = set; then :
  15272. $as_echo_n "(cached) " >&6
  15273. else
  15274. ac_cv_type_long_long_int=yes
  15275. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  15276. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  15277. if test $ac_cv_type_long_long_int = yes; then
  15278. if test "$cross_compiling" = yes; then :
  15279. :
  15280. else
  15281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15282. /* end confdefs.h. */
  15283. #include <limits.h>
  15284. #ifndef LLONG_MAX
  15285. # define HALF \
  15286. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  15287. # define LLONG_MAX (HALF - 1 + HALF)
  15288. #endif
  15289. int
  15290. main ()
  15291. {
  15292. long long int n = 1;
  15293. int i;
  15294. for (i = 0; ; i++)
  15295. {
  15296. long long int m = n << i;
  15297. if (m >> i != n)
  15298. return 1;
  15299. if (LLONG_MAX / 2 < m)
  15300. break;
  15301. }
  15302. return 0;
  15303. ;
  15304. return 0;
  15305. }
  15306. _ACEOF
  15307. if ac_fn_c_try_run "$LINENO"; then :
  15308. else
  15309. ac_cv_type_long_long_int=no
  15310. fi
  15311. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15312. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15313. fi
  15314. fi
  15315. fi
  15316. fi
  15317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  15318. $as_echo "$ac_cv_type_long_long_int" >&6; }
  15319. if test $ac_cv_type_long_long_int = yes; then
  15320. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  15321. fi
  15322. gl_cv_c_multiarch=no
  15323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15324. /* end confdefs.h. */
  15325. #ifndef __APPLE_CC__
  15326. not a universal capable compiler
  15327. #endif
  15328. typedef int dummy;
  15329. _ACEOF
  15330. if ac_fn_c_try_compile "$LINENO"; then :
  15331. arch=
  15332. prev=
  15333. for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
  15334. if test -n "$prev"; then
  15335. case $word in
  15336. i?86 | x86_64 | ppc | ppc64)
  15337. if test -z "$arch" || test "$arch" = "$word"; then
  15338. arch="$word"
  15339. else
  15340. gl_cv_c_multiarch=yes
  15341. fi
  15342. ;;
  15343. esac
  15344. prev=
  15345. else
  15346. if test "x$word" = "x-arch"; then
  15347. prev=arch
  15348. fi
  15349. fi
  15350. done
  15351. fi
  15352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15353. if test $gl_cv_c_multiarch = yes; then
  15354. APPLE_UNIVERSAL_BUILD=1
  15355. else
  15356. APPLE_UNIVERSAL_BUILD=0
  15357. fi
  15358. if test $ac_cv_type_long_long_int = yes; then
  15359. HAVE_LONG_LONG_INT=1
  15360. else
  15361. HAVE_LONG_LONG_INT=0
  15362. fi
  15363. if test $ac_cv_type_unsigned_long_long_int = yes; then
  15364. HAVE_UNSIGNED_LONG_LONG_INT=1
  15365. else
  15366. HAVE_UNSIGNED_LONG_LONG_INT=0
  15367. fi
  15368. if test $ac_cv_header_wchar_h = yes; then
  15369. HAVE_WCHAR_H=1
  15370. else
  15371. HAVE_WCHAR_H=0
  15372. fi
  15373. if test $ac_cv_header_inttypes_h = yes; then
  15374. HAVE_INTTYPES_H=1
  15375. else
  15376. HAVE_INTTYPES_H=0
  15377. fi
  15378. if test $ac_cv_header_sys_types_h = yes; then
  15379. HAVE_SYS_TYPES_H=1
  15380. else
  15381. HAVE_SYS_TYPES_H=0
  15382. fi
  15383. if test $gl_cv_have_include_next = yes; then
  15384. gl_cv_next_stdint_h='<'stdint.h'>'
  15385. else
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
  15387. $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
  15388. if test "${gl_cv_next_stdint_h+set}" = set; then :
  15389. $as_echo_n "(cached) " >&6
  15390. else
  15391. if test $ac_cv_header_stdint_h = yes; then
  15392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15393. /* end confdefs.h. */
  15394. #include <stdint.h>
  15395. _ACEOF
  15396. case "$host_os" in
  15397. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  15398. *) gl_absname_cpp="$ac_cpp" ;;
  15399. esac
  15400. case "$host_os" in
  15401. mingw*)
  15402. gl_dirsep_regex='[/\\]'
  15403. ;;
  15404. *)
  15405. gl_dirsep_regex='/'
  15406. ;;
  15407. esac
  15408. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdint.h|{
  15409. s|.*"\(.*'"${gl_dirsep_regex}"'stdint.h\)".*|\1|
  15410. s|^/[^/]|//&|
  15411. p
  15412. q
  15413. }'
  15414. gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  15415. sed -n "$gl_absolute_header_sed"`'"'
  15416. else
  15417. gl_cv_next_stdint_h='<'stdint.h'>'
  15418. fi
  15419. fi
  15420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
  15421. $as_echo "$gl_cv_next_stdint_h" >&6; }
  15422. fi
  15423. NEXT_STDINT_H=$gl_cv_next_stdint_h
  15424. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  15425. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  15426. gl_next_as_first_directive='<'stdint.h'>'
  15427. else
  15428. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  15429. gl_next_as_first_directive=$gl_cv_next_stdint_h
  15430. fi
  15431. NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
  15432. if test $ac_cv_header_stdint_h = yes; then
  15433. HAVE_STDINT_H=1
  15434. else
  15435. HAVE_STDINT_H=0
  15436. fi
  15437. if test $ac_cv_header_stdint_h = yes; then
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
  15439. $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
  15440. if test "${gl_cv_header_working_stdint_h+set}" = set; then :
  15441. $as_echo_n "(cached) " >&6
  15442. else
  15443. gl_cv_header_working_stdint_h=no
  15444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15445. /* end confdefs.h. */
  15446. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  15447. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  15448. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  15449. #include <stdint.h>
  15450. /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
  15451. #if !(defined WCHAR_MIN && defined WCHAR_MAX)
  15452. #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
  15453. #endif
  15454. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15455. included before <wchar.h>. */
  15456. #include <stddef.h>
  15457. #include <signal.h>
  15458. #if HAVE_WCHAR_H
  15459. # include <stdio.h>
  15460. # include <time.h>
  15461. # include <wchar.h>
  15462. #endif
  15463. #ifdef INT8_MAX
  15464. int8_t a1 = INT8_MAX;
  15465. int8_t a1min = INT8_MIN;
  15466. #endif
  15467. #ifdef INT16_MAX
  15468. int16_t a2 = INT16_MAX;
  15469. int16_t a2min = INT16_MIN;
  15470. #endif
  15471. #ifdef INT32_MAX
  15472. int32_t a3 = INT32_MAX;
  15473. int32_t a3min = INT32_MIN;
  15474. #endif
  15475. #ifdef INT64_MAX
  15476. int64_t a4 = INT64_MAX;
  15477. int64_t a4min = INT64_MIN;
  15478. #endif
  15479. #ifdef UINT8_MAX
  15480. uint8_t b1 = UINT8_MAX;
  15481. #else
  15482. typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
  15483. #endif
  15484. #ifdef UINT16_MAX
  15485. uint16_t b2 = UINT16_MAX;
  15486. #endif
  15487. #ifdef UINT32_MAX
  15488. uint32_t b3 = UINT32_MAX;
  15489. #endif
  15490. #ifdef UINT64_MAX
  15491. uint64_t b4 = UINT64_MAX;
  15492. #endif
  15493. int_least8_t c1 = INT8_C (0x7f);
  15494. int_least8_t c1max = INT_LEAST8_MAX;
  15495. int_least8_t c1min = INT_LEAST8_MIN;
  15496. int_least16_t c2 = INT16_C (0x7fff);
  15497. int_least16_t c2max = INT_LEAST16_MAX;
  15498. int_least16_t c2min = INT_LEAST16_MIN;
  15499. int_least32_t c3 = INT32_C (0x7fffffff);
  15500. int_least32_t c3max = INT_LEAST32_MAX;
  15501. int_least32_t c3min = INT_LEAST32_MIN;
  15502. int_least64_t c4 = INT64_C (0x7fffffffffffffff);
  15503. int_least64_t c4max = INT_LEAST64_MAX;
  15504. int_least64_t c4min = INT_LEAST64_MIN;
  15505. uint_least8_t d1 = UINT8_C (0xff);
  15506. uint_least8_t d1max = UINT_LEAST8_MAX;
  15507. uint_least16_t d2 = UINT16_C (0xffff);
  15508. uint_least16_t d2max = UINT_LEAST16_MAX;
  15509. uint_least32_t d3 = UINT32_C (0xffffffff);
  15510. uint_least32_t d3max = UINT_LEAST32_MAX;
  15511. uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
  15512. uint_least64_t d4max = UINT_LEAST64_MAX;
  15513. int_fast8_t e1 = INT_FAST8_MAX;
  15514. int_fast8_t e1min = INT_FAST8_MIN;
  15515. int_fast16_t e2 = INT_FAST16_MAX;
  15516. int_fast16_t e2min = INT_FAST16_MIN;
  15517. int_fast32_t e3 = INT_FAST32_MAX;
  15518. int_fast32_t e3min = INT_FAST32_MIN;
  15519. int_fast64_t e4 = INT_FAST64_MAX;
  15520. int_fast64_t e4min = INT_FAST64_MIN;
  15521. uint_fast8_t f1 = UINT_FAST8_MAX;
  15522. uint_fast16_t f2 = UINT_FAST16_MAX;
  15523. uint_fast32_t f3 = UINT_FAST32_MAX;
  15524. uint_fast64_t f4 = UINT_FAST64_MAX;
  15525. #ifdef INTPTR_MAX
  15526. intptr_t g = INTPTR_MAX;
  15527. intptr_t gmin = INTPTR_MIN;
  15528. #endif
  15529. #ifdef UINTPTR_MAX
  15530. uintptr_t h = UINTPTR_MAX;
  15531. #endif
  15532. intmax_t i = INTMAX_MAX;
  15533. uintmax_t j = UINTMAX_MAX;
  15534. #include <limits.h> /* for CHAR_BIT */
  15535. #define TYPE_MINIMUM(t) \
  15536. ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
  15537. #define TYPE_MAXIMUM(t) \
  15538. ((t) ((t) 0 < (t) -1 \
  15539. ? (t) -1 \
  15540. : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
  15541. struct s {
  15542. int check_PTRDIFF:
  15543. PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
  15544. && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
  15545. ? 1 : -1;
  15546. /* Detect bug in FreeBSD 6.0 / ia64. */
  15547. int check_SIG_ATOMIC:
  15548. SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
  15549. && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
  15550. ? 1 : -1;
  15551. int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
  15552. int check_WCHAR:
  15553. WCHAR_MIN == TYPE_MINIMUM (wchar_t)
  15554. && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
  15555. ? 1 : -1;
  15556. /* Detect bug in mingw. */
  15557. int check_WINT:
  15558. WINT_MIN == TYPE_MINIMUM (wint_t)
  15559. && WINT_MAX == TYPE_MAXIMUM (wint_t)
  15560. ? 1 : -1;
  15561. /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
  15562. int check_UINT8_C:
  15563. (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
  15564. int check_UINT16_C:
  15565. (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
  15566. /* Detect bugs in OpenBSD 3.9 stdint.h. */
  15567. #ifdef UINT8_MAX
  15568. int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
  15569. #endif
  15570. #ifdef UINT16_MAX
  15571. int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
  15572. #endif
  15573. #ifdef UINT32_MAX
  15574. int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
  15575. #endif
  15576. #ifdef UINT64_MAX
  15577. int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
  15578. #endif
  15579. int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
  15580. int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
  15581. int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
  15582. int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
  15583. int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
  15584. int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
  15585. int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
  15586. int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
  15587. int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
  15588. int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
  15589. int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
  15590. };
  15591. int
  15592. main ()
  15593. {
  15594. ;
  15595. return 0;
  15596. }
  15597. _ACEOF
  15598. if ac_fn_c_try_compile "$LINENO"; then :
  15599. if test "$cross_compiling" = yes; then :
  15600. gl_cv_header_working_stdint_h=yes
  15601. else
  15602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15603. /* end confdefs.h. */
  15604. #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
  15605. #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
  15606. #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
  15607. #include <stdint.h>
  15608. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15609. included before <wchar.h>. */
  15610. #include <stddef.h>
  15611. #include <signal.h>
  15612. #if HAVE_WCHAR_H
  15613. # include <stdio.h>
  15614. # include <time.h>
  15615. # include <wchar.h>
  15616. #endif
  15617. #include <stdio.h>
  15618. #include <string.h>
  15619. #define MVAL(macro) MVAL1(macro)
  15620. #define MVAL1(expression) #expression
  15621. static const char *macro_values[] =
  15622. {
  15623. #ifdef INT8_MAX
  15624. MVAL (INT8_MAX),
  15625. #endif
  15626. #ifdef INT16_MAX
  15627. MVAL (INT16_MAX),
  15628. #endif
  15629. #ifdef INT32_MAX
  15630. MVAL (INT32_MAX),
  15631. #endif
  15632. #ifdef INT64_MAX
  15633. MVAL (INT64_MAX),
  15634. #endif
  15635. #ifdef UINT8_MAX
  15636. MVAL (UINT8_MAX),
  15637. #endif
  15638. #ifdef UINT16_MAX
  15639. MVAL (UINT16_MAX),
  15640. #endif
  15641. #ifdef UINT32_MAX
  15642. MVAL (UINT32_MAX),
  15643. #endif
  15644. #ifdef UINT64_MAX
  15645. MVAL (UINT64_MAX),
  15646. #endif
  15647. NULL
  15648. };
  15649. int
  15650. main ()
  15651. {
  15652. const char **mv;
  15653. for (mv = macro_values; *mv != NULL; mv++)
  15654. {
  15655. const char *value = *mv;
  15656. /* Test whether it looks like a cast expression. */
  15657. if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
  15658. || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
  15659. || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
  15660. || strncmp (value, "((int)"/*)*/, 6) == 0
  15661. || strncmp (value, "((signed short)"/*)*/, 15) == 0
  15662. || strncmp (value, "((signed char)"/*)*/, 14) == 0)
  15663. return mv - macro_values + 1;
  15664. }
  15665. return 0;
  15666. ;
  15667. return 0;
  15668. }
  15669. _ACEOF
  15670. if ac_fn_c_try_run "$LINENO"; then :
  15671. gl_cv_header_working_stdint_h=yes
  15672. fi
  15673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15674. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15675. fi
  15676. fi
  15677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15678. fi
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
  15680. $as_echo "$gl_cv_header_working_stdint_h" >&6; }
  15681. fi
  15682. if test "$gl_cv_header_working_stdint_h" = yes; then
  15683. STDINT_H=
  15684. else
  15685. for ac_header in sys/inttypes.h sys/bitypes.h
  15686. do :
  15687. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15688. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15689. eval as_val=\$$as_ac_Header
  15690. if test "x$as_val" = x""yes; then :
  15691. cat >>confdefs.h <<_ACEOF
  15692. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15693. _ACEOF
  15694. fi
  15695. done
  15696. if test $ac_cv_header_sys_inttypes_h = yes; then
  15697. HAVE_SYS_INTTYPES_H=1
  15698. else
  15699. HAVE_SYS_INTTYPES_H=0
  15700. fi
  15701. if test $ac_cv_header_sys_bitypes_h = yes; then
  15702. HAVE_SYS_BITYPES_H=1
  15703. else
  15704. HAVE_SYS_BITYPES_H=0
  15705. fi
  15706. if test $APPLE_UNIVERSAL_BUILD = 0; then
  15707. for gltype in ptrdiff_t size_t ; do
  15708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  15709. $as_echo_n "checking for bit size of $gltype... " >&6; }
  15710. if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
  15711. $as_echo_n "(cached) " >&6
  15712. else
  15713. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  15714. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15715. included before <wchar.h>. */
  15716. #include <stddef.h>
  15717. #include <signal.h>
  15718. #if HAVE_WCHAR_H
  15719. # include <stdio.h>
  15720. # include <time.h>
  15721. # include <wchar.h>
  15722. #endif
  15723. #include <limits.h>"; then :
  15724. else
  15725. result=unknown
  15726. fi
  15727. eval gl_cv_bitsizeof_${gltype}=\$result
  15728. fi
  15729. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  15730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15731. $as_echo "$ac_res" >&6; }
  15732. eval result=\$gl_cv_bitsizeof_${gltype}
  15733. if test $result = unknown; then
  15734. result=0
  15735. fi
  15736. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15737. cat >>confdefs.h <<_ACEOF
  15738. #define BITSIZEOF_${GLTYPE} $result
  15739. _ACEOF
  15740. eval BITSIZEOF_${GLTYPE}=\$result
  15741. done
  15742. fi
  15743. for gltype in sig_atomic_t wchar_t wint_t ; do
  15744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
  15745. $as_echo_n "checking for bit size of $gltype... " >&6; }
  15746. if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
  15747. $as_echo_n "(cached) " >&6
  15748. else
  15749. if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
  15750. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15751. included before <wchar.h>. */
  15752. #include <stddef.h>
  15753. #include <signal.h>
  15754. #if HAVE_WCHAR_H
  15755. # include <stdio.h>
  15756. # include <time.h>
  15757. # include <wchar.h>
  15758. #endif
  15759. #include <limits.h>"; then :
  15760. else
  15761. result=unknown
  15762. fi
  15763. eval gl_cv_bitsizeof_${gltype}=\$result
  15764. fi
  15765. eval ac_res=\$gl_cv_bitsizeof_${gltype}
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15767. $as_echo "$ac_res" >&6; }
  15768. eval result=\$gl_cv_bitsizeof_${gltype}
  15769. if test $result = unknown; then
  15770. result=0
  15771. fi
  15772. GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15773. cat >>confdefs.h <<_ACEOF
  15774. #define BITSIZEOF_${GLTYPE} $result
  15775. _ACEOF
  15776. eval BITSIZEOF_${GLTYPE}=\$result
  15777. done
  15778. for gltype in sig_atomic_t wchar_t wint_t ; do
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
  15780. $as_echo_n "checking whether $gltype is signed... " >&6; }
  15781. if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
  15782. $as_echo_n "(cached) " >&6
  15783. else
  15784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15785. /* end confdefs.h. */
  15786. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15787. included before <wchar.h>. */
  15788. #include <stddef.h>
  15789. #include <signal.h>
  15790. #if HAVE_WCHAR_H
  15791. # include <stdio.h>
  15792. # include <time.h>
  15793. # include <wchar.h>
  15794. #endif
  15795. int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
  15796. int
  15797. main ()
  15798. {
  15799. ;
  15800. return 0;
  15801. }
  15802. _ACEOF
  15803. if ac_fn_c_try_compile "$LINENO"; then :
  15804. result=yes
  15805. else
  15806. result=no
  15807. fi
  15808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15809. eval gl_cv_type_${gltype}_signed=\$result
  15810. fi
  15811. eval ac_res=\$gl_cv_type_${gltype}_signed
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15813. $as_echo "$ac_res" >&6; }
  15814. eval result=\$gl_cv_type_${gltype}_signed
  15815. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15816. if test "$result" = yes; then
  15817. cat >>confdefs.h <<_ACEOF
  15818. #define HAVE_SIGNED_${GLTYPE} 1
  15819. _ACEOF
  15820. eval HAVE_SIGNED_${GLTYPE}=1
  15821. else
  15822. eval HAVE_SIGNED_${GLTYPE}=0
  15823. fi
  15824. done
  15825. gl_cv_type_ptrdiff_t_signed=yes
  15826. gl_cv_type_size_t_signed=no
  15827. if test $APPLE_UNIVERSAL_BUILD = 0; then
  15828. for gltype in ptrdiff_t size_t ; do
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  15830. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  15831. if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
  15832. $as_echo_n "(cached) " >&6
  15833. else
  15834. eval gl_cv_type_${gltype}_suffix=no
  15835. eval result=\$gl_cv_type_${gltype}_signed
  15836. if test "$result" = yes; then
  15837. glsufu=
  15838. else
  15839. glsufu=u
  15840. fi
  15841. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  15842. case $glsuf in
  15843. '') gltype1='int';;
  15844. l) gltype1='long int';;
  15845. ll) gltype1='long long int';;
  15846. i64) gltype1='__int64';;
  15847. u) gltype1='unsigned int';;
  15848. ul) gltype1='unsigned long int';;
  15849. ull) gltype1='unsigned long long int';;
  15850. ui64)gltype1='unsigned __int64';;
  15851. esac
  15852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15853. /* end confdefs.h. */
  15854. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15855. included before <wchar.h>. */
  15856. #include <stddef.h>
  15857. #include <signal.h>
  15858. #if HAVE_WCHAR_H
  15859. # include <stdio.h>
  15860. # include <time.h>
  15861. # include <wchar.h>
  15862. #endif
  15863. extern $gltype foo;
  15864. extern $gltype1 foo;
  15865. int
  15866. main ()
  15867. {
  15868. ;
  15869. return 0;
  15870. }
  15871. _ACEOF
  15872. if ac_fn_c_try_compile "$LINENO"; then :
  15873. eval gl_cv_type_${gltype}_suffix=\$glsuf
  15874. fi
  15875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15876. eval result=\$gl_cv_type_${gltype}_suffix
  15877. test "$result" != no && break
  15878. done
  15879. fi
  15880. eval ac_res=\$gl_cv_type_${gltype}_suffix
  15881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15882. $as_echo "$ac_res" >&6; }
  15883. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15884. eval result=\$gl_cv_type_${gltype}_suffix
  15885. test "$result" = no && result=
  15886. eval ${GLTYPE}_SUFFIX=\$result
  15887. cat >>confdefs.h <<_ACEOF
  15888. #define ${GLTYPE}_SUFFIX $result
  15889. _ACEOF
  15890. done
  15891. fi
  15892. for gltype in sig_atomic_t wchar_t wint_t ; do
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
  15894. $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
  15895. if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
  15896. $as_echo_n "(cached) " >&6
  15897. else
  15898. eval gl_cv_type_${gltype}_suffix=no
  15899. eval result=\$gl_cv_type_${gltype}_signed
  15900. if test "$result" = yes; then
  15901. glsufu=
  15902. else
  15903. glsufu=u
  15904. fi
  15905. for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
  15906. case $glsuf in
  15907. '') gltype1='int';;
  15908. l) gltype1='long int';;
  15909. ll) gltype1='long long int';;
  15910. i64) gltype1='__int64';;
  15911. u) gltype1='unsigned int';;
  15912. ul) gltype1='unsigned long int';;
  15913. ull) gltype1='unsigned long long int';;
  15914. ui64)gltype1='unsigned __int64';;
  15915. esac
  15916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15917. /* end confdefs.h. */
  15918. /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
  15919. included before <wchar.h>. */
  15920. #include <stddef.h>
  15921. #include <signal.h>
  15922. #if HAVE_WCHAR_H
  15923. # include <stdio.h>
  15924. # include <time.h>
  15925. # include <wchar.h>
  15926. #endif
  15927. extern $gltype foo;
  15928. extern $gltype1 foo;
  15929. int
  15930. main ()
  15931. {
  15932. ;
  15933. return 0;
  15934. }
  15935. _ACEOF
  15936. if ac_fn_c_try_compile "$LINENO"; then :
  15937. eval gl_cv_type_${gltype}_suffix=\$glsuf
  15938. fi
  15939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15940. eval result=\$gl_cv_type_${gltype}_suffix
  15941. test "$result" != no && break
  15942. done
  15943. fi
  15944. eval ac_res=\$gl_cv_type_${gltype}_suffix
  15945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15946. $as_echo "$ac_res" >&6; }
  15947. GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  15948. eval result=\$gl_cv_type_${gltype}_suffix
  15949. test "$result" = no && result=
  15950. eval ${GLTYPE}_SUFFIX=\$result
  15951. cat >>confdefs.h <<_ACEOF
  15952. #define ${GLTYPE}_SUFFIX $result
  15953. _ACEOF
  15954. done
  15955. if test $BITSIZEOF_WINT_T -lt 32; then
  15956. BITSIZEOF_WINT_T=32
  15957. fi
  15958. STDINT_H=stdint.h
  15959. fi
  15960. if test -n "$STDINT_H"; then
  15961. GL_GENERATE_STDINT_H_TRUE=
  15962. GL_GENERATE_STDINT_H_FALSE='#'
  15963. else
  15964. GL_GENERATE_STDINT_H_TRUE='#'
  15965. GL_GENERATE_STDINT_H_FALSE=
  15966. fi
  15967. GNULIB_IMAXABS=0;
  15968. GNULIB_IMAXDIV=0;
  15969. GNULIB_STRTOIMAX=0;
  15970. GNULIB_STRTOUMAX=0;
  15971. HAVE_DECL_IMAXABS=1;
  15972. HAVE_DECL_IMAXDIV=1;
  15973. HAVE_DECL_STRTOIMAX=1;
  15974. HAVE_DECL_STRTOUMAX=1;
  15975. INT32_MAX_LT_INTMAX_MAX=1;
  15976. INT64_MAX_EQ_LONG_MAX='defined _LP64';
  15977. PRI_MACROS_BROKEN=0;
  15978. PRIPTR_PREFIX=__PRIPTR_PREFIX;
  15979. UINT32_MAX_LT_UINTMAX_MAX=1;
  15980. UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
  15981. if test $gl_cv_have_include_next = yes; then
  15982. gl_cv_next_inttypes_h='<'inttypes.h'>'
  15983. else
  15984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
  15985. $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
  15986. if test "${gl_cv_next_inttypes_h+set}" = set; then :
  15987. $as_echo_n "(cached) " >&6
  15988. else
  15989. if test $ac_cv_header_inttypes_h = yes; then
  15990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15991. /* end confdefs.h. */
  15992. #include <inttypes.h>
  15993. _ACEOF
  15994. case "$host_os" in
  15995. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  15996. *) gl_absname_cpp="$ac_cpp" ;;
  15997. esac
  15998. case "$host_os" in
  15999. mingw*)
  16000. gl_dirsep_regex='[/\\]'
  16001. ;;
  16002. *)
  16003. gl_dirsep_regex='/'
  16004. ;;
  16005. esac
  16006. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'inttypes.h|{
  16007. s|.*"\(.*'"${gl_dirsep_regex}"'inttypes.h\)".*|\1|
  16008. s|^/[^/]|//&|
  16009. p
  16010. q
  16011. }'
  16012. gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  16013. sed -n "$gl_absolute_header_sed"`'"'
  16014. else
  16015. gl_cv_next_inttypes_h='<'inttypes.h'>'
  16016. fi
  16017. fi
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
  16019. $as_echo "$gl_cv_next_inttypes_h" >&6; }
  16020. fi
  16021. NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
  16022. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  16023. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  16024. gl_next_as_first_directive='<'inttypes.h'>'
  16025. else
  16026. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  16027. gl_next_as_first_directive=$gl_cv_next_inttypes_h
  16028. fi
  16029. NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
  16030. $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
  16031. GNULIB_FCHMODAT=0;
  16032. GNULIB_FSTAT=0;
  16033. GNULIB_FSTATAT=0;
  16034. GNULIB_FUTIMENS=0;
  16035. GNULIB_LCHMOD=0;
  16036. GNULIB_LSTAT=0;
  16037. GNULIB_MKDIRAT=0;
  16038. GNULIB_MKFIFO=0;
  16039. GNULIB_MKFIFOAT=0;
  16040. GNULIB_MKNOD=0;
  16041. GNULIB_MKNODAT=0;
  16042. GNULIB_STAT=0;
  16043. GNULIB_UTIMENSAT=0;
  16044. HAVE_FCHMODAT=1;
  16045. HAVE_FSTATAT=1;
  16046. HAVE_FUTIMENS=1;
  16047. HAVE_LCHMOD=1;
  16048. HAVE_LSTAT=1;
  16049. HAVE_MKDIRAT=1;
  16050. HAVE_MKFIFO=1;
  16051. HAVE_MKFIFOAT=1;
  16052. HAVE_MKNOD=1;
  16053. HAVE_MKNODAT=1;
  16054. HAVE_UTIMENSAT=1;
  16055. REPLACE_FSTAT=0;
  16056. REPLACE_FSTATAT=0;
  16057. REPLACE_FUTIMENS=0;
  16058. REPLACE_LSTAT=0;
  16059. REPLACE_MKDIR=0;
  16060. REPLACE_MKFIFO=0;
  16061. REPLACE_MKNOD=0;
  16062. REPLACE_STAT=0;
  16063. REPLACE_UTIMENSAT=0;
  16064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  16065. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  16066. if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  16067. $as_echo_n "(cached) " >&6
  16068. else
  16069. rm -f conftest.sym conftest.file
  16070. echo >conftest.file
  16071. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  16072. if test "$cross_compiling" = yes; then :
  16073. # When cross-compiling, be pessimistic so we will end up using the
  16074. # replacement version of lstat that checks for trailing slashes and
  16075. # calls lstat a second time when necessary.
  16076. gl_cv_func_lstat_dereferences_slashed_symlink=no
  16077. else
  16078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16079. /* end confdefs.h. */
  16080. $ac_includes_default
  16081. int
  16082. main ()
  16083. {
  16084. struct stat sbuf;
  16085. /* Linux will dereference the symlink and fail, as required by
  16086. POSIX. That is better in the sense that it means we will not
  16087. have to compile and use the lstat wrapper. */
  16088. return lstat ("conftest.sym/", &sbuf) == 0;
  16089. ;
  16090. return 0;
  16091. }
  16092. _ACEOF
  16093. if ac_fn_c_try_run "$LINENO"; then :
  16094. gl_cv_func_lstat_dereferences_slashed_symlink=yes
  16095. else
  16096. gl_cv_func_lstat_dereferences_slashed_symlink=no
  16097. fi
  16098. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16099. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16100. fi
  16101. else
  16102. # If the 'ln -s' command failed, then we probably don't even
  16103. # have an lstat function.
  16104. gl_cv_func_lstat_dereferences_slashed_symlink=no
  16105. fi
  16106. rm -f conftest.sym conftest.file
  16107. fi
  16108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
  16109. $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  16110. test $gl_cv_func_lstat_dereferences_slashed_symlink = yes &&
  16111. cat >>confdefs.h <<_ACEOF
  16112. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  16113. _ACEOF
  16114. GNULIB_MKTIME=0;
  16115. GNULIB_NANOSLEEP=0;
  16116. GNULIB_STRPTIME=0;
  16117. GNULIB_TIMEGM=0;
  16118. GNULIB_TIME_R=0;
  16119. HAVE_DECL_LOCALTIME_R=1;
  16120. HAVE_NANOSLEEP=1;
  16121. HAVE_STRPTIME=1;
  16122. HAVE_TIMEGM=1;
  16123. REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
  16124. REPLACE_MKTIME=GNULIB_PORTCHECK;
  16125. REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
  16126. REPLACE_TIMEGM=GNULIB_PORTCHECK;
  16127. GNULIB_PTHREAD_SIGMASK=0;
  16128. GNULIB_RAISE=0;
  16129. GNULIB_SIGNAL_H_SIGPIPE=0;
  16130. GNULIB_SIGPROCMASK=0;
  16131. GNULIB_SIGACTION=0;
  16132. HAVE_POSIX_SIGNALBLOCKING=1;
  16133. HAVE_PTHREAD_SIGMASK=1;
  16134. HAVE_RAISE=1;
  16135. HAVE_SIGSET_T=1;
  16136. HAVE_SIGINFO_T=1;
  16137. HAVE_SIGACTION=1;
  16138. HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  16139. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  16140. HAVE_SIGHANDLER_T=1;
  16141. REPLACE_PTHREAD_SIGMASK=0;
  16142. REPLACE_RAISE=0;
  16143. ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
  16144. #include <signal.h>
  16145. /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
  16146. #include <sys/types.h>
  16147. "
  16148. if test "x$ac_cv_type_sigset_t" = x""yes; then :
  16149. cat >>confdefs.h <<_ACEOF
  16150. #define HAVE_SIGSET_T 1
  16151. _ACEOF
  16152. gl_cv_type_sigset_t=yes
  16153. else
  16154. gl_cv_type_sigset_t=no
  16155. fi
  16156. if test $gl_cv_type_sigset_t != yes; then
  16157. HAVE_SIGSET_T=0
  16158. fi
  16159. if test $ac_cv_header_sys_socket_h = no; then
  16160. for ac_header in ws2tcpip.h
  16161. do :
  16162. ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
  16163. if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
  16164. cat >>confdefs.h <<_ACEOF
  16165. #define HAVE_WS2TCPIP_H 1
  16166. _ACEOF
  16167. fi
  16168. done
  16169. fi
  16170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  16171. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  16172. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  16173. $as_echo_n "(cached) " >&6
  16174. else
  16175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16176. /* end confdefs.h. */
  16177. #include <stdbool.h>
  16178. #ifndef bool
  16179. "error: bool is not defined"
  16180. #endif
  16181. #ifndef false
  16182. "error: false is not defined"
  16183. #endif
  16184. #if false
  16185. "error: false is not 0"
  16186. #endif
  16187. #ifndef true
  16188. "error: true is not defined"
  16189. #endif
  16190. #if true != 1
  16191. "error: true is not 1"
  16192. #endif
  16193. #ifndef __bool_true_false_are_defined
  16194. "error: __bool_true_false_are_defined is not defined"
  16195. #endif
  16196. struct s { _Bool s: 1; _Bool t; } s;
  16197. char a[true == 1 ? 1 : -1];
  16198. char b[false == 0 ? 1 : -1];
  16199. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  16200. char d[(bool) 0.5 == true ? 1 : -1];
  16201. /* See body of main program for 'e'. */
  16202. char f[(_Bool) 0.0 == false ? 1 : -1];
  16203. char g[true];
  16204. char h[sizeof (_Bool)];
  16205. char i[sizeof s.t];
  16206. enum { j = false, k = true, l = false * true, m = true * 256 };
  16207. /* The following fails for
  16208. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  16209. _Bool n[m];
  16210. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  16211. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  16212. /* Catch a bug in an HP-UX C compiler. See
  16213. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  16214. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  16215. */
  16216. _Bool q = true;
  16217. _Bool *pq = &q;
  16218. int
  16219. main ()
  16220. {
  16221. bool e = &s;
  16222. *pq |= q;
  16223. *pq |= ! q;
  16224. /* Refer to every declared value, to avoid compiler optimizations. */
  16225. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  16226. + !m + !n + !o + !p + !q + !pq);
  16227. ;
  16228. return 0;
  16229. }
  16230. _ACEOF
  16231. if ac_fn_c_try_compile "$LINENO"; then :
  16232. ac_cv_header_stdbool_h=yes
  16233. else
  16234. ac_cv_header_stdbool_h=no
  16235. fi
  16236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16237. fi
  16238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  16239. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  16240. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  16241. if test "x$ac_cv_type__Bool" = x""yes; then :
  16242. cat >>confdefs.h <<_ACEOF
  16243. #define HAVE__BOOL 1
  16244. _ACEOF
  16245. fi
  16246. REPLACE_NULL=0;
  16247. HAVE_WCHAR_T=1;
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  16249. $as_echo_n "checking for wchar_t... " >&6; }
  16250. if test "${gt_cv_c_wchar_t+set}" = set; then :
  16251. $as_echo_n "(cached) " >&6
  16252. else
  16253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16254. /* end confdefs.h. */
  16255. #include <stddef.h>
  16256. wchar_t foo = (wchar_t)'\0';
  16257. int
  16258. main ()
  16259. {
  16260. ;
  16261. return 0;
  16262. }
  16263. _ACEOF
  16264. if ac_fn_c_try_compile "$LINENO"; then :
  16265. gt_cv_c_wchar_t=yes
  16266. else
  16267. gt_cv_c_wchar_t=no
  16268. fi
  16269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16270. fi
  16271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  16272. $as_echo "$gt_cv_c_wchar_t" >&6; }
  16273. if test $gt_cv_c_wchar_t = yes; then
  16274. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  16275. fi
  16276. GNULIB_DPRINTF=0;
  16277. GNULIB_FCLOSE=0;
  16278. GNULIB_FDOPEN=0;
  16279. GNULIB_FFLUSH=0;
  16280. GNULIB_FGETC=0;
  16281. GNULIB_FGETS=0;
  16282. GNULIB_FOPEN=0;
  16283. GNULIB_FPRINTF=0;
  16284. GNULIB_FPRINTF_POSIX=0;
  16285. GNULIB_FPURGE=0;
  16286. GNULIB_FPUTC=0;
  16287. GNULIB_FPUTS=0;
  16288. GNULIB_FREAD=0;
  16289. GNULIB_FREOPEN=0;
  16290. GNULIB_FSCANF=0;
  16291. GNULIB_FSEEK=0;
  16292. GNULIB_FSEEKO=0;
  16293. GNULIB_FTELL=0;
  16294. GNULIB_FTELLO=0;
  16295. GNULIB_FWRITE=0;
  16296. GNULIB_GETC=0;
  16297. GNULIB_GETCHAR=0;
  16298. GNULIB_GETDELIM=0;
  16299. GNULIB_GETLINE=0;
  16300. GNULIB_OBSTACK_PRINTF=0;
  16301. GNULIB_OBSTACK_PRINTF_POSIX=0;
  16302. GNULIB_PCLOSE=0;
  16303. GNULIB_PERROR=0;
  16304. GNULIB_POPEN=0;
  16305. GNULIB_PRINTF=0;
  16306. GNULIB_PRINTF_POSIX=0;
  16307. GNULIB_PUTC=0;
  16308. GNULIB_PUTCHAR=0;
  16309. GNULIB_PUTS=0;
  16310. GNULIB_REMOVE=0;
  16311. GNULIB_RENAME=0;
  16312. GNULIB_RENAMEAT=0;
  16313. GNULIB_SCANF=0;
  16314. GNULIB_SNPRINTF=0;
  16315. GNULIB_SPRINTF_POSIX=0;
  16316. GNULIB_STDIO_H_NONBLOCKING=0;
  16317. GNULIB_STDIO_H_SIGPIPE=0;
  16318. GNULIB_TMPFILE=0;
  16319. GNULIB_VASPRINTF=0;
  16320. GNULIB_VFSCANF=0;
  16321. GNULIB_VSCANF=0;
  16322. GNULIB_VDPRINTF=0;
  16323. GNULIB_VFPRINTF=0;
  16324. GNULIB_VFPRINTF_POSIX=0;
  16325. GNULIB_VPRINTF=0;
  16326. GNULIB_VPRINTF_POSIX=0;
  16327. GNULIB_VSNPRINTF=0;
  16328. GNULIB_VSPRINTF_POSIX=0;
  16329. HAVE_DECL_FPURGE=1;
  16330. HAVE_DECL_FSEEKO=1;
  16331. HAVE_DECL_FTELLO=1;
  16332. HAVE_DECL_GETDELIM=1;
  16333. HAVE_DECL_GETLINE=1;
  16334. HAVE_DECL_OBSTACK_PRINTF=1;
  16335. HAVE_DECL_SNPRINTF=1;
  16336. HAVE_DECL_VSNPRINTF=1;
  16337. HAVE_DPRINTF=1;
  16338. HAVE_FSEEKO=1;
  16339. HAVE_FTELLO=1;
  16340. HAVE_PCLOSE=1;
  16341. HAVE_POPEN=1;
  16342. HAVE_RENAMEAT=1;
  16343. HAVE_VASPRINTF=1;
  16344. HAVE_VDPRINTF=1;
  16345. REPLACE_DPRINTF=0;
  16346. REPLACE_FCLOSE=0;
  16347. REPLACE_FDOPEN=0;
  16348. REPLACE_FFLUSH=0;
  16349. REPLACE_FOPEN=0;
  16350. REPLACE_FPRINTF=0;
  16351. REPLACE_FPURGE=0;
  16352. REPLACE_FREOPEN=0;
  16353. REPLACE_FSEEK=0;
  16354. REPLACE_FSEEKO=0;
  16355. REPLACE_FTELL=0;
  16356. REPLACE_FTELLO=0;
  16357. REPLACE_GETDELIM=0;
  16358. REPLACE_GETLINE=0;
  16359. REPLACE_OBSTACK_PRINTF=0;
  16360. REPLACE_PERROR=0;
  16361. REPLACE_POPEN=0;
  16362. REPLACE_PRINTF=0;
  16363. REPLACE_REMOVE=0;
  16364. REPLACE_RENAME=0;
  16365. REPLACE_RENAMEAT=0;
  16366. REPLACE_SNPRINTF=0;
  16367. REPLACE_SPRINTF=0;
  16368. REPLACE_STDIO_READ_FUNCS=0;
  16369. REPLACE_STDIO_WRITE_FUNCS=0;
  16370. REPLACE_TMPFILE=0;
  16371. REPLACE_VASPRINTF=0;
  16372. REPLACE_VDPRINTF=0;
  16373. REPLACE_VFPRINTF=0;
  16374. REPLACE_VPRINTF=0;
  16375. REPLACE_VSNPRINTF=0;
  16376. REPLACE_VSPRINTF=0;
  16377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  16378. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  16379. if test "${ac_cv_struct_tm+set}" = set; then :
  16380. $as_echo_n "(cached) " >&6
  16381. else
  16382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16383. /* end confdefs.h. */
  16384. #include <sys/types.h>
  16385. #include <time.h>
  16386. int
  16387. main ()
  16388. {
  16389. struct tm tm;
  16390. int *p = &tm.tm_sec;
  16391. return !p;
  16392. ;
  16393. return 0;
  16394. }
  16395. _ACEOF
  16396. if ac_fn_c_try_compile "$LINENO"; then :
  16397. ac_cv_struct_tm=time.h
  16398. else
  16399. ac_cv_struct_tm=sys/time.h
  16400. fi
  16401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16402. fi
  16403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  16404. $as_echo "$ac_cv_struct_tm" >&6; }
  16405. if test $ac_cv_struct_tm = sys/time.h; then
  16406. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  16407. fi
  16408. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  16409. #include <$ac_cv_struct_tm>
  16410. "
  16411. if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
  16412. cat >>confdefs.h <<_ACEOF
  16413. #define HAVE_STRUCT_TM_TM_ZONE 1
  16414. _ACEOF
  16415. fi
  16416. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  16417. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  16418. else
  16419. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  16420. "
  16421. if test "x$ac_cv_have_decl_tzname" = x""yes; then :
  16422. ac_have_decl=1
  16423. else
  16424. ac_have_decl=0
  16425. fi
  16426. cat >>confdefs.h <<_ACEOF
  16427. #define HAVE_DECL_TZNAME $ac_have_decl
  16428. _ACEOF
  16429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  16430. $as_echo_n "checking for tzname... " >&6; }
  16431. if test "${ac_cv_var_tzname+set}" = set; then :
  16432. $as_echo_n "(cached) " >&6
  16433. else
  16434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16435. /* end confdefs.h. */
  16436. #include <time.h>
  16437. #if !HAVE_DECL_TZNAME
  16438. extern char *tzname[];
  16439. #endif
  16440. int
  16441. main ()
  16442. {
  16443. return tzname[0][0];
  16444. ;
  16445. return 0;
  16446. }
  16447. _ACEOF
  16448. if ac_fn_c_try_link "$LINENO"; then :
  16449. ac_cv_var_tzname=yes
  16450. else
  16451. ac_cv_var_tzname=no
  16452. fi
  16453. rm -f core conftest.err conftest.$ac_objext \
  16454. conftest$ac_exeext conftest.$ac_ext
  16455. fi
  16456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  16457. $as_echo "$ac_cv_var_tzname" >&6; }
  16458. if test $ac_cv_var_tzname = yes; then
  16459. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  16460. fi
  16461. fi
  16462. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  16463. "
  16464. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
  16465. $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
  16466. fi
  16467. ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
  16468. if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
  16469. ac_have_decl=1
  16470. else
  16471. ac_have_decl=0
  16472. fi
  16473. cat >>confdefs.h <<_ACEOF
  16474. #define HAVE_DECL_STRTOIMAX $ac_have_decl
  16475. _ACEOF
  16476. ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
  16477. if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
  16478. ac_have_decl=1
  16479. else
  16480. ac_have_decl=0
  16481. fi
  16482. cat >>confdefs.h <<_ACEOF
  16483. #define HAVE_DECL_STRTOUMAX $ac_have_decl
  16484. _ACEOF
  16485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  16486. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  16487. if test "${ac_cv_header_stat_broken+set}" = set; then :
  16488. $as_echo_n "(cached) " >&6
  16489. else
  16490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16491. /* end confdefs.h. */
  16492. #include <sys/types.h>
  16493. #include <sys/stat.h>
  16494. #if defined S_ISBLK && defined S_IFDIR
  16495. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  16496. #endif
  16497. #if defined S_ISBLK && defined S_IFCHR
  16498. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  16499. #endif
  16500. #if defined S_ISLNK && defined S_IFREG
  16501. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  16502. #endif
  16503. #if defined S_ISSOCK && defined S_IFREG
  16504. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  16505. #endif
  16506. _ACEOF
  16507. if ac_fn_c_try_compile "$LINENO"; then :
  16508. ac_cv_header_stat_broken=no
  16509. else
  16510. ac_cv_header_stat_broken=yes
  16511. fi
  16512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16513. fi
  16514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  16515. $as_echo "$ac_cv_header_stat_broken" >&6; }
  16516. if test $ac_cv_header_stat_broken = yes; then
  16517. $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
  16518. fi
  16519. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  16520. if test "x$ac_cv_type_mode_t" = x""yes; then :
  16521. else
  16522. cat >>confdefs.h <<_ACEOF
  16523. #define mode_t int
  16524. _ACEOF
  16525. fi
  16526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  16527. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  16528. if test "${ac_cv_c_restrict+set}" = set; then :
  16529. $as_echo_n "(cached) " >&6
  16530. else
  16531. ac_cv_c_restrict=no
  16532. # The order here caters to the fact that C++ does not require restrict.
  16533. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  16534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16535. /* end confdefs.h. */
  16536. typedef int * int_ptr;
  16537. int foo (int_ptr $ac_kw ip) {
  16538. return ip[0];
  16539. }
  16540. int
  16541. main ()
  16542. {
  16543. int s[1];
  16544. int * $ac_kw t = s;
  16545. t[0] = 0;
  16546. return foo(t)
  16547. ;
  16548. return 0;
  16549. }
  16550. _ACEOF
  16551. if ac_fn_c_try_compile "$LINENO"; then :
  16552. ac_cv_c_restrict=$ac_kw
  16553. fi
  16554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16555. test "$ac_cv_c_restrict" != no && break
  16556. done
  16557. fi
  16558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  16559. $as_echo "$ac_cv_c_restrict" >&6; }
  16560. case $ac_cv_c_restrict in
  16561. restrict) ;;
  16562. no) $as_echo "#define restrict /**/" >>confdefs.h
  16563. ;;
  16564. *) cat >>confdefs.h <<_ACEOF
  16565. #define restrict $ac_cv_c_restrict
  16566. _ACEOF
  16567. ;;
  16568. esac
  16569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
  16570. $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
  16571. if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
  16572. $as_echo_n "(cached) " >&6
  16573. else
  16574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16575. /* end confdefs.h. */
  16576. #include <time.h>
  16577. int
  16578. main ()
  16579. {
  16580. static struct timespec x; x.tv_sec = x.tv_nsec;
  16581. ;
  16582. return 0;
  16583. }
  16584. _ACEOF
  16585. if ac_fn_c_try_compile "$LINENO"; then :
  16586. gl_cv_sys_struct_timespec_in_time_h=yes
  16587. else
  16588. gl_cv_sys_struct_timespec_in_time_h=no
  16589. fi
  16590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16591. fi
  16592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
  16593. $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
  16594. TIME_H_DEFINES_STRUCT_TIMESPEC=0
  16595. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
  16596. PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
  16597. if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
  16598. TIME_H_DEFINES_STRUCT_TIMESPEC=1
  16599. else
  16600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
  16601. $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
  16602. if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
  16603. $as_echo_n "(cached) " >&6
  16604. else
  16605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16606. /* end confdefs.h. */
  16607. #include <sys/time.h>
  16608. int
  16609. main ()
  16610. {
  16611. static struct timespec x; x.tv_sec = x.tv_nsec;
  16612. ;
  16613. return 0;
  16614. }
  16615. _ACEOF
  16616. if ac_fn_c_try_compile "$LINENO"; then :
  16617. gl_cv_sys_struct_timespec_in_sys_time_h=yes
  16618. else
  16619. gl_cv_sys_struct_timespec_in_sys_time_h=no
  16620. fi
  16621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16622. fi
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
  16624. $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
  16625. if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
  16626. SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
  16627. else
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
  16629. $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
  16630. if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
  16631. $as_echo_n "(cached) " >&6
  16632. else
  16633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16634. /* end confdefs.h. */
  16635. #include <pthread.h>
  16636. int
  16637. main ()
  16638. {
  16639. static struct timespec x; x.tv_sec = x.tv_nsec;
  16640. ;
  16641. return 0;
  16642. }
  16643. _ACEOF
  16644. if ac_fn_c_try_compile "$LINENO"; then :
  16645. gl_cv_sys_struct_timespec_in_pthread_h=yes
  16646. else
  16647. gl_cv_sys_struct_timespec_in_pthread_h=no
  16648. fi
  16649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16650. fi
  16651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
  16652. $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
  16653. if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
  16654. PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
  16655. fi
  16656. fi
  16657. fi
  16658. if test $gl_cv_have_include_next = yes; then
  16659. gl_cv_next_time_h='<'time.h'>'
  16660. else
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
  16662. $as_echo_n "checking absolute name of <time.h>... " >&6; }
  16663. if test "${gl_cv_next_time_h+set}" = set; then :
  16664. $as_echo_n "(cached) " >&6
  16665. else
  16666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16667. /* end confdefs.h. */
  16668. #include <time.h>
  16669. _ACEOF
  16670. case "$host_os" in
  16671. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  16672. *) gl_absname_cpp="$ac_cpp" ;;
  16673. esac
  16674. case "$host_os" in
  16675. mingw*)
  16676. gl_dirsep_regex='[/\\]'
  16677. ;;
  16678. *)
  16679. gl_dirsep_regex='/'
  16680. ;;
  16681. esac
  16682. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'time.h|{
  16683. s|.*"\(.*'"${gl_dirsep_regex}"'time.h\)".*|\1|
  16684. s|^/[^/]|//&|
  16685. p
  16686. q
  16687. }'
  16688. gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  16689. sed -n "$gl_absolute_header_sed"`'"'
  16690. fi
  16691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
  16692. $as_echo "$gl_cv_next_time_h" >&6; }
  16693. fi
  16694. NEXT_TIME_H=$gl_cv_next_time_h
  16695. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  16696. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  16697. gl_next_as_first_directive='<'time.h'>'
  16698. else
  16699. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  16700. gl_next_as_first_directive=$gl_cv_next_time_h
  16701. fi
  16702. NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
  16703. ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
  16704. if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
  16705. ac_have_decl=1
  16706. else
  16707. ac_have_decl=0
  16708. fi
  16709. cat >>confdefs.h <<_ACEOF
  16710. #define HAVE_DECL_LOCALTIME_R $ac_have_decl
  16711. _ACEOF
  16712. if false; then
  16713. GL_COND_LIBTOOL_TRUE=
  16714. GL_COND_LIBTOOL_FALSE='#'
  16715. else
  16716. GL_COND_LIBTOOL_TRUE='#'
  16717. GL_COND_LIBTOOL_FALSE=
  16718. fi
  16719. gl_cond_libtool=false
  16720. gl_libdeps=
  16721. gl_ltlibdeps=
  16722. gl_m4_base='m4'
  16723. gl_source_base='lib'
  16724. if test $ac_cv_func_alloca_works = no; then
  16725. :
  16726. fi
  16727. # Define an additional variable used in the Makefile substitution.
  16728. if test $ac_cv_working_alloca_h = yes; then
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
  16730. $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
  16731. if test "${gl_cv_rpl_alloca+set}" = set; then :
  16732. $as_echo_n "(cached) " >&6
  16733. else
  16734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. #if defined __GNUC__ || defined _AIX || defined _MSC_VER
  16737. Need own alloca
  16738. #endif
  16739. _ACEOF
  16740. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16741. $EGREP "Need own alloca" >/dev/null 2>&1; then :
  16742. gl_cv_rpl_alloca=yes
  16743. else
  16744. gl_cv_rpl_alloca=no
  16745. fi
  16746. rm -f conftest*
  16747. fi
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
  16749. $as_echo "$gl_cv_rpl_alloca" >&6; }
  16750. if test $gl_cv_rpl_alloca = yes; then
  16751. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  16752. ALLOCA_H=alloca.h
  16753. else
  16754. ALLOCA_H=
  16755. fi
  16756. else
  16757. ALLOCA_H=alloca.h
  16758. fi
  16759. if test -n "$ALLOCA_H"; then
  16760. GL_GENERATE_ALLOCA_H_TRUE=
  16761. GL_GENERATE_ALLOCA_H_FALSE='#'
  16762. else
  16763. GL_GENERATE_ALLOCA_H_TRUE='#'
  16764. GL_GENERATE_ALLOCA_H_FALSE=
  16765. fi
  16766. :
  16767. :
  16768. $as_echo "#define HAVE_DUP2 1" >>confdefs.h
  16769. if test $HAVE_DUP2 = 1; then
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
  16771. $as_echo_n "checking whether dup2 works... " >&6; }
  16772. if test "${gl_cv_func_dup2_works+set}" = set; then :
  16773. $as_echo_n "(cached) " >&6
  16774. else
  16775. if test "$cross_compiling" = yes; then :
  16776. case "$host_os" in
  16777. mingw*) # on this platform, dup2 always returns 0 for success
  16778. gl_cv_func_dup2_works=no;;
  16779. cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
  16780. gl_cv_func_dup2_works=no;;
  16781. linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
  16782. # closed fd may yield -EBADF instead of -1 / errno=EBADF.
  16783. gl_cv_func_dup2_works=no;;
  16784. freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
  16785. gl_cv_func_dup2_works=no;;
  16786. haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
  16787. gl_cv_func_dup2_works=no;;
  16788. *) gl_cv_func_dup2_works=yes;;
  16789. esac
  16790. else
  16791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16792. /* end confdefs.h. */
  16793. #include <unistd.h>
  16794. #include <fcntl.h>
  16795. #include <errno.h>
  16796. int
  16797. main ()
  16798. {
  16799. int result = 0;
  16800. #ifdef FD_CLOEXEC
  16801. if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
  16802. result |= 1;
  16803. #endif
  16804. if (dup2 (1, 1) == 0)
  16805. result |= 2;
  16806. #ifdef FD_CLOEXEC
  16807. if (fcntl (1, F_GETFD) != FD_CLOEXEC)
  16808. result |= 4;
  16809. #endif
  16810. close (0);
  16811. if (dup2 (0, 0) != -1)
  16812. result |= 8;
  16813. /* Many gnulib modules require POSIX conformance of EBADF. */
  16814. if (dup2 (2, 1000000) == -1 && errno != EBADF)
  16815. result |= 16;
  16816. return result;
  16817. ;
  16818. return 0;
  16819. }
  16820. _ACEOF
  16821. if ac_fn_c_try_run "$LINENO"; then :
  16822. gl_cv_func_dup2_works=yes
  16823. else
  16824. gl_cv_func_dup2_works=no
  16825. fi
  16826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16827. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16828. fi
  16829. fi
  16830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
  16831. $as_echo "$gl_cv_func_dup2_works" >&6; }
  16832. if test "$gl_cv_func_dup2_works" = no; then
  16833. REPLACE_DUP2=1
  16834. fi
  16835. fi
  16836. if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
  16837. gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
  16838. fi
  16839. GNULIB_DUP2=1
  16840. # Persuade glibc <stdlib.h> to declare getloadavg().
  16841. gl_save_LIBS=$LIBS
  16842. # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
  16843. # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
  16844. HAVE_GETLOADAVG=1
  16845. ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
  16846. if test "x$ac_cv_func_getloadavg" = x""yes; then :
  16847. else
  16848. gl_func_getloadavg_done=no
  16849. # Some systems with -lutil have (and need) -lkvm as well, some do not.
  16850. # On Solaris, -lkvm requires nlist from -lelf, so check that first
  16851. # to get the right answer into the cache.
  16852. # For kstat on solaris, we need to test for libelf and libkvm to force the
  16853. # definition of SVR4 below.
  16854. if test $gl_func_getloadavg_done = no; then
  16855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
  16856. $as_echo_n "checking for elf_begin in -lelf... " >&6; }
  16857. if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
  16858. $as_echo_n "(cached) " >&6
  16859. else
  16860. ac_check_lib_save_LIBS=$LIBS
  16861. LIBS="-lelf $LIBS"
  16862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16863. /* end confdefs.h. */
  16864. /* Override any GCC internal prototype to avoid an error.
  16865. Use char because int might match the return type of a GCC
  16866. builtin and then its argument prototype would still apply. */
  16867. #ifdef __cplusplus
  16868. extern "C"
  16869. #endif
  16870. char elf_begin ();
  16871. int
  16872. main ()
  16873. {
  16874. return elf_begin ();
  16875. ;
  16876. return 0;
  16877. }
  16878. _ACEOF
  16879. if ac_fn_c_try_link "$LINENO"; then :
  16880. ac_cv_lib_elf_elf_begin=yes
  16881. else
  16882. ac_cv_lib_elf_elf_begin=no
  16883. fi
  16884. rm -f core conftest.err conftest.$ac_objext \
  16885. conftest$ac_exeext conftest.$ac_ext
  16886. LIBS=$ac_check_lib_save_LIBS
  16887. fi
  16888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
  16889. $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
  16890. if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
  16891. LIBS="-lelf $LIBS"
  16892. fi
  16893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
  16894. $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
  16895. if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
  16896. $as_echo_n "(cached) " >&6
  16897. else
  16898. ac_check_lib_save_LIBS=$LIBS
  16899. LIBS="-lkvm $LIBS"
  16900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16901. /* end confdefs.h. */
  16902. /* Override any GCC internal prototype to avoid an error.
  16903. Use char because int might match the return type of a GCC
  16904. builtin and then its argument prototype would still apply. */
  16905. #ifdef __cplusplus
  16906. extern "C"
  16907. #endif
  16908. char kvm_open ();
  16909. int
  16910. main ()
  16911. {
  16912. return kvm_open ();
  16913. ;
  16914. return 0;
  16915. }
  16916. _ACEOF
  16917. if ac_fn_c_try_link "$LINENO"; then :
  16918. ac_cv_lib_kvm_kvm_open=yes
  16919. else
  16920. ac_cv_lib_kvm_kvm_open=no
  16921. fi
  16922. rm -f core conftest.err conftest.$ac_objext \
  16923. conftest$ac_exeext conftest.$ac_ext
  16924. LIBS=$ac_check_lib_save_LIBS
  16925. fi
  16926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
  16927. $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
  16928. if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
  16929. LIBS="-lkvm $LIBS"
  16930. fi
  16931. # Check for the 4.4BSD definition of getloadavg.
  16932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
  16933. $as_echo_n "checking for getloadavg in -lutil... " >&6; }
  16934. if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
  16935. $as_echo_n "(cached) " >&6
  16936. else
  16937. ac_check_lib_save_LIBS=$LIBS
  16938. LIBS="-lutil $LIBS"
  16939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16940. /* end confdefs.h. */
  16941. /* Override any GCC internal prototype to avoid an error.
  16942. Use char because int might match the return type of a GCC
  16943. builtin and then its argument prototype would still apply. */
  16944. #ifdef __cplusplus
  16945. extern "C"
  16946. #endif
  16947. char getloadavg ();
  16948. int
  16949. main ()
  16950. {
  16951. return getloadavg ();
  16952. ;
  16953. return 0;
  16954. }
  16955. _ACEOF
  16956. if ac_fn_c_try_link "$LINENO"; then :
  16957. ac_cv_lib_util_getloadavg=yes
  16958. else
  16959. ac_cv_lib_util_getloadavg=no
  16960. fi
  16961. rm -f core conftest.err conftest.$ac_objext \
  16962. conftest$ac_exeext conftest.$ac_ext
  16963. LIBS=$ac_check_lib_save_LIBS
  16964. fi
  16965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
  16966. $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
  16967. if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
  16968. LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
  16969. fi
  16970. fi
  16971. if test $gl_func_getloadavg_done = no; then
  16972. # There is a commonly available library for RS/6000 AIX.
  16973. # Since it is not a standard part of AIX, it might be installed locally.
  16974. gl_getloadavg_LIBS=$LIBS
  16975. LIBS="-L/usr/local/lib $LIBS"
  16976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
  16977. $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
  16978. if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
  16979. $as_echo_n "(cached) " >&6
  16980. else
  16981. ac_check_lib_save_LIBS=$LIBS
  16982. LIBS="-lgetloadavg $LIBS"
  16983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16984. /* end confdefs.h. */
  16985. /* Override any GCC internal prototype to avoid an error.
  16986. Use char because int might match the return type of a GCC
  16987. builtin and then its argument prototype would still apply. */
  16988. #ifdef __cplusplus
  16989. extern "C"
  16990. #endif
  16991. char getloadavg ();
  16992. int
  16993. main ()
  16994. {
  16995. return getloadavg ();
  16996. ;
  16997. return 0;
  16998. }
  16999. _ACEOF
  17000. if ac_fn_c_try_link "$LINENO"; then :
  17001. ac_cv_lib_getloadavg_getloadavg=yes
  17002. else
  17003. ac_cv_lib_getloadavg_getloadavg=no
  17004. fi
  17005. rm -f core conftest.err conftest.$ac_objext \
  17006. conftest$ac_exeext conftest.$ac_ext
  17007. LIBS=$ac_check_lib_save_LIBS
  17008. fi
  17009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
  17010. $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
  17011. if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
  17012. LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
  17013. else
  17014. LIBS=$gl_getloadavg_LIBS
  17015. fi
  17016. fi
  17017. # Set up the replacement function if necessary.
  17018. if test $gl_func_getloadavg_done = no; then
  17019. HAVE_GETLOADAVG=0
  17020. # Solaris has libkstat which does not require root.
  17021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
  17022. $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
  17023. if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
  17024. $as_echo_n "(cached) " >&6
  17025. else
  17026. ac_check_lib_save_LIBS=$LIBS
  17027. LIBS="-lkstat $LIBS"
  17028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17029. /* end confdefs.h. */
  17030. /* Override any GCC internal prototype to avoid an error.
  17031. Use char because int might match the return type of a GCC
  17032. builtin and then its argument prototype would still apply. */
  17033. #ifdef __cplusplus
  17034. extern "C"
  17035. #endif
  17036. char kstat_open ();
  17037. int
  17038. main ()
  17039. {
  17040. return kstat_open ();
  17041. ;
  17042. return 0;
  17043. }
  17044. _ACEOF
  17045. if ac_fn_c_try_link "$LINENO"; then :
  17046. ac_cv_lib_kstat_kstat_open=yes
  17047. else
  17048. ac_cv_lib_kstat_kstat_open=no
  17049. fi
  17050. rm -f core conftest.err conftest.$ac_objext \
  17051. conftest$ac_exeext conftest.$ac_ext
  17052. LIBS=$ac_check_lib_save_LIBS
  17053. fi
  17054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
  17055. $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
  17056. if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
  17057. cat >>confdefs.h <<_ACEOF
  17058. #define HAVE_LIBKSTAT 1
  17059. _ACEOF
  17060. LIBS="-lkstat $LIBS"
  17061. fi
  17062. test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
  17063. # AIX has libperfstat which does not require root
  17064. if test $gl_func_getloadavg_done = no; then
  17065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
  17066. $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
  17067. if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
  17068. $as_echo_n "(cached) " >&6
  17069. else
  17070. ac_check_lib_save_LIBS=$LIBS
  17071. LIBS="-lperfstat $LIBS"
  17072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17073. /* end confdefs.h. */
  17074. /* Override any GCC internal prototype to avoid an error.
  17075. Use char because int might match the return type of a GCC
  17076. builtin and then its argument prototype would still apply. */
  17077. #ifdef __cplusplus
  17078. extern "C"
  17079. #endif
  17080. char perfstat_cpu_total ();
  17081. int
  17082. main ()
  17083. {
  17084. return perfstat_cpu_total ();
  17085. ;
  17086. return 0;
  17087. }
  17088. _ACEOF
  17089. if ac_fn_c_try_link "$LINENO"; then :
  17090. ac_cv_lib_perfstat_perfstat_cpu_total=yes
  17091. else
  17092. ac_cv_lib_perfstat_perfstat_cpu_total=no
  17093. fi
  17094. rm -f core conftest.err conftest.$ac_objext \
  17095. conftest$ac_exeext conftest.$ac_ext
  17096. LIBS=$ac_check_lib_save_LIBS
  17097. fi
  17098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
  17099. $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
  17100. if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
  17101. cat >>confdefs.h <<_ACEOF
  17102. #define HAVE_LIBPERFSTAT 1
  17103. _ACEOF
  17104. LIBS="-lperfstat $LIBS"
  17105. fi
  17106. test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
  17107. fi
  17108. if test $gl_func_getloadavg_done = no; then
  17109. ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
  17110. if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
  17111. gl_func_getloadavg_done=yes
  17112. $as_echo "#define DGUX 1" >>confdefs.h
  17113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
  17114. $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
  17115. if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
  17116. $as_echo_n "(cached) " >&6
  17117. else
  17118. ac_check_lib_save_LIBS=$LIBS
  17119. LIBS="-ldgc $LIBS"
  17120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17121. /* end confdefs.h. */
  17122. /* Override any GCC internal prototype to avoid an error.
  17123. Use char because int might match the return type of a GCC
  17124. builtin and then its argument prototype would still apply. */
  17125. #ifdef __cplusplus
  17126. extern "C"
  17127. #endif
  17128. char dg_sys_info ();
  17129. int
  17130. main ()
  17131. {
  17132. return dg_sys_info ();
  17133. ;
  17134. return 0;
  17135. }
  17136. _ACEOF
  17137. if ac_fn_c_try_link "$LINENO"; then :
  17138. ac_cv_lib_dgc_dg_sys_info=yes
  17139. else
  17140. ac_cv_lib_dgc_dg_sys_info=no
  17141. fi
  17142. rm -f core conftest.err conftest.$ac_objext \
  17143. conftest$ac_exeext conftest.$ac_ext
  17144. LIBS=$ac_check_lib_save_LIBS
  17145. fi
  17146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
  17147. $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
  17148. if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
  17149. cat >>confdefs.h <<_ACEOF
  17150. #define HAVE_LIBDGC 1
  17151. _ACEOF
  17152. LIBS="-ldgc $LIBS"
  17153. fi
  17154. fi
  17155. fi
  17156. fi
  17157. fi
  17158. if test "x$gl_save_LIBS" = x; then
  17159. GETLOADAVG_LIBS=$LIBS
  17160. else
  17161. GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
  17162. fi
  17163. LIBS=$gl_save_LIBS
  17164. # Test whether the system declares getloadavg. Solaris has the function
  17165. # but declares it in <sys/loadavg.h>, not <stdlib.h>.
  17166. for ac_header in sys/loadavg.h
  17167. do :
  17168. ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
  17169. if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
  17170. cat >>confdefs.h <<_ACEOF
  17171. #define HAVE_SYS_LOADAVG_H 1
  17172. _ACEOF
  17173. fi
  17174. done
  17175. if test $ac_cv_header_sys_loadavg_h = yes; then
  17176. HAVE_SYS_LOADAVG_H=1
  17177. else
  17178. HAVE_SYS_LOADAVG_H=0
  17179. fi
  17180. ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
  17181. # include <sys/loadavg.h>
  17182. #endif
  17183. #include <stdlib.h>
  17184. "
  17185. if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
  17186. else
  17187. HAVE_DECL_GETLOADAVG=0
  17188. fi
  17189. if test $HAVE_GETLOADAVG = 0; then
  17190. gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
  17191. # Figure out what our getloadavg.c needs.
  17192. # On HPUX9, an unprivileged user can get load averages this way.
  17193. if test $gl_func_getloadavg_done = no; then
  17194. for ac_func in pstat_getdynamic
  17195. do :
  17196. ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
  17197. if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
  17198. cat >>confdefs.h <<_ACEOF
  17199. #define HAVE_PSTAT_GETDYNAMIC 1
  17200. _ACEOF
  17201. gl_func_getloadavg_done=yes
  17202. fi
  17203. done
  17204. fi
  17205. # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
  17206. # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
  17207. # Irix 4.0.5F has the header but not the library.
  17208. if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
  17209. && test "$ac_cv_lib_kvm_kvm_open" = yes; then
  17210. gl_func_getloadavg_done=yes
  17211. $as_echo "#define SVR4 1" >>confdefs.h
  17212. fi
  17213. if test $gl_func_getloadavg_done = no; then
  17214. ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
  17215. if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
  17216. gl_func_getloadavg_done=yes
  17217. $as_echo "#define UMAX 1" >>confdefs.h
  17218. $as_echo "#define UMAX4_3 1" >>confdefs.h
  17219. fi
  17220. fi
  17221. if test $gl_func_getloadavg_done = no; then
  17222. ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
  17223. if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
  17224. gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
  17225. fi
  17226. fi
  17227. if test $gl_func_getloadavg_done = no; then
  17228. for ac_header in mach/mach.h
  17229. do :
  17230. ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
  17231. if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
  17232. cat >>confdefs.h <<_ACEOF
  17233. #define HAVE_MACH_MACH_H 1
  17234. _ACEOF
  17235. fi
  17236. done
  17237. fi
  17238. for ac_header in nlist.h
  17239. do :
  17240. ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
  17241. if test "x$ac_cv_header_nlist_h" = x""yes; then :
  17242. cat >>confdefs.h <<_ACEOF
  17243. #define HAVE_NLIST_H 1
  17244. _ACEOF
  17245. ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
  17246. "
  17247. if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
  17248. cat >>confdefs.h <<_ACEOF
  17249. #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
  17250. _ACEOF
  17251. fi
  17252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17253. /* end confdefs.h. */
  17254. #include <nlist.h>
  17255. int
  17256. main ()
  17257. {
  17258. struct nlist x;
  17259. #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
  17260. x.n_un.n_name = "";
  17261. #else
  17262. x.n_name = "";
  17263. #endif
  17264. ;
  17265. return 0;
  17266. }
  17267. _ACEOF
  17268. if ac_fn_c_try_link "$LINENO"; then :
  17269. $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
  17270. fi
  17271. rm -f core conftest.err conftest.$ac_objext \
  17272. conftest$ac_exeext conftest.$ac_ext
  17273. fi
  17274. done
  17275. fi
  17276. GNULIB_GETLOADAVG=1
  17277. if test $REPLACE_GETOPT = 1; then
  17278. gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
  17279. gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
  17280. fi
  17281. REPLACE_GETOPT=0
  17282. if test -n "$gl_replace_getopt"; then :
  17283. REPLACE_GETOPT=1
  17284. fi
  17285. if test $REPLACE_GETOPT = 1; then
  17286. GETOPT_H=getopt.h
  17287. $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
  17288. GNULIB_UNISTD_H_GETOPT=1
  17289. fi
  17290. if test $REPLACE_GETOPT = 1; then
  17291. gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
  17292. gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
  17293. fi
  17294. if test $ac_cv_func_lstat = yes; then
  17295. if test $gl_cv_func_lstat_dereferences_slashed_symlink = no; then
  17296. REPLACE_LSTAT=1
  17297. fi
  17298. else
  17299. HAVE_LSTAT=0
  17300. fi
  17301. if test $REPLACE_LSTAT = 1; then
  17302. gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
  17303. :
  17304. fi
  17305. GNULIB_LSTAT=1
  17306. if test $APPLE_UNIVERSAL_BUILD = 1; then
  17307. # A universal build on Apple MacOS X platforms.
  17308. # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
  17309. # But we need a configuration result that is valid in both modes.
  17310. gl_cv_func_working_mktime=no
  17311. fi
  17312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  17313. $as_echo_n "checking for working mktime... " >&6; }
  17314. if test "${gl_cv_func_working_mktime+set}" = set; then :
  17315. $as_echo_n "(cached) " >&6
  17316. else
  17317. if test "$cross_compiling" = yes; then :
  17318. gl_cv_func_working_mktime=no
  17319. else
  17320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17321. /* end confdefs.h. */
  17322. /* Test program from Paul Eggert and Tony Leneis. */
  17323. #include <limits.h>
  17324. #include <stdlib.h>
  17325. #include <time.h>
  17326. #ifdef HAVE_UNISTD_H
  17327. # include <unistd.h>
  17328. #endif
  17329. #ifndef HAVE_ALARM
  17330. # define alarm(X) /* empty */
  17331. #endif
  17332. /* Work around redefinition to rpl_putenv by other config tests. */
  17333. #undef putenv
  17334. static time_t time_t_max;
  17335. static time_t time_t_min;
  17336. /* Values we'll use to set the TZ environment variable. */
  17337. static char *tz_strings[] = {
  17338. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17339. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17340. };
  17341. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17342. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17343. Based on a problem report from Andreas Jaeger. */
  17344. static int
  17345. spring_forward_gap ()
  17346. {
  17347. /* glibc (up to about 1998-10-07) failed this test. */
  17348. struct tm tm;
  17349. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17350. instead of "TZ=America/Vancouver" in order to detect the bug even
  17351. on systems that don't support the Olson extension, or don't have the
  17352. full zoneinfo tables installed. */
  17353. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17354. tm.tm_year = 98;
  17355. tm.tm_mon = 3;
  17356. tm.tm_mday = 5;
  17357. tm.tm_hour = 2;
  17358. tm.tm_min = 0;
  17359. tm.tm_sec = 0;
  17360. tm.tm_isdst = -1;
  17361. return mktime (&tm) != (time_t) -1;
  17362. }
  17363. static int
  17364. mktime_test1 (time_t now)
  17365. {
  17366. struct tm *lt;
  17367. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17368. }
  17369. static int
  17370. mktime_test (time_t now)
  17371. {
  17372. return (mktime_test1 (now)
  17373. && mktime_test1 ((time_t) (time_t_max - now))
  17374. && mktime_test1 ((time_t) (time_t_min + now)));
  17375. }
  17376. static int
  17377. irix_6_4_bug ()
  17378. {
  17379. /* Based on code from Ariel Faigon. */
  17380. struct tm tm;
  17381. tm.tm_year = 96;
  17382. tm.tm_mon = 3;
  17383. tm.tm_mday = 0;
  17384. tm.tm_hour = 0;
  17385. tm.tm_min = 0;
  17386. tm.tm_sec = 0;
  17387. tm.tm_isdst = -1;
  17388. mktime (&tm);
  17389. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17390. }
  17391. static int
  17392. bigtime_test (int j)
  17393. {
  17394. struct tm tm;
  17395. time_t now;
  17396. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17397. now = mktime (&tm);
  17398. if (now != (time_t) -1)
  17399. {
  17400. struct tm *lt = localtime (&now);
  17401. if (! (lt
  17402. && lt->tm_year == tm.tm_year
  17403. && lt->tm_mon == tm.tm_mon
  17404. && lt->tm_mday == tm.tm_mday
  17405. && lt->tm_hour == tm.tm_hour
  17406. && lt->tm_min == tm.tm_min
  17407. && lt->tm_sec == tm.tm_sec
  17408. && lt->tm_yday == tm.tm_yday
  17409. && lt->tm_wday == tm.tm_wday
  17410. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17411. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17412. return 0;
  17413. }
  17414. return 1;
  17415. }
  17416. static int
  17417. year_2050_test ()
  17418. {
  17419. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17420. ignoring leap seconds. */
  17421. unsigned long int answer = 2527315200UL;
  17422. struct tm tm;
  17423. time_t t;
  17424. tm.tm_year = 2050 - 1900;
  17425. tm.tm_mon = 2 - 1;
  17426. tm.tm_mday = 1;
  17427. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17428. tm.tm_isdst = -1;
  17429. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17430. instead of "TZ=America/Vancouver" in order to detect the bug even
  17431. on systems that don't support the Olson extension, or don't have the
  17432. full zoneinfo tables installed. */
  17433. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17434. t = mktime (&tm);
  17435. /* Check that the result is either a failure, or close enough
  17436. to the correct answer that we can assume the discrepancy is
  17437. due to leap seconds. */
  17438. return (t == (time_t) -1
  17439. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17440. }
  17441. int
  17442. main ()
  17443. {
  17444. int result = 0;
  17445. time_t t, delta;
  17446. int i, j;
  17447. int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
  17448. int time_t_signed = ! ((time_t) 0 < (time_t) -1);
  17449. /* This test makes some buggy mktime implementations loop.
  17450. Give up after 60 seconds; a mktime slower than that
  17451. isn't worth using anyway. */
  17452. alarm (60);
  17453. time_t_max = (! time_t_signed
  17454. ? (time_t) -1
  17455. : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
  17456. * 2 + 1));
  17457. time_t_min = (! time_t_signed
  17458. ? (time_t) 0
  17459. : time_t_signed_magnitude
  17460. ? ~ (time_t) 0
  17461. : ~ time_t_max);
  17462. delta = time_t_max / 997; /* a suitable prime number */
  17463. for (i = 0; i < N_STRINGS; i++)
  17464. {
  17465. if (tz_strings[i])
  17466. putenv (tz_strings[i]);
  17467. for (t = 0; t <= time_t_max - delta; t += delta)
  17468. if (! mktime_test (t))
  17469. result |= 1;
  17470. if (! (mktime_test ((time_t) 1)
  17471. && mktime_test ((time_t) (60 * 60))
  17472. && mktime_test ((time_t) (60 * 60 * 24))))
  17473. result |= 2;
  17474. for (j = 1; ; j <<= 1)
  17475. if (! bigtime_test (j))
  17476. result |= 4;
  17477. else if (INT_MAX / 2 < j)
  17478. break;
  17479. if (! bigtime_test (INT_MAX))
  17480. result |= 8;
  17481. }
  17482. if (! irix_6_4_bug ())
  17483. result |= 16;
  17484. if (! spring_forward_gap ())
  17485. result |= 32;
  17486. if (! year_2050_test ())
  17487. result |= 64;
  17488. return result;
  17489. }
  17490. _ACEOF
  17491. if ac_fn_c_try_run "$LINENO"; then :
  17492. gl_cv_func_working_mktime=yes
  17493. else
  17494. gl_cv_func_working_mktime=no
  17495. fi
  17496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17497. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17498. fi
  17499. fi
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
  17501. $as_echo "$gl_cv_func_working_mktime" >&6; }
  17502. if test $gl_cv_func_working_mktime = no; then
  17503. REPLACE_MKTIME=1
  17504. else
  17505. REPLACE_MKTIME=0
  17506. fi
  17507. if test $REPLACE_MKTIME = 1; then
  17508. gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
  17509. fi
  17510. GNULIB_MKTIME=1
  17511. LIB_PTHREAD_SIGMASK=
  17512. if test $ac_cv_func_pthread_sigmask = yes; then
  17513. :
  17514. else
  17515. HAVE_PTHREAD_SIGMASK=0
  17516. REPLACE_PTHREAD_SIGMASK=1
  17517. fi
  17518. if test $HAVE_PTHREAD_SIGMASK = 1; then
  17519. if test -z "$LIB_PTHREAD_SIGMASK"; then
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
  17521. $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
  17522. if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
  17523. $as_echo_n "(cached) " >&6
  17524. else
  17525. if test "$cross_compiling" = yes; then :
  17526. case "$host_os" in
  17527. freebsd* | hpux* | solaris | solaris2.[2-9]*)
  17528. gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
  17529. *)
  17530. gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
  17531. esac
  17532. else
  17533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17534. /* end confdefs.h. */
  17535. #include <pthread.h>
  17536. #include <signal.h>
  17537. #include <stddef.h>
  17538. int main ()
  17539. {
  17540. sigset_t set;
  17541. sigemptyset (&set);
  17542. return pthread_sigmask (1729, &set, NULL) != 0;
  17543. }
  17544. _ACEOF
  17545. if ac_fn_c_try_run "$LINENO"; then :
  17546. gl_cv_func_pthread_sigmask_in_libc_works=no
  17547. else
  17548. gl_cv_func_pthread_sigmask_in_libc_works=yes
  17549. fi
  17550. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17551. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17552. fi
  17553. fi
  17554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
  17555. $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
  17556. case "$gl_cv_func_pthread_sigmask_in_libc_works" in
  17557. *no)
  17558. REPLACE_PTHREAD_SIGMASK=1
  17559. $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
  17560. ;;
  17561. esac
  17562. fi
  17563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
  17564. $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
  17565. if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
  17566. $as_echo_n "(cached) " >&6
  17567. else
  17568. gl_save_LIBS="$LIBS"
  17569. LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
  17570. if test "$cross_compiling" = yes; then :
  17571. case "$host_os" in
  17572. cygwin*)
  17573. gl_cv_func_pthread_sigmask_return_works="guessing no";;
  17574. *)
  17575. gl_cv_func_pthread_sigmask_return_works="guessing yes";;
  17576. esac
  17577. else
  17578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17579. /* end confdefs.h. */
  17580. #include <pthread.h>
  17581. #include <signal.h>
  17582. #include <stddef.h>
  17583. int main ()
  17584. {
  17585. sigset_t set;
  17586. sigemptyset (&set);
  17587. if (pthread_sigmask (1729, &set, NULL) == -1)
  17588. return 1;
  17589. return 0;
  17590. }
  17591. _ACEOF
  17592. if ac_fn_c_try_run "$LINENO"; then :
  17593. gl_cv_func_pthread_sigmask_return_works=yes
  17594. else
  17595. gl_cv_func_pthread_sigmask_return_works=no
  17596. fi
  17597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17599. fi
  17600. LIBS="$gl_save_LIBS"
  17601. fi
  17602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
  17603. $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
  17604. case "$gl_cv_func_pthread_sigmask_return_works" in
  17605. *no)
  17606. REPLACE_PTHREAD_SIGMASK=1
  17607. $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
  17608. ;;
  17609. esac
  17610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
  17611. $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
  17612. if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
  17613. $as_echo_n "(cached) " >&6
  17614. else
  17615. case "$host_os" in
  17616. irix*)
  17617. gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
  17618. *)
  17619. gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
  17620. esac
  17621. gl_save_LIBS="$LIBS"
  17622. LIBS="$LIBS $LIBMULTITHREAD"
  17623. if test "$cross_compiling" = yes; then :
  17624. :
  17625. else
  17626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17627. /* end confdefs.h. */
  17628. #include <pthread.h>
  17629. #include <signal.h>
  17630. #include <stdio.h>
  17631. #include <stdlib.h>
  17632. #include <unistd.h>
  17633. static volatile int sigint_occurred;
  17634. static void
  17635. sigint_handler (int sig)
  17636. {
  17637. sigint_occurred++;
  17638. }
  17639. int main ()
  17640. {
  17641. sigset_t set;
  17642. int pid = getpid ();
  17643. char command[80];
  17644. signal (SIGINT, sigint_handler);
  17645. sigemptyset (&set);
  17646. sigaddset (&set, SIGINT);
  17647. if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
  17648. return 1;
  17649. sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
  17650. if (!(system (command) == 0))
  17651. return 2;
  17652. sleep (2);
  17653. if (!(sigint_occurred == 0))
  17654. return 3;
  17655. if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
  17656. return 4;
  17657. if (!(sigint_occurred == 1)) /* This fails on IRIX. */
  17658. return 5;
  17659. return 0;
  17660. }
  17661. _ACEOF
  17662. if ac_fn_c_try_run "$LINENO"; then :
  17663. :
  17664. else
  17665. gl_cv_func_pthread_sigmask_unblock_works=no
  17666. fi
  17667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17669. fi
  17670. LIBS="$gl_save_LIBS"
  17671. fi
  17672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
  17673. $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
  17674. case "$gl_cv_func_pthread_sigmask_unblock_works" in
  17675. *no)
  17676. REPLACE_PTHREAD_SIGMASK=1
  17677. $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
  17678. ;;
  17679. esac
  17680. fi
  17681. if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
  17682. gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
  17683. if test $HAVE_PTHREAD_SIGMASK = 1; then
  17684. $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
  17685. fi
  17686. fi
  17687. GNULIB_PTHREAD_SIGMASK=1
  17688. if test $ac_cv_func_readlink = no; then
  17689. HAVE_READLINK=0
  17690. else
  17691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
  17692. $as_echo_n "checking whether readlink signature is correct... " >&6; }
  17693. if test "${gl_cv_decl_readlink_works+set}" = set; then :
  17694. $as_echo_n "(cached) " >&6
  17695. else
  17696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17697. /* end confdefs.h. */
  17698. #include <unistd.h>
  17699. /* Cause compilation failure if original declaration has wrong type. */
  17700. ssize_t readlink (const char *, char *, size_t);
  17701. int
  17702. main ()
  17703. {
  17704. ;
  17705. return 0;
  17706. }
  17707. _ACEOF
  17708. if ac_fn_c_try_compile "$LINENO"; then :
  17709. gl_cv_decl_readlink_works=yes
  17710. else
  17711. gl_cv_decl_readlink_works=no
  17712. fi
  17713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17714. fi
  17715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
  17716. $as_echo "$gl_cv_decl_readlink_works" >&6; }
  17717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
  17718. $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
  17719. if test "${gl_cv_func_readlink_works+set}" = set; then :
  17720. $as_echo_n "(cached) " >&6
  17721. else
  17722. # We have readlink, so assume ln -s works.
  17723. ln -s conftest.no-such conftest.link
  17724. ln -s conftest.link conftest.lnk2
  17725. if test "$cross_compiling" = yes; then :
  17726. gl_cv_func_readlink_works="guessing no"
  17727. else
  17728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17729. /* end confdefs.h. */
  17730. #include <unistd.h>
  17731. int
  17732. main ()
  17733. {
  17734. char buf[20];
  17735. return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
  17736. ;
  17737. return 0;
  17738. }
  17739. _ACEOF
  17740. if ac_fn_c_try_run "$LINENO"; then :
  17741. gl_cv_func_readlink_works=yes
  17742. else
  17743. gl_cv_func_readlink_works=no
  17744. fi
  17745. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17746. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17747. fi
  17748. rm -f conftest.link conftest.lnk2
  17749. fi
  17750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
  17751. $as_echo "$gl_cv_func_readlink_works" >&6; }
  17752. if test "$gl_cv_func_readlink_works" != yes; then
  17753. $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
  17754. REPLACE_READLINK=1
  17755. elif test "$gl_cv_decl_readlink_works" != yes; then
  17756. REPLACE_READLINK=1
  17757. fi
  17758. fi
  17759. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  17760. gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
  17761. :
  17762. fi
  17763. GNULIB_READLINK=1
  17764. if test $gl_cv_have_include_next = yes; then
  17765. gl_cv_next_signal_h='<'signal.h'>'
  17766. else
  17767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
  17768. $as_echo_n "checking absolute name of <signal.h>... " >&6; }
  17769. if test "${gl_cv_next_signal_h+set}" = set; then :
  17770. $as_echo_n "(cached) " >&6
  17771. else
  17772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17773. /* end confdefs.h. */
  17774. #include <signal.h>
  17775. _ACEOF
  17776. case "$host_os" in
  17777. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  17778. *) gl_absname_cpp="$ac_cpp" ;;
  17779. esac
  17780. case "$host_os" in
  17781. mingw*)
  17782. gl_dirsep_regex='[/\\]'
  17783. ;;
  17784. *)
  17785. gl_dirsep_regex='/'
  17786. ;;
  17787. esac
  17788. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'signal.h|{
  17789. s|.*"\(.*'"${gl_dirsep_regex}"'signal.h\)".*|\1|
  17790. s|^/[^/]|//&|
  17791. p
  17792. q
  17793. }'
  17794. gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  17795. sed -n "$gl_absolute_header_sed"`'"'
  17796. fi
  17797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
  17798. $as_echo "$gl_cv_next_signal_h" >&6; }
  17799. fi
  17800. NEXT_SIGNAL_H=$gl_cv_next_signal_h
  17801. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  17802. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  17803. gl_next_as_first_directive='<'signal.h'>'
  17804. else
  17805. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  17806. gl_next_as_first_directive=$gl_cv_next_signal_h
  17807. fi
  17808. NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
  17809. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  17810. # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
  17811. ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
  17812. #include <signal.h>
  17813. "
  17814. if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
  17815. else
  17816. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
  17817. fi
  17818. ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
  17819. #include <signal.h>
  17820. "
  17821. if test "x$ac_cv_type_sighandler_t" = x""yes; then :
  17822. else
  17823. HAVE_SIGHANDLER_T=0
  17824. fi
  17825. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
  17826. /* <sys/types.h> is not needed according to POSIX, but the
  17827. <sys/socket.h> in i386-unknown-freebsd4.10 and
  17828. powerpc-apple-darwin5.5 required it. */
  17829. #include <sys/types.h>
  17830. #if HAVE_SYS_SOCKET_H
  17831. # include <sys/socket.h>
  17832. #elif HAVE_WS2TCPIP_H
  17833. # include <ws2tcpip.h>
  17834. #endif
  17835. "
  17836. if test "x$ac_cv_type_socklen_t" = x""yes; then :
  17837. else
  17838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  17839. $as_echo_n "checking for socklen_t equivalent... " >&6; }
  17840. if test "${gl_cv_socklen_t_equiv+set}" = set; then :
  17841. $as_echo_n "(cached) " >&6
  17842. else
  17843. # Systems have either "struct sockaddr *" or
  17844. # "void *" as the second argument to getpeername
  17845. gl_cv_socklen_t_equiv=
  17846. for arg2 in "struct sockaddr" void; do
  17847. for t in int size_t "unsigned int" "long int" "unsigned long int"; do
  17848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17849. /* end confdefs.h. */
  17850. #include <sys/types.h>
  17851. #include <sys/socket.h>
  17852. int getpeername (int, $arg2 *, $t *);
  17853. int
  17854. main ()
  17855. {
  17856. $t len;
  17857. getpeername (0, 0, &len);
  17858. ;
  17859. return 0;
  17860. }
  17861. _ACEOF
  17862. if ac_fn_c_try_compile "$LINENO"; then :
  17863. gl_cv_socklen_t_equiv="$t"
  17864. fi
  17865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17866. test "$gl_cv_socklen_t_equiv" != "" && break
  17867. done
  17868. test "$gl_cv_socklen_t_equiv" != "" && break
  17869. done
  17870. fi
  17871. if test "$gl_cv_socklen_t_equiv" = ""; then
  17872. as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  17873. fi
  17874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
  17875. $as_echo "$gl_cv_socklen_t_equiv" >&6; }
  17876. cat >>confdefs.h <<_ACEOF
  17877. #define socklen_t $gl_cv_socklen_t_equiv
  17878. _ACEOF
  17879. fi
  17880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
  17881. $as_echo_n "checking for ssize_t... " >&6; }
  17882. if test "${gt_cv_ssize_t+set}" = set; then :
  17883. $as_echo_n "(cached) " >&6
  17884. else
  17885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17886. /* end confdefs.h. */
  17887. #include <sys/types.h>
  17888. int
  17889. main ()
  17890. {
  17891. int x = sizeof (ssize_t *) + sizeof (ssize_t);
  17892. return !x;
  17893. ;
  17894. return 0;
  17895. }
  17896. _ACEOF
  17897. if ac_fn_c_try_compile "$LINENO"; then :
  17898. gt_cv_ssize_t=yes
  17899. else
  17900. gt_cv_ssize_t=no
  17901. fi
  17902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17903. fi
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
  17905. $as_echo "$gt_cv_ssize_t" >&6; }
  17906. if test $gt_cv_ssize_t = no; then
  17907. $as_echo "#define ssize_t int" >>confdefs.h
  17908. fi
  17909. STDARG_H=''
  17910. NEXT_STDARG_H='<stdarg.h>'
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
  17912. $as_echo_n "checking for va_copy... " >&6; }
  17913. if test "${gl_cv_func_va_copy+set}" = set; then :
  17914. $as_echo_n "(cached) " >&6
  17915. else
  17916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17917. /* end confdefs.h. */
  17918. #include <stdarg.h>
  17919. int
  17920. main ()
  17921. {
  17922. #ifndef va_copy
  17923. void (*func) (va_list, va_list) = va_copy;
  17924. #endif
  17925. ;
  17926. return 0;
  17927. }
  17928. _ACEOF
  17929. if ac_fn_c_try_compile "$LINENO"; then :
  17930. gl_cv_func_va_copy=yes
  17931. else
  17932. gl_cv_func_va_copy=no
  17933. fi
  17934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17935. fi
  17936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
  17937. $as_echo "$gl_cv_func_va_copy" >&6; }
  17938. if test $gl_cv_func_va_copy = no; then
  17939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17940. /* end confdefs.h. */
  17941. #if defined _AIX && !defined __GNUC__
  17942. AIX vaccine
  17943. #endif
  17944. _ACEOF
  17945. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17946. $EGREP "vaccine" >/dev/null 2>&1; then :
  17947. gl_aixcc=yes
  17948. else
  17949. gl_aixcc=no
  17950. fi
  17951. rm -f conftest*
  17952. if test $gl_aixcc = yes; then
  17953. STDARG_H=stdarg.h
  17954. if test $gl_cv_have_include_next = yes; then
  17955. gl_cv_next_stdarg_h='<'stdarg.h'>'
  17956. else
  17957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
  17958. $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
  17959. if test "${gl_cv_next_stdarg_h+set}" = set; then :
  17960. $as_echo_n "(cached) " >&6
  17961. else
  17962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17963. /* end confdefs.h. */
  17964. #include <stdarg.h>
  17965. _ACEOF
  17966. case "$host_os" in
  17967. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  17968. *) gl_absname_cpp="$ac_cpp" ;;
  17969. esac
  17970. case "$host_os" in
  17971. mingw*)
  17972. gl_dirsep_regex='[/\\]'
  17973. ;;
  17974. *)
  17975. gl_dirsep_regex='/'
  17976. ;;
  17977. esac
  17978. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdarg.h|{
  17979. s|.*"\(.*'"${gl_dirsep_regex}"'stdarg.h\)".*|\1|
  17980. s|^/[^/]|//&|
  17981. p
  17982. q
  17983. }'
  17984. gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  17985. sed -n "$gl_absolute_header_sed"`'"'
  17986. fi
  17987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
  17988. $as_echo "$gl_cv_next_stdarg_h" >&6; }
  17989. fi
  17990. NEXT_STDARG_H=$gl_cv_next_stdarg_h
  17991. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  17992. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  17993. gl_next_as_first_directive='<'stdarg.h'>'
  17994. else
  17995. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  17996. gl_next_as_first_directive=$gl_cv_next_stdarg_h
  17997. fi
  17998. NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
  17999. if test "$gl_cv_next_stdarg_h" = '""'; then
  18000. gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
  18001. NEXT_STDARG_H="$gl_cv_next_stdarg_h"
  18002. fi
  18003. else
  18004. saved_as_echo_n="$as_echo_n"
  18005. as_echo_n=':'
  18006. if test "${gl_cv_func___va_copy+set}" = set; then :
  18007. $as_echo_n "(cached) " >&6
  18008. else
  18009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18010. /* end confdefs.h. */
  18011. #include <stdarg.h>
  18012. int
  18013. main ()
  18014. {
  18015. #ifndef __va_copy
  18016. error, bail out
  18017. #endif
  18018. ;
  18019. return 0;
  18020. }
  18021. _ACEOF
  18022. if ac_fn_c_try_compile "$LINENO"; then :
  18023. gl_cv_func___va_copy=yes
  18024. else
  18025. gl_cv_func___va_copy=no
  18026. fi
  18027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18028. fi
  18029. as_echo_n="$saved_as_echo_n"
  18030. if test $gl_cv_func___va_copy = yes; then
  18031. $as_echo "#define va_copy __va_copy" >>confdefs.h
  18032. else
  18033. $as_echo "#define va_copy gl_va_copy" >>confdefs.h
  18034. fi
  18035. fi
  18036. fi
  18037. if test -n "$STDARG_H"; then
  18038. GL_GENERATE_STDARG_H_TRUE=
  18039. GL_GENERATE_STDARG_H_FALSE='#'
  18040. else
  18041. GL_GENERATE_STDARG_H_TRUE='#'
  18042. GL_GENERATE_STDARG_H_FALSE=
  18043. fi
  18044. # Define two additional variables used in the Makefile substitution.
  18045. if test "$ac_cv_header_stdbool_h" = yes; then
  18046. STDBOOL_H=''
  18047. else
  18048. STDBOOL_H='stdbool.h'
  18049. fi
  18050. if test -n "$STDBOOL_H"; then
  18051. GL_GENERATE_STDBOOL_H_TRUE=
  18052. GL_GENERATE_STDBOOL_H_FALSE='#'
  18053. else
  18054. GL_GENERATE_STDBOOL_H_TRUE='#'
  18055. GL_GENERATE_STDBOOL_H_FALSE=
  18056. fi
  18057. if test "$ac_cv_type__Bool" = yes; then
  18058. HAVE__BOOL=1
  18059. else
  18060. HAVE__BOOL=0
  18061. fi
  18062. STDDEF_H=
  18063. if test $gt_cv_c_wchar_t = no; then
  18064. HAVE_WCHAR_T=0
  18065. STDDEF_H=stddef.h
  18066. fi
  18067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
  18068. $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
  18069. if test "${gl_cv_decl_null_works+set}" = set; then :
  18070. $as_echo_n "(cached) " >&6
  18071. else
  18072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18073. /* end confdefs.h. */
  18074. #include <stddef.h>
  18075. int test[2 * (sizeof NULL == sizeof (void *)) -1];
  18076. int
  18077. main ()
  18078. {
  18079. ;
  18080. return 0;
  18081. }
  18082. _ACEOF
  18083. if ac_fn_c_try_compile "$LINENO"; then :
  18084. gl_cv_decl_null_works=yes
  18085. else
  18086. gl_cv_decl_null_works=no
  18087. fi
  18088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18089. fi
  18090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
  18091. $as_echo "$gl_cv_decl_null_works" >&6; }
  18092. if test $gl_cv_decl_null_works = no; then
  18093. REPLACE_NULL=1
  18094. STDDEF_H=stddef.h
  18095. fi
  18096. if test -n "$STDDEF_H"; then
  18097. GL_GENERATE_STDDEF_H_TRUE=
  18098. GL_GENERATE_STDDEF_H_FALSE='#'
  18099. else
  18100. GL_GENERATE_STDDEF_H_TRUE='#'
  18101. GL_GENERATE_STDDEF_H_FALSE=
  18102. fi
  18103. if test -n "$STDDEF_H"; then
  18104. if test $gl_cv_have_include_next = yes; then
  18105. gl_cv_next_stddef_h='<'stddef.h'>'
  18106. else
  18107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
  18108. $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
  18109. if test "${gl_cv_next_stddef_h+set}" = set; then :
  18110. $as_echo_n "(cached) " >&6
  18111. else
  18112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18113. /* end confdefs.h. */
  18114. #include <stddef.h>
  18115. _ACEOF
  18116. case "$host_os" in
  18117. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18118. *) gl_absname_cpp="$ac_cpp" ;;
  18119. esac
  18120. case "$host_os" in
  18121. mingw*)
  18122. gl_dirsep_regex='[/\\]'
  18123. ;;
  18124. *)
  18125. gl_dirsep_regex='/'
  18126. ;;
  18127. esac
  18128. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stddef.h|{
  18129. s|.*"\(.*'"${gl_dirsep_regex}"'stddef.h\)".*|\1|
  18130. s|^/[^/]|//&|
  18131. p
  18132. q
  18133. }'
  18134. gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18135. sed -n "$gl_absolute_header_sed"`'"'
  18136. fi
  18137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
  18138. $as_echo "$gl_cv_next_stddef_h" >&6; }
  18139. fi
  18140. NEXT_STDDEF_H=$gl_cv_next_stddef_h
  18141. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18142. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18143. gl_next_as_first_directive='<'stddef.h'>'
  18144. else
  18145. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18146. gl_next_as_first_directive=$gl_cv_next_stddef_h
  18147. fi
  18148. NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
  18149. fi
  18150. if test $gl_cv_have_include_next = yes; then
  18151. gl_cv_next_stdio_h='<'stdio.h'>'
  18152. else
  18153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
  18154. $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
  18155. if test "${gl_cv_next_stdio_h+set}" = set; then :
  18156. $as_echo_n "(cached) " >&6
  18157. else
  18158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18159. /* end confdefs.h. */
  18160. #include <stdio.h>
  18161. _ACEOF
  18162. case "$host_os" in
  18163. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18164. *) gl_absname_cpp="$ac_cpp" ;;
  18165. esac
  18166. case "$host_os" in
  18167. mingw*)
  18168. gl_dirsep_regex='[/\\]'
  18169. ;;
  18170. *)
  18171. gl_dirsep_regex='/'
  18172. ;;
  18173. esac
  18174. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdio.h|{
  18175. s|.*"\(.*'"${gl_dirsep_regex}"'stdio.h\)".*|\1|
  18176. s|^/[^/]|//&|
  18177. p
  18178. q
  18179. }'
  18180. gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18181. sed -n "$gl_absolute_header_sed"`'"'
  18182. fi
  18183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
  18184. $as_echo "$gl_cv_next_stdio_h" >&6; }
  18185. fi
  18186. NEXT_STDIO_H=$gl_cv_next_stdio_h
  18187. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18188. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18189. gl_next_as_first_directive='<'stdio.h'>'
  18190. else
  18191. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18192. gl_next_as_first_directive=$gl_cv_next_stdio_h
  18193. fi
  18194. NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
  18195. GNULIB_FSCANF=1
  18196. GNULIB_SCANF=1
  18197. GNULIB_FGETC=1
  18198. GNULIB_GETC=1
  18199. GNULIB_GETCHAR=1
  18200. GNULIB_FGETS=1
  18201. GNULIB_FREAD=1
  18202. GNULIB_FPRINTF=1
  18203. GNULIB_PRINTF=1
  18204. GNULIB_VFPRINTF=1
  18205. GNULIB_VPRINTF=1
  18206. GNULIB_FPUTC=1
  18207. GNULIB_PUTC=1
  18208. GNULIB_PUTCHAR=1
  18209. GNULIB_FPUTS=1
  18210. GNULIB_PUTS=1
  18211. GNULIB_FWRITE=1
  18212. if test $gl_cv_have_include_next = yes; then
  18213. gl_cv_next_stdlib_h='<'stdlib.h'>'
  18214. else
  18215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
  18216. $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
  18217. if test "${gl_cv_next_stdlib_h+set}" = set; then :
  18218. $as_echo_n "(cached) " >&6
  18219. else
  18220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. /* end confdefs.h. */
  18222. #include <stdlib.h>
  18223. _ACEOF
  18224. case "$host_os" in
  18225. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18226. *) gl_absname_cpp="$ac_cpp" ;;
  18227. esac
  18228. case "$host_os" in
  18229. mingw*)
  18230. gl_dirsep_regex='[/\\]'
  18231. ;;
  18232. *)
  18233. gl_dirsep_regex='/'
  18234. ;;
  18235. esac
  18236. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'stdlib.h|{
  18237. s|.*"\(.*'"${gl_dirsep_regex}"'stdlib.h\)".*|\1|
  18238. s|^/[^/]|//&|
  18239. p
  18240. q
  18241. }'
  18242. gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18243. sed -n "$gl_absolute_header_sed"`'"'
  18244. fi
  18245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
  18246. $as_echo "$gl_cv_next_stdlib_h" >&6; }
  18247. fi
  18248. NEXT_STDLIB_H=$gl_cv_next_stdlib_h
  18249. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18250. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18251. gl_next_as_first_directive='<'stdlib.h'>'
  18252. else
  18253. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18254. gl_next_as_first_directive=$gl_cv_next_stdlib_h
  18255. fi
  18256. NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
  18257. # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
  18258. $as_echo "#define my_strftime nstrftime" >>confdefs.h
  18259. if test "$ac_cv_have_decl_strtoimax" != yes; then
  18260. HAVE_DECL_STRTOIMAX=0
  18261. fi
  18262. if test $ac_cv_func_strtoimax = no; then
  18263. gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
  18264. ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
  18265. if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
  18266. ac_have_decl=1
  18267. else
  18268. ac_have_decl=0
  18269. fi
  18270. cat >>confdefs.h <<_ACEOF
  18271. #define HAVE_DECL_STRTOLL $ac_have_decl
  18272. _ACEOF
  18273. fi
  18274. GNULIB_STRTOIMAX=1
  18275. if test "$ac_cv_have_decl_strtoumax" != yes; then
  18276. HAVE_DECL_STRTOUMAX=0
  18277. fi
  18278. if test $ac_cv_func_strtoumax = no; then
  18279. gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
  18280. ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
  18281. if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
  18282. ac_have_decl=1
  18283. else
  18284. ac_have_decl=0
  18285. fi
  18286. cat >>confdefs.h <<_ACEOF
  18287. #define HAVE_DECL_STRTOULL $ac_have_decl
  18288. _ACEOF
  18289. fi
  18290. GNULIB_STRTOUMAX=1
  18291. if test $ac_cv_func_symlink = no; then
  18292. HAVE_SYMLINK=0
  18293. else
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
  18295. $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
  18296. if test "${gl_cv_func_symlink_works+set}" = set; then :
  18297. $as_echo_n "(cached) " >&6
  18298. else
  18299. if test "$cross_compiling" = yes; then :
  18300. gl_cv_func_symlink_works="guessing no"
  18301. else
  18302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18303. /* end confdefs.h. */
  18304. #include <unistd.h>
  18305. int
  18306. main ()
  18307. {
  18308. int result = 0;
  18309. if (!symlink ("a", "conftest.link/"))
  18310. result |= 1;
  18311. if (symlink ("conftest.f", "conftest.lnk2"))
  18312. result |= 2;
  18313. else if (!symlink ("a", "conftest.lnk2/"))
  18314. result |= 4;
  18315. return result;
  18316. ;
  18317. return 0;
  18318. }
  18319. _ACEOF
  18320. if ac_fn_c_try_run "$LINENO"; then :
  18321. gl_cv_func_symlink_works=yes
  18322. else
  18323. gl_cv_func_symlink_works=no
  18324. fi
  18325. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18326. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18327. fi
  18328. rm -f conftest.f conftest.link conftest.lnk2
  18329. fi
  18330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
  18331. $as_echo "$gl_cv_func_symlink_works" >&6; }
  18332. if test "$gl_cv_func_symlink_works" != yes; then
  18333. REPLACE_SYMLINK=1
  18334. fi
  18335. fi
  18336. if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
  18337. gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
  18338. fi
  18339. GNULIB_SYMLINK=1
  18340. if test $gl_cv_have_include_next = yes; then
  18341. gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  18342. else
  18343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
  18344. $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
  18345. if test "${gl_cv_next_sys_stat_h+set}" = set; then :
  18346. $as_echo_n "(cached) " >&6
  18347. else
  18348. if test $ac_cv_header_sys_stat_h = yes; then
  18349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18350. /* end confdefs.h. */
  18351. #include <sys/stat.h>
  18352. _ACEOF
  18353. case "$host_os" in
  18354. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18355. *) gl_absname_cpp="$ac_cpp" ;;
  18356. esac
  18357. case "$host_os" in
  18358. mingw*)
  18359. gl_dirsep_regex='[/\\]'
  18360. ;;
  18361. *)
  18362. gl_dirsep_regex='/'
  18363. ;;
  18364. esac
  18365. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'sys/stat.h|{
  18366. s|.*"\(.*'"${gl_dirsep_regex}"'sys/stat.h\)".*|\1|
  18367. s|^/[^/]|//&|
  18368. p
  18369. q
  18370. }'
  18371. gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18372. sed -n "$gl_absolute_header_sed"`'"'
  18373. else
  18374. gl_cv_next_sys_stat_h='<'sys/stat.h'>'
  18375. fi
  18376. fi
  18377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
  18378. $as_echo "$gl_cv_next_sys_stat_h" >&6; }
  18379. fi
  18380. NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
  18381. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18382. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18383. gl_next_as_first_directive='<'sys/stat.h'>'
  18384. else
  18385. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18386. gl_next_as_first_directive=$gl_cv_next_sys_stat_h
  18387. fi
  18388. NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
  18389. ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
  18390. #include <sys/stat.h>
  18391. "
  18392. if test "x$ac_cv_type_nlink_t" = x""yes; then :
  18393. else
  18394. $as_echo "#define nlink_t int" >>confdefs.h
  18395. fi
  18396. if test $ac_cv_have_decl_localtime_r = no; then
  18397. HAVE_DECL_LOCALTIME_R=0
  18398. fi
  18399. if test $ac_cv_func_localtime_r = yes; then
  18400. HAVE_LOCALTIME_R=1
  18401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
  18402. $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
  18403. if test "${gl_cv_time_r_posix+set}" = set; then :
  18404. $as_echo_n "(cached) " >&6
  18405. else
  18406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18407. /* end confdefs.h. */
  18408. #include <time.h>
  18409. int
  18410. main ()
  18411. {
  18412. /* We don't need to append 'restrict's to the argument types,
  18413. even though the POSIX signature has the 'restrict's,
  18414. since C99 says they can't affect type compatibility. */
  18415. struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
  18416. if (ptr) return 0;
  18417. /* Check the return type is a pointer.
  18418. On HP-UX 10 it is 'int'. */
  18419. *localtime_r (0, 0);
  18420. ;
  18421. return 0;
  18422. }
  18423. _ACEOF
  18424. if ac_fn_c_try_compile "$LINENO"; then :
  18425. gl_cv_time_r_posix=yes
  18426. else
  18427. gl_cv_time_r_posix=no
  18428. fi
  18429. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18430. fi
  18431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
  18432. $as_echo "$gl_cv_time_r_posix" >&6; }
  18433. if test $gl_cv_time_r_posix = yes; then
  18434. REPLACE_LOCALTIME_R=0
  18435. else
  18436. REPLACE_LOCALTIME_R=1
  18437. fi
  18438. else
  18439. HAVE_LOCALTIME_R=0
  18440. fi
  18441. if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
  18442. gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
  18443. :
  18444. fi
  18445. GNULIB_TIME_R=1
  18446. if test $gl_cv_have_include_next = yes; then
  18447. gl_cv_next_unistd_h='<'unistd.h'>'
  18448. else
  18449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
  18450. $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
  18451. if test "${gl_cv_next_unistd_h+set}" = set; then :
  18452. $as_echo_n "(cached) " >&6
  18453. else
  18454. if test $ac_cv_header_unistd_h = yes; then
  18455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18456. /* end confdefs.h. */
  18457. #include <unistd.h>
  18458. _ACEOF
  18459. case "$host_os" in
  18460. aix*) gl_absname_cpp="$ac_cpp -C" ;;
  18461. *) gl_absname_cpp="$ac_cpp" ;;
  18462. esac
  18463. case "$host_os" in
  18464. mingw*)
  18465. gl_dirsep_regex='[/\\]'
  18466. ;;
  18467. *)
  18468. gl_dirsep_regex='/'
  18469. ;;
  18470. esac
  18471. gl_absolute_header_sed='\|'"${gl_dirsep_regex}"'unistd.h|{
  18472. s|.*"\(.*'"${gl_dirsep_regex}"'unistd.h\)".*|\1|
  18473. s|^/[^/]|//&|
  18474. p
  18475. q
  18476. }'
  18477. gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
  18478. sed -n "$gl_absolute_header_sed"`'"'
  18479. else
  18480. gl_cv_next_unistd_h='<'unistd.h'>'
  18481. fi
  18482. fi
  18483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
  18484. $as_echo "$gl_cv_next_unistd_h" >&6; }
  18485. fi
  18486. NEXT_UNISTD_H=$gl_cv_next_unistd_h
  18487. if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
  18488. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
  18489. gl_next_as_first_directive='<'unistd.h'>'
  18490. else
  18491. # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
  18492. gl_next_as_first_directive=$gl_cv_next_unistd_h
  18493. fi
  18494. NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
  18495. if test $ac_cv_header_unistd_h = yes; then
  18496. HAVE_UNISTD_H=1
  18497. else
  18498. HAVE_UNISTD_H=0
  18499. fi
  18500. gl_gnulib_enabled_dosname=false
  18501. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
  18502. gl_gnulib_enabled_pathmax=false
  18503. gl_gnulib_enabled_sigprocmask=false
  18504. gl_gnulib_enabled_stat=false
  18505. gl_gnulib_enabled_strtoll=false
  18506. gl_gnulib_enabled_strtoull=false
  18507. gl_gnulib_enabled_verify=false
  18508. func_gl_gnulib_m4code_dosname ()
  18509. {
  18510. if ! $gl_gnulib_enabled_dosname; then
  18511. gl_gnulib_enabled_dosname=true
  18512. fi
  18513. }
  18514. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
  18515. {
  18516. if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
  18517. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
  18518. fi
  18519. }
  18520. func_gl_gnulib_m4code_pathmax ()
  18521. {
  18522. if ! $gl_gnulib_enabled_pathmax; then
  18523. gl_gnulib_enabled_pathmax=true
  18524. fi
  18525. }
  18526. func_gl_gnulib_m4code_sigprocmask ()
  18527. {
  18528. if ! $gl_gnulib_enabled_sigprocmask; then
  18529. if test $gl_cv_type_sigset_t = yes; then
  18530. ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
  18531. if test "x$ac_cv_func_sigprocmask" = x""yes; then :
  18532. gl_cv_func_sigprocmask=1
  18533. fi
  18534. fi
  18535. if test -z "$gl_cv_func_sigprocmask"; then
  18536. HAVE_POSIX_SIGNALBLOCKING=0
  18537. fi
  18538. if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
  18539. gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
  18540. fi
  18541. GNULIB_SIGPROCMASK=1
  18542. gl_gnulib_enabled_sigprocmask=true
  18543. fi
  18544. }
  18545. func_gl_gnulib_m4code_stat ()
  18546. {
  18547. if ! $gl_gnulib_enabled_stat; then
  18548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
  18549. $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
  18550. if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
  18551. $as_echo_n "(cached) " >&6
  18552. else
  18553. if test "$cross_compiling" = yes; then :
  18554. case $host_os in
  18555. mingw*) gl_cv_func_stat_dir_slash="guessing no";;
  18556. *) gl_cv_func_stat_dir_slash="guessing yes";;
  18557. esac
  18558. else
  18559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18560. /* end confdefs.h. */
  18561. #include <sys/stat.h>
  18562. int
  18563. main ()
  18564. {
  18565. struct stat st; return stat (".", &st) != stat ("./", &st);
  18566. ;
  18567. return 0;
  18568. }
  18569. _ACEOF
  18570. if ac_fn_c_try_run "$LINENO"; then :
  18571. gl_cv_func_stat_dir_slash=yes
  18572. else
  18573. gl_cv_func_stat_dir_slash=no
  18574. fi
  18575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18577. fi
  18578. fi
  18579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
  18580. $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
  18582. $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
  18583. if test "${gl_cv_func_stat_file_slash+set}" = set; then :
  18584. $as_echo_n "(cached) " >&6
  18585. else
  18586. touch conftest.tmp
  18587. # Assume that if we have lstat, we can also check symlinks.
  18588. if test $ac_cv_func_lstat = yes; then
  18589. ln -s conftest.tmp conftest.lnk
  18590. fi
  18591. if test "$cross_compiling" = yes; then :
  18592. gl_cv_func_stat_file_slash="guessing no"
  18593. else
  18594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18595. /* end confdefs.h. */
  18596. #include <sys/stat.h>
  18597. int
  18598. main ()
  18599. {
  18600. int result = 0;
  18601. struct stat st;
  18602. if (!stat ("conftest.tmp/", &st))
  18603. result |= 1;
  18604. #if HAVE_LSTAT
  18605. if (!stat ("conftest.lnk/", &st))
  18606. result |= 2;
  18607. #endif
  18608. return result;
  18609. ;
  18610. return 0;
  18611. }
  18612. _ACEOF
  18613. if ac_fn_c_try_run "$LINENO"; then :
  18614. gl_cv_func_stat_file_slash=yes
  18615. else
  18616. gl_cv_func_stat_file_slash=no
  18617. fi
  18618. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18619. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18620. fi
  18621. rm -f conftest.tmp conftest.lnk
  18622. fi
  18623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
  18624. $as_echo "$gl_cv_func_stat_file_slash" >&6; }
  18625. case $gl_cv_func_stat_dir_slash in
  18626. *no) REPLACE_STAT=1
  18627. $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
  18628. ;;
  18629. esac
  18630. case $gl_cv_func_stat_file_slash in
  18631. *no) REPLACE_STAT=1
  18632. $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
  18633. ;;
  18634. esac
  18635. if test $REPLACE_STAT = 1; then
  18636. gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
  18637. :
  18638. fi
  18639. GNULIB_STAT=1
  18640. gl_gnulib_enabled_stat=true
  18641. if test $REPLACE_STAT = 1; then
  18642. func_gl_gnulib_m4code_dosname
  18643. fi
  18644. if test $REPLACE_STAT = 1; then
  18645. func_gl_gnulib_m4code_pathmax
  18646. fi
  18647. if test $REPLACE_STAT = 1; then
  18648. func_gl_gnulib_m4code_verify
  18649. fi
  18650. fi
  18651. }
  18652. func_gl_gnulib_m4code_strtoll ()
  18653. {
  18654. if ! $gl_gnulib_enabled_strtoll; then
  18655. if test "$ac_cv_type_long_long_int" = yes; then
  18656. for ac_func in strtoll
  18657. do :
  18658. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  18659. if test "x$ac_cv_func_strtoll" = x""yes; then :
  18660. cat >>confdefs.h <<_ACEOF
  18661. #define HAVE_STRTOLL 1
  18662. _ACEOF
  18663. fi
  18664. done
  18665. if test $ac_cv_func_strtoll = no; then
  18666. HAVE_STRTOLL=0
  18667. fi
  18668. fi
  18669. if test $HAVE_STRTOLL = 0; then
  18670. gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
  18671. :
  18672. fi
  18673. GNULIB_STRTOLL=1
  18674. gl_gnulib_enabled_strtoll=true
  18675. fi
  18676. }
  18677. func_gl_gnulib_m4code_strtoull ()
  18678. {
  18679. if ! $gl_gnulib_enabled_strtoull; then
  18680. if test "$ac_cv_type_unsigned_long_long_int" = yes; then
  18681. for ac_func in strtoull
  18682. do :
  18683. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  18684. if test "x$ac_cv_func_strtoull" = x""yes; then :
  18685. cat >>confdefs.h <<_ACEOF
  18686. #define HAVE_STRTOULL 1
  18687. _ACEOF
  18688. fi
  18689. done
  18690. if test $ac_cv_func_strtoull = no; then
  18691. HAVE_STRTOULL=0
  18692. fi
  18693. fi
  18694. if test $HAVE_STRTOULL = 0; then
  18695. gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
  18696. :
  18697. fi
  18698. GNULIB_STRTOULL=1
  18699. gl_gnulib_enabled_strtoull=true
  18700. fi
  18701. }
  18702. func_gl_gnulib_m4code_verify ()
  18703. {
  18704. if ! $gl_gnulib_enabled_verify; then
  18705. gl_gnulib_enabled_verify=true
  18706. fi
  18707. }
  18708. if test $REPLACE_GETOPT = 1; then
  18709. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
  18710. fi
  18711. if test $REPLACE_LSTAT = 1; then
  18712. func_gl_gnulib_m4code_dosname
  18713. fi
  18714. if test $REPLACE_LSTAT = 1; then
  18715. func_gl_gnulib_m4code_stat
  18716. fi
  18717. if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
  18718. func_gl_gnulib_m4code_sigprocmask
  18719. fi
  18720. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  18721. func_gl_gnulib_m4code_stat
  18722. fi
  18723. if test $ac_cv_func_strtoimax = no; then
  18724. func_gl_gnulib_m4code_verify
  18725. fi
  18726. if test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
  18727. func_gl_gnulib_m4code_strtoll
  18728. fi
  18729. if test $ac_cv_func_strtoumax = no; then
  18730. func_gl_gnulib_m4code_verify
  18731. fi
  18732. if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
  18733. func_gl_gnulib_m4code_strtoull
  18734. fi
  18735. if $gl_gnulib_enabled_dosname; then
  18736. gl_GNULIB_ENABLED_dosname_TRUE=
  18737. gl_GNULIB_ENABLED_dosname_FALSE='#'
  18738. else
  18739. gl_GNULIB_ENABLED_dosname_TRUE='#'
  18740. gl_GNULIB_ENABLED_dosname_FALSE=
  18741. fi
  18742. if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
  18743. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
  18744. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
  18745. else
  18746. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
  18747. gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
  18748. fi
  18749. if $gl_gnulib_enabled_pathmax; then
  18750. gl_GNULIB_ENABLED_pathmax_TRUE=
  18751. gl_GNULIB_ENABLED_pathmax_FALSE='#'
  18752. else
  18753. gl_GNULIB_ENABLED_pathmax_TRUE='#'
  18754. gl_GNULIB_ENABLED_pathmax_FALSE=
  18755. fi
  18756. if $gl_gnulib_enabled_sigprocmask; then
  18757. gl_GNULIB_ENABLED_sigprocmask_TRUE=
  18758. gl_GNULIB_ENABLED_sigprocmask_FALSE='#'
  18759. else
  18760. gl_GNULIB_ENABLED_sigprocmask_TRUE='#'
  18761. gl_GNULIB_ENABLED_sigprocmask_FALSE=
  18762. fi
  18763. if $gl_gnulib_enabled_stat; then
  18764. gl_GNULIB_ENABLED_stat_TRUE=
  18765. gl_GNULIB_ENABLED_stat_FALSE='#'
  18766. else
  18767. gl_GNULIB_ENABLED_stat_TRUE='#'
  18768. gl_GNULIB_ENABLED_stat_FALSE=
  18769. fi
  18770. if $gl_gnulib_enabled_strtoll; then
  18771. gl_GNULIB_ENABLED_strtoll_TRUE=
  18772. gl_GNULIB_ENABLED_strtoll_FALSE='#'
  18773. else
  18774. gl_GNULIB_ENABLED_strtoll_TRUE='#'
  18775. gl_GNULIB_ENABLED_strtoll_FALSE=
  18776. fi
  18777. if $gl_gnulib_enabled_strtoull; then
  18778. gl_GNULIB_ENABLED_strtoull_TRUE=
  18779. gl_GNULIB_ENABLED_strtoull_FALSE='#'
  18780. else
  18781. gl_GNULIB_ENABLED_strtoull_TRUE='#'
  18782. gl_GNULIB_ENABLED_strtoull_FALSE=
  18783. fi
  18784. if $gl_gnulib_enabled_verify; then
  18785. gl_GNULIB_ENABLED_verify_TRUE=
  18786. gl_GNULIB_ENABLED_verify_FALSE='#'
  18787. else
  18788. gl_GNULIB_ENABLED_verify_TRUE='#'
  18789. gl_GNULIB_ENABLED_verify_FALSE=
  18790. fi
  18791. # End of code from modules
  18792. gltests_libdeps=
  18793. gltests_ltlibdeps=
  18794. gl_source_base='tests'
  18795. gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
  18796. gl_module_indicator_condition=$gltests_WITNESS
  18797. LIBGNU_LIBDEPS="$gl_libdeps"
  18798. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  18799. case "$opsys" in
  18800. aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
  18801. darwin)
  18802. ## The -headerpad option tells ld (see man page) to leave room at the
  18803. ## end of the header for adding load commands. Needed for dumping.
  18804. ## 0x690 is the total size of 30 segment load commands (at 56
  18805. ## each); under Cocoa 31 commands are required.
  18806. if test "$HAVE_NS" = "yes"; then
  18807. libs_nsgui="-framework AppKit"
  18808. headerpad_extra=6C8
  18809. else
  18810. libs_nsgui=
  18811. headerpad_extra=690
  18812. fi
  18813. LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
  18814. ## This is here because src/Makefile.in did some extra fiddling around
  18815. ## with LD_SWITCH_SYSTEM. The cpp logic was:
  18816. ## #ifndef LD_SWITCH_SYSTEM
  18817. ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
  18818. ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
  18819. ## not using gcc, darwin system not on an alpha (ie darwin, since
  18820. ## darwin + alpha does not occur).
  18821. ## Because this was done in src/Makefile.in, the resulting part of
  18822. ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
  18823. ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
  18824. ## rather than LD_SWITCH_SYSTEM.
  18825. test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
  18826. LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
  18827. ;;
  18828. ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
  18829. ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
  18830. ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
  18831. ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
  18832. ## had different values in configure (in ac_link) and src/Makefile.in.
  18833. ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
  18834. gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;;
  18835. *) LD_SWITCH_SYSTEM_TEMACS= ;;
  18836. esac
  18837. if test "$NS_IMPL_GNUSTEP" = "yes"; then
  18838. LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
  18839. fi
  18840. LD_FIRSTFLAG=
  18841. ORDINARY_LINK=
  18842. case "$opsys" in
  18843. ## gnu: GNU needs its own crt0.
  18844. aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
  18845. ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
  18846. ## library search parth, i.e. it won't search /usr/lib for libc and
  18847. ## friends. Using -nostartfiles instead avoids this problem, and
  18848. ## will also work on earlier NetBSD releases.
  18849. netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
  18850. ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
  18851. ## MkLinux/LinuxPPC needs this.
  18852. ## ibms390x only supports opsys = gnu-linux so it can be added here.
  18853. gnu-*)
  18854. case "$machine" in
  18855. macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
  18856. esac
  18857. ;;
  18858. esac
  18859. if test "x$ORDINARY_LINK" = "xyes"; then
  18860. LD_FIRSTFLAG=""
  18861. $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
  18862. ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
  18863. ## freebsd, gnu-* not on macppc|ibms390x.
  18864. elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
  18865. ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
  18866. ## places that are difficult to figure out at make time. Fortunately,
  18867. ## these same versions allow you to pass arbitrary flags on to the
  18868. ## linker, so there is no reason not to use it as a linker.
  18869. ##
  18870. ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
  18871. ## searching for libraries in its internal directories, so we have to
  18872. ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
  18873. LD_FIRSTFLAG="-nostdlib"
  18874. fi
  18875. ## FIXME? What setting of EDIT_LDFLAGS should this have?
  18876. test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
  18877. ## FIXME? The logic here is not precisely the same as that above.
  18878. ## There is no check here for a pre-defined LD_FIRSTFLAG.
  18879. ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
  18880. LIB_GCC=
  18881. if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
  18882. case "$opsys" in
  18883. freebsd|netbsd|openbsd) LIB_GCC= ;;
  18884. gnu-*)
  18885. ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
  18886. ## build on ARM EABI under GNU/Linux. (Bug#5518)
  18887. case $host_cpu in
  18888. arm*)
  18889. LIB_GCC="-lgcc_s"
  18890. ;;
  18891. *)
  18892. ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
  18893. ## immediately undefine it again and redefine it to empty.
  18894. ## Was the C_SWITCH_X_SITE part really necessary?
  18895. ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
  18896. LIB_GCC=
  18897. ;;
  18898. esac
  18899. ;;
  18900. ## Ask GCC where to find libgcc.a.
  18901. *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
  18902. esac
  18903. fi
  18904. ## If we're using X11/GNUstep, define some consequences.
  18905. if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
  18906. $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
  18907. $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
  18908. fi
  18909. #### Report on what we decided to do.
  18910. #### Report GTK as a toolkit, even if it doesn't use Xt.
  18911. #### It makes printing result more understandable as using GTK sets
  18912. #### toolkit_scroll_bars to yes by default.
  18913. if test "${HAVE_GTK}" = "yes"; then
  18914. USE_X_TOOLKIT=GTK
  18915. fi
  18916. and_machfile=
  18917. if test -n "$machfile"; then
  18918. and_machfile=" and \`${machfile}'"
  18919. fi
  18920. echo "
  18921. Configured for \`${canonical}'.
  18922. Where should the build process find the source code? ${srcdir}
  18923. What operating system and machine description files should Emacs use?
  18924. \`${opsysfile}'${and_machfile}
  18925. What compiler should emacs be built with? ${CC} ${CFLAGS}
  18926. Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
  18927. Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
  18928. Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
  18929. What window system should Emacs use? ${window_system}
  18930. What toolkit should Emacs use? ${USE_X_TOOLKIT}"
  18931. if test -n "${x_includes}"; then
  18932. echo " Where do we find X Windows header files? ${x_includes}"
  18933. else
  18934. echo " Where do we find X Windows header files? Standard dirs"
  18935. fi
  18936. if test -n "${x_libraries}"; then
  18937. echo " Where do we find X Windows libraries? ${x_libraries}"
  18938. else
  18939. echo " Where do we find X Windows libraries? Standard dirs"
  18940. fi
  18941. echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
  18942. echo " Does Emacs use -lXpm? ${HAVE_XPM}"
  18943. echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
  18944. echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
  18945. echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
  18946. echo " Does Emacs use -lpng? ${HAVE_PNG}"
  18947. echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
  18948. echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
  18949. echo " Does Emacs use -lgpm? ${HAVE_GPM}"
  18950. echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
  18951. echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
  18952. echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
  18953. echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
  18954. echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
  18955. echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
  18956. echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
  18957. echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
  18958. echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
  18959. echo " Does Emacs use -lxft? ${HAVE_XFT}"
  18960. echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
  18961. echo
  18962. if test -n "${EMACSDATA}"; then
  18963. echo " Environment variable EMACSDATA set to: $EMACSDATA"
  18964. fi
  18965. if test -n "${EMACSDOC}"; then
  18966. echo " Environment variable EMACSDOC set to: $EMACSDOC"
  18967. fi
  18968. if test $USE_XASSERTS = yes; then
  18969. echo " Compiling with asserts turned on."
  18970. CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
  18971. fi
  18972. echo
  18973. if test "$HAVE_NS" = "yes"; then
  18974. echo
  18975. echo "You must run \"${MAKE-make} install\" in order to test the built application.
  18976. The installed application will go to nextstep/Emacs.app and can be
  18977. run or moved from there."
  18978. if test "$EN_NS_SELF_CONTAINED" = "yes"; then
  18979. echo "The application will be fully self-contained."
  18980. else
  18981. echo "The lisp resources for the application will be installed under ${prefix}.
  18982. You may need to run \"${MAKE-make} install\" with sudo. The application will fail
  18983. to run if these resources are not installed."
  18984. fi
  18985. echo
  18986. fi
  18987. # Remove any trailing slashes in these variables.
  18988. test "${prefix}" != NONE &&
  18989. prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
  18990. test "${exec_prefix}" != NONE &&
  18991. exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
  18992. SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
  18993. ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
  18994. opt_makefile=test/automated/Makefile
  18995. if test -f $srcdir/${opt_makefile}.in; then
  18996. SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
  18997. ac_config_files="$ac_config_files test/automated/Makefile"
  18998. fi
  18999. SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
  19000. ac_config_commands="$ac_config_commands mkdirs"
  19001. ac_config_commands="$ac_config_commands epaths"
  19002. ac_config_commands="$ac_config_commands gdbinit"
  19003. cat >confcache <<\_ACEOF
  19004. # This file is a shell script that caches the results of configure
  19005. # tests run on this system so they can be shared between configure
  19006. # scripts and configure runs, see configure's option --config-cache.
  19007. # It is not useful on other systems. If it contains results you don't
  19008. # want to keep, you may remove or edit it.
  19009. #
  19010. # config.status only pays attention to the cache file if you give it
  19011. # the --recheck option to rerun configure.
  19012. #
  19013. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19014. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19015. # following values.
  19016. _ACEOF
  19017. # The following way of writing the cache mishandles newlines in values,
  19018. # but we know of no workaround that is simple, portable, and efficient.
  19019. # So, we kill variables containing newlines.
  19020. # Ultrix sh set writes to stderr and can't be redirected directly,
  19021. # and sets the high bit in the cache file unless we assign to the vars.
  19022. (
  19023. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19024. eval ac_val=\$$ac_var
  19025. case $ac_val in #(
  19026. *${as_nl}*)
  19027. case $ac_var in #(
  19028. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19029. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19030. esac
  19031. case $ac_var in #(
  19032. _ | IFS | as_nl) ;; #(
  19033. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19034. *) { eval $ac_var=; unset $ac_var;} ;;
  19035. esac ;;
  19036. esac
  19037. done
  19038. (set) 2>&1 |
  19039. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19040. *${as_nl}ac_space=\ *)
  19041. # `set' does not quote correctly, so add quotes: double-quote
  19042. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19043. sed -n \
  19044. "s/'/'\\\\''/g;
  19045. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19046. ;; #(
  19047. *)
  19048. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19049. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19050. ;;
  19051. esac |
  19052. sort
  19053. ) |
  19054. sed '
  19055. /^ac_cv_env_/b end
  19056. t clear
  19057. :clear
  19058. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19059. t end
  19060. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19061. :end' >>confcache
  19062. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19063. if test -w "$cache_file"; then
  19064. test "x$cache_file" != "x/dev/null" &&
  19065. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19066. $as_echo "$as_me: updating cache $cache_file" >&6;}
  19067. cat confcache >$cache_file
  19068. else
  19069. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19070. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19071. fi
  19072. fi
  19073. rm -f confcache
  19074. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19075. # Let make expand exec_prefix.
  19076. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19077. DEFS=-DHAVE_CONFIG_H
  19078. ac_libobjs=
  19079. ac_ltlibobjs=
  19080. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19081. # 1. Remove the extension, and $U if already installed.
  19082. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19083. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  19084. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19085. # will be set to the directory where LIBOBJS objects are built.
  19086. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19087. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  19088. done
  19089. LIBOBJS=$ac_libobjs
  19090. LTLIBOBJS=$ac_ltlibobjs
  19091. if test -n "$EXEEXT"; then
  19092. am__EXEEXT_TRUE=
  19093. am__EXEEXT_FALSE='#'
  19094. else
  19095. am__EXEEXT_TRUE='#'
  19096. am__EXEEXT_FALSE=
  19097. fi
  19098. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19099. as_fn_error "conditional \"AMDEP\" was never defined.
  19100. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19101. fi
  19102. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19103. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  19104. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19105. fi
  19106. if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
  19107. as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
  19108. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19109. fi
  19110. if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
  19111. as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
  19112. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19113. fi
  19114. if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
  19115. as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
  19116. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19117. fi
  19118. if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
  19119. as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
  19120. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19121. fi
  19122. if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
  19123. as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
  19124. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19125. fi
  19126. if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
  19127. as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
  19128. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19129. fi
  19130. if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
  19131. as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
  19132. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19133. fi
  19134. if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
  19135. as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
  19136. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19137. fi
  19138. if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
  19139. as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
  19140. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19141. fi
  19142. if test -z "${gl_GNULIB_ENABLED_sigprocmask_TRUE}" && test -z "${gl_GNULIB_ENABLED_sigprocmask_FALSE}"; then
  19143. as_fn_error "conditional \"gl_GNULIB_ENABLED_sigprocmask\" was never defined.
  19144. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19145. fi
  19146. if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
  19147. as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
  19148. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19149. fi
  19150. if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
  19151. as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
  19152. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19153. fi
  19154. if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
  19155. as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
  19156. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19157. fi
  19158. if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
  19159. as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
  19160. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  19161. fi
  19162. gl_libobjs=
  19163. gl_ltlibobjs=
  19164. if test -n "$gl_LIBOBJS"; then
  19165. # Remove the extension.
  19166. sed_drop_objext='s/\.o$//;s/\.obj$//'
  19167. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  19168. gl_libobjs="$gl_libobjs $i.$ac_objext"
  19169. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  19170. done
  19171. fi
  19172. gl_LIBOBJS=$gl_libobjs
  19173. gl_LTLIBOBJS=$gl_ltlibobjs
  19174. gltests_libobjs=
  19175. gltests_ltlibobjs=
  19176. if test -n "$gltests_LIBOBJS"; then
  19177. # Remove the extension.
  19178. sed_drop_objext='s/\.o$//;s/\.obj$//'
  19179. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  19180. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  19181. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  19182. done
  19183. fi
  19184. gltests_LIBOBJS=$gltests_libobjs
  19185. gltests_LTLIBOBJS=$gltests_ltlibobjs
  19186. : ${CONFIG_STATUS=./config.status}
  19187. ac_write_fail=0
  19188. ac_clean_files_save=$ac_clean_files
  19189. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19190. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  19191. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19192. as_write_fail=0
  19193. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  19194. #! $SHELL
  19195. # Generated by $as_me.
  19196. # Run this file to recreate the current configuration.
  19197. # Compiler output produced by configure, useful for debugging
  19198. # configure, is in config.log if it exists.
  19199. debug=false
  19200. ac_cs_recheck=false
  19201. ac_cs_silent=false
  19202. SHELL=\${CONFIG_SHELL-$SHELL}
  19203. export SHELL
  19204. _ASEOF
  19205. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  19206. ## -------------------- ##
  19207. ## M4sh Initialization. ##
  19208. ## -------------------- ##
  19209. # Be more Bourne compatible
  19210. DUALCASE=1; export DUALCASE # for MKS sh
  19211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19212. emulate sh
  19213. NULLCMD=:
  19214. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  19215. # is contrary to our usage. Disable this feature.
  19216. alias -g '${1+"$@"}'='"$@"'
  19217. setopt NO_GLOB_SUBST
  19218. else
  19219. case `(set -o) 2>/dev/null` in #(
  19220. *posix*) :
  19221. set -o posix ;; #(
  19222. *) :
  19223. ;;
  19224. esac
  19225. fi
  19226. as_nl='
  19227. '
  19228. export as_nl
  19229. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  19230. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  19231. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  19232. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  19233. # Prefer a ksh shell builtin over an external printf program on Solaris,
  19234. # but without wasting forks for bash or zsh.
  19235. if test -z "$BASH_VERSION$ZSH_VERSION" \
  19236. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  19237. as_echo='print -r --'
  19238. as_echo_n='print -rn --'
  19239. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  19240. as_echo='printf %s\n'
  19241. as_echo_n='printf %s'
  19242. else
  19243. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  19244. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  19245. as_echo_n='/usr/ucb/echo -n'
  19246. else
  19247. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  19248. as_echo_n_body='eval
  19249. arg=$1;
  19250. case $arg in #(
  19251. *"$as_nl"*)
  19252. expr "X$arg" : "X\\(.*\\)$as_nl";
  19253. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  19254. esac;
  19255. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  19256. '
  19257. export as_echo_n_body
  19258. as_echo_n='sh -c $as_echo_n_body as_echo'
  19259. fi
  19260. export as_echo_body
  19261. as_echo='sh -c $as_echo_body as_echo'
  19262. fi
  19263. # The user is always right.
  19264. if test "${PATH_SEPARATOR+set}" != set; then
  19265. PATH_SEPARATOR=:
  19266. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  19267. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  19268. PATH_SEPARATOR=';'
  19269. }
  19270. fi
  19271. # IFS
  19272. # We need space, tab and new line, in precisely that order. Quoting is
  19273. # there to prevent editors from complaining about space-tab.
  19274. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19275. # splitting by setting IFS to empty value.)
  19276. IFS=" "" $as_nl"
  19277. # Find who we are. Look in the path if we contain no directory separator.
  19278. case $0 in #((
  19279. *[\\/]* ) as_myself=$0 ;;
  19280. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19281. for as_dir in $PATH
  19282. do
  19283. IFS=$as_save_IFS
  19284. test -z "$as_dir" && as_dir=.
  19285. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19286. done
  19287. IFS=$as_save_IFS
  19288. ;;
  19289. esac
  19290. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19291. # in which case we are not to be found in the path.
  19292. if test "x$as_myself" = x; then
  19293. as_myself=$0
  19294. fi
  19295. if test ! -f "$as_myself"; then
  19296. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19297. exit 1
  19298. fi
  19299. # Unset variables that we do not need and which cause bugs (e.g. in
  19300. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  19301. # suppresses any "Segmentation fault" message there. '((' could
  19302. # trigger a bug in pdksh 5.2.14.
  19303. for as_var in BASH_ENV ENV MAIL MAILPATH
  19304. do eval test x\${$as_var+set} = xset \
  19305. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  19306. done
  19307. PS1='$ '
  19308. PS2='> '
  19309. PS4='+ '
  19310. # NLS nuisances.
  19311. LC_ALL=C
  19312. export LC_ALL
  19313. LANGUAGE=C
  19314. export LANGUAGE
  19315. # CDPATH.
  19316. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  19317. # as_fn_error ERROR [LINENO LOG_FD]
  19318. # ---------------------------------
  19319. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  19320. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  19321. # script with status $?, using 1 if that was 0.
  19322. as_fn_error ()
  19323. {
  19324. as_status=$?; test $as_status -eq 0 && as_status=1
  19325. if test "$3"; then
  19326. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  19327. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  19328. fi
  19329. $as_echo "$as_me: error: $1" >&2
  19330. as_fn_exit $as_status
  19331. } # as_fn_error
  19332. # as_fn_set_status STATUS
  19333. # -----------------------
  19334. # Set $? to STATUS, without forking.
  19335. as_fn_set_status ()
  19336. {
  19337. return $1
  19338. } # as_fn_set_status
  19339. # as_fn_exit STATUS
  19340. # -----------------
  19341. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  19342. as_fn_exit ()
  19343. {
  19344. set +e
  19345. as_fn_set_status $1
  19346. exit $1
  19347. } # as_fn_exit
  19348. # as_fn_unset VAR
  19349. # ---------------
  19350. # Portably unset VAR.
  19351. as_fn_unset ()
  19352. {
  19353. { eval $1=; unset $1;}
  19354. }
  19355. as_unset=as_fn_unset
  19356. # as_fn_append VAR VALUE
  19357. # ----------------------
  19358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  19359. # advantage of any shell optimizations that allow amortized linear growth over
  19360. # repeated appends, instead of the typical quadratic growth present in naive
  19361. # implementations.
  19362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  19363. eval 'as_fn_append ()
  19364. {
  19365. eval $1+=\$2
  19366. }'
  19367. else
  19368. as_fn_append ()
  19369. {
  19370. eval $1=\$$1\$2
  19371. }
  19372. fi # as_fn_append
  19373. # as_fn_arith ARG...
  19374. # ------------------
  19375. # Perform arithmetic evaluation on the ARGs, and store the result in the
  19376. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  19377. # must be portable across $(()) and expr.
  19378. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  19379. eval 'as_fn_arith ()
  19380. {
  19381. as_val=$(( $* ))
  19382. }'
  19383. else
  19384. as_fn_arith ()
  19385. {
  19386. as_val=`expr "$@" || test $? -eq 1`
  19387. }
  19388. fi # as_fn_arith
  19389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19391. as_expr=expr
  19392. else
  19393. as_expr=false
  19394. fi
  19395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19396. as_basename=basename
  19397. else
  19398. as_basename=false
  19399. fi
  19400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19401. as_dirname=dirname
  19402. else
  19403. as_dirname=false
  19404. fi
  19405. as_me=`$as_basename -- "$0" ||
  19406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19407. X"$0" : 'X\(//\)$' \| \
  19408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19409. $as_echo X/"$0" |
  19410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19411. s//\1/
  19412. q
  19413. }
  19414. /^X\/\(\/\/\)$/{
  19415. s//\1/
  19416. q
  19417. }
  19418. /^X\/\(\/\).*/{
  19419. s//\1/
  19420. q
  19421. }
  19422. s/.*/./; q'`
  19423. # Avoid depending upon Character Ranges.
  19424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19427. as_cr_digits='0123456789'
  19428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19429. ECHO_C= ECHO_N= ECHO_T=
  19430. case `echo -n x` in #(((((
  19431. -n*)
  19432. case `echo 'xy\c'` in
  19433. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19434. xy) ECHO_C='\c';;
  19435. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  19436. ECHO_T=' ';;
  19437. esac;;
  19438. *)
  19439. ECHO_N='-n';;
  19440. esac
  19441. rm -f conf$$ conf$$.exe conf$$.file
  19442. if test -d conf$$.dir; then
  19443. rm -f conf$$.dir/conf$$.file
  19444. else
  19445. rm -f conf$$.dir
  19446. mkdir conf$$.dir 2>/dev/null
  19447. fi
  19448. if (echo >conf$$.file) 2>/dev/null; then
  19449. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19450. as_ln_s='ln -s'
  19451. # ... but there are two gotchas:
  19452. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19453. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19454. # In both cases, we have to default to `cp -p'.
  19455. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19456. as_ln_s='cp -p'
  19457. elif ln conf$$.file conf$$ 2>/dev/null; then
  19458. as_ln_s=ln
  19459. else
  19460. as_ln_s='cp -p'
  19461. fi
  19462. else
  19463. as_ln_s='cp -p'
  19464. fi
  19465. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19466. rmdir conf$$.dir 2>/dev/null
  19467. # as_fn_mkdir_p
  19468. # -------------
  19469. # Create "$as_dir" as a directory, including parents if necessary.
  19470. as_fn_mkdir_p ()
  19471. {
  19472. case $as_dir in #(
  19473. -*) as_dir=./$as_dir;;
  19474. esac
  19475. test -d "$as_dir" || eval $as_mkdir_p || {
  19476. as_dirs=
  19477. while :; do
  19478. case $as_dir in #(
  19479. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19480. *) as_qdir=$as_dir;;
  19481. esac
  19482. as_dirs="'$as_qdir' $as_dirs"
  19483. as_dir=`$as_dirname -- "$as_dir" ||
  19484. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19485. X"$as_dir" : 'X\(//\)[^/]' \| \
  19486. X"$as_dir" : 'X\(//\)$' \| \
  19487. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19488. $as_echo X"$as_dir" |
  19489. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19490. s//\1/
  19491. q
  19492. }
  19493. /^X\(\/\/\)[^/].*/{
  19494. s//\1/
  19495. q
  19496. }
  19497. /^X\(\/\/\)$/{
  19498. s//\1/
  19499. q
  19500. }
  19501. /^X\(\/\).*/{
  19502. s//\1/
  19503. q
  19504. }
  19505. s/.*/./; q'`
  19506. test -d "$as_dir" && break
  19507. done
  19508. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19509. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  19510. } # as_fn_mkdir_p
  19511. if mkdir -p . 2>/dev/null; then
  19512. as_mkdir_p='mkdir -p "$as_dir"'
  19513. else
  19514. test -d ./-p && rmdir ./-p
  19515. as_mkdir_p=false
  19516. fi
  19517. if test -x / >/dev/null 2>&1; then
  19518. as_test_x='test -x'
  19519. else
  19520. if ls -dL / >/dev/null 2>&1; then
  19521. as_ls_L_option=L
  19522. else
  19523. as_ls_L_option=
  19524. fi
  19525. as_test_x='
  19526. eval sh -c '\''
  19527. if test -d "$1"; then
  19528. test -d "$1/.";
  19529. else
  19530. case $1 in #(
  19531. -*)set "./$1";;
  19532. esac;
  19533. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  19534. ???[sx]*):;;*)false;;esac;fi
  19535. '\'' sh
  19536. '
  19537. fi
  19538. as_executable_p=$as_test_x
  19539. # Sed expression to map a string onto a valid CPP name.
  19540. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19541. # Sed expression to map a string onto a valid variable name.
  19542. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19543. exec 6>&1
  19544. ## ----------------------------------- ##
  19545. ## Main body of $CONFIG_STATUS script. ##
  19546. ## ----------------------------------- ##
  19547. _ASEOF
  19548. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  19549. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19550. # Save the log message, to keep $0 and so on meaningful, and to
  19551. # report actual input values of CONFIG_FILES etc. instead of their
  19552. # values after options handling.
  19553. ac_log="
  19554. This file was extended by emacs $as_me 24.2, which was
  19555. generated by GNU Autoconf 2.65. Invocation command line was
  19556. CONFIG_FILES = $CONFIG_FILES
  19557. CONFIG_HEADERS = $CONFIG_HEADERS
  19558. CONFIG_LINKS = $CONFIG_LINKS
  19559. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19560. $ $0 $@
  19561. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19562. "
  19563. _ACEOF
  19564. case $ac_config_files in *"
  19565. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  19566. esac
  19567. case $ac_config_headers in *"
  19568. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  19569. esac
  19570. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19571. # Files that config.status was made for.
  19572. config_files="$ac_config_files"
  19573. config_headers="$ac_config_headers"
  19574. config_commands="$ac_config_commands"
  19575. _ACEOF
  19576. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19577. ac_cs_usage="\
  19578. \`$as_me' instantiates files and other configuration actions
  19579. from templates according to the current configuration. Unless the files
  19580. and actions are specified as TAGs, all are instantiated by default.
  19581. Usage: $0 [OPTION]... [TAG]...
  19582. -h, --help print this help, then exit
  19583. -V, --version print version number and configuration settings, then exit
  19584. --config print configuration, then exit
  19585. -q, --quiet, --silent
  19586. do not print progress messages
  19587. -d, --debug don't remove temporary files
  19588. --recheck update $as_me by reconfiguring in the same conditions
  19589. --file=FILE[:TEMPLATE]
  19590. instantiate the configuration file FILE
  19591. --header=FILE[:TEMPLATE]
  19592. instantiate the configuration header FILE
  19593. Configuration files:
  19594. $config_files
  19595. Configuration headers:
  19596. $config_headers
  19597. Configuration commands:
  19598. $config_commands
  19599. Report bugs to the package provider."
  19600. _ACEOF
  19601. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19602. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  19603. ac_cs_version="\\
  19604. emacs config.status 24.2
  19605. configured by $0, generated by GNU Autoconf 2.65,
  19606. with options \\"\$ac_cs_config\\"
  19607. Copyright (C) 2009 Free Software Foundation, Inc.
  19608. This config.status script is free software; the Free Software Foundation
  19609. gives unlimited permission to copy, distribute and modify it."
  19610. ac_pwd='$ac_pwd'
  19611. srcdir='$srcdir'
  19612. INSTALL='$INSTALL'
  19613. MKDIR_P='$MKDIR_P'
  19614. AWK='$AWK'
  19615. test -n "\$AWK" || AWK=awk
  19616. _ACEOF
  19617. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19618. # The default lists apply if the user does not specify any file.
  19619. ac_need_defaults=:
  19620. while test $# != 0
  19621. do
  19622. case $1 in
  19623. --*=*)
  19624. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19625. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19626. ac_shift=:
  19627. ;;
  19628. *)
  19629. ac_option=$1
  19630. ac_optarg=$2
  19631. ac_shift=shift
  19632. ;;
  19633. esac
  19634. case $ac_option in
  19635. # Handling of the options.
  19636. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19637. ac_cs_recheck=: ;;
  19638. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19639. $as_echo "$ac_cs_version"; exit ;;
  19640. --config | --confi | --conf | --con | --co | --c )
  19641. $as_echo "$ac_cs_config"; exit ;;
  19642. --debug | --debu | --deb | --de | --d | -d )
  19643. debug=: ;;
  19644. --file | --fil | --fi | --f )
  19645. $ac_shift
  19646. case $ac_optarg in
  19647. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19648. esac
  19649. as_fn_append CONFIG_FILES " '$ac_optarg'"
  19650. ac_need_defaults=false;;
  19651. --header | --heade | --head | --hea )
  19652. $ac_shift
  19653. case $ac_optarg in
  19654. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  19655. esac
  19656. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  19657. ac_need_defaults=false;;
  19658. --he | --h)
  19659. # Conflict between --help and --header
  19660. as_fn_error "ambiguous option: \`$1'
  19661. Try \`$0 --help' for more information.";;
  19662. --help | --hel | -h )
  19663. $as_echo "$ac_cs_usage"; exit ;;
  19664. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19665. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19666. ac_cs_silent=: ;;
  19667. # This is an error.
  19668. -*) as_fn_error "unrecognized option: \`$1'
  19669. Try \`$0 --help' for more information." ;;
  19670. *) as_fn_append ac_config_targets " $1"
  19671. ac_need_defaults=false ;;
  19672. esac
  19673. shift
  19674. done
  19675. ac_configure_extra_args=
  19676. if $ac_cs_silent; then
  19677. exec 6>/dev/null
  19678. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19679. fi
  19680. _ACEOF
  19681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19682. if \$ac_cs_recheck; then
  19683. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19684. shift
  19685. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  19686. CONFIG_SHELL='$SHELL'
  19687. export CONFIG_SHELL
  19688. exec "\$@"
  19689. fi
  19690. _ACEOF
  19691. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19692. exec 5>>config.log
  19693. {
  19694. echo
  19695. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19696. ## Running $as_me. ##
  19697. _ASBOX
  19698. $as_echo "$ac_log"
  19699. } >&5
  19700. _ACEOF
  19701. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19702. #
  19703. # INIT-COMMANDS
  19704. #
  19705. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19706. GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
  19707. _ACEOF
  19708. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19709. # Handling of arguments.
  19710. for ac_config_target in $ac_config_targets
  19711. do
  19712. case $ac_config_target in
  19713. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
  19714. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19715. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19716. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19717. "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
  19718. "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
  19719. "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
  19720. "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
  19721. "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
  19722. "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
  19723. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19724. "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
  19725. "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
  19726. "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
  19727. "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
  19728. "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
  19729. "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
  19730. "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
  19731. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19732. esac
  19733. done
  19734. # If the user did not use the arguments to specify the items to instantiate,
  19735. # then the envvar interface is used. Set only those that are not.
  19736. # We use the long form for the default assignment because of an extremely
  19737. # bizarre bug on SunOS 4.1.3.
  19738. if $ac_need_defaults; then
  19739. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19740. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19741. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19742. fi
  19743. # Have a temporary directory for convenience. Make it in the build tree
  19744. # simply because there is no reason against having it here, and in addition,
  19745. # creating and moving files from /tmp can sometimes cause problems.
  19746. # Hook for its removal unless debugging.
  19747. # Note that there is a small window in which the directory will not be cleaned:
  19748. # after its creation but before its name has been assigned to `$tmp'.
  19749. $debug ||
  19750. {
  19751. tmp=
  19752. trap 'exit_status=$?
  19753. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19754. ' 0
  19755. trap 'as_fn_exit 1' 1 2 13 15
  19756. }
  19757. # Create a (secure) tmp directory for tmp files.
  19758. {
  19759. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19760. test -n "$tmp" && test -d "$tmp"
  19761. } ||
  19762. {
  19763. tmp=./conf$$-$RANDOM
  19764. (umask 077 && mkdir "$tmp")
  19765. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  19766. # Set up the scripts for CONFIG_FILES section.
  19767. # No need to generate them if there are no CONFIG_FILES.
  19768. # This happens for instance with `./config.status config.h'.
  19769. if test -n "$CONFIG_FILES"; then
  19770. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  19771. ac_cs_awk_getline=:
  19772. ac_cs_awk_pipe_init=
  19773. ac_cs_awk_read_file='
  19774. while ((getline aline < (F[key])) > 0)
  19775. print(aline)
  19776. close(F[key])'
  19777. ac_cs_awk_pipe_fini=
  19778. else
  19779. ac_cs_awk_getline=false
  19780. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  19781. ac_cs_awk_read_file='
  19782. print "|#_!!_#|"
  19783. print "cat " F[key] " &&"
  19784. '$ac_cs_awk_pipe_init
  19785. # The final `:' finishes the AND list.
  19786. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  19787. fi
  19788. ac_cr=`echo X | tr X '\015'`
  19789. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19790. # But we know of no other shell where ac_cr would be empty at this
  19791. # point, so we can use a bashism as a fallback.
  19792. if test "x$ac_cr" = x; then
  19793. eval ac_cr=\$\'\\r\'
  19794. fi
  19795. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19796. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19797. ac_cs_awk_cr='\r'
  19798. else
  19799. ac_cs_awk_cr=$ac_cr
  19800. fi
  19801. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  19802. _ACEOF
  19803. # Create commands to substitute file output variables.
  19804. {
  19805. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  19806. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  19807. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  19808. echo "_ACAWK" &&
  19809. echo "_ACEOF"
  19810. } >conf$$files.sh &&
  19811. . ./conf$$files.sh ||
  19812. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  19813. rm -f conf$$files.sh
  19814. {
  19815. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19816. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19817. echo "_ACEOF"
  19818. } >conf$$subs.sh ||
  19819. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  19820. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  19821. ac_delim='%!_!# '
  19822. for ac_last_try in false false false false false :; do
  19823. . ./conf$$subs.sh ||
  19824. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  19825. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19826. if test $ac_delim_n = $ac_delim_num; then
  19827. break
  19828. elif $ac_last_try; then
  19829. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  19830. else
  19831. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19832. fi
  19833. done
  19834. rm -f conf$$subs.sh
  19835. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19836. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  19837. _ACEOF
  19838. sed -n '
  19839. h
  19840. s/^/S["/; s/!.*/"]=/
  19841. p
  19842. g
  19843. s/^[^!]*!//
  19844. :repl
  19845. t repl
  19846. s/'"$ac_delim"'$//
  19847. t delim
  19848. :nl
  19849. h
  19850. s/\(.\{148\}\)..*/\1/
  19851. t more1
  19852. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19853. p
  19854. n
  19855. b repl
  19856. :more1
  19857. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19858. p
  19859. g
  19860. s/.\{148\}//
  19861. t nl
  19862. :delim
  19863. h
  19864. s/\(.\{148\}\)..*/\1/
  19865. t more2
  19866. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19867. p
  19868. b
  19869. :more2
  19870. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19871. p
  19872. g
  19873. s/.\{148\}//
  19874. t delim
  19875. ' <conf$$subs.awk | sed '
  19876. /^[^""]/{
  19877. N
  19878. s/\n//
  19879. }
  19880. ' >>$CONFIG_STATUS || ac_write_fail=1
  19881. rm -f conf$$subs.awk
  19882. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19883. _ACAWK
  19884. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  19885. for (key in S) S_is_set[key] = 1
  19886. FS = ""
  19887. \$ac_cs_awk_pipe_init
  19888. }
  19889. {
  19890. line = $ 0
  19891. nfields = split(line, field, "@")
  19892. substed = 0
  19893. len = length(field[1])
  19894. for (i = 2; i < nfields; i++) {
  19895. key = field[i]
  19896. keylen = length(key)
  19897. if (S_is_set[key]) {
  19898. value = S[key]
  19899. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19900. len += length(value) + length(field[++i])
  19901. substed = 1
  19902. } else
  19903. len += 1 + keylen
  19904. }
  19905. if (nfields == 3 && !substed) {
  19906. key = field[2]
  19907. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  19908. \$ac_cs_awk_read_file
  19909. next
  19910. }
  19911. }
  19912. print line
  19913. }
  19914. \$ac_cs_awk_pipe_fini
  19915. _ACAWK
  19916. _ACEOF
  19917. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19918. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19919. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19920. else
  19921. cat
  19922. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  19923. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  19924. _ACEOF
  19925. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19926. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19927. # trailing colons and then remove the whole line if VPATH becomes empty
  19928. # (actually we leave an empty line to preserve line numbers).
  19929. if test "x$srcdir" = x.; then
  19930. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19931. s/:*\$(srcdir):*/:/
  19932. s/:*\${srcdir}:*/:/
  19933. s/:*@srcdir@:*/:/
  19934. s/^\([^=]*=[ ]*\):*/\1/
  19935. s/:*$//
  19936. s/^[^=]*=[ ]*$//
  19937. }'
  19938. fi
  19939. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19940. fi # test -n "$CONFIG_FILES"
  19941. # Set up the scripts for CONFIG_HEADERS section.
  19942. # No need to generate them if there are no CONFIG_HEADERS.
  19943. # This happens for instance with `./config.status Makefile'.
  19944. if test -n "$CONFIG_HEADERS"; then
  19945. cat >"$tmp/defines.awk" <<\_ACAWK ||
  19946. BEGIN {
  19947. _ACEOF
  19948. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19949. # here-document in config.status, that substitutes the proper values into
  19950. # config.h.in to produce config.h.
  19951. # Create a delimiter string that does not exist in confdefs.h, to ease
  19952. # handling of long lines.
  19953. ac_delim='%!_!# '
  19954. for ac_last_try in false false :; do
  19955. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  19956. if test -z "$ac_t"; then
  19957. break
  19958. elif $ac_last_try; then
  19959. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  19960. else
  19961. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19962. fi
  19963. done
  19964. # For the awk script, D is an array of macro values keyed by name,
  19965. # likewise P contains macro parameters if any. Preserve backslash
  19966. # newline sequences.
  19967. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19968. sed -n '
  19969. s/.\{148\}/&'"$ac_delim"'/g
  19970. t rset
  19971. :rset
  19972. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19973. t def
  19974. d
  19975. :def
  19976. s/\\$//
  19977. t bsnl
  19978. s/["\\]/\\&/g
  19979. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19980. D["\1"]=" \3"/p
  19981. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19982. d
  19983. :bsnl
  19984. s/["\\]/\\&/g
  19985. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19986. D["\1"]=" \3\\\\\\n"\\/p
  19987. t cont
  19988. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19989. t cont
  19990. d
  19991. :cont
  19992. n
  19993. s/.\{148\}/&'"$ac_delim"'/g
  19994. t clear
  19995. :clear
  19996. s/\\$//
  19997. t bsnlc
  19998. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19999. d
  20000. :bsnlc
  20001. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  20002. b cont
  20003. ' <confdefs.h | sed '
  20004. s/'"$ac_delim"'/"\\\
  20005. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  20006. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20007. for (key in D) D_is_set[key] = 1
  20008. FS = ""
  20009. }
  20010. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  20011. line = \$ 0
  20012. split(line, arg, " ")
  20013. if (arg[1] == "#") {
  20014. defundef = arg[2]
  20015. mac1 = arg[3]
  20016. } else {
  20017. defundef = substr(arg[1], 2)
  20018. mac1 = arg[2]
  20019. }
  20020. split(mac1, mac2, "(") #)
  20021. macro = mac2[1]
  20022. prefix = substr(line, 1, index(line, defundef) - 1)
  20023. if (D_is_set[macro]) {
  20024. # Preserve the white space surrounding the "#".
  20025. print prefix "define", macro P[macro] D[macro]
  20026. next
  20027. } else {
  20028. # Replace #undef with comments. This is necessary, for example,
  20029. # in the case of _POSIX_SOURCE, which is predefined and required
  20030. # on some systems where configure will not decide to define it.
  20031. if (defundef == "undef") {
  20032. print "/*", prefix defundef, macro, "*/"
  20033. next
  20034. }
  20035. }
  20036. }
  20037. { print }
  20038. _ACAWK
  20039. _ACEOF
  20040. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20041. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  20042. fi # test -n "$CONFIG_HEADERS"
  20043. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  20044. shift
  20045. for ac_tag
  20046. do
  20047. case $ac_tag in
  20048. :[FHLC]) ac_mode=$ac_tag; continue;;
  20049. esac
  20050. case $ac_mode$ac_tag in
  20051. :[FHL]*:*);;
  20052. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  20053. :[FH]-) ac_tag=-:-;;
  20054. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20055. esac
  20056. ac_save_IFS=$IFS
  20057. IFS=:
  20058. set x $ac_tag
  20059. IFS=$ac_save_IFS
  20060. shift
  20061. ac_file=$1
  20062. shift
  20063. case $ac_mode in
  20064. :L) ac_source=$1;;
  20065. :[FH])
  20066. ac_file_inputs=
  20067. for ac_f
  20068. do
  20069. case $ac_f in
  20070. -) ac_f="$tmp/stdin";;
  20071. *) # Look for the file first in the build tree, then in the source tree
  20072. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20073. # because $ac_f cannot contain `:'.
  20074. test -f "$ac_f" ||
  20075. case $ac_f in
  20076. [\\/$]*) false;;
  20077. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20078. esac ||
  20079. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  20080. esac
  20081. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  20082. as_fn_append ac_file_inputs " '$ac_f'"
  20083. done
  20084. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20085. # use $as_me), people would be surprised to read:
  20086. # /* config.h. Generated by config.status. */
  20087. configure_input='Generated from '`
  20088. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  20089. `' by configure.'
  20090. if test x"$ac_file" != x-; then
  20091. configure_input="$ac_file. $configure_input"
  20092. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  20093. $as_echo "$as_me: creating $ac_file" >&6;}
  20094. fi
  20095. # Neutralize special characters interpreted by sed in replacement strings.
  20096. case $configure_input in #(
  20097. *\&* | *\|* | *\\* )
  20098. ac_sed_conf_input=`$as_echo "$configure_input" |
  20099. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  20100. *) ac_sed_conf_input=$configure_input;;
  20101. esac
  20102. case $ac_tag in
  20103. *:-:* | *:-) cat >"$tmp/stdin" \
  20104. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  20105. esac
  20106. ;;
  20107. esac
  20108. ac_dir=`$as_dirname -- "$ac_file" ||
  20109. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20110. X"$ac_file" : 'X\(//\)[^/]' \| \
  20111. X"$ac_file" : 'X\(//\)$' \| \
  20112. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20113. $as_echo X"$ac_file" |
  20114. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20115. s//\1/
  20116. q
  20117. }
  20118. /^X\(\/\/\)[^/].*/{
  20119. s//\1/
  20120. q
  20121. }
  20122. /^X\(\/\/\)$/{
  20123. s//\1/
  20124. q
  20125. }
  20126. /^X\(\/\).*/{
  20127. s//\1/
  20128. q
  20129. }
  20130. s/.*/./; q'`
  20131. as_dir="$ac_dir"; as_fn_mkdir_p
  20132. ac_builddir=.
  20133. case "$ac_dir" in
  20134. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20135. *)
  20136. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  20137. # A ".." for each directory in $ac_dir_suffix.
  20138. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  20139. case $ac_top_builddir_sub in
  20140. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20141. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20142. esac ;;
  20143. esac
  20144. ac_abs_top_builddir=$ac_pwd
  20145. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20146. # for backward compatibility:
  20147. ac_top_builddir=$ac_top_build_prefix
  20148. case $srcdir in
  20149. .) # We are building in place.
  20150. ac_srcdir=.
  20151. ac_top_srcdir=$ac_top_builddir_sub
  20152. ac_abs_top_srcdir=$ac_pwd ;;
  20153. [\\/]* | ?:[\\/]* ) # Absolute name.
  20154. ac_srcdir=$srcdir$ac_dir_suffix;
  20155. ac_top_srcdir=$srcdir
  20156. ac_abs_top_srcdir=$srcdir ;;
  20157. *) # Relative name.
  20158. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20159. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20160. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20161. esac
  20162. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20163. case $ac_mode in
  20164. :F)
  20165. #
  20166. # CONFIG_FILE
  20167. #
  20168. case $INSTALL in
  20169. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20170. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20171. esac
  20172. ac_MKDIR_P=$MKDIR_P
  20173. case $MKDIR_P in
  20174. [\\/$]* | ?:[\\/]* ) ;;
  20175. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20176. esac
  20177. _ACEOF
  20178. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20179. # If the template does not know about datarootdir, expand it.
  20180. # FIXME: This hack should be removed a few years after 2.60.
  20181. ac_datarootdir_hack=; ac_datarootdir_seen=
  20182. ac_sed_dataroot='
  20183. /datarootdir/ {
  20184. p
  20185. q
  20186. }
  20187. /@datadir@/p
  20188. /@docdir@/p
  20189. /@infodir@/p
  20190. /@localedir@/p
  20191. /@mandir@/p'
  20192. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  20193. *datarootdir*) ac_datarootdir_seen=yes;;
  20194. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20196. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20197. _ACEOF
  20198. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20199. ac_datarootdir_hack='
  20200. s&@datadir@&$datadir&g
  20201. s&@docdir@&$docdir&g
  20202. s&@infodir@&$infodir&g
  20203. s&@localedir@&$localedir&g
  20204. s&@mandir@&$mandir&g
  20205. s&\\\${datarootdir}&$datarootdir&g' ;;
  20206. esac
  20207. _ACEOF
  20208. # Neutralize VPATH when `$srcdir' = `.'.
  20209. # Shell code in configure.ac might set extrasub.
  20210. # FIXME: do we really want to maintain this feature?
  20211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20212. ac_sed_extra="$ac_vpsub
  20213. $extrasub
  20214. _ACEOF
  20215. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20216. :t
  20217. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20218. s|@configure_input@|$ac_sed_conf_input|;t t
  20219. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20220. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  20221. s&@srcdir@&$ac_srcdir&;t t
  20222. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20223. s&@top_srcdir@&$ac_top_srcdir&;t t
  20224. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20225. s&@builddir@&$ac_builddir&;t t
  20226. s&@abs_builddir@&$ac_abs_builddir&;t t
  20227. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20228. s&@INSTALL@&$ac_INSTALL&;t t
  20229. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20230. $ac_datarootdir_hack
  20231. "
  20232. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  20233. if $ac_cs_awk_getline; then
  20234. $AWK -f "$tmp/subs.awk"
  20235. else
  20236. $AWK -f "$tmp/subs.awk" | $SHELL
  20237. fi >$tmp/out \
  20238. || as_fn_error "could not create $ac_file" "$LINENO" 5
  20239. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20240. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20241. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20243. which seems to be undefined. Please make sure it is defined." >&5
  20244. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20245. which seems to be undefined. Please make sure it is defined." >&2;}
  20246. rm -f "$tmp/stdin"
  20247. case $ac_file in
  20248. -) cat "$tmp/out" && rm -f "$tmp/out";;
  20249. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  20250. esac \
  20251. || as_fn_error "could not create $ac_file" "$LINENO" 5
  20252. ;;
  20253. :H)
  20254. #
  20255. # CONFIG_HEADER
  20256. #
  20257. if test x"$ac_file" != x-; then
  20258. {
  20259. $as_echo "/* $configure_input */" \
  20260. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  20261. } >"$tmp/config.h" \
  20262. || as_fn_error "could not create $ac_file" "$LINENO" 5
  20263. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  20264. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  20265. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  20266. else
  20267. rm -f "$ac_file"
  20268. mv "$tmp/config.h" "$ac_file" \
  20269. || as_fn_error "could not create $ac_file" "$LINENO" 5
  20270. fi
  20271. else
  20272. $as_echo "/* $configure_input */" \
  20273. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  20274. || as_fn_error "could not create -" "$LINENO" 5
  20275. fi
  20276. # Compute "$ac_file"'s index in $config_headers.
  20277. _am_arg="$ac_file"
  20278. _am_stamp_count=1
  20279. for _am_header in $config_headers :; do
  20280. case $_am_header in
  20281. $_am_arg | $_am_arg:* )
  20282. break ;;
  20283. * )
  20284. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20285. esac
  20286. done
  20287. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20288. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20289. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20290. X"$_am_arg" : 'X\(//\)$' \| \
  20291. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20292. $as_echo X"$_am_arg" |
  20293. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20294. s//\1/
  20295. q
  20296. }
  20297. /^X\(\/\/\)[^/].*/{
  20298. s//\1/
  20299. q
  20300. }
  20301. /^X\(\/\/\)$/{
  20302. s//\1/
  20303. q
  20304. }
  20305. /^X\(\/\).*/{
  20306. s//\1/
  20307. q
  20308. }
  20309. s/.*/./; q'`/stamp-h$_am_stamp_count
  20310. ;;
  20311. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  20312. $as_echo "$as_me: executing $ac_file commands" >&6;}
  20313. ;;
  20314. esac
  20315. case $ac_file$ac_mode in
  20316. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  20317. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  20318. # are listed without --file. Let's play safe and only enable the eval
  20319. # if we detect the quoting.
  20320. case $CONFIG_FILES in
  20321. *\'*) eval set x "$CONFIG_FILES" ;;
  20322. *) set x $CONFIG_FILES ;;
  20323. esac
  20324. shift
  20325. for mf
  20326. do
  20327. # Strip MF so we end up with the name of the file.
  20328. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20329. # Check whether this is an Automake generated Makefile or not.
  20330. # We used to match only the files named `Makefile.in', but
  20331. # some people rename them; so instead we look at the file content.
  20332. # Grep'ing the first line is not enough: some people post-process
  20333. # each Makefile.in and add a new line on top of each file to say so.
  20334. # Grep'ing the whole file is not good either: AIX grep has a line
  20335. # limit of 2048, but all sed's we know have understand at least 4000.
  20336. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20337. dirpart=`$as_dirname -- "$mf" ||
  20338. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20339. X"$mf" : 'X\(//\)[^/]' \| \
  20340. X"$mf" : 'X\(//\)$' \| \
  20341. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20342. $as_echo X"$mf" |
  20343. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20344. s//\1/
  20345. q
  20346. }
  20347. /^X\(\/\/\)[^/].*/{
  20348. s//\1/
  20349. q
  20350. }
  20351. /^X\(\/\/\)$/{
  20352. s//\1/
  20353. q
  20354. }
  20355. /^X\(\/\).*/{
  20356. s//\1/
  20357. q
  20358. }
  20359. s/.*/./; q'`
  20360. else
  20361. continue
  20362. fi
  20363. # Extract the definition of DEPDIR, am__include, and am__quote
  20364. # from the Makefile without running `make'.
  20365. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20366. test -z "$DEPDIR" && continue
  20367. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20368. test -z "am__include" && continue
  20369. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20370. # When using ansi2knr, U may be empty or an underscore; expand it
  20371. U=`sed -n 's/^U = //p' < "$mf"`
  20372. # Find all dependency output files, they are included files with
  20373. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20374. # simplest approach to changing $(DEPDIR) to its actual value in the
  20375. # expansion.
  20376. for file in `sed -n "
  20377. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20378. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20379. # Make sure the directory exists.
  20380. test -f "$dirpart/$file" && continue
  20381. fdir=`$as_dirname -- "$file" ||
  20382. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20383. X"$file" : 'X\(//\)[^/]' \| \
  20384. X"$file" : 'X\(//\)$' \| \
  20385. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20386. $as_echo X"$file" |
  20387. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20388. s//\1/
  20389. q
  20390. }
  20391. /^X\(\/\/\)[^/].*/{
  20392. s//\1/
  20393. q
  20394. }
  20395. /^X\(\/\/\)$/{
  20396. s//\1/
  20397. q
  20398. }
  20399. /^X\(\/\).*/{
  20400. s//\1/
  20401. q
  20402. }
  20403. s/.*/./; q'`
  20404. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  20405. # echo "creating $dirpart/$file"
  20406. echo '# dummy' > "$dirpart/$file"
  20407. done
  20408. done
  20409. }
  20410. ;;
  20411. "mkdirs":C)
  20412. for dir in etc lisp ; do
  20413. test -d ${dir} || mkdir ${dir}
  20414. done
  20415. ;;
  20416. "epaths":C)
  20417. echo creating src/epaths.h
  20418. ${MAKE-make} epaths-force
  20419. ;;
  20420. "gdbinit":C)
  20421. if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
  20422. echo creating src/.gdbinit
  20423. echo source $srcdir/src/.gdbinit > src/.gdbinit
  20424. fi
  20425. ;;
  20426. esac
  20427. done # for ac_tag
  20428. as_fn_exit 0
  20429. _ACEOF
  20430. ac_clean_files=$ac_clean_files_save
  20431. test $ac_write_fail = 0 ||
  20432. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20433. # configure is writing to config.log, and then calls config.status.
  20434. # config.status does its own redirection, appending to config.log.
  20435. # Unfortunately, on DOS this fails, as config.log is still kept open
  20436. # by configure, so config.status won't be able to write to it; its
  20437. # output is simply discarded. So we exec the FD to /dev/null,
  20438. # effectively closing config.log, so it can be properly (re)opened and
  20439. # appended to by config.status. When coming back to configure, we
  20440. # need to make the FD available again.
  20441. if test "$no_create" != yes; then
  20442. ac_cs_success=:
  20443. ac_config_status_args=
  20444. test "$silent" = yes &&
  20445. ac_config_status_args="$ac_config_status_args --quiet"
  20446. exec 5>/dev/null
  20447. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20448. exec 5>>config.log
  20449. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20450. # would make configure fail if this is the last instruction.
  20451. $ac_cs_success || as_fn_exit $?
  20452. fi
  20453. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20455. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20456. fi