configure 497 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for dpkg 1.13.14~.
  4. #
  5. # Report bugs to <debian-dpkg@lists.debian.org>.
  6. #
  7. # Copyright (C) 2003 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. DUALCASE=1; export DUALCASE # for MKS sh
  24. # Support unset when possible.
  25. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  26. as_unset=unset
  27. else
  28. as_unset=false
  29. fi
  30. # Work around bugs in pre-3.0 UWIN ksh.
  31. $as_unset ENV MAIL MAILPATH
  32. PS1='$ '
  33. PS2='> '
  34. PS4='+ '
  35. # NLS nuisances.
  36. for as_var in \
  37. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  38. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  39. LC_TELEPHONE LC_TIME
  40. do
  41. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42. eval $as_var=C; export $as_var
  43. else
  44. $as_unset $as_var
  45. fi
  46. done
  47. # Required to use basename.
  48. if expr a : '\(a\)' >/dev/null 2>&1; then
  49. as_expr=expr
  50. else
  51. as_expr=false
  52. fi
  53. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  54. as_basename=basename
  55. else
  56. as_basename=false
  57. fi
  58. # Name of the executable.
  59. as_me=`$as_basename "$0" ||
  60. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  61. X"$0" : 'X\(//\)$' \| \
  62. X"$0" : 'X\(/\)$' \| \
  63. . : '\(.\)' 2>/dev/null ||
  64. echo X/"$0" |
  65. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  66. /^X\/\(\/\/\)$/{ s//\1/; q; }
  67. /^X\/\(\/\).*/{ s//\1/; q; }
  68. s/.*/./; q'`
  69. # PATH needs CR, and LINENO needs CR and PATH.
  70. # Avoid depending upon Character Ranges.
  71. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  72. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  73. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  74. as_cr_digits='0123456789'
  75. as_cr_alnum=$as_cr_Letters$as_cr_digits
  76. # The user is always right.
  77. if test "${PATH_SEPARATOR+set}" != set; then
  78. echo "#! /bin/sh" >conf$$.sh
  79. echo "exit 0" >>conf$$.sh
  80. chmod +x conf$$.sh
  81. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  82. PATH_SEPARATOR=';'
  83. else
  84. PATH_SEPARATOR=:
  85. fi
  86. rm -f conf$$.sh
  87. fi
  88. as_lineno_1=$LINENO
  89. as_lineno_2=$LINENO
  90. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  91. test "x$as_lineno_1" != "x$as_lineno_2" &&
  92. test "x$as_lineno_3" = "x$as_lineno_2" || {
  93. # Find who we are. Look in the path if we contain no path at all
  94. # relative or not.
  95. case $0 in
  96. *[\\/]* ) as_myself=$0 ;;
  97. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  98. for as_dir in $PATH
  99. do
  100. IFS=$as_save_IFS
  101. test -z "$as_dir" && as_dir=.
  102. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  103. done
  104. ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109. as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  113. { (exit 1); exit 1; }; }
  114. fi
  115. case $CONFIG_SHELL in
  116. '')
  117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  118. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  119. do
  120. IFS=$as_save_IFS
  121. test -z "$as_dir" && as_dir=.
  122. for as_base in sh bash ksh sh5; do
  123. case $as_dir in
  124. /*)
  125. if ("$as_dir/$as_base" -c '
  126. as_lineno_1=$LINENO
  127. as_lineno_2=$LINENO
  128. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  129. test "x$as_lineno_1" != "x$as_lineno_2" &&
  130. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  131. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  132. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  133. CONFIG_SHELL=$as_dir/$as_base
  134. export CONFIG_SHELL
  135. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  136. fi;;
  137. esac
  138. done
  139. done
  140. ;;
  141. esac
  142. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  143. # uniformly replaced by the line number. The first 'sed' inserts a
  144. # line-number line before each line; the second 'sed' does the real
  145. # work. The second script uses 'N' to pair each line-number line
  146. # with the numbered line, and appends trailing '-' during
  147. # substitution so that $LINENO is not a special case at line end.
  148. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  149. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  150. sed '=' <$as_myself |
  151. sed '
  152. N
  153. s,$,-,
  154. : loop
  155. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  156. t loop
  157. s,-$,,
  158. s,^['$as_cr_digits']*\n,,
  159. ' >$as_me.lineno &&
  160. chmod +x $as_me.lineno ||
  161. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  162. { (exit 1); exit 1; }; }
  163. # Don't try to exec as it changes $[0], causing all sort of problems
  164. # (the dirname of $[0] is not the place where we might find the
  165. # original and so on. Autoconf is especially sensible to this).
  166. . ./$as_me.lineno
  167. # Exit status is that of the last command.
  168. exit
  169. }
  170. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  171. *c*,-n*) ECHO_N= ECHO_C='
  172. ' ECHO_T=' ' ;;
  173. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  174. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  175. esac
  176. if expr a : '\(a\)' >/dev/null 2>&1; then
  177. as_expr=expr
  178. else
  179. as_expr=false
  180. fi
  181. rm -f conf$$ conf$$.exe conf$$.file
  182. echo >conf$$.file
  183. if ln -s conf$$.file conf$$ 2>/dev/null; then
  184. # We could just check for DJGPP; but this test a) works b) is more generic
  185. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  186. if test -f conf$$.exe; then
  187. # Don't use ln at all; we don't have any links
  188. as_ln_s='cp -p'
  189. else
  190. as_ln_s='ln -s'
  191. fi
  192. elif ln conf$$.file conf$$ 2>/dev/null; then
  193. as_ln_s=ln
  194. else
  195. as_ln_s='cp -p'
  196. fi
  197. rm -f conf$$ conf$$.exe conf$$.file
  198. if mkdir -p . 2>/dev/null; then
  199. as_mkdir_p=:
  200. else
  201. test -d ./-p && rmdir ./-p
  202. as_mkdir_p=false
  203. fi
  204. as_executable_p="test -f"
  205. # Sed expression to map a string onto a valid CPP name.
  206. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  207. # Sed expression to map a string onto a valid variable name.
  208. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  209. # IFS
  210. # We need space, tab and new line, in precisely that order.
  211. as_nl='
  212. '
  213. IFS=" $as_nl"
  214. # CDPATH.
  215. $as_unset CDPATH
  216. # Name of the host.
  217. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  218. # so uname gets run too.
  219. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  220. exec 6>&1
  221. #
  222. # Initializations.
  223. #
  224. ac_default_prefix=/usr/local
  225. ac_config_libobj_dir=.
  226. cross_compiling=no
  227. subdirs=
  228. MFLAGS=
  229. MAKEFLAGS=
  230. SHELL=${CONFIG_SHELL-/bin/sh}
  231. # Maximum number of lines to put in a shell here document.
  232. # This variable seems obsolete. It should probably be removed, and
  233. # only ac_max_sed_lines should be used.
  234. : ${ac_max_here_lines=38}
  235. # Identity of this package.
  236. PACKAGE_NAME='dpkg'
  237. PACKAGE_TARNAME='dpkg'
  238. PACKAGE_VERSION='1.13.14~'
  239. PACKAGE_STRING='dpkg 1.13.14~'
  240. PACKAGE_BUGREPORT='debian-dpkg@lists.debian.org'
  241. ac_unique_file="lib/dpkg.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB WITH_DSELECT_TRUE WITH_DSELECT_FALSE WITH_START_STOP_DAEMON_TRUE WITH_START_STOP_DAEMON_FALSE admindir CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE PERL ZLIB_LIBS BZ2_LIBS SELINUX_LIBS CURSES_LIBS SSD_LIBS LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CC_set=${CC+set}
  662. ac_env_CC_value=$CC
  663. ac_cv_env_CC_set=${CC+set}
  664. ac_cv_env_CC_value=$CC
  665. ac_env_CFLAGS_set=${CFLAGS+set}
  666. ac_env_CFLAGS_value=$CFLAGS
  667. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  668. ac_cv_env_CFLAGS_value=$CFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CPP_set=${CPP+set}
  678. ac_env_CPP_value=$CPP
  679. ac_cv_env_CPP_set=${CPP+set}
  680. ac_cv_env_CPP_value=$CPP
  681. ac_env_CXX_set=${CXX+set}
  682. ac_env_CXX_value=$CXX
  683. ac_cv_env_CXX_set=${CXX+set}
  684. ac_cv_env_CXX_value=$CXX
  685. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  686. ac_env_CXXFLAGS_value=$CXXFLAGS
  687. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  688. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  689. ac_env_PERL_set=${PERL+set}
  690. ac_env_PERL_value=$PERL
  691. ac_cv_env_PERL_set=${PERL+set}
  692. ac_cv_env_PERL_value=$PERL
  693. ac_env_ZLIB_LIBS_set=${ZLIB_LIBS+set}
  694. ac_env_ZLIB_LIBS_value=$ZLIB_LIBS
  695. ac_cv_env_ZLIB_LIBS_set=${ZLIB_LIBS+set}
  696. ac_cv_env_ZLIB_LIBS_value=$ZLIB_LIBS
  697. ac_env_BZ2_LIBS_set=${BZ2_LIBS+set}
  698. ac_env_BZ2_LIBS_value=$BZ2_LIBS
  699. ac_cv_env_BZ2_LIBS_set=${BZ2_LIBS+set}
  700. ac_cv_env_BZ2_LIBS_value=$BZ2_LIBS
  701. ac_env_SELINUX_LIBS_set=${SELINUX_LIBS+set}
  702. ac_env_SELINUX_LIBS_value=$SELINUX_LIBS
  703. ac_cv_env_SELINUX_LIBS_set=${SELINUX_LIBS+set}
  704. ac_cv_env_SELINUX_LIBS_value=$SELINUX_LIBS
  705. ac_env_CURSES_LIBS_set=${CURSES_LIBS+set}
  706. ac_env_CURSES_LIBS_value=$CURSES_LIBS
  707. ac_cv_env_CURSES_LIBS_set=${CURSES_LIBS+set}
  708. ac_cv_env_CURSES_LIBS_value=$CURSES_LIBS
  709. ac_env_SSD_LIBS_set=${SSD_LIBS+set}
  710. ac_env_SSD_LIBS_value=$SSD_LIBS
  711. ac_cv_env_SSD_LIBS_set=${SSD_LIBS+set}
  712. ac_cv_env_SSD_LIBS_value=$SSD_LIBS
  713. #
  714. # Report the --help message.
  715. #
  716. if test "$ac_init_help" = "long"; then
  717. # Omit some internal or obsolete options to make the list less imposing.
  718. # This message is too long to be a string in the A/UX 3.1 sh.
  719. cat <<_ACEOF
  720. \`configure' configures dpkg 1.13.14~ to adapt to many kinds of systems.
  721. Usage: $0 [OPTION]... [VAR=VALUE]...
  722. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  723. VAR=VALUE. See below for descriptions of some of the useful variables.
  724. Defaults for the options are specified in brackets.
  725. Configuration:
  726. -h, --help display this help and exit
  727. --help=short display options specific to this package
  728. --help=recursive display the short help of all the included packages
  729. -V, --version display version information and exit
  730. -q, --quiet, --silent do not print \`checking...' messages
  731. --cache-file=FILE cache test results in FILE [disabled]
  732. -C, --config-cache alias for \`--cache-file=config.cache'
  733. -n, --no-create do not create output files
  734. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  735. _ACEOF
  736. cat <<_ACEOF
  737. Installation directories:
  738. --prefix=PREFIX install architecture-independent files in PREFIX
  739. [$ac_default_prefix]
  740. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  741. [PREFIX]
  742. By default, \`make install' will install all the files in
  743. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  744. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  745. for instance \`--prefix=\$HOME'.
  746. For better control, use the options below.
  747. Fine tuning of the installation directories:
  748. --bindir=DIR user executables [EPREFIX/bin]
  749. --sbindir=DIR system admin executables [EPREFIX/sbin]
  750. --libexecdir=DIR program executables [EPREFIX/libexec]
  751. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  752. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  753. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  754. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  755. --libdir=DIR object code libraries [EPREFIX/lib]
  756. --includedir=DIR C header files [PREFIX/include]
  757. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  758. --infodir=DIR info documentation [PREFIX/info]
  759. --mandir=DIR man documentation [PREFIX/man]
  760. _ACEOF
  761. cat <<\_ACEOF
  762. Program names:
  763. --program-prefix=PREFIX prepend PREFIX to installed program names
  764. --program-suffix=SUFFIX append SUFFIX to installed program names
  765. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  766. System types:
  767. --build=BUILD configure for building on BUILD [guessed]
  768. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  769. --target=TARGET configure for building compilers for TARGET [HOST]
  770. _ACEOF
  771. fi
  772. if test -n "$ac_init_help"; then
  773. case $ac_init_help in
  774. short | recursive ) echo "Configuration of dpkg 1.13.14~:";;
  775. esac
  776. cat <<\_ACEOF
  777. Optional Features:
  778. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  779. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  780. --disable-nls do not use Native Language Support
  781. --disable-dependency-tracking speeds up one-time build
  782. --enable-dependency-tracking do not reject slow dependency extractors
  783. --disable-rpath do not hardcode runtime library paths
  784. --disable-largefile omit support for large files
  785. --enable-compiler-warnings
  786. Enable additional compiler warnings
  787. --disable-compiler-optimisations
  788. Disable compiler optimisations
  789. --disable-linker-optimisations
  790. Disable linker optimisations
  791. Optional Packages:
  792. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  793. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  794. --with-gnu-ld assume the C compiler uses GNU ld default=no
  795. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  796. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  797. --with-included-gettext use the GNU gettext library included here
  798. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  799. --without-libintl-prefix don't search for libintl in includedir and libdir
  800. --without-dselect don't build dselect package-management frontend
  801. --without-start-stop-daemon
  802. don't build or use start-stop-daemon
  803. --with-admindir=DIR dpkg database directory [LOCALSTATEDIR/dpkg]
  804. --with-zlib use zlib library for compression and decompression
  805. --with-bz2 use bz2 library for compression and decompression
  806. --with-selinux use selinux library to set security contexts
  807. Some influential environment variables:
  808. CC C compiler command
  809. CFLAGS C compiler flags
  810. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  811. nonstandard directory <lib dir>
  812. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  813. headers in a nonstandard directory <include dir>
  814. CPP C preprocessor
  815. CXX C++ compiler command
  816. CXXFLAGS C++ compiler flags
  817. PERL Perl interpreter
  818. ZLIB_LIBS linker flags for zlib library
  819. BZ2_LIBS linker flags for bz2 library
  820. SELINUX_LIBS
  821. linker flags for selinux library
  822. CURSES_LIBS linker flags for curses library
  823. SSD_LIBS linker flags for start-stop-daemon
  824. Use these variables to override the choices made by `configure' or to help
  825. it to find libraries and programs with nonstandard names/locations.
  826. Report bugs to <debian-dpkg@lists.debian.org>.
  827. _ACEOF
  828. fi
  829. if test "$ac_init_help" = "recursive"; then
  830. # If there are subdirs, report their specific --help.
  831. ac_popdir=`pwd`
  832. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  833. test -d $ac_dir || continue
  834. ac_builddir=.
  835. if test "$ac_dir" != .; then
  836. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  837. # A "../" for each directory in $ac_dir_suffix.
  838. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  839. else
  840. ac_dir_suffix= ac_top_builddir=
  841. fi
  842. case $srcdir in
  843. .) # No --srcdir option. We are building in place.
  844. ac_srcdir=.
  845. if test -z "$ac_top_builddir"; then
  846. ac_top_srcdir=.
  847. else
  848. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  849. fi ;;
  850. [\\/]* | ?:[\\/]* ) # Absolute path.
  851. ac_srcdir=$srcdir$ac_dir_suffix;
  852. ac_top_srcdir=$srcdir ;;
  853. *) # Relative path.
  854. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  855. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  856. esac
  857. # Do not use `cd foo && pwd` to compute absolute paths, because
  858. # the directories may not exist.
  859. case `pwd` in
  860. .) ac_abs_builddir="$ac_dir";;
  861. *)
  862. case "$ac_dir" in
  863. .) ac_abs_builddir=`pwd`;;
  864. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  865. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  866. esac;;
  867. esac
  868. case $ac_abs_builddir in
  869. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  870. *)
  871. case ${ac_top_builddir}. in
  872. .) ac_abs_top_builddir=$ac_abs_builddir;;
  873. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  874. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  875. esac;;
  876. esac
  877. case $ac_abs_builddir in
  878. .) ac_abs_srcdir=$ac_srcdir;;
  879. *)
  880. case $ac_srcdir in
  881. .) ac_abs_srcdir=$ac_abs_builddir;;
  882. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  883. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  884. esac;;
  885. esac
  886. case $ac_abs_builddir in
  887. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  888. *)
  889. case $ac_top_srcdir in
  890. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  891. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  892. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  893. esac;;
  894. esac
  895. cd $ac_dir
  896. # Check for guested configure; otherwise get Cygnus style configure.
  897. if test -f $ac_srcdir/configure.gnu; then
  898. echo
  899. $SHELL $ac_srcdir/configure.gnu --help=recursive
  900. elif test -f $ac_srcdir/configure; then
  901. echo
  902. $SHELL $ac_srcdir/configure --help=recursive
  903. elif test -f $ac_srcdir/configure.ac ||
  904. test -f $ac_srcdir/configure.in; then
  905. echo
  906. $ac_configure --help
  907. else
  908. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  909. fi
  910. cd "$ac_popdir"
  911. done
  912. fi
  913. test -n "$ac_init_help" && exit 0
  914. if $ac_init_version; then
  915. cat <<\_ACEOF
  916. dpkg configure 1.13.14~
  917. generated by GNU Autoconf 2.59
  918. Copyright (C) 2003 Free Software Foundation, Inc.
  919. This configure script is free software; the Free Software Foundation
  920. gives unlimited permission to copy, distribute and modify it.
  921. _ACEOF
  922. exit 0
  923. fi
  924. exec 5>config.log
  925. cat >&5 <<_ACEOF
  926. This file contains any messages produced by compilers while
  927. running configure, to aid debugging if configure makes a mistake.
  928. It was created by dpkg $as_me 1.13.14~, which was
  929. generated by GNU Autoconf 2.59. Invocation command line was
  930. $ $0 $@
  931. _ACEOF
  932. {
  933. cat <<_ASUNAME
  934. ## --------- ##
  935. ## Platform. ##
  936. ## --------- ##
  937. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  938. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  939. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  940. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  941. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  942. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  943. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  944. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  945. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  946. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  947. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  948. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  949. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  950. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  951. _ASUNAME
  952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  953. for as_dir in $PATH
  954. do
  955. IFS=$as_save_IFS
  956. test -z "$as_dir" && as_dir=.
  957. echo "PATH: $as_dir"
  958. done
  959. } >&5
  960. cat >&5 <<_ACEOF
  961. ## ----------- ##
  962. ## Core tests. ##
  963. ## ----------- ##
  964. _ACEOF
  965. # Keep a trace of the command line.
  966. # Strip out --no-create and --no-recursion so they do not pile up.
  967. # Strip out --silent because we don't want to record it for future runs.
  968. # Also quote any args containing shell meta-characters.
  969. # Make two passes to allow for proper duplicate-argument suppression.
  970. ac_configure_args=
  971. ac_configure_args0=
  972. ac_configure_args1=
  973. ac_sep=
  974. ac_must_keep_next=false
  975. for ac_pass in 1 2
  976. do
  977. for ac_arg
  978. do
  979. case $ac_arg in
  980. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  981. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  982. | -silent | --silent | --silen | --sile | --sil)
  983. continue ;;
  984. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  985. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  986. esac
  987. case $ac_pass in
  988. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  989. 2)
  990. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  991. if test $ac_must_keep_next = true; then
  992. ac_must_keep_next=false # Got value, back to normal.
  993. else
  994. case $ac_arg in
  995. *=* | --config-cache | -C | -disable-* | --disable-* \
  996. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  997. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  998. | -with-* | --with-* | -without-* | --without-* | --x)
  999. case "$ac_configure_args0 " in
  1000. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1001. esac
  1002. ;;
  1003. -* ) ac_must_keep_next=true ;;
  1004. esac
  1005. fi
  1006. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1007. # Get rid of the leading space.
  1008. ac_sep=" "
  1009. ;;
  1010. esac
  1011. done
  1012. done
  1013. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1014. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1015. # When interrupted or exit'd, cleanup temporary files, and complete
  1016. # config.log. We remove comments because anyway the quotes in there
  1017. # would cause problems or look ugly.
  1018. # WARNING: Be sure not to use single quotes in there, as some shells,
  1019. # such as our DU 5.0 friend, will then `close' the trap.
  1020. trap 'exit_status=$?
  1021. # Save into config.log some information that might help in debugging.
  1022. {
  1023. echo
  1024. cat <<\_ASBOX
  1025. ## ---------------- ##
  1026. ## Cache variables. ##
  1027. ## ---------------- ##
  1028. _ASBOX
  1029. echo
  1030. # The following way of writing the cache mishandles newlines in values,
  1031. {
  1032. (set) 2>&1 |
  1033. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1034. *ac_space=\ *)
  1035. sed -n \
  1036. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1037. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1038. ;;
  1039. *)
  1040. sed -n \
  1041. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1042. ;;
  1043. esac;
  1044. }
  1045. echo
  1046. cat <<\_ASBOX
  1047. ## ----------------- ##
  1048. ## Output variables. ##
  1049. ## ----------------- ##
  1050. _ASBOX
  1051. echo
  1052. for ac_var in $ac_subst_vars
  1053. do
  1054. eval ac_val=$`echo $ac_var`
  1055. echo "$ac_var='"'"'$ac_val'"'"'"
  1056. done | sort
  1057. echo
  1058. if test -n "$ac_subst_files"; then
  1059. cat <<\_ASBOX
  1060. ## ------------- ##
  1061. ## Output files. ##
  1062. ## ------------- ##
  1063. _ASBOX
  1064. echo
  1065. for ac_var in $ac_subst_files
  1066. do
  1067. eval ac_val=$`echo $ac_var`
  1068. echo "$ac_var='"'"'$ac_val'"'"'"
  1069. done | sort
  1070. echo
  1071. fi
  1072. if test -s confdefs.h; then
  1073. cat <<\_ASBOX
  1074. ## ----------- ##
  1075. ## confdefs.h. ##
  1076. ## ----------- ##
  1077. _ASBOX
  1078. echo
  1079. sed "/^$/d" confdefs.h | sort
  1080. echo
  1081. fi
  1082. test "$ac_signal" != 0 &&
  1083. echo "$as_me: caught signal $ac_signal"
  1084. echo "$as_me: exit $exit_status"
  1085. } >&5
  1086. rm -f core *.core &&
  1087. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1088. exit $exit_status
  1089. ' 0
  1090. for ac_signal in 1 2 13 15; do
  1091. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1092. done
  1093. ac_signal=0
  1094. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1095. rm -rf conftest* confdefs.h
  1096. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1097. echo >confdefs.h
  1098. # Predefined preprocessor variables.
  1099. cat >>confdefs.h <<_ACEOF
  1100. #define PACKAGE_NAME "$PACKAGE_NAME"
  1101. _ACEOF
  1102. cat >>confdefs.h <<_ACEOF
  1103. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1104. _ACEOF
  1105. cat >>confdefs.h <<_ACEOF
  1106. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1107. _ACEOF
  1108. cat >>confdefs.h <<_ACEOF
  1109. #define PACKAGE_STRING "$PACKAGE_STRING"
  1110. _ACEOF
  1111. cat >>confdefs.h <<_ACEOF
  1112. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1113. _ACEOF
  1114. # Let the site file select an alternate cache file if it wants to.
  1115. # Prefer explicitly selected file to automatically selected ones.
  1116. if test -z "$CONFIG_SITE"; then
  1117. if test "x$prefix" != xNONE; then
  1118. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1119. else
  1120. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1121. fi
  1122. fi
  1123. for ac_site_file in $CONFIG_SITE; do
  1124. if test -r "$ac_site_file"; then
  1125. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1126. echo "$as_me: loading site script $ac_site_file" >&6;}
  1127. sed 's/^/| /' "$ac_site_file" >&5
  1128. . "$ac_site_file"
  1129. fi
  1130. done
  1131. if test -r "$cache_file"; then
  1132. # Some versions of bash will fail to source /dev/null (special
  1133. # files actually), so we avoid doing that.
  1134. if test -f "$cache_file"; then
  1135. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1136. echo "$as_me: loading cache $cache_file" >&6;}
  1137. case $cache_file in
  1138. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1139. *) . ./$cache_file;;
  1140. esac
  1141. fi
  1142. else
  1143. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1144. echo "$as_me: creating cache $cache_file" >&6;}
  1145. >$cache_file
  1146. fi
  1147. # Check that the precious variables saved in the cache have kept the same
  1148. # value.
  1149. ac_cache_corrupted=false
  1150. for ac_var in `(set) 2>&1 |
  1151. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1152. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1153. eval ac_new_set=\$ac_env_${ac_var}_set
  1154. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1155. eval ac_new_val="\$ac_env_${ac_var}_value"
  1156. case $ac_old_set,$ac_new_set in
  1157. set,)
  1158. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1159. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1160. ac_cache_corrupted=: ;;
  1161. ,set)
  1162. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1163. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1164. ac_cache_corrupted=: ;;
  1165. ,);;
  1166. *)
  1167. if test "x$ac_old_val" != "x$ac_new_val"; then
  1168. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1169. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1170. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1171. echo "$as_me: former value: $ac_old_val" >&2;}
  1172. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1173. echo "$as_me: current value: $ac_new_val" >&2;}
  1174. ac_cache_corrupted=:
  1175. fi;;
  1176. esac
  1177. # Pass precious variables to config.status.
  1178. if test "$ac_new_set" = set; then
  1179. case $ac_new_val in
  1180. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1181. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1182. *) ac_arg=$ac_var=$ac_new_val ;;
  1183. esac
  1184. case " $ac_configure_args " in
  1185. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1186. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1187. esac
  1188. fi
  1189. done
  1190. if $ac_cache_corrupted; then
  1191. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1192. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1193. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1194. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1195. { (exit 1); exit 1; }; }
  1196. fi
  1197. ac_ext=c
  1198. ac_cpp='$CPP $CPPFLAGS'
  1199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1201. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1202. case m4 in
  1203. [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
  1204. *) ac_macro_dir=$srcdir/m4 ;;
  1205. esac
  1206. if test -d "$ac_macro_dir"; then :
  1207. else
  1208. { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
  1209. echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
  1210. { (exit 1); exit 1; }; }
  1211. fi
  1212. ac_aux_dir=
  1213. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1214. if test -f $ac_dir/install-sh; then
  1215. ac_aux_dir=$ac_dir
  1216. ac_install_sh="$ac_aux_dir/install-sh -c"
  1217. break
  1218. elif test -f $ac_dir/install.sh; then
  1219. ac_aux_dir=$ac_dir
  1220. ac_install_sh="$ac_aux_dir/install.sh -c"
  1221. break
  1222. elif test -f $ac_dir/shtool; then
  1223. ac_aux_dir=$ac_dir
  1224. ac_install_sh="$ac_aux_dir/shtool install -c"
  1225. break
  1226. fi
  1227. done
  1228. if test -z "$ac_aux_dir"; then
  1229. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1230. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1231. { (exit 1); exit 1; }; }
  1232. fi
  1233. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1234. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1235. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1236. # Make sure we can run config.sub.
  1237. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1238. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1239. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1240. { (exit 1); exit 1; }; }
  1241. echo "$as_me:$LINENO: checking build system type" >&5
  1242. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1243. if test "${ac_cv_build+set}" = set; then
  1244. echo $ECHO_N "(cached) $ECHO_C" >&6
  1245. else
  1246. ac_cv_build_alias=$build_alias
  1247. test -z "$ac_cv_build_alias" &&
  1248. ac_cv_build_alias=`$ac_config_guess`
  1249. test -z "$ac_cv_build_alias" &&
  1250. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1251. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1252. { (exit 1); exit 1; }; }
  1253. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1254. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1255. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1256. { (exit 1); exit 1; }; }
  1257. fi
  1258. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1259. echo "${ECHO_T}$ac_cv_build" >&6
  1260. build=$ac_cv_build
  1261. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1262. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1263. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1264. echo "$as_me:$LINENO: checking host system type" >&5
  1265. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1266. if test "${ac_cv_host+set}" = set; then
  1267. echo $ECHO_N "(cached) $ECHO_C" >&6
  1268. else
  1269. ac_cv_host_alias=$host_alias
  1270. test -z "$ac_cv_host_alias" &&
  1271. ac_cv_host_alias=$ac_cv_build_alias
  1272. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1273. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1274. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1275. { (exit 1); exit 1; }; }
  1276. fi
  1277. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1278. echo "${ECHO_T}$ac_cv_host" >&6
  1279. host=$ac_cv_host
  1280. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1281. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1282. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1283. echo "$as_me:$LINENO: checking target system type" >&5
  1284. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1285. if test "${ac_cv_target+set}" = set; then
  1286. echo $ECHO_N "(cached) $ECHO_C" >&6
  1287. else
  1288. ac_cv_target_alias=$target_alias
  1289. test "x$ac_cv_target_alias" = "x" &&
  1290. ac_cv_target_alias=$ac_cv_host_alias
  1291. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1292. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1293. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1294. { (exit 1); exit 1; }; }
  1295. fi
  1296. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1297. echo "${ECHO_T}$ac_cv_target" >&6
  1298. target=$ac_cv_target
  1299. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1300. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1301. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1302. # The aliases save the names the user supplied, while $host etc.
  1303. # will get canonicalized.
  1304. test -n "$target_alias" &&
  1305. test "$program_prefix$program_suffix$program_transform_name" = \
  1306. NONENONEs,x,x, &&
  1307. program_prefix=${target_alias}-
  1308. cat >>confdefs.h <<\_ACEOF
  1309. #define _GNU_SOURCE 1
  1310. _ACEOF
  1311. echo "$as_me:$LINENO: checking dpkg cpu type" >&5
  1312. echo $ECHO_N "checking dpkg cpu type... $ECHO_C" >&6
  1313. cpu_type="`awk \"! /^(#.*)?\\$/ { if (match(\\\"$target_cpu\\\", \\\"^\\\"\\$3\\\"\\$\\\")) { print \\$1; exit; } }\" $srcdir/cputable`"
  1314. if test "x$cpu_type" = "x"; then
  1315. cpu_type=$target_cpu
  1316. echo "$as_me:$LINENO: result: $cpu_type" >&5
  1317. echo "${ECHO_T}$cpu_type" >&6
  1318. { echo "$as_me:$LINENO: WARNING: $target_cpu not found in cputable" >&5
  1319. echo "$as_me: WARNING: $target_cpu not found in cputable" >&2;}
  1320. else
  1321. echo "$as_me:$LINENO: result: $cpu_type" >&5
  1322. echo "${ECHO_T}$cpu_type" >&6
  1323. fi
  1324. cat >>confdefs.h <<_ACEOF
  1325. #define ARCHITECTURE_CPU "${cpu_type}"
  1326. _ACEOF
  1327. echo "$as_me:$LINENO: checking dpkg operating system type" >&5
  1328. echo $ECHO_N "checking dpkg operating system type... $ECHO_C" >&6
  1329. os_type="`awk \"! /^(#.*)?\\$/ { if (match(\\\"$target_os\\\", \\\"^(.*-)?\\\"\\$3\\\"\\$\\\")) { print \\$1; exit; } }\" $srcdir/ostable`"
  1330. if test "x$os_type" = "x"; then
  1331. os_type=$target_os
  1332. echo "$as_me:$LINENO: result: $os_type" >&5
  1333. echo "${ECHO_T}$os_type" >&6
  1334. { echo "$as_me:$LINENO: WARNING: $target_os not found in ostable" >&5
  1335. echo "$as_me: WARNING: $target_os not found in ostable" >&2;}
  1336. else
  1337. echo "$as_me:$LINENO: result: $os_type" >&5
  1338. echo "${ECHO_T}$os_type" >&6
  1339. fi
  1340. cat >>confdefs.h <<_ACEOF
  1341. #define ARCHITECTURE_OS "${os_type}"
  1342. _ACEOF
  1343. echo "$as_me:$LINENO: checking dpkg architecture name" >&5
  1344. echo $ECHO_N "checking dpkg architecture name... $ECHO_C" >&6
  1345. if test "x$os_type" = "xlinux"; then
  1346. dpkg_arch=$cpu_type
  1347. else
  1348. dpkg_arch="$os_type-$cpu_type"
  1349. fi
  1350. echo "$as_me:$LINENO: result: $dpkg_arch" >&5
  1351. echo "${ECHO_T}$dpkg_arch" >&6
  1352. cat >>confdefs.h <<_ACEOF
  1353. #define ARCHITECTURE "${dpkg_arch}"
  1354. _ACEOF
  1355. am__api_version="1.9"
  1356. # Find a good install program. We prefer a C program (faster),
  1357. # so one script is as good as another. But avoid the broken or
  1358. # incompatible versions:
  1359. # SysV /etc/install, /usr/sbin/install
  1360. # SunOS /usr/etc/install
  1361. # IRIX /sbin/install
  1362. # AIX /bin/install
  1363. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1364. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1365. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1366. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1367. # OS/2's system install, which has a completely different semantic
  1368. # ./install, which can be erroneously created by make from ./install.sh.
  1369. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1370. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1371. if test -z "$INSTALL"; then
  1372. if test "${ac_cv_path_install+set}" = set; then
  1373. echo $ECHO_N "(cached) $ECHO_C" >&6
  1374. else
  1375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1376. for as_dir in $PATH
  1377. do
  1378. IFS=$as_save_IFS
  1379. test -z "$as_dir" && as_dir=.
  1380. # Account for people who put trailing slashes in PATH elements.
  1381. case $as_dir/ in
  1382. ./ | .// | /cC/* | \
  1383. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1384. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1385. /usr/ucb/* ) ;;
  1386. *)
  1387. # OSF1 and SCO ODT 3.0 have their own names for install.
  1388. # Don't use installbsd from OSF since it installs stuff as root
  1389. # by default.
  1390. for ac_prog in ginstall scoinst install; do
  1391. for ac_exec_ext in '' $ac_executable_extensions; do
  1392. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1393. if test $ac_prog = install &&
  1394. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1395. # AIX install. It has an incompatible calling convention.
  1396. :
  1397. elif test $ac_prog = install &&
  1398. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1399. # program-specific install script used by HP pwplus--don't use.
  1400. :
  1401. else
  1402. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1403. break 3
  1404. fi
  1405. fi
  1406. done
  1407. done
  1408. ;;
  1409. esac
  1410. done
  1411. fi
  1412. if test "${ac_cv_path_install+set}" = set; then
  1413. INSTALL=$ac_cv_path_install
  1414. else
  1415. # As a last resort, use the slow shell script. We don't cache a
  1416. # path for INSTALL within a source directory, because that will
  1417. # break other packages using the cache if that directory is
  1418. # removed, or if the path is relative.
  1419. INSTALL=$ac_install_sh
  1420. fi
  1421. fi
  1422. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1423. echo "${ECHO_T}$INSTALL" >&6
  1424. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1425. # It thinks the first close brace ends the variable substitution.
  1426. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1427. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1428. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1429. echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1430. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1431. # Just in case
  1432. sleep 1
  1433. echo timestamp > conftest.file
  1434. # Do `set' in a subshell so we don't clobber the current shell's
  1435. # arguments. Must try -L first in case configure is actually a
  1436. # symlink; some systems play weird games with the mod time of symlinks
  1437. # (eg FreeBSD returns the mod time of the symlink's containing
  1438. # directory).
  1439. if (
  1440. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1441. if test "$*" = "X"; then
  1442. # -L didn't work.
  1443. set X `ls -t $srcdir/configure conftest.file`
  1444. fi
  1445. rm -f conftest.file
  1446. if test "$*" != "X $srcdir/configure conftest.file" \
  1447. && test "$*" != "X conftest.file $srcdir/configure"; then
  1448. # If neither matched, then we have a broken ls. This can happen
  1449. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1450. # broken ls alias from the environment. This has actually
  1451. # happened. Such a system could not be considered "sane".
  1452. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1453. alias in your environment" >&5
  1454. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1455. alias in your environment" >&2;}
  1456. { (exit 1); exit 1; }; }
  1457. fi
  1458. test "$2" = conftest.file
  1459. )
  1460. then
  1461. # Ok.
  1462. :
  1463. else
  1464. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1465. Check your system clock" >&5
  1466. echo "$as_me: error: newly created file is older than distributed files!
  1467. Check your system clock" >&2;}
  1468. { (exit 1); exit 1; }; }
  1469. fi
  1470. echo "$as_me:$LINENO: result: yes" >&5
  1471. echo "${ECHO_T}yes" >&6
  1472. test "$program_prefix" != NONE &&
  1473. program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1474. # Use a double $ so make ignores it.
  1475. test "$program_suffix" != NONE &&
  1476. program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1477. # Double any \ or $. echo might interpret backslashes.
  1478. # By default was `s,x,x', remove it if useless.
  1479. cat <<\_ACEOF >conftest.sed
  1480. s/[\\$]/&&/g;s/;s,x,x,$//
  1481. _ACEOF
  1482. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1483. rm conftest.sed
  1484. # expand $ac_aux_dir to an absolute path
  1485. am_aux_dir=`cd $ac_aux_dir && pwd`
  1486. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1487. # Use eval to expand $SHELL
  1488. if eval "$MISSING --run true"; then
  1489. am_missing_run="$MISSING --run "
  1490. else
  1491. am_missing_run=
  1492. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1493. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1494. fi
  1495. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1496. # We used to keeping the `.' as first argument, in order to
  1497. # allow $(mkdir_p) to be used without argument. As in
  1498. # $(mkdir_p) $(somedir)
  1499. # where $(somedir) is conditionally defined. However this is wrong
  1500. # for two reasons:
  1501. # 1. if the package is installed by a user who cannot write `.'
  1502. # make install will fail,
  1503. # 2. the above comment should most certainly read
  1504. # $(mkdir_p) $(DESTDIR)$(somedir)
  1505. # so it does not work when $(somedir) is undefined and
  1506. # $(DESTDIR) is not.
  1507. # To support the latter case, we have to write
  1508. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1509. # so the `.' trick is pointless.
  1510. mkdir_p='mkdir -p --'
  1511. else
  1512. # On NextStep and OpenStep, the `mkdir' command does not
  1513. # recognize any option. It will interpret all options as
  1514. # directories to create, and then abort because `.' already
  1515. # exists.
  1516. for d in ./-p ./--version;
  1517. do
  1518. test -d $d && rmdir $d
  1519. done
  1520. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1521. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1522. mkdir_p='$(mkinstalldirs)'
  1523. else
  1524. mkdir_p='$(install_sh) -d'
  1525. fi
  1526. fi
  1527. for ac_prog in gawk mawk nawk awk
  1528. do
  1529. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1530. set dummy $ac_prog; ac_word=$2
  1531. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1532. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1533. if test "${ac_cv_prog_AWK+set}" = set; then
  1534. echo $ECHO_N "(cached) $ECHO_C" >&6
  1535. else
  1536. if test -n "$AWK"; then
  1537. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1538. else
  1539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1540. for as_dir in $PATH
  1541. do
  1542. IFS=$as_save_IFS
  1543. test -z "$as_dir" && as_dir=.
  1544. for ac_exec_ext in '' $ac_executable_extensions; do
  1545. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1546. ac_cv_prog_AWK="$ac_prog"
  1547. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1548. break 2
  1549. fi
  1550. done
  1551. done
  1552. fi
  1553. fi
  1554. AWK=$ac_cv_prog_AWK
  1555. if test -n "$AWK"; then
  1556. echo "$as_me:$LINENO: result: $AWK" >&5
  1557. echo "${ECHO_T}$AWK" >&6
  1558. else
  1559. echo "$as_me:$LINENO: result: no" >&5
  1560. echo "${ECHO_T}no" >&6
  1561. fi
  1562. test -n "$AWK" && break
  1563. done
  1564. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1565. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1566. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1567. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1568. echo $ECHO_N "(cached) $ECHO_C" >&6
  1569. else
  1570. cat >conftest.make <<\_ACEOF
  1571. all:
  1572. @echo 'ac_maketemp="$(MAKE)"'
  1573. _ACEOF
  1574. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1575. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1576. if test -n "$ac_maketemp"; then
  1577. eval ac_cv_prog_make_${ac_make}_set=yes
  1578. else
  1579. eval ac_cv_prog_make_${ac_make}_set=no
  1580. fi
  1581. rm -f conftest.make
  1582. fi
  1583. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1584. echo "$as_me:$LINENO: result: yes" >&5
  1585. echo "${ECHO_T}yes" >&6
  1586. SET_MAKE=
  1587. else
  1588. echo "$as_me:$LINENO: result: no" >&5
  1589. echo "${ECHO_T}no" >&6
  1590. SET_MAKE="MAKE=${MAKE-make}"
  1591. fi
  1592. rm -rf .tst 2>/dev/null
  1593. mkdir .tst 2>/dev/null
  1594. if test -d .tst; then
  1595. am__leading_dot=.
  1596. else
  1597. am__leading_dot=_
  1598. fi
  1599. rmdir .tst 2>/dev/null
  1600. # test to see if srcdir already configured
  1601. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1602. test -f $srcdir/config.status; then
  1603. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1604. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1605. { (exit 1); exit 1; }; }
  1606. fi
  1607. # test whether we have cygpath
  1608. if test -z "$CYGPATH_W"; then
  1609. if (cygpath --version) >/dev/null 2>/dev/null; then
  1610. CYGPATH_W='cygpath -w'
  1611. else
  1612. CYGPATH_W=echo
  1613. fi
  1614. fi
  1615. # Define the identity of the package.
  1616. PACKAGE='dpkg'
  1617. VERSION='1.13.14~'
  1618. cat >>confdefs.h <<_ACEOF
  1619. #define PACKAGE "$PACKAGE"
  1620. _ACEOF
  1621. cat >>confdefs.h <<_ACEOF
  1622. #define VERSION "$VERSION"
  1623. _ACEOF
  1624. # Some tools Automake needs.
  1625. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1626. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1627. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1628. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1629. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1630. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1631. # Installed binaries are usually stripped using `strip' when the user
  1632. # run `make install-strip'. However `strip' might not be the right
  1633. # tool to use in cross-compilation environments, therefore Automake
  1634. # will honor the `STRIP' environment variable to overrule this program.
  1635. if test "$cross_compiling" != no; then
  1636. if test -n "$ac_tool_prefix"; then
  1637. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1638. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1639. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1640. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1641. if test "${ac_cv_prog_STRIP+set}" = set; then
  1642. echo $ECHO_N "(cached) $ECHO_C" >&6
  1643. else
  1644. if test -n "$STRIP"; then
  1645. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1646. else
  1647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1648. for as_dir in $PATH
  1649. do
  1650. IFS=$as_save_IFS
  1651. test -z "$as_dir" && as_dir=.
  1652. for ac_exec_ext in '' $ac_executable_extensions; do
  1653. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1654. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1655. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1656. break 2
  1657. fi
  1658. done
  1659. done
  1660. fi
  1661. fi
  1662. STRIP=$ac_cv_prog_STRIP
  1663. if test -n "$STRIP"; then
  1664. echo "$as_me:$LINENO: result: $STRIP" >&5
  1665. echo "${ECHO_T}$STRIP" >&6
  1666. else
  1667. echo "$as_me:$LINENO: result: no" >&5
  1668. echo "${ECHO_T}no" >&6
  1669. fi
  1670. fi
  1671. if test -z "$ac_cv_prog_STRIP"; then
  1672. ac_ct_STRIP=$STRIP
  1673. # Extract the first word of "strip", so it can be a program name with args.
  1674. set dummy strip; ac_word=$2
  1675. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1676. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1677. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1678. echo $ECHO_N "(cached) $ECHO_C" >&6
  1679. else
  1680. if test -n "$ac_ct_STRIP"; then
  1681. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1682. else
  1683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1684. for as_dir in $PATH
  1685. do
  1686. IFS=$as_save_IFS
  1687. test -z "$as_dir" && as_dir=.
  1688. for ac_exec_ext in '' $ac_executable_extensions; do
  1689. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1690. ac_cv_prog_ac_ct_STRIP="strip"
  1691. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1692. break 2
  1693. fi
  1694. done
  1695. done
  1696. test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  1697. fi
  1698. fi
  1699. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1700. if test -n "$ac_ct_STRIP"; then
  1701. echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1702. echo "${ECHO_T}$ac_ct_STRIP" >&6
  1703. else
  1704. echo "$as_me:$LINENO: result: no" >&5
  1705. echo "${ECHO_T}no" >&6
  1706. fi
  1707. STRIP=$ac_ct_STRIP
  1708. else
  1709. STRIP="$ac_cv_prog_STRIP"
  1710. fi
  1711. fi
  1712. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1713. # We need awk for the "check" target. The system "awk" is bad on
  1714. # some platforms.
  1715. # Always define AMTAR for backward compatibility.
  1716. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1717. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1718. MKINSTALLDIRS=
  1719. if test -n "$ac_aux_dir"; then
  1720. case "$ac_aux_dir" in
  1721. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  1722. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  1723. esac
  1724. fi
  1725. if test -z "$MKINSTALLDIRS"; then
  1726. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  1727. fi
  1728. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  1729. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  1730. # Check whether --enable-nls or --disable-nls was given.
  1731. if test "${enable_nls+set}" = set; then
  1732. enableval="$enable_nls"
  1733. USE_NLS=$enableval
  1734. else
  1735. USE_NLS=yes
  1736. fi;
  1737. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  1738. echo "${ECHO_T}$USE_NLS" >&6
  1739. # Prepare PATH_SEPARATOR.
  1740. # The user is always right.
  1741. if test "${PATH_SEPARATOR+set}" != set; then
  1742. echo "#! /bin/sh" >conf$$.sh
  1743. echo "exit 0" >>conf$$.sh
  1744. chmod +x conf$$.sh
  1745. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1746. PATH_SEPARATOR=';'
  1747. else
  1748. PATH_SEPARATOR=:
  1749. fi
  1750. rm -f conf$$.sh
  1751. fi
  1752. # Find out how to test for executable files. Don't use a zero-byte file,
  1753. # as systems may use methods other than mode bits to determine executability.
  1754. cat >conf$$.file <<_ASEOF
  1755. #! /bin/sh
  1756. exit 0
  1757. _ASEOF
  1758. chmod +x conf$$.file
  1759. if test -x conf$$.file >/dev/null 2>&1; then
  1760. ac_executable_p="test -x"
  1761. else
  1762. ac_executable_p="test -f"
  1763. fi
  1764. rm -f conf$$.file
  1765. # Extract the first word of "msgfmt", so it can be a program name with args.
  1766. set dummy msgfmt; ac_word=$2
  1767. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1768. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1769. if test "${ac_cv_path_MSGFMT+set}" = set; then
  1770. echo $ECHO_N "(cached) $ECHO_C" >&6
  1771. else
  1772. case "$MSGFMT" in
  1773. [\\/]* | ?:[\\/]*)
  1774. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  1775. ;;
  1776. *)
  1777. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1778. for ac_dir in $PATH; do
  1779. IFS="$ac_save_IFS"
  1780. test -z "$ac_dir" && ac_dir=.
  1781. for ac_exec_ext in '' $ac_executable_extensions; do
  1782. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1783. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  1784. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1785. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  1786. break 2
  1787. fi
  1788. fi
  1789. done
  1790. done
  1791. IFS="$ac_save_IFS"
  1792. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  1793. ;;
  1794. esac
  1795. fi
  1796. MSGFMT="$ac_cv_path_MSGFMT"
  1797. if test "$MSGFMT" != ":"; then
  1798. echo "$as_me:$LINENO: result: $MSGFMT" >&5
  1799. echo "${ECHO_T}$MSGFMT" >&6
  1800. else
  1801. echo "$as_me:$LINENO: result: no" >&5
  1802. echo "${ECHO_T}no" >&6
  1803. fi
  1804. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  1805. set dummy gmsgfmt; ac_word=$2
  1806. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1807. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1808. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  1809. echo $ECHO_N "(cached) $ECHO_C" >&6
  1810. else
  1811. case $GMSGFMT in
  1812. [\\/]* | ?:[\\/]*)
  1813. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  1814. ;;
  1815. *)
  1816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1817. for as_dir in $PATH
  1818. do
  1819. IFS=$as_save_IFS
  1820. test -z "$as_dir" && as_dir=.
  1821. for ac_exec_ext in '' $ac_executable_extensions; do
  1822. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1823. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  1824. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1825. break 2
  1826. fi
  1827. done
  1828. done
  1829. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  1830. ;;
  1831. esac
  1832. fi
  1833. GMSGFMT=$ac_cv_path_GMSGFMT
  1834. if test -n "$GMSGFMT"; then
  1835. echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  1836. echo "${ECHO_T}$GMSGFMT" >&6
  1837. else
  1838. echo "$as_me:$LINENO: result: no" >&5
  1839. echo "${ECHO_T}no" >&6
  1840. fi
  1841. # Prepare PATH_SEPARATOR.
  1842. # The user is always right.
  1843. if test "${PATH_SEPARATOR+set}" != set; then
  1844. echo "#! /bin/sh" >conf$$.sh
  1845. echo "exit 0" >>conf$$.sh
  1846. chmod +x conf$$.sh
  1847. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1848. PATH_SEPARATOR=';'
  1849. else
  1850. PATH_SEPARATOR=:
  1851. fi
  1852. rm -f conf$$.sh
  1853. fi
  1854. # Find out how to test for executable files. Don't use a zero-byte file,
  1855. # as systems may use methods other than mode bits to determine executability.
  1856. cat >conf$$.file <<_ASEOF
  1857. #! /bin/sh
  1858. exit 0
  1859. _ASEOF
  1860. chmod +x conf$$.file
  1861. if test -x conf$$.file >/dev/null 2>&1; then
  1862. ac_executable_p="test -x"
  1863. else
  1864. ac_executable_p="test -f"
  1865. fi
  1866. rm -f conf$$.file
  1867. # Extract the first word of "xgettext", so it can be a program name with args.
  1868. set dummy xgettext; ac_word=$2
  1869. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1870. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1871. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  1872. echo $ECHO_N "(cached) $ECHO_C" >&6
  1873. else
  1874. case "$XGETTEXT" in
  1875. [\\/]* | ?:[\\/]*)
  1876. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  1877. ;;
  1878. *)
  1879. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1880. for ac_dir in $PATH; do
  1881. IFS="$ac_save_IFS"
  1882. test -z "$ac_dir" && ac_dir=.
  1883. for ac_exec_ext in '' $ac_executable_extensions; do
  1884. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1885. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1886. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1887. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  1888. break 2
  1889. fi
  1890. fi
  1891. done
  1892. done
  1893. IFS="$ac_save_IFS"
  1894. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  1895. ;;
  1896. esac
  1897. fi
  1898. XGETTEXT="$ac_cv_path_XGETTEXT"
  1899. if test "$XGETTEXT" != ":"; then
  1900. echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  1901. echo "${ECHO_T}$XGETTEXT" >&6
  1902. else
  1903. echo "$as_me:$LINENO: result: no" >&5
  1904. echo "${ECHO_T}no" >&6
  1905. fi
  1906. rm -f messages.po
  1907. # Prepare PATH_SEPARATOR.
  1908. # The user is always right.
  1909. if test "${PATH_SEPARATOR+set}" != set; then
  1910. echo "#! /bin/sh" >conf$$.sh
  1911. echo "exit 0" >>conf$$.sh
  1912. chmod +x conf$$.sh
  1913. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  1914. PATH_SEPARATOR=';'
  1915. else
  1916. PATH_SEPARATOR=:
  1917. fi
  1918. rm -f conf$$.sh
  1919. fi
  1920. # Find out how to test for executable files. Don't use a zero-byte file,
  1921. # as systems may use methods other than mode bits to determine executability.
  1922. cat >conf$$.file <<_ASEOF
  1923. #! /bin/sh
  1924. exit 0
  1925. _ASEOF
  1926. chmod +x conf$$.file
  1927. if test -x conf$$.file >/dev/null 2>&1; then
  1928. ac_executable_p="test -x"
  1929. else
  1930. ac_executable_p="test -f"
  1931. fi
  1932. rm -f conf$$.file
  1933. # Extract the first word of "msgmerge", so it can be a program name with args.
  1934. set dummy msgmerge; ac_word=$2
  1935. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1936. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1937. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  1938. echo $ECHO_N "(cached) $ECHO_C" >&6
  1939. else
  1940. case "$MSGMERGE" in
  1941. [\\/]* | ?:[\\/]*)
  1942. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  1943. ;;
  1944. *)
  1945. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  1946. for ac_dir in $PATH; do
  1947. IFS="$ac_save_IFS"
  1948. test -z "$ac_dir" && ac_dir=.
  1949. for ac_exec_ext in '' $ac_executable_extensions; do
  1950. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  1951. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  1952. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  1953. break 2
  1954. fi
  1955. fi
  1956. done
  1957. done
  1958. IFS="$ac_save_IFS"
  1959. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  1960. ;;
  1961. esac
  1962. fi
  1963. MSGMERGE="$ac_cv_path_MSGMERGE"
  1964. if test "$MSGMERGE" != ":"; then
  1965. echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  1966. echo "${ECHO_T}$MSGMERGE" >&6
  1967. else
  1968. echo "$as_me:$LINENO: result: no" >&5
  1969. echo "${ECHO_T}no" >&6
  1970. fi
  1971. if test "$GMSGFMT" != ":"; then
  1972. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  1973. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1974. : ;
  1975. else
  1976. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  1977. echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  1978. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
  1979. GMSGFMT=":"
  1980. fi
  1981. fi
  1982. if test "$XGETTEXT" != ":"; then
  1983. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  1984. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  1985. : ;
  1986. else
  1987. echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  1988. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
  1989. XGETTEXT=":"
  1990. fi
  1991. rm -f messages.po
  1992. fi
  1993. ac_config_commands="$ac_config_commands default-1"
  1994. DEPDIR="${am__leading_dot}deps"
  1995. ac_config_commands="$ac_config_commands depfiles"
  1996. am_make=${MAKE-make}
  1997. cat > confinc << 'END'
  1998. am__doit:
  1999. @echo done
  2000. .PHONY: am__doit
  2001. END
  2002. # If we don't find an include directive, just comment out the code.
  2003. echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2004. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  2005. am__include="#"
  2006. am__quote=
  2007. _am_result=none
  2008. # First try GNU make style include.
  2009. echo "include confinc" > confmf
  2010. # We grep out `Entering directory' and `Leaving directory'
  2011. # messages which can occur if `w' ends up in MAKEFLAGS.
  2012. # In particular we don't look at `^make:' because GNU make might
  2013. # be invoked under some other name (usually "gmake"), in which
  2014. # case it prints its new name instead of `make'.
  2015. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2016. am__include=include
  2017. am__quote=
  2018. _am_result=GNU
  2019. fi
  2020. # Now try BSD make style include.
  2021. if test "$am__include" = "#"; then
  2022. echo '.include "confinc"' > confmf
  2023. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2024. am__include=.include
  2025. am__quote="\""
  2026. _am_result=BSD
  2027. fi
  2028. fi
  2029. echo "$as_me:$LINENO: result: $_am_result" >&5
  2030. echo "${ECHO_T}$_am_result" >&6
  2031. rm -f confinc confmf
  2032. # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  2033. if test "${enable_dependency_tracking+set}" = set; then
  2034. enableval="$enable_dependency_tracking"
  2035. fi;
  2036. if test "x$enable_dependency_tracking" != xno; then
  2037. am_depcomp="$ac_aux_dir/depcomp"
  2038. AMDEPBACKSLASH='\'
  2039. fi
  2040. if test "x$enable_dependency_tracking" != xno; then
  2041. AMDEP_TRUE=
  2042. AMDEP_FALSE='#'
  2043. else
  2044. AMDEP_TRUE='#'
  2045. AMDEP_FALSE=
  2046. fi
  2047. ac_ext=c
  2048. ac_cpp='$CPP $CPPFLAGS'
  2049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2052. if test -n "$ac_tool_prefix"; then
  2053. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2054. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2055. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2056. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2057. if test "${ac_cv_prog_CC+set}" = set; then
  2058. echo $ECHO_N "(cached) $ECHO_C" >&6
  2059. else
  2060. if test -n "$CC"; then
  2061. ac_cv_prog_CC="$CC" # Let the user override the test.
  2062. else
  2063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2064. for as_dir in $PATH
  2065. do
  2066. IFS=$as_save_IFS
  2067. test -z "$as_dir" && as_dir=.
  2068. for ac_exec_ext in '' $ac_executable_extensions; do
  2069. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2070. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2071. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2072. break 2
  2073. fi
  2074. done
  2075. done
  2076. fi
  2077. fi
  2078. CC=$ac_cv_prog_CC
  2079. if test -n "$CC"; then
  2080. echo "$as_me:$LINENO: result: $CC" >&5
  2081. echo "${ECHO_T}$CC" >&6
  2082. else
  2083. echo "$as_me:$LINENO: result: no" >&5
  2084. echo "${ECHO_T}no" >&6
  2085. fi
  2086. fi
  2087. if test -z "$ac_cv_prog_CC"; then
  2088. ac_ct_CC=$CC
  2089. # Extract the first word of "gcc", so it can be a program name with args.
  2090. set dummy gcc; ac_word=$2
  2091. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2093. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2094. echo $ECHO_N "(cached) $ECHO_C" >&6
  2095. else
  2096. if test -n "$ac_ct_CC"; then
  2097. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2098. else
  2099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2100. for as_dir in $PATH
  2101. do
  2102. IFS=$as_save_IFS
  2103. test -z "$as_dir" && as_dir=.
  2104. for ac_exec_ext in '' $ac_executable_extensions; do
  2105. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2106. ac_cv_prog_ac_ct_CC="gcc"
  2107. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2108. break 2
  2109. fi
  2110. done
  2111. done
  2112. fi
  2113. fi
  2114. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2115. if test -n "$ac_ct_CC"; then
  2116. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2117. echo "${ECHO_T}$ac_ct_CC" >&6
  2118. else
  2119. echo "$as_me:$LINENO: result: no" >&5
  2120. echo "${ECHO_T}no" >&6
  2121. fi
  2122. CC=$ac_ct_CC
  2123. else
  2124. CC="$ac_cv_prog_CC"
  2125. fi
  2126. if test -z "$CC"; then
  2127. if test -n "$ac_tool_prefix"; then
  2128. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2129. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2130. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2131. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2132. if test "${ac_cv_prog_CC+set}" = set; then
  2133. echo $ECHO_N "(cached) $ECHO_C" >&6
  2134. else
  2135. if test -n "$CC"; then
  2136. ac_cv_prog_CC="$CC" # Let the user override the test.
  2137. else
  2138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2139. for as_dir in $PATH
  2140. do
  2141. IFS=$as_save_IFS
  2142. test -z "$as_dir" && as_dir=.
  2143. for ac_exec_ext in '' $ac_executable_extensions; do
  2144. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2145. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2146. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2147. break 2
  2148. fi
  2149. done
  2150. done
  2151. fi
  2152. fi
  2153. CC=$ac_cv_prog_CC
  2154. if test -n "$CC"; then
  2155. echo "$as_me:$LINENO: result: $CC" >&5
  2156. echo "${ECHO_T}$CC" >&6
  2157. else
  2158. echo "$as_me:$LINENO: result: no" >&5
  2159. echo "${ECHO_T}no" >&6
  2160. fi
  2161. fi
  2162. if test -z "$ac_cv_prog_CC"; then
  2163. ac_ct_CC=$CC
  2164. # Extract the first word of "cc", so it can be a program name with args.
  2165. set dummy cc; ac_word=$2
  2166. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2168. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2169. echo $ECHO_N "(cached) $ECHO_C" >&6
  2170. else
  2171. if test -n "$ac_ct_CC"; then
  2172. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2173. else
  2174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2175. for as_dir in $PATH
  2176. do
  2177. IFS=$as_save_IFS
  2178. test -z "$as_dir" && as_dir=.
  2179. for ac_exec_ext in '' $ac_executable_extensions; do
  2180. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2181. ac_cv_prog_ac_ct_CC="cc"
  2182. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2183. break 2
  2184. fi
  2185. done
  2186. done
  2187. fi
  2188. fi
  2189. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2190. if test -n "$ac_ct_CC"; then
  2191. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2192. echo "${ECHO_T}$ac_ct_CC" >&6
  2193. else
  2194. echo "$as_me:$LINENO: result: no" >&5
  2195. echo "${ECHO_T}no" >&6
  2196. fi
  2197. CC=$ac_ct_CC
  2198. else
  2199. CC="$ac_cv_prog_CC"
  2200. fi
  2201. fi
  2202. if test -z "$CC"; then
  2203. # Extract the first word of "cc", so it can be a program name with args.
  2204. set dummy cc; ac_word=$2
  2205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2207. if test "${ac_cv_prog_CC+set}" = set; then
  2208. echo $ECHO_N "(cached) $ECHO_C" >&6
  2209. else
  2210. if test -n "$CC"; then
  2211. ac_cv_prog_CC="$CC" # Let the user override the test.
  2212. else
  2213. ac_prog_rejected=no
  2214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2215. for as_dir in $PATH
  2216. do
  2217. IFS=$as_save_IFS
  2218. test -z "$as_dir" && as_dir=.
  2219. for ac_exec_ext in '' $ac_executable_extensions; do
  2220. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2221. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2222. ac_prog_rejected=yes
  2223. continue
  2224. fi
  2225. ac_cv_prog_CC="cc"
  2226. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2227. break 2
  2228. fi
  2229. done
  2230. done
  2231. if test $ac_prog_rejected = yes; then
  2232. # We found a bogon in the path, so make sure we never use it.
  2233. set dummy $ac_cv_prog_CC
  2234. shift
  2235. if test $# != 0; then
  2236. # We chose a different compiler from the bogus one.
  2237. # However, it has the same basename, so the bogon will be chosen
  2238. # first if we set CC to just the basename; use the full file name.
  2239. shift
  2240. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2241. fi
  2242. fi
  2243. fi
  2244. fi
  2245. CC=$ac_cv_prog_CC
  2246. if test -n "$CC"; then
  2247. echo "$as_me:$LINENO: result: $CC" >&5
  2248. echo "${ECHO_T}$CC" >&6
  2249. else
  2250. echo "$as_me:$LINENO: result: no" >&5
  2251. echo "${ECHO_T}no" >&6
  2252. fi
  2253. fi
  2254. if test -z "$CC"; then
  2255. if test -n "$ac_tool_prefix"; then
  2256. for ac_prog in cl
  2257. do
  2258. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2259. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2260. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2261. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2262. if test "${ac_cv_prog_CC+set}" = set; then
  2263. echo $ECHO_N "(cached) $ECHO_C" >&6
  2264. else
  2265. if test -n "$CC"; then
  2266. ac_cv_prog_CC="$CC" # Let the user override the test.
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_exec_ext in '' $ac_executable_extensions; do
  2274. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2275. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2276. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2277. break 2
  2278. fi
  2279. done
  2280. done
  2281. fi
  2282. fi
  2283. CC=$ac_cv_prog_CC
  2284. if test -n "$CC"; then
  2285. echo "$as_me:$LINENO: result: $CC" >&5
  2286. echo "${ECHO_T}$CC" >&6
  2287. else
  2288. echo "$as_me:$LINENO: result: no" >&5
  2289. echo "${ECHO_T}no" >&6
  2290. fi
  2291. test -n "$CC" && break
  2292. done
  2293. fi
  2294. if test -z "$CC"; then
  2295. ac_ct_CC=$CC
  2296. for ac_prog in cl
  2297. do
  2298. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2299. set dummy $ac_prog; ac_word=$2
  2300. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2301. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2302. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. if test -n "$ac_ct_CC"; then
  2306. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2307. else
  2308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2309. for as_dir in $PATH
  2310. do
  2311. IFS=$as_save_IFS
  2312. test -z "$as_dir" && as_dir=.
  2313. for ac_exec_ext in '' $ac_executable_extensions; do
  2314. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2315. ac_cv_prog_ac_ct_CC="$ac_prog"
  2316. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2317. break 2
  2318. fi
  2319. done
  2320. done
  2321. fi
  2322. fi
  2323. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2324. if test -n "$ac_ct_CC"; then
  2325. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2326. echo "${ECHO_T}$ac_ct_CC" >&6
  2327. else
  2328. echo "$as_me:$LINENO: result: no" >&5
  2329. echo "${ECHO_T}no" >&6
  2330. fi
  2331. test -n "$ac_ct_CC" && break
  2332. done
  2333. CC=$ac_ct_CC
  2334. fi
  2335. fi
  2336. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2337. See \`config.log' for more details." >&5
  2338. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2339. See \`config.log' for more details." >&2;}
  2340. { (exit 1); exit 1; }; }
  2341. # Provide some information about the compiler.
  2342. echo "$as_me:$LINENO:" \
  2343. "checking for C compiler version" >&5
  2344. ac_compiler=`set X $ac_compile; echo $2`
  2345. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2346. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2347. ac_status=$?
  2348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2349. (exit $ac_status); }
  2350. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2351. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2352. ac_status=$?
  2353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2354. (exit $ac_status); }
  2355. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2356. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2357. ac_status=$?
  2358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2359. (exit $ac_status); }
  2360. cat >conftest.$ac_ext <<_ACEOF
  2361. /* confdefs.h. */
  2362. _ACEOF
  2363. cat confdefs.h >>conftest.$ac_ext
  2364. cat >>conftest.$ac_ext <<_ACEOF
  2365. /* end confdefs.h. */
  2366. int
  2367. main ()
  2368. {
  2369. ;
  2370. return 0;
  2371. }
  2372. _ACEOF
  2373. ac_clean_files_save=$ac_clean_files
  2374. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2375. # Try to create an executable without -o first, disregard a.out.
  2376. # It will help us diagnose broken compilers, and finding out an intuition
  2377. # of exeext.
  2378. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2379. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2380. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2381. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2382. (eval $ac_link_default) 2>&5
  2383. ac_status=$?
  2384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2385. (exit $ac_status); }; then
  2386. # Find the output, starting from the most likely. This scheme is
  2387. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2388. # resort.
  2389. # Be careful to initialize this variable, since it used to be cached.
  2390. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2391. ac_cv_exeext=
  2392. # b.out is created by i960 compilers.
  2393. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2394. do
  2395. test -f "$ac_file" || continue
  2396. case $ac_file in
  2397. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2398. ;;
  2399. conftest.$ac_ext )
  2400. # This is the source file.
  2401. ;;
  2402. [ab].out )
  2403. # We found the default executable, but exeext='' is most
  2404. # certainly right.
  2405. break;;
  2406. *.* )
  2407. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2408. # FIXME: I believe we export ac_cv_exeext for Libtool,
  2409. # but it would be cool to find out if it's true. Does anybody
  2410. # maintain Libtool? --akim.
  2411. export ac_cv_exeext
  2412. break;;
  2413. * )
  2414. break;;
  2415. esac
  2416. done
  2417. else
  2418. echo "$as_me: failed program was:" >&5
  2419. sed 's/^/| /' conftest.$ac_ext >&5
  2420. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2421. See \`config.log' for more details." >&5
  2422. echo "$as_me: error: C compiler cannot create executables
  2423. See \`config.log' for more details." >&2;}
  2424. { (exit 77); exit 77; }; }
  2425. fi
  2426. ac_exeext=$ac_cv_exeext
  2427. echo "$as_me:$LINENO: result: $ac_file" >&5
  2428. echo "${ECHO_T}$ac_file" >&6
  2429. # Check the compiler produces executables we can run. If not, either
  2430. # the compiler is broken, or we cross compile.
  2431. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2432. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2433. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2434. # If not cross compiling, check that we can run a simple program.
  2435. if test "$cross_compiling" != yes; then
  2436. if { ac_try='./$ac_file'
  2437. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2438. (eval $ac_try) 2>&5
  2439. ac_status=$?
  2440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2441. (exit $ac_status); }; }; then
  2442. cross_compiling=no
  2443. else
  2444. if test "$cross_compiling" = maybe; then
  2445. cross_compiling=yes
  2446. else
  2447. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2448. If you meant to cross compile, use \`--host'.
  2449. See \`config.log' for more details." >&5
  2450. echo "$as_me: error: cannot run C compiled programs.
  2451. If you meant to cross compile, use \`--host'.
  2452. See \`config.log' for more details." >&2;}
  2453. { (exit 1); exit 1; }; }
  2454. fi
  2455. fi
  2456. fi
  2457. echo "$as_me:$LINENO: result: yes" >&5
  2458. echo "${ECHO_T}yes" >&6
  2459. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2460. ac_clean_files=$ac_clean_files_save
  2461. # Check the compiler produces executables we can run. If not, either
  2462. # the compiler is broken, or we cross compile.
  2463. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2464. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2465. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2466. echo "${ECHO_T}$cross_compiling" >&6
  2467. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2468. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2469. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2470. (eval $ac_link) 2>&5
  2471. ac_status=$?
  2472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2473. (exit $ac_status); }; then
  2474. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2475. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2476. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2477. # `rm'.
  2478. for ac_file in conftest.exe conftest conftest.*; do
  2479. test -f "$ac_file" || continue
  2480. case $ac_file in
  2481. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2482. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2483. export ac_cv_exeext
  2484. break;;
  2485. * ) break;;
  2486. esac
  2487. done
  2488. else
  2489. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2490. See \`config.log' for more details." >&5
  2491. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2492. See \`config.log' for more details." >&2;}
  2493. { (exit 1); exit 1; }; }
  2494. fi
  2495. rm -f conftest$ac_cv_exeext
  2496. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2497. echo "${ECHO_T}$ac_cv_exeext" >&6
  2498. rm -f conftest.$ac_ext
  2499. EXEEXT=$ac_cv_exeext
  2500. ac_exeext=$EXEEXT
  2501. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2502. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2503. if test "${ac_cv_objext+set}" = set; then
  2504. echo $ECHO_N "(cached) $ECHO_C" >&6
  2505. else
  2506. cat >conftest.$ac_ext <<_ACEOF
  2507. /* confdefs.h. */
  2508. _ACEOF
  2509. cat confdefs.h >>conftest.$ac_ext
  2510. cat >>conftest.$ac_ext <<_ACEOF
  2511. /* end confdefs.h. */
  2512. int
  2513. main ()
  2514. {
  2515. ;
  2516. return 0;
  2517. }
  2518. _ACEOF
  2519. rm -f conftest.o conftest.obj
  2520. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2521. (eval $ac_compile) 2>&5
  2522. ac_status=$?
  2523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2524. (exit $ac_status); }; then
  2525. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2526. case $ac_file in
  2527. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2528. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2529. break;;
  2530. esac
  2531. done
  2532. else
  2533. echo "$as_me: failed program was:" >&5
  2534. sed 's/^/| /' conftest.$ac_ext >&5
  2535. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2536. See \`config.log' for more details." >&5
  2537. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2538. See \`config.log' for more details." >&2;}
  2539. { (exit 1); exit 1; }; }
  2540. fi
  2541. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2542. fi
  2543. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2544. echo "${ECHO_T}$ac_cv_objext" >&6
  2545. OBJEXT=$ac_cv_objext
  2546. ac_objext=$OBJEXT
  2547. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2548. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2549. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2550. echo $ECHO_N "(cached) $ECHO_C" >&6
  2551. else
  2552. cat >conftest.$ac_ext <<_ACEOF
  2553. /* confdefs.h. */
  2554. _ACEOF
  2555. cat confdefs.h >>conftest.$ac_ext
  2556. cat >>conftest.$ac_ext <<_ACEOF
  2557. /* end confdefs.h. */
  2558. int
  2559. main ()
  2560. {
  2561. #ifndef __GNUC__
  2562. choke me
  2563. #endif
  2564. ;
  2565. return 0;
  2566. }
  2567. _ACEOF
  2568. rm -f conftest.$ac_objext
  2569. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2570. (eval $ac_compile) 2>conftest.er1
  2571. ac_status=$?
  2572. grep -v '^ *+' conftest.er1 >conftest.err
  2573. rm -f conftest.er1
  2574. cat conftest.err >&5
  2575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2576. (exit $ac_status); } &&
  2577. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2579. (eval $ac_try) 2>&5
  2580. ac_status=$?
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); }; } &&
  2583. { ac_try='test -s conftest.$ac_objext'
  2584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2585. (eval $ac_try) 2>&5
  2586. ac_status=$?
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); }; }; then
  2589. ac_compiler_gnu=yes
  2590. else
  2591. echo "$as_me: failed program was:" >&5
  2592. sed 's/^/| /' conftest.$ac_ext >&5
  2593. ac_compiler_gnu=no
  2594. fi
  2595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2596. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2597. fi
  2598. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2599. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2600. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2601. ac_test_CFLAGS=${CFLAGS+set}
  2602. ac_save_CFLAGS=$CFLAGS
  2603. CFLAGS="-g"
  2604. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2605. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2606. if test "${ac_cv_prog_cc_g+set}" = set; then
  2607. echo $ECHO_N "(cached) $ECHO_C" >&6
  2608. else
  2609. cat >conftest.$ac_ext <<_ACEOF
  2610. /* confdefs.h. */
  2611. _ACEOF
  2612. cat confdefs.h >>conftest.$ac_ext
  2613. cat >>conftest.$ac_ext <<_ACEOF
  2614. /* end confdefs.h. */
  2615. int
  2616. main ()
  2617. {
  2618. ;
  2619. return 0;
  2620. }
  2621. _ACEOF
  2622. rm -f conftest.$ac_objext
  2623. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2624. (eval $ac_compile) 2>conftest.er1
  2625. ac_status=$?
  2626. grep -v '^ *+' conftest.er1 >conftest.err
  2627. rm -f conftest.er1
  2628. cat conftest.err >&5
  2629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2630. (exit $ac_status); } &&
  2631. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2632. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2633. (eval $ac_try) 2>&5
  2634. ac_status=$?
  2635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2636. (exit $ac_status); }; } &&
  2637. { ac_try='test -s conftest.$ac_objext'
  2638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2639. (eval $ac_try) 2>&5
  2640. ac_status=$?
  2641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2642. (exit $ac_status); }; }; then
  2643. ac_cv_prog_cc_g=yes
  2644. else
  2645. echo "$as_me: failed program was:" >&5
  2646. sed 's/^/| /' conftest.$ac_ext >&5
  2647. ac_cv_prog_cc_g=no
  2648. fi
  2649. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2650. fi
  2651. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2652. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2653. if test "$ac_test_CFLAGS" = set; then
  2654. CFLAGS=$ac_save_CFLAGS
  2655. elif test $ac_cv_prog_cc_g = yes; then
  2656. if test "$GCC" = yes; then
  2657. CFLAGS="-g -O2"
  2658. else
  2659. CFLAGS="-g"
  2660. fi
  2661. else
  2662. if test "$GCC" = yes; then
  2663. CFLAGS="-O2"
  2664. else
  2665. CFLAGS=
  2666. fi
  2667. fi
  2668. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2669. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2670. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2671. echo $ECHO_N "(cached) $ECHO_C" >&6
  2672. else
  2673. ac_cv_prog_cc_stdc=no
  2674. ac_save_CC=$CC
  2675. cat >conftest.$ac_ext <<_ACEOF
  2676. /* confdefs.h. */
  2677. _ACEOF
  2678. cat confdefs.h >>conftest.$ac_ext
  2679. cat >>conftest.$ac_ext <<_ACEOF
  2680. /* end confdefs.h. */
  2681. #include <stdarg.h>
  2682. #include <stdio.h>
  2683. #include <sys/types.h>
  2684. #include <sys/stat.h>
  2685. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2686. struct buf { int x; };
  2687. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2688. static char *e (p, i)
  2689. char **p;
  2690. int i;
  2691. {
  2692. return p[i];
  2693. }
  2694. static char *f (char * (*g) (char **, int), char **p, ...)
  2695. {
  2696. char *s;
  2697. va_list v;
  2698. va_start (v,p);
  2699. s = g (p, va_arg (v,int));
  2700. va_end (v);
  2701. return s;
  2702. }
  2703. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2704. function prototypes and stuff, but not '\xHH' hex character constants.
  2705. These don't provoke an error unfortunately, instead are silently treated
  2706. as 'x'. The following induces an error, until -std1 is added to get
  2707. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2708. array size at least. It's necessary to write '\x00'==0 to get something
  2709. that's true only with -std1. */
  2710. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2711. int test (int i, double x);
  2712. struct s1 {int (*f) (int a);};
  2713. struct s2 {int (*f) (double a);};
  2714. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2715. int argc;
  2716. char **argv;
  2717. int
  2718. main ()
  2719. {
  2720. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2721. ;
  2722. return 0;
  2723. }
  2724. _ACEOF
  2725. # Don't try gcc -ansi; that turns off useful extensions and
  2726. # breaks some systems' header files.
  2727. # AIX -qlanglvl=ansi
  2728. # Ultrix and OSF/1 -std1
  2729. # HP-UX 10.20 and later -Ae
  2730. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2731. # SVR4 -Xc -D__EXTENSIONS__
  2732. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2733. do
  2734. CC="$ac_save_CC $ac_arg"
  2735. rm -f conftest.$ac_objext
  2736. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2737. (eval $ac_compile) 2>conftest.er1
  2738. ac_status=$?
  2739. grep -v '^ *+' conftest.er1 >conftest.err
  2740. rm -f conftest.er1
  2741. cat conftest.err >&5
  2742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2743. (exit $ac_status); } &&
  2744. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2746. (eval $ac_try) 2>&5
  2747. ac_status=$?
  2748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2749. (exit $ac_status); }; } &&
  2750. { ac_try='test -s conftest.$ac_objext'
  2751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2752. (eval $ac_try) 2>&5
  2753. ac_status=$?
  2754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2755. (exit $ac_status); }; }; then
  2756. ac_cv_prog_cc_stdc=$ac_arg
  2757. break
  2758. else
  2759. echo "$as_me: failed program was:" >&5
  2760. sed 's/^/| /' conftest.$ac_ext >&5
  2761. fi
  2762. rm -f conftest.err conftest.$ac_objext
  2763. done
  2764. rm -f conftest.$ac_ext conftest.$ac_objext
  2765. CC=$ac_save_CC
  2766. fi
  2767. case "x$ac_cv_prog_cc_stdc" in
  2768. x|xno)
  2769. echo "$as_me:$LINENO: result: none needed" >&5
  2770. echo "${ECHO_T}none needed" >&6 ;;
  2771. *)
  2772. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2773. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2774. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2775. esac
  2776. # Some people use a C++ compiler to compile C. Since we use `exit',
  2777. # in C++ we need to declare it. In case someone uses the same compiler
  2778. # for both compiling C and C++ we need to have the C++ compiler decide
  2779. # the declaration of exit, since it's the most demanding environment.
  2780. cat >conftest.$ac_ext <<_ACEOF
  2781. #ifndef __cplusplus
  2782. choke me
  2783. #endif
  2784. _ACEOF
  2785. rm -f conftest.$ac_objext
  2786. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2787. (eval $ac_compile) 2>conftest.er1
  2788. ac_status=$?
  2789. grep -v '^ *+' conftest.er1 >conftest.err
  2790. rm -f conftest.er1
  2791. cat conftest.err >&5
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); } &&
  2794. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2796. (eval $ac_try) 2>&5
  2797. ac_status=$?
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); }; } &&
  2800. { ac_try='test -s conftest.$ac_objext'
  2801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2802. (eval $ac_try) 2>&5
  2803. ac_status=$?
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); }; }; then
  2806. for ac_declaration in \
  2807. '' \
  2808. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2809. 'extern "C" void std::exit (int); using std::exit;' \
  2810. 'extern "C" void exit (int) throw ();' \
  2811. 'extern "C" void exit (int);' \
  2812. 'void exit (int);'
  2813. do
  2814. cat >conftest.$ac_ext <<_ACEOF
  2815. /* confdefs.h. */
  2816. _ACEOF
  2817. cat confdefs.h >>conftest.$ac_ext
  2818. cat >>conftest.$ac_ext <<_ACEOF
  2819. /* end confdefs.h. */
  2820. $ac_declaration
  2821. #include <stdlib.h>
  2822. int
  2823. main ()
  2824. {
  2825. exit (42);
  2826. ;
  2827. return 0;
  2828. }
  2829. _ACEOF
  2830. rm -f conftest.$ac_objext
  2831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2832. (eval $ac_compile) 2>conftest.er1
  2833. ac_status=$?
  2834. grep -v '^ *+' conftest.er1 >conftest.err
  2835. rm -f conftest.er1
  2836. cat conftest.err >&5
  2837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2838. (exit $ac_status); } &&
  2839. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2841. (eval $ac_try) 2>&5
  2842. ac_status=$?
  2843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2844. (exit $ac_status); }; } &&
  2845. { ac_try='test -s conftest.$ac_objext'
  2846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2847. (eval $ac_try) 2>&5
  2848. ac_status=$?
  2849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850. (exit $ac_status); }; }; then
  2851. :
  2852. else
  2853. echo "$as_me: failed program was:" >&5
  2854. sed 's/^/| /' conftest.$ac_ext >&5
  2855. continue
  2856. fi
  2857. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2858. cat >conftest.$ac_ext <<_ACEOF
  2859. /* confdefs.h. */
  2860. _ACEOF
  2861. cat confdefs.h >>conftest.$ac_ext
  2862. cat >>conftest.$ac_ext <<_ACEOF
  2863. /* end confdefs.h. */
  2864. $ac_declaration
  2865. int
  2866. main ()
  2867. {
  2868. exit (42);
  2869. ;
  2870. return 0;
  2871. }
  2872. _ACEOF
  2873. rm -f conftest.$ac_objext
  2874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2875. (eval $ac_compile) 2>conftest.er1
  2876. ac_status=$?
  2877. grep -v '^ *+' conftest.er1 >conftest.err
  2878. rm -f conftest.er1
  2879. cat conftest.err >&5
  2880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2881. (exit $ac_status); } &&
  2882. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2884. (eval $ac_try) 2>&5
  2885. ac_status=$?
  2886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887. (exit $ac_status); }; } &&
  2888. { ac_try='test -s conftest.$ac_objext'
  2889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2890. (eval $ac_try) 2>&5
  2891. ac_status=$?
  2892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2893. (exit $ac_status); }; }; then
  2894. break
  2895. else
  2896. echo "$as_me: failed program was:" >&5
  2897. sed 's/^/| /' conftest.$ac_ext >&5
  2898. fi
  2899. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2900. done
  2901. rm -f conftest*
  2902. if test -n "$ac_declaration"; then
  2903. echo '#ifdef __cplusplus' >>confdefs.h
  2904. echo $ac_declaration >>confdefs.h
  2905. echo '#endif' >>confdefs.h
  2906. fi
  2907. else
  2908. echo "$as_me: failed program was:" >&5
  2909. sed 's/^/| /' conftest.$ac_ext >&5
  2910. fi
  2911. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2912. ac_ext=c
  2913. ac_cpp='$CPP $CPPFLAGS'
  2914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2917. depcc="$CC" am_compiler_list=
  2918. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2919. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  2920. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2921. echo $ECHO_N "(cached) $ECHO_C" >&6
  2922. else
  2923. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2924. # We make a subdir and do the tests there. Otherwise we can end up
  2925. # making bogus files that we don't know about and never remove. For
  2926. # instance it was reported that on HP-UX the gcc test will end up
  2927. # making a dummy file named `D' -- because `-MD' means `put the output
  2928. # in D'.
  2929. mkdir conftest.dir
  2930. # Copy depcomp to subdir because otherwise we won't find it if we're
  2931. # using a relative directory.
  2932. cp "$am_depcomp" conftest.dir
  2933. cd conftest.dir
  2934. # We will build objects and dependencies in a subdirectory because
  2935. # it helps to detect inapplicable dependency modes. For instance
  2936. # both Tru64's cc and ICC support -MD to output dependencies as a
  2937. # side effect of compilation, but ICC will put the dependencies in
  2938. # the current directory while Tru64 will put them in the object
  2939. # directory.
  2940. mkdir sub
  2941. am_cv_CC_dependencies_compiler_type=none
  2942. if test "$am_compiler_list" = ""; then
  2943. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2944. fi
  2945. for depmode in $am_compiler_list; do
  2946. # Setup a source with many dependencies, because some compilers
  2947. # like to wrap large dependency lists on column 80 (with \), and
  2948. # we should not choose a depcomp mode which is confused by this.
  2949. #
  2950. # We need to recreate these files for each test, as the compiler may
  2951. # overwrite some of them when testing with obscure command lines.
  2952. # This happens at least with the AIX C compiler.
  2953. : > sub/conftest.c
  2954. for i in 1 2 3 4 5 6; do
  2955. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2956. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2957. # Solaris 8's {/usr,}/bin/sh.
  2958. touch sub/conftst$i.h
  2959. done
  2960. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2961. case $depmode in
  2962. nosideeffect)
  2963. # after this tag, mechanisms are not by side-effect, so they'll
  2964. # only be used when explicitly requested
  2965. if test "x$enable_dependency_tracking" = xyes; then
  2966. continue
  2967. else
  2968. break
  2969. fi
  2970. ;;
  2971. none) break ;;
  2972. esac
  2973. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2974. # mode. It turns out that the SunPro C++ compiler does not properly
  2975. # handle `-M -o', and we need to detect this.
  2976. if depmode=$depmode \
  2977. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2978. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2979. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2980. >/dev/null 2>conftest.err &&
  2981. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2982. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2983. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2984. # icc doesn't choke on unknown options, it will just issue warnings
  2985. # or remarks (even with -Werror). So we grep stderr for any message
  2986. # that says an option was ignored or not supported.
  2987. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2988. # icc: Command line warning: ignoring option '-M'; no argument required
  2989. # The diagnosis changed in icc 8.0:
  2990. # icc: Command line remark: option '-MP' not supported
  2991. if (grep 'ignoring option' conftest.err ||
  2992. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2993. am_cv_CC_dependencies_compiler_type=$depmode
  2994. break
  2995. fi
  2996. fi
  2997. done
  2998. cd ..
  2999. rm -rf conftest.dir
  3000. else
  3001. am_cv_CC_dependencies_compiler_type=none
  3002. fi
  3003. fi
  3004. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3005. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3006. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3007. if
  3008. test "x$enable_dependency_tracking" != xno \
  3009. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3010. am__fastdepCC_TRUE=
  3011. am__fastdepCC_FALSE='#'
  3012. else
  3013. am__fastdepCC_TRUE='#'
  3014. am__fastdepCC_FALSE=
  3015. fi
  3016. if test -n "$ac_tool_prefix"; then
  3017. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3018. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3019. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3020. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3021. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3022. echo $ECHO_N "(cached) $ECHO_C" >&6
  3023. else
  3024. if test -n "$RANLIB"; then
  3025. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3026. else
  3027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3028. for as_dir in $PATH
  3029. do
  3030. IFS=$as_save_IFS
  3031. test -z "$as_dir" && as_dir=.
  3032. for ac_exec_ext in '' $ac_executable_extensions; do
  3033. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3034. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3035. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3036. break 2
  3037. fi
  3038. done
  3039. done
  3040. fi
  3041. fi
  3042. RANLIB=$ac_cv_prog_RANLIB
  3043. if test -n "$RANLIB"; then
  3044. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3045. echo "${ECHO_T}$RANLIB" >&6
  3046. else
  3047. echo "$as_me:$LINENO: result: no" >&5
  3048. echo "${ECHO_T}no" >&6
  3049. fi
  3050. fi
  3051. if test -z "$ac_cv_prog_RANLIB"; then
  3052. ac_ct_RANLIB=$RANLIB
  3053. # Extract the first word of "ranlib", so it can be a program name with args.
  3054. set dummy ranlib; ac_word=$2
  3055. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3056. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3057. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3058. echo $ECHO_N "(cached) $ECHO_C" >&6
  3059. else
  3060. if test -n "$ac_ct_RANLIB"; then
  3061. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3062. else
  3063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3064. for as_dir in $PATH
  3065. do
  3066. IFS=$as_save_IFS
  3067. test -z "$as_dir" && as_dir=.
  3068. for ac_exec_ext in '' $ac_executable_extensions; do
  3069. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3070. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3071. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3072. break 2
  3073. fi
  3074. done
  3075. done
  3076. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3077. fi
  3078. fi
  3079. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3080. if test -n "$ac_ct_RANLIB"; then
  3081. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3082. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3083. else
  3084. echo "$as_me:$LINENO: result: no" >&5
  3085. echo "${ECHO_T}no" >&6
  3086. fi
  3087. RANLIB=$ac_ct_RANLIB
  3088. else
  3089. RANLIB="$ac_cv_prog_RANLIB"
  3090. fi
  3091. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  3092. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  3093. if test "${ac_cv_search_strerror+set}" = set; then
  3094. echo $ECHO_N "(cached) $ECHO_C" >&6
  3095. else
  3096. ac_func_search_save_LIBS=$LIBS
  3097. ac_cv_search_strerror=no
  3098. cat >conftest.$ac_ext <<_ACEOF
  3099. /* confdefs.h. */
  3100. _ACEOF
  3101. cat confdefs.h >>conftest.$ac_ext
  3102. cat >>conftest.$ac_ext <<_ACEOF
  3103. /* end confdefs.h. */
  3104. /* Override any gcc2 internal prototype to avoid an error. */
  3105. #ifdef __cplusplus
  3106. extern "C"
  3107. #endif
  3108. /* We use char because int might match the return type of a gcc2
  3109. builtin and then its argument prototype would still apply. */
  3110. char strerror ();
  3111. int
  3112. main ()
  3113. {
  3114. strerror ();
  3115. ;
  3116. return 0;
  3117. }
  3118. _ACEOF
  3119. rm -f conftest.$ac_objext conftest$ac_exeext
  3120. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3121. (eval $ac_link) 2>conftest.er1
  3122. ac_status=$?
  3123. grep -v '^ *+' conftest.er1 >conftest.err
  3124. rm -f conftest.er1
  3125. cat conftest.err >&5
  3126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3127. (exit $ac_status); } &&
  3128. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3129. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3130. (eval $ac_try) 2>&5
  3131. ac_status=$?
  3132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3133. (exit $ac_status); }; } &&
  3134. { ac_try='test -s conftest$ac_exeext'
  3135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3136. (eval $ac_try) 2>&5
  3137. ac_status=$?
  3138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3139. (exit $ac_status); }; }; then
  3140. ac_cv_search_strerror="none required"
  3141. else
  3142. echo "$as_me: failed program was:" >&5
  3143. sed 's/^/| /' conftest.$ac_ext >&5
  3144. fi
  3145. rm -f conftest.err conftest.$ac_objext \
  3146. conftest$ac_exeext conftest.$ac_ext
  3147. if test "$ac_cv_search_strerror" = no; then
  3148. for ac_lib in cposix; do
  3149. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3150. cat >conftest.$ac_ext <<_ACEOF
  3151. /* confdefs.h. */
  3152. _ACEOF
  3153. cat confdefs.h >>conftest.$ac_ext
  3154. cat >>conftest.$ac_ext <<_ACEOF
  3155. /* end confdefs.h. */
  3156. /* Override any gcc2 internal prototype to avoid an error. */
  3157. #ifdef __cplusplus
  3158. extern "C"
  3159. #endif
  3160. /* We use char because int might match the return type of a gcc2
  3161. builtin and then its argument prototype would still apply. */
  3162. char strerror ();
  3163. int
  3164. main ()
  3165. {
  3166. strerror ();
  3167. ;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. rm -f conftest.$ac_objext conftest$ac_exeext
  3172. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3173. (eval $ac_link) 2>conftest.er1
  3174. ac_status=$?
  3175. grep -v '^ *+' conftest.er1 >conftest.err
  3176. rm -f conftest.er1
  3177. cat conftest.err >&5
  3178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3179. (exit $ac_status); } &&
  3180. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3182. (eval $ac_try) 2>&5
  3183. ac_status=$?
  3184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3185. (exit $ac_status); }; } &&
  3186. { ac_try='test -s conftest$ac_exeext'
  3187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3188. (eval $ac_try) 2>&5
  3189. ac_status=$?
  3190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3191. (exit $ac_status); }; }; then
  3192. ac_cv_search_strerror="-l$ac_lib"
  3193. break
  3194. else
  3195. echo "$as_me: failed program was:" >&5
  3196. sed 's/^/| /' conftest.$ac_ext >&5
  3197. fi
  3198. rm -f conftest.err conftest.$ac_objext \
  3199. conftest$ac_exeext conftest.$ac_ext
  3200. done
  3201. fi
  3202. LIBS=$ac_func_search_save_LIBS
  3203. fi
  3204. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  3205. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  3206. if test "$ac_cv_search_strerror" != no; then
  3207. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  3208. fi
  3209. ac_ext=c
  3210. ac_cpp='$CPP $CPPFLAGS'
  3211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3214. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3215. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3216. # On Suns, sometimes $CPP names a directory.
  3217. if test -n "$CPP" && test -d "$CPP"; then
  3218. CPP=
  3219. fi
  3220. if test -z "$CPP"; then
  3221. if test "${ac_cv_prog_CPP+set}" = set; then
  3222. echo $ECHO_N "(cached) $ECHO_C" >&6
  3223. else
  3224. # Double quotes because CPP needs to be expanded
  3225. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3226. do
  3227. ac_preproc_ok=false
  3228. for ac_c_preproc_warn_flag in '' yes
  3229. do
  3230. # Use a header file that comes with gcc, so configuring glibc
  3231. # with a fresh cross-compiler works.
  3232. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3233. # <limits.h> exists even on freestanding compilers.
  3234. # On the NeXT, cc -E runs the code through the compiler's parser,
  3235. # not just through cpp. "Syntax error" is here to catch this case.
  3236. cat >conftest.$ac_ext <<_ACEOF
  3237. /* confdefs.h. */
  3238. _ACEOF
  3239. cat confdefs.h >>conftest.$ac_ext
  3240. cat >>conftest.$ac_ext <<_ACEOF
  3241. /* end confdefs.h. */
  3242. #ifdef __STDC__
  3243. # include <limits.h>
  3244. #else
  3245. # include <assert.h>
  3246. #endif
  3247. Syntax error
  3248. _ACEOF
  3249. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3250. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3251. ac_status=$?
  3252. grep -v '^ *+' conftest.er1 >conftest.err
  3253. rm -f conftest.er1
  3254. cat conftest.err >&5
  3255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3256. (exit $ac_status); } >/dev/null; then
  3257. if test -s conftest.err; then
  3258. ac_cpp_err=$ac_c_preproc_warn_flag
  3259. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3260. else
  3261. ac_cpp_err=
  3262. fi
  3263. else
  3264. ac_cpp_err=yes
  3265. fi
  3266. if test -z "$ac_cpp_err"; then
  3267. :
  3268. else
  3269. echo "$as_me: failed program was:" >&5
  3270. sed 's/^/| /' conftest.$ac_ext >&5
  3271. # Broken: fails on valid input.
  3272. continue
  3273. fi
  3274. rm -f conftest.err conftest.$ac_ext
  3275. # OK, works on sane cases. Now check whether non-existent headers
  3276. # can be detected and how.
  3277. cat >conftest.$ac_ext <<_ACEOF
  3278. /* confdefs.h. */
  3279. _ACEOF
  3280. cat confdefs.h >>conftest.$ac_ext
  3281. cat >>conftest.$ac_ext <<_ACEOF
  3282. /* end confdefs.h. */
  3283. #include <ac_nonexistent.h>
  3284. _ACEOF
  3285. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3286. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3287. ac_status=$?
  3288. grep -v '^ *+' conftest.er1 >conftest.err
  3289. rm -f conftest.er1
  3290. cat conftest.err >&5
  3291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3292. (exit $ac_status); } >/dev/null; then
  3293. if test -s conftest.err; then
  3294. ac_cpp_err=$ac_c_preproc_warn_flag
  3295. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3296. else
  3297. ac_cpp_err=
  3298. fi
  3299. else
  3300. ac_cpp_err=yes
  3301. fi
  3302. if test -z "$ac_cpp_err"; then
  3303. # Broken: success on invalid input.
  3304. continue
  3305. else
  3306. echo "$as_me: failed program was:" >&5
  3307. sed 's/^/| /' conftest.$ac_ext >&5
  3308. # Passes both tests.
  3309. ac_preproc_ok=:
  3310. break
  3311. fi
  3312. rm -f conftest.err conftest.$ac_ext
  3313. done
  3314. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3315. rm -f conftest.err conftest.$ac_ext
  3316. if $ac_preproc_ok; then
  3317. break
  3318. fi
  3319. done
  3320. ac_cv_prog_CPP=$CPP
  3321. fi
  3322. CPP=$ac_cv_prog_CPP
  3323. else
  3324. ac_cv_prog_CPP=$CPP
  3325. fi
  3326. echo "$as_me:$LINENO: result: $CPP" >&5
  3327. echo "${ECHO_T}$CPP" >&6
  3328. ac_preproc_ok=false
  3329. for ac_c_preproc_warn_flag in '' yes
  3330. do
  3331. # Use a header file that comes with gcc, so configuring glibc
  3332. # with a fresh cross-compiler works.
  3333. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3334. # <limits.h> exists even on freestanding compilers.
  3335. # On the NeXT, cc -E runs the code through the compiler's parser,
  3336. # not just through cpp. "Syntax error" is here to catch this case.
  3337. cat >conftest.$ac_ext <<_ACEOF
  3338. /* confdefs.h. */
  3339. _ACEOF
  3340. cat confdefs.h >>conftest.$ac_ext
  3341. cat >>conftest.$ac_ext <<_ACEOF
  3342. /* end confdefs.h. */
  3343. #ifdef __STDC__
  3344. # include <limits.h>
  3345. #else
  3346. # include <assert.h>
  3347. #endif
  3348. Syntax error
  3349. _ACEOF
  3350. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3351. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3352. ac_status=$?
  3353. grep -v '^ *+' conftest.er1 >conftest.err
  3354. rm -f conftest.er1
  3355. cat conftest.err >&5
  3356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3357. (exit $ac_status); } >/dev/null; then
  3358. if test -s conftest.err; then
  3359. ac_cpp_err=$ac_c_preproc_warn_flag
  3360. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3361. else
  3362. ac_cpp_err=
  3363. fi
  3364. else
  3365. ac_cpp_err=yes
  3366. fi
  3367. if test -z "$ac_cpp_err"; then
  3368. :
  3369. else
  3370. echo "$as_me: failed program was:" >&5
  3371. sed 's/^/| /' conftest.$ac_ext >&5
  3372. # Broken: fails on valid input.
  3373. continue
  3374. fi
  3375. rm -f conftest.err conftest.$ac_ext
  3376. # OK, works on sane cases. Now check whether non-existent headers
  3377. # can be detected and how.
  3378. cat >conftest.$ac_ext <<_ACEOF
  3379. /* confdefs.h. */
  3380. _ACEOF
  3381. cat confdefs.h >>conftest.$ac_ext
  3382. cat >>conftest.$ac_ext <<_ACEOF
  3383. /* end confdefs.h. */
  3384. #include <ac_nonexistent.h>
  3385. _ACEOF
  3386. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3387. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3388. ac_status=$?
  3389. grep -v '^ *+' conftest.er1 >conftest.err
  3390. rm -f conftest.er1
  3391. cat conftest.err >&5
  3392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3393. (exit $ac_status); } >/dev/null; then
  3394. if test -s conftest.err; then
  3395. ac_cpp_err=$ac_c_preproc_warn_flag
  3396. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3397. else
  3398. ac_cpp_err=
  3399. fi
  3400. else
  3401. ac_cpp_err=yes
  3402. fi
  3403. if test -z "$ac_cpp_err"; then
  3404. # Broken: success on invalid input.
  3405. continue
  3406. else
  3407. echo "$as_me: failed program was:" >&5
  3408. sed 's/^/| /' conftest.$ac_ext >&5
  3409. # Passes both tests.
  3410. ac_preproc_ok=:
  3411. break
  3412. fi
  3413. rm -f conftest.err conftest.$ac_ext
  3414. done
  3415. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3416. rm -f conftest.err conftest.$ac_ext
  3417. if $ac_preproc_ok; then
  3418. :
  3419. else
  3420. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3421. See \`config.log' for more details." >&5
  3422. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3423. See \`config.log' for more details." >&2;}
  3424. { (exit 1); exit 1; }; }
  3425. fi
  3426. ac_ext=c
  3427. ac_cpp='$CPP $CPPFLAGS'
  3428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3431. echo "$as_me:$LINENO: checking for egrep" >&5
  3432. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3433. if test "${ac_cv_prog_egrep+set}" = set; then
  3434. echo $ECHO_N "(cached) $ECHO_C" >&6
  3435. else
  3436. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3437. then ac_cv_prog_egrep='grep -E'
  3438. else ac_cv_prog_egrep='egrep'
  3439. fi
  3440. fi
  3441. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3442. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3443. EGREP=$ac_cv_prog_egrep
  3444. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3445. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3446. if test "${ac_cv_header_stdc+set}" = set; then
  3447. echo $ECHO_N "(cached) $ECHO_C" >&6
  3448. else
  3449. cat >conftest.$ac_ext <<_ACEOF
  3450. /* confdefs.h. */
  3451. _ACEOF
  3452. cat confdefs.h >>conftest.$ac_ext
  3453. cat >>conftest.$ac_ext <<_ACEOF
  3454. /* end confdefs.h. */
  3455. #include <stdlib.h>
  3456. #include <stdarg.h>
  3457. #include <string.h>
  3458. #include <float.h>
  3459. int
  3460. main ()
  3461. {
  3462. ;
  3463. return 0;
  3464. }
  3465. _ACEOF
  3466. rm -f conftest.$ac_objext
  3467. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3468. (eval $ac_compile) 2>conftest.er1
  3469. ac_status=$?
  3470. grep -v '^ *+' conftest.er1 >conftest.err
  3471. rm -f conftest.er1
  3472. cat conftest.err >&5
  3473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3474. (exit $ac_status); } &&
  3475. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3477. (eval $ac_try) 2>&5
  3478. ac_status=$?
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); }; } &&
  3481. { ac_try='test -s conftest.$ac_objext'
  3482. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3483. (eval $ac_try) 2>&5
  3484. ac_status=$?
  3485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3486. (exit $ac_status); }; }; then
  3487. ac_cv_header_stdc=yes
  3488. else
  3489. echo "$as_me: failed program was:" >&5
  3490. sed 's/^/| /' conftest.$ac_ext >&5
  3491. ac_cv_header_stdc=no
  3492. fi
  3493. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3494. if test $ac_cv_header_stdc = yes; then
  3495. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3496. cat >conftest.$ac_ext <<_ACEOF
  3497. /* confdefs.h. */
  3498. _ACEOF
  3499. cat confdefs.h >>conftest.$ac_ext
  3500. cat >>conftest.$ac_ext <<_ACEOF
  3501. /* end confdefs.h. */
  3502. #include <string.h>
  3503. _ACEOF
  3504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3505. $EGREP "memchr" >/dev/null 2>&1; then
  3506. :
  3507. else
  3508. ac_cv_header_stdc=no
  3509. fi
  3510. rm -f conftest*
  3511. fi
  3512. if test $ac_cv_header_stdc = yes; then
  3513. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3514. cat >conftest.$ac_ext <<_ACEOF
  3515. /* confdefs.h. */
  3516. _ACEOF
  3517. cat confdefs.h >>conftest.$ac_ext
  3518. cat >>conftest.$ac_ext <<_ACEOF
  3519. /* end confdefs.h. */
  3520. #include <stdlib.h>
  3521. _ACEOF
  3522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3523. $EGREP "free" >/dev/null 2>&1; then
  3524. :
  3525. else
  3526. ac_cv_header_stdc=no
  3527. fi
  3528. rm -f conftest*
  3529. fi
  3530. if test $ac_cv_header_stdc = yes; then
  3531. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3532. if test "$cross_compiling" = yes; then
  3533. :
  3534. else
  3535. cat >conftest.$ac_ext <<_ACEOF
  3536. /* confdefs.h. */
  3537. _ACEOF
  3538. cat confdefs.h >>conftest.$ac_ext
  3539. cat >>conftest.$ac_ext <<_ACEOF
  3540. /* end confdefs.h. */
  3541. #include <ctype.h>
  3542. #if ((' ' & 0x0FF) == 0x020)
  3543. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3544. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3545. #else
  3546. # define ISLOWER(c) \
  3547. (('a' <= (c) && (c) <= 'i') \
  3548. || ('j' <= (c) && (c) <= 'r') \
  3549. || ('s' <= (c) && (c) <= 'z'))
  3550. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3551. #endif
  3552. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3553. int
  3554. main ()
  3555. {
  3556. int i;
  3557. for (i = 0; i < 256; i++)
  3558. if (XOR (islower (i), ISLOWER (i))
  3559. || toupper (i) != TOUPPER (i))
  3560. exit(2);
  3561. exit (0);
  3562. }
  3563. _ACEOF
  3564. rm -f conftest$ac_exeext
  3565. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3566. (eval $ac_link) 2>&5
  3567. ac_status=$?
  3568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3569. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3571. (eval $ac_try) 2>&5
  3572. ac_status=$?
  3573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3574. (exit $ac_status); }; }; then
  3575. :
  3576. else
  3577. echo "$as_me: program exited with status $ac_status" >&5
  3578. echo "$as_me: failed program was:" >&5
  3579. sed 's/^/| /' conftest.$ac_ext >&5
  3580. ( exit $ac_status )
  3581. ac_cv_header_stdc=no
  3582. fi
  3583. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3584. fi
  3585. fi
  3586. fi
  3587. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3588. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3589. if test $ac_cv_header_stdc = yes; then
  3590. cat >>confdefs.h <<\_ACEOF
  3591. #define STDC_HEADERS 1
  3592. _ACEOF
  3593. fi
  3594. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3595. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3596. if test "${ac_cv_c_const+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. cat >conftest.$ac_ext <<_ACEOF
  3600. /* confdefs.h. */
  3601. _ACEOF
  3602. cat confdefs.h >>conftest.$ac_ext
  3603. cat >>conftest.$ac_ext <<_ACEOF
  3604. /* end confdefs.h. */
  3605. int
  3606. main ()
  3607. {
  3608. /* FIXME: Include the comments suggested by Paul. */
  3609. #ifndef __cplusplus
  3610. /* Ultrix mips cc rejects this. */
  3611. typedef int charset[2];
  3612. const charset x;
  3613. /* SunOS 4.1.1 cc rejects this. */
  3614. char const *const *ccp;
  3615. char **p;
  3616. /* NEC SVR4.0.2 mips cc rejects this. */
  3617. struct point {int x, y;};
  3618. static struct point const zero = {0,0};
  3619. /* AIX XL C 1.02.0.0 rejects this.
  3620. It does not let you subtract one const X* pointer from another in
  3621. an arm of an if-expression whose if-part is not a constant
  3622. expression */
  3623. const char *g = "string";
  3624. ccp = &g + (g ? g-g : 0);
  3625. /* HPUX 7.0 cc rejects these. */
  3626. ++ccp;
  3627. p = (char**) ccp;
  3628. ccp = (char const *const *) p;
  3629. { /* SCO 3.2v4 cc rejects this. */
  3630. char *t;
  3631. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3632. *t++ = 0;
  3633. }
  3634. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3635. int x[] = {25, 17};
  3636. const int *foo = &x[0];
  3637. ++foo;
  3638. }
  3639. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3640. typedef const int *iptr;
  3641. iptr p = 0;
  3642. ++p;
  3643. }
  3644. { /* AIX XL C 1.02.0.0 rejects this saying
  3645. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3646. struct s { int j; const int *ap[3]; };
  3647. struct s *b; b->j = 5;
  3648. }
  3649. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3650. const int foo = 10;
  3651. }
  3652. #endif
  3653. ;
  3654. return 0;
  3655. }
  3656. _ACEOF
  3657. rm -f conftest.$ac_objext
  3658. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3659. (eval $ac_compile) 2>conftest.er1
  3660. ac_status=$?
  3661. grep -v '^ *+' conftest.er1 >conftest.err
  3662. rm -f conftest.er1
  3663. cat conftest.err >&5
  3664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3665. (exit $ac_status); } &&
  3666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3668. (eval $ac_try) 2>&5
  3669. ac_status=$?
  3670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3671. (exit $ac_status); }; } &&
  3672. { ac_try='test -s conftest.$ac_objext'
  3673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3674. (eval $ac_try) 2>&5
  3675. ac_status=$?
  3676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3677. (exit $ac_status); }; }; then
  3678. ac_cv_c_const=yes
  3679. else
  3680. echo "$as_me: failed program was:" >&5
  3681. sed 's/^/| /' conftest.$ac_ext >&5
  3682. ac_cv_c_const=no
  3683. fi
  3684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3685. fi
  3686. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3687. echo "${ECHO_T}$ac_cv_c_const" >&6
  3688. if test $ac_cv_c_const = no; then
  3689. cat >>confdefs.h <<\_ACEOF
  3690. #define const
  3691. _ACEOF
  3692. fi
  3693. echo "$as_me:$LINENO: checking for signed" >&5
  3694. echo $ECHO_N "checking for signed... $ECHO_C" >&6
  3695. if test "${bh_cv_c_signed+set}" = set; then
  3696. echo $ECHO_N "(cached) $ECHO_C" >&6
  3697. else
  3698. cat >conftest.$ac_ext <<_ACEOF
  3699. /* confdefs.h. */
  3700. _ACEOF
  3701. cat confdefs.h >>conftest.$ac_ext
  3702. cat >>conftest.$ac_ext <<_ACEOF
  3703. /* end confdefs.h. */
  3704. int
  3705. main ()
  3706. {
  3707. signed char x;
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. rm -f conftest.$ac_objext
  3713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3714. (eval $ac_compile) 2>conftest.er1
  3715. ac_status=$?
  3716. grep -v '^ *+' conftest.er1 >conftest.err
  3717. rm -f conftest.er1
  3718. cat conftest.err >&5
  3719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3720. (exit $ac_status); } &&
  3721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3723. (eval $ac_try) 2>&5
  3724. ac_status=$?
  3725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3726. (exit $ac_status); }; } &&
  3727. { ac_try='test -s conftest.$ac_objext'
  3728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3729. (eval $ac_try) 2>&5
  3730. ac_status=$?
  3731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3732. (exit $ac_status); }; }; then
  3733. bh_cv_c_signed=yes
  3734. else
  3735. echo "$as_me: failed program was:" >&5
  3736. sed 's/^/| /' conftest.$ac_ext >&5
  3737. bh_cv_c_signed=no
  3738. fi
  3739. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3740. fi
  3741. echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
  3742. echo "${ECHO_T}$bh_cv_c_signed" >&6
  3743. if test $bh_cv_c_signed = no; then
  3744. cat >>confdefs.h <<\_ACEOF
  3745. #define signed
  3746. _ACEOF
  3747. fi
  3748. echo "$as_me:$LINENO: checking for inline" >&5
  3749. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  3750. if test "${ac_cv_c_inline+set}" = set; then
  3751. echo $ECHO_N "(cached) $ECHO_C" >&6
  3752. else
  3753. ac_cv_c_inline=no
  3754. for ac_kw in inline __inline__ __inline; do
  3755. cat >conftest.$ac_ext <<_ACEOF
  3756. /* confdefs.h. */
  3757. _ACEOF
  3758. cat confdefs.h >>conftest.$ac_ext
  3759. cat >>conftest.$ac_ext <<_ACEOF
  3760. /* end confdefs.h. */
  3761. #ifndef __cplusplus
  3762. typedef int foo_t;
  3763. static $ac_kw foo_t static_foo () {return 0; }
  3764. $ac_kw foo_t foo () {return 0; }
  3765. #endif
  3766. _ACEOF
  3767. rm -f conftest.$ac_objext
  3768. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3769. (eval $ac_compile) 2>conftest.er1
  3770. ac_status=$?
  3771. grep -v '^ *+' conftest.er1 >conftest.err
  3772. rm -f conftest.er1
  3773. cat conftest.err >&5
  3774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3775. (exit $ac_status); } &&
  3776. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3778. (eval $ac_try) 2>&5
  3779. ac_status=$?
  3780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3781. (exit $ac_status); }; } &&
  3782. { ac_try='test -s conftest.$ac_objext'
  3783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3784. (eval $ac_try) 2>&5
  3785. ac_status=$?
  3786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3787. (exit $ac_status); }; }; then
  3788. ac_cv_c_inline=$ac_kw; break
  3789. else
  3790. echo "$as_me: failed program was:" >&5
  3791. sed 's/^/| /' conftest.$ac_ext >&5
  3792. fi
  3793. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3794. done
  3795. fi
  3796. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  3797. echo "${ECHO_T}$ac_cv_c_inline" >&6
  3798. case $ac_cv_c_inline in
  3799. inline | yes) ;;
  3800. *)
  3801. case $ac_cv_c_inline in
  3802. no) ac_val=;;
  3803. *) ac_val=$ac_cv_c_inline;;
  3804. esac
  3805. cat >>confdefs.h <<_ACEOF
  3806. #ifndef __cplusplus
  3807. #define inline $ac_val
  3808. #endif
  3809. _ACEOF
  3810. ;;
  3811. esac
  3812. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3813. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3814. inttypes.h stdint.h unistd.h
  3815. do
  3816. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3817. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3818. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3819. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3820. echo $ECHO_N "(cached) $ECHO_C" >&6
  3821. else
  3822. cat >conftest.$ac_ext <<_ACEOF
  3823. /* confdefs.h. */
  3824. _ACEOF
  3825. cat confdefs.h >>conftest.$ac_ext
  3826. cat >>conftest.$ac_ext <<_ACEOF
  3827. /* end confdefs.h. */
  3828. $ac_includes_default
  3829. #include <$ac_header>
  3830. _ACEOF
  3831. rm -f conftest.$ac_objext
  3832. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3833. (eval $ac_compile) 2>conftest.er1
  3834. ac_status=$?
  3835. grep -v '^ *+' conftest.er1 >conftest.err
  3836. rm -f conftest.er1
  3837. cat conftest.err >&5
  3838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3839. (exit $ac_status); } &&
  3840. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3842. (eval $ac_try) 2>&5
  3843. ac_status=$?
  3844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3845. (exit $ac_status); }; } &&
  3846. { ac_try='test -s conftest.$ac_objext'
  3847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3848. (eval $ac_try) 2>&5
  3849. ac_status=$?
  3850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3851. (exit $ac_status); }; }; then
  3852. eval "$as_ac_Header=yes"
  3853. else
  3854. echo "$as_me: failed program was:" >&5
  3855. sed 's/^/| /' conftest.$ac_ext >&5
  3856. eval "$as_ac_Header=no"
  3857. fi
  3858. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3859. fi
  3860. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3861. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3862. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3863. cat >>confdefs.h <<_ACEOF
  3864. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3865. _ACEOF
  3866. fi
  3867. done
  3868. echo "$as_me:$LINENO: checking for off_t" >&5
  3869. echo $ECHO_N "checking for off_t... $ECHO_C" >&6
  3870. if test "${ac_cv_type_off_t+set}" = set; then
  3871. echo $ECHO_N "(cached) $ECHO_C" >&6
  3872. else
  3873. cat >conftest.$ac_ext <<_ACEOF
  3874. /* confdefs.h. */
  3875. _ACEOF
  3876. cat confdefs.h >>conftest.$ac_ext
  3877. cat >>conftest.$ac_ext <<_ACEOF
  3878. /* end confdefs.h. */
  3879. $ac_includes_default
  3880. int
  3881. main ()
  3882. {
  3883. if ((off_t *) 0)
  3884. return 0;
  3885. if (sizeof (off_t))
  3886. return 0;
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. rm -f conftest.$ac_objext
  3892. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3893. (eval $ac_compile) 2>conftest.er1
  3894. ac_status=$?
  3895. grep -v '^ *+' conftest.er1 >conftest.err
  3896. rm -f conftest.er1
  3897. cat conftest.err >&5
  3898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3899. (exit $ac_status); } &&
  3900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3902. (eval $ac_try) 2>&5
  3903. ac_status=$?
  3904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3905. (exit $ac_status); }; } &&
  3906. { ac_try='test -s conftest.$ac_objext'
  3907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3908. (eval $ac_try) 2>&5
  3909. ac_status=$?
  3910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3911. (exit $ac_status); }; }; then
  3912. ac_cv_type_off_t=yes
  3913. else
  3914. echo "$as_me: failed program was:" >&5
  3915. sed 's/^/| /' conftest.$ac_ext >&5
  3916. ac_cv_type_off_t=no
  3917. fi
  3918. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3919. fi
  3920. echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  3921. echo "${ECHO_T}$ac_cv_type_off_t" >&6
  3922. if test $ac_cv_type_off_t = yes; then
  3923. :
  3924. else
  3925. cat >>confdefs.h <<_ACEOF
  3926. #define off_t long
  3927. _ACEOF
  3928. fi
  3929. echo "$as_me:$LINENO: checking for size_t" >&5
  3930. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  3931. if test "${ac_cv_type_size_t+set}" = set; then
  3932. echo $ECHO_N "(cached) $ECHO_C" >&6
  3933. else
  3934. cat >conftest.$ac_ext <<_ACEOF
  3935. /* confdefs.h. */
  3936. _ACEOF
  3937. cat confdefs.h >>conftest.$ac_ext
  3938. cat >>conftest.$ac_ext <<_ACEOF
  3939. /* end confdefs.h. */
  3940. $ac_includes_default
  3941. int
  3942. main ()
  3943. {
  3944. if ((size_t *) 0)
  3945. return 0;
  3946. if (sizeof (size_t))
  3947. return 0;
  3948. ;
  3949. return 0;
  3950. }
  3951. _ACEOF
  3952. rm -f conftest.$ac_objext
  3953. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3954. (eval $ac_compile) 2>conftest.er1
  3955. ac_status=$?
  3956. grep -v '^ *+' conftest.er1 >conftest.err
  3957. rm -f conftest.er1
  3958. cat conftest.err >&5
  3959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3960. (exit $ac_status); } &&
  3961. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3963. (eval $ac_try) 2>&5
  3964. ac_status=$?
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); }; } &&
  3967. { ac_try='test -s conftest.$ac_objext'
  3968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3969. (eval $ac_try) 2>&5
  3970. ac_status=$?
  3971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3972. (exit $ac_status); }; }; then
  3973. ac_cv_type_size_t=yes
  3974. else
  3975. echo "$as_me: failed program was:" >&5
  3976. sed 's/^/| /' conftest.$ac_ext >&5
  3977. ac_cv_type_size_t=no
  3978. fi
  3979. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3980. fi
  3981. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3982. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  3983. if test $ac_cv_type_size_t = yes; then
  3984. :
  3985. else
  3986. cat >>confdefs.h <<_ACEOF
  3987. #define size_t unsigned
  3988. _ACEOF
  3989. fi
  3990. echo "$as_me:$LINENO: checking for long long" >&5
  3991. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  3992. if test "${ac_cv_type_long_long+set}" = set; then
  3993. echo $ECHO_N "(cached) $ECHO_C" >&6
  3994. else
  3995. cat >conftest.$ac_ext <<_ACEOF
  3996. /* confdefs.h. */
  3997. _ACEOF
  3998. cat confdefs.h >>conftest.$ac_ext
  3999. cat >>conftest.$ac_ext <<_ACEOF
  4000. /* end confdefs.h. */
  4001. long long ll = 1LL; int i = 63;
  4002. int
  4003. main ()
  4004. {
  4005. long long llmax = (long long) -1;
  4006. return ll << i | ll >> i | llmax / ll | llmax % ll;
  4007. ;
  4008. return 0;
  4009. }
  4010. _ACEOF
  4011. rm -f conftest.$ac_objext conftest$ac_exeext
  4012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4013. (eval $ac_link) 2>conftest.er1
  4014. ac_status=$?
  4015. grep -v '^ *+' conftest.er1 >conftest.err
  4016. rm -f conftest.er1
  4017. cat conftest.err >&5
  4018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4019. (exit $ac_status); } &&
  4020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4022. (eval $ac_try) 2>&5
  4023. ac_status=$?
  4024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4025. (exit $ac_status); }; } &&
  4026. { ac_try='test -s conftest$ac_exeext'
  4027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4028. (eval $ac_try) 2>&5
  4029. ac_status=$?
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); }; }; then
  4032. ac_cv_type_long_long=yes
  4033. else
  4034. echo "$as_me: failed program was:" >&5
  4035. sed 's/^/| /' conftest.$ac_ext >&5
  4036. ac_cv_type_long_long=no
  4037. fi
  4038. rm -f conftest.err conftest.$ac_objext \
  4039. conftest$ac_exeext conftest.$ac_ext
  4040. fi
  4041. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  4042. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  4043. if test $ac_cv_type_long_long = yes; then
  4044. cat >>confdefs.h <<\_ACEOF
  4045. #define HAVE_LONG_LONG 1
  4046. _ACEOF
  4047. fi
  4048. echo "$as_me:$LINENO: checking for long double" >&5
  4049. echo $ECHO_N "checking for long double... $ECHO_C" >&6
  4050. if test "${gt_cv_c_long_double+set}" = set; then
  4051. echo $ECHO_N "(cached) $ECHO_C" >&6
  4052. else
  4053. if test "$GCC" = yes; then
  4054. gt_cv_c_long_double=yes
  4055. else
  4056. cat >conftest.$ac_ext <<_ACEOF
  4057. /* confdefs.h. */
  4058. _ACEOF
  4059. cat confdefs.h >>conftest.$ac_ext
  4060. cat >>conftest.$ac_ext <<_ACEOF
  4061. /* end confdefs.h. */
  4062. /* The Stardent Vistra knows sizeof(long double), but does not support it. */
  4063. long double foo = 0.0;
  4064. /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
  4065. int array [2*(sizeof(long double) >= sizeof(double)) - 1];
  4066. int
  4067. main ()
  4068. {
  4069. ;
  4070. return 0;
  4071. }
  4072. _ACEOF
  4073. rm -f conftest.$ac_objext
  4074. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4075. (eval $ac_compile) 2>conftest.er1
  4076. ac_status=$?
  4077. grep -v '^ *+' conftest.er1 >conftest.err
  4078. rm -f conftest.er1
  4079. cat conftest.err >&5
  4080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4081. (exit $ac_status); } &&
  4082. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4084. (eval $ac_try) 2>&5
  4085. ac_status=$?
  4086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4087. (exit $ac_status); }; } &&
  4088. { ac_try='test -s conftest.$ac_objext'
  4089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4090. (eval $ac_try) 2>&5
  4091. ac_status=$?
  4092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4093. (exit $ac_status); }; }; then
  4094. gt_cv_c_long_double=yes
  4095. else
  4096. echo "$as_me: failed program was:" >&5
  4097. sed 's/^/| /' conftest.$ac_ext >&5
  4098. gt_cv_c_long_double=no
  4099. fi
  4100. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4101. fi
  4102. fi
  4103. echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
  4104. echo "${ECHO_T}$gt_cv_c_long_double" >&6
  4105. if test $gt_cv_c_long_double = yes; then
  4106. cat >>confdefs.h <<\_ACEOF
  4107. #define HAVE_LONG_DOUBLE 1
  4108. _ACEOF
  4109. fi
  4110. echo "$as_me:$LINENO: checking for wchar_t" >&5
  4111. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
  4112. if test "${gt_cv_c_wchar_t+set}" = set; then
  4113. echo $ECHO_N "(cached) $ECHO_C" >&6
  4114. else
  4115. cat >conftest.$ac_ext <<_ACEOF
  4116. /* confdefs.h. */
  4117. _ACEOF
  4118. cat confdefs.h >>conftest.$ac_ext
  4119. cat >>conftest.$ac_ext <<_ACEOF
  4120. /* end confdefs.h. */
  4121. #include <stddef.h>
  4122. wchar_t foo = (wchar_t)'\0';
  4123. int
  4124. main ()
  4125. {
  4126. ;
  4127. return 0;
  4128. }
  4129. _ACEOF
  4130. rm -f conftest.$ac_objext
  4131. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4132. (eval $ac_compile) 2>conftest.er1
  4133. ac_status=$?
  4134. grep -v '^ *+' conftest.er1 >conftest.err
  4135. rm -f conftest.er1
  4136. cat conftest.err >&5
  4137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138. (exit $ac_status); } &&
  4139. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4141. (eval $ac_try) 2>&5
  4142. ac_status=$?
  4143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4144. (exit $ac_status); }; } &&
  4145. { ac_try='test -s conftest.$ac_objext'
  4146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4147. (eval $ac_try) 2>&5
  4148. ac_status=$?
  4149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4150. (exit $ac_status); }; }; then
  4151. gt_cv_c_wchar_t=yes
  4152. else
  4153. echo "$as_me: failed program was:" >&5
  4154. sed 's/^/| /' conftest.$ac_ext >&5
  4155. gt_cv_c_wchar_t=no
  4156. fi
  4157. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4158. fi
  4159. echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  4160. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
  4161. if test $gt_cv_c_wchar_t = yes; then
  4162. cat >>confdefs.h <<\_ACEOF
  4163. #define HAVE_WCHAR_T 1
  4164. _ACEOF
  4165. fi
  4166. echo "$as_me:$LINENO: checking for wint_t" >&5
  4167. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
  4168. if test "${gt_cv_c_wint_t+set}" = set; then
  4169. echo $ECHO_N "(cached) $ECHO_C" >&6
  4170. else
  4171. cat >conftest.$ac_ext <<_ACEOF
  4172. /* confdefs.h. */
  4173. _ACEOF
  4174. cat confdefs.h >>conftest.$ac_ext
  4175. cat >>conftest.$ac_ext <<_ACEOF
  4176. /* end confdefs.h. */
  4177. #include <wchar.h>
  4178. wint_t foo = (wchar_t)'\0';
  4179. int
  4180. main ()
  4181. {
  4182. ;
  4183. return 0;
  4184. }
  4185. _ACEOF
  4186. rm -f conftest.$ac_objext
  4187. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4188. (eval $ac_compile) 2>conftest.er1
  4189. ac_status=$?
  4190. grep -v '^ *+' conftest.er1 >conftest.err
  4191. rm -f conftest.er1
  4192. cat conftest.err >&5
  4193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4194. (exit $ac_status); } &&
  4195. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4197. (eval $ac_try) 2>&5
  4198. ac_status=$?
  4199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200. (exit $ac_status); }; } &&
  4201. { ac_try='test -s conftest.$ac_objext'
  4202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4203. (eval $ac_try) 2>&5
  4204. ac_status=$?
  4205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4206. (exit $ac_status); }; }; then
  4207. gt_cv_c_wint_t=yes
  4208. else
  4209. echo "$as_me: failed program was:" >&5
  4210. sed 's/^/| /' conftest.$ac_ext >&5
  4211. gt_cv_c_wint_t=no
  4212. fi
  4213. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4214. fi
  4215. echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  4216. echo "${ECHO_T}$gt_cv_c_wint_t" >&6
  4217. if test $gt_cv_c_wint_t = yes; then
  4218. cat >>confdefs.h <<\_ACEOF
  4219. #define HAVE_WINT_T 1
  4220. _ACEOF
  4221. fi
  4222. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  4223. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  4224. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  4225. echo $ECHO_N "(cached) $ECHO_C" >&6
  4226. else
  4227. cat >conftest.$ac_ext <<_ACEOF
  4228. /* confdefs.h. */
  4229. _ACEOF
  4230. cat confdefs.h >>conftest.$ac_ext
  4231. cat >>conftest.$ac_ext <<_ACEOF
  4232. /* end confdefs.h. */
  4233. #include <sys/types.h>
  4234. #include <inttypes.h>
  4235. int
  4236. main ()
  4237. {
  4238. uintmax_t i = (uintmax_t) -1;
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. rm -f conftest.$ac_objext
  4244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4245. (eval $ac_compile) 2>conftest.er1
  4246. ac_status=$?
  4247. grep -v '^ *+' conftest.er1 >conftest.err
  4248. rm -f conftest.er1
  4249. cat conftest.err >&5
  4250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4251. (exit $ac_status); } &&
  4252. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4254. (eval $ac_try) 2>&5
  4255. ac_status=$?
  4256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4257. (exit $ac_status); }; } &&
  4258. { ac_try='test -s conftest.$ac_objext'
  4259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4260. (eval $ac_try) 2>&5
  4261. ac_status=$?
  4262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4263. (exit $ac_status); }; }; then
  4264. jm_ac_cv_header_inttypes_h=yes
  4265. else
  4266. echo "$as_me: failed program was:" >&5
  4267. sed 's/^/| /' conftest.$ac_ext >&5
  4268. jm_ac_cv_header_inttypes_h=no
  4269. fi
  4270. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4271. fi
  4272. echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  4273. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
  4274. if test $jm_ac_cv_header_inttypes_h = yes; then
  4275. cat >>confdefs.h <<_ACEOF
  4276. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  4277. _ACEOF
  4278. fi
  4279. echo "$as_me:$LINENO: checking for stdint.h" >&5
  4280. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
  4281. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  4282. echo $ECHO_N "(cached) $ECHO_C" >&6
  4283. else
  4284. cat >conftest.$ac_ext <<_ACEOF
  4285. /* confdefs.h. */
  4286. _ACEOF
  4287. cat confdefs.h >>conftest.$ac_ext
  4288. cat >>conftest.$ac_ext <<_ACEOF
  4289. /* end confdefs.h. */
  4290. #include <sys/types.h>
  4291. #include <stdint.h>
  4292. int
  4293. main ()
  4294. {
  4295. uintmax_t i = (uintmax_t) -1;
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. rm -f conftest.$ac_objext
  4301. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4302. (eval $ac_compile) 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } &&
  4309. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4311. (eval $ac_try) 2>&5
  4312. ac_status=$?
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); }; } &&
  4315. { ac_try='test -s conftest.$ac_objext'
  4316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4317. (eval $ac_try) 2>&5
  4318. ac_status=$?
  4319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; }; then
  4321. jm_ac_cv_header_stdint_h=yes
  4322. else
  4323. echo "$as_me: failed program was:" >&5
  4324. sed 's/^/| /' conftest.$ac_ext >&5
  4325. jm_ac_cv_header_stdint_h=no
  4326. fi
  4327. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4328. fi
  4329. echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  4330. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
  4331. if test $jm_ac_cv_header_stdint_h = yes; then
  4332. cat >>confdefs.h <<_ACEOF
  4333. #define HAVE_STDINT_H_WITH_UINTMAX 1
  4334. _ACEOF
  4335. fi
  4336. echo "$as_me:$LINENO: checking for intmax_t" >&5
  4337. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
  4338. if test "${gt_cv_c_intmax_t+set}" = set; then
  4339. echo $ECHO_N "(cached) $ECHO_C" >&6
  4340. else
  4341. cat >conftest.$ac_ext <<_ACEOF
  4342. /* confdefs.h. */
  4343. _ACEOF
  4344. cat confdefs.h >>conftest.$ac_ext
  4345. cat >>conftest.$ac_ext <<_ACEOF
  4346. /* end confdefs.h. */
  4347. #include <stddef.h>
  4348. #include <stdlib.h>
  4349. #if HAVE_STDINT_H_WITH_UINTMAX
  4350. #include <stdint.h>
  4351. #endif
  4352. #if HAVE_INTTYPES_H_WITH_UINTMAX
  4353. #include <inttypes.h>
  4354. #endif
  4355. int
  4356. main ()
  4357. {
  4358. intmax_t x = -1;
  4359. ;
  4360. return 0;
  4361. }
  4362. _ACEOF
  4363. rm -f conftest.$ac_objext
  4364. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4365. (eval $ac_compile) 2>conftest.er1
  4366. ac_status=$?
  4367. grep -v '^ *+' conftest.er1 >conftest.err
  4368. rm -f conftest.er1
  4369. cat conftest.err >&5
  4370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4371. (exit $ac_status); } &&
  4372. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4374. (eval $ac_try) 2>&5
  4375. ac_status=$?
  4376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4377. (exit $ac_status); }; } &&
  4378. { ac_try='test -s conftest.$ac_objext'
  4379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4380. (eval $ac_try) 2>&5
  4381. ac_status=$?
  4382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383. (exit $ac_status); }; }; then
  4384. gt_cv_c_intmax_t=yes
  4385. else
  4386. echo "$as_me: failed program was:" >&5
  4387. sed 's/^/| /' conftest.$ac_ext >&5
  4388. gt_cv_c_intmax_t=no
  4389. fi
  4390. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4391. fi
  4392. echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  4393. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
  4394. if test $gt_cv_c_intmax_t = yes; then
  4395. cat >>confdefs.h <<\_ACEOF
  4396. #define HAVE_INTMAX_T 1
  4397. _ACEOF
  4398. fi
  4399. echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  4400. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
  4401. if test "${gt_cv_func_printf_posix+set}" = set; then
  4402. echo $ECHO_N "(cached) $ECHO_C" >&6
  4403. else
  4404. if test "$cross_compiling" = yes; then
  4405. cat >conftest.$ac_ext <<_ACEOF
  4406. /* confdefs.h. */
  4407. _ACEOF
  4408. cat confdefs.h >>conftest.$ac_ext
  4409. cat >>conftest.$ac_ext <<_ACEOF
  4410. /* end confdefs.h. */
  4411. #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  4412. notposix
  4413. #endif
  4414. _ACEOF
  4415. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4416. $EGREP "notposix" >/dev/null 2>&1; then
  4417. gt_cv_func_printf_posix="guessing no"
  4418. else
  4419. gt_cv_func_printf_posix="guessing yes"
  4420. fi
  4421. rm -f conftest*
  4422. else
  4423. cat >conftest.$ac_ext <<_ACEOF
  4424. /* confdefs.h. */
  4425. _ACEOF
  4426. cat confdefs.h >>conftest.$ac_ext
  4427. cat >>conftest.$ac_ext <<_ACEOF
  4428. /* end confdefs.h. */
  4429. #include <stdio.h>
  4430. #include <string.h>
  4431. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  4432. dollar expansion (possibly an autoconf bug). */
  4433. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  4434. static char buf[100];
  4435. int main ()
  4436. {
  4437. sprintf (buf, format, 33, 55);
  4438. return (strcmp (buf, "55 33") != 0);
  4439. }
  4440. _ACEOF
  4441. rm -f conftest$ac_exeext
  4442. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4443. (eval $ac_link) 2>&5
  4444. ac_status=$?
  4445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4446. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4447. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4448. (eval $ac_try) 2>&5
  4449. ac_status=$?
  4450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4451. (exit $ac_status); }; }; then
  4452. gt_cv_func_printf_posix=yes
  4453. else
  4454. echo "$as_me: program exited with status $ac_status" >&5
  4455. echo "$as_me: failed program was:" >&5
  4456. sed 's/^/| /' conftest.$ac_ext >&5
  4457. ( exit $ac_status )
  4458. gt_cv_func_printf_posix=no
  4459. fi
  4460. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4461. fi
  4462. fi
  4463. echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  4464. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
  4465. case $gt_cv_func_printf_posix in
  4466. *yes)
  4467. cat >>confdefs.h <<\_ACEOF
  4468. #define HAVE_POSIX_PRINTF 1
  4469. _ACEOF
  4470. ;;
  4471. esac
  4472. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  4473. # for constant arguments. Useless!
  4474. echo "$as_me:$LINENO: checking for working alloca.h" >&5
  4475. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
  4476. if test "${ac_cv_working_alloca_h+set}" = set; then
  4477. echo $ECHO_N "(cached) $ECHO_C" >&6
  4478. else
  4479. cat >conftest.$ac_ext <<_ACEOF
  4480. /* confdefs.h. */
  4481. _ACEOF
  4482. cat confdefs.h >>conftest.$ac_ext
  4483. cat >>conftest.$ac_ext <<_ACEOF
  4484. /* end confdefs.h. */
  4485. #include <alloca.h>
  4486. int
  4487. main ()
  4488. {
  4489. char *p = (char *) alloca (2 * sizeof (int));
  4490. ;
  4491. return 0;
  4492. }
  4493. _ACEOF
  4494. rm -f conftest.$ac_objext conftest$ac_exeext
  4495. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4496. (eval $ac_link) 2>conftest.er1
  4497. ac_status=$?
  4498. grep -v '^ *+' conftest.er1 >conftest.err
  4499. rm -f conftest.er1
  4500. cat conftest.err >&5
  4501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4502. (exit $ac_status); } &&
  4503. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4505. (eval $ac_try) 2>&5
  4506. ac_status=$?
  4507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4508. (exit $ac_status); }; } &&
  4509. { ac_try='test -s conftest$ac_exeext'
  4510. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4511. (eval $ac_try) 2>&5
  4512. ac_status=$?
  4513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4514. (exit $ac_status); }; }; then
  4515. ac_cv_working_alloca_h=yes
  4516. else
  4517. echo "$as_me: failed program was:" >&5
  4518. sed 's/^/| /' conftest.$ac_ext >&5
  4519. ac_cv_working_alloca_h=no
  4520. fi
  4521. rm -f conftest.err conftest.$ac_objext \
  4522. conftest$ac_exeext conftest.$ac_ext
  4523. fi
  4524. echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  4525. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
  4526. if test $ac_cv_working_alloca_h = yes; then
  4527. cat >>confdefs.h <<\_ACEOF
  4528. #define HAVE_ALLOCA_H 1
  4529. _ACEOF
  4530. fi
  4531. echo "$as_me:$LINENO: checking for alloca" >&5
  4532. echo $ECHO_N "checking for alloca... $ECHO_C" >&6
  4533. if test "${ac_cv_func_alloca_works+set}" = set; then
  4534. echo $ECHO_N "(cached) $ECHO_C" >&6
  4535. else
  4536. cat >conftest.$ac_ext <<_ACEOF
  4537. /* confdefs.h. */
  4538. _ACEOF
  4539. cat confdefs.h >>conftest.$ac_ext
  4540. cat >>conftest.$ac_ext <<_ACEOF
  4541. /* end confdefs.h. */
  4542. #ifdef __GNUC__
  4543. # define alloca __builtin_alloca
  4544. #else
  4545. # ifdef _MSC_VER
  4546. # include <malloc.h>
  4547. # define alloca _alloca
  4548. # else
  4549. # if HAVE_ALLOCA_H
  4550. # include <alloca.h>
  4551. # else
  4552. # ifdef _AIX
  4553. #pragma alloca
  4554. # else
  4555. # ifndef alloca /* predefined by HP cc +Olibcalls */
  4556. char *alloca ();
  4557. # endif
  4558. # endif
  4559. # endif
  4560. # endif
  4561. #endif
  4562. int
  4563. main ()
  4564. {
  4565. char *p = (char *) alloca (1);
  4566. ;
  4567. return 0;
  4568. }
  4569. _ACEOF
  4570. rm -f conftest.$ac_objext conftest$ac_exeext
  4571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4572. (eval $ac_link) 2>conftest.er1
  4573. ac_status=$?
  4574. grep -v '^ *+' conftest.er1 >conftest.err
  4575. rm -f conftest.er1
  4576. cat conftest.err >&5
  4577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4578. (exit $ac_status); } &&
  4579. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4581. (eval $ac_try) 2>&5
  4582. ac_status=$?
  4583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4584. (exit $ac_status); }; } &&
  4585. { ac_try='test -s conftest$ac_exeext'
  4586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4587. (eval $ac_try) 2>&5
  4588. ac_status=$?
  4589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4590. (exit $ac_status); }; }; then
  4591. ac_cv_func_alloca_works=yes
  4592. else
  4593. echo "$as_me: failed program was:" >&5
  4594. sed 's/^/| /' conftest.$ac_ext >&5
  4595. ac_cv_func_alloca_works=no
  4596. fi
  4597. rm -f conftest.err conftest.$ac_objext \
  4598. conftest$ac_exeext conftest.$ac_ext
  4599. fi
  4600. echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  4601. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
  4602. if test $ac_cv_func_alloca_works = yes; then
  4603. cat >>confdefs.h <<\_ACEOF
  4604. #define HAVE_ALLOCA 1
  4605. _ACEOF
  4606. else
  4607. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  4608. # that cause trouble. Some versions do not even contain alloca or
  4609. # contain a buggy version. If you still want to use their alloca,
  4610. # use ar to extract alloca.o from them instead of compiling alloca.c.
  4611. ALLOCA=alloca.$ac_objext
  4612. cat >>confdefs.h <<\_ACEOF
  4613. #define C_ALLOCA 1
  4614. _ACEOF
  4615. echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  4616. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
  4617. if test "${ac_cv_os_cray+set}" = set; then
  4618. echo $ECHO_N "(cached) $ECHO_C" >&6
  4619. else
  4620. cat >conftest.$ac_ext <<_ACEOF
  4621. /* confdefs.h. */
  4622. _ACEOF
  4623. cat confdefs.h >>conftest.$ac_ext
  4624. cat >>conftest.$ac_ext <<_ACEOF
  4625. /* end confdefs.h. */
  4626. #if defined(CRAY) && ! defined(CRAY2)
  4627. webecray
  4628. #else
  4629. wenotbecray
  4630. #endif
  4631. _ACEOF
  4632. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4633. $EGREP "webecray" >/dev/null 2>&1; then
  4634. ac_cv_os_cray=yes
  4635. else
  4636. ac_cv_os_cray=no
  4637. fi
  4638. rm -f conftest*
  4639. fi
  4640. echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  4641. echo "${ECHO_T}$ac_cv_os_cray" >&6
  4642. if test $ac_cv_os_cray = yes; then
  4643. for ac_func in _getb67 GETB67 getb67; do
  4644. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4645. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4646. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4647. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4648. echo $ECHO_N "(cached) $ECHO_C" >&6
  4649. else
  4650. cat >conftest.$ac_ext <<_ACEOF
  4651. /* confdefs.h. */
  4652. _ACEOF
  4653. cat confdefs.h >>conftest.$ac_ext
  4654. cat >>conftest.$ac_ext <<_ACEOF
  4655. /* end confdefs.h. */
  4656. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4657. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4658. #define $ac_func innocuous_$ac_func
  4659. /* System header to define __stub macros and hopefully few prototypes,
  4660. which can conflict with char $ac_func (); below.
  4661. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4662. <limits.h> exists even on freestanding compilers. */
  4663. #ifdef __STDC__
  4664. # include <limits.h>
  4665. #else
  4666. # include <assert.h>
  4667. #endif
  4668. #undef $ac_func
  4669. /* Override any gcc2 internal prototype to avoid an error. */
  4670. #ifdef __cplusplus
  4671. extern "C"
  4672. {
  4673. #endif
  4674. /* We use char because int might match the return type of a gcc2
  4675. builtin and then its argument prototype would still apply. */
  4676. char $ac_func ();
  4677. /* The GNU C library defines this for functions which it implements
  4678. to always fail with ENOSYS. Some functions are actually named
  4679. something starting with __ and the normal name is an alias. */
  4680. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4681. choke me
  4682. #else
  4683. char (*f) () = $ac_func;
  4684. #endif
  4685. #ifdef __cplusplus
  4686. }
  4687. #endif
  4688. int
  4689. main ()
  4690. {
  4691. return f != $ac_func;
  4692. ;
  4693. return 0;
  4694. }
  4695. _ACEOF
  4696. rm -f conftest.$ac_objext conftest$ac_exeext
  4697. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4698. (eval $ac_link) 2>conftest.er1
  4699. ac_status=$?
  4700. grep -v '^ *+' conftest.er1 >conftest.err
  4701. rm -f conftest.er1
  4702. cat conftest.err >&5
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); } &&
  4705. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4707. (eval $ac_try) 2>&5
  4708. ac_status=$?
  4709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4710. (exit $ac_status); }; } &&
  4711. { ac_try='test -s conftest$ac_exeext'
  4712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4713. (eval $ac_try) 2>&5
  4714. ac_status=$?
  4715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4716. (exit $ac_status); }; }; then
  4717. eval "$as_ac_var=yes"
  4718. else
  4719. echo "$as_me: failed program was:" >&5
  4720. sed 's/^/| /' conftest.$ac_ext >&5
  4721. eval "$as_ac_var=no"
  4722. fi
  4723. rm -f conftest.err conftest.$ac_objext \
  4724. conftest$ac_exeext conftest.$ac_ext
  4725. fi
  4726. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4727. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4728. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4729. cat >>confdefs.h <<_ACEOF
  4730. #define CRAY_STACKSEG_END $ac_func
  4731. _ACEOF
  4732. break
  4733. fi
  4734. done
  4735. fi
  4736. echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  4737. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
  4738. if test "${ac_cv_c_stack_direction+set}" = set; then
  4739. echo $ECHO_N "(cached) $ECHO_C" >&6
  4740. else
  4741. if test "$cross_compiling" = yes; then
  4742. ac_cv_c_stack_direction=0
  4743. else
  4744. cat >conftest.$ac_ext <<_ACEOF
  4745. /* confdefs.h. */
  4746. _ACEOF
  4747. cat confdefs.h >>conftest.$ac_ext
  4748. cat >>conftest.$ac_ext <<_ACEOF
  4749. /* end confdefs.h. */
  4750. int
  4751. find_stack_direction ()
  4752. {
  4753. static char *addr = 0;
  4754. auto char dummy;
  4755. if (addr == 0)
  4756. {
  4757. addr = &dummy;
  4758. return find_stack_direction ();
  4759. }
  4760. else
  4761. return (&dummy > addr) ? 1 : -1;
  4762. }
  4763. int
  4764. main ()
  4765. {
  4766. exit (find_stack_direction () < 0);
  4767. }
  4768. _ACEOF
  4769. rm -f conftest$ac_exeext
  4770. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4771. (eval $ac_link) 2>&5
  4772. ac_status=$?
  4773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4774. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4776. (eval $ac_try) 2>&5
  4777. ac_status=$?
  4778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4779. (exit $ac_status); }; }; then
  4780. ac_cv_c_stack_direction=1
  4781. else
  4782. echo "$as_me: program exited with status $ac_status" >&5
  4783. echo "$as_me: failed program was:" >&5
  4784. sed 's/^/| /' conftest.$ac_ext >&5
  4785. ( exit $ac_status )
  4786. ac_cv_c_stack_direction=-1
  4787. fi
  4788. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4789. fi
  4790. fi
  4791. echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  4792. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
  4793. cat >>confdefs.h <<_ACEOF
  4794. #define STACK_DIRECTION $ac_cv_c_stack_direction
  4795. _ACEOF
  4796. fi
  4797. for ac_header in stdlib.h unistd.h
  4798. do
  4799. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4800. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4801. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4802. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4803. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4804. echo $ECHO_N "(cached) $ECHO_C" >&6
  4805. fi
  4806. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4807. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4808. else
  4809. # Is the header compilable?
  4810. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4811. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4812. cat >conftest.$ac_ext <<_ACEOF
  4813. /* confdefs.h. */
  4814. _ACEOF
  4815. cat confdefs.h >>conftest.$ac_ext
  4816. cat >>conftest.$ac_ext <<_ACEOF
  4817. /* end confdefs.h. */
  4818. $ac_includes_default
  4819. #include <$ac_header>
  4820. _ACEOF
  4821. rm -f conftest.$ac_objext
  4822. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4823. (eval $ac_compile) 2>conftest.er1
  4824. ac_status=$?
  4825. grep -v '^ *+' conftest.er1 >conftest.err
  4826. rm -f conftest.er1
  4827. cat conftest.err >&5
  4828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4829. (exit $ac_status); } &&
  4830. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4832. (eval $ac_try) 2>&5
  4833. ac_status=$?
  4834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4835. (exit $ac_status); }; } &&
  4836. { ac_try='test -s conftest.$ac_objext'
  4837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4838. (eval $ac_try) 2>&5
  4839. ac_status=$?
  4840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4841. (exit $ac_status); }; }; then
  4842. ac_header_compiler=yes
  4843. else
  4844. echo "$as_me: failed program was:" >&5
  4845. sed 's/^/| /' conftest.$ac_ext >&5
  4846. ac_header_compiler=no
  4847. fi
  4848. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4849. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4850. echo "${ECHO_T}$ac_header_compiler" >&6
  4851. # Is the header present?
  4852. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4853. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4854. cat >conftest.$ac_ext <<_ACEOF
  4855. /* confdefs.h. */
  4856. _ACEOF
  4857. cat confdefs.h >>conftest.$ac_ext
  4858. cat >>conftest.$ac_ext <<_ACEOF
  4859. /* end confdefs.h. */
  4860. #include <$ac_header>
  4861. _ACEOF
  4862. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4863. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4864. ac_status=$?
  4865. grep -v '^ *+' conftest.er1 >conftest.err
  4866. rm -f conftest.er1
  4867. cat conftest.err >&5
  4868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4869. (exit $ac_status); } >/dev/null; then
  4870. if test -s conftest.err; then
  4871. ac_cpp_err=$ac_c_preproc_warn_flag
  4872. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4873. else
  4874. ac_cpp_err=
  4875. fi
  4876. else
  4877. ac_cpp_err=yes
  4878. fi
  4879. if test -z "$ac_cpp_err"; then
  4880. ac_header_preproc=yes
  4881. else
  4882. echo "$as_me: failed program was:" >&5
  4883. sed 's/^/| /' conftest.$ac_ext >&5
  4884. ac_header_preproc=no
  4885. fi
  4886. rm -f conftest.err conftest.$ac_ext
  4887. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4888. echo "${ECHO_T}$ac_header_preproc" >&6
  4889. # So? What about this header?
  4890. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4891. yes:no: )
  4892. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4893. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4894. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4895. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4896. ac_header_preproc=yes
  4897. ;;
  4898. no:yes:* )
  4899. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4900. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4901. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4902. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4903. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4904. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4905. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4906. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4907. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4908. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4909. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4910. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4911. (
  4912. cat <<\_ASBOX
  4913. ## ------------------------------------------- ##
  4914. ## Report this to debian-dpkg@lists.debian.org ##
  4915. ## ------------------------------------------- ##
  4916. _ASBOX
  4917. ) |
  4918. sed "s/^/$as_me: WARNING: /" >&2
  4919. ;;
  4920. esac
  4921. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4922. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4923. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4924. echo $ECHO_N "(cached) $ECHO_C" >&6
  4925. else
  4926. eval "$as_ac_Header=\$ac_header_preproc"
  4927. fi
  4928. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4929. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4930. fi
  4931. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4932. cat >>confdefs.h <<_ACEOF
  4933. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4934. _ACEOF
  4935. fi
  4936. done
  4937. for ac_func in getpagesize
  4938. do
  4939. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4940. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4941. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4942. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4943. echo $ECHO_N "(cached) $ECHO_C" >&6
  4944. else
  4945. cat >conftest.$ac_ext <<_ACEOF
  4946. /* confdefs.h. */
  4947. _ACEOF
  4948. cat confdefs.h >>conftest.$ac_ext
  4949. cat >>conftest.$ac_ext <<_ACEOF
  4950. /* end confdefs.h. */
  4951. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4952. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4953. #define $ac_func innocuous_$ac_func
  4954. /* System header to define __stub macros and hopefully few prototypes,
  4955. which can conflict with char $ac_func (); below.
  4956. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4957. <limits.h> exists even on freestanding compilers. */
  4958. #ifdef __STDC__
  4959. # include <limits.h>
  4960. #else
  4961. # include <assert.h>
  4962. #endif
  4963. #undef $ac_func
  4964. /* Override any gcc2 internal prototype to avoid an error. */
  4965. #ifdef __cplusplus
  4966. extern "C"
  4967. {
  4968. #endif
  4969. /* We use char because int might match the return type of a gcc2
  4970. builtin and then its argument prototype would still apply. */
  4971. char $ac_func ();
  4972. /* The GNU C library defines this for functions which it implements
  4973. to always fail with ENOSYS. Some functions are actually named
  4974. something starting with __ and the normal name is an alias. */
  4975. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4976. choke me
  4977. #else
  4978. char (*f) () = $ac_func;
  4979. #endif
  4980. #ifdef __cplusplus
  4981. }
  4982. #endif
  4983. int
  4984. main ()
  4985. {
  4986. return f != $ac_func;
  4987. ;
  4988. return 0;
  4989. }
  4990. _ACEOF
  4991. rm -f conftest.$ac_objext conftest$ac_exeext
  4992. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4993. (eval $ac_link) 2>conftest.er1
  4994. ac_status=$?
  4995. grep -v '^ *+' conftest.er1 >conftest.err
  4996. rm -f conftest.er1
  4997. cat conftest.err >&5
  4998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4999. (exit $ac_status); } &&
  5000. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5002. (eval $ac_try) 2>&5
  5003. ac_status=$?
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); }; } &&
  5006. { ac_try='test -s conftest$ac_exeext'
  5007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5008. (eval $ac_try) 2>&5
  5009. ac_status=$?
  5010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5011. (exit $ac_status); }; }; then
  5012. eval "$as_ac_var=yes"
  5013. else
  5014. echo "$as_me: failed program was:" >&5
  5015. sed 's/^/| /' conftest.$ac_ext >&5
  5016. eval "$as_ac_var=no"
  5017. fi
  5018. rm -f conftest.err conftest.$ac_objext \
  5019. conftest$ac_exeext conftest.$ac_ext
  5020. fi
  5021. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5022. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5023. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5024. cat >>confdefs.h <<_ACEOF
  5025. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5026. _ACEOF
  5027. fi
  5028. done
  5029. echo "$as_me:$LINENO: checking for working mmap" >&5
  5030. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  5031. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  5032. echo $ECHO_N "(cached) $ECHO_C" >&6
  5033. else
  5034. if test "$cross_compiling" = yes; then
  5035. ac_cv_func_mmap_fixed_mapped=no
  5036. else
  5037. cat >conftest.$ac_ext <<_ACEOF
  5038. /* confdefs.h. */
  5039. _ACEOF
  5040. cat confdefs.h >>conftest.$ac_ext
  5041. cat >>conftest.$ac_ext <<_ACEOF
  5042. /* end confdefs.h. */
  5043. $ac_includes_default
  5044. /* malloc might have been renamed as rpl_malloc. */
  5045. #undef malloc
  5046. /* Thanks to Mike Haertel and Jim Avera for this test.
  5047. Here is a matrix of mmap possibilities:
  5048. mmap private not fixed
  5049. mmap private fixed at somewhere currently unmapped
  5050. mmap private fixed at somewhere already mapped
  5051. mmap shared not fixed
  5052. mmap shared fixed at somewhere currently unmapped
  5053. mmap shared fixed at somewhere already mapped
  5054. For private mappings, we should verify that changes cannot be read()
  5055. back from the file, nor mmap's back from the file at a different
  5056. address. (There have been systems where private was not correctly
  5057. implemented like the infamous i386 svr4.0, and systems where the
  5058. VM page cache was not coherent with the file system buffer cache
  5059. like early versions of FreeBSD and possibly contemporary NetBSD.)
  5060. For shared mappings, we should conversely verify that changes get
  5061. propagated back to all the places they're supposed to be.
  5062. Grep wants private fixed already mapped.
  5063. The main things grep needs to know about mmap are:
  5064. * does it exist and is it safe to write into the mmap'd area
  5065. * how to use it (BSD variants) */
  5066. #include <fcntl.h>
  5067. #include <sys/mman.h>
  5068. #if !STDC_HEADERS && !HAVE_STDLIB_H
  5069. char *malloc ();
  5070. #endif
  5071. /* This mess was copied from the GNU getpagesize.h. */
  5072. #if !HAVE_GETPAGESIZE
  5073. /* Assume that all systems that can run configure have sys/param.h. */
  5074. # if !HAVE_SYS_PARAM_H
  5075. # define HAVE_SYS_PARAM_H 1
  5076. # endif
  5077. # ifdef _SC_PAGESIZE
  5078. # define getpagesize() sysconf(_SC_PAGESIZE)
  5079. # else /* no _SC_PAGESIZE */
  5080. # if HAVE_SYS_PARAM_H
  5081. # include <sys/param.h>
  5082. # ifdef EXEC_PAGESIZE
  5083. # define getpagesize() EXEC_PAGESIZE
  5084. # else /* no EXEC_PAGESIZE */
  5085. # ifdef NBPG
  5086. # define getpagesize() NBPG * CLSIZE
  5087. # ifndef CLSIZE
  5088. # define CLSIZE 1
  5089. # endif /* no CLSIZE */
  5090. # else /* no NBPG */
  5091. # ifdef NBPC
  5092. # define getpagesize() NBPC
  5093. # else /* no NBPC */
  5094. # ifdef PAGESIZE
  5095. # define getpagesize() PAGESIZE
  5096. # endif /* PAGESIZE */
  5097. # endif /* no NBPC */
  5098. # endif /* no NBPG */
  5099. # endif /* no EXEC_PAGESIZE */
  5100. # else /* no HAVE_SYS_PARAM_H */
  5101. # define getpagesize() 8192 /* punt totally */
  5102. # endif /* no HAVE_SYS_PARAM_H */
  5103. # endif /* no _SC_PAGESIZE */
  5104. #endif /* no HAVE_GETPAGESIZE */
  5105. int
  5106. main ()
  5107. {
  5108. char *data, *data2, *data3;
  5109. int i, pagesize;
  5110. int fd;
  5111. pagesize = getpagesize ();
  5112. /* First, make a file with some known garbage in it. */
  5113. data = (char *) malloc (pagesize);
  5114. if (!data)
  5115. exit (1);
  5116. for (i = 0; i < pagesize; ++i)
  5117. *(data + i) = rand ();
  5118. umask (0);
  5119. fd = creat ("conftest.mmap", 0600);
  5120. if (fd < 0)
  5121. exit (1);
  5122. if (write (fd, data, pagesize) != pagesize)
  5123. exit (1);
  5124. close (fd);
  5125. /* Next, try to mmap the file at a fixed address which already has
  5126. something else allocated at it. If we can, also make sure that
  5127. we see the same garbage. */
  5128. fd = open ("conftest.mmap", O_RDWR);
  5129. if (fd < 0)
  5130. exit (1);
  5131. data2 = (char *) malloc (2 * pagesize);
  5132. if (!data2)
  5133. exit (1);
  5134. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  5135. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  5136. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  5137. exit (1);
  5138. for (i = 0; i < pagesize; ++i)
  5139. if (*(data + i) != *(data2 + i))
  5140. exit (1);
  5141. /* Finally, make sure that changes to the mapped area do not
  5142. percolate back to the file as seen by read(). (This is a bug on
  5143. some variants of i386 svr4.0.) */
  5144. for (i = 0; i < pagesize; ++i)
  5145. *(data2 + i) = *(data2 + i) + 1;
  5146. data3 = (char *) malloc (pagesize);
  5147. if (!data3)
  5148. exit (1);
  5149. if (read (fd, data3, pagesize) != pagesize)
  5150. exit (1);
  5151. for (i = 0; i < pagesize; ++i)
  5152. if (*(data + i) != *(data3 + i))
  5153. exit (1);
  5154. close (fd);
  5155. exit (0);
  5156. }
  5157. _ACEOF
  5158. rm -f conftest$ac_exeext
  5159. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5160. (eval $ac_link) 2>&5
  5161. ac_status=$?
  5162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5163. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5165. (eval $ac_try) 2>&5
  5166. ac_status=$?
  5167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5168. (exit $ac_status); }; }; then
  5169. ac_cv_func_mmap_fixed_mapped=yes
  5170. else
  5171. echo "$as_me: program exited with status $ac_status" >&5
  5172. echo "$as_me: failed program was:" >&5
  5173. sed 's/^/| /' conftest.$ac_ext >&5
  5174. ( exit $ac_status )
  5175. ac_cv_func_mmap_fixed_mapped=no
  5176. fi
  5177. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5178. fi
  5179. fi
  5180. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  5181. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  5182. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  5183. cat >>confdefs.h <<\_ACEOF
  5184. #define HAVE_MMAP 1
  5185. _ACEOF
  5186. fi
  5187. rm -f conftest.mmap
  5188. echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  5189. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
  5190. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  5191. echo $ECHO_N "(cached) $ECHO_C" >&6
  5192. else
  5193. cat >conftest.$ac_ext <<_ACEOF
  5194. /* confdefs.h. */
  5195. _ACEOF
  5196. cat confdefs.h >>conftest.$ac_ext
  5197. cat >>conftest.$ac_ext <<_ACEOF
  5198. /* end confdefs.h. */
  5199. #include <features.h>
  5200. #ifdef __GNU_LIBRARY__
  5201. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  5202. Lucky GNU user
  5203. #endif
  5204. #endif
  5205. _ACEOF
  5206. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5207. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  5208. ac_cv_gnu_library_2_1=yes
  5209. else
  5210. ac_cv_gnu_library_2_1=no
  5211. fi
  5212. rm -f conftest*
  5213. fi
  5214. echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  5215. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
  5216. GLIBC21="$ac_cv_gnu_library_2_1"
  5217. echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  5218. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
  5219. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  5220. echo $ECHO_N "(cached) $ECHO_C" >&6
  5221. else
  5222. if test "$cross_compiling" = yes; then
  5223. # Guess based on the CPU.
  5224. case "$host_cpu" in
  5225. alpha* | i3456786 | m68k | s390*)
  5226. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  5227. *)
  5228. gt_cv_int_divbyzero_sigfpe="guessing no";;
  5229. esac
  5230. else
  5231. cat >conftest.$ac_ext <<_ACEOF
  5232. /* confdefs.h. */
  5233. _ACEOF
  5234. cat confdefs.h >>conftest.$ac_ext
  5235. cat >>conftest.$ac_ext <<_ACEOF
  5236. /* end confdefs.h. */
  5237. #include <stdlib.h>
  5238. #include <signal.h>
  5239. static void
  5240. #ifdef __cplusplus
  5241. sigfpe_handler (int sig)
  5242. #else
  5243. sigfpe_handler (sig) int sig;
  5244. #endif
  5245. {
  5246. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  5247. exit (sig != SIGFPE);
  5248. }
  5249. int x = 1;
  5250. int y = 0;
  5251. int z;
  5252. int nan;
  5253. int main ()
  5254. {
  5255. signal (SIGFPE, sigfpe_handler);
  5256. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  5257. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  5258. signal (SIGTRAP, sigfpe_handler);
  5259. #endif
  5260. /* Linux/SPARC yields signal SIGILL. */
  5261. #if defined (__sparc__) && defined (__linux__)
  5262. signal (SIGILL, sigfpe_handler);
  5263. #endif
  5264. z = x / y;
  5265. nan = y / y;
  5266. exit (1);
  5267. }
  5268. _ACEOF
  5269. rm -f conftest$ac_exeext
  5270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5271. (eval $ac_link) 2>&5
  5272. ac_status=$?
  5273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5274. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5276. (eval $ac_try) 2>&5
  5277. ac_status=$?
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); }; }; then
  5280. gt_cv_int_divbyzero_sigfpe=yes
  5281. else
  5282. echo "$as_me: program exited with status $ac_status" >&5
  5283. echo "$as_me: failed program was:" >&5
  5284. sed 's/^/| /' conftest.$ac_ext >&5
  5285. ( exit $ac_status )
  5286. gt_cv_int_divbyzero_sigfpe=no
  5287. fi
  5288. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5289. fi
  5290. fi
  5291. echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  5292. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
  5293. case "$gt_cv_int_divbyzero_sigfpe" in
  5294. *yes) value=1;;
  5295. *) value=0;;
  5296. esac
  5297. cat >>confdefs.h <<_ACEOF
  5298. #define INTDIV0_RAISES_SIGFPE $value
  5299. _ACEOF
  5300. echo "$as_me:$LINENO: checking for unsigned long long" >&5
  5301. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
  5302. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  5303. echo $ECHO_N "(cached) $ECHO_C" >&6
  5304. else
  5305. cat >conftest.$ac_ext <<_ACEOF
  5306. /* confdefs.h. */
  5307. _ACEOF
  5308. cat confdefs.h >>conftest.$ac_ext
  5309. cat >>conftest.$ac_ext <<_ACEOF
  5310. /* end confdefs.h. */
  5311. unsigned long long ull = 1ULL; int i = 63;
  5312. int
  5313. main ()
  5314. {
  5315. unsigned long long ullmax = (unsigned long long) -1;
  5316. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  5317. ;
  5318. return 0;
  5319. }
  5320. _ACEOF
  5321. rm -f conftest.$ac_objext conftest$ac_exeext
  5322. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5323. (eval $ac_link) 2>conftest.er1
  5324. ac_status=$?
  5325. grep -v '^ *+' conftest.er1 >conftest.err
  5326. rm -f conftest.er1
  5327. cat conftest.err >&5
  5328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5329. (exit $ac_status); } &&
  5330. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5332. (eval $ac_try) 2>&5
  5333. ac_status=$?
  5334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5335. (exit $ac_status); }; } &&
  5336. { ac_try='test -s conftest$ac_exeext'
  5337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5338. (eval $ac_try) 2>&5
  5339. ac_status=$?
  5340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5341. (exit $ac_status); }; }; then
  5342. ac_cv_type_unsigned_long_long=yes
  5343. else
  5344. echo "$as_me: failed program was:" >&5
  5345. sed 's/^/| /' conftest.$ac_ext >&5
  5346. ac_cv_type_unsigned_long_long=no
  5347. fi
  5348. rm -f conftest.err conftest.$ac_objext \
  5349. conftest$ac_exeext conftest.$ac_ext
  5350. fi
  5351. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  5352. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
  5353. if test $ac_cv_type_unsigned_long_long = yes; then
  5354. cat >>confdefs.h <<\_ACEOF
  5355. #define HAVE_UNSIGNED_LONG_LONG 1
  5356. _ACEOF
  5357. fi
  5358. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  5359. test $ac_cv_type_unsigned_long_long = yes \
  5360. && ac_type='unsigned long long' \
  5361. || ac_type='unsigned long'
  5362. cat >>confdefs.h <<_ACEOF
  5363. #define uintmax_t $ac_type
  5364. _ACEOF
  5365. else
  5366. cat >>confdefs.h <<\_ACEOF
  5367. #define HAVE_UINTMAX_T 1
  5368. _ACEOF
  5369. fi
  5370. echo "$as_me:$LINENO: checking for inttypes.h" >&5
  5371. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
  5372. if test "${gt_cv_header_inttypes_h+set}" = set; then
  5373. echo $ECHO_N "(cached) $ECHO_C" >&6
  5374. else
  5375. cat >conftest.$ac_ext <<_ACEOF
  5376. /* confdefs.h. */
  5377. _ACEOF
  5378. cat confdefs.h >>conftest.$ac_ext
  5379. cat >>conftest.$ac_ext <<_ACEOF
  5380. /* end confdefs.h. */
  5381. #include <sys/types.h>
  5382. #include <inttypes.h>
  5383. int
  5384. main ()
  5385. {
  5386. ;
  5387. return 0;
  5388. }
  5389. _ACEOF
  5390. rm -f conftest.$ac_objext
  5391. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5392. (eval $ac_compile) 2>conftest.er1
  5393. ac_status=$?
  5394. grep -v '^ *+' conftest.er1 >conftest.err
  5395. rm -f conftest.er1
  5396. cat conftest.err >&5
  5397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5398. (exit $ac_status); } &&
  5399. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5401. (eval $ac_try) 2>&5
  5402. ac_status=$?
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); }; } &&
  5405. { ac_try='test -s conftest.$ac_objext'
  5406. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5407. (eval $ac_try) 2>&5
  5408. ac_status=$?
  5409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5410. (exit $ac_status); }; }; then
  5411. gt_cv_header_inttypes_h=yes
  5412. else
  5413. echo "$as_me: failed program was:" >&5
  5414. sed 's/^/| /' conftest.$ac_ext >&5
  5415. gt_cv_header_inttypes_h=no
  5416. fi
  5417. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5418. fi
  5419. echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  5420. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
  5421. if test $gt_cv_header_inttypes_h = yes; then
  5422. cat >>confdefs.h <<_ACEOF
  5423. #define HAVE_INTTYPES_H 1
  5424. _ACEOF
  5425. fi
  5426. if test $gt_cv_header_inttypes_h = yes; then
  5427. echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  5428. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
  5429. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  5430. echo $ECHO_N "(cached) $ECHO_C" >&6
  5431. else
  5432. cat >conftest.$ac_ext <<_ACEOF
  5433. /* confdefs.h. */
  5434. _ACEOF
  5435. cat confdefs.h >>conftest.$ac_ext
  5436. cat >>conftest.$ac_ext <<_ACEOF
  5437. /* end confdefs.h. */
  5438. #include <inttypes.h>
  5439. #ifdef PRId32
  5440. char *p = PRId32;
  5441. #endif
  5442. int
  5443. main ()
  5444. {
  5445. ;
  5446. return 0;
  5447. }
  5448. _ACEOF
  5449. rm -f conftest.$ac_objext
  5450. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5451. (eval $ac_compile) 2>conftest.er1
  5452. ac_status=$?
  5453. grep -v '^ *+' conftest.er1 >conftest.err
  5454. rm -f conftest.er1
  5455. cat conftest.err >&5
  5456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5457. (exit $ac_status); } &&
  5458. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5460. (eval $ac_try) 2>&5
  5461. ac_status=$?
  5462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5463. (exit $ac_status); }; } &&
  5464. { ac_try='test -s conftest.$ac_objext'
  5465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5466. (eval $ac_try) 2>&5
  5467. ac_status=$?
  5468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5469. (exit $ac_status); }; }; then
  5470. gt_cv_inttypes_pri_broken=no
  5471. else
  5472. echo "$as_me: failed program was:" >&5
  5473. sed 's/^/| /' conftest.$ac_ext >&5
  5474. gt_cv_inttypes_pri_broken=yes
  5475. fi
  5476. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5477. fi
  5478. echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  5479. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
  5480. fi
  5481. if test "$gt_cv_inttypes_pri_broken" = yes; then
  5482. cat >>confdefs.h <<_ACEOF
  5483. #define PRI_MACROS_BROKEN 1
  5484. _ACEOF
  5485. fi
  5486. for ac_header in stdint.h
  5487. do
  5488. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5489. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5490. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5491. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5492. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5493. echo $ECHO_N "(cached) $ECHO_C" >&6
  5494. fi
  5495. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5496. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5497. else
  5498. # Is the header compilable?
  5499. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5500. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5501. cat >conftest.$ac_ext <<_ACEOF
  5502. /* confdefs.h. */
  5503. _ACEOF
  5504. cat confdefs.h >>conftest.$ac_ext
  5505. cat >>conftest.$ac_ext <<_ACEOF
  5506. /* end confdefs.h. */
  5507. $ac_includes_default
  5508. #include <$ac_header>
  5509. _ACEOF
  5510. rm -f conftest.$ac_objext
  5511. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5512. (eval $ac_compile) 2>conftest.er1
  5513. ac_status=$?
  5514. grep -v '^ *+' conftest.er1 >conftest.err
  5515. rm -f conftest.er1
  5516. cat conftest.err >&5
  5517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5518. (exit $ac_status); } &&
  5519. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5521. (eval $ac_try) 2>&5
  5522. ac_status=$?
  5523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5524. (exit $ac_status); }; } &&
  5525. { ac_try='test -s conftest.$ac_objext'
  5526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5527. (eval $ac_try) 2>&5
  5528. ac_status=$?
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); }; }; then
  5531. ac_header_compiler=yes
  5532. else
  5533. echo "$as_me: failed program was:" >&5
  5534. sed 's/^/| /' conftest.$ac_ext >&5
  5535. ac_header_compiler=no
  5536. fi
  5537. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5538. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5539. echo "${ECHO_T}$ac_header_compiler" >&6
  5540. # Is the header present?
  5541. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5542. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5543. cat >conftest.$ac_ext <<_ACEOF
  5544. /* confdefs.h. */
  5545. _ACEOF
  5546. cat confdefs.h >>conftest.$ac_ext
  5547. cat >>conftest.$ac_ext <<_ACEOF
  5548. /* end confdefs.h. */
  5549. #include <$ac_header>
  5550. _ACEOF
  5551. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5552. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5553. ac_status=$?
  5554. grep -v '^ *+' conftest.er1 >conftest.err
  5555. rm -f conftest.er1
  5556. cat conftest.err >&5
  5557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5558. (exit $ac_status); } >/dev/null; then
  5559. if test -s conftest.err; then
  5560. ac_cpp_err=$ac_c_preproc_warn_flag
  5561. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5562. else
  5563. ac_cpp_err=
  5564. fi
  5565. else
  5566. ac_cpp_err=yes
  5567. fi
  5568. if test -z "$ac_cpp_err"; then
  5569. ac_header_preproc=yes
  5570. else
  5571. echo "$as_me: failed program was:" >&5
  5572. sed 's/^/| /' conftest.$ac_ext >&5
  5573. ac_header_preproc=no
  5574. fi
  5575. rm -f conftest.err conftest.$ac_ext
  5576. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5577. echo "${ECHO_T}$ac_header_preproc" >&6
  5578. # So? What about this header?
  5579. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5580. yes:no: )
  5581. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5582. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5583. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5584. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5585. ac_header_preproc=yes
  5586. ;;
  5587. no:yes:* )
  5588. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5589. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5590. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5591. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5592. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5593. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5594. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5595. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5596. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5597. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5598. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5599. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5600. (
  5601. cat <<\_ASBOX
  5602. ## ------------------------------------------- ##
  5603. ## Report this to debian-dpkg@lists.debian.org ##
  5604. ## ------------------------------------------- ##
  5605. _ASBOX
  5606. ) |
  5607. sed "s/^/$as_me: WARNING: /" >&2
  5608. ;;
  5609. esac
  5610. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5611. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5612. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5613. echo $ECHO_N "(cached) $ECHO_C" >&6
  5614. else
  5615. eval "$as_ac_Header=\$ac_header_preproc"
  5616. fi
  5617. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5618. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5619. fi
  5620. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5621. cat >>confdefs.h <<_ACEOF
  5622. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5623. _ACEOF
  5624. fi
  5625. done
  5626. echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  5627. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
  5628. result=
  5629. cat >conftest.$ac_ext <<_ACEOF
  5630. /* confdefs.h. */
  5631. _ACEOF
  5632. cat confdefs.h >>conftest.$ac_ext
  5633. cat >>conftest.$ac_ext <<_ACEOF
  5634. /* end confdefs.h. */
  5635. #include <limits.h>
  5636. #if HAVE_STDINT_H
  5637. #include <stdint.h>
  5638. #endif
  5639. #ifdef SIZE_MAX
  5640. Found it
  5641. #endif
  5642. _ACEOF
  5643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5644. $EGREP "Found it" >/dev/null 2>&1; then
  5645. result=yes
  5646. fi
  5647. rm -f conftest*
  5648. if test -z "$result"; then
  5649. if test "$cross_compiling" = yes; then
  5650. # Depending upon the size, compute the lo and hi bounds.
  5651. cat >conftest.$ac_ext <<_ACEOF
  5652. /* confdefs.h. */
  5653. _ACEOF
  5654. cat confdefs.h >>conftest.$ac_ext
  5655. cat >>conftest.$ac_ext <<_ACEOF
  5656. /* end confdefs.h. */
  5657. #include <stddef.h>
  5658. int
  5659. main ()
  5660. {
  5661. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
  5662. test_array [0] = 0
  5663. ;
  5664. return 0;
  5665. }
  5666. _ACEOF
  5667. rm -f conftest.$ac_objext
  5668. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5669. (eval $ac_compile) 2>conftest.er1
  5670. ac_status=$?
  5671. grep -v '^ *+' conftest.er1 >conftest.err
  5672. rm -f conftest.er1
  5673. cat conftest.err >&5
  5674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5675. (exit $ac_status); } &&
  5676. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5678. (eval $ac_try) 2>&5
  5679. ac_status=$?
  5680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5681. (exit $ac_status); }; } &&
  5682. { ac_try='test -s conftest.$ac_objext'
  5683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5684. (eval $ac_try) 2>&5
  5685. ac_status=$?
  5686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5687. (exit $ac_status); }; }; then
  5688. ac_lo=0 ac_mid=0
  5689. while :; do
  5690. cat >conftest.$ac_ext <<_ACEOF
  5691. /* confdefs.h. */
  5692. _ACEOF
  5693. cat confdefs.h >>conftest.$ac_ext
  5694. cat >>conftest.$ac_ext <<_ACEOF
  5695. /* end confdefs.h. */
  5696. #include <stddef.h>
  5697. int
  5698. main ()
  5699. {
  5700. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  5701. test_array [0] = 0
  5702. ;
  5703. return 0;
  5704. }
  5705. _ACEOF
  5706. rm -f conftest.$ac_objext
  5707. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5708. (eval $ac_compile) 2>conftest.er1
  5709. ac_status=$?
  5710. grep -v '^ *+' conftest.er1 >conftest.err
  5711. rm -f conftest.er1
  5712. cat conftest.err >&5
  5713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5714. (exit $ac_status); } &&
  5715. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5717. (eval $ac_try) 2>&5
  5718. ac_status=$?
  5719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5720. (exit $ac_status); }; } &&
  5721. { ac_try='test -s conftest.$ac_objext'
  5722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5723. (eval $ac_try) 2>&5
  5724. ac_status=$?
  5725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5726. (exit $ac_status); }; }; then
  5727. ac_hi=$ac_mid; break
  5728. else
  5729. echo "$as_me: failed program was:" >&5
  5730. sed 's/^/| /' conftest.$ac_ext >&5
  5731. ac_lo=`expr $ac_mid + 1`
  5732. if test $ac_lo -le $ac_mid; then
  5733. ac_lo= ac_hi=
  5734. break
  5735. fi
  5736. ac_mid=`expr 2 '*' $ac_mid + 1`
  5737. fi
  5738. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5739. done
  5740. else
  5741. echo "$as_me: failed program was:" >&5
  5742. sed 's/^/| /' conftest.$ac_ext >&5
  5743. cat >conftest.$ac_ext <<_ACEOF
  5744. /* confdefs.h. */
  5745. _ACEOF
  5746. cat confdefs.h >>conftest.$ac_ext
  5747. cat >>conftest.$ac_ext <<_ACEOF
  5748. /* end confdefs.h. */
  5749. #include <stddef.h>
  5750. int
  5751. main ()
  5752. {
  5753. static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
  5754. test_array [0] = 0
  5755. ;
  5756. return 0;
  5757. }
  5758. _ACEOF
  5759. rm -f conftest.$ac_objext
  5760. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5761. (eval $ac_compile) 2>conftest.er1
  5762. ac_status=$?
  5763. grep -v '^ *+' conftest.er1 >conftest.err
  5764. rm -f conftest.er1
  5765. cat conftest.err >&5
  5766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5767. (exit $ac_status); } &&
  5768. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5770. (eval $ac_try) 2>&5
  5771. ac_status=$?
  5772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5773. (exit $ac_status); }; } &&
  5774. { ac_try='test -s conftest.$ac_objext'
  5775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5776. (eval $ac_try) 2>&5
  5777. ac_status=$?
  5778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5779. (exit $ac_status); }; }; then
  5780. ac_hi=-1 ac_mid=-1
  5781. while :; do
  5782. cat >conftest.$ac_ext <<_ACEOF
  5783. /* confdefs.h. */
  5784. _ACEOF
  5785. cat confdefs.h >>conftest.$ac_ext
  5786. cat >>conftest.$ac_ext <<_ACEOF
  5787. /* end confdefs.h. */
  5788. #include <stddef.h>
  5789. int
  5790. main ()
  5791. {
  5792. static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
  5793. test_array [0] = 0
  5794. ;
  5795. return 0;
  5796. }
  5797. _ACEOF
  5798. rm -f conftest.$ac_objext
  5799. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5800. (eval $ac_compile) 2>conftest.er1
  5801. ac_status=$?
  5802. grep -v '^ *+' conftest.er1 >conftest.err
  5803. rm -f conftest.er1
  5804. cat conftest.err >&5
  5805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5806. (exit $ac_status); } &&
  5807. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5809. (eval $ac_try) 2>&5
  5810. ac_status=$?
  5811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5812. (exit $ac_status); }; } &&
  5813. { ac_try='test -s conftest.$ac_objext'
  5814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5815. (eval $ac_try) 2>&5
  5816. ac_status=$?
  5817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5818. (exit $ac_status); }; }; then
  5819. ac_lo=$ac_mid; break
  5820. else
  5821. echo "$as_me: failed program was:" >&5
  5822. sed 's/^/| /' conftest.$ac_ext >&5
  5823. ac_hi=`expr '(' $ac_mid ')' - 1`
  5824. if test $ac_mid -le $ac_hi; then
  5825. ac_lo= ac_hi=
  5826. break
  5827. fi
  5828. ac_mid=`expr 2 '*' $ac_mid`
  5829. fi
  5830. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5831. done
  5832. else
  5833. echo "$as_me: failed program was:" >&5
  5834. sed 's/^/| /' conftest.$ac_ext >&5
  5835. ac_lo= ac_hi=
  5836. fi
  5837. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5838. fi
  5839. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5840. # Binary search between lo and hi bounds.
  5841. while test "x$ac_lo" != "x$ac_hi"; do
  5842. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5843. cat >conftest.$ac_ext <<_ACEOF
  5844. /* confdefs.h. */
  5845. _ACEOF
  5846. cat confdefs.h >>conftest.$ac_ext
  5847. cat >>conftest.$ac_ext <<_ACEOF
  5848. /* end confdefs.h. */
  5849. #include <stddef.h>
  5850. int
  5851. main ()
  5852. {
  5853. static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
  5854. test_array [0] = 0
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. rm -f conftest.$ac_objext
  5860. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5861. (eval $ac_compile) 2>conftest.er1
  5862. ac_status=$?
  5863. grep -v '^ *+' conftest.er1 >conftest.err
  5864. rm -f conftest.er1
  5865. cat conftest.err >&5
  5866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5867. (exit $ac_status); } &&
  5868. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5870. (eval $ac_try) 2>&5
  5871. ac_status=$?
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); }; } &&
  5874. { ac_try='test -s conftest.$ac_objext'
  5875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5876. (eval $ac_try) 2>&5
  5877. ac_status=$?
  5878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5879. (exit $ac_status); }; }; then
  5880. ac_hi=$ac_mid
  5881. else
  5882. echo "$as_me: failed program was:" >&5
  5883. sed 's/^/| /' conftest.$ac_ext >&5
  5884. ac_lo=`expr '(' $ac_mid ')' + 1`
  5885. fi
  5886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5887. done
  5888. case $ac_lo in
  5889. ?*) res_hi=$ac_lo;;
  5890. '') result=? ;;
  5891. esac
  5892. else
  5893. if test "$cross_compiling" = yes; then
  5894. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5895. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5896. { (exit 1); exit 1; }; }
  5897. else
  5898. cat >conftest.$ac_ext <<_ACEOF
  5899. /* confdefs.h. */
  5900. _ACEOF
  5901. cat confdefs.h >>conftest.$ac_ext
  5902. cat >>conftest.$ac_ext <<_ACEOF
  5903. /* end confdefs.h. */
  5904. #include <stddef.h>
  5905. long longval () { return ~(size_t)0 / 10; }
  5906. unsigned long ulongval () { return ~(size_t)0 / 10; }
  5907. #include <stdio.h>
  5908. #include <stdlib.h>
  5909. int
  5910. main ()
  5911. {
  5912. FILE *f = fopen ("conftest.val", "w");
  5913. if (! f)
  5914. exit (1);
  5915. if ((~(size_t)0 / 10) < 0)
  5916. {
  5917. long i = longval ();
  5918. if (i != (~(size_t)0 / 10))
  5919. exit (1);
  5920. fprintf (f, "%ld\n", i);
  5921. }
  5922. else
  5923. {
  5924. unsigned long i = ulongval ();
  5925. if (i != (~(size_t)0 / 10))
  5926. exit (1);
  5927. fprintf (f, "%lu\n", i);
  5928. }
  5929. exit (ferror (f) || fclose (f) != 0);
  5930. ;
  5931. return 0;
  5932. }
  5933. _ACEOF
  5934. rm -f conftest$ac_exeext
  5935. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5936. (eval $ac_link) 2>&5
  5937. ac_status=$?
  5938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5939. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5941. (eval $ac_try) 2>&5
  5942. ac_status=$?
  5943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5944. (exit $ac_status); }; }; then
  5945. res_hi=`cat conftest.val`
  5946. else
  5947. echo "$as_me: program exited with status $ac_status" >&5
  5948. echo "$as_me: failed program was:" >&5
  5949. sed 's/^/| /' conftest.$ac_ext >&5
  5950. ( exit $ac_status )
  5951. result=?
  5952. fi
  5953. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5954. fi
  5955. fi
  5956. rm -f conftest.val
  5957. if test "$cross_compiling" = yes; then
  5958. # Depending upon the size, compute the lo and hi bounds.
  5959. cat >conftest.$ac_ext <<_ACEOF
  5960. /* confdefs.h. */
  5961. _ACEOF
  5962. cat confdefs.h >>conftest.$ac_ext
  5963. cat >>conftest.$ac_ext <<_ACEOF
  5964. /* end confdefs.h. */
  5965. #include <stddef.h>
  5966. int
  5967. main ()
  5968. {
  5969. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
  5970. test_array [0] = 0
  5971. ;
  5972. return 0;
  5973. }
  5974. _ACEOF
  5975. rm -f conftest.$ac_objext
  5976. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5977. (eval $ac_compile) 2>conftest.er1
  5978. ac_status=$?
  5979. grep -v '^ *+' conftest.er1 >conftest.err
  5980. rm -f conftest.er1
  5981. cat conftest.err >&5
  5982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5983. (exit $ac_status); } &&
  5984. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5986. (eval $ac_try) 2>&5
  5987. ac_status=$?
  5988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5989. (exit $ac_status); }; } &&
  5990. { ac_try='test -s conftest.$ac_objext'
  5991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5992. (eval $ac_try) 2>&5
  5993. ac_status=$?
  5994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5995. (exit $ac_status); }; }; then
  5996. ac_lo=0 ac_mid=0
  5997. while :; do
  5998. cat >conftest.$ac_ext <<_ACEOF
  5999. /* confdefs.h. */
  6000. _ACEOF
  6001. cat confdefs.h >>conftest.$ac_ext
  6002. cat >>conftest.$ac_ext <<_ACEOF
  6003. /* end confdefs.h. */
  6004. #include <stddef.h>
  6005. int
  6006. main ()
  6007. {
  6008. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  6009. test_array [0] = 0
  6010. ;
  6011. return 0;
  6012. }
  6013. _ACEOF
  6014. rm -f conftest.$ac_objext
  6015. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6016. (eval $ac_compile) 2>conftest.er1
  6017. ac_status=$?
  6018. grep -v '^ *+' conftest.er1 >conftest.err
  6019. rm -f conftest.er1
  6020. cat conftest.err >&5
  6021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6022. (exit $ac_status); } &&
  6023. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6025. (eval $ac_try) 2>&5
  6026. ac_status=$?
  6027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6028. (exit $ac_status); }; } &&
  6029. { ac_try='test -s conftest.$ac_objext'
  6030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6031. (eval $ac_try) 2>&5
  6032. ac_status=$?
  6033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6034. (exit $ac_status); }; }; then
  6035. ac_hi=$ac_mid; break
  6036. else
  6037. echo "$as_me: failed program was:" >&5
  6038. sed 's/^/| /' conftest.$ac_ext >&5
  6039. ac_lo=`expr $ac_mid + 1`
  6040. if test $ac_lo -le $ac_mid; then
  6041. ac_lo= ac_hi=
  6042. break
  6043. fi
  6044. ac_mid=`expr 2 '*' $ac_mid + 1`
  6045. fi
  6046. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6047. done
  6048. else
  6049. echo "$as_me: failed program was:" >&5
  6050. sed 's/^/| /' conftest.$ac_ext >&5
  6051. cat >conftest.$ac_ext <<_ACEOF
  6052. /* confdefs.h. */
  6053. _ACEOF
  6054. cat confdefs.h >>conftest.$ac_ext
  6055. cat >>conftest.$ac_ext <<_ACEOF
  6056. /* end confdefs.h. */
  6057. #include <stddef.h>
  6058. int
  6059. main ()
  6060. {
  6061. static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
  6062. test_array [0] = 0
  6063. ;
  6064. return 0;
  6065. }
  6066. _ACEOF
  6067. rm -f conftest.$ac_objext
  6068. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6069. (eval $ac_compile) 2>conftest.er1
  6070. ac_status=$?
  6071. grep -v '^ *+' conftest.er1 >conftest.err
  6072. rm -f conftest.er1
  6073. cat conftest.err >&5
  6074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6075. (exit $ac_status); } &&
  6076. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6078. (eval $ac_try) 2>&5
  6079. ac_status=$?
  6080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6081. (exit $ac_status); }; } &&
  6082. { ac_try='test -s conftest.$ac_objext'
  6083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6084. (eval $ac_try) 2>&5
  6085. ac_status=$?
  6086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6087. (exit $ac_status); }; }; then
  6088. ac_hi=-1 ac_mid=-1
  6089. while :; do
  6090. cat >conftest.$ac_ext <<_ACEOF
  6091. /* confdefs.h. */
  6092. _ACEOF
  6093. cat confdefs.h >>conftest.$ac_ext
  6094. cat >>conftest.$ac_ext <<_ACEOF
  6095. /* end confdefs.h. */
  6096. #include <stddef.h>
  6097. int
  6098. main ()
  6099. {
  6100. static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
  6101. test_array [0] = 0
  6102. ;
  6103. return 0;
  6104. }
  6105. _ACEOF
  6106. rm -f conftest.$ac_objext
  6107. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6108. (eval $ac_compile) 2>conftest.er1
  6109. ac_status=$?
  6110. grep -v '^ *+' conftest.er1 >conftest.err
  6111. rm -f conftest.er1
  6112. cat conftest.err >&5
  6113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6114. (exit $ac_status); } &&
  6115. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6117. (eval $ac_try) 2>&5
  6118. ac_status=$?
  6119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6120. (exit $ac_status); }; } &&
  6121. { ac_try='test -s conftest.$ac_objext'
  6122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6123. (eval $ac_try) 2>&5
  6124. ac_status=$?
  6125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6126. (exit $ac_status); }; }; then
  6127. ac_lo=$ac_mid; break
  6128. else
  6129. echo "$as_me: failed program was:" >&5
  6130. sed 's/^/| /' conftest.$ac_ext >&5
  6131. ac_hi=`expr '(' $ac_mid ')' - 1`
  6132. if test $ac_mid -le $ac_hi; then
  6133. ac_lo= ac_hi=
  6134. break
  6135. fi
  6136. ac_mid=`expr 2 '*' $ac_mid`
  6137. fi
  6138. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6139. done
  6140. else
  6141. echo "$as_me: failed program was:" >&5
  6142. sed 's/^/| /' conftest.$ac_ext >&5
  6143. ac_lo= ac_hi=
  6144. fi
  6145. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6146. fi
  6147. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6148. # Binary search between lo and hi bounds.
  6149. while test "x$ac_lo" != "x$ac_hi"; do
  6150. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6151. cat >conftest.$ac_ext <<_ACEOF
  6152. /* confdefs.h. */
  6153. _ACEOF
  6154. cat confdefs.h >>conftest.$ac_ext
  6155. cat >>conftest.$ac_ext <<_ACEOF
  6156. /* end confdefs.h. */
  6157. #include <stddef.h>
  6158. int
  6159. main ()
  6160. {
  6161. static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
  6162. test_array [0] = 0
  6163. ;
  6164. return 0;
  6165. }
  6166. _ACEOF
  6167. rm -f conftest.$ac_objext
  6168. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6169. (eval $ac_compile) 2>conftest.er1
  6170. ac_status=$?
  6171. grep -v '^ *+' conftest.er1 >conftest.err
  6172. rm -f conftest.er1
  6173. cat conftest.err >&5
  6174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6175. (exit $ac_status); } &&
  6176. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6177. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6178. (eval $ac_try) 2>&5
  6179. ac_status=$?
  6180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6181. (exit $ac_status); }; } &&
  6182. { ac_try='test -s conftest.$ac_objext'
  6183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6184. (eval $ac_try) 2>&5
  6185. ac_status=$?
  6186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6187. (exit $ac_status); }; }; then
  6188. ac_hi=$ac_mid
  6189. else
  6190. echo "$as_me: failed program was:" >&5
  6191. sed 's/^/| /' conftest.$ac_ext >&5
  6192. ac_lo=`expr '(' $ac_mid ')' + 1`
  6193. fi
  6194. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6195. done
  6196. case $ac_lo in
  6197. ?*) res_lo=$ac_lo;;
  6198. '') result=? ;;
  6199. esac
  6200. else
  6201. if test "$cross_compiling" = yes; then
  6202. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6203. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6204. { (exit 1); exit 1; }; }
  6205. else
  6206. cat >conftest.$ac_ext <<_ACEOF
  6207. /* confdefs.h. */
  6208. _ACEOF
  6209. cat confdefs.h >>conftest.$ac_ext
  6210. cat >>conftest.$ac_ext <<_ACEOF
  6211. /* end confdefs.h. */
  6212. #include <stddef.h>
  6213. long longval () { return ~(size_t)0 % 10; }
  6214. unsigned long ulongval () { return ~(size_t)0 % 10; }
  6215. #include <stdio.h>
  6216. #include <stdlib.h>
  6217. int
  6218. main ()
  6219. {
  6220. FILE *f = fopen ("conftest.val", "w");
  6221. if (! f)
  6222. exit (1);
  6223. if ((~(size_t)0 % 10) < 0)
  6224. {
  6225. long i = longval ();
  6226. if (i != (~(size_t)0 % 10))
  6227. exit (1);
  6228. fprintf (f, "%ld\n", i);
  6229. }
  6230. else
  6231. {
  6232. unsigned long i = ulongval ();
  6233. if (i != (~(size_t)0 % 10))
  6234. exit (1);
  6235. fprintf (f, "%lu\n", i);
  6236. }
  6237. exit (ferror (f) || fclose (f) != 0);
  6238. ;
  6239. return 0;
  6240. }
  6241. _ACEOF
  6242. rm -f conftest$ac_exeext
  6243. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6244. (eval $ac_link) 2>&5
  6245. ac_status=$?
  6246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6247. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6249. (eval $ac_try) 2>&5
  6250. ac_status=$?
  6251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6252. (exit $ac_status); }; }; then
  6253. res_lo=`cat conftest.val`
  6254. else
  6255. echo "$as_me: program exited with status $ac_status" >&5
  6256. echo "$as_me: failed program was:" >&5
  6257. sed 's/^/| /' conftest.$ac_ext >&5
  6258. ( exit $ac_status )
  6259. result=?
  6260. fi
  6261. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6262. fi
  6263. fi
  6264. rm -f conftest.val
  6265. if test "$cross_compiling" = yes; then
  6266. # Depending upon the size, compute the lo and hi bounds.
  6267. cat >conftest.$ac_ext <<_ACEOF
  6268. /* confdefs.h. */
  6269. _ACEOF
  6270. cat confdefs.h >>conftest.$ac_ext
  6271. cat >>conftest.$ac_ext <<_ACEOF
  6272. /* end confdefs.h. */
  6273. #include <stddef.h>
  6274. int
  6275. main ()
  6276. {
  6277. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  6278. test_array [0] = 0
  6279. ;
  6280. return 0;
  6281. }
  6282. _ACEOF
  6283. rm -f conftest.$ac_objext
  6284. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6285. (eval $ac_compile) 2>conftest.er1
  6286. ac_status=$?
  6287. grep -v '^ *+' conftest.er1 >conftest.err
  6288. rm -f conftest.er1
  6289. cat conftest.err >&5
  6290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6291. (exit $ac_status); } &&
  6292. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6294. (eval $ac_try) 2>&5
  6295. ac_status=$?
  6296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6297. (exit $ac_status); }; } &&
  6298. { ac_try='test -s conftest.$ac_objext'
  6299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6300. (eval $ac_try) 2>&5
  6301. ac_status=$?
  6302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6303. (exit $ac_status); }; }; then
  6304. ac_lo=0 ac_mid=0
  6305. while :; do
  6306. cat >conftest.$ac_ext <<_ACEOF
  6307. /* confdefs.h. */
  6308. _ACEOF
  6309. cat confdefs.h >>conftest.$ac_ext
  6310. cat >>conftest.$ac_ext <<_ACEOF
  6311. /* end confdefs.h. */
  6312. #include <stddef.h>
  6313. int
  6314. main ()
  6315. {
  6316. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  6317. test_array [0] = 0
  6318. ;
  6319. return 0;
  6320. }
  6321. _ACEOF
  6322. rm -f conftest.$ac_objext
  6323. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6324. (eval $ac_compile) 2>conftest.er1
  6325. ac_status=$?
  6326. grep -v '^ *+' conftest.er1 >conftest.err
  6327. rm -f conftest.er1
  6328. cat conftest.err >&5
  6329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330. (exit $ac_status); } &&
  6331. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6333. (eval $ac_try) 2>&5
  6334. ac_status=$?
  6335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6336. (exit $ac_status); }; } &&
  6337. { ac_try='test -s conftest.$ac_objext'
  6338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6339. (eval $ac_try) 2>&5
  6340. ac_status=$?
  6341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6342. (exit $ac_status); }; }; then
  6343. ac_hi=$ac_mid; break
  6344. else
  6345. echo "$as_me: failed program was:" >&5
  6346. sed 's/^/| /' conftest.$ac_ext >&5
  6347. ac_lo=`expr $ac_mid + 1`
  6348. if test $ac_lo -le $ac_mid; then
  6349. ac_lo= ac_hi=
  6350. break
  6351. fi
  6352. ac_mid=`expr 2 '*' $ac_mid + 1`
  6353. fi
  6354. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. done
  6356. else
  6357. echo "$as_me: failed program was:" >&5
  6358. sed 's/^/| /' conftest.$ac_ext >&5
  6359. cat >conftest.$ac_ext <<_ACEOF
  6360. /* confdefs.h. */
  6361. _ACEOF
  6362. cat confdefs.h >>conftest.$ac_ext
  6363. cat >>conftest.$ac_ext <<_ACEOF
  6364. /* end confdefs.h. */
  6365. #include <stddef.h>
  6366. int
  6367. main ()
  6368. {
  6369. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  6370. test_array [0] = 0
  6371. ;
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. rm -f conftest.$ac_objext
  6376. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6377. (eval $ac_compile) 2>conftest.er1
  6378. ac_status=$?
  6379. grep -v '^ *+' conftest.er1 >conftest.err
  6380. rm -f conftest.er1
  6381. cat conftest.err >&5
  6382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6383. (exit $ac_status); } &&
  6384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6386. (eval $ac_try) 2>&5
  6387. ac_status=$?
  6388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6389. (exit $ac_status); }; } &&
  6390. { ac_try='test -s conftest.$ac_objext'
  6391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6392. (eval $ac_try) 2>&5
  6393. ac_status=$?
  6394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6395. (exit $ac_status); }; }; then
  6396. ac_hi=-1 ac_mid=-1
  6397. while :; do
  6398. cat >conftest.$ac_ext <<_ACEOF
  6399. /* confdefs.h. */
  6400. _ACEOF
  6401. cat confdefs.h >>conftest.$ac_ext
  6402. cat >>conftest.$ac_ext <<_ACEOF
  6403. /* end confdefs.h. */
  6404. #include <stddef.h>
  6405. int
  6406. main ()
  6407. {
  6408. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  6409. test_array [0] = 0
  6410. ;
  6411. return 0;
  6412. }
  6413. _ACEOF
  6414. rm -f conftest.$ac_objext
  6415. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6416. (eval $ac_compile) 2>conftest.er1
  6417. ac_status=$?
  6418. grep -v '^ *+' conftest.er1 >conftest.err
  6419. rm -f conftest.er1
  6420. cat conftest.err >&5
  6421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6422. (exit $ac_status); } &&
  6423. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6425. (eval $ac_try) 2>&5
  6426. ac_status=$?
  6427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6428. (exit $ac_status); }; } &&
  6429. { ac_try='test -s conftest.$ac_objext'
  6430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6431. (eval $ac_try) 2>&5
  6432. ac_status=$?
  6433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); }; }; then
  6435. ac_lo=$ac_mid; break
  6436. else
  6437. echo "$as_me: failed program was:" >&5
  6438. sed 's/^/| /' conftest.$ac_ext >&5
  6439. ac_hi=`expr '(' $ac_mid ')' - 1`
  6440. if test $ac_mid -le $ac_hi; then
  6441. ac_lo= ac_hi=
  6442. break
  6443. fi
  6444. ac_mid=`expr 2 '*' $ac_mid`
  6445. fi
  6446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6447. done
  6448. else
  6449. echo "$as_me: failed program was:" >&5
  6450. sed 's/^/| /' conftest.$ac_ext >&5
  6451. ac_lo= ac_hi=
  6452. fi
  6453. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6454. fi
  6455. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6456. # Binary search between lo and hi bounds.
  6457. while test "x$ac_lo" != "x$ac_hi"; do
  6458. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6459. cat >conftest.$ac_ext <<_ACEOF
  6460. /* confdefs.h. */
  6461. _ACEOF
  6462. cat confdefs.h >>conftest.$ac_ext
  6463. cat >>conftest.$ac_ext <<_ACEOF
  6464. /* end confdefs.h. */
  6465. #include <stddef.h>
  6466. int
  6467. main ()
  6468. {
  6469. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  6470. test_array [0] = 0
  6471. ;
  6472. return 0;
  6473. }
  6474. _ACEOF
  6475. rm -f conftest.$ac_objext
  6476. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6477. (eval $ac_compile) 2>conftest.er1
  6478. ac_status=$?
  6479. grep -v '^ *+' conftest.er1 >conftest.err
  6480. rm -f conftest.er1
  6481. cat conftest.err >&5
  6482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6483. (exit $ac_status); } &&
  6484. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6486. (eval $ac_try) 2>&5
  6487. ac_status=$?
  6488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6489. (exit $ac_status); }; } &&
  6490. { ac_try='test -s conftest.$ac_objext'
  6491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6492. (eval $ac_try) 2>&5
  6493. ac_status=$?
  6494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6495. (exit $ac_status); }; }; then
  6496. ac_hi=$ac_mid
  6497. else
  6498. echo "$as_me: failed program was:" >&5
  6499. sed 's/^/| /' conftest.$ac_ext >&5
  6500. ac_lo=`expr '(' $ac_mid ')' + 1`
  6501. fi
  6502. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6503. done
  6504. case $ac_lo in
  6505. ?*) fits_in_uint=$ac_lo;;
  6506. '') result=? ;;
  6507. esac
  6508. else
  6509. if test "$cross_compiling" = yes; then
  6510. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6511. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6512. { (exit 1); exit 1; }; }
  6513. else
  6514. cat >conftest.$ac_ext <<_ACEOF
  6515. /* confdefs.h. */
  6516. _ACEOF
  6517. cat confdefs.h >>conftest.$ac_ext
  6518. cat >>conftest.$ac_ext <<_ACEOF
  6519. /* end confdefs.h. */
  6520. #include <stddef.h>
  6521. long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  6522. unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  6523. #include <stdio.h>
  6524. #include <stdlib.h>
  6525. int
  6526. main ()
  6527. {
  6528. FILE *f = fopen ("conftest.val", "w");
  6529. if (! f)
  6530. exit (1);
  6531. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  6532. {
  6533. long i = longval ();
  6534. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  6535. exit (1);
  6536. fprintf (f, "%ld\n", i);
  6537. }
  6538. else
  6539. {
  6540. unsigned long i = ulongval ();
  6541. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  6542. exit (1);
  6543. fprintf (f, "%lu\n", i);
  6544. }
  6545. exit (ferror (f) || fclose (f) != 0);
  6546. ;
  6547. return 0;
  6548. }
  6549. _ACEOF
  6550. rm -f conftest$ac_exeext
  6551. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6552. (eval $ac_link) 2>&5
  6553. ac_status=$?
  6554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6555. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6557. (eval $ac_try) 2>&5
  6558. ac_status=$?
  6559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6560. (exit $ac_status); }; }; then
  6561. fits_in_uint=`cat conftest.val`
  6562. else
  6563. echo "$as_me: program exited with status $ac_status" >&5
  6564. echo "$as_me: failed program was:" >&5
  6565. sed 's/^/| /' conftest.$ac_ext >&5
  6566. ( exit $ac_status )
  6567. result=?
  6568. fi
  6569. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6570. fi
  6571. fi
  6572. rm -f conftest.val
  6573. if test "$fits_in_uint" = 1; then
  6574. cat >conftest.$ac_ext <<_ACEOF
  6575. /* confdefs.h. */
  6576. _ACEOF
  6577. cat confdefs.h >>conftest.$ac_ext
  6578. cat >>conftest.$ac_ext <<_ACEOF
  6579. /* end confdefs.h. */
  6580. #include <stddef.h>
  6581. extern size_t foo;
  6582. extern unsigned long foo;
  6583. int
  6584. main ()
  6585. {
  6586. ;
  6587. return 0;
  6588. }
  6589. _ACEOF
  6590. rm -f conftest.$ac_objext
  6591. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6592. (eval $ac_compile) 2>conftest.er1
  6593. ac_status=$?
  6594. grep -v '^ *+' conftest.er1 >conftest.err
  6595. rm -f conftest.er1
  6596. cat conftest.err >&5
  6597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6598. (exit $ac_status); } &&
  6599. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6601. (eval $ac_try) 2>&5
  6602. ac_status=$?
  6603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6604. (exit $ac_status); }; } &&
  6605. { ac_try='test -s conftest.$ac_objext'
  6606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6607. (eval $ac_try) 2>&5
  6608. ac_status=$?
  6609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6610. (exit $ac_status); }; }; then
  6611. fits_in_uint=0
  6612. else
  6613. echo "$as_me: failed program was:" >&5
  6614. sed 's/^/| /' conftest.$ac_ext >&5
  6615. fi
  6616. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6617. fi
  6618. if test -z "$result"; then
  6619. if test "$fits_in_uint" = 1; then
  6620. result="$res_hi$res_lo"U
  6621. else
  6622. result="$res_hi$res_lo"UL
  6623. fi
  6624. else
  6625. result='~(size_t)0'
  6626. fi
  6627. fi
  6628. echo "$as_me:$LINENO: result: $result" >&5
  6629. echo "${ECHO_T}$result" >&6
  6630. if test "$result" != yes; then
  6631. cat >>confdefs.h <<_ACEOF
  6632. #define SIZE_MAX $result
  6633. _ACEOF
  6634. fi
  6635. for ac_header in stdint.h
  6636. do
  6637. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6638. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6639. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6640. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6641. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6642. echo $ECHO_N "(cached) $ECHO_C" >&6
  6643. fi
  6644. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6645. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6646. else
  6647. # Is the header compilable?
  6648. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6649. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6650. cat >conftest.$ac_ext <<_ACEOF
  6651. /* confdefs.h. */
  6652. _ACEOF
  6653. cat confdefs.h >>conftest.$ac_ext
  6654. cat >>conftest.$ac_ext <<_ACEOF
  6655. /* end confdefs.h. */
  6656. $ac_includes_default
  6657. #include <$ac_header>
  6658. _ACEOF
  6659. rm -f conftest.$ac_objext
  6660. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6661. (eval $ac_compile) 2>conftest.er1
  6662. ac_status=$?
  6663. grep -v '^ *+' conftest.er1 >conftest.err
  6664. rm -f conftest.er1
  6665. cat conftest.err >&5
  6666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6667. (exit $ac_status); } &&
  6668. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6670. (eval $ac_try) 2>&5
  6671. ac_status=$?
  6672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6673. (exit $ac_status); }; } &&
  6674. { ac_try='test -s conftest.$ac_objext'
  6675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6676. (eval $ac_try) 2>&5
  6677. ac_status=$?
  6678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6679. (exit $ac_status); }; }; then
  6680. ac_header_compiler=yes
  6681. else
  6682. echo "$as_me: failed program was:" >&5
  6683. sed 's/^/| /' conftest.$ac_ext >&5
  6684. ac_header_compiler=no
  6685. fi
  6686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6687. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6688. echo "${ECHO_T}$ac_header_compiler" >&6
  6689. # Is the header present?
  6690. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6691. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6692. cat >conftest.$ac_ext <<_ACEOF
  6693. /* confdefs.h. */
  6694. _ACEOF
  6695. cat confdefs.h >>conftest.$ac_ext
  6696. cat >>conftest.$ac_ext <<_ACEOF
  6697. /* end confdefs.h. */
  6698. #include <$ac_header>
  6699. _ACEOF
  6700. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6701. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6702. ac_status=$?
  6703. grep -v '^ *+' conftest.er1 >conftest.err
  6704. rm -f conftest.er1
  6705. cat conftest.err >&5
  6706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6707. (exit $ac_status); } >/dev/null; then
  6708. if test -s conftest.err; then
  6709. ac_cpp_err=$ac_c_preproc_warn_flag
  6710. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6711. else
  6712. ac_cpp_err=
  6713. fi
  6714. else
  6715. ac_cpp_err=yes
  6716. fi
  6717. if test -z "$ac_cpp_err"; then
  6718. ac_header_preproc=yes
  6719. else
  6720. echo "$as_me: failed program was:" >&5
  6721. sed 's/^/| /' conftest.$ac_ext >&5
  6722. ac_header_preproc=no
  6723. fi
  6724. rm -f conftest.err conftest.$ac_ext
  6725. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6726. echo "${ECHO_T}$ac_header_preproc" >&6
  6727. # So? What about this header?
  6728. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6729. yes:no: )
  6730. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6731. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6732. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6733. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6734. ac_header_preproc=yes
  6735. ;;
  6736. no:yes:* )
  6737. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6738. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6739. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6740. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6741. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6742. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6743. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6744. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6745. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6746. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6747. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6748. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6749. (
  6750. cat <<\_ASBOX
  6751. ## ------------------------------------------- ##
  6752. ## Report this to debian-dpkg@lists.debian.org ##
  6753. ## ------------------------------------------- ##
  6754. _ASBOX
  6755. ) |
  6756. sed "s/^/$as_me: WARNING: /" >&2
  6757. ;;
  6758. esac
  6759. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6760. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6761. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6762. echo $ECHO_N "(cached) $ECHO_C" >&6
  6763. else
  6764. eval "$as_ac_Header=\$ac_header_preproc"
  6765. fi
  6766. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6767. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6768. fi
  6769. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6770. cat >>confdefs.h <<_ACEOF
  6771. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6772. _ACEOF
  6773. fi
  6774. done
  6775. if test "X$prefix" = "XNONE"; then
  6776. acl_final_prefix="$ac_default_prefix"
  6777. else
  6778. acl_final_prefix="$prefix"
  6779. fi
  6780. if test "X$exec_prefix" = "XNONE"; then
  6781. acl_final_exec_prefix='${prefix}'
  6782. else
  6783. acl_final_exec_prefix="$exec_prefix"
  6784. fi
  6785. acl_save_prefix="$prefix"
  6786. prefix="$acl_final_prefix"
  6787. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6788. prefix="$acl_save_prefix"
  6789. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6790. if test "${with_gnu_ld+set}" = set; then
  6791. withval="$with_gnu_ld"
  6792. test "$withval" = no || with_gnu_ld=yes
  6793. else
  6794. with_gnu_ld=no
  6795. fi;
  6796. # Prepare PATH_SEPARATOR.
  6797. # The user is always right.
  6798. if test "${PATH_SEPARATOR+set}" != set; then
  6799. echo "#! /bin/sh" >conf$$.sh
  6800. echo "exit 0" >>conf$$.sh
  6801. chmod +x conf$$.sh
  6802. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6803. PATH_SEPARATOR=';'
  6804. else
  6805. PATH_SEPARATOR=:
  6806. fi
  6807. rm -f conf$$.sh
  6808. fi
  6809. ac_prog=ld
  6810. if test "$GCC" = yes; then
  6811. # Check if gcc -print-prog-name=ld gives a path.
  6812. echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6813. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6814. case $host in
  6815. *-*-mingw*)
  6816. # gcc leaves a trailing carriage return which upsets mingw
  6817. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6818. *)
  6819. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6820. esac
  6821. case $ac_prog in
  6822. # Accept absolute paths.
  6823. [\\/]* | [A-Za-z]:[\\/]*)
  6824. re_direlt='/[^/][^/]*/\.\./'
  6825. # Canonicalize the path of ld
  6826. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6827. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6828. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6829. done
  6830. test -z "$LD" && LD="$ac_prog"
  6831. ;;
  6832. "")
  6833. # If it fails, then pretend we aren't using GCC.
  6834. ac_prog=ld
  6835. ;;
  6836. *)
  6837. # If it is relative, then search for the first ld in PATH.
  6838. with_gnu_ld=unknown
  6839. ;;
  6840. esac
  6841. elif test "$with_gnu_ld" = yes; then
  6842. echo "$as_me:$LINENO: checking for GNU ld" >&5
  6843. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6844. else
  6845. echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6846. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6847. fi
  6848. if test "${acl_cv_path_LD+set}" = set; then
  6849. echo $ECHO_N "(cached) $ECHO_C" >&6
  6850. else
  6851. if test -z "$LD"; then
  6852. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6853. for ac_dir in $PATH; do
  6854. test -z "$ac_dir" && ac_dir=.
  6855. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6856. acl_cv_path_LD="$ac_dir/$ac_prog"
  6857. # Check to see if the program is GNU ld. I'd rather use --version,
  6858. # but apparently some GNU ld's only accept -v.
  6859. # Break only if it was the GNU/non-GNU ld that we prefer.
  6860. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  6861. *GNU* | *'with BFD'*)
  6862. test "$with_gnu_ld" != no && break ;;
  6863. *)
  6864. test "$with_gnu_ld" != yes && break ;;
  6865. esac
  6866. fi
  6867. done
  6868. IFS="$ac_save_ifs"
  6869. else
  6870. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6871. fi
  6872. fi
  6873. LD="$acl_cv_path_LD"
  6874. if test -n "$LD"; then
  6875. echo "$as_me:$LINENO: result: $LD" >&5
  6876. echo "${ECHO_T}$LD" >&6
  6877. else
  6878. echo "$as_me:$LINENO: result: no" >&5
  6879. echo "${ECHO_T}no" >&6
  6880. fi
  6881. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6882. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6883. { (exit 1); exit 1; }; }
  6884. echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6885. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6886. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  6887. echo $ECHO_N "(cached) $ECHO_C" >&6
  6888. else
  6889. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6890. case `$LD -v 2>&1 </dev/null` in
  6891. *GNU* | *'with BFD'*)
  6892. acl_cv_prog_gnu_ld=yes ;;
  6893. *)
  6894. acl_cv_prog_gnu_ld=no ;;
  6895. esac
  6896. fi
  6897. echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  6898. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
  6899. with_gnu_ld=$acl_cv_prog_gnu_ld
  6900. echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  6901. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
  6902. if test "${acl_cv_rpath+set}" = set; then
  6903. echo $ECHO_N "(cached) $ECHO_C" >&6
  6904. else
  6905. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6906. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6907. . ./conftest.sh
  6908. rm -f ./conftest.sh
  6909. acl_cv_rpath=done
  6910. fi
  6911. echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  6912. echo "${ECHO_T}$acl_cv_rpath" >&6
  6913. wl="$acl_cv_wl"
  6914. libext="$acl_cv_libext"
  6915. shlibext="$acl_cv_shlibext"
  6916. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6917. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6918. hardcode_direct="$acl_cv_hardcode_direct"
  6919. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6920. # Check whether --enable-rpath or --disable-rpath was given.
  6921. if test "${enable_rpath+set}" = set; then
  6922. enableval="$enable_rpath"
  6923. :
  6924. else
  6925. enable_rpath=yes
  6926. fi;
  6927. use_additional=yes
  6928. acl_save_prefix="$prefix"
  6929. prefix="$acl_final_prefix"
  6930. acl_save_exec_prefix="$exec_prefix"
  6931. exec_prefix="$acl_final_exec_prefix"
  6932. eval additional_includedir=\"$includedir\"
  6933. eval additional_libdir=\"$libdir\"
  6934. exec_prefix="$acl_save_exec_prefix"
  6935. prefix="$acl_save_prefix"
  6936. # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  6937. if test "${with_libiconv_prefix+set}" = set; then
  6938. withval="$with_libiconv_prefix"
  6939. if test "X$withval" = "Xno"; then
  6940. use_additional=no
  6941. else
  6942. if test "X$withval" = "X"; then
  6943. acl_save_prefix="$prefix"
  6944. prefix="$acl_final_prefix"
  6945. acl_save_exec_prefix="$exec_prefix"
  6946. exec_prefix="$acl_final_exec_prefix"
  6947. eval additional_includedir=\"$includedir\"
  6948. eval additional_libdir=\"$libdir\"
  6949. exec_prefix="$acl_save_exec_prefix"
  6950. prefix="$acl_save_prefix"
  6951. else
  6952. additional_includedir="$withval/include"
  6953. additional_libdir="$withval/lib"
  6954. fi
  6955. fi
  6956. fi;
  6957. LIBICONV=
  6958. LTLIBICONV=
  6959. INCICONV=
  6960. rpathdirs=
  6961. ltrpathdirs=
  6962. names_already_handled=
  6963. names_next_round='iconv '
  6964. while test -n "$names_next_round"; do
  6965. names_this_round="$names_next_round"
  6966. names_next_round=
  6967. for name in $names_this_round; do
  6968. already_handled=
  6969. for n in $names_already_handled; do
  6970. if test "$n" = "$name"; then
  6971. already_handled=yes
  6972. break
  6973. fi
  6974. done
  6975. if test -z "$already_handled"; then
  6976. names_already_handled="$names_already_handled $name"
  6977. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6978. eval value=\"\$HAVE_LIB$uppername\"
  6979. if test -n "$value"; then
  6980. if test "$value" = yes; then
  6981. eval value=\"\$LIB$uppername\"
  6982. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  6983. eval value=\"\$LTLIB$uppername\"
  6984. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  6985. else
  6986. :
  6987. fi
  6988. else
  6989. found_dir=
  6990. found_la=
  6991. found_so=
  6992. found_a=
  6993. if test $use_additional = yes; then
  6994. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6995. found_dir="$additional_libdir"
  6996. found_so="$additional_libdir/lib$name.$shlibext"
  6997. if test -f "$additional_libdir/lib$name.la"; then
  6998. found_la="$additional_libdir/lib$name.la"
  6999. fi
  7000. else
  7001. if test -f "$additional_libdir/lib$name.$libext"; then
  7002. found_dir="$additional_libdir"
  7003. found_a="$additional_libdir/lib$name.$libext"
  7004. if test -f "$additional_libdir/lib$name.la"; then
  7005. found_la="$additional_libdir/lib$name.la"
  7006. fi
  7007. fi
  7008. fi
  7009. fi
  7010. if test "X$found_dir" = "X"; then
  7011. for x in $LDFLAGS $LTLIBICONV; do
  7012. acl_save_prefix="$prefix"
  7013. prefix="$acl_final_prefix"
  7014. acl_save_exec_prefix="$exec_prefix"
  7015. exec_prefix="$acl_final_exec_prefix"
  7016. eval x=\"$x\"
  7017. exec_prefix="$acl_save_exec_prefix"
  7018. prefix="$acl_save_prefix"
  7019. case "$x" in
  7020. -L*)
  7021. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7022. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7023. found_dir="$dir"
  7024. found_so="$dir/lib$name.$shlibext"
  7025. if test -f "$dir/lib$name.la"; then
  7026. found_la="$dir/lib$name.la"
  7027. fi
  7028. else
  7029. if test -f "$dir/lib$name.$libext"; then
  7030. found_dir="$dir"
  7031. found_a="$dir/lib$name.$libext"
  7032. if test -f "$dir/lib$name.la"; then
  7033. found_la="$dir/lib$name.la"
  7034. fi
  7035. fi
  7036. fi
  7037. ;;
  7038. esac
  7039. if test "X$found_dir" != "X"; then
  7040. break
  7041. fi
  7042. done
  7043. fi
  7044. if test "X$found_dir" != "X"; then
  7045. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7046. if test "X$found_so" != "X"; then
  7047. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7048. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7049. else
  7050. haveit=
  7051. for x in $ltrpathdirs; do
  7052. if test "X$x" = "X$found_dir"; then
  7053. haveit=yes
  7054. break
  7055. fi
  7056. done
  7057. if test -z "$haveit"; then
  7058. ltrpathdirs="$ltrpathdirs $found_dir"
  7059. fi
  7060. if test "$hardcode_direct" = yes; then
  7061. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7062. else
  7063. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7064. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7065. haveit=
  7066. for x in $rpathdirs; do
  7067. if test "X$x" = "X$found_dir"; then
  7068. haveit=yes
  7069. break
  7070. fi
  7071. done
  7072. if test -z "$haveit"; then
  7073. rpathdirs="$rpathdirs $found_dir"
  7074. fi
  7075. else
  7076. haveit=
  7077. for x in $LDFLAGS $LIBICONV; do
  7078. acl_save_prefix="$prefix"
  7079. prefix="$acl_final_prefix"
  7080. acl_save_exec_prefix="$exec_prefix"
  7081. exec_prefix="$acl_final_exec_prefix"
  7082. eval x=\"$x\"
  7083. exec_prefix="$acl_save_exec_prefix"
  7084. prefix="$acl_save_prefix"
  7085. if test "X$x" = "X-L$found_dir"; then
  7086. haveit=yes
  7087. break
  7088. fi
  7089. done
  7090. if test -z "$haveit"; then
  7091. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  7092. fi
  7093. if test "$hardcode_minus_L" != no; then
  7094. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7095. else
  7096. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7097. fi
  7098. fi
  7099. fi
  7100. fi
  7101. else
  7102. if test "X$found_a" != "X"; then
  7103. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  7104. else
  7105. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  7106. fi
  7107. fi
  7108. additional_includedir=
  7109. case "$found_dir" in
  7110. */lib | */lib/)
  7111. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7112. additional_includedir="$basedir/include"
  7113. ;;
  7114. esac
  7115. if test "X$additional_includedir" != "X"; then
  7116. if test "X$additional_includedir" != "X/usr/include"; then
  7117. haveit=
  7118. if test "X$additional_includedir" = "X/usr/local/include"; then
  7119. if test -n "$GCC"; then
  7120. case $host_os in
  7121. linux*) haveit=yes;;
  7122. esac
  7123. fi
  7124. fi
  7125. if test -z "$haveit"; then
  7126. for x in $CPPFLAGS $INCICONV; do
  7127. acl_save_prefix="$prefix"
  7128. prefix="$acl_final_prefix"
  7129. acl_save_exec_prefix="$exec_prefix"
  7130. exec_prefix="$acl_final_exec_prefix"
  7131. eval x=\"$x\"
  7132. exec_prefix="$acl_save_exec_prefix"
  7133. prefix="$acl_save_prefix"
  7134. if test "X$x" = "X-I$additional_includedir"; then
  7135. haveit=yes
  7136. break
  7137. fi
  7138. done
  7139. if test -z "$haveit"; then
  7140. if test -d "$additional_includedir"; then
  7141. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  7142. fi
  7143. fi
  7144. fi
  7145. fi
  7146. fi
  7147. if test -n "$found_la"; then
  7148. save_libdir="$libdir"
  7149. case "$found_la" in
  7150. */* | *\\*) . "$found_la" ;;
  7151. *) . "./$found_la" ;;
  7152. esac
  7153. libdir="$save_libdir"
  7154. for dep in $dependency_libs; do
  7155. case "$dep" in
  7156. -L*)
  7157. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7158. if test "X$additional_libdir" != "X/usr/lib"; then
  7159. haveit=
  7160. if test "X$additional_libdir" = "X/usr/local/lib"; then
  7161. if test -n "$GCC"; then
  7162. case $host_os in
  7163. linux*) haveit=yes;;
  7164. esac
  7165. fi
  7166. fi
  7167. if test -z "$haveit"; then
  7168. haveit=
  7169. for x in $LDFLAGS $LIBICONV; do
  7170. acl_save_prefix="$prefix"
  7171. prefix="$acl_final_prefix"
  7172. acl_save_exec_prefix="$exec_prefix"
  7173. exec_prefix="$acl_final_exec_prefix"
  7174. eval x=\"$x\"
  7175. exec_prefix="$acl_save_exec_prefix"
  7176. prefix="$acl_save_prefix"
  7177. if test "X$x" = "X-L$additional_libdir"; then
  7178. haveit=yes
  7179. break
  7180. fi
  7181. done
  7182. if test -z "$haveit"; then
  7183. if test -d "$additional_libdir"; then
  7184. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  7185. fi
  7186. fi
  7187. haveit=
  7188. for x in $LDFLAGS $LTLIBICONV; do
  7189. acl_save_prefix="$prefix"
  7190. prefix="$acl_final_prefix"
  7191. acl_save_exec_prefix="$exec_prefix"
  7192. exec_prefix="$acl_final_exec_prefix"
  7193. eval x=\"$x\"
  7194. exec_prefix="$acl_save_exec_prefix"
  7195. prefix="$acl_save_prefix"
  7196. if test "X$x" = "X-L$additional_libdir"; then
  7197. haveit=yes
  7198. break
  7199. fi
  7200. done
  7201. if test -z "$haveit"; then
  7202. if test -d "$additional_libdir"; then
  7203. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  7204. fi
  7205. fi
  7206. fi
  7207. fi
  7208. ;;
  7209. -R*)
  7210. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7211. if test "$enable_rpath" != no; then
  7212. haveit=
  7213. for x in $rpathdirs; do
  7214. if test "X$x" = "X$dir"; then
  7215. haveit=yes
  7216. break
  7217. fi
  7218. done
  7219. if test -z "$haveit"; then
  7220. rpathdirs="$rpathdirs $dir"
  7221. fi
  7222. haveit=
  7223. for x in $ltrpathdirs; do
  7224. if test "X$x" = "X$dir"; then
  7225. haveit=yes
  7226. break
  7227. fi
  7228. done
  7229. if test -z "$haveit"; then
  7230. ltrpathdirs="$ltrpathdirs $dir"
  7231. fi
  7232. fi
  7233. ;;
  7234. -l*)
  7235. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7236. ;;
  7237. *.la)
  7238. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7239. ;;
  7240. *)
  7241. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  7242. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  7243. ;;
  7244. esac
  7245. done
  7246. fi
  7247. else
  7248. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  7249. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  7250. fi
  7251. fi
  7252. fi
  7253. done
  7254. done
  7255. if test "X$rpathdirs" != "X"; then
  7256. if test -n "$hardcode_libdir_separator"; then
  7257. alldirs=
  7258. for found_dir in $rpathdirs; do
  7259. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7260. done
  7261. acl_save_libdir="$libdir"
  7262. libdir="$alldirs"
  7263. eval flag=\"$hardcode_libdir_flag_spec\"
  7264. libdir="$acl_save_libdir"
  7265. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7266. else
  7267. for found_dir in $rpathdirs; do
  7268. acl_save_libdir="$libdir"
  7269. libdir="$found_dir"
  7270. eval flag=\"$hardcode_libdir_flag_spec\"
  7271. libdir="$acl_save_libdir"
  7272. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  7273. done
  7274. fi
  7275. fi
  7276. if test "X$ltrpathdirs" != "X"; then
  7277. for found_dir in $ltrpathdirs; do
  7278. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  7279. done
  7280. fi
  7281. echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  7282. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
  7283. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  7284. echo $ECHO_N "(cached) $ECHO_C" >&6
  7285. else
  7286. cat >conftest.$ac_ext <<_ACEOF
  7287. /* confdefs.h. */
  7288. _ACEOF
  7289. cat confdefs.h >>conftest.$ac_ext
  7290. cat >>conftest.$ac_ext <<_ACEOF
  7291. /* end confdefs.h. */
  7292. $ac_includes_default
  7293. int
  7294. main ()
  7295. {
  7296. if ((ptrdiff_t *) 0)
  7297. return 0;
  7298. if (sizeof (ptrdiff_t))
  7299. return 0;
  7300. ;
  7301. return 0;
  7302. }
  7303. _ACEOF
  7304. rm -f conftest.$ac_objext
  7305. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7306. (eval $ac_compile) 2>conftest.er1
  7307. ac_status=$?
  7308. grep -v '^ *+' conftest.er1 >conftest.err
  7309. rm -f conftest.er1
  7310. cat conftest.err >&5
  7311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7312. (exit $ac_status); } &&
  7313. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7315. (eval $ac_try) 2>&5
  7316. ac_status=$?
  7317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7318. (exit $ac_status); }; } &&
  7319. { ac_try='test -s conftest.$ac_objext'
  7320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7321. (eval $ac_try) 2>&5
  7322. ac_status=$?
  7323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7324. (exit $ac_status); }; }; then
  7325. ac_cv_type_ptrdiff_t=yes
  7326. else
  7327. echo "$as_me: failed program was:" >&5
  7328. sed 's/^/| /' conftest.$ac_ext >&5
  7329. ac_cv_type_ptrdiff_t=no
  7330. fi
  7331. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7332. fi
  7333. echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  7334. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
  7335. if test $ac_cv_type_ptrdiff_t = yes; then
  7336. :
  7337. else
  7338. cat >>confdefs.h <<\_ACEOF
  7339. #define ptrdiff_t long
  7340. _ACEOF
  7341. fi
  7342. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  7343. stdlib.h string.h unistd.h sys/param.h
  7344. do
  7345. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7346. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7347. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7348. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7349. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7350. echo $ECHO_N "(cached) $ECHO_C" >&6
  7351. fi
  7352. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7353. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7354. else
  7355. # Is the header compilable?
  7356. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7357. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7358. cat >conftest.$ac_ext <<_ACEOF
  7359. /* confdefs.h. */
  7360. _ACEOF
  7361. cat confdefs.h >>conftest.$ac_ext
  7362. cat >>conftest.$ac_ext <<_ACEOF
  7363. /* end confdefs.h. */
  7364. $ac_includes_default
  7365. #include <$ac_header>
  7366. _ACEOF
  7367. rm -f conftest.$ac_objext
  7368. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7369. (eval $ac_compile) 2>conftest.er1
  7370. ac_status=$?
  7371. grep -v '^ *+' conftest.er1 >conftest.err
  7372. rm -f conftest.er1
  7373. cat conftest.err >&5
  7374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7375. (exit $ac_status); } &&
  7376. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7378. (eval $ac_try) 2>&5
  7379. ac_status=$?
  7380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7381. (exit $ac_status); }; } &&
  7382. { ac_try='test -s conftest.$ac_objext'
  7383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7384. (eval $ac_try) 2>&5
  7385. ac_status=$?
  7386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7387. (exit $ac_status); }; }; then
  7388. ac_header_compiler=yes
  7389. else
  7390. echo "$as_me: failed program was:" >&5
  7391. sed 's/^/| /' conftest.$ac_ext >&5
  7392. ac_header_compiler=no
  7393. fi
  7394. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7395. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7396. echo "${ECHO_T}$ac_header_compiler" >&6
  7397. # Is the header present?
  7398. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7399. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7400. cat >conftest.$ac_ext <<_ACEOF
  7401. /* confdefs.h. */
  7402. _ACEOF
  7403. cat confdefs.h >>conftest.$ac_ext
  7404. cat >>conftest.$ac_ext <<_ACEOF
  7405. /* end confdefs.h. */
  7406. #include <$ac_header>
  7407. _ACEOF
  7408. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7409. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7410. ac_status=$?
  7411. grep -v '^ *+' conftest.er1 >conftest.err
  7412. rm -f conftest.er1
  7413. cat conftest.err >&5
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); } >/dev/null; then
  7416. if test -s conftest.err; then
  7417. ac_cpp_err=$ac_c_preproc_warn_flag
  7418. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7419. else
  7420. ac_cpp_err=
  7421. fi
  7422. else
  7423. ac_cpp_err=yes
  7424. fi
  7425. if test -z "$ac_cpp_err"; then
  7426. ac_header_preproc=yes
  7427. else
  7428. echo "$as_me: failed program was:" >&5
  7429. sed 's/^/| /' conftest.$ac_ext >&5
  7430. ac_header_preproc=no
  7431. fi
  7432. rm -f conftest.err conftest.$ac_ext
  7433. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7434. echo "${ECHO_T}$ac_header_preproc" >&6
  7435. # So? What about this header?
  7436. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7437. yes:no: )
  7438. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7439. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7440. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7441. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7442. ac_header_preproc=yes
  7443. ;;
  7444. no:yes:* )
  7445. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7446. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7447. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7448. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7449. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7450. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7451. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7452. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7453. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7454. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7455. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7456. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7457. (
  7458. cat <<\_ASBOX
  7459. ## ------------------------------------------- ##
  7460. ## Report this to debian-dpkg@lists.debian.org ##
  7461. ## ------------------------------------------- ##
  7462. _ASBOX
  7463. ) |
  7464. sed "s/^/$as_me: WARNING: /" >&2
  7465. ;;
  7466. esac
  7467. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7468. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7469. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7470. echo $ECHO_N "(cached) $ECHO_C" >&6
  7471. else
  7472. eval "$as_ac_Header=\$ac_header_preproc"
  7473. fi
  7474. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7475. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7476. fi
  7477. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7478. cat >>confdefs.h <<_ACEOF
  7479. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7480. _ACEOF
  7481. fi
  7482. done
  7483. for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
  7484. mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
  7485. strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
  7486. __fsetlocking
  7487. do
  7488. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7489. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7490. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7491. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7492. echo $ECHO_N "(cached) $ECHO_C" >&6
  7493. else
  7494. cat >conftest.$ac_ext <<_ACEOF
  7495. /* confdefs.h. */
  7496. _ACEOF
  7497. cat confdefs.h >>conftest.$ac_ext
  7498. cat >>conftest.$ac_ext <<_ACEOF
  7499. /* end confdefs.h. */
  7500. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7501. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7502. #define $ac_func innocuous_$ac_func
  7503. /* System header to define __stub macros and hopefully few prototypes,
  7504. which can conflict with char $ac_func (); below.
  7505. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7506. <limits.h> exists even on freestanding compilers. */
  7507. #ifdef __STDC__
  7508. # include <limits.h>
  7509. #else
  7510. # include <assert.h>
  7511. #endif
  7512. #undef $ac_func
  7513. /* Override any gcc2 internal prototype to avoid an error. */
  7514. #ifdef __cplusplus
  7515. extern "C"
  7516. {
  7517. #endif
  7518. /* We use char because int might match the return type of a gcc2
  7519. builtin and then its argument prototype would still apply. */
  7520. char $ac_func ();
  7521. /* The GNU C library defines this for functions which it implements
  7522. to always fail with ENOSYS. Some functions are actually named
  7523. something starting with __ and the normal name is an alias. */
  7524. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7525. choke me
  7526. #else
  7527. char (*f) () = $ac_func;
  7528. #endif
  7529. #ifdef __cplusplus
  7530. }
  7531. #endif
  7532. int
  7533. main ()
  7534. {
  7535. return f != $ac_func;
  7536. ;
  7537. return 0;
  7538. }
  7539. _ACEOF
  7540. rm -f conftest.$ac_objext conftest$ac_exeext
  7541. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7542. (eval $ac_link) 2>conftest.er1
  7543. ac_status=$?
  7544. grep -v '^ *+' conftest.er1 >conftest.err
  7545. rm -f conftest.er1
  7546. cat conftest.err >&5
  7547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. (exit $ac_status); } &&
  7549. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7551. (eval $ac_try) 2>&5
  7552. ac_status=$?
  7553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7554. (exit $ac_status); }; } &&
  7555. { ac_try='test -s conftest$ac_exeext'
  7556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7557. (eval $ac_try) 2>&5
  7558. ac_status=$?
  7559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7560. (exit $ac_status); }; }; then
  7561. eval "$as_ac_var=yes"
  7562. else
  7563. echo "$as_me: failed program was:" >&5
  7564. sed 's/^/| /' conftest.$ac_ext >&5
  7565. eval "$as_ac_var=no"
  7566. fi
  7567. rm -f conftest.err conftest.$ac_objext \
  7568. conftest$ac_exeext conftest.$ac_ext
  7569. fi
  7570. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7571. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7572. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7573. cat >>confdefs.h <<_ACEOF
  7574. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7575. _ACEOF
  7576. fi
  7577. done
  7578. echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  7579. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
  7580. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  7581. echo $ECHO_N "(cached) $ECHO_C" >&6
  7582. else
  7583. cat >conftest.$ac_ext <<_ACEOF
  7584. /* confdefs.h. */
  7585. _ACEOF
  7586. cat confdefs.h >>conftest.$ac_ext
  7587. cat >>conftest.$ac_ext <<_ACEOF
  7588. /* end confdefs.h. */
  7589. #include <stdio.h>
  7590. int
  7591. main ()
  7592. {
  7593. #ifndef _snprintf
  7594. char *p = (char *) _snprintf;
  7595. #endif
  7596. ;
  7597. return 0;
  7598. }
  7599. _ACEOF
  7600. rm -f conftest.$ac_objext
  7601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7602. (eval $ac_compile) 2>conftest.er1
  7603. ac_status=$?
  7604. grep -v '^ *+' conftest.er1 >conftest.err
  7605. rm -f conftest.er1
  7606. cat conftest.err >&5
  7607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7608. (exit $ac_status); } &&
  7609. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7611. (eval $ac_try) 2>&5
  7612. ac_status=$?
  7613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7614. (exit $ac_status); }; } &&
  7615. { ac_try='test -s conftest.$ac_objext'
  7616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7617. (eval $ac_try) 2>&5
  7618. ac_status=$?
  7619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7620. (exit $ac_status); }; }; then
  7621. ac_cv_have_decl__snprintf=yes
  7622. else
  7623. echo "$as_me: failed program was:" >&5
  7624. sed 's/^/| /' conftest.$ac_ext >&5
  7625. ac_cv_have_decl__snprintf=no
  7626. fi
  7627. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7628. fi
  7629. echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  7630. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
  7631. if test $ac_cv_have_decl__snprintf = yes; then
  7632. gt_value=1
  7633. else
  7634. gt_value=0
  7635. fi
  7636. cat >>confdefs.h <<_ACEOF
  7637. #define HAVE_DECL__SNPRINTF $gt_value
  7638. _ACEOF
  7639. echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  7640. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
  7641. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  7642. echo $ECHO_N "(cached) $ECHO_C" >&6
  7643. else
  7644. cat >conftest.$ac_ext <<_ACEOF
  7645. /* confdefs.h. */
  7646. _ACEOF
  7647. cat confdefs.h >>conftest.$ac_ext
  7648. cat >>conftest.$ac_ext <<_ACEOF
  7649. /* end confdefs.h. */
  7650. #include <stdio.h>
  7651. int
  7652. main ()
  7653. {
  7654. #ifndef _snwprintf
  7655. char *p = (char *) _snwprintf;
  7656. #endif
  7657. ;
  7658. return 0;
  7659. }
  7660. _ACEOF
  7661. rm -f conftest.$ac_objext
  7662. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7663. (eval $ac_compile) 2>conftest.er1
  7664. ac_status=$?
  7665. grep -v '^ *+' conftest.er1 >conftest.err
  7666. rm -f conftest.er1
  7667. cat conftest.err >&5
  7668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7669. (exit $ac_status); } &&
  7670. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7672. (eval $ac_try) 2>&5
  7673. ac_status=$?
  7674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7675. (exit $ac_status); }; } &&
  7676. { ac_try='test -s conftest.$ac_objext'
  7677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7678. (eval $ac_try) 2>&5
  7679. ac_status=$?
  7680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7681. (exit $ac_status); }; }; then
  7682. ac_cv_have_decl__snwprintf=yes
  7683. else
  7684. echo "$as_me: failed program was:" >&5
  7685. sed 's/^/| /' conftest.$ac_ext >&5
  7686. ac_cv_have_decl__snwprintf=no
  7687. fi
  7688. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7689. fi
  7690. echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  7691. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
  7692. if test $ac_cv_have_decl__snwprintf = yes; then
  7693. gt_value=1
  7694. else
  7695. gt_value=0
  7696. fi
  7697. cat >>confdefs.h <<_ACEOF
  7698. #define HAVE_DECL__SNWPRINTF $gt_value
  7699. _ACEOF
  7700. echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  7701. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
  7702. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  7703. echo $ECHO_N "(cached) $ECHO_C" >&6
  7704. else
  7705. cat >conftest.$ac_ext <<_ACEOF
  7706. /* confdefs.h. */
  7707. _ACEOF
  7708. cat confdefs.h >>conftest.$ac_ext
  7709. cat >>conftest.$ac_ext <<_ACEOF
  7710. /* end confdefs.h. */
  7711. #include <stdio.h>
  7712. int
  7713. main ()
  7714. {
  7715. #ifndef feof_unlocked
  7716. char *p = (char *) feof_unlocked;
  7717. #endif
  7718. ;
  7719. return 0;
  7720. }
  7721. _ACEOF
  7722. rm -f conftest.$ac_objext
  7723. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7724. (eval $ac_compile) 2>conftest.er1
  7725. ac_status=$?
  7726. grep -v '^ *+' conftest.er1 >conftest.err
  7727. rm -f conftest.er1
  7728. cat conftest.err >&5
  7729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7730. (exit $ac_status); } &&
  7731. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7733. (eval $ac_try) 2>&5
  7734. ac_status=$?
  7735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7736. (exit $ac_status); }; } &&
  7737. { ac_try='test -s conftest.$ac_objext'
  7738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7739. (eval $ac_try) 2>&5
  7740. ac_status=$?
  7741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7742. (exit $ac_status); }; }; then
  7743. ac_cv_have_decl_feof_unlocked=yes
  7744. else
  7745. echo "$as_me: failed program was:" >&5
  7746. sed 's/^/| /' conftest.$ac_ext >&5
  7747. ac_cv_have_decl_feof_unlocked=no
  7748. fi
  7749. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7750. fi
  7751. echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  7752. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
  7753. if test $ac_cv_have_decl_feof_unlocked = yes; then
  7754. gt_value=1
  7755. else
  7756. gt_value=0
  7757. fi
  7758. cat >>confdefs.h <<_ACEOF
  7759. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  7760. _ACEOF
  7761. echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  7762. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
  7763. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  7764. echo $ECHO_N "(cached) $ECHO_C" >&6
  7765. else
  7766. cat >conftest.$ac_ext <<_ACEOF
  7767. /* confdefs.h. */
  7768. _ACEOF
  7769. cat confdefs.h >>conftest.$ac_ext
  7770. cat >>conftest.$ac_ext <<_ACEOF
  7771. /* end confdefs.h. */
  7772. #include <stdio.h>
  7773. int
  7774. main ()
  7775. {
  7776. #ifndef fgets_unlocked
  7777. char *p = (char *) fgets_unlocked;
  7778. #endif
  7779. ;
  7780. return 0;
  7781. }
  7782. _ACEOF
  7783. rm -f conftest.$ac_objext
  7784. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7785. (eval $ac_compile) 2>conftest.er1
  7786. ac_status=$?
  7787. grep -v '^ *+' conftest.er1 >conftest.err
  7788. rm -f conftest.er1
  7789. cat conftest.err >&5
  7790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7791. (exit $ac_status); } &&
  7792. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7794. (eval $ac_try) 2>&5
  7795. ac_status=$?
  7796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7797. (exit $ac_status); }; } &&
  7798. { ac_try='test -s conftest.$ac_objext'
  7799. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7800. (eval $ac_try) 2>&5
  7801. ac_status=$?
  7802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7803. (exit $ac_status); }; }; then
  7804. ac_cv_have_decl_fgets_unlocked=yes
  7805. else
  7806. echo "$as_me: failed program was:" >&5
  7807. sed 's/^/| /' conftest.$ac_ext >&5
  7808. ac_cv_have_decl_fgets_unlocked=no
  7809. fi
  7810. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7811. fi
  7812. echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  7813. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
  7814. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  7815. gt_value=1
  7816. else
  7817. gt_value=0
  7818. fi
  7819. cat >>confdefs.h <<_ACEOF
  7820. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  7821. _ACEOF
  7822. echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  7823. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
  7824. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  7825. echo $ECHO_N "(cached) $ECHO_C" >&6
  7826. else
  7827. cat >conftest.$ac_ext <<_ACEOF
  7828. /* confdefs.h. */
  7829. _ACEOF
  7830. cat confdefs.h >>conftest.$ac_ext
  7831. cat >>conftest.$ac_ext <<_ACEOF
  7832. /* end confdefs.h. */
  7833. #include <stdio.h>
  7834. int
  7835. main ()
  7836. {
  7837. #ifndef getc_unlocked
  7838. char *p = (char *) getc_unlocked;
  7839. #endif
  7840. ;
  7841. return 0;
  7842. }
  7843. _ACEOF
  7844. rm -f conftest.$ac_objext
  7845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7846. (eval $ac_compile) 2>conftest.er1
  7847. ac_status=$?
  7848. grep -v '^ *+' conftest.er1 >conftest.err
  7849. rm -f conftest.er1
  7850. cat conftest.err >&5
  7851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7852. (exit $ac_status); } &&
  7853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7855. (eval $ac_try) 2>&5
  7856. ac_status=$?
  7857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7858. (exit $ac_status); }; } &&
  7859. { ac_try='test -s conftest.$ac_objext'
  7860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7861. (eval $ac_try) 2>&5
  7862. ac_status=$?
  7863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7864. (exit $ac_status); }; }; then
  7865. ac_cv_have_decl_getc_unlocked=yes
  7866. else
  7867. echo "$as_me: failed program was:" >&5
  7868. sed 's/^/| /' conftest.$ac_ext >&5
  7869. ac_cv_have_decl_getc_unlocked=no
  7870. fi
  7871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7872. fi
  7873. echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  7874. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
  7875. if test $ac_cv_have_decl_getc_unlocked = yes; then
  7876. gt_value=1
  7877. else
  7878. gt_value=0
  7879. fi
  7880. cat >>confdefs.h <<_ACEOF
  7881. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  7882. _ACEOF
  7883. case $gt_cv_func_printf_posix in
  7884. *yes) HAVE_POSIX_PRINTF=1 ;;
  7885. *) HAVE_POSIX_PRINTF=0 ;;
  7886. esac
  7887. if test "$ac_cv_func_asprintf" = yes; then
  7888. HAVE_ASPRINTF=1
  7889. else
  7890. HAVE_ASPRINTF=0
  7891. fi
  7892. if test "$ac_cv_func_snprintf" = yes; then
  7893. HAVE_SNPRINTF=1
  7894. else
  7895. HAVE_SNPRINTF=0
  7896. fi
  7897. if test "$ac_cv_func_wprintf" = yes; then
  7898. HAVE_WPRINTF=1
  7899. else
  7900. HAVE_WPRINTF=0
  7901. fi
  7902. am_save_CPPFLAGS="$CPPFLAGS"
  7903. for element in $INCICONV; do
  7904. haveit=
  7905. for x in $CPPFLAGS; do
  7906. acl_save_prefix="$prefix"
  7907. prefix="$acl_final_prefix"
  7908. acl_save_exec_prefix="$exec_prefix"
  7909. exec_prefix="$acl_final_exec_prefix"
  7910. eval x=\"$x\"
  7911. exec_prefix="$acl_save_exec_prefix"
  7912. prefix="$acl_save_prefix"
  7913. if test "X$x" = "X$element"; then
  7914. haveit=yes
  7915. break
  7916. fi
  7917. done
  7918. if test -z "$haveit"; then
  7919. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7920. fi
  7921. done
  7922. echo "$as_me:$LINENO: checking for iconv" >&5
  7923. echo $ECHO_N "checking for iconv... $ECHO_C" >&6
  7924. if test "${am_cv_func_iconv+set}" = set; then
  7925. echo $ECHO_N "(cached) $ECHO_C" >&6
  7926. else
  7927. am_cv_func_iconv="no, consider installing GNU libiconv"
  7928. am_cv_lib_iconv=no
  7929. cat >conftest.$ac_ext <<_ACEOF
  7930. /* confdefs.h. */
  7931. _ACEOF
  7932. cat confdefs.h >>conftest.$ac_ext
  7933. cat >>conftest.$ac_ext <<_ACEOF
  7934. /* end confdefs.h. */
  7935. #include <stdlib.h>
  7936. #include <iconv.h>
  7937. int
  7938. main ()
  7939. {
  7940. iconv_t cd = iconv_open("","");
  7941. iconv(cd,NULL,NULL,NULL,NULL);
  7942. iconv_close(cd);
  7943. ;
  7944. return 0;
  7945. }
  7946. _ACEOF
  7947. rm -f conftest.$ac_objext conftest$ac_exeext
  7948. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7949. (eval $ac_link) 2>conftest.er1
  7950. ac_status=$?
  7951. grep -v '^ *+' conftest.er1 >conftest.err
  7952. rm -f conftest.er1
  7953. cat conftest.err >&5
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. (exit $ac_status); } &&
  7956. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7958. (eval $ac_try) 2>&5
  7959. ac_status=$?
  7960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7961. (exit $ac_status); }; } &&
  7962. { ac_try='test -s conftest$ac_exeext'
  7963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7964. (eval $ac_try) 2>&5
  7965. ac_status=$?
  7966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7967. (exit $ac_status); }; }; then
  7968. am_cv_func_iconv=yes
  7969. else
  7970. echo "$as_me: failed program was:" >&5
  7971. sed 's/^/| /' conftest.$ac_ext >&5
  7972. fi
  7973. rm -f conftest.err conftest.$ac_objext \
  7974. conftest$ac_exeext conftest.$ac_ext
  7975. if test "$am_cv_func_iconv" != yes; then
  7976. am_save_LIBS="$LIBS"
  7977. LIBS="$LIBS $LIBICONV"
  7978. cat >conftest.$ac_ext <<_ACEOF
  7979. /* confdefs.h. */
  7980. _ACEOF
  7981. cat confdefs.h >>conftest.$ac_ext
  7982. cat >>conftest.$ac_ext <<_ACEOF
  7983. /* end confdefs.h. */
  7984. #include <stdlib.h>
  7985. #include <iconv.h>
  7986. int
  7987. main ()
  7988. {
  7989. iconv_t cd = iconv_open("","");
  7990. iconv(cd,NULL,NULL,NULL,NULL);
  7991. iconv_close(cd);
  7992. ;
  7993. return 0;
  7994. }
  7995. _ACEOF
  7996. rm -f conftest.$ac_objext conftest$ac_exeext
  7997. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7998. (eval $ac_link) 2>conftest.er1
  7999. ac_status=$?
  8000. grep -v '^ *+' conftest.er1 >conftest.err
  8001. rm -f conftest.er1
  8002. cat conftest.err >&5
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. (exit $ac_status); } &&
  8005. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8007. (eval $ac_try) 2>&5
  8008. ac_status=$?
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. (exit $ac_status); }; } &&
  8011. { ac_try='test -s conftest$ac_exeext'
  8012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8013. (eval $ac_try) 2>&5
  8014. ac_status=$?
  8015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8016. (exit $ac_status); }; }; then
  8017. am_cv_lib_iconv=yes
  8018. am_cv_func_iconv=yes
  8019. else
  8020. echo "$as_me: failed program was:" >&5
  8021. sed 's/^/| /' conftest.$ac_ext >&5
  8022. fi
  8023. rm -f conftest.err conftest.$ac_objext \
  8024. conftest$ac_exeext conftest.$ac_ext
  8025. LIBS="$am_save_LIBS"
  8026. fi
  8027. fi
  8028. echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8029. echo "${ECHO_T}$am_cv_func_iconv" >&6
  8030. if test "$am_cv_func_iconv" = yes; then
  8031. cat >>confdefs.h <<\_ACEOF
  8032. #define HAVE_ICONV 1
  8033. _ACEOF
  8034. fi
  8035. if test "$am_cv_lib_iconv" = yes; then
  8036. echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8037. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
  8038. echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8039. echo "${ECHO_T}$LIBICONV" >&6
  8040. else
  8041. CPPFLAGS="$am_save_CPPFLAGS"
  8042. LIBICONV=
  8043. LTLIBICONV=
  8044. fi
  8045. if test "$am_cv_func_iconv" = yes; then
  8046. echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8047. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
  8048. if test "${am_cv_proto_iconv+set}" = set; then
  8049. echo $ECHO_N "(cached) $ECHO_C" >&6
  8050. else
  8051. cat >conftest.$ac_ext <<_ACEOF
  8052. /* confdefs.h. */
  8053. _ACEOF
  8054. cat confdefs.h >>conftest.$ac_ext
  8055. cat >>conftest.$ac_ext <<_ACEOF
  8056. /* end confdefs.h. */
  8057. #include <stdlib.h>
  8058. #include <iconv.h>
  8059. extern
  8060. #ifdef __cplusplus
  8061. "C"
  8062. #endif
  8063. #if defined(__STDC__) || defined(__cplusplus)
  8064. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8065. #else
  8066. size_t iconv();
  8067. #endif
  8068. int
  8069. main ()
  8070. {
  8071. ;
  8072. return 0;
  8073. }
  8074. _ACEOF
  8075. rm -f conftest.$ac_objext
  8076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8077. (eval $ac_compile) 2>conftest.er1
  8078. ac_status=$?
  8079. grep -v '^ *+' conftest.er1 >conftest.err
  8080. rm -f conftest.er1
  8081. cat conftest.err >&5
  8082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8083. (exit $ac_status); } &&
  8084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8086. (eval $ac_try) 2>&5
  8087. ac_status=$?
  8088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8089. (exit $ac_status); }; } &&
  8090. { ac_try='test -s conftest.$ac_objext'
  8091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8092. (eval $ac_try) 2>&5
  8093. ac_status=$?
  8094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8095. (exit $ac_status); }; }; then
  8096. am_cv_proto_iconv_arg1=""
  8097. else
  8098. echo "$as_me: failed program was:" >&5
  8099. sed 's/^/| /' conftest.$ac_ext >&5
  8100. am_cv_proto_iconv_arg1="const"
  8101. fi
  8102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8103. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  8104. fi
  8105. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8106. echo "$as_me:$LINENO: result: ${ac_t:-
  8107. }$am_cv_proto_iconv" >&5
  8108. echo "${ECHO_T}${ac_t:-
  8109. }$am_cv_proto_iconv" >&6
  8110. cat >>confdefs.h <<_ACEOF
  8111. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8112. _ACEOF
  8113. fi
  8114. echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8115. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
  8116. if test "${am_cv_langinfo_codeset+set}" = set; then
  8117. echo $ECHO_N "(cached) $ECHO_C" >&6
  8118. else
  8119. cat >conftest.$ac_ext <<_ACEOF
  8120. /* confdefs.h. */
  8121. _ACEOF
  8122. cat confdefs.h >>conftest.$ac_ext
  8123. cat >>conftest.$ac_ext <<_ACEOF
  8124. /* end confdefs.h. */
  8125. #include <langinfo.h>
  8126. int
  8127. main ()
  8128. {
  8129. char* cs = nl_langinfo(CODESET);
  8130. ;
  8131. return 0;
  8132. }
  8133. _ACEOF
  8134. rm -f conftest.$ac_objext conftest$ac_exeext
  8135. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8136. (eval $ac_link) 2>conftest.er1
  8137. ac_status=$?
  8138. grep -v '^ *+' conftest.er1 >conftest.err
  8139. rm -f conftest.er1
  8140. cat conftest.err >&5
  8141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8142. (exit $ac_status); } &&
  8143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8145. (eval $ac_try) 2>&5
  8146. ac_status=$?
  8147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8148. (exit $ac_status); }; } &&
  8149. { ac_try='test -s conftest$ac_exeext'
  8150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8151. (eval $ac_try) 2>&5
  8152. ac_status=$?
  8153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8154. (exit $ac_status); }; }; then
  8155. am_cv_langinfo_codeset=yes
  8156. else
  8157. echo "$as_me: failed program was:" >&5
  8158. sed 's/^/| /' conftest.$ac_ext >&5
  8159. am_cv_langinfo_codeset=no
  8160. fi
  8161. rm -f conftest.err conftest.$ac_objext \
  8162. conftest$ac_exeext conftest.$ac_ext
  8163. fi
  8164. echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8165. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
  8166. if test $am_cv_langinfo_codeset = yes; then
  8167. cat >>confdefs.h <<\_ACEOF
  8168. #define HAVE_LANGINFO_CODESET 1
  8169. _ACEOF
  8170. fi
  8171. if test $ac_cv_header_locale_h = yes; then
  8172. echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8173. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
  8174. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8175. echo $ECHO_N "(cached) $ECHO_C" >&6
  8176. else
  8177. cat >conftest.$ac_ext <<_ACEOF
  8178. /* confdefs.h. */
  8179. _ACEOF
  8180. cat confdefs.h >>conftest.$ac_ext
  8181. cat >>conftest.$ac_ext <<_ACEOF
  8182. /* end confdefs.h. */
  8183. #include <locale.h>
  8184. int
  8185. main ()
  8186. {
  8187. return LC_MESSAGES
  8188. ;
  8189. return 0;
  8190. }
  8191. _ACEOF
  8192. rm -f conftest.$ac_objext conftest$ac_exeext
  8193. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8194. (eval $ac_link) 2>conftest.er1
  8195. ac_status=$?
  8196. grep -v '^ *+' conftest.er1 >conftest.err
  8197. rm -f conftest.er1
  8198. cat conftest.err >&5
  8199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8200. (exit $ac_status); } &&
  8201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8203. (eval $ac_try) 2>&5
  8204. ac_status=$?
  8205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8206. (exit $ac_status); }; } &&
  8207. { ac_try='test -s conftest$ac_exeext'
  8208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8209. (eval $ac_try) 2>&5
  8210. ac_status=$?
  8211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8212. (exit $ac_status); }; }; then
  8213. am_cv_val_LC_MESSAGES=yes
  8214. else
  8215. echo "$as_me: failed program was:" >&5
  8216. sed 's/^/| /' conftest.$ac_ext >&5
  8217. am_cv_val_LC_MESSAGES=no
  8218. fi
  8219. rm -f conftest.err conftest.$ac_objext \
  8220. conftest$ac_exeext conftest.$ac_ext
  8221. fi
  8222. echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8223. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
  8224. if test $am_cv_val_LC_MESSAGES = yes; then
  8225. cat >>confdefs.h <<\_ACEOF
  8226. #define HAVE_LC_MESSAGES 1
  8227. _ACEOF
  8228. fi
  8229. fi
  8230. for ac_prog in bison
  8231. do
  8232. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8233. set dummy $ac_prog; ac_word=$2
  8234. echo "$as_me:$LINENO: checking for $ac_word" >&5
  8235. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8236. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8237. echo $ECHO_N "(cached) $ECHO_C" >&6
  8238. else
  8239. if test -n "$INTLBISON"; then
  8240. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8241. else
  8242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8243. for as_dir in $PATH
  8244. do
  8245. IFS=$as_save_IFS
  8246. test -z "$as_dir" && as_dir=.
  8247. for ac_exec_ext in '' $ac_executable_extensions; do
  8248. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8249. ac_cv_prog_INTLBISON="$ac_prog"
  8250. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8251. break 2
  8252. fi
  8253. done
  8254. done
  8255. fi
  8256. fi
  8257. INTLBISON=$ac_cv_prog_INTLBISON
  8258. if test -n "$INTLBISON"; then
  8259. echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8260. echo "${ECHO_T}$INTLBISON" >&6
  8261. else
  8262. echo "$as_me:$LINENO: result: no" >&5
  8263. echo "${ECHO_T}no" >&6
  8264. fi
  8265. test -n "$INTLBISON" && break
  8266. done
  8267. if test -z "$INTLBISON"; then
  8268. ac_verc_fail=yes
  8269. else
  8270. echo "$as_me:$LINENO: checking version of bison" >&5
  8271. echo $ECHO_N "checking version of bison... $ECHO_C" >&6
  8272. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8273. case $ac_prog_version in
  8274. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8275. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8276. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8277. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8278. esac
  8279. echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8280. echo "${ECHO_T}$ac_prog_version" >&6
  8281. fi
  8282. if test $ac_verc_fail = yes; then
  8283. INTLBISON=:
  8284. fi
  8285. echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8286. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
  8287. # Check whether --enable-nls or --disable-nls was given.
  8288. if test "${enable_nls+set}" = set; then
  8289. enableval="$enable_nls"
  8290. USE_NLS=$enableval
  8291. else
  8292. USE_NLS=yes
  8293. fi;
  8294. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8295. echo "${ECHO_T}$USE_NLS" >&6
  8296. BUILD_INCLUDED_LIBINTL=no
  8297. USE_INCLUDED_LIBINTL=no
  8298. LIBINTL=
  8299. LTLIBINTL=
  8300. POSUB=
  8301. if test "$USE_NLS" = "yes"; then
  8302. gt_use_preinstalled_gnugettext=no
  8303. echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8304. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
  8305. # Check whether --with-included-gettext or --without-included-gettext was given.
  8306. if test "${with_included_gettext+set}" = set; then
  8307. withval="$with_included_gettext"
  8308. nls_cv_force_use_gnu_gettext=$withval
  8309. else
  8310. nls_cv_force_use_gnu_gettext=no
  8311. fi;
  8312. echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8313. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
  8314. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8315. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8316. echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8317. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
  8318. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8319. echo $ECHO_N "(cached) $ECHO_C" >&6
  8320. else
  8321. cat >conftest.$ac_ext <<_ACEOF
  8322. /* confdefs.h. */
  8323. _ACEOF
  8324. cat confdefs.h >>conftest.$ac_ext
  8325. cat >>conftest.$ac_ext <<_ACEOF
  8326. /* end confdefs.h. */
  8327. #include <libintl.h>
  8328. extern int _nl_msg_cat_cntr;
  8329. extern int *_nl_domain_bindings;
  8330. int
  8331. main ()
  8332. {
  8333. bindtextdomain ("", "");
  8334. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8335. ;
  8336. return 0;
  8337. }
  8338. _ACEOF
  8339. rm -f conftest.$ac_objext conftest$ac_exeext
  8340. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8341. (eval $ac_link) 2>conftest.er1
  8342. ac_status=$?
  8343. grep -v '^ *+' conftest.er1 >conftest.err
  8344. rm -f conftest.er1
  8345. cat conftest.err >&5
  8346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8347. (exit $ac_status); } &&
  8348. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8350. (eval $ac_try) 2>&5
  8351. ac_status=$?
  8352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8353. (exit $ac_status); }; } &&
  8354. { ac_try='test -s conftest$ac_exeext'
  8355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8356. (eval $ac_try) 2>&5
  8357. ac_status=$?
  8358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8359. (exit $ac_status); }; }; then
  8360. gt_cv_func_gnugettext1_libc=yes
  8361. else
  8362. echo "$as_me: failed program was:" >&5
  8363. sed 's/^/| /' conftest.$ac_ext >&5
  8364. gt_cv_func_gnugettext1_libc=no
  8365. fi
  8366. rm -f conftest.err conftest.$ac_objext \
  8367. conftest$ac_exeext conftest.$ac_ext
  8368. fi
  8369. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8370. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
  8371. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8372. use_additional=yes
  8373. acl_save_prefix="$prefix"
  8374. prefix="$acl_final_prefix"
  8375. acl_save_exec_prefix="$exec_prefix"
  8376. exec_prefix="$acl_final_exec_prefix"
  8377. eval additional_includedir=\"$includedir\"
  8378. eval additional_libdir=\"$libdir\"
  8379. exec_prefix="$acl_save_exec_prefix"
  8380. prefix="$acl_save_prefix"
  8381. # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
  8382. if test "${with_libintl_prefix+set}" = set; then
  8383. withval="$with_libintl_prefix"
  8384. if test "X$withval" = "Xno"; then
  8385. use_additional=no
  8386. else
  8387. if test "X$withval" = "X"; then
  8388. acl_save_prefix="$prefix"
  8389. prefix="$acl_final_prefix"
  8390. acl_save_exec_prefix="$exec_prefix"
  8391. exec_prefix="$acl_final_exec_prefix"
  8392. eval additional_includedir=\"$includedir\"
  8393. eval additional_libdir=\"$libdir\"
  8394. exec_prefix="$acl_save_exec_prefix"
  8395. prefix="$acl_save_prefix"
  8396. else
  8397. additional_includedir="$withval/include"
  8398. additional_libdir="$withval/lib"
  8399. fi
  8400. fi
  8401. fi;
  8402. LIBINTL=
  8403. LTLIBINTL=
  8404. INCINTL=
  8405. rpathdirs=
  8406. ltrpathdirs=
  8407. names_already_handled=
  8408. names_next_round='intl '
  8409. while test -n "$names_next_round"; do
  8410. names_this_round="$names_next_round"
  8411. names_next_round=
  8412. for name in $names_this_round; do
  8413. already_handled=
  8414. for n in $names_already_handled; do
  8415. if test "$n" = "$name"; then
  8416. already_handled=yes
  8417. break
  8418. fi
  8419. done
  8420. if test -z "$already_handled"; then
  8421. names_already_handled="$names_already_handled $name"
  8422. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8423. eval value=\"\$HAVE_LIB$uppername\"
  8424. if test -n "$value"; then
  8425. if test "$value" = yes; then
  8426. eval value=\"\$LIB$uppername\"
  8427. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8428. eval value=\"\$LTLIB$uppername\"
  8429. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8430. else
  8431. :
  8432. fi
  8433. else
  8434. found_dir=
  8435. found_la=
  8436. found_so=
  8437. found_a=
  8438. if test $use_additional = yes; then
  8439. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8440. found_dir="$additional_libdir"
  8441. found_so="$additional_libdir/lib$name.$shlibext"
  8442. if test -f "$additional_libdir/lib$name.la"; then
  8443. found_la="$additional_libdir/lib$name.la"
  8444. fi
  8445. else
  8446. if test -f "$additional_libdir/lib$name.$libext"; then
  8447. found_dir="$additional_libdir"
  8448. found_a="$additional_libdir/lib$name.$libext"
  8449. if test -f "$additional_libdir/lib$name.la"; then
  8450. found_la="$additional_libdir/lib$name.la"
  8451. fi
  8452. fi
  8453. fi
  8454. fi
  8455. if test "X$found_dir" = "X"; then
  8456. for x in $LDFLAGS $LTLIBINTL; do
  8457. acl_save_prefix="$prefix"
  8458. prefix="$acl_final_prefix"
  8459. acl_save_exec_prefix="$exec_prefix"
  8460. exec_prefix="$acl_final_exec_prefix"
  8461. eval x=\"$x\"
  8462. exec_prefix="$acl_save_exec_prefix"
  8463. prefix="$acl_save_prefix"
  8464. case "$x" in
  8465. -L*)
  8466. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8467. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8468. found_dir="$dir"
  8469. found_so="$dir/lib$name.$shlibext"
  8470. if test -f "$dir/lib$name.la"; then
  8471. found_la="$dir/lib$name.la"
  8472. fi
  8473. else
  8474. if test -f "$dir/lib$name.$libext"; then
  8475. found_dir="$dir"
  8476. found_a="$dir/lib$name.$libext"
  8477. if test -f "$dir/lib$name.la"; then
  8478. found_la="$dir/lib$name.la"
  8479. fi
  8480. fi
  8481. fi
  8482. ;;
  8483. esac
  8484. if test "X$found_dir" != "X"; then
  8485. break
  8486. fi
  8487. done
  8488. fi
  8489. if test "X$found_dir" != "X"; then
  8490. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  8491. if test "X$found_so" != "X"; then
  8492. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8493. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8494. else
  8495. haveit=
  8496. for x in $ltrpathdirs; do
  8497. if test "X$x" = "X$found_dir"; then
  8498. haveit=yes
  8499. break
  8500. fi
  8501. done
  8502. if test -z "$haveit"; then
  8503. ltrpathdirs="$ltrpathdirs $found_dir"
  8504. fi
  8505. if test "$hardcode_direct" = yes; then
  8506. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8507. else
  8508. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8509. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8510. haveit=
  8511. for x in $rpathdirs; do
  8512. if test "X$x" = "X$found_dir"; then
  8513. haveit=yes
  8514. break
  8515. fi
  8516. done
  8517. if test -z "$haveit"; then
  8518. rpathdirs="$rpathdirs $found_dir"
  8519. fi
  8520. else
  8521. haveit=
  8522. for x in $LDFLAGS $LIBINTL; do
  8523. acl_save_prefix="$prefix"
  8524. prefix="$acl_final_prefix"
  8525. acl_save_exec_prefix="$exec_prefix"
  8526. exec_prefix="$acl_final_exec_prefix"
  8527. eval x=\"$x\"
  8528. exec_prefix="$acl_save_exec_prefix"
  8529. prefix="$acl_save_prefix"
  8530. if test "X$x" = "X-L$found_dir"; then
  8531. haveit=yes
  8532. break
  8533. fi
  8534. done
  8535. if test -z "$haveit"; then
  8536. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  8537. fi
  8538. if test "$hardcode_minus_L" != no; then
  8539. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  8540. else
  8541. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8542. fi
  8543. fi
  8544. fi
  8545. fi
  8546. else
  8547. if test "X$found_a" != "X"; then
  8548. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  8549. else
  8550. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  8551. fi
  8552. fi
  8553. additional_includedir=
  8554. case "$found_dir" in
  8555. */lib | */lib/)
  8556. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8557. additional_includedir="$basedir/include"
  8558. ;;
  8559. esac
  8560. if test "X$additional_includedir" != "X"; then
  8561. if test "X$additional_includedir" != "X/usr/include"; then
  8562. haveit=
  8563. if test "X$additional_includedir" = "X/usr/local/include"; then
  8564. if test -n "$GCC"; then
  8565. case $host_os in
  8566. linux*) haveit=yes;;
  8567. esac
  8568. fi
  8569. fi
  8570. if test -z "$haveit"; then
  8571. for x in $CPPFLAGS $INCINTL; do
  8572. acl_save_prefix="$prefix"
  8573. prefix="$acl_final_prefix"
  8574. acl_save_exec_prefix="$exec_prefix"
  8575. exec_prefix="$acl_final_exec_prefix"
  8576. eval x=\"$x\"
  8577. exec_prefix="$acl_save_exec_prefix"
  8578. prefix="$acl_save_prefix"
  8579. if test "X$x" = "X-I$additional_includedir"; then
  8580. haveit=yes
  8581. break
  8582. fi
  8583. done
  8584. if test -z "$haveit"; then
  8585. if test -d "$additional_includedir"; then
  8586. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  8587. fi
  8588. fi
  8589. fi
  8590. fi
  8591. fi
  8592. if test -n "$found_la"; then
  8593. save_libdir="$libdir"
  8594. case "$found_la" in
  8595. */* | *\\*) . "$found_la" ;;
  8596. *) . "./$found_la" ;;
  8597. esac
  8598. libdir="$save_libdir"
  8599. for dep in $dependency_libs; do
  8600. case "$dep" in
  8601. -L*)
  8602. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8603. if test "X$additional_libdir" != "X/usr/lib"; then
  8604. haveit=
  8605. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8606. if test -n "$GCC"; then
  8607. case $host_os in
  8608. linux*) haveit=yes;;
  8609. esac
  8610. fi
  8611. fi
  8612. if test -z "$haveit"; then
  8613. haveit=
  8614. for x in $LDFLAGS $LIBINTL; do
  8615. acl_save_prefix="$prefix"
  8616. prefix="$acl_final_prefix"
  8617. acl_save_exec_prefix="$exec_prefix"
  8618. exec_prefix="$acl_final_exec_prefix"
  8619. eval x=\"$x\"
  8620. exec_prefix="$acl_save_exec_prefix"
  8621. prefix="$acl_save_prefix"
  8622. if test "X$x" = "X-L$additional_libdir"; then
  8623. haveit=yes
  8624. break
  8625. fi
  8626. done
  8627. if test -z "$haveit"; then
  8628. if test -d "$additional_libdir"; then
  8629. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  8630. fi
  8631. fi
  8632. haveit=
  8633. for x in $LDFLAGS $LTLIBINTL; do
  8634. acl_save_prefix="$prefix"
  8635. prefix="$acl_final_prefix"
  8636. acl_save_exec_prefix="$exec_prefix"
  8637. exec_prefix="$acl_final_exec_prefix"
  8638. eval x=\"$x\"
  8639. exec_prefix="$acl_save_exec_prefix"
  8640. prefix="$acl_save_prefix"
  8641. if test "X$x" = "X-L$additional_libdir"; then
  8642. haveit=yes
  8643. break
  8644. fi
  8645. done
  8646. if test -z "$haveit"; then
  8647. if test -d "$additional_libdir"; then
  8648. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  8649. fi
  8650. fi
  8651. fi
  8652. fi
  8653. ;;
  8654. -R*)
  8655. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8656. if test "$enable_rpath" != no; then
  8657. haveit=
  8658. for x in $rpathdirs; do
  8659. if test "X$x" = "X$dir"; then
  8660. haveit=yes
  8661. break
  8662. fi
  8663. done
  8664. if test -z "$haveit"; then
  8665. rpathdirs="$rpathdirs $dir"
  8666. fi
  8667. haveit=
  8668. for x in $ltrpathdirs; do
  8669. if test "X$x" = "X$dir"; then
  8670. haveit=yes
  8671. break
  8672. fi
  8673. done
  8674. if test -z "$haveit"; then
  8675. ltrpathdirs="$ltrpathdirs $dir"
  8676. fi
  8677. fi
  8678. ;;
  8679. -l*)
  8680. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8681. ;;
  8682. *.la)
  8683. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8684. ;;
  8685. *)
  8686. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  8687. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  8688. ;;
  8689. esac
  8690. done
  8691. fi
  8692. else
  8693. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  8694. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  8695. fi
  8696. fi
  8697. fi
  8698. done
  8699. done
  8700. if test "X$rpathdirs" != "X"; then
  8701. if test -n "$hardcode_libdir_separator"; then
  8702. alldirs=
  8703. for found_dir in $rpathdirs; do
  8704. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8705. done
  8706. acl_save_libdir="$libdir"
  8707. libdir="$alldirs"
  8708. eval flag=\"$hardcode_libdir_flag_spec\"
  8709. libdir="$acl_save_libdir"
  8710. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8711. else
  8712. for found_dir in $rpathdirs; do
  8713. acl_save_libdir="$libdir"
  8714. libdir="$found_dir"
  8715. eval flag=\"$hardcode_libdir_flag_spec\"
  8716. libdir="$acl_save_libdir"
  8717. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  8718. done
  8719. fi
  8720. fi
  8721. if test "X$ltrpathdirs" != "X"; then
  8722. for found_dir in $ltrpathdirs; do
  8723. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  8724. done
  8725. fi
  8726. echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  8727. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
  8728. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  8729. echo $ECHO_N "(cached) $ECHO_C" >&6
  8730. else
  8731. gt_save_CPPFLAGS="$CPPFLAGS"
  8732. CPPFLAGS="$CPPFLAGS $INCINTL"
  8733. gt_save_LIBS="$LIBS"
  8734. LIBS="$LIBS $LIBINTL"
  8735. cat >conftest.$ac_ext <<_ACEOF
  8736. /* confdefs.h. */
  8737. _ACEOF
  8738. cat confdefs.h >>conftest.$ac_ext
  8739. cat >>conftest.$ac_ext <<_ACEOF
  8740. /* end confdefs.h. */
  8741. #include <libintl.h>
  8742. extern int _nl_msg_cat_cntr;
  8743. extern
  8744. #ifdef __cplusplus
  8745. "C"
  8746. #endif
  8747. const char *_nl_expand_alias ();
  8748. int
  8749. main ()
  8750. {
  8751. bindtextdomain ("", "");
  8752. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8753. ;
  8754. return 0;
  8755. }
  8756. _ACEOF
  8757. rm -f conftest.$ac_objext conftest$ac_exeext
  8758. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8759. (eval $ac_link) 2>conftest.er1
  8760. ac_status=$?
  8761. grep -v '^ *+' conftest.er1 >conftest.err
  8762. rm -f conftest.er1
  8763. cat conftest.err >&5
  8764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8765. (exit $ac_status); } &&
  8766. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8768. (eval $ac_try) 2>&5
  8769. ac_status=$?
  8770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8771. (exit $ac_status); }; } &&
  8772. { ac_try='test -s conftest$ac_exeext'
  8773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8774. (eval $ac_try) 2>&5
  8775. ac_status=$?
  8776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8777. (exit $ac_status); }; }; then
  8778. gt_cv_func_gnugettext1_libintl=yes
  8779. else
  8780. echo "$as_me: failed program was:" >&5
  8781. sed 's/^/| /' conftest.$ac_ext >&5
  8782. gt_cv_func_gnugettext1_libintl=no
  8783. fi
  8784. rm -f conftest.err conftest.$ac_objext \
  8785. conftest$ac_exeext conftest.$ac_ext
  8786. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  8787. LIBS="$LIBS $LIBICONV"
  8788. cat >conftest.$ac_ext <<_ACEOF
  8789. /* confdefs.h. */
  8790. _ACEOF
  8791. cat confdefs.h >>conftest.$ac_ext
  8792. cat >>conftest.$ac_ext <<_ACEOF
  8793. /* end confdefs.h. */
  8794. #include <libintl.h>
  8795. extern int _nl_msg_cat_cntr;
  8796. extern
  8797. #ifdef __cplusplus
  8798. "C"
  8799. #endif
  8800. const char *_nl_expand_alias ();
  8801. int
  8802. main ()
  8803. {
  8804. bindtextdomain ("", "");
  8805. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  8806. ;
  8807. return 0;
  8808. }
  8809. _ACEOF
  8810. rm -f conftest.$ac_objext conftest$ac_exeext
  8811. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8812. (eval $ac_link) 2>conftest.er1
  8813. ac_status=$?
  8814. grep -v '^ *+' conftest.er1 >conftest.err
  8815. rm -f conftest.er1
  8816. cat conftest.err >&5
  8817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8818. (exit $ac_status); } &&
  8819. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8821. (eval $ac_try) 2>&5
  8822. ac_status=$?
  8823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8824. (exit $ac_status); }; } &&
  8825. { ac_try='test -s conftest$ac_exeext'
  8826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8827. (eval $ac_try) 2>&5
  8828. ac_status=$?
  8829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8830. (exit $ac_status); }; }; then
  8831. LIBINTL="$LIBINTL $LIBICONV"
  8832. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  8833. gt_cv_func_gnugettext1_libintl=yes
  8834. else
  8835. echo "$as_me: failed program was:" >&5
  8836. sed 's/^/| /' conftest.$ac_ext >&5
  8837. fi
  8838. rm -f conftest.err conftest.$ac_objext \
  8839. conftest$ac_exeext conftest.$ac_ext
  8840. fi
  8841. CPPFLAGS="$gt_save_CPPFLAGS"
  8842. LIBS="$gt_save_LIBS"
  8843. fi
  8844. echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  8845. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
  8846. fi
  8847. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  8848. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  8849. && test "$PACKAGE" != gettext-runtime \
  8850. && test "$PACKAGE" != gettext-tools; }; then
  8851. gt_use_preinstalled_gnugettext=yes
  8852. else
  8853. LIBINTL=
  8854. LTLIBINTL=
  8855. INCINTL=
  8856. fi
  8857. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  8858. nls_cv_use_gnu_gettext=yes
  8859. fi
  8860. fi
  8861. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  8862. BUILD_INCLUDED_LIBINTL=yes
  8863. USE_INCLUDED_LIBINTL=yes
  8864. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  8865. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  8866. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  8867. fi
  8868. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8869. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8870. CATOBJEXT=.gmo
  8871. fi
  8872. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  8873. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  8874. cat >>confdefs.h <<\_ACEOF
  8875. #define ENABLE_NLS 1
  8876. _ACEOF
  8877. else
  8878. USE_NLS=no
  8879. fi
  8880. fi
  8881. echo "$as_me:$LINENO: checking whether to use NLS" >&5
  8882. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
  8883. echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8884. echo "${ECHO_T}$USE_NLS" >&6
  8885. if test "$USE_NLS" = "yes"; then
  8886. echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  8887. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
  8888. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8889. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8890. gt_source="external libintl"
  8891. else
  8892. gt_source="libc"
  8893. fi
  8894. else
  8895. gt_source="included intl directory"
  8896. fi
  8897. echo "$as_me:$LINENO: result: $gt_source" >&5
  8898. echo "${ECHO_T}$gt_source" >&6
  8899. fi
  8900. if test "$USE_NLS" = "yes"; then
  8901. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  8902. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  8903. echo "$as_me:$LINENO: checking how to link with libintl" >&5
  8904. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
  8905. echo "$as_me:$LINENO: result: $LIBINTL" >&5
  8906. echo "${ECHO_T}$LIBINTL" >&6
  8907. for element in $INCINTL; do
  8908. haveit=
  8909. for x in $CPPFLAGS; do
  8910. acl_save_prefix="$prefix"
  8911. prefix="$acl_final_prefix"
  8912. acl_save_exec_prefix="$exec_prefix"
  8913. exec_prefix="$acl_final_exec_prefix"
  8914. eval x=\"$x\"
  8915. exec_prefix="$acl_save_exec_prefix"
  8916. prefix="$acl_save_prefix"
  8917. if test "X$x" = "X$element"; then
  8918. haveit=yes
  8919. break
  8920. fi
  8921. done
  8922. if test -z "$haveit"; then
  8923. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8924. fi
  8925. done
  8926. fi
  8927. cat >>confdefs.h <<\_ACEOF
  8928. #define HAVE_GETTEXT 1
  8929. _ACEOF
  8930. cat >>confdefs.h <<\_ACEOF
  8931. #define HAVE_DCGETTEXT 1
  8932. _ACEOF
  8933. fi
  8934. POSUB=po
  8935. fi
  8936. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  8937. BUILD_INCLUDED_LIBINTL=yes
  8938. fi
  8939. nls_cv_header_intl=
  8940. nls_cv_header_libgt=
  8941. DATADIRNAME=share
  8942. INSTOBJEXT=.mo
  8943. GENCAT=gencat
  8944. if test "$USE_INCLUDED_LIBINTL" = yes; then
  8945. INTLOBJS="\$(GETTOBJS)"
  8946. fi
  8947. INTL_LIBTOOL_SUFFIX_PREFIX=
  8948. INTLLIBS="$LIBINTL"
  8949. # Allow compilation without dselect
  8950. # Check whether --with-dselect or --without-dselect was given.
  8951. if test "${with_dselect+set}" = set; then
  8952. withval="$with_dselect"
  8953. build_dselect=$with_dselect
  8954. else
  8955. build_dselect=yes
  8956. fi;
  8957. if test "x$build_dselect" = "xyes"; then
  8958. WITH_DSELECT_TRUE=
  8959. WITH_DSELECT_FALSE='#'
  8960. else
  8961. WITH_DSELECT_TRUE='#'
  8962. WITH_DSELECT_FALSE=
  8963. fi
  8964. # Allow compilation without start-stop-daemon
  8965. # Check whether --with-start-stop-daemon or --without-start-stop-daemon was given.
  8966. if test "${with_start_stop_daemon+set}" = set; then
  8967. withval="$with_start_stop_daemon"
  8968. build_start_stop_daemon=$with_start_stop_daemon
  8969. else
  8970. build_start_stop_daemon=yes
  8971. fi;
  8972. if test "x$build_start_stop_daemon" = "xyes"; then
  8973. WITH_START_STOP_DAEMON_TRUE=
  8974. WITH_START_STOP_DAEMON_FALSE='#'
  8975. else
  8976. WITH_START_STOP_DAEMON_TRUE='#'
  8977. WITH_START_STOP_DAEMON_FALSE=
  8978. fi
  8979. if test "x$build_start_stop_daemon" = "xyes"; then
  8980. cat >>confdefs.h <<\_ACEOF
  8981. #define WITH_START_STOP_DAEMON 1
  8982. _ACEOF
  8983. else
  8984. cat >>confdefs.h <<\_ACEOF
  8985. #define WITH_START_STOP_DAEMON 0
  8986. _ACEOF
  8987. fi
  8988. # Allow alternate admin directory
  8989. admindir="${localstatedir}/${PACKAGE_NAME}"
  8990. # Check whether --with-admindir or --without-admindir was given.
  8991. if test "${with_admindir+set}" = set; then
  8992. withval="$with_admindir"
  8993. case "$with_admindir" in
  8994. "") { { echo "$as_me:$LINENO: error: invalid admindir specified" >&5
  8995. echo "$as_me: error: invalid admindir specified" >&2;}
  8996. { (exit 1); exit 1; }; } ;;
  8997. *) admindir="$with_admindir" ;;
  8998. esac
  8999. fi;
  9000. # Checks for programs.
  9001. ac_ext=c
  9002. ac_cpp='$CPP $CPPFLAGS'
  9003. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9004. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9005. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9006. if test -n "$ac_tool_prefix"; then
  9007. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9008. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9009. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9010. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9011. if test "${ac_cv_prog_CC+set}" = set; then
  9012. echo $ECHO_N "(cached) $ECHO_C" >&6
  9013. else
  9014. if test -n "$CC"; then
  9015. ac_cv_prog_CC="$CC" # Let the user override the test.
  9016. else
  9017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9018. for as_dir in $PATH
  9019. do
  9020. IFS=$as_save_IFS
  9021. test -z "$as_dir" && as_dir=.
  9022. for ac_exec_ext in '' $ac_executable_extensions; do
  9023. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9024. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9025. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9026. break 2
  9027. fi
  9028. done
  9029. done
  9030. fi
  9031. fi
  9032. CC=$ac_cv_prog_CC
  9033. if test -n "$CC"; then
  9034. echo "$as_me:$LINENO: result: $CC" >&5
  9035. echo "${ECHO_T}$CC" >&6
  9036. else
  9037. echo "$as_me:$LINENO: result: no" >&5
  9038. echo "${ECHO_T}no" >&6
  9039. fi
  9040. fi
  9041. if test -z "$ac_cv_prog_CC"; then
  9042. ac_ct_CC=$CC
  9043. # Extract the first word of "gcc", so it can be a program name with args.
  9044. set dummy gcc; ac_word=$2
  9045. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9046. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9047. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  9048. echo $ECHO_N "(cached) $ECHO_C" >&6
  9049. else
  9050. if test -n "$ac_ct_CC"; then
  9051. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9052. else
  9053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9054. for as_dir in $PATH
  9055. do
  9056. IFS=$as_save_IFS
  9057. test -z "$as_dir" && as_dir=.
  9058. for ac_exec_ext in '' $ac_executable_extensions; do
  9059. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9060. ac_cv_prog_ac_ct_CC="gcc"
  9061. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9062. break 2
  9063. fi
  9064. done
  9065. done
  9066. fi
  9067. fi
  9068. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9069. if test -n "$ac_ct_CC"; then
  9070. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  9071. echo "${ECHO_T}$ac_ct_CC" >&6
  9072. else
  9073. echo "$as_me:$LINENO: result: no" >&5
  9074. echo "${ECHO_T}no" >&6
  9075. fi
  9076. CC=$ac_ct_CC
  9077. else
  9078. CC="$ac_cv_prog_CC"
  9079. fi
  9080. if test -z "$CC"; then
  9081. if test -n "$ac_tool_prefix"; then
  9082. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9083. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9084. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9085. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9086. if test "${ac_cv_prog_CC+set}" = set; then
  9087. echo $ECHO_N "(cached) $ECHO_C" >&6
  9088. else
  9089. if test -n "$CC"; then
  9090. ac_cv_prog_CC="$CC" # Let the user override the test.
  9091. else
  9092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9093. for as_dir in $PATH
  9094. do
  9095. IFS=$as_save_IFS
  9096. test -z "$as_dir" && as_dir=.
  9097. for ac_exec_ext in '' $ac_executable_extensions; do
  9098. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9099. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9100. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9101. break 2
  9102. fi
  9103. done
  9104. done
  9105. fi
  9106. fi
  9107. CC=$ac_cv_prog_CC
  9108. if test -n "$CC"; then
  9109. echo "$as_me:$LINENO: result: $CC" >&5
  9110. echo "${ECHO_T}$CC" >&6
  9111. else
  9112. echo "$as_me:$LINENO: result: no" >&5
  9113. echo "${ECHO_T}no" >&6
  9114. fi
  9115. fi
  9116. if test -z "$ac_cv_prog_CC"; then
  9117. ac_ct_CC=$CC
  9118. # Extract the first word of "cc", so it can be a program name with args.
  9119. set dummy cc; ac_word=$2
  9120. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9121. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9122. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  9123. echo $ECHO_N "(cached) $ECHO_C" >&6
  9124. else
  9125. if test -n "$ac_ct_CC"; then
  9126. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9127. else
  9128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9129. for as_dir in $PATH
  9130. do
  9131. IFS=$as_save_IFS
  9132. test -z "$as_dir" && as_dir=.
  9133. for ac_exec_ext in '' $ac_executable_extensions; do
  9134. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9135. ac_cv_prog_ac_ct_CC="cc"
  9136. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9137. break 2
  9138. fi
  9139. done
  9140. done
  9141. fi
  9142. fi
  9143. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9144. if test -n "$ac_ct_CC"; then
  9145. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  9146. echo "${ECHO_T}$ac_ct_CC" >&6
  9147. else
  9148. echo "$as_me:$LINENO: result: no" >&5
  9149. echo "${ECHO_T}no" >&6
  9150. fi
  9151. CC=$ac_ct_CC
  9152. else
  9153. CC="$ac_cv_prog_CC"
  9154. fi
  9155. fi
  9156. if test -z "$CC"; then
  9157. # Extract the first word of "cc", so it can be a program name with args.
  9158. set dummy cc; ac_word=$2
  9159. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9160. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9161. if test "${ac_cv_prog_CC+set}" = set; then
  9162. echo $ECHO_N "(cached) $ECHO_C" >&6
  9163. else
  9164. if test -n "$CC"; then
  9165. ac_cv_prog_CC="$CC" # Let the user override the test.
  9166. else
  9167. ac_prog_rejected=no
  9168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9169. for as_dir in $PATH
  9170. do
  9171. IFS=$as_save_IFS
  9172. test -z "$as_dir" && as_dir=.
  9173. for ac_exec_ext in '' $ac_executable_extensions; do
  9174. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9175. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9176. ac_prog_rejected=yes
  9177. continue
  9178. fi
  9179. ac_cv_prog_CC="cc"
  9180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9181. break 2
  9182. fi
  9183. done
  9184. done
  9185. if test $ac_prog_rejected = yes; then
  9186. # We found a bogon in the path, so make sure we never use it.
  9187. set dummy $ac_cv_prog_CC
  9188. shift
  9189. if test $# != 0; then
  9190. # We chose a different compiler from the bogus one.
  9191. # However, it has the same basename, so the bogon will be chosen
  9192. # first if we set CC to just the basename; use the full file name.
  9193. shift
  9194. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9195. fi
  9196. fi
  9197. fi
  9198. fi
  9199. CC=$ac_cv_prog_CC
  9200. if test -n "$CC"; then
  9201. echo "$as_me:$LINENO: result: $CC" >&5
  9202. echo "${ECHO_T}$CC" >&6
  9203. else
  9204. echo "$as_me:$LINENO: result: no" >&5
  9205. echo "${ECHO_T}no" >&6
  9206. fi
  9207. fi
  9208. if test -z "$CC"; then
  9209. if test -n "$ac_tool_prefix"; then
  9210. for ac_prog in cl
  9211. do
  9212. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9213. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9214. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9215. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9216. if test "${ac_cv_prog_CC+set}" = set; then
  9217. echo $ECHO_N "(cached) $ECHO_C" >&6
  9218. else
  9219. if test -n "$CC"; then
  9220. ac_cv_prog_CC="$CC" # Let the user override the test.
  9221. else
  9222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9223. for as_dir in $PATH
  9224. do
  9225. IFS=$as_save_IFS
  9226. test -z "$as_dir" && as_dir=.
  9227. for ac_exec_ext in '' $ac_executable_extensions; do
  9228. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9229. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  9230. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9231. break 2
  9232. fi
  9233. done
  9234. done
  9235. fi
  9236. fi
  9237. CC=$ac_cv_prog_CC
  9238. if test -n "$CC"; then
  9239. echo "$as_me:$LINENO: result: $CC" >&5
  9240. echo "${ECHO_T}$CC" >&6
  9241. else
  9242. echo "$as_me:$LINENO: result: no" >&5
  9243. echo "${ECHO_T}no" >&6
  9244. fi
  9245. test -n "$CC" && break
  9246. done
  9247. fi
  9248. if test -z "$CC"; then
  9249. ac_ct_CC=$CC
  9250. for ac_prog in cl
  9251. do
  9252. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9253. set dummy $ac_prog; ac_word=$2
  9254. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9255. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9256. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  9257. echo $ECHO_N "(cached) $ECHO_C" >&6
  9258. else
  9259. if test -n "$ac_ct_CC"; then
  9260. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9261. else
  9262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9263. for as_dir in $PATH
  9264. do
  9265. IFS=$as_save_IFS
  9266. test -z "$as_dir" && as_dir=.
  9267. for ac_exec_ext in '' $ac_executable_extensions; do
  9268. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9269. ac_cv_prog_ac_ct_CC="$ac_prog"
  9270. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9271. break 2
  9272. fi
  9273. done
  9274. done
  9275. fi
  9276. fi
  9277. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9278. if test -n "$ac_ct_CC"; then
  9279. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  9280. echo "${ECHO_T}$ac_ct_CC" >&6
  9281. else
  9282. echo "$as_me:$LINENO: result: no" >&5
  9283. echo "${ECHO_T}no" >&6
  9284. fi
  9285. test -n "$ac_ct_CC" && break
  9286. done
  9287. CC=$ac_ct_CC
  9288. fi
  9289. fi
  9290. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  9291. See \`config.log' for more details." >&5
  9292. echo "$as_me: error: no acceptable C compiler found in \$PATH
  9293. See \`config.log' for more details." >&2;}
  9294. { (exit 1); exit 1; }; }
  9295. # Provide some information about the compiler.
  9296. echo "$as_me:$LINENO:" \
  9297. "checking for C compiler version" >&5
  9298. ac_compiler=`set X $ac_compile; echo $2`
  9299. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  9300. (eval $ac_compiler --version </dev/null >&5) 2>&5
  9301. ac_status=$?
  9302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9303. (exit $ac_status); }
  9304. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  9305. (eval $ac_compiler -v </dev/null >&5) 2>&5
  9306. ac_status=$?
  9307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9308. (exit $ac_status); }
  9309. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  9310. (eval $ac_compiler -V </dev/null >&5) 2>&5
  9311. ac_status=$?
  9312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9313. (exit $ac_status); }
  9314. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  9315. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  9316. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  9317. echo $ECHO_N "(cached) $ECHO_C" >&6
  9318. else
  9319. cat >conftest.$ac_ext <<_ACEOF
  9320. /* confdefs.h. */
  9321. _ACEOF
  9322. cat confdefs.h >>conftest.$ac_ext
  9323. cat >>conftest.$ac_ext <<_ACEOF
  9324. /* end confdefs.h. */
  9325. int
  9326. main ()
  9327. {
  9328. #ifndef __GNUC__
  9329. choke me
  9330. #endif
  9331. ;
  9332. return 0;
  9333. }
  9334. _ACEOF
  9335. rm -f conftest.$ac_objext
  9336. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9337. (eval $ac_compile) 2>conftest.er1
  9338. ac_status=$?
  9339. grep -v '^ *+' conftest.er1 >conftest.err
  9340. rm -f conftest.er1
  9341. cat conftest.err >&5
  9342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9343. (exit $ac_status); } &&
  9344. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9346. (eval $ac_try) 2>&5
  9347. ac_status=$?
  9348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9349. (exit $ac_status); }; } &&
  9350. { ac_try='test -s conftest.$ac_objext'
  9351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9352. (eval $ac_try) 2>&5
  9353. ac_status=$?
  9354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9355. (exit $ac_status); }; }; then
  9356. ac_compiler_gnu=yes
  9357. else
  9358. echo "$as_me: failed program was:" >&5
  9359. sed 's/^/| /' conftest.$ac_ext >&5
  9360. ac_compiler_gnu=no
  9361. fi
  9362. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9363. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9364. fi
  9365. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  9366. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  9367. GCC=`test $ac_compiler_gnu = yes && echo yes`
  9368. ac_test_CFLAGS=${CFLAGS+set}
  9369. ac_save_CFLAGS=$CFLAGS
  9370. CFLAGS="-g"
  9371. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  9372. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  9373. if test "${ac_cv_prog_cc_g+set}" = set; then
  9374. echo $ECHO_N "(cached) $ECHO_C" >&6
  9375. else
  9376. cat >conftest.$ac_ext <<_ACEOF
  9377. /* confdefs.h. */
  9378. _ACEOF
  9379. cat confdefs.h >>conftest.$ac_ext
  9380. cat >>conftest.$ac_ext <<_ACEOF
  9381. /* end confdefs.h. */
  9382. int
  9383. main ()
  9384. {
  9385. ;
  9386. return 0;
  9387. }
  9388. _ACEOF
  9389. rm -f conftest.$ac_objext
  9390. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9391. (eval $ac_compile) 2>conftest.er1
  9392. ac_status=$?
  9393. grep -v '^ *+' conftest.er1 >conftest.err
  9394. rm -f conftest.er1
  9395. cat conftest.err >&5
  9396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9397. (exit $ac_status); } &&
  9398. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9400. (eval $ac_try) 2>&5
  9401. ac_status=$?
  9402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9403. (exit $ac_status); }; } &&
  9404. { ac_try='test -s conftest.$ac_objext'
  9405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9406. (eval $ac_try) 2>&5
  9407. ac_status=$?
  9408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9409. (exit $ac_status); }; }; then
  9410. ac_cv_prog_cc_g=yes
  9411. else
  9412. echo "$as_me: failed program was:" >&5
  9413. sed 's/^/| /' conftest.$ac_ext >&5
  9414. ac_cv_prog_cc_g=no
  9415. fi
  9416. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9417. fi
  9418. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  9419. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  9420. if test "$ac_test_CFLAGS" = set; then
  9421. CFLAGS=$ac_save_CFLAGS
  9422. elif test $ac_cv_prog_cc_g = yes; then
  9423. if test "$GCC" = yes; then
  9424. CFLAGS="-g -O2"
  9425. else
  9426. CFLAGS="-g"
  9427. fi
  9428. else
  9429. if test "$GCC" = yes; then
  9430. CFLAGS="-O2"
  9431. else
  9432. CFLAGS=
  9433. fi
  9434. fi
  9435. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  9436. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  9437. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  9438. echo $ECHO_N "(cached) $ECHO_C" >&6
  9439. else
  9440. ac_cv_prog_cc_stdc=no
  9441. ac_save_CC=$CC
  9442. cat >conftest.$ac_ext <<_ACEOF
  9443. /* confdefs.h. */
  9444. _ACEOF
  9445. cat confdefs.h >>conftest.$ac_ext
  9446. cat >>conftest.$ac_ext <<_ACEOF
  9447. /* end confdefs.h. */
  9448. #include <stdarg.h>
  9449. #include <stdio.h>
  9450. #include <sys/types.h>
  9451. #include <sys/stat.h>
  9452. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  9453. struct buf { int x; };
  9454. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  9455. static char *e (p, i)
  9456. char **p;
  9457. int i;
  9458. {
  9459. return p[i];
  9460. }
  9461. static char *f (char * (*g) (char **, int), char **p, ...)
  9462. {
  9463. char *s;
  9464. va_list v;
  9465. va_start (v,p);
  9466. s = g (p, va_arg (v,int));
  9467. va_end (v);
  9468. return s;
  9469. }
  9470. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9471. function prototypes and stuff, but not '\xHH' hex character constants.
  9472. These don't provoke an error unfortunately, instead are silently treated
  9473. as 'x'. The following induces an error, until -std1 is added to get
  9474. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9475. array size at least. It's necessary to write '\x00'==0 to get something
  9476. that's true only with -std1. */
  9477. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9478. int test (int i, double x);
  9479. struct s1 {int (*f) (int a);};
  9480. struct s2 {int (*f) (double a);};
  9481. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  9482. int argc;
  9483. char **argv;
  9484. int
  9485. main ()
  9486. {
  9487. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  9488. ;
  9489. return 0;
  9490. }
  9491. _ACEOF
  9492. # Don't try gcc -ansi; that turns off useful extensions and
  9493. # breaks some systems' header files.
  9494. # AIX -qlanglvl=ansi
  9495. # Ultrix and OSF/1 -std1
  9496. # HP-UX 10.20 and later -Ae
  9497. # HP-UX older versions -Aa -D_HPUX_SOURCE
  9498. # SVR4 -Xc -D__EXTENSIONS__
  9499. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  9500. do
  9501. CC="$ac_save_CC $ac_arg"
  9502. rm -f conftest.$ac_objext
  9503. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9504. (eval $ac_compile) 2>conftest.er1
  9505. ac_status=$?
  9506. grep -v '^ *+' conftest.er1 >conftest.err
  9507. rm -f conftest.er1
  9508. cat conftest.err >&5
  9509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9510. (exit $ac_status); } &&
  9511. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9513. (eval $ac_try) 2>&5
  9514. ac_status=$?
  9515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9516. (exit $ac_status); }; } &&
  9517. { ac_try='test -s conftest.$ac_objext'
  9518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9519. (eval $ac_try) 2>&5
  9520. ac_status=$?
  9521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9522. (exit $ac_status); }; }; then
  9523. ac_cv_prog_cc_stdc=$ac_arg
  9524. break
  9525. else
  9526. echo "$as_me: failed program was:" >&5
  9527. sed 's/^/| /' conftest.$ac_ext >&5
  9528. fi
  9529. rm -f conftest.err conftest.$ac_objext
  9530. done
  9531. rm -f conftest.$ac_ext conftest.$ac_objext
  9532. CC=$ac_save_CC
  9533. fi
  9534. case "x$ac_cv_prog_cc_stdc" in
  9535. x|xno)
  9536. echo "$as_me:$LINENO: result: none needed" >&5
  9537. echo "${ECHO_T}none needed" >&6 ;;
  9538. *)
  9539. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  9540. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  9541. CC="$CC $ac_cv_prog_cc_stdc" ;;
  9542. esac
  9543. # Some people use a C++ compiler to compile C. Since we use `exit',
  9544. # in C++ we need to declare it. In case someone uses the same compiler
  9545. # for both compiling C and C++ we need to have the C++ compiler decide
  9546. # the declaration of exit, since it's the most demanding environment.
  9547. cat >conftest.$ac_ext <<_ACEOF
  9548. #ifndef __cplusplus
  9549. choke me
  9550. #endif
  9551. _ACEOF
  9552. rm -f conftest.$ac_objext
  9553. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9554. (eval $ac_compile) 2>conftest.er1
  9555. ac_status=$?
  9556. grep -v '^ *+' conftest.er1 >conftest.err
  9557. rm -f conftest.er1
  9558. cat conftest.err >&5
  9559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9560. (exit $ac_status); } &&
  9561. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9563. (eval $ac_try) 2>&5
  9564. ac_status=$?
  9565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9566. (exit $ac_status); }; } &&
  9567. { ac_try='test -s conftest.$ac_objext'
  9568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9569. (eval $ac_try) 2>&5
  9570. ac_status=$?
  9571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9572. (exit $ac_status); }; }; then
  9573. for ac_declaration in \
  9574. '' \
  9575. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  9576. 'extern "C" void std::exit (int); using std::exit;' \
  9577. 'extern "C" void exit (int) throw ();' \
  9578. 'extern "C" void exit (int);' \
  9579. 'void exit (int);'
  9580. do
  9581. cat >conftest.$ac_ext <<_ACEOF
  9582. /* confdefs.h. */
  9583. _ACEOF
  9584. cat confdefs.h >>conftest.$ac_ext
  9585. cat >>conftest.$ac_ext <<_ACEOF
  9586. /* end confdefs.h. */
  9587. $ac_declaration
  9588. #include <stdlib.h>
  9589. int
  9590. main ()
  9591. {
  9592. exit (42);
  9593. ;
  9594. return 0;
  9595. }
  9596. _ACEOF
  9597. rm -f conftest.$ac_objext
  9598. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9599. (eval $ac_compile) 2>conftest.er1
  9600. ac_status=$?
  9601. grep -v '^ *+' conftest.er1 >conftest.err
  9602. rm -f conftest.er1
  9603. cat conftest.err >&5
  9604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9605. (exit $ac_status); } &&
  9606. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9608. (eval $ac_try) 2>&5
  9609. ac_status=$?
  9610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9611. (exit $ac_status); }; } &&
  9612. { ac_try='test -s conftest.$ac_objext'
  9613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9614. (eval $ac_try) 2>&5
  9615. ac_status=$?
  9616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9617. (exit $ac_status); }; }; then
  9618. :
  9619. else
  9620. echo "$as_me: failed program was:" >&5
  9621. sed 's/^/| /' conftest.$ac_ext >&5
  9622. continue
  9623. fi
  9624. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9625. cat >conftest.$ac_ext <<_ACEOF
  9626. /* confdefs.h. */
  9627. _ACEOF
  9628. cat confdefs.h >>conftest.$ac_ext
  9629. cat >>conftest.$ac_ext <<_ACEOF
  9630. /* end confdefs.h. */
  9631. $ac_declaration
  9632. int
  9633. main ()
  9634. {
  9635. exit (42);
  9636. ;
  9637. return 0;
  9638. }
  9639. _ACEOF
  9640. rm -f conftest.$ac_objext
  9641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9642. (eval $ac_compile) 2>conftest.er1
  9643. ac_status=$?
  9644. grep -v '^ *+' conftest.er1 >conftest.err
  9645. rm -f conftest.er1
  9646. cat conftest.err >&5
  9647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9648. (exit $ac_status); } &&
  9649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9651. (eval $ac_try) 2>&5
  9652. ac_status=$?
  9653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9654. (exit $ac_status); }; } &&
  9655. { ac_try='test -s conftest.$ac_objext'
  9656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9657. (eval $ac_try) 2>&5
  9658. ac_status=$?
  9659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9660. (exit $ac_status); }; }; then
  9661. break
  9662. else
  9663. echo "$as_me: failed program was:" >&5
  9664. sed 's/^/| /' conftest.$ac_ext >&5
  9665. fi
  9666. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9667. done
  9668. rm -f conftest*
  9669. if test -n "$ac_declaration"; then
  9670. echo '#ifdef __cplusplus' >>confdefs.h
  9671. echo $ac_declaration >>confdefs.h
  9672. echo '#endif' >>confdefs.h
  9673. fi
  9674. else
  9675. echo "$as_me: failed program was:" >&5
  9676. sed 's/^/| /' conftest.$ac_ext >&5
  9677. fi
  9678. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9679. ac_ext=c
  9680. ac_cpp='$CPP $CPPFLAGS'
  9681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9684. depcc="$CC" am_compiler_list=
  9685. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  9686. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  9687. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  9688. echo $ECHO_N "(cached) $ECHO_C" >&6
  9689. else
  9690. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  9691. # We make a subdir and do the tests there. Otherwise we can end up
  9692. # making bogus files that we don't know about and never remove. For
  9693. # instance it was reported that on HP-UX the gcc test will end up
  9694. # making a dummy file named `D' -- because `-MD' means `put the output
  9695. # in D'.
  9696. mkdir conftest.dir
  9697. # Copy depcomp to subdir because otherwise we won't find it if we're
  9698. # using a relative directory.
  9699. cp "$am_depcomp" conftest.dir
  9700. cd conftest.dir
  9701. # We will build objects and dependencies in a subdirectory because
  9702. # it helps to detect inapplicable dependency modes. For instance
  9703. # both Tru64's cc and ICC support -MD to output dependencies as a
  9704. # side effect of compilation, but ICC will put the dependencies in
  9705. # the current directory while Tru64 will put them in the object
  9706. # directory.
  9707. mkdir sub
  9708. am_cv_CC_dependencies_compiler_type=none
  9709. if test "$am_compiler_list" = ""; then
  9710. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  9711. fi
  9712. for depmode in $am_compiler_list; do
  9713. # Setup a source with many dependencies, because some compilers
  9714. # like to wrap large dependency lists on column 80 (with \), and
  9715. # we should not choose a depcomp mode which is confused by this.
  9716. #
  9717. # We need to recreate these files for each test, as the compiler may
  9718. # overwrite some of them when testing with obscure command lines.
  9719. # This happens at least with the AIX C compiler.
  9720. : > sub/conftest.c
  9721. for i in 1 2 3 4 5 6; do
  9722. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  9723. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  9724. # Solaris 8's {/usr,}/bin/sh.
  9725. touch sub/conftst$i.h
  9726. done
  9727. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  9728. case $depmode in
  9729. nosideeffect)
  9730. # after this tag, mechanisms are not by side-effect, so they'll
  9731. # only be used when explicitly requested
  9732. if test "x$enable_dependency_tracking" = xyes; then
  9733. continue
  9734. else
  9735. break
  9736. fi
  9737. ;;
  9738. none) break ;;
  9739. esac
  9740. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  9741. # mode. It turns out that the SunPro C++ compiler does not properly
  9742. # handle `-M -o', and we need to detect this.
  9743. if depmode=$depmode \
  9744. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  9745. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  9746. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  9747. >/dev/null 2>conftest.err &&
  9748. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  9749. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  9750. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  9751. # icc doesn't choke on unknown options, it will just issue warnings
  9752. # or remarks (even with -Werror). So we grep stderr for any message
  9753. # that says an option was ignored or not supported.
  9754. # When given -MP, icc 7.0 and 7.1 complain thusly:
  9755. # icc: Command line warning: ignoring option '-M'; no argument required
  9756. # The diagnosis changed in icc 8.0:
  9757. # icc: Command line remark: option '-MP' not supported
  9758. if (grep 'ignoring option' conftest.err ||
  9759. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  9760. am_cv_CC_dependencies_compiler_type=$depmode
  9761. break
  9762. fi
  9763. fi
  9764. done
  9765. cd ..
  9766. rm -rf conftest.dir
  9767. else
  9768. am_cv_CC_dependencies_compiler_type=none
  9769. fi
  9770. fi
  9771. echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  9772. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  9773. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  9774. if
  9775. test "x$enable_dependency_tracking" != xno \
  9776. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  9777. am__fastdepCC_TRUE=
  9778. am__fastdepCC_FALSE='#'
  9779. else
  9780. am__fastdepCC_TRUE='#'
  9781. am__fastdepCC_FALSE=
  9782. fi
  9783. ac_ext=cc
  9784. ac_cpp='$CXXCPP $CPPFLAGS'
  9785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9788. if test -n "$ac_tool_prefix"; then
  9789. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  9790. do
  9791. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9792. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9793. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9794. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9795. if test "${ac_cv_prog_CXX+set}" = set; then
  9796. echo $ECHO_N "(cached) $ECHO_C" >&6
  9797. else
  9798. if test -n "$CXX"; then
  9799. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9800. else
  9801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9802. for as_dir in $PATH
  9803. do
  9804. IFS=$as_save_IFS
  9805. test -z "$as_dir" && as_dir=.
  9806. for ac_exec_ext in '' $ac_executable_extensions; do
  9807. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9808. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  9809. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9810. break 2
  9811. fi
  9812. done
  9813. done
  9814. fi
  9815. fi
  9816. CXX=$ac_cv_prog_CXX
  9817. if test -n "$CXX"; then
  9818. echo "$as_me:$LINENO: result: $CXX" >&5
  9819. echo "${ECHO_T}$CXX" >&6
  9820. else
  9821. echo "$as_me:$LINENO: result: no" >&5
  9822. echo "${ECHO_T}no" >&6
  9823. fi
  9824. test -n "$CXX" && break
  9825. done
  9826. fi
  9827. if test -z "$CXX"; then
  9828. ac_ct_CXX=$CXX
  9829. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  9830. do
  9831. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9832. set dummy $ac_prog; ac_word=$2
  9833. echo "$as_me:$LINENO: checking for $ac_word" >&5
  9834. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  9835. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  9836. echo $ECHO_N "(cached) $ECHO_C" >&6
  9837. else
  9838. if test -n "$ac_ct_CXX"; then
  9839. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  9840. else
  9841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9842. for as_dir in $PATH
  9843. do
  9844. IFS=$as_save_IFS
  9845. test -z "$as_dir" && as_dir=.
  9846. for ac_exec_ext in '' $ac_executable_extensions; do
  9847. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9848. ac_cv_prog_ac_ct_CXX="$ac_prog"
  9849. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9850. break 2
  9851. fi
  9852. done
  9853. done
  9854. fi
  9855. fi
  9856. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  9857. if test -n "$ac_ct_CXX"; then
  9858. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  9859. echo "${ECHO_T}$ac_ct_CXX" >&6
  9860. else
  9861. echo "$as_me:$LINENO: result: no" >&5
  9862. echo "${ECHO_T}no" >&6
  9863. fi
  9864. test -n "$ac_ct_CXX" && break
  9865. done
  9866. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  9867. CXX=$ac_ct_CXX
  9868. fi
  9869. # Provide some information about the compiler.
  9870. echo "$as_me:$LINENO:" \
  9871. "checking for C++ compiler version" >&5
  9872. ac_compiler=`set X $ac_compile; echo $2`
  9873. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  9874. (eval $ac_compiler --version </dev/null >&5) 2>&5
  9875. ac_status=$?
  9876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9877. (exit $ac_status); }
  9878. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  9879. (eval $ac_compiler -v </dev/null >&5) 2>&5
  9880. ac_status=$?
  9881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9882. (exit $ac_status); }
  9883. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  9884. (eval $ac_compiler -V </dev/null >&5) 2>&5
  9885. ac_status=$?
  9886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9887. (exit $ac_status); }
  9888. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  9889. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  9890. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  9891. echo $ECHO_N "(cached) $ECHO_C" >&6
  9892. else
  9893. cat >conftest.$ac_ext <<_ACEOF
  9894. /* confdefs.h. */
  9895. _ACEOF
  9896. cat confdefs.h >>conftest.$ac_ext
  9897. cat >>conftest.$ac_ext <<_ACEOF
  9898. /* end confdefs.h. */
  9899. int
  9900. main ()
  9901. {
  9902. #ifndef __GNUC__
  9903. choke me
  9904. #endif
  9905. ;
  9906. return 0;
  9907. }
  9908. _ACEOF
  9909. rm -f conftest.$ac_objext
  9910. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9911. (eval $ac_compile) 2>conftest.er1
  9912. ac_status=$?
  9913. grep -v '^ *+' conftest.er1 >conftest.err
  9914. rm -f conftest.er1
  9915. cat conftest.err >&5
  9916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9917. (exit $ac_status); } &&
  9918. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9920. (eval $ac_try) 2>&5
  9921. ac_status=$?
  9922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9923. (exit $ac_status); }; } &&
  9924. { ac_try='test -s conftest.$ac_objext'
  9925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9926. (eval $ac_try) 2>&5
  9927. ac_status=$?
  9928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9929. (exit $ac_status); }; }; then
  9930. ac_compiler_gnu=yes
  9931. else
  9932. echo "$as_me: failed program was:" >&5
  9933. sed 's/^/| /' conftest.$ac_ext >&5
  9934. ac_compiler_gnu=no
  9935. fi
  9936. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9937. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  9938. fi
  9939. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  9940. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  9941. GXX=`test $ac_compiler_gnu = yes && echo yes`
  9942. ac_test_CXXFLAGS=${CXXFLAGS+set}
  9943. ac_save_CXXFLAGS=$CXXFLAGS
  9944. CXXFLAGS="-g"
  9945. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  9946. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  9947. if test "${ac_cv_prog_cxx_g+set}" = set; then
  9948. echo $ECHO_N "(cached) $ECHO_C" >&6
  9949. else
  9950. cat >conftest.$ac_ext <<_ACEOF
  9951. /* confdefs.h. */
  9952. _ACEOF
  9953. cat confdefs.h >>conftest.$ac_ext
  9954. cat >>conftest.$ac_ext <<_ACEOF
  9955. /* end confdefs.h. */
  9956. int
  9957. main ()
  9958. {
  9959. ;
  9960. return 0;
  9961. }
  9962. _ACEOF
  9963. rm -f conftest.$ac_objext
  9964. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9965. (eval $ac_compile) 2>conftest.er1
  9966. ac_status=$?
  9967. grep -v '^ *+' conftest.er1 >conftest.err
  9968. rm -f conftest.er1
  9969. cat conftest.err >&5
  9970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9971. (exit $ac_status); } &&
  9972. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9974. (eval $ac_try) 2>&5
  9975. ac_status=$?
  9976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9977. (exit $ac_status); }; } &&
  9978. { ac_try='test -s conftest.$ac_objext'
  9979. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9980. (eval $ac_try) 2>&5
  9981. ac_status=$?
  9982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9983. (exit $ac_status); }; }; then
  9984. ac_cv_prog_cxx_g=yes
  9985. else
  9986. echo "$as_me: failed program was:" >&5
  9987. sed 's/^/| /' conftest.$ac_ext >&5
  9988. ac_cv_prog_cxx_g=no
  9989. fi
  9990. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9991. fi
  9992. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  9993. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  9994. if test "$ac_test_CXXFLAGS" = set; then
  9995. CXXFLAGS=$ac_save_CXXFLAGS
  9996. elif test $ac_cv_prog_cxx_g = yes; then
  9997. if test "$GXX" = yes; then
  9998. CXXFLAGS="-g -O2"
  9999. else
  10000. CXXFLAGS="-g"
  10001. fi
  10002. else
  10003. if test "$GXX" = yes; then
  10004. CXXFLAGS="-O2"
  10005. else
  10006. CXXFLAGS=
  10007. fi
  10008. fi
  10009. for ac_declaration in \
  10010. '' \
  10011. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  10012. 'extern "C" void std::exit (int); using std::exit;' \
  10013. 'extern "C" void exit (int) throw ();' \
  10014. 'extern "C" void exit (int);' \
  10015. 'void exit (int);'
  10016. do
  10017. cat >conftest.$ac_ext <<_ACEOF
  10018. /* confdefs.h. */
  10019. _ACEOF
  10020. cat confdefs.h >>conftest.$ac_ext
  10021. cat >>conftest.$ac_ext <<_ACEOF
  10022. /* end confdefs.h. */
  10023. $ac_declaration
  10024. #include <stdlib.h>
  10025. int
  10026. main ()
  10027. {
  10028. exit (42);
  10029. ;
  10030. return 0;
  10031. }
  10032. _ACEOF
  10033. rm -f conftest.$ac_objext
  10034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10035. (eval $ac_compile) 2>conftest.er1
  10036. ac_status=$?
  10037. grep -v '^ *+' conftest.er1 >conftest.err
  10038. rm -f conftest.er1
  10039. cat conftest.err >&5
  10040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10041. (exit $ac_status); } &&
  10042. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10044. (eval $ac_try) 2>&5
  10045. ac_status=$?
  10046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10047. (exit $ac_status); }; } &&
  10048. { ac_try='test -s conftest.$ac_objext'
  10049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10050. (eval $ac_try) 2>&5
  10051. ac_status=$?
  10052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10053. (exit $ac_status); }; }; then
  10054. :
  10055. else
  10056. echo "$as_me: failed program was:" >&5
  10057. sed 's/^/| /' conftest.$ac_ext >&5
  10058. continue
  10059. fi
  10060. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10061. cat >conftest.$ac_ext <<_ACEOF
  10062. /* confdefs.h. */
  10063. _ACEOF
  10064. cat confdefs.h >>conftest.$ac_ext
  10065. cat >>conftest.$ac_ext <<_ACEOF
  10066. /* end confdefs.h. */
  10067. $ac_declaration
  10068. int
  10069. main ()
  10070. {
  10071. exit (42);
  10072. ;
  10073. return 0;
  10074. }
  10075. _ACEOF
  10076. rm -f conftest.$ac_objext
  10077. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10078. (eval $ac_compile) 2>conftest.er1
  10079. ac_status=$?
  10080. grep -v '^ *+' conftest.er1 >conftest.err
  10081. rm -f conftest.er1
  10082. cat conftest.err >&5
  10083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10084. (exit $ac_status); } &&
  10085. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10087. (eval $ac_try) 2>&5
  10088. ac_status=$?
  10089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10090. (exit $ac_status); }; } &&
  10091. { ac_try='test -s conftest.$ac_objext'
  10092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10093. (eval $ac_try) 2>&5
  10094. ac_status=$?
  10095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10096. (exit $ac_status); }; }; then
  10097. break
  10098. else
  10099. echo "$as_me: failed program was:" >&5
  10100. sed 's/^/| /' conftest.$ac_ext >&5
  10101. fi
  10102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10103. done
  10104. rm -f conftest*
  10105. if test -n "$ac_declaration"; then
  10106. echo '#ifdef __cplusplus' >>confdefs.h
  10107. echo $ac_declaration >>confdefs.h
  10108. echo '#endif' >>confdefs.h
  10109. fi
  10110. ac_ext=c
  10111. ac_cpp='$CPP $CPPFLAGS'
  10112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10115. depcc="$CXX" am_compiler_list=
  10116. echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  10117. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  10118. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  10119. echo $ECHO_N "(cached) $ECHO_C" >&6
  10120. else
  10121. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10122. # We make a subdir and do the tests there. Otherwise we can end up
  10123. # making bogus files that we don't know about and never remove. For
  10124. # instance it was reported that on HP-UX the gcc test will end up
  10125. # making a dummy file named `D' -- because `-MD' means `put the output
  10126. # in D'.
  10127. mkdir conftest.dir
  10128. # Copy depcomp to subdir because otherwise we won't find it if we're
  10129. # using a relative directory.
  10130. cp "$am_depcomp" conftest.dir
  10131. cd conftest.dir
  10132. # We will build objects and dependencies in a subdirectory because
  10133. # it helps to detect inapplicable dependency modes. For instance
  10134. # both Tru64's cc and ICC support -MD to output dependencies as a
  10135. # side effect of compilation, but ICC will put the dependencies in
  10136. # the current directory while Tru64 will put them in the object
  10137. # directory.
  10138. mkdir sub
  10139. am_cv_CXX_dependencies_compiler_type=none
  10140. if test "$am_compiler_list" = ""; then
  10141. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10142. fi
  10143. for depmode in $am_compiler_list; do
  10144. # Setup a source with many dependencies, because some compilers
  10145. # like to wrap large dependency lists on column 80 (with \), and
  10146. # we should not choose a depcomp mode which is confused by this.
  10147. #
  10148. # We need to recreate these files for each test, as the compiler may
  10149. # overwrite some of them when testing with obscure command lines.
  10150. # This happens at least with the AIX C compiler.
  10151. : > sub/conftest.c
  10152. for i in 1 2 3 4 5 6; do
  10153. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10154. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10155. # Solaris 8's {/usr,}/bin/sh.
  10156. touch sub/conftst$i.h
  10157. done
  10158. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10159. case $depmode in
  10160. nosideeffect)
  10161. # after this tag, mechanisms are not by side-effect, so they'll
  10162. # only be used when explicitly requested
  10163. if test "x$enable_dependency_tracking" = xyes; then
  10164. continue
  10165. else
  10166. break
  10167. fi
  10168. ;;
  10169. none) break ;;
  10170. esac
  10171. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10172. # mode. It turns out that the SunPro C++ compiler does not properly
  10173. # handle `-M -o', and we need to detect this.
  10174. if depmode=$depmode \
  10175. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  10176. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10177. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  10178. >/dev/null 2>conftest.err &&
  10179. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10180. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  10181. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10182. # icc doesn't choke on unknown options, it will just issue warnings
  10183. # or remarks (even with -Werror). So we grep stderr for any message
  10184. # that says an option was ignored or not supported.
  10185. # When given -MP, icc 7.0 and 7.1 complain thusly:
  10186. # icc: Command line warning: ignoring option '-M'; no argument required
  10187. # The diagnosis changed in icc 8.0:
  10188. # icc: Command line remark: option '-MP' not supported
  10189. if (grep 'ignoring option' conftest.err ||
  10190. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10191. am_cv_CXX_dependencies_compiler_type=$depmode
  10192. break
  10193. fi
  10194. fi
  10195. done
  10196. cd ..
  10197. rm -rf conftest.dir
  10198. else
  10199. am_cv_CXX_dependencies_compiler_type=none
  10200. fi
  10201. fi
  10202. echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  10203. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  10204. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  10205. if
  10206. test "x$enable_dependency_tracking" != xno \
  10207. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  10208. am__fastdepCXX_TRUE=
  10209. am__fastdepCXX_FALSE='#'
  10210. else
  10211. am__fastdepCXX_TRUE='#'
  10212. am__fastdepCXX_FALSE=
  10213. fi
  10214. if test -n "$ac_tool_prefix"; then
  10215. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10216. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10217. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10218. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10219. if test "${ac_cv_prog_RANLIB+set}" = set; then
  10220. echo $ECHO_N "(cached) $ECHO_C" >&6
  10221. else
  10222. if test -n "$RANLIB"; then
  10223. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10224. else
  10225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10226. for as_dir in $PATH
  10227. do
  10228. IFS=$as_save_IFS
  10229. test -z "$as_dir" && as_dir=.
  10230. for ac_exec_ext in '' $ac_executable_extensions; do
  10231. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10232. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10233. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10234. break 2
  10235. fi
  10236. done
  10237. done
  10238. fi
  10239. fi
  10240. RANLIB=$ac_cv_prog_RANLIB
  10241. if test -n "$RANLIB"; then
  10242. echo "$as_me:$LINENO: result: $RANLIB" >&5
  10243. echo "${ECHO_T}$RANLIB" >&6
  10244. else
  10245. echo "$as_me:$LINENO: result: no" >&5
  10246. echo "${ECHO_T}no" >&6
  10247. fi
  10248. fi
  10249. if test -z "$ac_cv_prog_RANLIB"; then
  10250. ac_ct_RANLIB=$RANLIB
  10251. # Extract the first word of "ranlib", so it can be a program name with args.
  10252. set dummy ranlib; ac_word=$2
  10253. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10254. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10255. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  10256. echo $ECHO_N "(cached) $ECHO_C" >&6
  10257. else
  10258. if test -n "$ac_ct_RANLIB"; then
  10259. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10260. else
  10261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10262. for as_dir in $PATH
  10263. do
  10264. IFS=$as_save_IFS
  10265. test -z "$as_dir" && as_dir=.
  10266. for ac_exec_ext in '' $ac_executable_extensions; do
  10267. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10268. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10269. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10270. break 2
  10271. fi
  10272. done
  10273. done
  10274. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  10275. fi
  10276. fi
  10277. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10278. if test -n "$ac_ct_RANLIB"; then
  10279. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  10280. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  10281. else
  10282. echo "$as_me:$LINENO: result: no" >&5
  10283. echo "${ECHO_T}no" >&6
  10284. fi
  10285. RANLIB=$ac_ct_RANLIB
  10286. else
  10287. RANLIB="$ac_cv_prog_RANLIB"
  10288. fi
  10289. # Extract the first word of "perl", so it can be a program name with args.
  10290. set dummy perl; ac_word=$2
  10291. echo "$as_me:$LINENO: checking for $ac_word" >&5
  10292. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10293. if test "${ac_cv_path_PERL+set}" = set; then
  10294. echo $ECHO_N "(cached) $ECHO_C" >&6
  10295. else
  10296. case $PERL in
  10297. [\\/]* | ?:[\\/]*)
  10298. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  10299. ;;
  10300. *)
  10301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10302. for as_dir in $PATH
  10303. do
  10304. IFS=$as_save_IFS
  10305. test -z "$as_dir" && as_dir=.
  10306. for ac_exec_ext in '' $ac_executable_extensions; do
  10307. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10308. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  10309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10310. break 2
  10311. fi
  10312. done
  10313. done
  10314. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
  10315. ;;
  10316. esac
  10317. fi
  10318. PERL=$ac_cv_path_PERL
  10319. if test -n "$PERL"; then
  10320. echo "$as_me:$LINENO: result: $PERL" >&5
  10321. echo "${ECHO_T}$PERL" >&6
  10322. else
  10323. echo "$as_me:$LINENO: result: no" >&5
  10324. echo "${ECHO_T}no" >&6
  10325. fi
  10326. # Checks for operating system services and capabilities.
  10327. # Check whether --enable-largefile or --disable-largefile was given.
  10328. if test "${enable_largefile+set}" = set; then
  10329. enableval="$enable_largefile"
  10330. fi;
  10331. if test "$enable_largefile" != no; then
  10332. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  10333. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  10334. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  10335. echo $ECHO_N "(cached) $ECHO_C" >&6
  10336. else
  10337. ac_cv_sys_largefile_CC=no
  10338. if test "$GCC" != yes; then
  10339. ac_save_CC=$CC
  10340. while :; do
  10341. # IRIX 6.2 and later do not support large files by default,
  10342. # so use the C compiler's -n32 option if that helps.
  10343. cat >conftest.$ac_ext <<_ACEOF
  10344. /* confdefs.h. */
  10345. _ACEOF
  10346. cat confdefs.h >>conftest.$ac_ext
  10347. cat >>conftest.$ac_ext <<_ACEOF
  10348. /* end confdefs.h. */
  10349. #include <sys/types.h>
  10350. /* Check that off_t can represent 2**63 - 1 correctly.
  10351. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10352. since some C++ compilers masquerading as C compilers
  10353. incorrectly reject 9223372036854775807. */
  10354. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10355. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10356. && LARGE_OFF_T % 2147483647 == 1)
  10357. ? 1 : -1];
  10358. int
  10359. main ()
  10360. {
  10361. ;
  10362. return 0;
  10363. }
  10364. _ACEOF
  10365. rm -f conftest.$ac_objext
  10366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10367. (eval $ac_compile) 2>conftest.er1
  10368. ac_status=$?
  10369. grep -v '^ *+' conftest.er1 >conftest.err
  10370. rm -f conftest.er1
  10371. cat conftest.err >&5
  10372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10373. (exit $ac_status); } &&
  10374. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10376. (eval $ac_try) 2>&5
  10377. ac_status=$?
  10378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10379. (exit $ac_status); }; } &&
  10380. { ac_try='test -s conftest.$ac_objext'
  10381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10382. (eval $ac_try) 2>&5
  10383. ac_status=$?
  10384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10385. (exit $ac_status); }; }; then
  10386. break
  10387. else
  10388. echo "$as_me: failed program was:" >&5
  10389. sed 's/^/| /' conftest.$ac_ext >&5
  10390. fi
  10391. rm -f conftest.err conftest.$ac_objext
  10392. CC="$CC -n32"
  10393. rm -f conftest.$ac_objext
  10394. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10395. (eval $ac_compile) 2>conftest.er1
  10396. ac_status=$?
  10397. grep -v '^ *+' conftest.er1 >conftest.err
  10398. rm -f conftest.er1
  10399. cat conftest.err >&5
  10400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10401. (exit $ac_status); } &&
  10402. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10403. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10404. (eval $ac_try) 2>&5
  10405. ac_status=$?
  10406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10407. (exit $ac_status); }; } &&
  10408. { ac_try='test -s conftest.$ac_objext'
  10409. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10410. (eval $ac_try) 2>&5
  10411. ac_status=$?
  10412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10413. (exit $ac_status); }; }; then
  10414. ac_cv_sys_largefile_CC=' -n32'; break
  10415. else
  10416. echo "$as_me: failed program was:" >&5
  10417. sed 's/^/| /' conftest.$ac_ext >&5
  10418. fi
  10419. rm -f conftest.err conftest.$ac_objext
  10420. break
  10421. done
  10422. CC=$ac_save_CC
  10423. rm -f conftest.$ac_ext
  10424. fi
  10425. fi
  10426. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  10427. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  10428. if test "$ac_cv_sys_largefile_CC" != no; then
  10429. CC=$CC$ac_cv_sys_largefile_CC
  10430. fi
  10431. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10432. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  10433. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  10434. echo $ECHO_N "(cached) $ECHO_C" >&6
  10435. else
  10436. while :; do
  10437. ac_cv_sys_file_offset_bits=no
  10438. cat >conftest.$ac_ext <<_ACEOF
  10439. /* confdefs.h. */
  10440. _ACEOF
  10441. cat confdefs.h >>conftest.$ac_ext
  10442. cat >>conftest.$ac_ext <<_ACEOF
  10443. /* end confdefs.h. */
  10444. #include <sys/types.h>
  10445. /* Check that off_t can represent 2**63 - 1 correctly.
  10446. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10447. since some C++ compilers masquerading as C compilers
  10448. incorrectly reject 9223372036854775807. */
  10449. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10450. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10451. && LARGE_OFF_T % 2147483647 == 1)
  10452. ? 1 : -1];
  10453. int
  10454. main ()
  10455. {
  10456. ;
  10457. return 0;
  10458. }
  10459. _ACEOF
  10460. rm -f conftest.$ac_objext
  10461. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10462. (eval $ac_compile) 2>conftest.er1
  10463. ac_status=$?
  10464. grep -v '^ *+' conftest.er1 >conftest.err
  10465. rm -f conftest.er1
  10466. cat conftest.err >&5
  10467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10468. (exit $ac_status); } &&
  10469. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10471. (eval $ac_try) 2>&5
  10472. ac_status=$?
  10473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10474. (exit $ac_status); }; } &&
  10475. { ac_try='test -s conftest.$ac_objext'
  10476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10477. (eval $ac_try) 2>&5
  10478. ac_status=$?
  10479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10480. (exit $ac_status); }; }; then
  10481. break
  10482. else
  10483. echo "$as_me: failed program was:" >&5
  10484. sed 's/^/| /' conftest.$ac_ext >&5
  10485. fi
  10486. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10487. cat >conftest.$ac_ext <<_ACEOF
  10488. /* confdefs.h. */
  10489. _ACEOF
  10490. cat confdefs.h >>conftest.$ac_ext
  10491. cat >>conftest.$ac_ext <<_ACEOF
  10492. /* end confdefs.h. */
  10493. #define _FILE_OFFSET_BITS 64
  10494. #include <sys/types.h>
  10495. /* Check that off_t can represent 2**63 - 1 correctly.
  10496. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10497. since some C++ compilers masquerading as C compilers
  10498. incorrectly reject 9223372036854775807. */
  10499. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10500. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10501. && LARGE_OFF_T % 2147483647 == 1)
  10502. ? 1 : -1];
  10503. int
  10504. main ()
  10505. {
  10506. ;
  10507. return 0;
  10508. }
  10509. _ACEOF
  10510. rm -f conftest.$ac_objext
  10511. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10512. (eval $ac_compile) 2>conftest.er1
  10513. ac_status=$?
  10514. grep -v '^ *+' conftest.er1 >conftest.err
  10515. rm -f conftest.er1
  10516. cat conftest.err >&5
  10517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10518. (exit $ac_status); } &&
  10519. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10521. (eval $ac_try) 2>&5
  10522. ac_status=$?
  10523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10524. (exit $ac_status); }; } &&
  10525. { ac_try='test -s conftest.$ac_objext'
  10526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10527. (eval $ac_try) 2>&5
  10528. ac_status=$?
  10529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10530. (exit $ac_status); }; }; then
  10531. ac_cv_sys_file_offset_bits=64; break
  10532. else
  10533. echo "$as_me: failed program was:" >&5
  10534. sed 's/^/| /' conftest.$ac_ext >&5
  10535. fi
  10536. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10537. break
  10538. done
  10539. fi
  10540. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  10541. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  10542. if test "$ac_cv_sys_file_offset_bits" != no; then
  10543. cat >>confdefs.h <<_ACEOF
  10544. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10545. _ACEOF
  10546. fi
  10547. rm -f conftest*
  10548. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  10549. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  10550. if test "${ac_cv_sys_large_files+set}" = set; then
  10551. echo $ECHO_N "(cached) $ECHO_C" >&6
  10552. else
  10553. while :; do
  10554. ac_cv_sys_large_files=no
  10555. cat >conftest.$ac_ext <<_ACEOF
  10556. /* confdefs.h. */
  10557. _ACEOF
  10558. cat confdefs.h >>conftest.$ac_ext
  10559. cat >>conftest.$ac_ext <<_ACEOF
  10560. /* end confdefs.h. */
  10561. #include <sys/types.h>
  10562. /* Check that off_t can represent 2**63 - 1 correctly.
  10563. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10564. since some C++ compilers masquerading as C compilers
  10565. incorrectly reject 9223372036854775807. */
  10566. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10567. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10568. && LARGE_OFF_T % 2147483647 == 1)
  10569. ? 1 : -1];
  10570. int
  10571. main ()
  10572. {
  10573. ;
  10574. return 0;
  10575. }
  10576. _ACEOF
  10577. rm -f conftest.$ac_objext
  10578. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10579. (eval $ac_compile) 2>conftest.er1
  10580. ac_status=$?
  10581. grep -v '^ *+' conftest.er1 >conftest.err
  10582. rm -f conftest.er1
  10583. cat conftest.err >&5
  10584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10585. (exit $ac_status); } &&
  10586. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10588. (eval $ac_try) 2>&5
  10589. ac_status=$?
  10590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10591. (exit $ac_status); }; } &&
  10592. { ac_try='test -s conftest.$ac_objext'
  10593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10594. (eval $ac_try) 2>&5
  10595. ac_status=$?
  10596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10597. (exit $ac_status); }; }; then
  10598. break
  10599. else
  10600. echo "$as_me: failed program was:" >&5
  10601. sed 's/^/| /' conftest.$ac_ext >&5
  10602. fi
  10603. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10604. cat >conftest.$ac_ext <<_ACEOF
  10605. /* confdefs.h. */
  10606. _ACEOF
  10607. cat confdefs.h >>conftest.$ac_ext
  10608. cat >>conftest.$ac_ext <<_ACEOF
  10609. /* end confdefs.h. */
  10610. #define _LARGE_FILES 1
  10611. #include <sys/types.h>
  10612. /* Check that off_t can represent 2**63 - 1 correctly.
  10613. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10614. since some C++ compilers masquerading as C compilers
  10615. incorrectly reject 9223372036854775807. */
  10616. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10617. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10618. && LARGE_OFF_T % 2147483647 == 1)
  10619. ? 1 : -1];
  10620. int
  10621. main ()
  10622. {
  10623. ;
  10624. return 0;
  10625. }
  10626. _ACEOF
  10627. rm -f conftest.$ac_objext
  10628. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10629. (eval $ac_compile) 2>conftest.er1
  10630. ac_status=$?
  10631. grep -v '^ *+' conftest.er1 >conftest.err
  10632. rm -f conftest.er1
  10633. cat conftest.err >&5
  10634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10635. (exit $ac_status); } &&
  10636. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10638. (eval $ac_try) 2>&5
  10639. ac_status=$?
  10640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10641. (exit $ac_status); }; } &&
  10642. { ac_try='test -s conftest.$ac_objext'
  10643. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10644. (eval $ac_try) 2>&5
  10645. ac_status=$?
  10646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10647. (exit $ac_status); }; }; then
  10648. ac_cv_sys_large_files=1; break
  10649. else
  10650. echo "$as_me: failed program was:" >&5
  10651. sed 's/^/| /' conftest.$ac_ext >&5
  10652. fi
  10653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10654. break
  10655. done
  10656. fi
  10657. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10658. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  10659. if test "$ac_cv_sys_large_files" != no; then
  10660. cat >>confdefs.h <<_ACEOF
  10661. #define _LARGE_FILES $ac_cv_sys_large_files
  10662. _ACEOF
  10663. fi
  10664. rm -f conftest*
  10665. fi
  10666. # Checks for libraries.
  10667. # Check whether --with-zlib or --without-zlib was given.
  10668. if test "${with_zlib+set}" = set; then
  10669. withval="$with_zlib"
  10670. fi;
  10671. if test "x$with_zlib" != "xno"; then
  10672. echo "$as_me:$LINENO: checking for gzdopen in -lz" >&5
  10673. echo $ECHO_N "checking for gzdopen in -lz... $ECHO_C" >&6
  10674. if test "${ac_cv_lib_z_gzdopen+set}" = set; then
  10675. echo $ECHO_N "(cached) $ECHO_C" >&6
  10676. else
  10677. ac_check_lib_save_LIBS=$LIBS
  10678. LIBS="-lz $LIBS"
  10679. cat >conftest.$ac_ext <<_ACEOF
  10680. /* confdefs.h. */
  10681. _ACEOF
  10682. cat confdefs.h >>conftest.$ac_ext
  10683. cat >>conftest.$ac_ext <<_ACEOF
  10684. /* end confdefs.h. */
  10685. /* Override any gcc2 internal prototype to avoid an error. */
  10686. #ifdef __cplusplus
  10687. extern "C"
  10688. #endif
  10689. /* We use char because int might match the return type of a gcc2
  10690. builtin and then its argument prototype would still apply. */
  10691. char gzdopen ();
  10692. int
  10693. main ()
  10694. {
  10695. gzdopen ();
  10696. ;
  10697. return 0;
  10698. }
  10699. _ACEOF
  10700. rm -f conftest.$ac_objext conftest$ac_exeext
  10701. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10702. (eval $ac_link) 2>conftest.er1
  10703. ac_status=$?
  10704. grep -v '^ *+' conftest.er1 >conftest.err
  10705. rm -f conftest.er1
  10706. cat conftest.err >&5
  10707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10708. (exit $ac_status); } &&
  10709. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10710. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10711. (eval $ac_try) 2>&5
  10712. ac_status=$?
  10713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10714. (exit $ac_status); }; } &&
  10715. { ac_try='test -s conftest$ac_exeext'
  10716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10717. (eval $ac_try) 2>&5
  10718. ac_status=$?
  10719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10720. (exit $ac_status); }; }; then
  10721. ac_cv_lib_z_gzdopen=yes
  10722. else
  10723. echo "$as_me: failed program was:" >&5
  10724. sed 's/^/| /' conftest.$ac_ext >&5
  10725. ac_cv_lib_z_gzdopen=no
  10726. fi
  10727. rm -f conftest.err conftest.$ac_objext \
  10728. conftest$ac_exeext conftest.$ac_ext
  10729. LIBS=$ac_check_lib_save_LIBS
  10730. fi
  10731. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzdopen" >&5
  10732. echo "${ECHO_T}$ac_cv_lib_z_gzdopen" >&6
  10733. if test $ac_cv_lib_z_gzdopen = yes; then
  10734. cat >>confdefs.h <<\_ACEOF
  10735. #define WITH_ZLIB 1
  10736. _ACEOF
  10737. if test "x$with_zlib" = "xstatic"; then
  10738. dpkg_zlib_libs="-Wl,-Bstatic -lz -Wl,-Bdynamic"
  10739. else
  10740. dpkg_zlib_libs="-lz"
  10741. fi
  10742. ZLIB_LIBS="${ZLIB_LIBS:+$ZLIB_LIBS }$dpkg_zlib_libs"
  10743. with_zlib="yes"
  10744. else
  10745. if test -n "$with_zlib"; then
  10746. { { echo "$as_me:$LINENO: error: zlib library not found
  10747. See \`config.log' for more details." >&5
  10748. echo "$as_me: error: zlib library not found
  10749. See \`config.log' for more details." >&2;}
  10750. { (exit 1); exit 1; }; }
  10751. fi
  10752. fi
  10753. if test "${ac_cv_header_zlib_h+set}" = set; then
  10754. echo "$as_me:$LINENO: checking for zlib.h" >&5
  10755. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  10756. if test "${ac_cv_header_zlib_h+set}" = set; then
  10757. echo $ECHO_N "(cached) $ECHO_C" >&6
  10758. fi
  10759. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  10760. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  10761. else
  10762. # Is the header compilable?
  10763. echo "$as_me:$LINENO: checking zlib.h usability" >&5
  10764. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
  10765. cat >conftest.$ac_ext <<_ACEOF
  10766. /* confdefs.h. */
  10767. _ACEOF
  10768. cat confdefs.h >>conftest.$ac_ext
  10769. cat >>conftest.$ac_ext <<_ACEOF
  10770. /* end confdefs.h. */
  10771. $ac_includes_default
  10772. #include <zlib.h>
  10773. _ACEOF
  10774. rm -f conftest.$ac_objext
  10775. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10776. (eval $ac_compile) 2>conftest.er1
  10777. ac_status=$?
  10778. grep -v '^ *+' conftest.er1 >conftest.err
  10779. rm -f conftest.er1
  10780. cat conftest.err >&5
  10781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10782. (exit $ac_status); } &&
  10783. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10785. (eval $ac_try) 2>&5
  10786. ac_status=$?
  10787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10788. (exit $ac_status); }; } &&
  10789. { ac_try='test -s conftest.$ac_objext'
  10790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10791. (eval $ac_try) 2>&5
  10792. ac_status=$?
  10793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10794. (exit $ac_status); }; }; then
  10795. ac_header_compiler=yes
  10796. else
  10797. echo "$as_me: failed program was:" >&5
  10798. sed 's/^/| /' conftest.$ac_ext >&5
  10799. ac_header_compiler=no
  10800. fi
  10801. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10802. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10803. echo "${ECHO_T}$ac_header_compiler" >&6
  10804. # Is the header present?
  10805. echo "$as_me:$LINENO: checking zlib.h presence" >&5
  10806. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
  10807. cat >conftest.$ac_ext <<_ACEOF
  10808. /* confdefs.h. */
  10809. _ACEOF
  10810. cat confdefs.h >>conftest.$ac_ext
  10811. cat >>conftest.$ac_ext <<_ACEOF
  10812. /* end confdefs.h. */
  10813. #include <zlib.h>
  10814. _ACEOF
  10815. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10816. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10817. ac_status=$?
  10818. grep -v '^ *+' conftest.er1 >conftest.err
  10819. rm -f conftest.er1
  10820. cat conftest.err >&5
  10821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10822. (exit $ac_status); } >/dev/null; then
  10823. if test -s conftest.err; then
  10824. ac_cpp_err=$ac_c_preproc_warn_flag
  10825. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10826. else
  10827. ac_cpp_err=
  10828. fi
  10829. else
  10830. ac_cpp_err=yes
  10831. fi
  10832. if test -z "$ac_cpp_err"; then
  10833. ac_header_preproc=yes
  10834. else
  10835. echo "$as_me: failed program was:" >&5
  10836. sed 's/^/| /' conftest.$ac_ext >&5
  10837. ac_header_preproc=no
  10838. fi
  10839. rm -f conftest.err conftest.$ac_ext
  10840. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10841. echo "${ECHO_T}$ac_header_preproc" >&6
  10842. # So? What about this header?
  10843. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10844. yes:no: )
  10845. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10846. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10847. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  10848. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  10849. ac_header_preproc=yes
  10850. ;;
  10851. no:yes:* )
  10852. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  10853. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  10854. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  10855. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  10856. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  10857. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  10858. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  10859. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10860. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  10861. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  10862. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  10863. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  10864. (
  10865. cat <<\_ASBOX
  10866. ## ------------------------------------------- ##
  10867. ## Report this to debian-dpkg@lists.debian.org ##
  10868. ## ------------------------------------------- ##
  10869. _ASBOX
  10870. ) |
  10871. sed "s/^/$as_me: WARNING: /" >&2
  10872. ;;
  10873. esac
  10874. echo "$as_me:$LINENO: checking for zlib.h" >&5
  10875. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  10876. if test "${ac_cv_header_zlib_h+set}" = set; then
  10877. echo $ECHO_N "(cached) $ECHO_C" >&6
  10878. else
  10879. ac_cv_header_zlib_h=$ac_header_preproc
  10880. fi
  10881. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  10882. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  10883. fi
  10884. if test $ac_cv_header_zlib_h = yes; then
  10885. :
  10886. else
  10887. if test -n "$with_zlib"; then
  10888. { { echo "$as_me:$LINENO: error: zlib header not found
  10889. See \`config.log' for more details." >&5
  10890. echo "$as_me: error: zlib header not found
  10891. See \`config.log' for more details." >&2;}
  10892. { (exit 1); exit 1; }; }
  10893. fi
  10894. fi
  10895. fi
  10896. # Check whether --with-bz2 or --without-bz2 was given.
  10897. if test "${with_bz2+set}" = set; then
  10898. withval="$with_bz2"
  10899. fi;
  10900. if test "x$with_bz2" != "xno"; then
  10901. echo "$as_me:$LINENO: checking for BZ2_bzdopen in -lbz2" >&5
  10902. echo $ECHO_N "checking for BZ2_bzdopen in -lbz2... $ECHO_C" >&6
  10903. if test "${ac_cv_lib_bz2_BZ2_bzdopen+set}" = set; then
  10904. echo $ECHO_N "(cached) $ECHO_C" >&6
  10905. else
  10906. ac_check_lib_save_LIBS=$LIBS
  10907. LIBS="-lbz2 $LIBS"
  10908. cat >conftest.$ac_ext <<_ACEOF
  10909. /* confdefs.h. */
  10910. _ACEOF
  10911. cat confdefs.h >>conftest.$ac_ext
  10912. cat >>conftest.$ac_ext <<_ACEOF
  10913. /* end confdefs.h. */
  10914. /* Override any gcc2 internal prototype to avoid an error. */
  10915. #ifdef __cplusplus
  10916. extern "C"
  10917. #endif
  10918. /* We use char because int might match the return type of a gcc2
  10919. builtin and then its argument prototype would still apply. */
  10920. char BZ2_bzdopen ();
  10921. int
  10922. main ()
  10923. {
  10924. BZ2_bzdopen ();
  10925. ;
  10926. return 0;
  10927. }
  10928. _ACEOF
  10929. rm -f conftest.$ac_objext conftest$ac_exeext
  10930. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10931. (eval $ac_link) 2>conftest.er1
  10932. ac_status=$?
  10933. grep -v '^ *+' conftest.er1 >conftest.err
  10934. rm -f conftest.er1
  10935. cat conftest.err >&5
  10936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10937. (exit $ac_status); } &&
  10938. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10940. (eval $ac_try) 2>&5
  10941. ac_status=$?
  10942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10943. (exit $ac_status); }; } &&
  10944. { ac_try='test -s conftest$ac_exeext'
  10945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10946. (eval $ac_try) 2>&5
  10947. ac_status=$?
  10948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10949. (exit $ac_status); }; }; then
  10950. ac_cv_lib_bz2_BZ2_bzdopen=yes
  10951. else
  10952. echo "$as_me: failed program was:" >&5
  10953. sed 's/^/| /' conftest.$ac_ext >&5
  10954. ac_cv_lib_bz2_BZ2_bzdopen=no
  10955. fi
  10956. rm -f conftest.err conftest.$ac_objext \
  10957. conftest$ac_exeext conftest.$ac_ext
  10958. LIBS=$ac_check_lib_save_LIBS
  10959. fi
  10960. echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzdopen" >&5
  10961. echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzdopen" >&6
  10962. if test $ac_cv_lib_bz2_BZ2_bzdopen = yes; then
  10963. cat >>confdefs.h <<\_ACEOF
  10964. #define WITH_BZ2 1
  10965. _ACEOF
  10966. if test "x$with_bz2" = "xstatic"; then
  10967. dpkg_bz2_libs="-Wl,-Bstatic -lbz2 -Wl,-Bdynamic"
  10968. else
  10969. dpkg_bz2_libs="-lbz2"
  10970. fi
  10971. BZ2_LIBS="${BZ2_LIBS:+$BZ2_LIBS }$dpkg_bz2_libs"
  10972. with_bz2="yes"
  10973. else
  10974. if test -n "$with_bz2"; then
  10975. { { echo "$as_me:$LINENO: error: bz2 library not found
  10976. See \`config.log' for more details." >&5
  10977. echo "$as_me: error: bz2 library not found
  10978. See \`config.log' for more details." >&2;}
  10979. { (exit 1); exit 1; }; }
  10980. fi
  10981. fi
  10982. if test "${ac_cv_header_bzlib_h+set}" = set; then
  10983. echo "$as_me:$LINENO: checking for bzlib.h" >&5
  10984. echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6
  10985. if test "${ac_cv_header_bzlib_h+set}" = set; then
  10986. echo $ECHO_N "(cached) $ECHO_C" >&6
  10987. fi
  10988. echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
  10989. echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
  10990. else
  10991. # Is the header compilable?
  10992. echo "$as_me:$LINENO: checking bzlib.h usability" >&5
  10993. echo $ECHO_N "checking bzlib.h usability... $ECHO_C" >&6
  10994. cat >conftest.$ac_ext <<_ACEOF
  10995. /* confdefs.h. */
  10996. _ACEOF
  10997. cat confdefs.h >>conftest.$ac_ext
  10998. cat >>conftest.$ac_ext <<_ACEOF
  10999. /* end confdefs.h. */
  11000. $ac_includes_default
  11001. #include <bzlib.h>
  11002. _ACEOF
  11003. rm -f conftest.$ac_objext
  11004. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11005. (eval $ac_compile) 2>conftest.er1
  11006. ac_status=$?
  11007. grep -v '^ *+' conftest.er1 >conftest.err
  11008. rm -f conftest.er1
  11009. cat conftest.err >&5
  11010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11011. (exit $ac_status); } &&
  11012. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11014. (eval $ac_try) 2>&5
  11015. ac_status=$?
  11016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11017. (exit $ac_status); }; } &&
  11018. { ac_try='test -s conftest.$ac_objext'
  11019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11020. (eval $ac_try) 2>&5
  11021. ac_status=$?
  11022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11023. (exit $ac_status); }; }; then
  11024. ac_header_compiler=yes
  11025. else
  11026. echo "$as_me: failed program was:" >&5
  11027. sed 's/^/| /' conftest.$ac_ext >&5
  11028. ac_header_compiler=no
  11029. fi
  11030. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11031. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11032. echo "${ECHO_T}$ac_header_compiler" >&6
  11033. # Is the header present?
  11034. echo "$as_me:$LINENO: checking bzlib.h presence" >&5
  11035. echo $ECHO_N "checking bzlib.h presence... $ECHO_C" >&6
  11036. cat >conftest.$ac_ext <<_ACEOF
  11037. /* confdefs.h. */
  11038. _ACEOF
  11039. cat confdefs.h >>conftest.$ac_ext
  11040. cat >>conftest.$ac_ext <<_ACEOF
  11041. /* end confdefs.h. */
  11042. #include <bzlib.h>
  11043. _ACEOF
  11044. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  11045. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11046. ac_status=$?
  11047. grep -v '^ *+' conftest.er1 >conftest.err
  11048. rm -f conftest.er1
  11049. cat conftest.err >&5
  11050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11051. (exit $ac_status); } >/dev/null; then
  11052. if test -s conftest.err; then
  11053. ac_cpp_err=$ac_c_preproc_warn_flag
  11054. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  11055. else
  11056. ac_cpp_err=
  11057. fi
  11058. else
  11059. ac_cpp_err=yes
  11060. fi
  11061. if test -z "$ac_cpp_err"; then
  11062. ac_header_preproc=yes
  11063. else
  11064. echo "$as_me: failed program was:" >&5
  11065. sed 's/^/| /' conftest.$ac_ext >&5
  11066. ac_header_preproc=no
  11067. fi
  11068. rm -f conftest.err conftest.$ac_ext
  11069. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11070. echo "${ECHO_T}$ac_header_preproc" >&6
  11071. # So? What about this header?
  11072. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11073. yes:no: )
  11074. { echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11075. echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11076. { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
  11077. echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
  11078. ac_header_preproc=yes
  11079. ;;
  11080. no:yes:* )
  11081. { echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
  11082. echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
  11083. { echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
  11084. echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
  11085. { echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
  11086. echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
  11087. { echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
  11088. echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11089. { echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
  11090. echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
  11091. { echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
  11092. echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
  11093. (
  11094. cat <<\_ASBOX
  11095. ## ------------------------------------------- ##
  11096. ## Report this to debian-dpkg@lists.debian.org ##
  11097. ## ------------------------------------------- ##
  11098. _ASBOX
  11099. ) |
  11100. sed "s/^/$as_me: WARNING: /" >&2
  11101. ;;
  11102. esac
  11103. echo "$as_me:$LINENO: checking for bzlib.h" >&5
  11104. echo $ECHO_N "checking for bzlib.h... $ECHO_C" >&6
  11105. if test "${ac_cv_header_bzlib_h+set}" = set; then
  11106. echo $ECHO_N "(cached) $ECHO_C" >&6
  11107. else
  11108. ac_cv_header_bzlib_h=$ac_header_preproc
  11109. fi
  11110. echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
  11111. echo "${ECHO_T}$ac_cv_header_bzlib_h" >&6
  11112. fi
  11113. if test $ac_cv_header_bzlib_h = yes; then
  11114. :
  11115. else
  11116. if test -n "$with_bz2"; then
  11117. { { echo "$as_me:$LINENO: error: bz2 header not found
  11118. See \`config.log' for more details." >&5
  11119. echo "$as_me: error: bz2 header not found
  11120. See \`config.log' for more details." >&2;}
  11121. { (exit 1); exit 1; }; }
  11122. fi
  11123. fi
  11124. fi
  11125. # Check whether --with-selinux or --without-selinux was given.
  11126. if test "${with_selinux+set}" = set; then
  11127. withval="$with_selinux"
  11128. fi;
  11129. if test "x$with_selinux" != "xno"; then
  11130. echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
  11131. echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6
  11132. if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
  11133. echo $ECHO_N "(cached) $ECHO_C" >&6
  11134. else
  11135. ac_check_lib_save_LIBS=$LIBS
  11136. LIBS="-lselinux $LIBS"
  11137. cat >conftest.$ac_ext <<_ACEOF
  11138. /* confdefs.h. */
  11139. _ACEOF
  11140. cat confdefs.h >>conftest.$ac_ext
  11141. cat >>conftest.$ac_ext <<_ACEOF
  11142. /* end confdefs.h. */
  11143. /* Override any gcc2 internal prototype to avoid an error. */
  11144. #ifdef __cplusplus
  11145. extern "C"
  11146. #endif
  11147. /* We use char because int might match the return type of a gcc2
  11148. builtin and then its argument prototype would still apply. */
  11149. char is_selinux_enabled ();
  11150. int
  11151. main ()
  11152. {
  11153. is_selinux_enabled ();
  11154. ;
  11155. return 0;
  11156. }
  11157. _ACEOF
  11158. rm -f conftest.$ac_objext conftest$ac_exeext
  11159. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11160. (eval $ac_link) 2>conftest.er1
  11161. ac_status=$?
  11162. grep -v '^ *+' conftest.er1 >conftest.err
  11163. rm -f conftest.er1
  11164. cat conftest.err >&5
  11165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11166. (exit $ac_status); } &&
  11167. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11168. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11169. (eval $ac_try) 2>&5
  11170. ac_status=$?
  11171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11172. (exit $ac_status); }; } &&
  11173. { ac_try='test -s conftest$ac_exeext'
  11174. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11175. (eval $ac_try) 2>&5
  11176. ac_status=$?
  11177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11178. (exit $ac_status); }; }; then
  11179. ac_cv_lib_selinux_is_selinux_enabled=yes
  11180. else
  11181. echo "$as_me: failed program was:" >&5
  11182. sed 's/^/| /' conftest.$ac_ext >&5
  11183. ac_cv_lib_selinux_is_selinux_enabled=no
  11184. fi
  11185. rm -f conftest.err conftest.$ac_objext \
  11186. conftest$ac_exeext conftest.$ac_ext
  11187. LIBS=$ac_check_lib_save_LIBS
  11188. fi
  11189. echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
  11190. echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6
  11191. if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
  11192. cat >>confdefs.h <<\_ACEOF
  11193. #define WITH_SELINUX 1
  11194. _ACEOF
  11195. if test "x$with_selinux" = "xstatic"; then
  11196. dpkg_selinux_libs="-Wl,-Bstatic -lselinux -lsepol -Wl,-Bdynamic"
  11197. else
  11198. dpkg_selinux_libs="-lselinux"
  11199. fi
  11200. SELINUX_LIBS="${SELINUX_LIBS:+$SELINUX_LIBS }$dpkg_selinux_libs"
  11201. with_selinux="yes"
  11202. else
  11203. if test -n "$with_selinux"; then
  11204. { { echo "$as_me:$LINENO: error: selinux library not found
  11205. See \`config.log' for more details." >&5
  11206. echo "$as_me: error: selinux library not found
  11207. See \`config.log' for more details." >&2;}
  11208. { (exit 1); exit 1; }; }
  11209. fi
  11210. fi
  11211. if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
  11212. echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
  11213. echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6
  11214. if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
  11215. echo $ECHO_N "(cached) $ECHO_C" >&6
  11216. fi
  11217. echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
  11218. echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6
  11219. else
  11220. # Is the header compilable?
  11221. echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
  11222. echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6
  11223. cat >conftest.$ac_ext <<_ACEOF
  11224. /* confdefs.h. */
  11225. _ACEOF
  11226. cat confdefs.h >>conftest.$ac_ext
  11227. cat >>conftest.$ac_ext <<_ACEOF
  11228. /* end confdefs.h. */
  11229. $ac_includes_default
  11230. #include <selinux/selinux.h>
  11231. _ACEOF
  11232. rm -f conftest.$ac_objext
  11233. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11234. (eval $ac_compile) 2>conftest.er1
  11235. ac_status=$?
  11236. grep -v '^ *+' conftest.er1 >conftest.err
  11237. rm -f conftest.er1
  11238. cat conftest.err >&5
  11239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11240. (exit $ac_status); } &&
  11241. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11243. (eval $ac_try) 2>&5
  11244. ac_status=$?
  11245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11246. (exit $ac_status); }; } &&
  11247. { ac_try='test -s conftest.$ac_objext'
  11248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11249. (eval $ac_try) 2>&5
  11250. ac_status=$?
  11251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11252. (exit $ac_status); }; }; then
  11253. ac_header_compiler=yes
  11254. else
  11255. echo "$as_me: failed program was:" >&5
  11256. sed 's/^/| /' conftest.$ac_ext >&5
  11257. ac_header_compiler=no
  11258. fi
  11259. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11260. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11261. echo "${ECHO_T}$ac_header_compiler" >&6
  11262. # Is the header present?
  11263. echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
  11264. echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6
  11265. cat >conftest.$ac_ext <<_ACEOF
  11266. /* confdefs.h. */
  11267. _ACEOF
  11268. cat confdefs.h >>conftest.$ac_ext
  11269. cat >>conftest.$ac_ext <<_ACEOF
  11270. /* end confdefs.h. */
  11271. #include <selinux/selinux.h>
  11272. _ACEOF
  11273. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  11274. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11275. ac_status=$?
  11276. grep -v '^ *+' conftest.er1 >conftest.err
  11277. rm -f conftest.er1
  11278. cat conftest.err >&5
  11279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11280. (exit $ac_status); } >/dev/null; then
  11281. if test -s conftest.err; then
  11282. ac_cpp_err=$ac_c_preproc_warn_flag
  11283. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  11284. else
  11285. ac_cpp_err=
  11286. fi
  11287. else
  11288. ac_cpp_err=yes
  11289. fi
  11290. if test -z "$ac_cpp_err"; then
  11291. ac_header_preproc=yes
  11292. else
  11293. echo "$as_me: failed program was:" >&5
  11294. sed 's/^/| /' conftest.$ac_ext >&5
  11295. ac_header_preproc=no
  11296. fi
  11297. rm -f conftest.err conftest.$ac_ext
  11298. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11299. echo "${ECHO_T}$ac_header_preproc" >&6
  11300. # So? What about this header?
  11301. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11302. yes:no: )
  11303. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11304. echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11305. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
  11306. echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
  11307. ac_header_preproc=yes
  11308. ;;
  11309. no:yes:* )
  11310. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
  11311. echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
  11312. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
  11313. echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
  11314. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
  11315. echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
  11316. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
  11317. echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11318. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
  11319. echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
  11320. { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
  11321. echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
  11322. (
  11323. cat <<\_ASBOX
  11324. ## ------------------------------------------- ##
  11325. ## Report this to debian-dpkg@lists.debian.org ##
  11326. ## ------------------------------------------- ##
  11327. _ASBOX
  11328. ) |
  11329. sed "s/^/$as_me: WARNING: /" >&2
  11330. ;;
  11331. esac
  11332. echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
  11333. echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6
  11334. if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
  11335. echo $ECHO_N "(cached) $ECHO_C" >&6
  11336. else
  11337. ac_cv_header_selinux_selinux_h=$ac_header_preproc
  11338. fi
  11339. echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
  11340. echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6
  11341. fi
  11342. if test $ac_cv_header_selinux_selinux_h = yes; then
  11343. :
  11344. else
  11345. if test -n "$with_selinux"; then
  11346. { { echo "$as_me:$LINENO: error: selinux header not found
  11347. See \`config.log' for more details." >&5
  11348. echo "$as_me: error: selinux header not found
  11349. See \`config.log' for more details." >&2;}
  11350. { (exit 1); exit 1; }; }
  11351. fi
  11352. fi
  11353. fi
  11354. if test "x$build_dselect" = "xyes"; then
  11355. echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
  11356. echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
  11357. if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
  11358. echo $ECHO_N "(cached) $ECHO_C" >&6
  11359. else
  11360. ac_check_lib_save_LIBS=$LIBS
  11361. LIBS="-lncurses $LIBS"
  11362. cat >conftest.$ac_ext <<_ACEOF
  11363. /* confdefs.h. */
  11364. _ACEOF
  11365. cat confdefs.h >>conftest.$ac_ext
  11366. cat >>conftest.$ac_ext <<_ACEOF
  11367. /* end confdefs.h. */
  11368. /* Override any gcc2 internal prototype to avoid an error. */
  11369. #ifdef __cplusplus
  11370. extern "C"
  11371. #endif
  11372. /* We use char because int might match the return type of a gcc2
  11373. builtin and then its argument prototype would still apply. */
  11374. char initscr ();
  11375. int
  11376. main ()
  11377. {
  11378. initscr ();
  11379. ;
  11380. return 0;
  11381. }
  11382. _ACEOF
  11383. rm -f conftest.$ac_objext conftest$ac_exeext
  11384. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11385. (eval $ac_link) 2>conftest.er1
  11386. ac_status=$?
  11387. grep -v '^ *+' conftest.er1 >conftest.err
  11388. rm -f conftest.er1
  11389. cat conftest.err >&5
  11390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11391. (exit $ac_status); } &&
  11392. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11394. (eval $ac_try) 2>&5
  11395. ac_status=$?
  11396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11397. (exit $ac_status); }; } &&
  11398. { ac_try='test -s conftest$ac_exeext'
  11399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11400. (eval $ac_try) 2>&5
  11401. ac_status=$?
  11402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11403. (exit $ac_status); }; }; then
  11404. ac_cv_lib_ncurses_initscr=yes
  11405. else
  11406. echo "$as_me: failed program was:" >&5
  11407. sed 's/^/| /' conftest.$ac_ext >&5
  11408. ac_cv_lib_ncurses_initscr=no
  11409. fi
  11410. rm -f conftest.err conftest.$ac_objext \
  11411. conftest$ac_exeext conftest.$ac_ext
  11412. LIBS=$ac_check_lib_save_LIBS
  11413. fi
  11414. echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
  11415. echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
  11416. if test $ac_cv_lib_ncurses_initscr = yes; then
  11417. CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lncurses"
  11418. else
  11419. echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
  11420. echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
  11421. if test "${ac_cv_lib_curses_initscr+set}" = set; then
  11422. echo $ECHO_N "(cached) $ECHO_C" >&6
  11423. else
  11424. ac_check_lib_save_LIBS=$LIBS
  11425. LIBS="-lcurses $LIBS"
  11426. cat >conftest.$ac_ext <<_ACEOF
  11427. /* confdefs.h. */
  11428. _ACEOF
  11429. cat confdefs.h >>conftest.$ac_ext
  11430. cat >>conftest.$ac_ext <<_ACEOF
  11431. /* end confdefs.h. */
  11432. /* Override any gcc2 internal prototype to avoid an error. */
  11433. #ifdef __cplusplus
  11434. extern "C"
  11435. #endif
  11436. /* We use char because int might match the return type of a gcc2
  11437. builtin and then its argument prototype would still apply. */
  11438. char initscr ();
  11439. int
  11440. main ()
  11441. {
  11442. initscr ();
  11443. ;
  11444. return 0;
  11445. }
  11446. _ACEOF
  11447. rm -f conftest.$ac_objext conftest$ac_exeext
  11448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11449. (eval $ac_link) 2>conftest.er1
  11450. ac_status=$?
  11451. grep -v '^ *+' conftest.er1 >conftest.err
  11452. rm -f conftest.er1
  11453. cat conftest.err >&5
  11454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11455. (exit $ac_status); } &&
  11456. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11458. (eval $ac_try) 2>&5
  11459. ac_status=$?
  11460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11461. (exit $ac_status); }; } &&
  11462. { ac_try='test -s conftest$ac_exeext'
  11463. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11464. (eval $ac_try) 2>&5
  11465. ac_status=$?
  11466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11467. (exit $ac_status); }; }; then
  11468. ac_cv_lib_curses_initscr=yes
  11469. else
  11470. echo "$as_me: failed program was:" >&5
  11471. sed 's/^/| /' conftest.$ac_ext >&5
  11472. ac_cv_lib_curses_initscr=no
  11473. fi
  11474. rm -f conftest.err conftest.$ac_objext \
  11475. conftest$ac_exeext conftest.$ac_ext
  11476. LIBS=$ac_check_lib_save_LIBS
  11477. fi
  11478. echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
  11479. echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
  11480. if test $ac_cv_lib_curses_initscr = yes; then
  11481. CURSES_LIBS="${CURSES_LIBS:+$CURSES_LIBS }-lcurses"
  11482. else
  11483. { echo "$as_me:$LINENO: WARNING: no curses library found" >&5
  11484. echo "$as_me: WARNING: no curses library found" >&2;}
  11485. fi
  11486. fi
  11487. fi
  11488. if test "x$build_start_stop_daemon" = "xyes"; then
  11489. echo "$as_me:$LINENO: checking for ihash_create in -lihash" >&5
  11490. echo $ECHO_N "checking for ihash_create in -lihash... $ECHO_C" >&6
  11491. if test "${ac_cv_lib_ihash_ihash_create+set}" = set; then
  11492. echo $ECHO_N "(cached) $ECHO_C" >&6
  11493. else
  11494. ac_check_lib_save_LIBS=$LIBS
  11495. LIBS="-lihash $LIBS"
  11496. cat >conftest.$ac_ext <<_ACEOF
  11497. /* confdefs.h. */
  11498. _ACEOF
  11499. cat confdefs.h >>conftest.$ac_ext
  11500. cat >>conftest.$ac_ext <<_ACEOF
  11501. /* end confdefs.h. */
  11502. /* Override any gcc2 internal prototype to avoid an error. */
  11503. #ifdef __cplusplus
  11504. extern "C"
  11505. #endif
  11506. /* We use char because int might match the return type of a gcc2
  11507. builtin and then its argument prototype would still apply. */
  11508. char ihash_create ();
  11509. int
  11510. main ()
  11511. {
  11512. ihash_create ();
  11513. ;
  11514. return 0;
  11515. }
  11516. _ACEOF
  11517. rm -f conftest.$ac_objext conftest$ac_exeext
  11518. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11519. (eval $ac_link) 2>conftest.er1
  11520. ac_status=$?
  11521. grep -v '^ *+' conftest.er1 >conftest.err
  11522. rm -f conftest.er1
  11523. cat conftest.err >&5
  11524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11525. (exit $ac_status); } &&
  11526. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11527. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11528. (eval $ac_try) 2>&5
  11529. ac_status=$?
  11530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11531. (exit $ac_status); }; } &&
  11532. { ac_try='test -s conftest$ac_exeext'
  11533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11534. (eval $ac_try) 2>&5
  11535. ac_status=$?
  11536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11537. (exit $ac_status); }; }; then
  11538. ac_cv_lib_ihash_ihash_create=yes
  11539. else
  11540. echo "$as_me: failed program was:" >&5
  11541. sed 's/^/| /' conftest.$ac_ext >&5
  11542. ac_cv_lib_ihash_ihash_create=no
  11543. fi
  11544. rm -f conftest.err conftest.$ac_objext \
  11545. conftest$ac_exeext conftest.$ac_ext
  11546. LIBS=$ac_check_lib_save_LIBS
  11547. fi
  11548. echo "$as_me:$LINENO: result: $ac_cv_lib_ihash_ihash_create" >&5
  11549. echo "${ECHO_T}$ac_cv_lib_ihash_ihash_create" >&6
  11550. if test $ac_cv_lib_ihash_ihash_create = yes; then
  11551. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lihash"
  11552. fi
  11553. echo "$as_me:$LINENO: checking for proc_stat_list_create in -lps" >&5
  11554. echo $ECHO_N "checking for proc_stat_list_create in -lps... $ECHO_C" >&6
  11555. if test "${ac_cv_lib_ps_proc_stat_list_create+set}" = set; then
  11556. echo $ECHO_N "(cached) $ECHO_C" >&6
  11557. else
  11558. ac_check_lib_save_LIBS=$LIBS
  11559. LIBS="-lps $LIBS"
  11560. cat >conftest.$ac_ext <<_ACEOF
  11561. /* confdefs.h. */
  11562. _ACEOF
  11563. cat confdefs.h >>conftest.$ac_ext
  11564. cat >>conftest.$ac_ext <<_ACEOF
  11565. /* end confdefs.h. */
  11566. /* Override any gcc2 internal prototype to avoid an error. */
  11567. #ifdef __cplusplus
  11568. extern "C"
  11569. #endif
  11570. /* We use char because int might match the return type of a gcc2
  11571. builtin and then its argument prototype would still apply. */
  11572. char proc_stat_list_create ();
  11573. int
  11574. main ()
  11575. {
  11576. proc_stat_list_create ();
  11577. ;
  11578. return 0;
  11579. }
  11580. _ACEOF
  11581. rm -f conftest.$ac_objext conftest$ac_exeext
  11582. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11583. (eval $ac_link) 2>conftest.er1
  11584. ac_status=$?
  11585. grep -v '^ *+' conftest.er1 >conftest.err
  11586. rm -f conftest.er1
  11587. cat conftest.err >&5
  11588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11589. (exit $ac_status); } &&
  11590. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11592. (eval $ac_try) 2>&5
  11593. ac_status=$?
  11594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11595. (exit $ac_status); }; } &&
  11596. { ac_try='test -s conftest$ac_exeext'
  11597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11598. (eval $ac_try) 2>&5
  11599. ac_status=$?
  11600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11601. (exit $ac_status); }; }; then
  11602. ac_cv_lib_ps_proc_stat_list_create=yes
  11603. else
  11604. echo "$as_me: failed program was:" >&5
  11605. sed 's/^/| /' conftest.$ac_ext >&5
  11606. ac_cv_lib_ps_proc_stat_list_create=no
  11607. fi
  11608. rm -f conftest.err conftest.$ac_objext \
  11609. conftest$ac_exeext conftest.$ac_ext
  11610. LIBS=$ac_check_lib_save_LIBS
  11611. fi
  11612. echo "$as_me:$LINENO: result: $ac_cv_lib_ps_proc_stat_list_create" >&5
  11613. echo "${ECHO_T}$ac_cv_lib_ps_proc_stat_list_create" >&6
  11614. if test $ac_cv_lib_ps_proc_stat_list_create = yes; then
  11615. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lps"
  11616. fi
  11617. echo "$as_me:$LINENO: checking for fmt_past_time in -lshouldbeinlibc" >&5
  11618. echo $ECHO_N "checking for fmt_past_time in -lshouldbeinlibc... $ECHO_C" >&6
  11619. if test "${ac_cv_lib_shouldbeinlibc_fmt_past_time+set}" = set; then
  11620. echo $ECHO_N "(cached) $ECHO_C" >&6
  11621. else
  11622. ac_check_lib_save_LIBS=$LIBS
  11623. LIBS="-lshouldbeinlibc $LIBS"
  11624. cat >conftest.$ac_ext <<_ACEOF
  11625. /* confdefs.h. */
  11626. _ACEOF
  11627. cat confdefs.h >>conftest.$ac_ext
  11628. cat >>conftest.$ac_ext <<_ACEOF
  11629. /* end confdefs.h. */
  11630. /* Override any gcc2 internal prototype to avoid an error. */
  11631. #ifdef __cplusplus
  11632. extern "C"
  11633. #endif
  11634. /* We use char because int might match the return type of a gcc2
  11635. builtin and then its argument prototype would still apply. */
  11636. char fmt_past_time ();
  11637. int
  11638. main ()
  11639. {
  11640. fmt_past_time ();
  11641. ;
  11642. return 0;
  11643. }
  11644. _ACEOF
  11645. rm -f conftest.$ac_objext conftest$ac_exeext
  11646. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11647. (eval $ac_link) 2>conftest.er1
  11648. ac_status=$?
  11649. grep -v '^ *+' conftest.er1 >conftest.err
  11650. rm -f conftest.er1
  11651. cat conftest.err >&5
  11652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11653. (exit $ac_status); } &&
  11654. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11656. (eval $ac_try) 2>&5
  11657. ac_status=$?
  11658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11659. (exit $ac_status); }; } &&
  11660. { ac_try='test -s conftest$ac_exeext'
  11661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11662. (eval $ac_try) 2>&5
  11663. ac_status=$?
  11664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11665. (exit $ac_status); }; }; then
  11666. ac_cv_lib_shouldbeinlibc_fmt_past_time=yes
  11667. else
  11668. echo "$as_me: failed program was:" >&5
  11669. sed 's/^/| /' conftest.$ac_ext >&5
  11670. ac_cv_lib_shouldbeinlibc_fmt_past_time=no
  11671. fi
  11672. rm -f conftest.err conftest.$ac_objext \
  11673. conftest$ac_exeext conftest.$ac_ext
  11674. LIBS=$ac_check_lib_save_LIBS
  11675. fi
  11676. echo "$as_me:$LINENO: result: $ac_cv_lib_shouldbeinlibc_fmt_past_time" >&5
  11677. echo "${ECHO_T}$ac_cv_lib_shouldbeinlibc_fmt_past_time" >&6
  11678. if test $ac_cv_lib_shouldbeinlibc_fmt_past_time = yes; then
  11679. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lshouldbeinlibc"
  11680. fi
  11681. echo "$as_me:$LINENO: checking for kvm_openfiles in -lkvm" >&5
  11682. echo $ECHO_N "checking for kvm_openfiles in -lkvm... $ECHO_C" >&6
  11683. if test "${ac_cv_lib_kvm_kvm_openfiles+set}" = set; then
  11684. echo $ECHO_N "(cached) $ECHO_C" >&6
  11685. else
  11686. ac_check_lib_save_LIBS=$LIBS
  11687. LIBS="-lkvm $LIBS"
  11688. cat >conftest.$ac_ext <<_ACEOF
  11689. /* confdefs.h. */
  11690. _ACEOF
  11691. cat confdefs.h >>conftest.$ac_ext
  11692. cat >>conftest.$ac_ext <<_ACEOF
  11693. /* end confdefs.h. */
  11694. /* Override any gcc2 internal prototype to avoid an error. */
  11695. #ifdef __cplusplus
  11696. extern "C"
  11697. #endif
  11698. /* We use char because int might match the return type of a gcc2
  11699. builtin and then its argument prototype would still apply. */
  11700. char kvm_openfiles ();
  11701. int
  11702. main ()
  11703. {
  11704. kvm_openfiles ();
  11705. ;
  11706. return 0;
  11707. }
  11708. _ACEOF
  11709. rm -f conftest.$ac_objext conftest$ac_exeext
  11710. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11711. (eval $ac_link) 2>conftest.er1
  11712. ac_status=$?
  11713. grep -v '^ *+' conftest.er1 >conftest.err
  11714. rm -f conftest.er1
  11715. cat conftest.err >&5
  11716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11717. (exit $ac_status); } &&
  11718. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11720. (eval $ac_try) 2>&5
  11721. ac_status=$?
  11722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11723. (exit $ac_status); }; } &&
  11724. { ac_try='test -s conftest$ac_exeext'
  11725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11726. (eval $ac_try) 2>&5
  11727. ac_status=$?
  11728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11729. (exit $ac_status); }; }; then
  11730. ac_cv_lib_kvm_kvm_openfiles=yes
  11731. else
  11732. echo "$as_me: failed program was:" >&5
  11733. sed 's/^/| /' conftest.$ac_ext >&5
  11734. ac_cv_lib_kvm_kvm_openfiles=no
  11735. fi
  11736. rm -f conftest.err conftest.$ac_objext \
  11737. conftest$ac_exeext conftest.$ac_ext
  11738. LIBS=$ac_check_lib_save_LIBS
  11739. fi
  11740. echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
  11741. echo "${ECHO_T}$ac_cv_lib_kvm_kvm_openfiles" >&6
  11742. if test $ac_cv_lib_kvm_kvm_openfiles = yes; then
  11743. SSD_LIBS="${SSD_LIBS:+$SSD_LIBS }-lkvm"
  11744. fi
  11745. fi
  11746. # Checks for header files.
  11747. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  11748. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  11749. if test "${ac_cv_header_stdc+set}" = set; then
  11750. echo $ECHO_N "(cached) $ECHO_C" >&6
  11751. else
  11752. cat >conftest.$ac_ext <<_ACEOF
  11753. /* confdefs.h. */
  11754. _ACEOF
  11755. cat confdefs.h >>conftest.$ac_ext
  11756. cat >>conftest.$ac_ext <<_ACEOF
  11757. /* end confdefs.h. */
  11758. #include <stdlib.h>
  11759. #include <stdarg.h>
  11760. #include <string.h>
  11761. #include <float.h>
  11762. int
  11763. main ()
  11764. {
  11765. ;
  11766. return 0;
  11767. }
  11768. _ACEOF
  11769. rm -f conftest.$ac_objext
  11770. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11771. (eval $ac_compile) 2>conftest.er1
  11772. ac_status=$?
  11773. grep -v '^ *+' conftest.er1 >conftest.err
  11774. rm -f conftest.er1
  11775. cat conftest.err >&5
  11776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11777. (exit $ac_status); } &&
  11778. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11780. (eval $ac_try) 2>&5
  11781. ac_status=$?
  11782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11783. (exit $ac_status); }; } &&
  11784. { ac_try='test -s conftest.$ac_objext'
  11785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11786. (eval $ac_try) 2>&5
  11787. ac_status=$?
  11788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11789. (exit $ac_status); }; }; then
  11790. ac_cv_header_stdc=yes
  11791. else
  11792. echo "$as_me: failed program was:" >&5
  11793. sed 's/^/| /' conftest.$ac_ext >&5
  11794. ac_cv_header_stdc=no
  11795. fi
  11796. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11797. if test $ac_cv_header_stdc = yes; then
  11798. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11799. cat >conftest.$ac_ext <<_ACEOF
  11800. /* confdefs.h. */
  11801. _ACEOF
  11802. cat confdefs.h >>conftest.$ac_ext
  11803. cat >>conftest.$ac_ext <<_ACEOF
  11804. /* end confdefs.h. */
  11805. #include <string.h>
  11806. _ACEOF
  11807. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11808. $EGREP "memchr" >/dev/null 2>&1; then
  11809. :
  11810. else
  11811. ac_cv_header_stdc=no
  11812. fi
  11813. rm -f conftest*
  11814. fi
  11815. if test $ac_cv_header_stdc = yes; then
  11816. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11817. cat >conftest.$ac_ext <<_ACEOF
  11818. /* confdefs.h. */
  11819. _ACEOF
  11820. cat confdefs.h >>conftest.$ac_ext
  11821. cat >>conftest.$ac_ext <<_ACEOF
  11822. /* end confdefs.h. */
  11823. #include <stdlib.h>
  11824. _ACEOF
  11825. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11826. $EGREP "free" >/dev/null 2>&1; then
  11827. :
  11828. else
  11829. ac_cv_header_stdc=no
  11830. fi
  11831. rm -f conftest*
  11832. fi
  11833. if test $ac_cv_header_stdc = yes; then
  11834. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11835. if test "$cross_compiling" = yes; then
  11836. :
  11837. else
  11838. cat >conftest.$ac_ext <<_ACEOF
  11839. /* confdefs.h. */
  11840. _ACEOF
  11841. cat confdefs.h >>conftest.$ac_ext
  11842. cat >>conftest.$ac_ext <<_ACEOF
  11843. /* end confdefs.h. */
  11844. #include <ctype.h>
  11845. #if ((' ' & 0x0FF) == 0x020)
  11846. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11847. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11848. #else
  11849. # define ISLOWER(c) \
  11850. (('a' <= (c) && (c) <= 'i') \
  11851. || ('j' <= (c) && (c) <= 'r') \
  11852. || ('s' <= (c) && (c) <= 'z'))
  11853. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11854. #endif
  11855. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11856. int
  11857. main ()
  11858. {
  11859. int i;
  11860. for (i = 0; i < 256; i++)
  11861. if (XOR (islower (i), ISLOWER (i))
  11862. || toupper (i) != TOUPPER (i))
  11863. exit(2);
  11864. exit (0);
  11865. }
  11866. _ACEOF
  11867. rm -f conftest$ac_exeext
  11868. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11869. (eval $ac_link) 2>&5
  11870. ac_status=$?
  11871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11872. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11874. (eval $ac_try) 2>&5
  11875. ac_status=$?
  11876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11877. (exit $ac_status); }; }; then
  11878. :
  11879. else
  11880. echo "$as_me: program exited with status $ac_status" >&5
  11881. echo "$as_me: failed program was:" >&5
  11882. sed 's/^/| /' conftest.$ac_ext >&5
  11883. ( exit $ac_status )
  11884. ac_cv_header_stdc=no
  11885. fi
  11886. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11887. fi
  11888. fi
  11889. fi
  11890. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  11891. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  11892. if test $ac_cv_header_stdc = yes; then
  11893. cat >>confdefs.h <<\_ACEOF
  11894. #define STDC_HEADERS 1
  11895. _ACEOF
  11896. fi
  11897. for ac_header in error.h sys/cdefs.h kvm.h
  11898. do
  11899. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11900. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11901. echo "$as_me:$LINENO: checking for $ac_header" >&5
  11902. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  11903. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  11904. echo $ECHO_N "(cached) $ECHO_C" >&6
  11905. fi
  11906. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  11907. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  11908. else
  11909. # Is the header compilable?
  11910. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11911. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  11912. cat >conftest.$ac_ext <<_ACEOF
  11913. /* confdefs.h. */
  11914. _ACEOF
  11915. cat confdefs.h >>conftest.$ac_ext
  11916. cat >>conftest.$ac_ext <<_ACEOF
  11917. /* end confdefs.h. */
  11918. $ac_includes_default
  11919. #include <$ac_header>
  11920. _ACEOF
  11921. rm -f conftest.$ac_objext
  11922. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11923. (eval $ac_compile) 2>conftest.er1
  11924. ac_status=$?
  11925. grep -v '^ *+' conftest.er1 >conftest.err
  11926. rm -f conftest.er1
  11927. cat conftest.err >&5
  11928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11929. (exit $ac_status); } &&
  11930. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11932. (eval $ac_try) 2>&5
  11933. ac_status=$?
  11934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11935. (exit $ac_status); }; } &&
  11936. { ac_try='test -s conftest.$ac_objext'
  11937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11938. (eval $ac_try) 2>&5
  11939. ac_status=$?
  11940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11941. (exit $ac_status); }; }; then
  11942. ac_header_compiler=yes
  11943. else
  11944. echo "$as_me: failed program was:" >&5
  11945. sed 's/^/| /' conftest.$ac_ext >&5
  11946. ac_header_compiler=no
  11947. fi
  11948. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11949. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11950. echo "${ECHO_T}$ac_header_compiler" >&6
  11951. # Is the header present?
  11952. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11953. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  11954. cat >conftest.$ac_ext <<_ACEOF
  11955. /* confdefs.h. */
  11956. _ACEOF
  11957. cat confdefs.h >>conftest.$ac_ext
  11958. cat >>conftest.$ac_ext <<_ACEOF
  11959. /* end confdefs.h. */
  11960. #include <$ac_header>
  11961. _ACEOF
  11962. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  11963. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  11964. ac_status=$?
  11965. grep -v '^ *+' conftest.er1 >conftest.err
  11966. rm -f conftest.er1
  11967. cat conftest.err >&5
  11968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11969. (exit $ac_status); } >/dev/null; then
  11970. if test -s conftest.err; then
  11971. ac_cpp_err=$ac_c_preproc_warn_flag
  11972. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  11973. else
  11974. ac_cpp_err=
  11975. fi
  11976. else
  11977. ac_cpp_err=yes
  11978. fi
  11979. if test -z "$ac_cpp_err"; then
  11980. ac_header_preproc=yes
  11981. else
  11982. echo "$as_me: failed program was:" >&5
  11983. sed 's/^/| /' conftest.$ac_ext >&5
  11984. ac_header_preproc=no
  11985. fi
  11986. rm -f conftest.err conftest.$ac_ext
  11987. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11988. echo "${ECHO_T}$ac_header_preproc" >&6
  11989. # So? What about this header?
  11990. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11991. yes:no: )
  11992. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11993. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11994. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11995. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11996. ac_header_preproc=yes
  11997. ;;
  11998. no:yes:* )
  11999. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12000. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12001. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12002. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12003. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12004. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12005. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12006. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12007. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12008. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12009. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12010. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12011. (
  12012. cat <<\_ASBOX
  12013. ## ------------------------------------------- ##
  12014. ## Report this to debian-dpkg@lists.debian.org ##
  12015. ## ------------------------------------------- ##
  12016. _ASBOX
  12017. ) |
  12018. sed "s/^/$as_me: WARNING: /" >&2
  12019. ;;
  12020. esac
  12021. echo "$as_me:$LINENO: checking for $ac_header" >&5
  12022. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  12023. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  12024. echo $ECHO_N "(cached) $ECHO_C" >&6
  12025. else
  12026. eval "$as_ac_Header=\$ac_header_preproc"
  12027. fi
  12028. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  12029. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  12030. fi
  12031. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12032. cat >>confdefs.h <<_ACEOF
  12033. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12034. _ACEOF
  12035. fi
  12036. done
  12037. echo "$as_me:$LINENO: checking whether TIOCNOTTY is defined in sys/ioctl.h" >&5
  12038. echo $ECHO_N "checking whether TIOCNOTTY is defined in sys/ioctl.h... $ECHO_C" >&6
  12039. if test "${dpkg_cv_define_TIOCNOTTY+set}" = set; then
  12040. echo $ECHO_N "(cached) $ECHO_C" >&6
  12041. else
  12042. cat >conftest.$ac_ext <<_ACEOF
  12043. /* confdefs.h. */
  12044. _ACEOF
  12045. cat confdefs.h >>conftest.$ac_ext
  12046. cat >>conftest.$ac_ext <<_ACEOF
  12047. /* end confdefs.h. */
  12048. #include <sys/ioctl.h>
  12049. int
  12050. main ()
  12051. {
  12052. int i = TIOCNOTTY;
  12053. ;
  12054. return 0;
  12055. }
  12056. _ACEOF
  12057. rm -f conftest.$ac_objext
  12058. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12059. (eval $ac_compile) 2>conftest.er1
  12060. ac_status=$?
  12061. grep -v '^ *+' conftest.er1 >conftest.err
  12062. rm -f conftest.er1
  12063. cat conftest.err >&5
  12064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12065. (exit $ac_status); } &&
  12066. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12068. (eval $ac_try) 2>&5
  12069. ac_status=$?
  12070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12071. (exit $ac_status); }; } &&
  12072. { ac_try='test -s conftest.$ac_objext'
  12073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12074. (eval $ac_try) 2>&5
  12075. ac_status=$?
  12076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12077. (exit $ac_status); }; }; then
  12078. dpkg_cv_define_TIOCNOTTY=yes
  12079. else
  12080. echo "$as_me: failed program was:" >&5
  12081. sed 's/^/| /' conftest.$ac_ext >&5
  12082. dpkg_cv_define_TIOCNOTTY=no
  12083. fi
  12084. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12085. fi
  12086. echo "$as_me:$LINENO: result: $dpkg_cv_define_TIOCNOTTY" >&5
  12087. echo "${ECHO_T}$dpkg_cv_define_TIOCNOTTY" >&6
  12088. if test "x$dpkg_cv_define" = "xyes"; then
  12089. cat >>confdefs.h <<\_ACEOF
  12090. #define HAVE_TIOCNOTTY 1
  12091. _ACEOF
  12092. else
  12093. cat >>confdefs.h <<\_ACEOF
  12094. #define HAVE_TIOCNOTTY 0
  12095. _ACEOF
  12096. fi
  12097. # Checks for typedefs, structures, and compiler characteristics.
  12098. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  12099. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  12100. if test "${ac_cv_c_bigendian+set}" = set; then
  12101. echo $ECHO_N "(cached) $ECHO_C" >&6
  12102. else
  12103. # See if sys/param.h defines the BYTE_ORDER macro.
  12104. cat >conftest.$ac_ext <<_ACEOF
  12105. /* confdefs.h. */
  12106. _ACEOF
  12107. cat confdefs.h >>conftest.$ac_ext
  12108. cat >>conftest.$ac_ext <<_ACEOF
  12109. /* end confdefs.h. */
  12110. #include <sys/types.h>
  12111. #include <sys/param.h>
  12112. int
  12113. main ()
  12114. {
  12115. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  12116. bogus endian macros
  12117. #endif
  12118. ;
  12119. return 0;
  12120. }
  12121. _ACEOF
  12122. rm -f conftest.$ac_objext
  12123. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12124. (eval $ac_compile) 2>conftest.er1
  12125. ac_status=$?
  12126. grep -v '^ *+' conftest.er1 >conftest.err
  12127. rm -f conftest.er1
  12128. cat conftest.err >&5
  12129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12130. (exit $ac_status); } &&
  12131. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12133. (eval $ac_try) 2>&5
  12134. ac_status=$?
  12135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12136. (exit $ac_status); }; } &&
  12137. { ac_try='test -s conftest.$ac_objext'
  12138. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12139. (eval $ac_try) 2>&5
  12140. ac_status=$?
  12141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12142. (exit $ac_status); }; }; then
  12143. # It does; now see whether it defined to BIG_ENDIAN or not.
  12144. cat >conftest.$ac_ext <<_ACEOF
  12145. /* confdefs.h. */
  12146. _ACEOF
  12147. cat confdefs.h >>conftest.$ac_ext
  12148. cat >>conftest.$ac_ext <<_ACEOF
  12149. /* end confdefs.h. */
  12150. #include <sys/types.h>
  12151. #include <sys/param.h>
  12152. int
  12153. main ()
  12154. {
  12155. #if BYTE_ORDER != BIG_ENDIAN
  12156. not big endian
  12157. #endif
  12158. ;
  12159. return 0;
  12160. }
  12161. _ACEOF
  12162. rm -f conftest.$ac_objext
  12163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12164. (eval $ac_compile) 2>conftest.er1
  12165. ac_status=$?
  12166. grep -v '^ *+' conftest.er1 >conftest.err
  12167. rm -f conftest.er1
  12168. cat conftest.err >&5
  12169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12170. (exit $ac_status); } &&
  12171. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12173. (eval $ac_try) 2>&5
  12174. ac_status=$?
  12175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12176. (exit $ac_status); }; } &&
  12177. { ac_try='test -s conftest.$ac_objext'
  12178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12179. (eval $ac_try) 2>&5
  12180. ac_status=$?
  12181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12182. (exit $ac_status); }; }; then
  12183. ac_cv_c_bigendian=yes
  12184. else
  12185. echo "$as_me: failed program was:" >&5
  12186. sed 's/^/| /' conftest.$ac_ext >&5
  12187. ac_cv_c_bigendian=no
  12188. fi
  12189. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12190. else
  12191. echo "$as_me: failed program was:" >&5
  12192. sed 's/^/| /' conftest.$ac_ext >&5
  12193. # It does not; compile a test program.
  12194. if test "$cross_compiling" = yes; then
  12195. # try to guess the endianness by grepping values into an object file
  12196. ac_cv_c_bigendian=unknown
  12197. cat >conftest.$ac_ext <<_ACEOF
  12198. /* confdefs.h. */
  12199. _ACEOF
  12200. cat confdefs.h >>conftest.$ac_ext
  12201. cat >>conftest.$ac_ext <<_ACEOF
  12202. /* end confdefs.h. */
  12203. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  12204. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  12205. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  12206. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  12207. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  12208. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  12209. int
  12210. main ()
  12211. {
  12212. _ascii (); _ebcdic ();
  12213. ;
  12214. return 0;
  12215. }
  12216. _ACEOF
  12217. rm -f conftest.$ac_objext
  12218. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12219. (eval $ac_compile) 2>conftest.er1
  12220. ac_status=$?
  12221. grep -v '^ *+' conftest.er1 >conftest.err
  12222. rm -f conftest.er1
  12223. cat conftest.err >&5
  12224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12225. (exit $ac_status); } &&
  12226. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12227. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12228. (eval $ac_try) 2>&5
  12229. ac_status=$?
  12230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12231. (exit $ac_status); }; } &&
  12232. { ac_try='test -s conftest.$ac_objext'
  12233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12234. (eval $ac_try) 2>&5
  12235. ac_status=$?
  12236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12237. (exit $ac_status); }; }; then
  12238. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  12239. ac_cv_c_bigendian=yes
  12240. fi
  12241. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  12242. if test "$ac_cv_c_bigendian" = unknown; then
  12243. ac_cv_c_bigendian=no
  12244. else
  12245. # finding both strings is unlikely to happen, but who knows?
  12246. ac_cv_c_bigendian=unknown
  12247. fi
  12248. fi
  12249. else
  12250. echo "$as_me: failed program was:" >&5
  12251. sed 's/^/| /' conftest.$ac_ext >&5
  12252. fi
  12253. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12254. else
  12255. cat >conftest.$ac_ext <<_ACEOF
  12256. /* confdefs.h. */
  12257. _ACEOF
  12258. cat confdefs.h >>conftest.$ac_ext
  12259. cat >>conftest.$ac_ext <<_ACEOF
  12260. /* end confdefs.h. */
  12261. int
  12262. main ()
  12263. {
  12264. /* Are we little or big endian? From Harbison&Steele. */
  12265. union
  12266. {
  12267. long l;
  12268. char c[sizeof (long)];
  12269. } u;
  12270. u.l = 1;
  12271. exit (u.c[sizeof (long) - 1] == 1);
  12272. }
  12273. _ACEOF
  12274. rm -f conftest$ac_exeext
  12275. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  12276. (eval $ac_link) 2>&5
  12277. ac_status=$?
  12278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12279. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12281. (eval $ac_try) 2>&5
  12282. ac_status=$?
  12283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12284. (exit $ac_status); }; }; then
  12285. ac_cv_c_bigendian=no
  12286. else
  12287. echo "$as_me: program exited with status $ac_status" >&5
  12288. echo "$as_me: failed program was:" >&5
  12289. sed 's/^/| /' conftest.$ac_ext >&5
  12290. ( exit $ac_status )
  12291. ac_cv_c_bigendian=yes
  12292. fi
  12293. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12294. fi
  12295. fi
  12296. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12297. fi
  12298. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  12299. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  12300. case $ac_cv_c_bigendian in
  12301. yes)
  12302. cat >>confdefs.h <<\_ACEOF
  12303. #define WORDS_BIGENDIAN 1
  12304. _ACEOF
  12305. ;;
  12306. no)
  12307. ;;
  12308. *)
  12309. { { echo "$as_me:$LINENO: error: unknown endianness
  12310. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  12311. echo "$as_me: error: unknown endianness
  12312. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  12313. { (exit 1); exit 1; }; } ;;
  12314. esac
  12315. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  12316. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  12317. if test "${ac_cv_c_const+set}" = set; then
  12318. echo $ECHO_N "(cached) $ECHO_C" >&6
  12319. else
  12320. cat >conftest.$ac_ext <<_ACEOF
  12321. /* confdefs.h. */
  12322. _ACEOF
  12323. cat confdefs.h >>conftest.$ac_ext
  12324. cat >>conftest.$ac_ext <<_ACEOF
  12325. /* end confdefs.h. */
  12326. int
  12327. main ()
  12328. {
  12329. /* FIXME: Include the comments suggested by Paul. */
  12330. #ifndef __cplusplus
  12331. /* Ultrix mips cc rejects this. */
  12332. typedef int charset[2];
  12333. const charset x;
  12334. /* SunOS 4.1.1 cc rejects this. */
  12335. char const *const *ccp;
  12336. char **p;
  12337. /* NEC SVR4.0.2 mips cc rejects this. */
  12338. struct point {int x, y;};
  12339. static struct point const zero = {0,0};
  12340. /* AIX XL C 1.02.0.0 rejects this.
  12341. It does not let you subtract one const X* pointer from another in
  12342. an arm of an if-expression whose if-part is not a constant
  12343. expression */
  12344. const char *g = "string";
  12345. ccp = &g + (g ? g-g : 0);
  12346. /* HPUX 7.0 cc rejects these. */
  12347. ++ccp;
  12348. p = (char**) ccp;
  12349. ccp = (char const *const *) p;
  12350. { /* SCO 3.2v4 cc rejects this. */
  12351. char *t;
  12352. char const *s = 0 ? (char *) 0 : (char const *) 0;
  12353. *t++ = 0;
  12354. }
  12355. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  12356. int x[] = {25, 17};
  12357. const int *foo = &x[0];
  12358. ++foo;
  12359. }
  12360. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  12361. typedef const int *iptr;
  12362. iptr p = 0;
  12363. ++p;
  12364. }
  12365. { /* AIX XL C 1.02.0.0 rejects this saying
  12366. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  12367. struct s { int j; const int *ap[3]; };
  12368. struct s *b; b->j = 5;
  12369. }
  12370. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  12371. const int foo = 10;
  12372. }
  12373. #endif
  12374. ;
  12375. return 0;
  12376. }
  12377. _ACEOF
  12378. rm -f conftest.$ac_objext
  12379. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12380. (eval $ac_compile) 2>conftest.er1
  12381. ac_status=$?
  12382. grep -v '^ *+' conftest.er1 >conftest.err
  12383. rm -f conftest.er1
  12384. cat conftest.err >&5
  12385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12386. (exit $ac_status); } &&
  12387. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12389. (eval $ac_try) 2>&5
  12390. ac_status=$?
  12391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12392. (exit $ac_status); }; } &&
  12393. { ac_try='test -s conftest.$ac_objext'
  12394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12395. (eval $ac_try) 2>&5
  12396. ac_status=$?
  12397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12398. (exit $ac_status); }; }; then
  12399. ac_cv_c_const=yes
  12400. else
  12401. echo "$as_me: failed program was:" >&5
  12402. sed 's/^/| /' conftest.$ac_ext >&5
  12403. ac_cv_c_const=no
  12404. fi
  12405. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12406. fi
  12407. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  12408. echo "${ECHO_T}$ac_cv_c_const" >&6
  12409. if test $ac_cv_c_const = no; then
  12410. cat >>confdefs.h <<\_ACEOF
  12411. #define const
  12412. _ACEOF
  12413. fi
  12414. echo "$as_me:$LINENO: checking for inline" >&5
  12415. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  12416. if test "${ac_cv_c_inline+set}" = set; then
  12417. echo $ECHO_N "(cached) $ECHO_C" >&6
  12418. else
  12419. ac_cv_c_inline=no
  12420. for ac_kw in inline __inline__ __inline; do
  12421. cat >conftest.$ac_ext <<_ACEOF
  12422. /* confdefs.h. */
  12423. _ACEOF
  12424. cat confdefs.h >>conftest.$ac_ext
  12425. cat >>conftest.$ac_ext <<_ACEOF
  12426. /* end confdefs.h. */
  12427. #ifndef __cplusplus
  12428. typedef int foo_t;
  12429. static $ac_kw foo_t static_foo () {return 0; }
  12430. $ac_kw foo_t foo () {return 0; }
  12431. #endif
  12432. _ACEOF
  12433. rm -f conftest.$ac_objext
  12434. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12435. (eval $ac_compile) 2>conftest.er1
  12436. ac_status=$?
  12437. grep -v '^ *+' conftest.er1 >conftest.err
  12438. rm -f conftest.er1
  12439. cat conftest.err >&5
  12440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12441. (exit $ac_status); } &&
  12442. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12443. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12444. (eval $ac_try) 2>&5
  12445. ac_status=$?
  12446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12447. (exit $ac_status); }; } &&
  12448. { ac_try='test -s conftest.$ac_objext'
  12449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12450. (eval $ac_try) 2>&5
  12451. ac_status=$?
  12452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12453. (exit $ac_status); }; }; then
  12454. ac_cv_c_inline=$ac_kw; break
  12455. else
  12456. echo "$as_me: failed program was:" >&5
  12457. sed 's/^/| /' conftest.$ac_ext >&5
  12458. fi
  12459. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12460. done
  12461. fi
  12462. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  12463. echo "${ECHO_T}$ac_cv_c_inline" >&6
  12464. case $ac_cv_c_inline in
  12465. inline | yes) ;;
  12466. *)
  12467. case $ac_cv_c_inline in
  12468. no) ac_val=;;
  12469. *) ac_val=$ac_cv_c_inline;;
  12470. esac
  12471. cat >>confdefs.h <<_ACEOF
  12472. #ifndef __cplusplus
  12473. #define inline $ac_val
  12474. #endif
  12475. _ACEOF
  12476. ;;
  12477. esac
  12478. echo "$as_me:$LINENO: checking for working volatile" >&5
  12479. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  12480. if test "${ac_cv_c_volatile+set}" = set; then
  12481. echo $ECHO_N "(cached) $ECHO_C" >&6
  12482. else
  12483. cat >conftest.$ac_ext <<_ACEOF
  12484. /* confdefs.h. */
  12485. _ACEOF
  12486. cat confdefs.h >>conftest.$ac_ext
  12487. cat >>conftest.$ac_ext <<_ACEOF
  12488. /* end confdefs.h. */
  12489. int
  12490. main ()
  12491. {
  12492. volatile int x;
  12493. int * volatile y;
  12494. ;
  12495. return 0;
  12496. }
  12497. _ACEOF
  12498. rm -f conftest.$ac_objext
  12499. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12500. (eval $ac_compile) 2>conftest.er1
  12501. ac_status=$?
  12502. grep -v '^ *+' conftest.er1 >conftest.err
  12503. rm -f conftest.er1
  12504. cat conftest.err >&5
  12505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12506. (exit $ac_status); } &&
  12507. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12509. (eval $ac_try) 2>&5
  12510. ac_status=$?
  12511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12512. (exit $ac_status); }; } &&
  12513. { ac_try='test -s conftest.$ac_objext'
  12514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12515. (eval $ac_try) 2>&5
  12516. ac_status=$?
  12517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12518. (exit $ac_status); }; }; then
  12519. ac_cv_c_volatile=yes
  12520. else
  12521. echo "$as_me: failed program was:" >&5
  12522. sed 's/^/| /' conftest.$ac_ext >&5
  12523. ac_cv_c_volatile=no
  12524. fi
  12525. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12526. fi
  12527. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  12528. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  12529. if test $ac_cv_c_volatile = no; then
  12530. cat >>confdefs.h <<\_ACEOF
  12531. #define volatile
  12532. _ACEOF
  12533. fi
  12534. echo "$as_me:$LINENO: checking whether compiler supports C99 features" >&5
  12535. echo $ECHO_N "checking whether compiler supports C99 features... $ECHO_C" >&6
  12536. if test "${dpkg_cv_c99+set}" = set; then
  12537. echo $ECHO_N "(cached) $ECHO_C" >&6
  12538. else
  12539. cat >conftest.$ac_ext <<_ACEOF
  12540. /* confdefs.h. */
  12541. _ACEOF
  12542. cat confdefs.h >>conftest.$ac_ext
  12543. cat >>conftest.$ac_ext <<_ACEOF
  12544. /* end confdefs.h. */
  12545. #include <stdio.h>
  12546. #include <stdbool.h>
  12547. #include <inttypes.h>
  12548. /* Variadic macro arguments */
  12549. #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
  12550. int
  12551. main ()
  12552. {
  12553. /* Compound initialisers */
  12554. struct { int a, b; } foo = { .a = 1, .b = 2 };
  12555. /* Boolean type */
  12556. bool bar = false;
  12557. /* Specific size type */
  12558. uint32_t baz = 0;
  12559. /* C99-style for-loop declarations */
  12560. for (int i = 0; i < 10; i++)
  12561. continue;
  12562. /* Magic __func__ variable */
  12563. printf("%s", __func__);
  12564. ;
  12565. return 0;
  12566. }
  12567. _ACEOF
  12568. rm -f conftest.$ac_objext
  12569. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12570. (eval $ac_compile) 2>conftest.er1
  12571. ac_status=$?
  12572. grep -v '^ *+' conftest.er1 >conftest.err
  12573. rm -f conftest.er1
  12574. cat conftest.err >&5
  12575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12576. (exit $ac_status); } &&
  12577. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12579. (eval $ac_try) 2>&5
  12580. ac_status=$?
  12581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12582. (exit $ac_status); }; } &&
  12583. { ac_try='test -s conftest.$ac_objext'
  12584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12585. (eval $ac_try) 2>&5
  12586. ac_status=$?
  12587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12588. (exit $ac_status); }; }; then
  12589. dpkg_cv_c99=yes
  12590. else
  12591. echo "$as_me: failed program was:" >&5
  12592. sed 's/^/| /' conftest.$ac_ext >&5
  12593. dpkg_cv_c99=no
  12594. fi
  12595. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12596. fi
  12597. echo "$as_me:$LINENO: result: $dpkg_cv_c99" >&5
  12598. echo "${ECHO_T}$dpkg_cv_c99" >&6
  12599. if test "x$dpkg_cv_c99" = "xyes"; then
  12600. cat >>confdefs.h <<\_ACEOF
  12601. #define HAVE_C99 1
  12602. _ACEOF
  12603. else
  12604. echo "$as_me:$LINENO: checking what argument makes compiler support C99 features" >&5
  12605. echo $ECHO_N "checking what argument makes compiler support C99 features... $ECHO_C" >&6
  12606. if test "${dpkg_cv_c99_arg+set}" = set; then
  12607. echo $ECHO_N "(cached) $ECHO_C" >&6
  12608. else
  12609. dpkg_cv_c99_arg=none
  12610. dpkg_save_CC="$CC"
  12611. for arg in "-std=gnu99" "-std=c99" "-c99"; do
  12612. CC="$dpkg_save_CC $arg"
  12613. cat >conftest.$ac_ext <<_ACEOF
  12614. /* confdefs.h. */
  12615. _ACEOF
  12616. cat confdefs.h >>conftest.$ac_ext
  12617. cat >>conftest.$ac_ext <<_ACEOF
  12618. /* end confdefs.h. */
  12619. #include <stdio.h>
  12620. #include <stdbool.h>
  12621. #include <inttypes.h>
  12622. /* Variadic macro arguments */
  12623. #define variadic_macro(foo, ...) printf(foo, __VA_ARGS__)
  12624. int
  12625. main ()
  12626. {
  12627. /* Compound initialisers */
  12628. struct { int a, b; } foo = { .a = 1, .b = 2 };
  12629. /* Boolean type */
  12630. bool bar = false;
  12631. /* Specific size type */
  12632. uint32_t baz = 0;
  12633. /* C99-style for-loop declarations */
  12634. for (int i = 0; i < 10; i++)
  12635. continue;
  12636. /* Magic __func__ variable */
  12637. printf("%s", __func__);
  12638. ;
  12639. return 0;
  12640. }
  12641. _ACEOF
  12642. rm -f conftest.$ac_objext
  12643. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12644. (eval $ac_compile) 2>conftest.er1
  12645. ac_status=$?
  12646. grep -v '^ *+' conftest.er1 >conftest.err
  12647. rm -f conftest.er1
  12648. cat conftest.err >&5
  12649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12650. (exit $ac_status); } &&
  12651. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12653. (eval $ac_try) 2>&5
  12654. ac_status=$?
  12655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12656. (exit $ac_status); }; } &&
  12657. { ac_try='test -s conftest.$ac_objext'
  12658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12659. (eval $ac_try) 2>&5
  12660. ac_status=$?
  12661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12662. (exit $ac_status); }; }; then
  12663. dpkg_arg_worked=yes
  12664. else
  12665. echo "$as_me: failed program was:" >&5
  12666. sed 's/^/| /' conftest.$ac_ext >&5
  12667. dpkg_arg_worked=no
  12668. fi
  12669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12670. CC="$dpkg_save_CC"
  12671. if test "x$dpkg_arg_worked" = "xyes"; then
  12672. dpkg_cv_c99_arg="$arg"; break
  12673. fi
  12674. done
  12675. fi
  12676. echo "$as_me:$LINENO: result: $dpkg_cv_c99_arg" >&5
  12677. echo "${ECHO_T}$dpkg_cv_c99_arg" >&6
  12678. if test "x$dpkg_cv_c99_arg" != "xnone"; then
  12679. CC="$CC $dpkg_cv_c99_arg"
  12680. cat >>confdefs.h <<\_ACEOF
  12681. #define HAVE_C99 1
  12682. _ACEOF
  12683. fi
  12684. fi
  12685. echo "$as_me:$LINENO: checking for mode_t" >&5
  12686. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  12687. if test "${ac_cv_type_mode_t+set}" = set; then
  12688. echo $ECHO_N "(cached) $ECHO_C" >&6
  12689. else
  12690. cat >conftest.$ac_ext <<_ACEOF
  12691. /* confdefs.h. */
  12692. _ACEOF
  12693. cat confdefs.h >>conftest.$ac_ext
  12694. cat >>conftest.$ac_ext <<_ACEOF
  12695. /* end confdefs.h. */
  12696. $ac_includes_default
  12697. int
  12698. main ()
  12699. {
  12700. if ((mode_t *) 0)
  12701. return 0;
  12702. if (sizeof (mode_t))
  12703. return 0;
  12704. ;
  12705. return 0;
  12706. }
  12707. _ACEOF
  12708. rm -f conftest.$ac_objext
  12709. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12710. (eval $ac_compile) 2>conftest.er1
  12711. ac_status=$?
  12712. grep -v '^ *+' conftest.er1 >conftest.err
  12713. rm -f conftest.er1
  12714. cat conftest.err >&5
  12715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12716. (exit $ac_status); } &&
  12717. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12719. (eval $ac_try) 2>&5
  12720. ac_status=$?
  12721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12722. (exit $ac_status); }; } &&
  12723. { ac_try='test -s conftest.$ac_objext'
  12724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12725. (eval $ac_try) 2>&5
  12726. ac_status=$?
  12727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12728. (exit $ac_status); }; }; then
  12729. ac_cv_type_mode_t=yes
  12730. else
  12731. echo "$as_me: failed program was:" >&5
  12732. sed 's/^/| /' conftest.$ac_ext >&5
  12733. ac_cv_type_mode_t=no
  12734. fi
  12735. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12736. fi
  12737. echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  12738. echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  12739. if test $ac_cv_type_mode_t = yes; then
  12740. :
  12741. else
  12742. cat >>confdefs.h <<_ACEOF
  12743. #define mode_t int
  12744. _ACEOF
  12745. fi
  12746. echo "$as_me:$LINENO: checking for pid_t" >&5
  12747. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  12748. if test "${ac_cv_type_pid_t+set}" = set; then
  12749. echo $ECHO_N "(cached) $ECHO_C" >&6
  12750. else
  12751. cat >conftest.$ac_ext <<_ACEOF
  12752. /* confdefs.h. */
  12753. _ACEOF
  12754. cat confdefs.h >>conftest.$ac_ext
  12755. cat >>conftest.$ac_ext <<_ACEOF
  12756. /* end confdefs.h. */
  12757. $ac_includes_default
  12758. int
  12759. main ()
  12760. {
  12761. if ((pid_t *) 0)
  12762. return 0;
  12763. if (sizeof (pid_t))
  12764. return 0;
  12765. ;
  12766. return 0;
  12767. }
  12768. _ACEOF
  12769. rm -f conftest.$ac_objext
  12770. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12771. (eval $ac_compile) 2>conftest.er1
  12772. ac_status=$?
  12773. grep -v '^ *+' conftest.er1 >conftest.err
  12774. rm -f conftest.er1
  12775. cat conftest.err >&5
  12776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12777. (exit $ac_status); } &&
  12778. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12780. (eval $ac_try) 2>&5
  12781. ac_status=$?
  12782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12783. (exit $ac_status); }; } &&
  12784. { ac_try='test -s conftest.$ac_objext'
  12785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12786. (eval $ac_try) 2>&5
  12787. ac_status=$?
  12788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12789. (exit $ac_status); }; }; then
  12790. ac_cv_type_pid_t=yes
  12791. else
  12792. echo "$as_me: failed program was:" >&5
  12793. sed 's/^/| /' conftest.$ac_ext >&5
  12794. ac_cv_type_pid_t=no
  12795. fi
  12796. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12797. fi
  12798. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  12799. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  12800. if test $ac_cv_type_pid_t = yes; then
  12801. :
  12802. else
  12803. cat >>confdefs.h <<_ACEOF
  12804. #define pid_t int
  12805. _ACEOF
  12806. fi
  12807. echo "$as_me:$LINENO: checking for size_t" >&5
  12808. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  12809. if test "${ac_cv_type_size_t+set}" = set; then
  12810. echo $ECHO_N "(cached) $ECHO_C" >&6
  12811. else
  12812. cat >conftest.$ac_ext <<_ACEOF
  12813. /* confdefs.h. */
  12814. _ACEOF
  12815. cat confdefs.h >>conftest.$ac_ext
  12816. cat >>conftest.$ac_ext <<_ACEOF
  12817. /* end confdefs.h. */
  12818. $ac_includes_default
  12819. int
  12820. main ()
  12821. {
  12822. if ((size_t *) 0)
  12823. return 0;
  12824. if (sizeof (size_t))
  12825. return 0;
  12826. ;
  12827. return 0;
  12828. }
  12829. _ACEOF
  12830. rm -f conftest.$ac_objext
  12831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12832. (eval $ac_compile) 2>conftest.er1
  12833. ac_status=$?
  12834. grep -v '^ *+' conftest.er1 >conftest.err
  12835. rm -f conftest.er1
  12836. cat conftest.err >&5
  12837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12838. (exit $ac_status); } &&
  12839. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12841. (eval $ac_try) 2>&5
  12842. ac_status=$?
  12843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12844. (exit $ac_status); }; } &&
  12845. { ac_try='test -s conftest.$ac_objext'
  12846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12847. (eval $ac_try) 2>&5
  12848. ac_status=$?
  12849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12850. (exit $ac_status); }; }; then
  12851. ac_cv_type_size_t=yes
  12852. else
  12853. echo "$as_me: failed program was:" >&5
  12854. sed 's/^/| /' conftest.$ac_ext >&5
  12855. ac_cv_type_size_t=no
  12856. fi
  12857. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12858. fi
  12859. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  12860. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  12861. if test $ac_cv_type_size_t = yes; then
  12862. :
  12863. else
  12864. cat >>confdefs.h <<_ACEOF
  12865. #define size_t unsigned
  12866. _ACEOF
  12867. fi
  12868. echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  12869. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
  12870. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  12871. echo $ECHO_N "(cached) $ECHO_C" >&6
  12872. else
  12873. cat >conftest.$ac_ext <<_ACEOF
  12874. /* confdefs.h. */
  12875. _ACEOF
  12876. cat confdefs.h >>conftest.$ac_ext
  12877. cat >>conftest.$ac_ext <<_ACEOF
  12878. /* end confdefs.h. */
  12879. $ac_includes_default
  12880. int
  12881. main ()
  12882. {
  12883. if ((ptrdiff_t *) 0)
  12884. return 0;
  12885. if (sizeof (ptrdiff_t))
  12886. return 0;
  12887. ;
  12888. return 0;
  12889. }
  12890. _ACEOF
  12891. rm -f conftest.$ac_objext
  12892. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12893. (eval $ac_compile) 2>conftest.er1
  12894. ac_status=$?
  12895. grep -v '^ *+' conftest.er1 >conftest.err
  12896. rm -f conftest.er1
  12897. cat conftest.err >&5
  12898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12899. (exit $ac_status); } &&
  12900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12902. (eval $ac_try) 2>&5
  12903. ac_status=$?
  12904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12905. (exit $ac_status); }; } &&
  12906. { ac_try='test -s conftest.$ac_objext'
  12907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12908. (eval $ac_try) 2>&5
  12909. ac_status=$?
  12910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12911. (exit $ac_status); }; }; then
  12912. ac_cv_type_ptrdiff_t=yes
  12913. else
  12914. echo "$as_me: failed program was:" >&5
  12915. sed 's/^/| /' conftest.$ac_ext >&5
  12916. ac_cv_type_ptrdiff_t=no
  12917. fi
  12918. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12919. fi
  12920. echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  12921. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
  12922. if test $ac_cv_type_ptrdiff_t = yes; then
  12923. :
  12924. else
  12925. cat >>confdefs.h <<_ACEOF
  12926. #define ptrdiff_t int
  12927. _ACEOF
  12928. fi
  12929. echo "$as_me:$LINENO: checking for unsigned int" >&5
  12930. echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
  12931. if test "${ac_cv_type_unsigned_int+set}" = set; then
  12932. echo $ECHO_N "(cached) $ECHO_C" >&6
  12933. else
  12934. cat >conftest.$ac_ext <<_ACEOF
  12935. /* confdefs.h. */
  12936. _ACEOF
  12937. cat confdefs.h >>conftest.$ac_ext
  12938. cat >>conftest.$ac_ext <<_ACEOF
  12939. /* end confdefs.h. */
  12940. $ac_includes_default
  12941. int
  12942. main ()
  12943. {
  12944. if ((unsigned int *) 0)
  12945. return 0;
  12946. if (sizeof (unsigned int))
  12947. return 0;
  12948. ;
  12949. return 0;
  12950. }
  12951. _ACEOF
  12952. rm -f conftest.$ac_objext
  12953. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12954. (eval $ac_compile) 2>conftest.er1
  12955. ac_status=$?
  12956. grep -v '^ *+' conftest.er1 >conftest.err
  12957. rm -f conftest.er1
  12958. cat conftest.err >&5
  12959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12960. (exit $ac_status); } &&
  12961. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12963. (eval $ac_try) 2>&5
  12964. ac_status=$?
  12965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12966. (exit $ac_status); }; } &&
  12967. { ac_try='test -s conftest.$ac_objext'
  12968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12969. (eval $ac_try) 2>&5
  12970. ac_status=$?
  12971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12972. (exit $ac_status); }; }; then
  12973. ac_cv_type_unsigned_int=yes
  12974. else
  12975. echo "$as_me: failed program was:" >&5
  12976. sed 's/^/| /' conftest.$ac_ext >&5
  12977. ac_cv_type_unsigned_int=no
  12978. fi
  12979. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12980. fi
  12981. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
  12982. echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
  12983. echo "$as_me:$LINENO: checking size of unsigned int" >&5
  12984. echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
  12985. if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
  12986. echo $ECHO_N "(cached) $ECHO_C" >&6
  12987. else
  12988. if test "$ac_cv_type_unsigned_int" = yes; then
  12989. # The cast to unsigned long works around a bug in the HP C Compiler
  12990. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12991. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12992. # This bug is HP SR number 8606223364.
  12993. if test "$cross_compiling" = yes; then
  12994. # Depending upon the size, compute the lo and hi bounds.
  12995. cat >conftest.$ac_ext <<_ACEOF
  12996. /* confdefs.h. */
  12997. _ACEOF
  12998. cat confdefs.h >>conftest.$ac_ext
  12999. cat >>conftest.$ac_ext <<_ACEOF
  13000. /* end confdefs.h. */
  13001. $ac_includes_default
  13002. int
  13003. main ()
  13004. {
  13005. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
  13006. test_array [0] = 0
  13007. ;
  13008. return 0;
  13009. }
  13010. _ACEOF
  13011. rm -f conftest.$ac_objext
  13012. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13013. (eval $ac_compile) 2>conftest.er1
  13014. ac_status=$?
  13015. grep -v '^ *+' conftest.er1 >conftest.err
  13016. rm -f conftest.er1
  13017. cat conftest.err >&5
  13018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13019. (exit $ac_status); } &&
  13020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13022. (eval $ac_try) 2>&5
  13023. ac_status=$?
  13024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13025. (exit $ac_status); }; } &&
  13026. { ac_try='test -s conftest.$ac_objext'
  13027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13028. (eval $ac_try) 2>&5
  13029. ac_status=$?
  13030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13031. (exit $ac_status); }; }; then
  13032. ac_lo=0 ac_mid=0
  13033. while :; do
  13034. cat >conftest.$ac_ext <<_ACEOF
  13035. /* confdefs.h. */
  13036. _ACEOF
  13037. cat confdefs.h >>conftest.$ac_ext
  13038. cat >>conftest.$ac_ext <<_ACEOF
  13039. /* end confdefs.h. */
  13040. $ac_includes_default
  13041. int
  13042. main ()
  13043. {
  13044. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  13045. test_array [0] = 0
  13046. ;
  13047. return 0;
  13048. }
  13049. _ACEOF
  13050. rm -f conftest.$ac_objext
  13051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13052. (eval $ac_compile) 2>conftest.er1
  13053. ac_status=$?
  13054. grep -v '^ *+' conftest.er1 >conftest.err
  13055. rm -f conftest.er1
  13056. cat conftest.err >&5
  13057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13058. (exit $ac_status); } &&
  13059. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13061. (eval $ac_try) 2>&5
  13062. ac_status=$?
  13063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13064. (exit $ac_status); }; } &&
  13065. { ac_try='test -s conftest.$ac_objext'
  13066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13067. (eval $ac_try) 2>&5
  13068. ac_status=$?
  13069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13070. (exit $ac_status); }; }; then
  13071. ac_hi=$ac_mid; break
  13072. else
  13073. echo "$as_me: failed program was:" >&5
  13074. sed 's/^/| /' conftest.$ac_ext >&5
  13075. ac_lo=`expr $ac_mid + 1`
  13076. if test $ac_lo -le $ac_mid; then
  13077. ac_lo= ac_hi=
  13078. break
  13079. fi
  13080. ac_mid=`expr 2 '*' $ac_mid + 1`
  13081. fi
  13082. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13083. done
  13084. else
  13085. echo "$as_me: failed program was:" >&5
  13086. sed 's/^/| /' conftest.$ac_ext >&5
  13087. cat >conftest.$ac_ext <<_ACEOF
  13088. /* confdefs.h. */
  13089. _ACEOF
  13090. cat confdefs.h >>conftest.$ac_ext
  13091. cat >>conftest.$ac_ext <<_ACEOF
  13092. /* end confdefs.h. */
  13093. $ac_includes_default
  13094. int
  13095. main ()
  13096. {
  13097. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
  13098. test_array [0] = 0
  13099. ;
  13100. return 0;
  13101. }
  13102. _ACEOF
  13103. rm -f conftest.$ac_objext
  13104. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13105. (eval $ac_compile) 2>conftest.er1
  13106. ac_status=$?
  13107. grep -v '^ *+' conftest.er1 >conftest.err
  13108. rm -f conftest.er1
  13109. cat conftest.err >&5
  13110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13111. (exit $ac_status); } &&
  13112. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13114. (eval $ac_try) 2>&5
  13115. ac_status=$?
  13116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13117. (exit $ac_status); }; } &&
  13118. { ac_try='test -s conftest.$ac_objext'
  13119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13120. (eval $ac_try) 2>&5
  13121. ac_status=$?
  13122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13123. (exit $ac_status); }; }; then
  13124. ac_hi=-1 ac_mid=-1
  13125. while :; do
  13126. cat >conftest.$ac_ext <<_ACEOF
  13127. /* confdefs.h. */
  13128. _ACEOF
  13129. cat confdefs.h >>conftest.$ac_ext
  13130. cat >>conftest.$ac_ext <<_ACEOF
  13131. /* end confdefs.h. */
  13132. $ac_includes_default
  13133. int
  13134. main ()
  13135. {
  13136. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
  13137. test_array [0] = 0
  13138. ;
  13139. return 0;
  13140. }
  13141. _ACEOF
  13142. rm -f conftest.$ac_objext
  13143. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13144. (eval $ac_compile) 2>conftest.er1
  13145. ac_status=$?
  13146. grep -v '^ *+' conftest.er1 >conftest.err
  13147. rm -f conftest.er1
  13148. cat conftest.err >&5
  13149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13150. (exit $ac_status); } &&
  13151. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13153. (eval $ac_try) 2>&5
  13154. ac_status=$?
  13155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13156. (exit $ac_status); }; } &&
  13157. { ac_try='test -s conftest.$ac_objext'
  13158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13159. (eval $ac_try) 2>&5
  13160. ac_status=$?
  13161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13162. (exit $ac_status); }; }; then
  13163. ac_lo=$ac_mid; break
  13164. else
  13165. echo "$as_me: failed program was:" >&5
  13166. sed 's/^/| /' conftest.$ac_ext >&5
  13167. ac_hi=`expr '(' $ac_mid ')' - 1`
  13168. if test $ac_mid -le $ac_hi; then
  13169. ac_lo= ac_hi=
  13170. break
  13171. fi
  13172. ac_mid=`expr 2 '*' $ac_mid`
  13173. fi
  13174. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13175. done
  13176. else
  13177. echo "$as_me: failed program was:" >&5
  13178. sed 's/^/| /' conftest.$ac_ext >&5
  13179. ac_lo= ac_hi=
  13180. fi
  13181. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13182. fi
  13183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13184. # Binary search between lo and hi bounds.
  13185. while test "x$ac_lo" != "x$ac_hi"; do
  13186. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13187. cat >conftest.$ac_ext <<_ACEOF
  13188. /* confdefs.h. */
  13189. _ACEOF
  13190. cat confdefs.h >>conftest.$ac_ext
  13191. cat >>conftest.$ac_ext <<_ACEOF
  13192. /* end confdefs.h. */
  13193. $ac_includes_default
  13194. int
  13195. main ()
  13196. {
  13197. static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
  13198. test_array [0] = 0
  13199. ;
  13200. return 0;
  13201. }
  13202. _ACEOF
  13203. rm -f conftest.$ac_objext
  13204. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13205. (eval $ac_compile) 2>conftest.er1
  13206. ac_status=$?
  13207. grep -v '^ *+' conftest.er1 >conftest.err
  13208. rm -f conftest.er1
  13209. cat conftest.err >&5
  13210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13211. (exit $ac_status); } &&
  13212. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13214. (eval $ac_try) 2>&5
  13215. ac_status=$?
  13216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13217. (exit $ac_status); }; } &&
  13218. { ac_try='test -s conftest.$ac_objext'
  13219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13220. (eval $ac_try) 2>&5
  13221. ac_status=$?
  13222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13223. (exit $ac_status); }; }; then
  13224. ac_hi=$ac_mid
  13225. else
  13226. echo "$as_me: failed program was:" >&5
  13227. sed 's/^/| /' conftest.$ac_ext >&5
  13228. ac_lo=`expr '(' $ac_mid ')' + 1`
  13229. fi
  13230. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13231. done
  13232. case $ac_lo in
  13233. ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
  13234. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
  13235. See \`config.log' for more details." >&5
  13236. echo "$as_me: error: cannot compute sizeof (unsigned int), 77
  13237. See \`config.log' for more details." >&2;}
  13238. { (exit 1); exit 1; }; } ;;
  13239. esac
  13240. else
  13241. if test "$cross_compiling" = yes; then
  13242. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  13243. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  13244. { (exit 1); exit 1; }; }
  13245. else
  13246. cat >conftest.$ac_ext <<_ACEOF
  13247. /* confdefs.h. */
  13248. _ACEOF
  13249. cat confdefs.h >>conftest.$ac_ext
  13250. cat >>conftest.$ac_ext <<_ACEOF
  13251. /* end confdefs.h. */
  13252. $ac_includes_default
  13253. long longval () { return (long) (sizeof (unsigned int)); }
  13254. unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
  13255. #include <stdio.h>
  13256. #include <stdlib.h>
  13257. int
  13258. main ()
  13259. {
  13260. FILE *f = fopen ("conftest.val", "w");
  13261. if (! f)
  13262. exit (1);
  13263. if (((long) (sizeof (unsigned int))) < 0)
  13264. {
  13265. long i = longval ();
  13266. if (i != ((long) (sizeof (unsigned int))))
  13267. exit (1);
  13268. fprintf (f, "%ld\n", i);
  13269. }
  13270. else
  13271. {
  13272. unsigned long i = ulongval ();
  13273. if (i != ((long) (sizeof (unsigned int))))
  13274. exit (1);
  13275. fprintf (f, "%lu\n", i);
  13276. }
  13277. exit (ferror (f) || fclose (f) != 0);
  13278. ;
  13279. return 0;
  13280. }
  13281. _ACEOF
  13282. rm -f conftest$ac_exeext
  13283. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13284. (eval $ac_link) 2>&5
  13285. ac_status=$?
  13286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13287. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13289. (eval $ac_try) 2>&5
  13290. ac_status=$?
  13291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13292. (exit $ac_status); }; }; then
  13293. ac_cv_sizeof_unsigned_int=`cat conftest.val`
  13294. else
  13295. echo "$as_me: program exited with status $ac_status" >&5
  13296. echo "$as_me: failed program was:" >&5
  13297. sed 's/^/| /' conftest.$ac_ext >&5
  13298. ( exit $ac_status )
  13299. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
  13300. See \`config.log' for more details." >&5
  13301. echo "$as_me: error: cannot compute sizeof (unsigned int), 77
  13302. See \`config.log' for more details." >&2;}
  13303. { (exit 1); exit 1; }; }
  13304. fi
  13305. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13306. fi
  13307. fi
  13308. rm -f conftest.val
  13309. else
  13310. ac_cv_sizeof_unsigned_int=0
  13311. fi
  13312. fi
  13313. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
  13314. echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
  13315. cat >>confdefs.h <<_ACEOF
  13316. #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  13317. _ACEOF
  13318. echo "$as_me:$LINENO: checking for unsigned long" >&5
  13319. echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
  13320. if test "${ac_cv_type_unsigned_long+set}" = set; then
  13321. echo $ECHO_N "(cached) $ECHO_C" >&6
  13322. else
  13323. cat >conftest.$ac_ext <<_ACEOF
  13324. /* confdefs.h. */
  13325. _ACEOF
  13326. cat confdefs.h >>conftest.$ac_ext
  13327. cat >>conftest.$ac_ext <<_ACEOF
  13328. /* end confdefs.h. */
  13329. $ac_includes_default
  13330. int
  13331. main ()
  13332. {
  13333. if ((unsigned long *) 0)
  13334. return 0;
  13335. if (sizeof (unsigned long))
  13336. return 0;
  13337. ;
  13338. return 0;
  13339. }
  13340. _ACEOF
  13341. rm -f conftest.$ac_objext
  13342. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13343. (eval $ac_compile) 2>conftest.er1
  13344. ac_status=$?
  13345. grep -v '^ *+' conftest.er1 >conftest.err
  13346. rm -f conftest.er1
  13347. cat conftest.err >&5
  13348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13349. (exit $ac_status); } &&
  13350. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13352. (eval $ac_try) 2>&5
  13353. ac_status=$?
  13354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13355. (exit $ac_status); }; } &&
  13356. { ac_try='test -s conftest.$ac_objext'
  13357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13358. (eval $ac_try) 2>&5
  13359. ac_status=$?
  13360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13361. (exit $ac_status); }; }; then
  13362. ac_cv_type_unsigned_long=yes
  13363. else
  13364. echo "$as_me: failed program was:" >&5
  13365. sed 's/^/| /' conftest.$ac_ext >&5
  13366. ac_cv_type_unsigned_long=no
  13367. fi
  13368. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13369. fi
  13370. echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
  13371. echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
  13372. echo "$as_me:$LINENO: checking size of unsigned long" >&5
  13373. echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
  13374. if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
  13375. echo $ECHO_N "(cached) $ECHO_C" >&6
  13376. else
  13377. if test "$ac_cv_type_unsigned_long" = yes; then
  13378. # The cast to unsigned long works around a bug in the HP C Compiler
  13379. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13380. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13381. # This bug is HP SR number 8606223364.
  13382. if test "$cross_compiling" = yes; then
  13383. # Depending upon the size, compute the lo and hi bounds.
  13384. cat >conftest.$ac_ext <<_ACEOF
  13385. /* confdefs.h. */
  13386. _ACEOF
  13387. cat confdefs.h >>conftest.$ac_ext
  13388. cat >>conftest.$ac_ext <<_ACEOF
  13389. /* end confdefs.h. */
  13390. $ac_includes_default
  13391. int
  13392. main ()
  13393. {
  13394. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
  13395. test_array [0] = 0
  13396. ;
  13397. return 0;
  13398. }
  13399. _ACEOF
  13400. rm -f conftest.$ac_objext
  13401. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13402. (eval $ac_compile) 2>conftest.er1
  13403. ac_status=$?
  13404. grep -v '^ *+' conftest.er1 >conftest.err
  13405. rm -f conftest.er1
  13406. cat conftest.err >&5
  13407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13408. (exit $ac_status); } &&
  13409. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13411. (eval $ac_try) 2>&5
  13412. ac_status=$?
  13413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13414. (exit $ac_status); }; } &&
  13415. { ac_try='test -s conftest.$ac_objext'
  13416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13417. (eval $ac_try) 2>&5
  13418. ac_status=$?
  13419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13420. (exit $ac_status); }; }; then
  13421. ac_lo=0 ac_mid=0
  13422. while :; do
  13423. cat >conftest.$ac_ext <<_ACEOF
  13424. /* confdefs.h. */
  13425. _ACEOF
  13426. cat confdefs.h >>conftest.$ac_ext
  13427. cat >>conftest.$ac_ext <<_ACEOF
  13428. /* end confdefs.h. */
  13429. $ac_includes_default
  13430. int
  13431. main ()
  13432. {
  13433. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  13434. test_array [0] = 0
  13435. ;
  13436. return 0;
  13437. }
  13438. _ACEOF
  13439. rm -f conftest.$ac_objext
  13440. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13441. (eval $ac_compile) 2>conftest.er1
  13442. ac_status=$?
  13443. grep -v '^ *+' conftest.er1 >conftest.err
  13444. rm -f conftest.er1
  13445. cat conftest.err >&5
  13446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13447. (exit $ac_status); } &&
  13448. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13450. (eval $ac_try) 2>&5
  13451. ac_status=$?
  13452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13453. (exit $ac_status); }; } &&
  13454. { ac_try='test -s conftest.$ac_objext'
  13455. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13456. (eval $ac_try) 2>&5
  13457. ac_status=$?
  13458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13459. (exit $ac_status); }; }; then
  13460. ac_hi=$ac_mid; break
  13461. else
  13462. echo "$as_me: failed program was:" >&5
  13463. sed 's/^/| /' conftest.$ac_ext >&5
  13464. ac_lo=`expr $ac_mid + 1`
  13465. if test $ac_lo -le $ac_mid; then
  13466. ac_lo= ac_hi=
  13467. break
  13468. fi
  13469. ac_mid=`expr 2 '*' $ac_mid + 1`
  13470. fi
  13471. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13472. done
  13473. else
  13474. echo "$as_me: failed program was:" >&5
  13475. sed 's/^/| /' conftest.$ac_ext >&5
  13476. cat >conftest.$ac_ext <<_ACEOF
  13477. /* confdefs.h. */
  13478. _ACEOF
  13479. cat confdefs.h >>conftest.$ac_ext
  13480. cat >>conftest.$ac_ext <<_ACEOF
  13481. /* end confdefs.h. */
  13482. $ac_includes_default
  13483. int
  13484. main ()
  13485. {
  13486. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
  13487. test_array [0] = 0
  13488. ;
  13489. return 0;
  13490. }
  13491. _ACEOF
  13492. rm -f conftest.$ac_objext
  13493. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13494. (eval $ac_compile) 2>conftest.er1
  13495. ac_status=$?
  13496. grep -v '^ *+' conftest.er1 >conftest.err
  13497. rm -f conftest.er1
  13498. cat conftest.err >&5
  13499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13500. (exit $ac_status); } &&
  13501. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13503. (eval $ac_try) 2>&5
  13504. ac_status=$?
  13505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13506. (exit $ac_status); }; } &&
  13507. { ac_try='test -s conftest.$ac_objext'
  13508. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13509. (eval $ac_try) 2>&5
  13510. ac_status=$?
  13511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13512. (exit $ac_status); }; }; then
  13513. ac_hi=-1 ac_mid=-1
  13514. while :; do
  13515. cat >conftest.$ac_ext <<_ACEOF
  13516. /* confdefs.h. */
  13517. _ACEOF
  13518. cat confdefs.h >>conftest.$ac_ext
  13519. cat >>conftest.$ac_ext <<_ACEOF
  13520. /* end confdefs.h. */
  13521. $ac_includes_default
  13522. int
  13523. main ()
  13524. {
  13525. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
  13526. test_array [0] = 0
  13527. ;
  13528. return 0;
  13529. }
  13530. _ACEOF
  13531. rm -f conftest.$ac_objext
  13532. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13533. (eval $ac_compile) 2>conftest.er1
  13534. ac_status=$?
  13535. grep -v '^ *+' conftest.er1 >conftest.err
  13536. rm -f conftest.er1
  13537. cat conftest.err >&5
  13538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13539. (exit $ac_status); } &&
  13540. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13542. (eval $ac_try) 2>&5
  13543. ac_status=$?
  13544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13545. (exit $ac_status); }; } &&
  13546. { ac_try='test -s conftest.$ac_objext'
  13547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13548. (eval $ac_try) 2>&5
  13549. ac_status=$?
  13550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13551. (exit $ac_status); }; }; then
  13552. ac_lo=$ac_mid; break
  13553. else
  13554. echo "$as_me: failed program was:" >&5
  13555. sed 's/^/| /' conftest.$ac_ext >&5
  13556. ac_hi=`expr '(' $ac_mid ')' - 1`
  13557. if test $ac_mid -le $ac_hi; then
  13558. ac_lo= ac_hi=
  13559. break
  13560. fi
  13561. ac_mid=`expr 2 '*' $ac_mid`
  13562. fi
  13563. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13564. done
  13565. else
  13566. echo "$as_me: failed program was:" >&5
  13567. sed 's/^/| /' conftest.$ac_ext >&5
  13568. ac_lo= ac_hi=
  13569. fi
  13570. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13571. fi
  13572. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13573. # Binary search between lo and hi bounds.
  13574. while test "x$ac_lo" != "x$ac_hi"; do
  13575. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13576. cat >conftest.$ac_ext <<_ACEOF
  13577. /* confdefs.h. */
  13578. _ACEOF
  13579. cat confdefs.h >>conftest.$ac_ext
  13580. cat >>conftest.$ac_ext <<_ACEOF
  13581. /* end confdefs.h. */
  13582. $ac_includes_default
  13583. int
  13584. main ()
  13585. {
  13586. static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
  13587. test_array [0] = 0
  13588. ;
  13589. return 0;
  13590. }
  13591. _ACEOF
  13592. rm -f conftest.$ac_objext
  13593. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13594. (eval $ac_compile) 2>conftest.er1
  13595. ac_status=$?
  13596. grep -v '^ *+' conftest.er1 >conftest.err
  13597. rm -f conftest.er1
  13598. cat conftest.err >&5
  13599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13600. (exit $ac_status); } &&
  13601. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13603. (eval $ac_try) 2>&5
  13604. ac_status=$?
  13605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13606. (exit $ac_status); }; } &&
  13607. { ac_try='test -s conftest.$ac_objext'
  13608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13609. (eval $ac_try) 2>&5
  13610. ac_status=$?
  13611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13612. (exit $ac_status); }; }; then
  13613. ac_hi=$ac_mid
  13614. else
  13615. echo "$as_me: failed program was:" >&5
  13616. sed 's/^/| /' conftest.$ac_ext >&5
  13617. ac_lo=`expr '(' $ac_mid ')' + 1`
  13618. fi
  13619. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13620. done
  13621. case $ac_lo in
  13622. ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
  13623. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  13624. See \`config.log' for more details." >&5
  13625. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  13626. See \`config.log' for more details." >&2;}
  13627. { (exit 1); exit 1; }; } ;;
  13628. esac
  13629. else
  13630. if test "$cross_compiling" = yes; then
  13631. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  13632. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  13633. { (exit 1); exit 1; }; }
  13634. else
  13635. cat >conftest.$ac_ext <<_ACEOF
  13636. /* confdefs.h. */
  13637. _ACEOF
  13638. cat confdefs.h >>conftest.$ac_ext
  13639. cat >>conftest.$ac_ext <<_ACEOF
  13640. /* end confdefs.h. */
  13641. $ac_includes_default
  13642. long longval () { return (long) (sizeof (unsigned long)); }
  13643. unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
  13644. #include <stdio.h>
  13645. #include <stdlib.h>
  13646. int
  13647. main ()
  13648. {
  13649. FILE *f = fopen ("conftest.val", "w");
  13650. if (! f)
  13651. exit (1);
  13652. if (((long) (sizeof (unsigned long))) < 0)
  13653. {
  13654. long i = longval ();
  13655. if (i != ((long) (sizeof (unsigned long))))
  13656. exit (1);
  13657. fprintf (f, "%ld\n", i);
  13658. }
  13659. else
  13660. {
  13661. unsigned long i = ulongval ();
  13662. if (i != ((long) (sizeof (unsigned long))))
  13663. exit (1);
  13664. fprintf (f, "%lu\n", i);
  13665. }
  13666. exit (ferror (f) || fclose (f) != 0);
  13667. ;
  13668. return 0;
  13669. }
  13670. _ACEOF
  13671. rm -f conftest$ac_exeext
  13672. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13673. (eval $ac_link) 2>&5
  13674. ac_status=$?
  13675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13676. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13678. (eval $ac_try) 2>&5
  13679. ac_status=$?
  13680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13681. (exit $ac_status); }; }; then
  13682. ac_cv_sizeof_unsigned_long=`cat conftest.val`
  13683. else
  13684. echo "$as_me: program exited with status $ac_status" >&5
  13685. echo "$as_me: failed program was:" >&5
  13686. sed 's/^/| /' conftest.$ac_ext >&5
  13687. ( exit $ac_status )
  13688. { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
  13689. See \`config.log' for more details." >&5
  13690. echo "$as_me: error: cannot compute sizeof (unsigned long), 77
  13691. See \`config.log' for more details." >&2;}
  13692. { (exit 1); exit 1; }; }
  13693. fi
  13694. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13695. fi
  13696. fi
  13697. rm -f conftest.val
  13698. else
  13699. ac_cv_sizeof_unsigned_long=0
  13700. fi
  13701. fi
  13702. echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
  13703. echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
  13704. cat >>confdefs.h <<_ACEOF
  13705. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  13706. _ACEOF
  13707. for ac_header in unistd.h
  13708. do
  13709. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13710. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13711. echo "$as_me:$LINENO: checking for $ac_header" >&5
  13712. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13713. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13714. echo $ECHO_N "(cached) $ECHO_C" >&6
  13715. fi
  13716. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13717. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13718. else
  13719. # Is the header compilable?
  13720. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13721. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  13722. cat >conftest.$ac_ext <<_ACEOF
  13723. /* confdefs.h. */
  13724. _ACEOF
  13725. cat confdefs.h >>conftest.$ac_ext
  13726. cat >>conftest.$ac_ext <<_ACEOF
  13727. /* end confdefs.h. */
  13728. $ac_includes_default
  13729. #include <$ac_header>
  13730. _ACEOF
  13731. rm -f conftest.$ac_objext
  13732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13733. (eval $ac_compile) 2>conftest.er1
  13734. ac_status=$?
  13735. grep -v '^ *+' conftest.er1 >conftest.err
  13736. rm -f conftest.er1
  13737. cat conftest.err >&5
  13738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13739. (exit $ac_status); } &&
  13740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13742. (eval $ac_try) 2>&5
  13743. ac_status=$?
  13744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13745. (exit $ac_status); }; } &&
  13746. { ac_try='test -s conftest.$ac_objext'
  13747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13748. (eval $ac_try) 2>&5
  13749. ac_status=$?
  13750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13751. (exit $ac_status); }; }; then
  13752. ac_header_compiler=yes
  13753. else
  13754. echo "$as_me: failed program was:" >&5
  13755. sed 's/^/| /' conftest.$ac_ext >&5
  13756. ac_header_compiler=no
  13757. fi
  13758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13759. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13760. echo "${ECHO_T}$ac_header_compiler" >&6
  13761. # Is the header present?
  13762. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13763. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  13764. cat >conftest.$ac_ext <<_ACEOF
  13765. /* confdefs.h. */
  13766. _ACEOF
  13767. cat confdefs.h >>conftest.$ac_ext
  13768. cat >>conftest.$ac_ext <<_ACEOF
  13769. /* end confdefs.h. */
  13770. #include <$ac_header>
  13771. _ACEOF
  13772. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13773. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13774. ac_status=$?
  13775. grep -v '^ *+' conftest.er1 >conftest.err
  13776. rm -f conftest.er1
  13777. cat conftest.err >&5
  13778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13779. (exit $ac_status); } >/dev/null; then
  13780. if test -s conftest.err; then
  13781. ac_cpp_err=$ac_c_preproc_warn_flag
  13782. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13783. else
  13784. ac_cpp_err=
  13785. fi
  13786. else
  13787. ac_cpp_err=yes
  13788. fi
  13789. if test -z "$ac_cpp_err"; then
  13790. ac_header_preproc=yes
  13791. else
  13792. echo "$as_me: failed program was:" >&5
  13793. sed 's/^/| /' conftest.$ac_ext >&5
  13794. ac_header_preproc=no
  13795. fi
  13796. rm -f conftest.err conftest.$ac_ext
  13797. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13798. echo "${ECHO_T}$ac_header_preproc" >&6
  13799. # So? What about this header?
  13800. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  13801. yes:no: )
  13802. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13803. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13804. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13805. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13806. ac_header_preproc=yes
  13807. ;;
  13808. no:yes:* )
  13809. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13810. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13811. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13812. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13813. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13814. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13815. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13816. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13817. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13818. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13819. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13820. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13821. (
  13822. cat <<\_ASBOX
  13823. ## ------------------------------------------- ##
  13824. ## Report this to debian-dpkg@lists.debian.org ##
  13825. ## ------------------------------------------- ##
  13826. _ASBOX
  13827. ) |
  13828. sed "s/^/$as_me: WARNING: /" >&2
  13829. ;;
  13830. esac
  13831. echo "$as_me:$LINENO: checking for $ac_header" >&5
  13832. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13833. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13834. echo $ECHO_N "(cached) $ECHO_C" >&6
  13835. else
  13836. eval "$as_ac_Header=\$ac_header_preproc"
  13837. fi
  13838. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13839. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13840. fi
  13841. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13842. cat >>confdefs.h <<_ACEOF
  13843. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13844. _ACEOF
  13845. fi
  13846. done
  13847. echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
  13848. echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
  13849. if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
  13850. echo $ECHO_N "(cached) $ECHO_C" >&6
  13851. else
  13852. cat >conftest.$ac_ext <<_ACEOF
  13853. /* confdefs.h. */
  13854. _ACEOF
  13855. cat confdefs.h >>conftest.$ac_ext
  13856. cat >>conftest.$ac_ext <<_ACEOF
  13857. /* end confdefs.h. */
  13858. #include <signal.h>
  13859. /* NetBSD declares sys_siglist in unistd.h. */
  13860. #if HAVE_UNISTD_H
  13861. # include <unistd.h>
  13862. #endif
  13863. int
  13864. main ()
  13865. {
  13866. #ifndef sys_siglist
  13867. char *p = (char *) sys_siglist;
  13868. #endif
  13869. ;
  13870. return 0;
  13871. }
  13872. _ACEOF
  13873. rm -f conftest.$ac_objext
  13874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13875. (eval $ac_compile) 2>conftest.er1
  13876. ac_status=$?
  13877. grep -v '^ *+' conftest.er1 >conftest.err
  13878. rm -f conftest.er1
  13879. cat conftest.err >&5
  13880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13881. (exit $ac_status); } &&
  13882. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13884. (eval $ac_try) 2>&5
  13885. ac_status=$?
  13886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13887. (exit $ac_status); }; } &&
  13888. { ac_try='test -s conftest.$ac_objext'
  13889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13890. (eval $ac_try) 2>&5
  13891. ac_status=$?
  13892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13893. (exit $ac_status); }; }; then
  13894. ac_cv_have_decl_sys_siglist=yes
  13895. else
  13896. echo "$as_me: failed program was:" >&5
  13897. sed 's/^/| /' conftest.$ac_ext >&5
  13898. ac_cv_have_decl_sys_siglist=no
  13899. fi
  13900. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13901. fi
  13902. echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
  13903. echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
  13904. if test $ac_cv_have_decl_sys_siglist = yes; then
  13905. cat >>confdefs.h <<_ACEOF
  13906. #define HAVE_DECL_SYS_SIGLIST 1
  13907. _ACEOF
  13908. else
  13909. cat >>confdefs.h <<_ACEOF
  13910. #define HAVE_DECL_SYS_SIGLIST 0
  13911. _ACEOF
  13912. fi
  13913. echo "$as_me:$LINENO: checking whether compiler supports __attribute__" >&5
  13914. echo $ECHO_N "checking whether compiler supports __attribute__... $ECHO_C" >&6
  13915. if test "${dpkg_cv_attribute+set}" = set; then
  13916. echo $ECHO_N "(cached) $ECHO_C" >&6
  13917. else
  13918. cat >conftest.$ac_ext <<_ACEOF
  13919. /* confdefs.h. */
  13920. _ACEOF
  13921. cat confdefs.h >>conftest.$ac_ext
  13922. cat >>conftest.$ac_ext <<_ACEOF
  13923. /* end confdefs.h. */
  13924. int
  13925. main ()
  13926. {
  13927. extern int testfunction(int x) __attribute__((unused))
  13928. ;
  13929. return 0;
  13930. }
  13931. _ACEOF
  13932. rm -f conftest.$ac_objext
  13933. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13934. (eval $ac_compile) 2>conftest.er1
  13935. ac_status=$?
  13936. grep -v '^ *+' conftest.er1 >conftest.err
  13937. rm -f conftest.er1
  13938. cat conftest.err >&5
  13939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13940. (exit $ac_status); } &&
  13941. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13943. (eval $ac_try) 2>&5
  13944. ac_status=$?
  13945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13946. (exit $ac_status); }; } &&
  13947. { ac_try='test -s conftest.$ac_objext'
  13948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13949. (eval $ac_try) 2>&5
  13950. ac_status=$?
  13951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13952. (exit $ac_status); }; }; then
  13953. dpkg_cv_attribute=yes
  13954. else
  13955. echo "$as_me: failed program was:" >&5
  13956. sed 's/^/| /' conftest.$ac_ext >&5
  13957. dpkg_cv_attribute=no
  13958. fi
  13959. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13960. fi
  13961. echo "$as_me:$LINENO: result: $dpkg_cv_attribute" >&5
  13962. echo "${ECHO_T}$dpkg_cv_attribute" >&6
  13963. if test "x$dpkg_cv_attribute" = "xyes"; then
  13964. cat >>confdefs.h <<\_ACEOF
  13965. #define HAVE_C_ATTRIBUTE 1
  13966. _ACEOF
  13967. else
  13968. cat >>confdefs.h <<\_ACEOF
  13969. #define HAVE_C_ATTRIBUTE 0
  13970. _ACEOF
  13971. fi
  13972. # Checks for library functions.
  13973. echo "$as_me:$LINENO: checking for va_copy" >&5
  13974. echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
  13975. if test "${dpkg_cv_va_copy+set}" = set; then
  13976. echo $ECHO_N "(cached) $ECHO_C" >&6
  13977. else
  13978. if test "$cross_compiling" = yes; then
  13979. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  13980. See \`config.log' for more details." >&5
  13981. echo "$as_me: error: cannot run test program while cross compiling
  13982. See \`config.log' for more details." >&2;}
  13983. { (exit 1); exit 1; }; }
  13984. else
  13985. cat >conftest.$ac_ext <<_ACEOF
  13986. /* confdefs.h. */
  13987. _ACEOF
  13988. cat confdefs.h >>conftest.$ac_ext
  13989. cat >>conftest.$ac_ext <<_ACEOF
  13990. /* end confdefs.h. */
  13991. #include <stdarg.h>
  13992. main() {
  13993. va_list v1, v2;
  13994. va_copy (v1, v2);
  13995. exit (0);
  13996. }
  13997. _ACEOF
  13998. rm -f conftest$ac_exeext
  13999. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14000. (eval $ac_link) 2>&5
  14001. ac_status=$?
  14002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14003. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14005. (eval $ac_try) 2>&5
  14006. ac_status=$?
  14007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14008. (exit $ac_status); }; }; then
  14009. dpkg_cv_va_copy=yes
  14010. else
  14011. echo "$as_me: program exited with status $ac_status" >&5
  14012. echo "$as_me: failed program was:" >&5
  14013. sed 's/^/| /' conftest.$ac_ext >&5
  14014. ( exit $ac_status )
  14015. dpkg_cv_va_copy=no
  14016. fi
  14017. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14018. fi
  14019. fi
  14020. echo "$as_me:$LINENO: result: $dpkg_cv_va_copy" >&5
  14021. echo "${ECHO_T}$dpkg_cv_va_copy" >&6
  14022. if test "x$dpkg_cv_va_copy" = "xyes"; then
  14023. cat >>confdefs.h <<\_ACEOF
  14024. #define HAVE_VA_COPY 1
  14025. _ACEOF
  14026. else
  14027. echo "$as_me:$LINENO: checking for va_list assignment by copy" >&5
  14028. echo $ECHO_N "checking for va_list assignment by copy... $ECHO_C" >&6
  14029. if test "${dpkg_cv_va_list_copy+set}" = set; then
  14030. echo $ECHO_N "(cached) $ECHO_C" >&6
  14031. else
  14032. cat >conftest.$ac_ext <<_ACEOF
  14033. /* confdefs.h. */
  14034. _ACEOF
  14035. cat confdefs.h >>conftest.$ac_ext
  14036. cat >>conftest.$ac_ext <<_ACEOF
  14037. /* end confdefs.h. */
  14038. #include <stdarg.h>
  14039. int
  14040. main ()
  14041. {
  14042. va_list v1, v2;
  14043. v1 = v2;
  14044. ;
  14045. return 0;
  14046. }
  14047. _ACEOF
  14048. rm -f conftest.$ac_objext
  14049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14050. (eval $ac_compile) 2>conftest.er1
  14051. ac_status=$?
  14052. grep -v '^ *+' conftest.er1 >conftest.err
  14053. rm -f conftest.er1
  14054. cat conftest.err >&5
  14055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14056. (exit $ac_status); } &&
  14057. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14059. (eval $ac_try) 2>&5
  14060. ac_status=$?
  14061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14062. (exit $ac_status); }; } &&
  14063. { ac_try='test -s conftest.$ac_objext'
  14064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14065. (eval $ac_try) 2>&5
  14066. ac_status=$?
  14067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14068. (exit $ac_status); }; }; then
  14069. dpkg_cv_va_list_copy=yes
  14070. else
  14071. echo "$as_me: failed program was:" >&5
  14072. sed 's/^/| /' conftest.$ac_ext >&5
  14073. dpkg_cv_va_list_copy=no
  14074. fi
  14075. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14076. fi
  14077. echo "$as_me:$LINENO: result: $dpkg_cv_va_list_copy" >&5
  14078. echo "${ECHO_T}$dpkg_cv_va_list_copy" >&6
  14079. fi
  14080. for ac_func in vsnprintf snprintf strerror strsignal scandir alphasort
  14081. do
  14082. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14083. echo "$as_me:$LINENO: checking for $ac_func" >&5
  14084. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  14085. if eval "test \"\${$as_ac_var+set}\" = set"; then
  14086. echo $ECHO_N "(cached) $ECHO_C" >&6
  14087. else
  14088. cat >conftest.$ac_ext <<_ACEOF
  14089. /* confdefs.h. */
  14090. _ACEOF
  14091. cat confdefs.h >>conftest.$ac_ext
  14092. cat >>conftest.$ac_ext <<_ACEOF
  14093. /* end confdefs.h. */
  14094. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14095. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14096. #define $ac_func innocuous_$ac_func
  14097. /* System header to define __stub macros and hopefully few prototypes,
  14098. which can conflict with char $ac_func (); below.
  14099. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14100. <limits.h> exists even on freestanding compilers. */
  14101. #ifdef __STDC__
  14102. # include <limits.h>
  14103. #else
  14104. # include <assert.h>
  14105. #endif
  14106. #undef $ac_func
  14107. /* Override any gcc2 internal prototype to avoid an error. */
  14108. #ifdef __cplusplus
  14109. extern "C"
  14110. {
  14111. #endif
  14112. /* We use char because int might match the return type of a gcc2
  14113. builtin and then its argument prototype would still apply. */
  14114. char $ac_func ();
  14115. /* The GNU C library defines this for functions which it implements
  14116. to always fail with ENOSYS. Some functions are actually named
  14117. something starting with __ and the normal name is an alias. */
  14118. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  14119. choke me
  14120. #else
  14121. char (*f) () = $ac_func;
  14122. #endif
  14123. #ifdef __cplusplus
  14124. }
  14125. #endif
  14126. int
  14127. main ()
  14128. {
  14129. return f != $ac_func;
  14130. ;
  14131. return 0;
  14132. }
  14133. _ACEOF
  14134. rm -f conftest.$ac_objext conftest$ac_exeext
  14135. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14136. (eval $ac_link) 2>conftest.er1
  14137. ac_status=$?
  14138. grep -v '^ *+' conftest.er1 >conftest.err
  14139. rm -f conftest.er1
  14140. cat conftest.err >&5
  14141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14142. (exit $ac_status); } &&
  14143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14145. (eval $ac_try) 2>&5
  14146. ac_status=$?
  14147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14148. (exit $ac_status); }; } &&
  14149. { ac_try='test -s conftest$ac_exeext'
  14150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14151. (eval $ac_try) 2>&5
  14152. ac_status=$?
  14153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14154. (exit $ac_status); }; }; then
  14155. eval "$as_ac_var=yes"
  14156. else
  14157. echo "$as_me: failed program was:" >&5
  14158. sed 's/^/| /' conftest.$ac_ext >&5
  14159. eval "$as_ac_var=no"
  14160. fi
  14161. rm -f conftest.err conftest.$ac_objext \
  14162. conftest$ac_exeext conftest.$ac_ext
  14163. fi
  14164. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  14165. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  14166. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14167. cat >>confdefs.h <<_ACEOF
  14168. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14169. _ACEOF
  14170. fi
  14171. done
  14172. for ac_func in unsetenv lchown setsid bcopy isascii memcpy
  14173. do
  14174. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14175. echo "$as_me:$LINENO: checking for $ac_func" >&5
  14176. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  14177. if eval "test \"\${$as_ac_var+set}\" = set"; then
  14178. echo $ECHO_N "(cached) $ECHO_C" >&6
  14179. else
  14180. cat >conftest.$ac_ext <<_ACEOF
  14181. /* confdefs.h. */
  14182. _ACEOF
  14183. cat confdefs.h >>conftest.$ac_ext
  14184. cat >>conftest.$ac_ext <<_ACEOF
  14185. /* end confdefs.h. */
  14186. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14187. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14188. #define $ac_func innocuous_$ac_func
  14189. /* System header to define __stub macros and hopefully few prototypes,
  14190. which can conflict with char $ac_func (); below.
  14191. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14192. <limits.h> exists even on freestanding compilers. */
  14193. #ifdef __STDC__
  14194. # include <limits.h>
  14195. #else
  14196. # include <assert.h>
  14197. #endif
  14198. #undef $ac_func
  14199. /* Override any gcc2 internal prototype to avoid an error. */
  14200. #ifdef __cplusplus
  14201. extern "C"
  14202. {
  14203. #endif
  14204. /* We use char because int might match the return type of a gcc2
  14205. builtin and then its argument prototype would still apply. */
  14206. char $ac_func ();
  14207. /* The GNU C library defines this for functions which it implements
  14208. to always fail with ENOSYS. Some functions are actually named
  14209. something starting with __ and the normal name is an alias. */
  14210. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  14211. choke me
  14212. #else
  14213. char (*f) () = $ac_func;
  14214. #endif
  14215. #ifdef __cplusplus
  14216. }
  14217. #endif
  14218. int
  14219. main ()
  14220. {
  14221. return f != $ac_func;
  14222. ;
  14223. return 0;
  14224. }
  14225. _ACEOF
  14226. rm -f conftest.$ac_objext conftest$ac_exeext
  14227. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14228. (eval $ac_link) 2>conftest.er1
  14229. ac_status=$?
  14230. grep -v '^ *+' conftest.er1 >conftest.err
  14231. rm -f conftest.er1
  14232. cat conftest.err >&5
  14233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14234. (exit $ac_status); } &&
  14235. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14237. (eval $ac_try) 2>&5
  14238. ac_status=$?
  14239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14240. (exit $ac_status); }; } &&
  14241. { ac_try='test -s conftest$ac_exeext'
  14242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14243. (eval $ac_try) 2>&5
  14244. ac_status=$?
  14245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14246. (exit $ac_status); }; }; then
  14247. eval "$as_ac_var=yes"
  14248. else
  14249. echo "$as_me: failed program was:" >&5
  14250. sed 's/^/| /' conftest.$ac_ext >&5
  14251. eval "$as_ac_var=no"
  14252. fi
  14253. rm -f conftest.err conftest.$ac_objext \
  14254. conftest$ac_exeext conftest.$ac_ext
  14255. fi
  14256. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  14257. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  14258. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14259. cat >>confdefs.h <<_ACEOF
  14260. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14261. _ACEOF
  14262. fi
  14263. done
  14264. # Check whether --enable-compiler-warnings or --disable-compiler-warnings was given.
  14265. if test "${enable_compiler_warnings+set}" = set; then
  14266. enableval="$enable_compiler_warnings"
  14267. if test "x$enable_compiler_warnings" = "xyes"; then
  14268. if test "x$GCC" = "xyes"; then
  14269. CFLAGS="-Wall -Werror $CFLAGS"
  14270. fi
  14271. if test "x$GXX" = "xyes"; then
  14272. CXXFLAGS="-Wall -Werror $CXXFLAGS"
  14273. fi
  14274. fi
  14275. fi;
  14276. # Check whether --enable-compiler-optimisations or --disable-compiler-optimisations was given.
  14277. if test "${enable_compiler_optimisations+set}" = set; then
  14278. enableval="$enable_compiler_optimisations"
  14279. if test "x$enable_compiler_optimisations" = "xno"; then
  14280. CFLAGS=`echo "$CFLAGS" | sed -e "s/ -O[1-9]*\b/ -O0/g"`
  14281. fi
  14282. fi;
  14283. # Check whether --enable-linker-optimisations or --disable-linker-optimisations was given.
  14284. if test "${enable_linker_optimisations+set}" = set; then
  14285. enableval="$enable_linker_optimisations"
  14286. if test "x$enable_linker_optimisations" = "xno"; then
  14287. LDFLAGS=`echo "$LDFLAGS" | sed -e "s/ -Wl,-O[0-9]*\b//g"`
  14288. else
  14289. LDFLAGS="$LDFLAGS -Wl,-O1"
  14290. fi
  14291. else
  14292. LDFLAGS="$LDFLAGS -Wl,-O1"
  14293. fi;
  14294. ac_config_files="$ac_config_files Makefile dpkg-deb/Makefile dpkg-split/Makefile dselect/Makefile getopt/Makefile intl/Makefile lib/Makefile man/Makefile man/C/Makefile man/de/Makefile man/es/Makefile man/fr/Makefile man/ja/Makefile man/pt_BR/Makefile man/ru/Makefile man/sv/Makefile methods/Makefile origins/Makefile po/Makefile.in scripts/Makefile src/Makefile utils/Makefile"
  14295. ac_config_headers="$ac_config_headers config.h"
  14296. cat >confcache <<\_ACEOF
  14297. # This file is a shell script that caches the results of configure
  14298. # tests run on this system so they can be shared between configure
  14299. # scripts and configure runs, see configure's option --config-cache.
  14300. # It is not useful on other systems. If it contains results you don't
  14301. # want to keep, you may remove or edit it.
  14302. #
  14303. # config.status only pays attention to the cache file if you give it
  14304. # the --recheck option to rerun configure.
  14305. #
  14306. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14307. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14308. # following values.
  14309. _ACEOF
  14310. # The following way of writing the cache mishandles newlines in values,
  14311. # but we know of no workaround that is simple, portable, and efficient.
  14312. # So, don't put newlines in cache variables' values.
  14313. # Ultrix sh set writes to stderr and can't be redirected directly,
  14314. # and sets the high bit in the cache file unless we assign to the vars.
  14315. {
  14316. (set) 2>&1 |
  14317. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  14318. *ac_space=\ *)
  14319. # `set' does not quote correctly, so add quotes (double-quote
  14320. # substitution turns \\\\ into \\, and sed turns \\ into \).
  14321. sed -n \
  14322. "s/'/'\\\\''/g;
  14323. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14324. ;;
  14325. *)
  14326. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14327. sed -n \
  14328. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  14329. ;;
  14330. esac;
  14331. } |
  14332. sed '
  14333. t clear
  14334. : clear
  14335. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14336. t end
  14337. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14338. : end' >>confcache
  14339. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  14340. if test -w $cache_file; then
  14341. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  14342. cat confcache >$cache_file
  14343. else
  14344. echo "not updating unwritable cache $cache_file"
  14345. fi
  14346. fi
  14347. rm -f confcache
  14348. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14349. # Let make expand exec_prefix.
  14350. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14351. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14352. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14353. # trailing colons and then remove the whole line if VPATH becomes empty
  14354. # (actually we leave an empty line to preserve line numbers).
  14355. if test "x$srcdir" = x.; then
  14356. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14357. s/:*\$(srcdir):*/:/;
  14358. s/:*\${srcdir}:*/:/;
  14359. s/:*@srcdir@:*/:/;
  14360. s/^\([^=]*=[ ]*\):*/\1/;
  14361. s/:*$//;
  14362. s/^[^=]*=[ ]*$//;
  14363. }'
  14364. fi
  14365. DEFS=-DHAVE_CONFIG_H
  14366. ac_libobjs=
  14367. ac_ltlibobjs=
  14368. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14369. # 1. Remove the extension, and $U if already installed.
  14370. ac_i=`echo "$ac_i" |
  14371. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  14372. # 2. Add them.
  14373. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  14374. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  14375. done
  14376. LIBOBJS=$ac_libobjs
  14377. LTLIBOBJS=$ac_ltlibobjs
  14378. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14379. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  14380. Usually this means the macro was only invoked conditionally." >&5
  14381. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  14382. Usually this means the macro was only invoked conditionally." >&2;}
  14383. { (exit 1); exit 1; }; }
  14384. fi
  14385. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14386. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  14387. Usually this means the macro was only invoked conditionally." >&5
  14388. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  14389. Usually this means the macro was only invoked conditionally." >&2;}
  14390. { (exit 1); exit 1; }; }
  14391. fi
  14392. if test -z "${WITH_DSELECT_TRUE}" && test -z "${WITH_DSELECT_FALSE}"; then
  14393. { { echo "$as_me:$LINENO: error: conditional \"WITH_DSELECT\" was never defined.
  14394. Usually this means the macro was only invoked conditionally." >&5
  14395. echo "$as_me: error: conditional \"WITH_DSELECT\" was never defined.
  14396. Usually this means the macro was only invoked conditionally." >&2;}
  14397. { (exit 1); exit 1; }; }
  14398. fi
  14399. if test -z "${WITH_START_STOP_DAEMON_TRUE}" && test -z "${WITH_START_STOP_DAEMON_FALSE}"; then
  14400. { { echo "$as_me:$LINENO: error: conditional \"WITH_START_STOP_DAEMON\" was never defined.
  14401. Usually this means the macro was only invoked conditionally." >&5
  14402. echo "$as_me: error: conditional \"WITH_START_STOP_DAEMON\" was never defined.
  14403. Usually this means the macro was only invoked conditionally." >&2;}
  14404. { (exit 1); exit 1; }; }
  14405. fi
  14406. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14407. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  14408. Usually this means the macro was only invoked conditionally." >&5
  14409. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  14410. Usually this means the macro was only invoked conditionally." >&2;}
  14411. { (exit 1); exit 1; }; }
  14412. fi
  14413. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14414. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  14415. Usually this means the macro was only invoked conditionally." >&5
  14416. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  14417. Usually this means the macro was only invoked conditionally." >&2;}
  14418. { (exit 1); exit 1; }; }
  14419. fi
  14420. : ${CONFIG_STATUS=./config.status}
  14421. ac_clean_files_save=$ac_clean_files
  14422. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14423. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  14424. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14425. cat >$CONFIG_STATUS <<_ACEOF
  14426. #! $SHELL
  14427. # Generated by $as_me.
  14428. # Run this file to recreate the current configuration.
  14429. # Compiler output produced by configure, useful for debugging
  14430. # configure, is in config.log if it exists.
  14431. debug=false
  14432. ac_cs_recheck=false
  14433. ac_cs_silent=false
  14434. SHELL=\${CONFIG_SHELL-$SHELL}
  14435. _ACEOF
  14436. cat >>$CONFIG_STATUS <<\_ACEOF
  14437. ## --------------------- ##
  14438. ## M4sh Initialization. ##
  14439. ## --------------------- ##
  14440. # Be Bourne compatible
  14441. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14442. emulate sh
  14443. NULLCMD=:
  14444. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  14445. # is contrary to our usage. Disable this feature.
  14446. alias -g '${1+"$@"}'='"$@"'
  14447. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  14448. set -o posix
  14449. fi
  14450. DUALCASE=1; export DUALCASE # for MKS sh
  14451. # Support unset when possible.
  14452. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14453. as_unset=unset
  14454. else
  14455. as_unset=false
  14456. fi
  14457. # Work around bugs in pre-3.0 UWIN ksh.
  14458. $as_unset ENV MAIL MAILPATH
  14459. PS1='$ '
  14460. PS2='> '
  14461. PS4='+ '
  14462. # NLS nuisances.
  14463. for as_var in \
  14464. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  14465. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  14466. LC_TELEPHONE LC_TIME
  14467. do
  14468. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  14469. eval $as_var=C; export $as_var
  14470. else
  14471. $as_unset $as_var
  14472. fi
  14473. done
  14474. # Required to use basename.
  14475. if expr a : '\(a\)' >/dev/null 2>&1; then
  14476. as_expr=expr
  14477. else
  14478. as_expr=false
  14479. fi
  14480. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  14481. as_basename=basename
  14482. else
  14483. as_basename=false
  14484. fi
  14485. # Name of the executable.
  14486. as_me=`$as_basename "$0" ||
  14487. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14488. X"$0" : 'X\(//\)$' \| \
  14489. X"$0" : 'X\(/\)$' \| \
  14490. . : '\(.\)' 2>/dev/null ||
  14491. echo X/"$0" |
  14492. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  14493. /^X\/\(\/\/\)$/{ s//\1/; q; }
  14494. /^X\/\(\/\).*/{ s//\1/; q; }
  14495. s/.*/./; q'`
  14496. # PATH needs CR, and LINENO needs CR and PATH.
  14497. # Avoid depending upon Character Ranges.
  14498. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14499. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14500. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14501. as_cr_digits='0123456789'
  14502. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14503. # The user is always right.
  14504. if test "${PATH_SEPARATOR+set}" != set; then
  14505. echo "#! /bin/sh" >conf$$.sh
  14506. echo "exit 0" >>conf$$.sh
  14507. chmod +x conf$$.sh
  14508. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14509. PATH_SEPARATOR=';'
  14510. else
  14511. PATH_SEPARATOR=:
  14512. fi
  14513. rm -f conf$$.sh
  14514. fi
  14515. as_lineno_1=$LINENO
  14516. as_lineno_2=$LINENO
  14517. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  14518. test "x$as_lineno_1" != "x$as_lineno_2" &&
  14519. test "x$as_lineno_3" = "x$as_lineno_2" || {
  14520. # Find who we are. Look in the path if we contain no path at all
  14521. # relative or not.
  14522. case $0 in
  14523. *[\\/]* ) as_myself=$0 ;;
  14524. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14525. for as_dir in $PATH
  14526. do
  14527. IFS=$as_save_IFS
  14528. test -z "$as_dir" && as_dir=.
  14529. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14530. done
  14531. ;;
  14532. esac
  14533. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14534. # in which case we are not to be found in the path.
  14535. if test "x$as_myself" = x; then
  14536. as_myself=$0
  14537. fi
  14538. if test ! -f "$as_myself"; then
  14539. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  14540. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  14541. { (exit 1); exit 1; }; }
  14542. fi
  14543. case $CONFIG_SHELL in
  14544. '')
  14545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14546. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14547. do
  14548. IFS=$as_save_IFS
  14549. test -z "$as_dir" && as_dir=.
  14550. for as_base in sh bash ksh sh5; do
  14551. case $as_dir in
  14552. /*)
  14553. if ("$as_dir/$as_base" -c '
  14554. as_lineno_1=$LINENO
  14555. as_lineno_2=$LINENO
  14556. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  14557. test "x$as_lineno_1" != "x$as_lineno_2" &&
  14558. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  14559. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  14560. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  14561. CONFIG_SHELL=$as_dir/$as_base
  14562. export CONFIG_SHELL
  14563. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  14564. fi;;
  14565. esac
  14566. done
  14567. done
  14568. ;;
  14569. esac
  14570. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  14571. # uniformly replaced by the line number. The first 'sed' inserts a
  14572. # line-number line before each line; the second 'sed' does the real
  14573. # work. The second script uses 'N' to pair each line-number line
  14574. # with the numbered line, and appends trailing '-' during
  14575. # substitution so that $LINENO is not a special case at line end.
  14576. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  14577. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  14578. sed '=' <$as_myself |
  14579. sed '
  14580. N
  14581. s,$,-,
  14582. : loop
  14583. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  14584. t loop
  14585. s,-$,,
  14586. s,^['$as_cr_digits']*\n,,
  14587. ' >$as_me.lineno &&
  14588. chmod +x $as_me.lineno ||
  14589. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  14590. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  14591. { (exit 1); exit 1; }; }
  14592. # Don't try to exec as it changes $[0], causing all sort of problems
  14593. # (the dirname of $[0] is not the place where we might find the
  14594. # original and so on. Autoconf is especially sensible to this).
  14595. . ./$as_me.lineno
  14596. # Exit status is that of the last command.
  14597. exit
  14598. }
  14599. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  14600. *c*,-n*) ECHO_N= ECHO_C='
  14601. ' ECHO_T=' ' ;;
  14602. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  14603. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  14604. esac
  14605. if expr a : '\(a\)' >/dev/null 2>&1; then
  14606. as_expr=expr
  14607. else
  14608. as_expr=false
  14609. fi
  14610. rm -f conf$$ conf$$.exe conf$$.file
  14611. echo >conf$$.file
  14612. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14613. # We could just check for DJGPP; but this test a) works b) is more generic
  14614. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  14615. if test -f conf$$.exe; then
  14616. # Don't use ln at all; we don't have any links
  14617. as_ln_s='cp -p'
  14618. else
  14619. as_ln_s='ln -s'
  14620. fi
  14621. elif ln conf$$.file conf$$ 2>/dev/null; then
  14622. as_ln_s=ln
  14623. else
  14624. as_ln_s='cp -p'
  14625. fi
  14626. rm -f conf$$ conf$$.exe conf$$.file
  14627. if mkdir -p . 2>/dev/null; then
  14628. as_mkdir_p=:
  14629. else
  14630. test -d ./-p && rmdir ./-p
  14631. as_mkdir_p=false
  14632. fi
  14633. as_executable_p="test -f"
  14634. # Sed expression to map a string onto a valid CPP name.
  14635. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14636. # Sed expression to map a string onto a valid variable name.
  14637. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14638. # IFS
  14639. # We need space, tab and new line, in precisely that order.
  14640. as_nl='
  14641. '
  14642. IFS=" $as_nl"
  14643. # CDPATH.
  14644. $as_unset CDPATH
  14645. exec 6>&1
  14646. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  14647. # report actual input values of CONFIG_FILES etc. instead of their
  14648. # values after options handling. Logging --version etc. is OK.
  14649. exec 5>>config.log
  14650. {
  14651. echo
  14652. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14653. ## Running $as_me. ##
  14654. _ASBOX
  14655. } >&5
  14656. cat >&5 <<_CSEOF
  14657. This file was extended by dpkg $as_me 1.13.14~, which was
  14658. generated by GNU Autoconf 2.59. Invocation command line was
  14659. CONFIG_FILES = $CONFIG_FILES
  14660. CONFIG_HEADERS = $CONFIG_HEADERS
  14661. CONFIG_LINKS = $CONFIG_LINKS
  14662. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14663. $ $0 $@
  14664. _CSEOF
  14665. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  14666. echo >&5
  14667. _ACEOF
  14668. # Files that config.status was made for.
  14669. if test -n "$ac_config_files"; then
  14670. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  14671. fi
  14672. if test -n "$ac_config_headers"; then
  14673. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  14674. fi
  14675. if test -n "$ac_config_links"; then
  14676. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  14677. fi
  14678. if test -n "$ac_config_commands"; then
  14679. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  14680. fi
  14681. cat >>$CONFIG_STATUS <<\_ACEOF
  14682. ac_cs_usage="\
  14683. \`$as_me' instantiates files from templates according to the
  14684. current configuration.
  14685. Usage: $0 [OPTIONS] [FILE]...
  14686. -h, --help print this help, then exit
  14687. -V, --version print version number, then exit
  14688. -q, --quiet do not print progress messages
  14689. -d, --debug don't remove temporary files
  14690. --recheck update $as_me by reconfiguring in the same conditions
  14691. --file=FILE[:TEMPLATE]
  14692. instantiate the configuration file FILE
  14693. --header=FILE[:TEMPLATE]
  14694. instantiate the configuration header FILE
  14695. Configuration files:
  14696. $config_files
  14697. Configuration headers:
  14698. $config_headers
  14699. Configuration commands:
  14700. $config_commands
  14701. Report bugs to <bug-autoconf@gnu.org>."
  14702. _ACEOF
  14703. cat >>$CONFIG_STATUS <<_ACEOF
  14704. ac_cs_version="\\
  14705. dpkg config.status 1.13.14~
  14706. configured by $0, generated by GNU Autoconf 2.59,
  14707. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  14708. Copyright (C) 2003 Free Software Foundation, Inc.
  14709. This config.status script is free software; the Free Software Foundation
  14710. gives unlimited permission to copy, distribute and modify it."
  14711. srcdir=$srcdir
  14712. INSTALL="$INSTALL"
  14713. _ACEOF
  14714. cat >>$CONFIG_STATUS <<\_ACEOF
  14715. # If no file are specified by the user, then we need to provide default
  14716. # value. By we need to know if files were specified by the user.
  14717. ac_need_defaults=:
  14718. while test $# != 0
  14719. do
  14720. case $1 in
  14721. --*=*)
  14722. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  14723. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  14724. ac_shift=:
  14725. ;;
  14726. -*)
  14727. ac_option=$1
  14728. ac_optarg=$2
  14729. ac_shift=shift
  14730. ;;
  14731. *) # This is not an option, so the user has probably given explicit
  14732. # arguments.
  14733. ac_option=$1
  14734. ac_need_defaults=false;;
  14735. esac
  14736. case $ac_option in
  14737. # Handling of the options.
  14738. _ACEOF
  14739. cat >>$CONFIG_STATUS <<\_ACEOF
  14740. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14741. ac_cs_recheck=: ;;
  14742. --version | --vers* | -V )
  14743. echo "$ac_cs_version"; exit 0 ;;
  14744. --he | --h)
  14745. # Conflict between --help and --header
  14746. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  14747. Try \`$0 --help' for more information." >&5
  14748. echo "$as_me: error: ambiguous option: $1
  14749. Try \`$0 --help' for more information." >&2;}
  14750. { (exit 1); exit 1; }; };;
  14751. --help | --hel | -h )
  14752. echo "$ac_cs_usage"; exit 0 ;;
  14753. --debug | --d* | -d )
  14754. debug=: ;;
  14755. --file | --fil | --fi | --f )
  14756. $ac_shift
  14757. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  14758. ac_need_defaults=false;;
  14759. --header | --heade | --head | --hea )
  14760. $ac_shift
  14761. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  14762. ac_need_defaults=false;;
  14763. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14764. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14765. ac_cs_silent=: ;;
  14766. # This is an error.
  14767. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  14768. Try \`$0 --help' for more information." >&5
  14769. echo "$as_me: error: unrecognized option: $1
  14770. Try \`$0 --help' for more information." >&2;}
  14771. { (exit 1); exit 1; }; } ;;
  14772. *) ac_config_targets="$ac_config_targets $1" ;;
  14773. esac
  14774. shift
  14775. done
  14776. ac_configure_extra_args=
  14777. if $ac_cs_silent; then
  14778. exec 6>/dev/null
  14779. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14780. fi
  14781. _ACEOF
  14782. cat >>$CONFIG_STATUS <<_ACEOF
  14783. if \$ac_cs_recheck; then
  14784. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  14785. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14786. fi
  14787. _ACEOF
  14788. cat >>$CONFIG_STATUS <<_ACEOF
  14789. #
  14790. # INIT-COMMANDS section.
  14791. #
  14792. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14793. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14794. # from automake.
  14795. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14796. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14797. LINGUAS="${LINGUAS-%UNSET%}"
  14798. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14799. _ACEOF
  14800. cat >>$CONFIG_STATUS <<\_ACEOF
  14801. for ac_config_target in $ac_config_targets
  14802. do
  14803. case "$ac_config_target" in
  14804. # Handling of arguments.
  14805. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14806. "dpkg-deb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dpkg-deb/Makefile" ;;
  14807. "dpkg-split/Makefile" ) CONFIG_FILES="$CONFIG_FILES dpkg-split/Makefile" ;;
  14808. "dselect/Makefile" ) CONFIG_FILES="$CONFIG_FILES dselect/Makefile" ;;
  14809. "getopt/Makefile" ) CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
  14810. "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14811. "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14812. "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  14813. "man/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/C/Makefile" ;;
  14814. "man/de/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
  14815. "man/es/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
  14816. "man/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
  14817. "man/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
  14818. "man/pt_BR/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
  14819. "man/ru/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
  14820. "man/sv/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
  14821. "methods/Makefile" ) CONFIG_FILES="$CONFIG_FILES methods/Makefile" ;;
  14822. "origins/Makefile" ) CONFIG_FILES="$CONFIG_FILES origins/Makefile" ;;
  14823. "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14824. "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  14825. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14826. "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
  14827. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14828. "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14829. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14830. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  14831. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  14832. { (exit 1); exit 1; }; };;
  14833. esac
  14834. done
  14835. # If the user did not use the arguments to specify the items to instantiate,
  14836. # then the envvar interface is used. Set only those that are not.
  14837. # We use the long form for the default assignment because of an extremely
  14838. # bizarre bug on SunOS 4.1.3.
  14839. if $ac_need_defaults; then
  14840. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14841. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14842. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14843. fi
  14844. # Have a temporary directory for convenience. Make it in the build tree
  14845. # simply because there is no reason to put it here, and in addition,
  14846. # creating and moving files from /tmp can sometimes cause problems.
  14847. # Create a temporary directory, and hook for its removal unless debugging.
  14848. $debug ||
  14849. {
  14850. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  14851. trap '{ (exit 1); exit 1; }' 1 2 13 15
  14852. }
  14853. # Create a (secure) tmp directory for tmp files.
  14854. {
  14855. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  14856. test -n "$tmp" && test -d "$tmp"
  14857. } ||
  14858. {
  14859. tmp=./confstat$$-$RANDOM
  14860. (umask 077 && mkdir $tmp)
  14861. } ||
  14862. {
  14863. echo "$me: cannot create a temporary directory in ." >&2
  14864. { (exit 1); exit 1; }
  14865. }
  14866. _ACEOF
  14867. cat >>$CONFIG_STATUS <<_ACEOF
  14868. #
  14869. # CONFIG_FILES section.
  14870. #
  14871. # No need to generate the scripts if there are no CONFIG_FILES.
  14872. # This happens for instance when ./config.status config.h
  14873. if test -n "\$CONFIG_FILES"; then
  14874. # Protect against being on the right side of a sed subst in config.status.
  14875. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  14876. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  14877. s,@SHELL@,$SHELL,;t t
  14878. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  14879. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  14880. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  14881. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  14882. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  14883. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  14884. s,@exec_prefix@,$exec_prefix,;t t
  14885. s,@prefix@,$prefix,;t t
  14886. s,@program_transform_name@,$program_transform_name,;t t
  14887. s,@bindir@,$bindir,;t t
  14888. s,@sbindir@,$sbindir,;t t
  14889. s,@libexecdir@,$libexecdir,;t t
  14890. s,@datadir@,$datadir,;t t
  14891. s,@sysconfdir@,$sysconfdir,;t t
  14892. s,@sharedstatedir@,$sharedstatedir,;t t
  14893. s,@localstatedir@,$localstatedir,;t t
  14894. s,@libdir@,$libdir,;t t
  14895. s,@includedir@,$includedir,;t t
  14896. s,@oldincludedir@,$oldincludedir,;t t
  14897. s,@infodir@,$infodir,;t t
  14898. s,@mandir@,$mandir,;t t
  14899. s,@build_alias@,$build_alias,;t t
  14900. s,@host_alias@,$host_alias,;t t
  14901. s,@target_alias@,$target_alias,;t t
  14902. s,@DEFS@,$DEFS,;t t
  14903. s,@ECHO_C@,$ECHO_C,;t t
  14904. s,@ECHO_N@,$ECHO_N,;t t
  14905. s,@ECHO_T@,$ECHO_T,;t t
  14906. s,@LIBS@,$LIBS,;t t
  14907. s,@build@,$build,;t t
  14908. s,@build_cpu@,$build_cpu,;t t
  14909. s,@build_vendor@,$build_vendor,;t t
  14910. s,@build_os@,$build_os,;t t
  14911. s,@host@,$host,;t t
  14912. s,@host_cpu@,$host_cpu,;t t
  14913. s,@host_vendor@,$host_vendor,;t t
  14914. s,@host_os@,$host_os,;t t
  14915. s,@target@,$target,;t t
  14916. s,@target_cpu@,$target_cpu,;t t
  14917. s,@target_vendor@,$target_vendor,;t t
  14918. s,@target_os@,$target_os,;t t
  14919. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  14920. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  14921. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  14922. s,@CYGPATH_W@,$CYGPATH_W,;t t
  14923. s,@PACKAGE@,$PACKAGE,;t t
  14924. s,@VERSION@,$VERSION,;t t
  14925. s,@ACLOCAL@,$ACLOCAL,;t t
  14926. s,@AUTOCONF@,$AUTOCONF,;t t
  14927. s,@AUTOMAKE@,$AUTOMAKE,;t t
  14928. s,@AUTOHEADER@,$AUTOHEADER,;t t
  14929. s,@MAKEINFO@,$MAKEINFO,;t t
  14930. s,@install_sh@,$install_sh,;t t
  14931. s,@STRIP@,$STRIP,;t t
  14932. s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  14933. s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  14934. s,@mkdir_p@,$mkdir_p,;t t
  14935. s,@AWK@,$AWK,;t t
  14936. s,@SET_MAKE@,$SET_MAKE,;t t
  14937. s,@am__leading_dot@,$am__leading_dot,;t t
  14938. s,@AMTAR@,$AMTAR,;t t
  14939. s,@am__tar@,$am__tar,;t t
  14940. s,@am__untar@,$am__untar,;t t
  14941. s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
  14942. s,@USE_NLS@,$USE_NLS,;t t
  14943. s,@MSGFMT@,$MSGFMT,;t t
  14944. s,@GMSGFMT@,$GMSGFMT,;t t
  14945. s,@XGETTEXT@,$XGETTEXT,;t t
  14946. s,@MSGMERGE@,$MSGMERGE,;t t
  14947. s,@CC@,$CC,;t t
  14948. s,@CFLAGS@,$CFLAGS,;t t
  14949. s,@LDFLAGS@,$LDFLAGS,;t t
  14950. s,@CPPFLAGS@,$CPPFLAGS,;t t
  14951. s,@ac_ct_CC@,$ac_ct_CC,;t t
  14952. s,@EXEEXT@,$EXEEXT,;t t
  14953. s,@OBJEXT@,$OBJEXT,;t t
  14954. s,@DEPDIR@,$DEPDIR,;t t
  14955. s,@am__include@,$am__include,;t t
  14956. s,@am__quote@,$am__quote,;t t
  14957. s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  14958. s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  14959. s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  14960. s,@CCDEPMODE@,$CCDEPMODE,;t t
  14961. s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  14962. s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  14963. s,@RANLIB@,$RANLIB,;t t
  14964. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  14965. s,@CPP@,$CPP,;t t
  14966. s,@EGREP@,$EGREP,;t t
  14967. s,@ALLOCA@,$ALLOCA,;t t
  14968. s,@GLIBC21@,$GLIBC21,;t t
  14969. s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
  14970. s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
  14971. s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
  14972. s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
  14973. s,@LIBICONV@,$LIBICONV,;t t
  14974. s,@LTLIBICONV@,$LTLIBICONV,;t t
  14975. s,@INTLBISON@,$INTLBISON,;t t
  14976. s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
  14977. s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
  14978. s,@CATOBJEXT@,$CATOBJEXT,;t t
  14979. s,@DATADIRNAME@,$DATADIRNAME,;t t
  14980. s,@INSTOBJEXT@,$INSTOBJEXT,;t t
  14981. s,@GENCAT@,$GENCAT,;t t
  14982. s,@INTLOBJS@,$INTLOBJS,;t t
  14983. s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
  14984. s,@INTLLIBS@,$INTLLIBS,;t t
  14985. s,@LIBINTL@,$LIBINTL,;t t
  14986. s,@LTLIBINTL@,$LTLIBINTL,;t t
  14987. s,@POSUB@,$POSUB,;t t
  14988. s,@WITH_DSELECT_TRUE@,$WITH_DSELECT_TRUE,;t t
  14989. s,@WITH_DSELECT_FALSE@,$WITH_DSELECT_FALSE,;t t
  14990. s,@WITH_START_STOP_DAEMON_TRUE@,$WITH_START_STOP_DAEMON_TRUE,;t t
  14991. s,@WITH_START_STOP_DAEMON_FALSE@,$WITH_START_STOP_DAEMON_FALSE,;t t
  14992. s,@admindir@,$admindir,;t t
  14993. s,@CXX@,$CXX,;t t
  14994. s,@CXXFLAGS@,$CXXFLAGS,;t t
  14995. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  14996. s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  14997. s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  14998. s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  14999. s,@PERL@,$PERL,;t t
  15000. s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
  15001. s,@BZ2_LIBS@,$BZ2_LIBS,;t t
  15002. s,@SELINUX_LIBS@,$SELINUX_LIBS,;t t
  15003. s,@CURSES_LIBS@,$CURSES_LIBS,;t t
  15004. s,@SSD_LIBS@,$SSD_LIBS,;t t
  15005. s,@LIBOBJS@,$LIBOBJS,;t t
  15006. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  15007. CEOF
  15008. _ACEOF
  15009. cat >>$CONFIG_STATUS <<\_ACEOF
  15010. # Split the substitutions into bite-sized pieces for seds with
  15011. # small command number limits, like on Digital OSF/1 and HP-UX.
  15012. ac_max_sed_lines=48
  15013. ac_sed_frag=1 # Number of current file.
  15014. ac_beg=1 # First line for current file.
  15015. ac_end=$ac_max_sed_lines # Line after last line for current file.
  15016. ac_more_lines=:
  15017. ac_sed_cmds=
  15018. while $ac_more_lines; do
  15019. if test $ac_beg -gt 1; then
  15020. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  15021. else
  15022. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  15023. fi
  15024. if test ! -s $tmp/subs.frag; then
  15025. ac_more_lines=false
  15026. else
  15027. # The purpose of the label and of the branching condition is to
  15028. # speed up the sed processing (if there are no `@' at all, there
  15029. # is no need to browse any of the substitutions).
  15030. # These are the two extra sed commands mentioned above.
  15031. (echo ':t
  15032. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  15033. if test -z "$ac_sed_cmds"; then
  15034. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  15035. else
  15036. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  15037. fi
  15038. ac_sed_frag=`expr $ac_sed_frag + 1`
  15039. ac_beg=$ac_end
  15040. ac_end=`expr $ac_end + $ac_max_sed_lines`
  15041. fi
  15042. done
  15043. if test -z "$ac_sed_cmds"; then
  15044. ac_sed_cmds=cat
  15045. fi
  15046. fi # test -n "$CONFIG_FILES"
  15047. _ACEOF
  15048. cat >>$CONFIG_STATUS <<\_ACEOF
  15049. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  15050. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  15051. case $ac_file in
  15052. - | *:- | *:-:* ) # input from stdin
  15053. cat >$tmp/stdin
  15054. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  15055. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  15056. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  15057. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  15058. * ) ac_file_in=$ac_file.in ;;
  15059. esac
  15060. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  15061. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  15062. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15063. X"$ac_file" : 'X\(//\)[^/]' \| \
  15064. X"$ac_file" : 'X\(//\)$' \| \
  15065. X"$ac_file" : 'X\(/\)' \| \
  15066. . : '\(.\)' 2>/dev/null ||
  15067. echo X"$ac_file" |
  15068. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15069. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15070. /^X\(\/\/\)$/{ s//\1/; q; }
  15071. /^X\(\/\).*/{ s//\1/; q; }
  15072. s/.*/./; q'`
  15073. { if $as_mkdir_p; then
  15074. mkdir -p "$ac_dir"
  15075. else
  15076. as_dir="$ac_dir"
  15077. as_dirs=
  15078. while test ! -d "$as_dir"; do
  15079. as_dirs="$as_dir $as_dirs"
  15080. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  15081. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15082. X"$as_dir" : 'X\(//\)[^/]' \| \
  15083. X"$as_dir" : 'X\(//\)$' \| \
  15084. X"$as_dir" : 'X\(/\)' \| \
  15085. . : '\(.\)' 2>/dev/null ||
  15086. echo X"$as_dir" |
  15087. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15088. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15089. /^X\(\/\/\)$/{ s//\1/; q; }
  15090. /^X\(\/\).*/{ s//\1/; q; }
  15091. s/.*/./; q'`
  15092. done
  15093. test ! -n "$as_dirs" || mkdir $as_dirs
  15094. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  15095. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  15096. { (exit 1); exit 1; }; }; }
  15097. ac_builddir=.
  15098. if test "$ac_dir" != .; then
  15099. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  15100. # A "../" for each directory in $ac_dir_suffix.
  15101. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  15102. else
  15103. ac_dir_suffix= ac_top_builddir=
  15104. fi
  15105. case $srcdir in
  15106. .) # No --srcdir option. We are building in place.
  15107. ac_srcdir=.
  15108. if test -z "$ac_top_builddir"; then
  15109. ac_top_srcdir=.
  15110. else
  15111. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  15112. fi ;;
  15113. [\\/]* | ?:[\\/]* ) # Absolute path.
  15114. ac_srcdir=$srcdir$ac_dir_suffix;
  15115. ac_top_srcdir=$srcdir ;;
  15116. *) # Relative path.
  15117. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  15118. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  15119. esac
  15120. # Do not use `cd foo && pwd` to compute absolute paths, because
  15121. # the directories may not exist.
  15122. case `pwd` in
  15123. .) ac_abs_builddir="$ac_dir";;
  15124. *)
  15125. case "$ac_dir" in
  15126. .) ac_abs_builddir=`pwd`;;
  15127. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  15128. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  15129. esac;;
  15130. esac
  15131. case $ac_abs_builddir in
  15132. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  15133. *)
  15134. case ${ac_top_builddir}. in
  15135. .) ac_abs_top_builddir=$ac_abs_builddir;;
  15136. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  15137. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  15138. esac;;
  15139. esac
  15140. case $ac_abs_builddir in
  15141. .) ac_abs_srcdir=$ac_srcdir;;
  15142. *)
  15143. case $ac_srcdir in
  15144. .) ac_abs_srcdir=$ac_abs_builddir;;
  15145. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  15146. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  15147. esac;;
  15148. esac
  15149. case $ac_abs_builddir in
  15150. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  15151. *)
  15152. case $ac_top_srcdir in
  15153. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  15154. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  15155. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  15156. esac;;
  15157. esac
  15158. case $INSTALL in
  15159. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15160. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  15161. esac
  15162. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15163. # use $as_me), people would be surprised to read:
  15164. # /* config.h. Generated by config.status. */
  15165. if test x"$ac_file" = x-; then
  15166. configure_input=
  15167. else
  15168. configure_input="$ac_file. "
  15169. fi
  15170. configure_input=$configure_input"Generated from `echo $ac_file_in |
  15171. sed 's,.*/,,'` by configure."
  15172. # First look for the input files in the build tree, otherwise in the
  15173. # src tree.
  15174. ac_file_inputs=`IFS=:
  15175. for f in $ac_file_in; do
  15176. case $f in
  15177. -) echo $tmp/stdin ;;
  15178. [\\/$]*)
  15179. # Absolute (can't be DOS-style, as IFS=:)
  15180. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  15181. echo "$as_me: error: cannot find input file: $f" >&2;}
  15182. { (exit 1); exit 1; }; }
  15183. echo "$f";;
  15184. *) # Relative
  15185. if test -f "$f"; then
  15186. # Build tree
  15187. echo "$f"
  15188. elif test -f "$srcdir/$f"; then
  15189. # Source tree
  15190. echo "$srcdir/$f"
  15191. else
  15192. # /dev/null tree
  15193. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  15194. echo "$as_me: error: cannot find input file: $f" >&2;}
  15195. { (exit 1); exit 1; }; }
  15196. fi;;
  15197. esac
  15198. done` || { (exit 1); exit 1; }
  15199. if test x"$ac_file" != x-; then
  15200. { echo "$as_me:$LINENO: creating $ac_file" >&5
  15201. echo "$as_me: creating $ac_file" >&6;}
  15202. rm -f "$ac_file"
  15203. fi
  15204. _ACEOF
  15205. cat >>$CONFIG_STATUS <<_ACEOF
  15206. sed "$ac_vpsub
  15207. $extrasub
  15208. _ACEOF
  15209. cat >>$CONFIG_STATUS <<\_ACEOF
  15210. :t
  15211. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15212. s,@configure_input@,$configure_input,;t t
  15213. s,@srcdir@,$ac_srcdir,;t t
  15214. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  15215. s,@top_srcdir@,$ac_top_srcdir,;t t
  15216. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  15217. s,@builddir@,$ac_builddir,;t t
  15218. s,@abs_builddir@,$ac_abs_builddir,;t t
  15219. s,@top_builddir@,$ac_top_builddir,;t t
  15220. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  15221. s,@INSTALL@,$ac_INSTALL,;t t
  15222. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  15223. rm -f $tmp/stdin
  15224. if test x"$ac_file" != x-; then
  15225. mv $tmp/out $ac_file
  15226. else
  15227. cat $tmp/out
  15228. rm -f $tmp/out
  15229. fi
  15230. done
  15231. _ACEOF
  15232. cat >>$CONFIG_STATUS <<\_ACEOF
  15233. #
  15234. # CONFIG_HEADER section.
  15235. #
  15236. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  15237. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  15238. #
  15239. # ac_d sets the value in "#define NAME VALUE" lines.
  15240. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  15241. ac_dB='[ ].*$,\1#\2'
  15242. ac_dC=' '
  15243. ac_dD=',;t'
  15244. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  15245. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  15246. ac_uB='$,\1#\2define\3'
  15247. ac_uC=' '
  15248. ac_uD=',;t'
  15249. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  15250. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  15251. case $ac_file in
  15252. - | *:- | *:-:* ) # input from stdin
  15253. cat >$tmp/stdin
  15254. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  15255. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  15256. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  15257. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  15258. * ) ac_file_in=$ac_file.in ;;
  15259. esac
  15260. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  15261. echo "$as_me: creating $ac_file" >&6;}
  15262. # First look for the input files in the build tree, otherwise in the
  15263. # src tree.
  15264. ac_file_inputs=`IFS=:
  15265. for f in $ac_file_in; do
  15266. case $f in
  15267. -) echo $tmp/stdin ;;
  15268. [\\/$]*)
  15269. # Absolute (can't be DOS-style, as IFS=:)
  15270. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  15271. echo "$as_me: error: cannot find input file: $f" >&2;}
  15272. { (exit 1); exit 1; }; }
  15273. # Do quote $f, to prevent DOS paths from being IFS'd.
  15274. echo "$f";;
  15275. *) # Relative
  15276. if test -f "$f"; then
  15277. # Build tree
  15278. echo "$f"
  15279. elif test -f "$srcdir/$f"; then
  15280. # Source tree
  15281. echo "$srcdir/$f"
  15282. else
  15283. # /dev/null tree
  15284. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  15285. echo "$as_me: error: cannot find input file: $f" >&2;}
  15286. { (exit 1); exit 1; }; }
  15287. fi;;
  15288. esac
  15289. done` || { (exit 1); exit 1; }
  15290. # Remove the trailing spaces.
  15291. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  15292. _ACEOF
  15293. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  15294. # `conftest.undefs', that substitutes the proper values into
  15295. # config.h.in to produce config.h. The first handles `#define'
  15296. # templates, and the second `#undef' templates.
  15297. # And first: Protect against being on the right side of a sed subst in
  15298. # config.status. Protect against being in an unquoted here document
  15299. # in config.status.
  15300. rm -f conftest.defines conftest.undefs
  15301. # Using a here document instead of a string reduces the quoting nightmare.
  15302. # Putting comments in sed scripts is not portable.
  15303. #
  15304. # `end' is used to avoid that the second main sed command (meant for
  15305. # 0-ary CPP macros) applies to n-ary macro definitions.
  15306. # See the Autoconf documentation for `clear'.
  15307. cat >confdef2sed.sed <<\_ACEOF
  15308. s/[\\&,]/\\&/g
  15309. s,[\\$`],\\&,g
  15310. t clear
  15311. : clear
  15312. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  15313. t end
  15314. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  15315. : end
  15316. _ACEOF
  15317. # If some macros were called several times there might be several times
  15318. # the same #defines, which is useless. Nevertheless, we may not want to
  15319. # sort them, since we want the *last* AC-DEFINE to be honored.
  15320. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  15321. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  15322. rm -f confdef2sed.sed
  15323. # This sed command replaces #undef with comments. This is necessary, for
  15324. # example, in the case of _POSIX_SOURCE, which is predefined and required
  15325. # on some systems where configure will not decide to define it.
  15326. cat >>conftest.undefs <<\_ACEOF
  15327. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  15328. _ACEOF
  15329. # Break up conftest.defines because some shells have a limit on the size
  15330. # of here documents, and old seds have small limits too (100 cmds).
  15331. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  15332. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  15333. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  15334. echo ' :' >>$CONFIG_STATUS
  15335. rm -f conftest.tail
  15336. while grep . conftest.defines >/dev/null
  15337. do
  15338. # Write a limited-size here document to $tmp/defines.sed.
  15339. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  15340. # Speed up: don't consider the non `#define' lines.
  15341. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  15342. # Work around the forget-to-reset-the-flag bug.
  15343. echo 't clr' >>$CONFIG_STATUS
  15344. echo ': clr' >>$CONFIG_STATUS
  15345. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  15346. echo 'CEOF
  15347. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  15348. rm -f $tmp/in
  15349. mv $tmp/out $tmp/in
  15350. ' >>$CONFIG_STATUS
  15351. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  15352. rm -f conftest.defines
  15353. mv conftest.tail conftest.defines
  15354. done
  15355. rm -f conftest.defines
  15356. echo ' fi # grep' >>$CONFIG_STATUS
  15357. echo >>$CONFIG_STATUS
  15358. # Break up conftest.undefs because some shells have a limit on the size
  15359. # of here documents, and old seds have small limits too (100 cmds).
  15360. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  15361. rm -f conftest.tail
  15362. while grep . conftest.undefs >/dev/null
  15363. do
  15364. # Write a limited-size here document to $tmp/undefs.sed.
  15365. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  15366. # Speed up: don't consider the non `#undef'
  15367. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  15368. # Work around the forget-to-reset-the-flag bug.
  15369. echo 't clr' >>$CONFIG_STATUS
  15370. echo ': clr' >>$CONFIG_STATUS
  15371. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  15372. echo 'CEOF
  15373. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  15374. rm -f $tmp/in
  15375. mv $tmp/out $tmp/in
  15376. ' >>$CONFIG_STATUS
  15377. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  15378. rm -f conftest.undefs
  15379. mv conftest.tail conftest.undefs
  15380. done
  15381. rm -f conftest.undefs
  15382. cat >>$CONFIG_STATUS <<\_ACEOF
  15383. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15384. # use $as_me), people would be surprised to read:
  15385. # /* config.h. Generated by config.status. */
  15386. if test x"$ac_file" = x-; then
  15387. echo "/* Generated by configure. */" >$tmp/config.h
  15388. else
  15389. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  15390. fi
  15391. cat $tmp/in >>$tmp/config.h
  15392. rm -f $tmp/in
  15393. if test x"$ac_file" != x-; then
  15394. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  15395. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  15396. echo "$as_me: $ac_file is unchanged" >&6;}
  15397. else
  15398. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  15399. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15400. X"$ac_file" : 'X\(//\)[^/]' \| \
  15401. X"$ac_file" : 'X\(//\)$' \| \
  15402. X"$ac_file" : 'X\(/\)' \| \
  15403. . : '\(.\)' 2>/dev/null ||
  15404. echo X"$ac_file" |
  15405. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15406. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15407. /^X\(\/\/\)$/{ s//\1/; q; }
  15408. /^X\(\/\).*/{ s//\1/; q; }
  15409. s/.*/./; q'`
  15410. { if $as_mkdir_p; then
  15411. mkdir -p "$ac_dir"
  15412. else
  15413. as_dir="$ac_dir"
  15414. as_dirs=
  15415. while test ! -d "$as_dir"; do
  15416. as_dirs="$as_dir $as_dirs"
  15417. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  15418. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15419. X"$as_dir" : 'X\(//\)[^/]' \| \
  15420. X"$as_dir" : 'X\(//\)$' \| \
  15421. X"$as_dir" : 'X\(/\)' \| \
  15422. . : '\(.\)' 2>/dev/null ||
  15423. echo X"$as_dir" |
  15424. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15425. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15426. /^X\(\/\/\)$/{ s//\1/; q; }
  15427. /^X\(\/\).*/{ s//\1/; q; }
  15428. s/.*/./; q'`
  15429. done
  15430. test ! -n "$as_dirs" || mkdir $as_dirs
  15431. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  15432. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  15433. { (exit 1); exit 1; }; }; }
  15434. rm -f $ac_file
  15435. mv $tmp/config.h $ac_file
  15436. fi
  15437. else
  15438. cat $tmp/config.h
  15439. rm -f $tmp/config.h
  15440. fi
  15441. # Compute $ac_file's index in $config_headers.
  15442. _am_stamp_count=1
  15443. for _am_header in $config_headers :; do
  15444. case $_am_header in
  15445. $ac_file | $ac_file:* )
  15446. break ;;
  15447. * )
  15448. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15449. esac
  15450. done
  15451. echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  15452. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15453. X$ac_file : 'X\(//\)[^/]' \| \
  15454. X$ac_file : 'X\(//\)$' \| \
  15455. X$ac_file : 'X\(/\)' \| \
  15456. . : '\(.\)' 2>/dev/null ||
  15457. echo X$ac_file |
  15458. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15459. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15460. /^X\(\/\/\)$/{ s//\1/; q; }
  15461. /^X\(\/\).*/{ s//\1/; q; }
  15462. s/.*/./; q'`/stamp-h$_am_stamp_count
  15463. done
  15464. _ACEOF
  15465. cat >>$CONFIG_STATUS <<\_ACEOF
  15466. #
  15467. # CONFIG_COMMANDS section.
  15468. #
  15469. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  15470. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  15471. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  15472. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  15473. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15474. X"$ac_dest" : 'X\(//\)[^/]' \| \
  15475. X"$ac_dest" : 'X\(//\)$' \| \
  15476. X"$ac_dest" : 'X\(/\)' \| \
  15477. . : '\(.\)' 2>/dev/null ||
  15478. echo X"$ac_dest" |
  15479. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15480. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15481. /^X\(\/\/\)$/{ s//\1/; q; }
  15482. /^X\(\/\).*/{ s//\1/; q; }
  15483. s/.*/./; q'`
  15484. { if $as_mkdir_p; then
  15485. mkdir -p "$ac_dir"
  15486. else
  15487. as_dir="$ac_dir"
  15488. as_dirs=
  15489. while test ! -d "$as_dir"; do
  15490. as_dirs="$as_dir $as_dirs"
  15491. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  15492. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15493. X"$as_dir" : 'X\(//\)[^/]' \| \
  15494. X"$as_dir" : 'X\(//\)$' \| \
  15495. X"$as_dir" : 'X\(/\)' \| \
  15496. . : '\(.\)' 2>/dev/null ||
  15497. echo X"$as_dir" |
  15498. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15499. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15500. /^X\(\/\/\)$/{ s//\1/; q; }
  15501. /^X\(\/\).*/{ s//\1/; q; }
  15502. s/.*/./; q'`
  15503. done
  15504. test ! -n "$as_dirs" || mkdir $as_dirs
  15505. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  15506. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  15507. { (exit 1); exit 1; }; }; }
  15508. ac_builddir=.
  15509. if test "$ac_dir" != .; then
  15510. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  15511. # A "../" for each directory in $ac_dir_suffix.
  15512. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  15513. else
  15514. ac_dir_suffix= ac_top_builddir=
  15515. fi
  15516. case $srcdir in
  15517. .) # No --srcdir option. We are building in place.
  15518. ac_srcdir=.
  15519. if test -z "$ac_top_builddir"; then
  15520. ac_top_srcdir=.
  15521. else
  15522. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  15523. fi ;;
  15524. [\\/]* | ?:[\\/]* ) # Absolute path.
  15525. ac_srcdir=$srcdir$ac_dir_suffix;
  15526. ac_top_srcdir=$srcdir ;;
  15527. *) # Relative path.
  15528. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  15529. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  15530. esac
  15531. # Do not use `cd foo && pwd` to compute absolute paths, because
  15532. # the directories may not exist.
  15533. case `pwd` in
  15534. .) ac_abs_builddir="$ac_dir";;
  15535. *)
  15536. case "$ac_dir" in
  15537. .) ac_abs_builddir=`pwd`;;
  15538. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  15539. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  15540. esac;;
  15541. esac
  15542. case $ac_abs_builddir in
  15543. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  15544. *)
  15545. case ${ac_top_builddir}. in
  15546. .) ac_abs_top_builddir=$ac_abs_builddir;;
  15547. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  15548. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  15549. esac;;
  15550. esac
  15551. case $ac_abs_builddir in
  15552. .) ac_abs_srcdir=$ac_srcdir;;
  15553. *)
  15554. case $ac_srcdir in
  15555. .) ac_abs_srcdir=$ac_abs_builddir;;
  15556. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  15557. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  15558. esac;;
  15559. esac
  15560. case $ac_abs_builddir in
  15561. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  15562. *)
  15563. case $ac_top_srcdir in
  15564. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  15565. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  15566. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  15567. esac;;
  15568. esac
  15569. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  15570. echo "$as_me: executing $ac_dest commands" >&6;}
  15571. case $ac_dest in
  15572. default-1 )
  15573. for ac_file in $CONFIG_FILES; do
  15574. # Support "outfile[:infile[:infile...]]"
  15575. case "$ac_file" in
  15576. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  15577. esac
  15578. # PO directories have a Makefile.in generated from Makefile.in.in.
  15579. case "$ac_file" in */Makefile.in)
  15580. # Adjust a relative srcdir.
  15581. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  15582. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  15583. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  15584. # In autoconf-2.13 it is called $ac_given_srcdir.
  15585. # In autoconf-2.50 it is called $srcdir.
  15586. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  15587. case "$ac_given_srcdir" in
  15588. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  15589. /*) top_srcdir="$ac_given_srcdir" ;;
  15590. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  15591. esac
  15592. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  15593. rm -f "$ac_dir/POTFILES"
  15594. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  15595. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  15596. POMAKEFILEDEPS="POTFILES.in"
  15597. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  15598. # on $ac_dir but don't depend on user-specified configuration
  15599. # parameters.
  15600. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  15601. # The LINGUAS file contains the set of available languages.
  15602. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  15603. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  15604. fi
  15605. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  15606. # Hide the ALL_LINGUAS assigment from automake.
  15607. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  15608. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  15609. else
  15610. # The set of available languages was given in configure.in.
  15611. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  15612. fi
  15613. # Compute POFILES
  15614. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  15615. # Compute UPDATEPOFILES
  15616. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  15617. # Compute DUMMYPOFILES
  15618. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  15619. # Compute GMOFILES
  15620. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  15621. case "$ac_given_srcdir" in
  15622. .) srcdirpre= ;;
  15623. *) srcdirpre='$(srcdir)/' ;;
  15624. esac
  15625. POFILES=
  15626. UPDATEPOFILES=
  15627. DUMMYPOFILES=
  15628. GMOFILES=
  15629. for lang in $ALL_LINGUAS; do
  15630. POFILES="$POFILES $srcdirpre$lang.po"
  15631. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15632. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15633. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15634. done
  15635. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15636. # environment variable.
  15637. INST_LINGUAS=
  15638. if test -n "$ALL_LINGUAS"; then
  15639. for presentlang in $ALL_LINGUAS; do
  15640. useit=no
  15641. if test "%UNSET%" != "$LINGUAS"; then
  15642. desiredlanguages="$LINGUAS"
  15643. else
  15644. desiredlanguages="$ALL_LINGUAS"
  15645. fi
  15646. for desiredlang in $desiredlanguages; do
  15647. # Use the presentlang catalog if desiredlang is
  15648. # a. equal to presentlang, or
  15649. # b. a variant of presentlang (because in this case,
  15650. # presentlang can be used as a fallback for messages
  15651. # which are not translated in the desiredlang catalog).
  15652. case "$desiredlang" in
  15653. "$presentlang"*) useit=yes;;
  15654. esac
  15655. done
  15656. if test $useit = yes; then
  15657. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15658. fi
  15659. done
  15660. fi
  15661. CATALOGS=
  15662. if test -n "$INST_LINGUAS"; then
  15663. for lang in $INST_LINGUAS; do
  15664. CATALOGS="$CATALOGS $lang.gmo"
  15665. done
  15666. fi
  15667. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15668. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  15669. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15670. if test -f "$f"; then
  15671. case "$f" in
  15672. *.orig | *.bak | *~) ;;
  15673. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15674. esac
  15675. fi
  15676. done
  15677. fi
  15678. ;;
  15679. esac
  15680. done ;;
  15681. depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  15682. # Strip MF so we end up with the name of the file.
  15683. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15684. # Check whether this is an Automake generated Makefile or not.
  15685. # We used to match only the files named `Makefile.in', but
  15686. # some people rename them; so instead we look at the file content.
  15687. # Grep'ing the first line is not enough: some people post-process
  15688. # each Makefile.in and add a new line on top of each file to say so.
  15689. # So let's grep whole file.
  15690. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  15691. dirpart=`(dirname "$mf") 2>/dev/null ||
  15692. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15693. X"$mf" : 'X\(//\)[^/]' \| \
  15694. X"$mf" : 'X\(//\)$' \| \
  15695. X"$mf" : 'X\(/\)' \| \
  15696. . : '\(.\)' 2>/dev/null ||
  15697. echo X"$mf" |
  15698. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15699. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15700. /^X\(\/\/\)$/{ s//\1/; q; }
  15701. /^X\(\/\).*/{ s//\1/; q; }
  15702. s/.*/./; q'`
  15703. else
  15704. continue
  15705. fi
  15706. # Extract the definition of DEPDIR, am__include, and am__quote
  15707. # from the Makefile without running `make'.
  15708. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15709. test -z "$DEPDIR" && continue
  15710. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15711. test -z "am__include" && continue
  15712. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15713. # When using ansi2knr, U may be empty or an underscore; expand it
  15714. U=`sed -n 's/^U = //p' < "$mf"`
  15715. # Find all dependency output files, they are included files with
  15716. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15717. # simplest approach to changing $(DEPDIR) to its actual value in the
  15718. # expansion.
  15719. for file in `sed -n "
  15720. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15721. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15722. # Make sure the directory exists.
  15723. test -f "$dirpart/$file" && continue
  15724. fdir=`(dirname "$file") 2>/dev/null ||
  15725. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15726. X"$file" : 'X\(//\)[^/]' \| \
  15727. X"$file" : 'X\(//\)$' \| \
  15728. X"$file" : 'X\(/\)' \| \
  15729. . : '\(.\)' 2>/dev/null ||
  15730. echo X"$file" |
  15731. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15732. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15733. /^X\(\/\/\)$/{ s//\1/; q; }
  15734. /^X\(\/\).*/{ s//\1/; q; }
  15735. s/.*/./; q'`
  15736. { if $as_mkdir_p; then
  15737. mkdir -p $dirpart/$fdir
  15738. else
  15739. as_dir=$dirpart/$fdir
  15740. as_dirs=
  15741. while test ! -d "$as_dir"; do
  15742. as_dirs="$as_dir $as_dirs"
  15743. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  15744. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15745. X"$as_dir" : 'X\(//\)[^/]' \| \
  15746. X"$as_dir" : 'X\(//\)$' \| \
  15747. X"$as_dir" : 'X\(/\)' \| \
  15748. . : '\(.\)' 2>/dev/null ||
  15749. echo X"$as_dir" |
  15750. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15751. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15752. /^X\(\/\/\)$/{ s//\1/; q; }
  15753. /^X\(\/\).*/{ s//\1/; q; }
  15754. s/.*/./; q'`
  15755. done
  15756. test ! -n "$as_dirs" || mkdir $as_dirs
  15757. fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  15758. echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  15759. { (exit 1); exit 1; }; }; }
  15760. # echo "creating $dirpart/$file"
  15761. echo '# dummy' > "$dirpart/$file"
  15762. done
  15763. done
  15764. ;;
  15765. esac
  15766. done
  15767. _ACEOF
  15768. cat >>$CONFIG_STATUS <<\_ACEOF
  15769. { (exit 0); exit 0; }
  15770. _ACEOF
  15771. chmod +x $CONFIG_STATUS
  15772. ac_clean_files=$ac_clean_files_save
  15773. # configure is writing to config.log, and then calls config.status.
  15774. # config.status does its own redirection, appending to config.log.
  15775. # Unfortunately, on DOS this fails, as config.log is still kept open
  15776. # by configure, so config.status won't be able to write to it; its
  15777. # output is simply discarded. So we exec the FD to /dev/null,
  15778. # effectively closing config.log, so it can be properly (re)opened and
  15779. # appended to by config.status. When coming back to configure, we
  15780. # need to make the FD available again.
  15781. if test "$no_create" != yes; then
  15782. ac_cs_success=:
  15783. ac_config_status_args=
  15784. test "$silent" = yes &&
  15785. ac_config_status_args="$ac_config_status_args --quiet"
  15786. exec 5>/dev/null
  15787. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15788. exec 5>>config.log
  15789. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15790. # would make configure fail if this is the last instruction.
  15791. $ac_cs_success || { (exit 1); exit 1; }
  15792. fi