configure 220 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59 for nrpe 2.13.
  4. #
  5. # Report bugs to <nagios-users@lists.sourceforge.net>.
  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='nrpe'
  237. PACKAGE_TARNAME='nrpe'
  238. PACKAGE_VERSION='2.13'
  239. PACKAGE_STRING='nrpe 2.13'
  240. PACKAGE_BUGREPORT='nagios-users@lists.sourceforge.net'
  241. ac_unique_file="src/nrpe.c"
  242. ac_default_prefix=/usr/local/nagios
  243. # Factoring default headers for most tests.
  244. ac_includes_default="\
  245. #include <stdio.h>
  246. #if HAVE_SYS_TYPES_H
  247. # include <sys/types.h>
  248. #endif
  249. #if HAVE_SYS_STAT_H
  250. # include <sys/stat.h>
  251. #endif
  252. #if STDC_HEADERS
  253. # include <stdlib.h>
  254. # include <stddef.h>
  255. #else
  256. # if HAVE_STDLIB_H
  257. # include <stdlib.h>
  258. # endif
  259. #endif
  260. #if HAVE_STRING_H
  261. # if !STDC_HEADERS && HAVE_MEMORY_H
  262. # include <memory.h>
  263. # endif
  264. # include <string.h>
  265. #endif
  266. #if HAVE_STRINGS_H
  267. # include <strings.h>
  268. #endif
  269. #if HAVE_INTTYPES_H
  270. # include <inttypes.h>
  271. #else
  272. # if HAVE_STDINT_H
  273. # include <stdint.h>
  274. # endif
  275. #endif
  276. #if HAVE_UNISTD_H
  277. # include <unistd.h>
  278. #endif"
  279. 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 PKG_NAME PKG_VERSION PKG_HOME_URL PKG_REL_DATE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE CPP EGREP SNPRINTF_O OTHERLIBS SOCKETLIBS LIBWRAPLIBS HAVE_SSL log_facility nrpe_user nrpe_group NRPE_INSTALL_OPTS nrpe_port nagios_user nagios_group NAGIOS_INSTALL_OPTS TARGET_VER TARGET_OS TARGET_ARCH TARGET_PLATFORM PERL LIBOBJS LTLIBOBJS'
  280. ac_subst_files=''
  281. # Initialize some variables set by options.
  282. ac_init_help=
  283. ac_init_version=false
  284. # The variables have the same names as the options, with
  285. # dashes changed to underlines.
  286. cache_file=/dev/null
  287. exec_prefix=NONE
  288. no_create=
  289. no_recursion=
  290. prefix=NONE
  291. program_prefix=NONE
  292. program_suffix=NONE
  293. program_transform_name=s,x,x,
  294. silent=
  295. site=
  296. srcdir=
  297. verbose=
  298. x_includes=NONE
  299. x_libraries=NONE
  300. # Installation directory options.
  301. # These are left unexpanded so users can "make install exec_prefix=/foo"
  302. # and all the variables that are supposed to be based on exec_prefix
  303. # by default will actually change.
  304. # Use braces instead of parens because sh, perl, etc. also accept them.
  305. bindir='${exec_prefix}/bin'
  306. sbindir='${exec_prefix}/sbin'
  307. libexecdir='${exec_prefix}/libexec'
  308. datadir='${prefix}/share'
  309. sysconfdir='${prefix}/etc'
  310. sharedstatedir='${prefix}/com'
  311. localstatedir='${prefix}/var'
  312. libdir='${exec_prefix}/lib'
  313. includedir='${prefix}/include'
  314. oldincludedir='/usr/include'
  315. infodir='${prefix}/info'
  316. mandir='${prefix}/man'
  317. ac_prev=
  318. for ac_option
  319. do
  320. # If the previous option needs an argument, assign it.
  321. if test -n "$ac_prev"; then
  322. eval "$ac_prev=\$ac_option"
  323. ac_prev=
  324. continue
  325. fi
  326. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  327. # Accept the important Cygnus configure options, so we can diagnose typos.
  328. case $ac_option in
  329. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  330. ac_prev=bindir ;;
  331. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  332. bindir=$ac_optarg ;;
  333. -build | --build | --buil | --bui | --bu)
  334. ac_prev=build_alias ;;
  335. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  336. build_alias=$ac_optarg ;;
  337. -cache-file | --cache-file | --cache-fil | --cache-fi \
  338. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  339. ac_prev=cache_file ;;
  340. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  341. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  342. cache_file=$ac_optarg ;;
  343. --config-cache | -C)
  344. cache_file=config.cache ;;
  345. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  346. ac_prev=datadir ;;
  347. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  348. | --da=*)
  349. datadir=$ac_optarg ;;
  350. -disable-* | --disable-*)
  351. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  352. # Reject names that are not valid shell variable names.
  353. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  354. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  355. { (exit 1); exit 1; }; }
  356. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  357. eval "enable_$ac_feature=no" ;;
  358. -enable-* | --enable-*)
  359. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  360. # Reject names that are not valid shell variable names.
  361. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  362. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  363. { (exit 1); exit 1; }; }
  364. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  365. case $ac_option in
  366. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  367. *) ac_optarg=yes ;;
  368. esac
  369. eval "enable_$ac_feature='$ac_optarg'" ;;
  370. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  371. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  372. | --exec | --exe | --ex)
  373. ac_prev=exec_prefix ;;
  374. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  375. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  376. | --exec=* | --exe=* | --ex=*)
  377. exec_prefix=$ac_optarg ;;
  378. -gas | --gas | --ga | --g)
  379. # Obsolete; use --with-gas.
  380. with_gas=yes ;;
  381. -help | --help | --hel | --he | -h)
  382. ac_init_help=long ;;
  383. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  384. ac_init_help=recursive ;;
  385. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  386. ac_init_help=short ;;
  387. -host | --host | --hos | --ho)
  388. ac_prev=host_alias ;;
  389. -host=* | --host=* | --hos=* | --ho=*)
  390. host_alias=$ac_optarg ;;
  391. -includedir | --includedir | --includedi | --included | --include \
  392. | --includ | --inclu | --incl | --inc)
  393. ac_prev=includedir ;;
  394. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  395. | --includ=* | --inclu=* | --incl=* | --inc=*)
  396. includedir=$ac_optarg ;;
  397. -infodir | --infodir | --infodi | --infod | --info | --inf)
  398. ac_prev=infodir ;;
  399. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  400. infodir=$ac_optarg ;;
  401. -libdir | --libdir | --libdi | --libd)
  402. ac_prev=libdir ;;
  403. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  404. libdir=$ac_optarg ;;
  405. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  406. | --libexe | --libex | --libe)
  407. ac_prev=libexecdir ;;
  408. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  409. | --libexe=* | --libex=* | --libe=*)
  410. libexecdir=$ac_optarg ;;
  411. -localstatedir | --localstatedir | --localstatedi | --localstated \
  412. | --localstate | --localstat | --localsta | --localst \
  413. | --locals | --local | --loca | --loc | --lo)
  414. ac_prev=localstatedir ;;
  415. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  416. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  417. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  418. localstatedir=$ac_optarg ;;
  419. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  420. ac_prev=mandir ;;
  421. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  422. mandir=$ac_optarg ;;
  423. -nfp | --nfp | --nf)
  424. # Obsolete; use --without-fp.
  425. with_fp=no ;;
  426. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  427. | --no-cr | --no-c | -n)
  428. no_create=yes ;;
  429. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  430. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  431. no_recursion=yes ;;
  432. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  433. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  434. | --oldin | --oldi | --old | --ol | --o)
  435. ac_prev=oldincludedir ;;
  436. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  437. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  438. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  439. oldincludedir=$ac_optarg ;;
  440. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  441. ac_prev=prefix ;;
  442. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  443. prefix=$ac_optarg ;;
  444. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  445. | --program-pre | --program-pr | --program-p)
  446. ac_prev=program_prefix ;;
  447. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  448. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  449. program_prefix=$ac_optarg ;;
  450. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  451. | --program-suf | --program-su | --program-s)
  452. ac_prev=program_suffix ;;
  453. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  454. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  455. program_suffix=$ac_optarg ;;
  456. -program-transform-name | --program-transform-name \
  457. | --program-transform-nam | --program-transform-na \
  458. | --program-transform-n | --program-transform- \
  459. | --program-transform | --program-transfor \
  460. | --program-transfo | --program-transf \
  461. | --program-trans | --program-tran \
  462. | --progr-tra | --program-tr | --program-t)
  463. ac_prev=program_transform_name ;;
  464. -program-transform-name=* | --program-transform-name=* \
  465. | --program-transform-nam=* | --program-transform-na=* \
  466. | --program-transform-n=* | --program-transform-=* \
  467. | --program-transform=* | --program-transfor=* \
  468. | --program-transfo=* | --program-transf=* \
  469. | --program-trans=* | --program-tran=* \
  470. | --progr-tra=* | --program-tr=* | --program-t=*)
  471. program_transform_name=$ac_optarg ;;
  472. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  473. | -silent | --silent | --silen | --sile | --sil)
  474. silent=yes ;;
  475. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  476. ac_prev=sbindir ;;
  477. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  478. | --sbi=* | --sb=*)
  479. sbindir=$ac_optarg ;;
  480. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  481. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  482. | --sharedst | --shareds | --shared | --share | --shar \
  483. | --sha | --sh)
  484. ac_prev=sharedstatedir ;;
  485. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  486. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  487. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  488. | --sha=* | --sh=*)
  489. sharedstatedir=$ac_optarg ;;
  490. -site | --site | --sit)
  491. ac_prev=site ;;
  492. -site=* | --site=* | --sit=*)
  493. site=$ac_optarg ;;
  494. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  495. ac_prev=srcdir ;;
  496. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  497. srcdir=$ac_optarg ;;
  498. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  499. | --syscon | --sysco | --sysc | --sys | --sy)
  500. ac_prev=sysconfdir ;;
  501. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  502. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  503. sysconfdir=$ac_optarg ;;
  504. -target | --target | --targe | --targ | --tar | --ta | --t)
  505. ac_prev=target_alias ;;
  506. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  507. target_alias=$ac_optarg ;;
  508. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  509. verbose=yes ;;
  510. -version | --version | --versio | --versi | --vers | -V)
  511. ac_init_version=: ;;
  512. -with-* | --with-*)
  513. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  514. # Reject names that are not valid shell variable names.
  515. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  516. { echo "$as_me: error: invalid package name: $ac_package" >&2
  517. { (exit 1); exit 1; }; }
  518. ac_package=`echo $ac_package| sed 's/-/_/g'`
  519. case $ac_option in
  520. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  521. *) ac_optarg=yes ;;
  522. esac
  523. eval "with_$ac_package='$ac_optarg'" ;;
  524. -without-* | --without-*)
  525. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  526. # Reject names that are not valid shell variable names.
  527. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  528. { echo "$as_me: error: invalid package name: $ac_package" >&2
  529. { (exit 1); exit 1; }; }
  530. ac_package=`echo $ac_package | sed 's/-/_/g'`
  531. eval "with_$ac_package=no" ;;
  532. --x)
  533. # Obsolete; use --with-x.
  534. with_x=yes ;;
  535. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  536. | --x-incl | --x-inc | --x-in | --x-i)
  537. ac_prev=x_includes ;;
  538. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  539. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  540. x_includes=$ac_optarg ;;
  541. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  542. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  543. ac_prev=x_libraries ;;
  544. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  545. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  546. x_libraries=$ac_optarg ;;
  547. -*) { echo "$as_me: error: unrecognized option: $ac_option
  548. Try \`$0 --help' for more information." >&2
  549. { (exit 1); exit 1; }; }
  550. ;;
  551. *=*)
  552. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  553. # Reject names that are not valid shell variable names.
  554. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  555. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  556. { (exit 1); exit 1; }; }
  557. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  558. eval "$ac_envvar='$ac_optarg'"
  559. export $ac_envvar ;;
  560. *)
  561. # FIXME: should be removed in autoconf 3.0.
  562. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  563. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  564. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  565. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  566. ;;
  567. esac
  568. done
  569. if test -n "$ac_prev"; then
  570. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  571. { echo "$as_me: error: missing argument to $ac_option" >&2
  572. { (exit 1); exit 1; }; }
  573. fi
  574. # Be sure to have absolute paths.
  575. for ac_var in exec_prefix prefix
  576. do
  577. eval ac_val=$`echo $ac_var`
  578. case $ac_val in
  579. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  580. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  581. { (exit 1); exit 1; }; };;
  582. esac
  583. done
  584. # Be sure to have absolute paths.
  585. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  586. localstatedir libdir includedir oldincludedir infodir mandir
  587. do
  588. eval ac_val=$`echo $ac_var`
  589. case $ac_val in
  590. [\\/$]* | ?:[\\/]* ) ;;
  591. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  592. { (exit 1); exit 1; }; };;
  593. esac
  594. done
  595. # There might be people who depend on the old broken behavior: `$host'
  596. # used to hold the argument of --host etc.
  597. # FIXME: To remove some day.
  598. build=$build_alias
  599. host=$host_alias
  600. target=$target_alias
  601. # FIXME: To remove some day.
  602. if test "x$host_alias" != x; then
  603. if test "x$build_alias" = x; then
  604. cross_compiling=maybe
  605. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  606. If a cross compiler is detected then cross compile mode will be used." >&2
  607. elif test "x$build_alias" != "x$host_alias"; then
  608. cross_compiling=yes
  609. fi
  610. fi
  611. ac_tool_prefix=
  612. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  613. test "$silent" = yes && exec 6>/dev/null
  614. # Find the source files, if location was not specified.
  615. if test -z "$srcdir"; then
  616. ac_srcdir_defaulted=yes
  617. # Try the directory containing this script, then its parent.
  618. ac_confdir=`(dirname "$0") 2>/dev/null ||
  619. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  620. X"$0" : 'X\(//\)[^/]' \| \
  621. X"$0" : 'X\(//\)$' \| \
  622. X"$0" : 'X\(/\)' \| \
  623. . : '\(.\)' 2>/dev/null ||
  624. echo X"$0" |
  625. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  626. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  627. /^X\(\/\/\)$/{ s//\1/; q; }
  628. /^X\(\/\).*/{ s//\1/; q; }
  629. s/.*/./; q'`
  630. srcdir=$ac_confdir
  631. if test ! -r $srcdir/$ac_unique_file; then
  632. srcdir=..
  633. fi
  634. else
  635. ac_srcdir_defaulted=no
  636. fi
  637. if test ! -r $srcdir/$ac_unique_file; then
  638. if test "$ac_srcdir_defaulted" = yes; then
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  640. { (exit 1); exit 1; }; }
  641. else
  642. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  643. { (exit 1); exit 1; }; }
  644. fi
  645. fi
  646. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  647. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  648. { (exit 1); exit 1; }; }
  649. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  650. ac_env_build_alias_set=${build_alias+set}
  651. ac_env_build_alias_value=$build_alias
  652. ac_cv_env_build_alias_set=${build_alias+set}
  653. ac_cv_env_build_alias_value=$build_alias
  654. ac_env_host_alias_set=${host_alias+set}
  655. ac_env_host_alias_value=$host_alias
  656. ac_cv_env_host_alias_set=${host_alias+set}
  657. ac_cv_env_host_alias_value=$host_alias
  658. ac_env_target_alias_set=${target_alias+set}
  659. ac_env_target_alias_value=$target_alias
  660. ac_cv_env_target_alias_set=${target_alias+set}
  661. ac_cv_env_target_alias_value=$target_alias
  662. ac_env_CC_set=${CC+set}
  663. ac_env_CC_value=$CC
  664. ac_cv_env_CC_set=${CC+set}
  665. ac_cv_env_CC_value=$CC
  666. ac_env_CFLAGS_set=${CFLAGS+set}
  667. ac_env_CFLAGS_value=$CFLAGS
  668. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  669. ac_cv_env_CFLAGS_value=$CFLAGS
  670. ac_env_LDFLAGS_set=${LDFLAGS+set}
  671. ac_env_LDFLAGS_value=$LDFLAGS
  672. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  673. ac_cv_env_LDFLAGS_value=$LDFLAGS
  674. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  675. ac_env_CPPFLAGS_value=$CPPFLAGS
  676. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  677. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  678. ac_env_CPP_set=${CPP+set}
  679. ac_env_CPP_value=$CPP
  680. ac_cv_env_CPP_set=${CPP+set}
  681. ac_cv_env_CPP_value=$CPP
  682. #
  683. # Report the --help message.
  684. #
  685. if test "$ac_init_help" = "long"; then
  686. # Omit some internal or obsolete options to make the list less imposing.
  687. # This message is too long to be a string in the A/UX 3.1 sh.
  688. cat <<_ACEOF
  689. \`configure' configures nrpe 2.13 to adapt to many kinds of systems.
  690. Usage: $0 [OPTION]... [VAR=VALUE]...
  691. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  692. VAR=VALUE. See below for descriptions of some of the useful variables.
  693. Defaults for the options are specified in brackets.
  694. Configuration:
  695. -h, --help display this help and exit
  696. --help=short display options specific to this package
  697. --help=recursive display the short help of all the included packages
  698. -V, --version display version information and exit
  699. -q, --quiet, --silent do not print \`checking...' messages
  700. --cache-file=FILE cache test results in FILE [disabled]
  701. -C, --config-cache alias for \`--cache-file=config.cache'
  702. -n, --no-create do not create output files
  703. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  704. _ACEOF
  705. cat <<_ACEOF
  706. Installation directories:
  707. --prefix=PREFIX install architecture-independent files in PREFIX
  708. [$ac_default_prefix]
  709. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  710. [PREFIX]
  711. By default, \`make install' will install all the files in
  712. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  713. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  714. for instance \`--prefix=\$HOME'.
  715. For better control, use the options below.
  716. Fine tuning of the installation directories:
  717. --bindir=DIR user executables [EPREFIX/bin]
  718. --sbindir=DIR system admin executables [EPREFIX/sbin]
  719. --libexecdir=DIR program executables [EPREFIX/libexec]
  720. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  721. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  722. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  723. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  724. --libdir=DIR object code libraries [EPREFIX/lib]
  725. --includedir=DIR C header files [PREFIX/include]
  726. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  727. --infodir=DIR info documentation [PREFIX/info]
  728. --mandir=DIR man documentation [PREFIX/man]
  729. _ACEOF
  730. cat <<\_ACEOF
  731. System types:
  732. --build=BUILD configure for building on BUILD [guessed]
  733. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  734. _ACEOF
  735. fi
  736. if test -n "$ac_init_help"; then
  737. case $ac_init_help in
  738. short | recursive ) echo "Configuration of nrpe 2.13:";;
  739. esac
  740. cat <<\_ACEOF
  741. Optional Features:
  742. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  743. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  744. --enable-ssl enables native SSL support
  745. --enable-command-args allows clients to specify command arguments. *** THIS IS A SECURITY RISK! *** Read the SECURITY file before using this option!
  746. Optional Packages:
  747. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  748. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  749. --with-ssl=DIR sets location of the SSL installation
  750. --with-ssl-inc=DIR sets location of the SSL include files
  751. --with-ssl-lib=DIR sets location of the SSL libraries
  752. --with-kerberos-inc=DIR sets location of the Kerberos include files
  753. --with-log-facility=<facility> sets NRPE syslog facility
  754. --with-nrpe-user=<user> sets user name to run NRPE
  755. --with-nrpe-group=<group> sets group name to run NRPE
  756. --with-nrpe-port=<port> sets port number for NRPE to listen on
  757. --with-nagios-user=<user> sets user name for file permissions
  758. --with-nagios-group=<grp> sets group name file permissions
  759. Some influential environment variables:
  760. CC C compiler command
  761. CFLAGS C compiler flags
  762. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  763. nonstandard directory <lib dir>
  764. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  765. headers in a nonstandard directory <include dir>
  766. CPP C preprocessor
  767. Use these variables to override the choices made by `configure' or to help
  768. it to find libraries and programs with nonstandard names/locations.
  769. Report bugs to <nagios-users@lists.sourceforge.net>.
  770. _ACEOF
  771. fi
  772. if test "$ac_init_help" = "recursive"; then
  773. # If there are subdirs, report their specific --help.
  774. ac_popdir=`pwd`
  775. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  776. test -d $ac_dir || continue
  777. ac_builddir=.
  778. if test "$ac_dir" != .; then
  779. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  780. # A "../" for each directory in $ac_dir_suffix.
  781. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  782. else
  783. ac_dir_suffix= ac_top_builddir=
  784. fi
  785. case $srcdir in
  786. .) # No --srcdir option. We are building in place.
  787. ac_srcdir=.
  788. if test -z "$ac_top_builddir"; then
  789. ac_top_srcdir=.
  790. else
  791. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  792. fi ;;
  793. [\\/]* | ?:[\\/]* ) # Absolute path.
  794. ac_srcdir=$srcdir$ac_dir_suffix;
  795. ac_top_srcdir=$srcdir ;;
  796. *) # Relative path.
  797. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  798. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  799. esac
  800. # Do not use `cd foo && pwd` to compute absolute paths, because
  801. # the directories may not exist.
  802. case `pwd` in
  803. .) ac_abs_builddir="$ac_dir";;
  804. *)
  805. case "$ac_dir" in
  806. .) ac_abs_builddir=`pwd`;;
  807. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  808. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  809. esac;;
  810. esac
  811. case $ac_abs_builddir in
  812. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  813. *)
  814. case ${ac_top_builddir}. in
  815. .) ac_abs_top_builddir=$ac_abs_builddir;;
  816. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  817. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  818. esac;;
  819. esac
  820. case $ac_abs_builddir in
  821. .) ac_abs_srcdir=$ac_srcdir;;
  822. *)
  823. case $ac_srcdir in
  824. .) ac_abs_srcdir=$ac_abs_builddir;;
  825. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  826. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  827. esac;;
  828. esac
  829. case $ac_abs_builddir in
  830. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  831. *)
  832. case $ac_top_srcdir in
  833. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  834. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  835. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  836. esac;;
  837. esac
  838. cd $ac_dir
  839. # Check for guested configure; otherwise get Cygnus style configure.
  840. if test -f $ac_srcdir/configure.gnu; then
  841. echo
  842. $SHELL $ac_srcdir/configure.gnu --help=recursive
  843. elif test -f $ac_srcdir/configure; then
  844. echo
  845. $SHELL $ac_srcdir/configure --help=recursive
  846. elif test -f $ac_srcdir/configure.ac ||
  847. test -f $ac_srcdir/configure.in; then
  848. echo
  849. $ac_configure --help
  850. else
  851. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  852. fi
  853. cd $ac_popdir
  854. done
  855. fi
  856. test -n "$ac_init_help" && exit 0
  857. if $ac_init_version; then
  858. cat <<\_ACEOF
  859. nrpe configure 2.13
  860. generated by GNU Autoconf 2.59
  861. Copyright (C) 2003 Free Software Foundation, Inc.
  862. This configure script is free software; the Free Software Foundation
  863. gives unlimited permission to copy, distribute and modify it.
  864. _ACEOF
  865. exit 0
  866. fi
  867. exec 5>config.log
  868. cat >&5 <<_ACEOF
  869. This file contains any messages produced by compilers while
  870. running configure, to aid debugging if configure makes a mistake.
  871. It was created by nrpe $as_me 2.13, which was
  872. generated by GNU Autoconf 2.59. Invocation command line was
  873. $ $0 $@
  874. _ACEOF
  875. {
  876. cat <<_ASUNAME
  877. ## --------- ##
  878. ## Platform. ##
  879. ## --------- ##
  880. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  881. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  882. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  883. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  884. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  885. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  886. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  887. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  888. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  889. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  890. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  891. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  892. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  893. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  894. _ASUNAME
  895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  896. for as_dir in $PATH
  897. do
  898. IFS=$as_save_IFS
  899. test -z "$as_dir" && as_dir=.
  900. echo "PATH: $as_dir"
  901. done
  902. } >&5
  903. cat >&5 <<_ACEOF
  904. ## ----------- ##
  905. ## Core tests. ##
  906. ## ----------- ##
  907. _ACEOF
  908. # Keep a trace of the command line.
  909. # Strip out --no-create and --no-recursion so they do not pile up.
  910. # Strip out --silent because we don't want to record it for future runs.
  911. # Also quote any args containing shell meta-characters.
  912. # Make two passes to allow for proper duplicate-argument suppression.
  913. ac_configure_args=
  914. ac_configure_args0=
  915. ac_configure_args1=
  916. ac_sep=
  917. ac_must_keep_next=false
  918. for ac_pass in 1 2
  919. do
  920. for ac_arg
  921. do
  922. case $ac_arg in
  923. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  924. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  925. | -silent | --silent | --silen | --sile | --sil)
  926. continue ;;
  927. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  928. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  929. esac
  930. case $ac_pass in
  931. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  932. 2)
  933. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  934. if test $ac_must_keep_next = true; then
  935. ac_must_keep_next=false # Got value, back to normal.
  936. else
  937. case $ac_arg in
  938. *=* | --config-cache | -C | -disable-* | --disable-* \
  939. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  940. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  941. | -with-* | --with-* | -without-* | --without-* | --x)
  942. case "$ac_configure_args0 " in
  943. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  944. esac
  945. ;;
  946. -* ) ac_must_keep_next=true ;;
  947. esac
  948. fi
  949. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  950. # Get rid of the leading space.
  951. ac_sep=" "
  952. ;;
  953. esac
  954. done
  955. done
  956. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  957. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  958. # When interrupted or exit'd, cleanup temporary files, and complete
  959. # config.log. We remove comments because anyway the quotes in there
  960. # would cause problems or look ugly.
  961. # WARNING: Be sure not to use single quotes in there, as some shells,
  962. # such as our DU 5.0 friend, will then `close' the trap.
  963. trap 'exit_status=$?
  964. # Save into config.log some information that might help in debugging.
  965. {
  966. echo
  967. cat <<\_ASBOX
  968. ## ---------------- ##
  969. ## Cache variables. ##
  970. ## ---------------- ##
  971. _ASBOX
  972. echo
  973. # The following way of writing the cache mishandles newlines in values,
  974. {
  975. (set) 2>&1 |
  976. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  977. *ac_space=\ *)
  978. sed -n \
  979. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  980. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  981. ;;
  982. *)
  983. sed -n \
  984. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  985. ;;
  986. esac;
  987. }
  988. echo
  989. cat <<\_ASBOX
  990. ## ----------------- ##
  991. ## Output variables. ##
  992. ## ----------------- ##
  993. _ASBOX
  994. echo
  995. for ac_var in $ac_subst_vars
  996. do
  997. eval ac_val=$`echo $ac_var`
  998. echo "$ac_var='"'"'$ac_val'"'"'"
  999. done | sort
  1000. echo
  1001. if test -n "$ac_subst_files"; then
  1002. cat <<\_ASBOX
  1003. ## ------------- ##
  1004. ## Output files. ##
  1005. ## ------------- ##
  1006. _ASBOX
  1007. echo
  1008. for ac_var in $ac_subst_files
  1009. do
  1010. eval ac_val=$`echo $ac_var`
  1011. echo "$ac_var='"'"'$ac_val'"'"'"
  1012. done | sort
  1013. echo
  1014. fi
  1015. if test -s confdefs.h; then
  1016. cat <<\_ASBOX
  1017. ## ----------- ##
  1018. ## confdefs.h. ##
  1019. ## ----------- ##
  1020. _ASBOX
  1021. echo
  1022. sed "/^$/d" confdefs.h | sort
  1023. echo
  1024. fi
  1025. test "$ac_signal" != 0 &&
  1026. echo "$as_me: caught signal $ac_signal"
  1027. echo "$as_me: exit $exit_status"
  1028. } >&5
  1029. rm -f core *.core &&
  1030. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1031. exit $exit_status
  1032. ' 0
  1033. for ac_signal in 1 2 13 15; do
  1034. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1035. done
  1036. ac_signal=0
  1037. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1038. rm -rf conftest* confdefs.h
  1039. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1040. echo >confdefs.h
  1041. # Predefined preprocessor variables.
  1042. cat >>confdefs.h <<_ACEOF
  1043. #define PACKAGE_NAME "$PACKAGE_NAME"
  1044. _ACEOF
  1045. cat >>confdefs.h <<_ACEOF
  1046. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1047. _ACEOF
  1048. cat >>confdefs.h <<_ACEOF
  1049. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1050. _ACEOF
  1051. cat >>confdefs.h <<_ACEOF
  1052. #define PACKAGE_STRING "$PACKAGE_STRING"
  1053. _ACEOF
  1054. cat >>confdefs.h <<_ACEOF
  1055. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1056. _ACEOF
  1057. # Let the site file select an alternate cache file if it wants to.
  1058. # Prefer explicitly selected file to automatically selected ones.
  1059. if test -z "$CONFIG_SITE"; then
  1060. if test "x$prefix" != xNONE; then
  1061. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1062. else
  1063. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1064. fi
  1065. fi
  1066. for ac_site_file in $CONFIG_SITE; do
  1067. if test -r "$ac_site_file"; then
  1068. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1069. echo "$as_me: loading site script $ac_site_file" >&6;}
  1070. sed 's/^/| /' "$ac_site_file" >&5
  1071. . "$ac_site_file"
  1072. fi
  1073. done
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers include/config.h"
  1130. ac_config_files="$ac_config_files Makefile subst src/Makefile package/solaris/Makefile init-script init-script.debian init-script.suse sample-config/nrpe.cfg sample-config/nrpe.xinetd"
  1131. PKG_NAME=nrpe
  1132. PKG_VERSION="2.13"
  1133. PKG_HOME_URL="http://www.nagios.org/"
  1134. PKG_REL_DATE="11-11-2011"
  1135. ac_aux_dir=
  1136. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1137. if test -f $ac_dir/install-sh; then
  1138. ac_aux_dir=$ac_dir
  1139. ac_install_sh="$ac_aux_dir/install-sh -c"
  1140. break
  1141. elif test -f $ac_dir/install.sh; then
  1142. ac_aux_dir=$ac_dir
  1143. ac_install_sh="$ac_aux_dir/install.sh -c"
  1144. break
  1145. elif test -f $ac_dir/shtool; then
  1146. ac_aux_dir=$ac_dir
  1147. ac_install_sh="$ac_aux_dir/shtool install -c"
  1148. break
  1149. fi
  1150. done
  1151. if test -z "$ac_aux_dir"; then
  1152. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1153. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1154. { (exit 1); exit 1; }; }
  1155. fi
  1156. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1157. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1158. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1159. # Find a good install program. We prefer a C program (faster),
  1160. # so one script is as good as another. But avoid the broken or
  1161. # incompatible versions:
  1162. # SysV /etc/install, /usr/sbin/install
  1163. # SunOS /usr/etc/install
  1164. # IRIX /sbin/install
  1165. # AIX /bin/install
  1166. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1167. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1168. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1169. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1170. # OS/2's system install, which has a completely different semantic
  1171. # ./install, which can be erroneously created by make from ./install.sh.
  1172. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1173. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1174. if test -z "$INSTALL"; then
  1175. if test "${ac_cv_path_install+set}" = set; then
  1176. echo $ECHO_N "(cached) $ECHO_C" >&6
  1177. else
  1178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1179. for as_dir in $PATH
  1180. do
  1181. IFS=$as_save_IFS
  1182. test -z "$as_dir" && as_dir=.
  1183. # Account for people who put trailing slashes in PATH elements.
  1184. case $as_dir/ in
  1185. ./ | .// | /cC/* | \
  1186. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1187. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1188. /usr/ucb/* ) ;;
  1189. *)
  1190. # OSF1 and SCO ODT 3.0 have their own names for install.
  1191. # Don't use installbsd from OSF since it installs stuff as root
  1192. # by default.
  1193. for ac_prog in ginstall scoinst install; do
  1194. for ac_exec_ext in '' $ac_executable_extensions; do
  1195. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1196. if test $ac_prog = install &&
  1197. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1198. # AIX install. It has an incompatible calling convention.
  1199. :
  1200. elif test $ac_prog = install &&
  1201. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1202. # program-specific install script used by HP pwplus--don't use.
  1203. :
  1204. else
  1205. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1206. break 3
  1207. fi
  1208. fi
  1209. done
  1210. done
  1211. ;;
  1212. esac
  1213. done
  1214. fi
  1215. if test "${ac_cv_path_install+set}" = set; then
  1216. INSTALL=$ac_cv_path_install
  1217. else
  1218. # As a last resort, use the slow shell script. We don't cache a
  1219. # path for INSTALL within a source directory, because that will
  1220. # break other packages using the cache if that directory is
  1221. # removed, or if the path is relative.
  1222. INSTALL=$ac_install_sh
  1223. fi
  1224. fi
  1225. echo "$as_me:$LINENO: result: $INSTALL" >&5
  1226. echo "${ECHO_T}$INSTALL" >&6
  1227. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1228. # It thinks the first close brace ends the variable substitution.
  1229. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1230. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1231. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1232. # Make sure we can run config.sub.
  1233. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1234. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1235. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1236. { (exit 1); exit 1; }; }
  1237. echo "$as_me:$LINENO: checking build system type" >&5
  1238. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1239. if test "${ac_cv_build+set}" = set; then
  1240. echo $ECHO_N "(cached) $ECHO_C" >&6
  1241. else
  1242. ac_cv_build_alias=$build_alias
  1243. test -z "$ac_cv_build_alias" &&
  1244. ac_cv_build_alias=`$ac_config_guess`
  1245. test -z "$ac_cv_build_alias" &&
  1246. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1247. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1248. { (exit 1); exit 1; }; }
  1249. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1250. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1251. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1252. { (exit 1); exit 1; }; }
  1253. fi
  1254. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1255. echo "${ECHO_T}$ac_cv_build" >&6
  1256. build=$ac_cv_build
  1257. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1258. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1259. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1260. echo "$as_me:$LINENO: checking host system type" >&5
  1261. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1262. if test "${ac_cv_host+set}" = set; then
  1263. echo $ECHO_N "(cached) $ECHO_C" >&6
  1264. else
  1265. ac_cv_host_alias=$host_alias
  1266. test -z "$ac_cv_host_alias" &&
  1267. ac_cv_host_alias=$ac_cv_build_alias
  1268. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1269. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1270. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1271. { (exit 1); exit 1; }; }
  1272. fi
  1273. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1274. echo "${ECHO_T}$ac_cv_host" >&6
  1275. host=$ac_cv_host
  1276. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1277. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1278. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1279. ac_ext=c
  1280. ac_cpp='$CPP $CPPFLAGS'
  1281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1284. if test -n "$ac_tool_prefix"; then
  1285. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1286. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1287. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1288. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1289. if test "${ac_cv_prog_CC+set}" = set; then
  1290. echo $ECHO_N "(cached) $ECHO_C" >&6
  1291. else
  1292. if test -n "$CC"; then
  1293. ac_cv_prog_CC="$CC" # Let the user override the test.
  1294. else
  1295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1296. for as_dir in $PATH
  1297. do
  1298. IFS=$as_save_IFS
  1299. test -z "$as_dir" && as_dir=.
  1300. for ac_exec_ext in '' $ac_executable_extensions; do
  1301. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1302. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1303. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1304. break 2
  1305. fi
  1306. done
  1307. done
  1308. fi
  1309. fi
  1310. CC=$ac_cv_prog_CC
  1311. if test -n "$CC"; then
  1312. echo "$as_me:$LINENO: result: $CC" >&5
  1313. echo "${ECHO_T}$CC" >&6
  1314. else
  1315. echo "$as_me:$LINENO: result: no" >&5
  1316. echo "${ECHO_T}no" >&6
  1317. fi
  1318. fi
  1319. if test -z "$ac_cv_prog_CC"; then
  1320. ac_ct_CC=$CC
  1321. # Extract the first word of "gcc", so it can be a program name with args.
  1322. set dummy gcc; ac_word=$2
  1323. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1324. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1325. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1326. echo $ECHO_N "(cached) $ECHO_C" >&6
  1327. else
  1328. if test -n "$ac_ct_CC"; then
  1329. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1330. else
  1331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1332. for as_dir in $PATH
  1333. do
  1334. IFS=$as_save_IFS
  1335. test -z "$as_dir" && as_dir=.
  1336. for ac_exec_ext in '' $ac_executable_extensions; do
  1337. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1338. ac_cv_prog_ac_ct_CC="gcc"
  1339. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1340. break 2
  1341. fi
  1342. done
  1343. done
  1344. fi
  1345. fi
  1346. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1347. if test -n "$ac_ct_CC"; then
  1348. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1349. echo "${ECHO_T}$ac_ct_CC" >&6
  1350. else
  1351. echo "$as_me:$LINENO: result: no" >&5
  1352. echo "${ECHO_T}no" >&6
  1353. fi
  1354. CC=$ac_ct_CC
  1355. else
  1356. CC="$ac_cv_prog_CC"
  1357. fi
  1358. if test -z "$CC"; then
  1359. if test -n "$ac_tool_prefix"; then
  1360. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1361. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1362. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1363. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1364. if test "${ac_cv_prog_CC+set}" = set; then
  1365. echo $ECHO_N "(cached) $ECHO_C" >&6
  1366. else
  1367. if test -n "$CC"; then
  1368. ac_cv_prog_CC="$CC" # Let the user override the test.
  1369. else
  1370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1371. for as_dir in $PATH
  1372. do
  1373. IFS=$as_save_IFS
  1374. test -z "$as_dir" && as_dir=.
  1375. for ac_exec_ext in '' $ac_executable_extensions; do
  1376. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1377. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1378. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1379. break 2
  1380. fi
  1381. done
  1382. done
  1383. fi
  1384. fi
  1385. CC=$ac_cv_prog_CC
  1386. if test -n "$CC"; then
  1387. echo "$as_me:$LINENO: result: $CC" >&5
  1388. echo "${ECHO_T}$CC" >&6
  1389. else
  1390. echo "$as_me:$LINENO: result: no" >&5
  1391. echo "${ECHO_T}no" >&6
  1392. fi
  1393. fi
  1394. if test -z "$ac_cv_prog_CC"; then
  1395. ac_ct_CC=$CC
  1396. # Extract the first word of "cc", so it can be a program name with args.
  1397. set dummy cc; ac_word=$2
  1398. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1399. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1400. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1401. echo $ECHO_N "(cached) $ECHO_C" >&6
  1402. else
  1403. if test -n "$ac_ct_CC"; then
  1404. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1405. else
  1406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1407. for as_dir in $PATH
  1408. do
  1409. IFS=$as_save_IFS
  1410. test -z "$as_dir" && as_dir=.
  1411. for ac_exec_ext in '' $ac_executable_extensions; do
  1412. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1413. ac_cv_prog_ac_ct_CC="cc"
  1414. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1415. break 2
  1416. fi
  1417. done
  1418. done
  1419. fi
  1420. fi
  1421. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1422. if test -n "$ac_ct_CC"; then
  1423. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1424. echo "${ECHO_T}$ac_ct_CC" >&6
  1425. else
  1426. echo "$as_me:$LINENO: result: no" >&5
  1427. echo "${ECHO_T}no" >&6
  1428. fi
  1429. CC=$ac_ct_CC
  1430. else
  1431. CC="$ac_cv_prog_CC"
  1432. fi
  1433. fi
  1434. if test -z "$CC"; then
  1435. # Extract the first word of "cc", so it can be a program name with args.
  1436. set dummy cc; ac_word=$2
  1437. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1438. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1439. if test "${ac_cv_prog_CC+set}" = set; then
  1440. echo $ECHO_N "(cached) $ECHO_C" >&6
  1441. else
  1442. if test -n "$CC"; then
  1443. ac_cv_prog_CC="$CC" # Let the user override the test.
  1444. else
  1445. ac_prog_rejected=no
  1446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1447. for as_dir in $PATH
  1448. do
  1449. IFS=$as_save_IFS
  1450. test -z "$as_dir" && as_dir=.
  1451. for ac_exec_ext in '' $ac_executable_extensions; do
  1452. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1453. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1454. ac_prog_rejected=yes
  1455. continue
  1456. fi
  1457. ac_cv_prog_CC="cc"
  1458. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1459. break 2
  1460. fi
  1461. done
  1462. done
  1463. if test $ac_prog_rejected = yes; then
  1464. # We found a bogon in the path, so make sure we never use it.
  1465. set dummy $ac_cv_prog_CC
  1466. shift
  1467. if test $# != 0; then
  1468. # We chose a different compiler from the bogus one.
  1469. # However, it has the same basename, so the bogon will be chosen
  1470. # first if we set CC to just the basename; use the full file name.
  1471. shift
  1472. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1473. fi
  1474. fi
  1475. fi
  1476. fi
  1477. CC=$ac_cv_prog_CC
  1478. if test -n "$CC"; then
  1479. echo "$as_me:$LINENO: result: $CC" >&5
  1480. echo "${ECHO_T}$CC" >&6
  1481. else
  1482. echo "$as_me:$LINENO: result: no" >&5
  1483. echo "${ECHO_T}no" >&6
  1484. fi
  1485. fi
  1486. if test -z "$CC"; then
  1487. if test -n "$ac_tool_prefix"; then
  1488. for ac_prog in cl
  1489. do
  1490. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1491. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1492. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1493. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1494. if test "${ac_cv_prog_CC+set}" = set; then
  1495. echo $ECHO_N "(cached) $ECHO_C" >&6
  1496. else
  1497. if test -n "$CC"; then
  1498. ac_cv_prog_CC="$CC" # Let the user override the test.
  1499. else
  1500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1501. for as_dir in $PATH
  1502. do
  1503. IFS=$as_save_IFS
  1504. test -z "$as_dir" && as_dir=.
  1505. for ac_exec_ext in '' $ac_executable_extensions; do
  1506. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1507. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1508. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1509. break 2
  1510. fi
  1511. done
  1512. done
  1513. fi
  1514. fi
  1515. CC=$ac_cv_prog_CC
  1516. if test -n "$CC"; then
  1517. echo "$as_me:$LINENO: result: $CC" >&5
  1518. echo "${ECHO_T}$CC" >&6
  1519. else
  1520. echo "$as_me:$LINENO: result: no" >&5
  1521. echo "${ECHO_T}no" >&6
  1522. fi
  1523. test -n "$CC" && break
  1524. done
  1525. fi
  1526. if test -z "$CC"; then
  1527. ac_ct_CC=$CC
  1528. for ac_prog in cl
  1529. do
  1530. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1531. set dummy $ac_prog; ac_word=$2
  1532. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1533. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1534. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1535. echo $ECHO_N "(cached) $ECHO_C" >&6
  1536. else
  1537. if test -n "$ac_ct_CC"; then
  1538. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1539. else
  1540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1541. for as_dir in $PATH
  1542. do
  1543. IFS=$as_save_IFS
  1544. test -z "$as_dir" && as_dir=.
  1545. for ac_exec_ext in '' $ac_executable_extensions; do
  1546. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1547. ac_cv_prog_ac_ct_CC="$ac_prog"
  1548. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1549. break 2
  1550. fi
  1551. done
  1552. done
  1553. fi
  1554. fi
  1555. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1556. if test -n "$ac_ct_CC"; then
  1557. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1558. echo "${ECHO_T}$ac_ct_CC" >&6
  1559. else
  1560. echo "$as_me:$LINENO: result: no" >&5
  1561. echo "${ECHO_T}no" >&6
  1562. fi
  1563. test -n "$ac_ct_CC" && break
  1564. done
  1565. CC=$ac_ct_CC
  1566. fi
  1567. fi
  1568. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1569. See \`config.log' for more details." >&5
  1570. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1571. See \`config.log' for more details." >&2;}
  1572. { (exit 1); exit 1; }; }
  1573. # Provide some information about the compiler.
  1574. echo "$as_me:$LINENO:" \
  1575. "checking for C compiler version" >&5
  1576. ac_compiler=`set X $ac_compile; echo $2`
  1577. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1578. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1579. ac_status=$?
  1580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1581. (exit $ac_status); }
  1582. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1583. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1584. ac_status=$?
  1585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1586. (exit $ac_status); }
  1587. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1588. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1589. ac_status=$?
  1590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1591. (exit $ac_status); }
  1592. cat >conftest.$ac_ext <<_ACEOF
  1593. /* confdefs.h. */
  1594. _ACEOF
  1595. cat confdefs.h >>conftest.$ac_ext
  1596. cat >>conftest.$ac_ext <<_ACEOF
  1597. /* end confdefs.h. */
  1598. int
  1599. main ()
  1600. {
  1601. ;
  1602. return 0;
  1603. }
  1604. _ACEOF
  1605. ac_clean_files_save=$ac_clean_files
  1606. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1607. # Try to create an executable without -o first, disregard a.out.
  1608. # It will help us diagnose broken compilers, and finding out an intuition
  1609. # of exeext.
  1610. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1611. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1612. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1613. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1614. (eval $ac_link_default) 2>&5
  1615. ac_status=$?
  1616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1617. (exit $ac_status); }; then
  1618. # Find the output, starting from the most likely. This scheme is
  1619. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1620. # resort.
  1621. # Be careful to initialize this variable, since it used to be cached.
  1622. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1623. ac_cv_exeext=
  1624. # b.out is created by i960 compilers.
  1625. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1626. do
  1627. test -f "$ac_file" || continue
  1628. case $ac_file in
  1629. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1630. ;;
  1631. conftest.$ac_ext )
  1632. # This is the source file.
  1633. ;;
  1634. [ab].out )
  1635. # We found the default executable, but exeext='' is most
  1636. # certainly right.
  1637. break;;
  1638. *.* )
  1639. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1640. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1641. # but it would be cool to find out if it's true. Does anybody
  1642. # maintain Libtool? --akim.
  1643. export ac_cv_exeext
  1644. break;;
  1645. * )
  1646. break;;
  1647. esac
  1648. done
  1649. else
  1650. echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1653. See \`config.log' for more details." >&5
  1654. echo "$as_me: error: C compiler cannot create executables
  1655. See \`config.log' for more details." >&2;}
  1656. { (exit 77); exit 77; }; }
  1657. fi
  1658. ac_exeext=$ac_cv_exeext
  1659. echo "$as_me:$LINENO: result: $ac_file" >&5
  1660. echo "${ECHO_T}$ac_file" >&6
  1661. # Check the compiler produces executables we can run. If not, either
  1662. # the compiler is broken, or we cross compile.
  1663. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1664. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1665. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1666. # If not cross compiling, check that we can run a simple program.
  1667. if test "$cross_compiling" != yes; then
  1668. if { ac_try='./$ac_file'
  1669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1670. (eval $ac_try) 2>&5
  1671. ac_status=$?
  1672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1673. (exit $ac_status); }; }; then
  1674. cross_compiling=no
  1675. else
  1676. if test "$cross_compiling" = maybe; then
  1677. cross_compiling=yes
  1678. else
  1679. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1680. If you meant to cross compile, use \`--host'.
  1681. See \`config.log' for more details." >&5
  1682. echo "$as_me: error: cannot run C compiled programs.
  1683. If you meant to cross compile, use \`--host'.
  1684. See \`config.log' for more details." >&2;}
  1685. { (exit 1); exit 1; }; }
  1686. fi
  1687. fi
  1688. fi
  1689. echo "$as_me:$LINENO: result: yes" >&5
  1690. echo "${ECHO_T}yes" >&6
  1691. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1692. ac_clean_files=$ac_clean_files_save
  1693. # Check the compiler produces executables we can run. If not, either
  1694. # the compiler is broken, or we cross compile.
  1695. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1696. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1697. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1698. echo "${ECHO_T}$cross_compiling" >&6
  1699. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1700. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1701. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1702. (eval $ac_link) 2>&5
  1703. ac_status=$?
  1704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1705. (exit $ac_status); }; then
  1706. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1707. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1708. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1709. # `rm'.
  1710. for ac_file in conftest.exe conftest conftest.*; do
  1711. test -f "$ac_file" || continue
  1712. case $ac_file in
  1713. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1714. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1715. export ac_cv_exeext
  1716. break;;
  1717. * ) break;;
  1718. esac
  1719. done
  1720. else
  1721. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1722. See \`config.log' for more details." >&5
  1723. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1724. See \`config.log' for more details." >&2;}
  1725. { (exit 1); exit 1; }; }
  1726. fi
  1727. rm -f conftest$ac_cv_exeext
  1728. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1729. echo "${ECHO_T}$ac_cv_exeext" >&6
  1730. rm -f conftest.$ac_ext
  1731. EXEEXT=$ac_cv_exeext
  1732. ac_exeext=$EXEEXT
  1733. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1734. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1735. if test "${ac_cv_objext+set}" = set; then
  1736. echo $ECHO_N "(cached) $ECHO_C" >&6
  1737. else
  1738. cat >conftest.$ac_ext <<_ACEOF
  1739. /* confdefs.h. */
  1740. _ACEOF
  1741. cat confdefs.h >>conftest.$ac_ext
  1742. cat >>conftest.$ac_ext <<_ACEOF
  1743. /* end confdefs.h. */
  1744. int
  1745. main ()
  1746. {
  1747. ;
  1748. return 0;
  1749. }
  1750. _ACEOF
  1751. rm -f conftest.o conftest.obj
  1752. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1753. (eval $ac_compile) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; then
  1757. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1758. case $ac_file in
  1759. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1760. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1761. break;;
  1762. esac
  1763. done
  1764. else
  1765. echo "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1768. See \`config.log' for more details." >&5
  1769. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1770. See \`config.log' for more details." >&2;}
  1771. { (exit 1); exit 1; }; }
  1772. fi
  1773. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1774. fi
  1775. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1776. echo "${ECHO_T}$ac_cv_objext" >&6
  1777. OBJEXT=$ac_cv_objext
  1778. ac_objext=$OBJEXT
  1779. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1780. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1781. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1782. echo $ECHO_N "(cached) $ECHO_C" >&6
  1783. else
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. int
  1791. main ()
  1792. {
  1793. #ifndef __GNUC__
  1794. choke me
  1795. #endif
  1796. ;
  1797. return 0;
  1798. }
  1799. _ACEOF
  1800. rm -f conftest.$ac_objext
  1801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1802. (eval $ac_compile) 2>conftest.er1
  1803. ac_status=$?
  1804. grep -v '^ *+' conftest.er1 >conftest.err
  1805. rm -f conftest.er1
  1806. cat conftest.err >&5
  1807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1808. (exit $ac_status); } &&
  1809. { ac_try='test -z "$ac_c_werror_flag"
  1810. || test ! -s conftest.err'
  1811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1812. (eval $ac_try) 2>&5
  1813. ac_status=$?
  1814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1815. (exit $ac_status); }; } &&
  1816. { ac_try='test -s conftest.$ac_objext'
  1817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1818. (eval $ac_try) 2>&5
  1819. ac_status=$?
  1820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1821. (exit $ac_status); }; }; then
  1822. ac_compiler_gnu=yes
  1823. else
  1824. echo "$as_me: failed program was:" >&5
  1825. sed 's/^/| /' conftest.$ac_ext >&5
  1826. ac_compiler_gnu=no
  1827. fi
  1828. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1829. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1830. fi
  1831. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1832. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1833. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1834. ac_test_CFLAGS=${CFLAGS+set}
  1835. ac_save_CFLAGS=$CFLAGS
  1836. CFLAGS="-g"
  1837. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1838. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1839. if test "${ac_cv_prog_cc_g+set}" = set; then
  1840. echo $ECHO_N "(cached) $ECHO_C" >&6
  1841. else
  1842. cat >conftest.$ac_ext <<_ACEOF
  1843. /* confdefs.h. */
  1844. _ACEOF
  1845. cat confdefs.h >>conftest.$ac_ext
  1846. cat >>conftest.$ac_ext <<_ACEOF
  1847. /* end confdefs.h. */
  1848. int
  1849. main ()
  1850. {
  1851. ;
  1852. return 0;
  1853. }
  1854. _ACEOF
  1855. rm -f conftest.$ac_objext
  1856. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1857. (eval $ac_compile) 2>conftest.er1
  1858. ac_status=$?
  1859. grep -v '^ *+' conftest.er1 >conftest.err
  1860. rm -f conftest.er1
  1861. cat conftest.err >&5
  1862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. (exit $ac_status); } &&
  1864. { ac_try='test -z "$ac_c_werror_flag"
  1865. || test ! -s conftest.err'
  1866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1867. (eval $ac_try) 2>&5
  1868. ac_status=$?
  1869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1870. (exit $ac_status); }; } &&
  1871. { ac_try='test -s conftest.$ac_objext'
  1872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1873. (eval $ac_try) 2>&5
  1874. ac_status=$?
  1875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1876. (exit $ac_status); }; }; then
  1877. ac_cv_prog_cc_g=yes
  1878. else
  1879. echo "$as_me: failed program was:" >&5
  1880. sed 's/^/| /' conftest.$ac_ext >&5
  1881. ac_cv_prog_cc_g=no
  1882. fi
  1883. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1884. fi
  1885. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1886. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1887. if test "$ac_test_CFLAGS" = set; then
  1888. CFLAGS=$ac_save_CFLAGS
  1889. elif test $ac_cv_prog_cc_g = yes; then
  1890. if test "$GCC" = yes; then
  1891. CFLAGS="-g -O2"
  1892. else
  1893. CFLAGS="-g"
  1894. fi
  1895. else
  1896. if test "$GCC" = yes; then
  1897. CFLAGS="-O2"
  1898. else
  1899. CFLAGS=
  1900. fi
  1901. fi
  1902. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1903. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1904. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1905. echo $ECHO_N "(cached) $ECHO_C" >&6
  1906. else
  1907. ac_cv_prog_cc_stdc=no
  1908. ac_save_CC=$CC
  1909. cat >conftest.$ac_ext <<_ACEOF
  1910. /* confdefs.h. */
  1911. _ACEOF
  1912. cat confdefs.h >>conftest.$ac_ext
  1913. cat >>conftest.$ac_ext <<_ACEOF
  1914. /* end confdefs.h. */
  1915. #include <stdarg.h>
  1916. #include <stdio.h>
  1917. #include <sys/types.h>
  1918. #include <sys/stat.h>
  1919. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1920. struct buf { int x; };
  1921. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1922. static char *e (p, i)
  1923. char **p;
  1924. int i;
  1925. {
  1926. return p[i];
  1927. }
  1928. static char *f (char * (*g) (char **, int), char **p, ...)
  1929. {
  1930. char *s;
  1931. va_list v;
  1932. va_start (v,p);
  1933. s = g (p, va_arg (v,int));
  1934. va_end (v);
  1935. return s;
  1936. }
  1937. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1938. function prototypes and stuff, but not '\xHH' hex character constants.
  1939. These don't provoke an error unfortunately, instead are silently treated
  1940. as 'x'. The following induces an error, until -std1 is added to get
  1941. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1942. array size at least. It's necessary to write '\x00'==0 to get something
  1943. that's true only with -std1. */
  1944. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1945. int test (int i, double x);
  1946. struct s1 {int (*f) (int a);};
  1947. struct s2 {int (*f) (double a);};
  1948. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1949. int argc;
  1950. char **argv;
  1951. int
  1952. main ()
  1953. {
  1954. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1955. ;
  1956. return 0;
  1957. }
  1958. _ACEOF
  1959. # Don't try gcc -ansi; that turns off useful extensions and
  1960. # breaks some systems' header files.
  1961. # AIX -qlanglvl=ansi
  1962. # Ultrix and OSF/1 -std1
  1963. # HP-UX 10.20 and later -Ae
  1964. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1965. # SVR4 -Xc -D__EXTENSIONS__
  1966. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1967. do
  1968. CC="$ac_save_CC $ac_arg"
  1969. rm -f conftest.$ac_objext
  1970. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1971. (eval $ac_compile) 2>conftest.er1
  1972. ac_status=$?
  1973. grep -v '^ *+' conftest.er1 >conftest.err
  1974. rm -f conftest.er1
  1975. cat conftest.err >&5
  1976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1977. (exit $ac_status); } &&
  1978. { ac_try='test -z "$ac_c_werror_flag"
  1979. || test ! -s conftest.err'
  1980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1981. (eval $ac_try) 2>&5
  1982. ac_status=$?
  1983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1984. (exit $ac_status); }; } &&
  1985. { ac_try='test -s conftest.$ac_objext'
  1986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1987. (eval $ac_try) 2>&5
  1988. ac_status=$?
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); }; }; then
  1991. ac_cv_prog_cc_stdc=$ac_arg
  1992. break
  1993. else
  1994. echo "$as_me: failed program was:" >&5
  1995. sed 's/^/| /' conftest.$ac_ext >&5
  1996. fi
  1997. rm -f conftest.err conftest.$ac_objext
  1998. done
  1999. rm -f conftest.$ac_ext conftest.$ac_objext
  2000. CC=$ac_save_CC
  2001. fi
  2002. case "x$ac_cv_prog_cc_stdc" in
  2003. x|xno)
  2004. echo "$as_me:$LINENO: result: none needed" >&5
  2005. echo "${ECHO_T}none needed" >&6 ;;
  2006. *)
  2007. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2008. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2009. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2010. esac
  2011. # Some people use a C++ compiler to compile C. Since we use `exit',
  2012. # in C++ we need to declare it. In case someone uses the same compiler
  2013. # for both compiling C and C++ we need to have the C++ compiler decide
  2014. # the declaration of exit, since it's the most demanding environment.
  2015. cat >conftest.$ac_ext <<_ACEOF
  2016. #ifndef __cplusplus
  2017. choke me
  2018. #endif
  2019. _ACEOF
  2020. rm -f conftest.$ac_objext
  2021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2022. (eval $ac_compile) 2>conftest.er1
  2023. ac_status=$?
  2024. grep -v '^ *+' conftest.er1 >conftest.err
  2025. rm -f conftest.er1
  2026. cat conftest.err >&5
  2027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2028. (exit $ac_status); } &&
  2029. { ac_try='test -z "$ac_c_werror_flag"
  2030. || test ! -s conftest.err'
  2031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2032. (eval $ac_try) 2>&5
  2033. ac_status=$?
  2034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2035. (exit $ac_status); }; } &&
  2036. { ac_try='test -s conftest.$ac_objext'
  2037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2038. (eval $ac_try) 2>&5
  2039. ac_status=$?
  2040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2041. (exit $ac_status); }; }; then
  2042. for ac_declaration in \
  2043. '' \
  2044. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2045. 'extern "C" void std::exit (int); using std::exit;' \
  2046. 'extern "C" void exit (int) throw ();' \
  2047. 'extern "C" void exit (int);' \
  2048. 'void exit (int);'
  2049. do
  2050. cat >conftest.$ac_ext <<_ACEOF
  2051. /* confdefs.h. */
  2052. _ACEOF
  2053. cat confdefs.h >>conftest.$ac_ext
  2054. cat >>conftest.$ac_ext <<_ACEOF
  2055. /* end confdefs.h. */
  2056. $ac_declaration
  2057. #include <stdlib.h>
  2058. int
  2059. main ()
  2060. {
  2061. exit (42);
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. rm -f conftest.$ac_objext
  2067. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2068. (eval $ac_compile) 2>conftest.er1
  2069. ac_status=$?
  2070. grep -v '^ *+' conftest.er1 >conftest.err
  2071. rm -f conftest.er1
  2072. cat conftest.err >&5
  2073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2074. (exit $ac_status); } &&
  2075. { ac_try='test -z "$ac_c_werror_flag"
  2076. || test ! -s conftest.err'
  2077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2078. (eval $ac_try) 2>&5
  2079. ac_status=$?
  2080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2081. (exit $ac_status); }; } &&
  2082. { ac_try='test -s conftest.$ac_objext'
  2083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2084. (eval $ac_try) 2>&5
  2085. ac_status=$?
  2086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2087. (exit $ac_status); }; }; then
  2088. :
  2089. else
  2090. echo "$as_me: failed program was:" >&5
  2091. sed 's/^/| /' conftest.$ac_ext >&5
  2092. continue
  2093. fi
  2094. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2095. cat >conftest.$ac_ext <<_ACEOF
  2096. /* confdefs.h. */
  2097. _ACEOF
  2098. cat confdefs.h >>conftest.$ac_ext
  2099. cat >>conftest.$ac_ext <<_ACEOF
  2100. /* end confdefs.h. */
  2101. $ac_declaration
  2102. int
  2103. main ()
  2104. {
  2105. exit (42);
  2106. ;
  2107. return 0;
  2108. }
  2109. _ACEOF
  2110. rm -f conftest.$ac_objext
  2111. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2112. (eval $ac_compile) 2>conftest.er1
  2113. ac_status=$?
  2114. grep -v '^ *+' conftest.er1 >conftest.err
  2115. rm -f conftest.er1
  2116. cat conftest.err >&5
  2117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2118. (exit $ac_status); } &&
  2119. { ac_try='test -z "$ac_c_werror_flag"
  2120. || test ! -s conftest.err'
  2121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2122. (eval $ac_try) 2>&5
  2123. ac_status=$?
  2124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2125. (exit $ac_status); }; } &&
  2126. { ac_try='test -s conftest.$ac_objext'
  2127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2128. (eval $ac_try) 2>&5
  2129. ac_status=$?
  2130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2131. (exit $ac_status); }; }; then
  2132. break
  2133. else
  2134. echo "$as_me: failed program was:" >&5
  2135. sed 's/^/| /' conftest.$ac_ext >&5
  2136. fi
  2137. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2138. done
  2139. rm -f conftest*
  2140. if test -n "$ac_declaration"; then
  2141. echo '#ifdef __cplusplus' >>confdefs.h
  2142. echo $ac_declaration >>confdefs.h
  2143. echo '#endif' >>confdefs.h
  2144. fi
  2145. else
  2146. echo "$as_me: failed program was:" >&5
  2147. sed 's/^/| /' conftest.$ac_ext >&5
  2148. fi
  2149. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2150. ac_ext=c
  2151. ac_cpp='$CPP $CPPFLAGS'
  2152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2155. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2156. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2157. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2158. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2159. echo $ECHO_N "(cached) $ECHO_C" >&6
  2160. else
  2161. cat >conftest.make <<\_ACEOF
  2162. all:
  2163. @echo 'ac_maketemp="$(MAKE)"'
  2164. _ACEOF
  2165. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2166. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2167. if test -n "$ac_maketemp"; then
  2168. eval ac_cv_prog_make_${ac_make}_set=yes
  2169. else
  2170. eval ac_cv_prog_make_${ac_make}_set=no
  2171. fi
  2172. rm -f conftest.make
  2173. fi
  2174. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2175. echo "$as_me:$LINENO: result: yes" >&5
  2176. echo "${ECHO_T}yes" >&6
  2177. SET_MAKE=
  2178. else
  2179. echo "$as_me:$LINENO: result: no" >&5
  2180. echo "${ECHO_T}no" >&6
  2181. SET_MAKE="MAKE=${MAKE-make}"
  2182. fi
  2183. ac_ext=c
  2184. ac_cpp='$CPP $CPPFLAGS'
  2185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2188. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2189. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2190. # On Suns, sometimes $CPP names a directory.
  2191. if test -n "$CPP" && test -d "$CPP"; then
  2192. CPP=
  2193. fi
  2194. if test -z "$CPP"; then
  2195. if test "${ac_cv_prog_CPP+set}" = set; then
  2196. echo $ECHO_N "(cached) $ECHO_C" >&6
  2197. else
  2198. # Double quotes because CPP needs to be expanded
  2199. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2200. do
  2201. ac_preproc_ok=false
  2202. for ac_c_preproc_warn_flag in '' yes
  2203. do
  2204. # Use a header file that comes with gcc, so configuring glibc
  2205. # with a fresh cross-compiler works.
  2206. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2207. # <limits.h> exists even on freestanding compilers.
  2208. # On the NeXT, cc -E runs the code through the compiler's parser,
  2209. # not just through cpp. "Syntax error" is here to catch this case.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #ifdef __STDC__
  2217. # include <limits.h>
  2218. #else
  2219. # include <assert.h>
  2220. #endif
  2221. Syntax error
  2222. _ACEOF
  2223. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2224. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2225. ac_status=$?
  2226. grep -v '^ *+' conftest.er1 >conftest.err
  2227. rm -f conftest.er1
  2228. cat conftest.err >&5
  2229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2230. (exit $ac_status); } >/dev/null; then
  2231. if test -s conftest.err; then
  2232. ac_cpp_err=$ac_c_preproc_warn_flag
  2233. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2234. else
  2235. ac_cpp_err=
  2236. fi
  2237. else
  2238. ac_cpp_err=yes
  2239. fi
  2240. if test -z "$ac_cpp_err"; then
  2241. :
  2242. else
  2243. echo "$as_me: failed program was:" >&5
  2244. sed 's/^/| /' conftest.$ac_ext >&5
  2245. # Broken: fails on valid input.
  2246. continue
  2247. fi
  2248. rm -f conftest.err conftest.$ac_ext
  2249. # OK, works on sane cases. Now check whether non-existent headers
  2250. # can be detected and how.
  2251. cat >conftest.$ac_ext <<_ACEOF
  2252. /* confdefs.h. */
  2253. _ACEOF
  2254. cat confdefs.h >>conftest.$ac_ext
  2255. cat >>conftest.$ac_ext <<_ACEOF
  2256. /* end confdefs.h. */
  2257. #include <ac_nonexistent.h>
  2258. _ACEOF
  2259. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2260. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2261. ac_status=$?
  2262. grep -v '^ *+' conftest.er1 >conftest.err
  2263. rm -f conftest.er1
  2264. cat conftest.err >&5
  2265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2266. (exit $ac_status); } >/dev/null; then
  2267. if test -s conftest.err; then
  2268. ac_cpp_err=$ac_c_preproc_warn_flag
  2269. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2270. else
  2271. ac_cpp_err=
  2272. fi
  2273. else
  2274. ac_cpp_err=yes
  2275. fi
  2276. if test -z "$ac_cpp_err"; then
  2277. # Broken: success on invalid input.
  2278. continue
  2279. else
  2280. echo "$as_me: failed program was:" >&5
  2281. sed 's/^/| /' conftest.$ac_ext >&5
  2282. # Passes both tests.
  2283. ac_preproc_ok=:
  2284. break
  2285. fi
  2286. rm -f conftest.err conftest.$ac_ext
  2287. done
  2288. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2289. rm -f conftest.err conftest.$ac_ext
  2290. if $ac_preproc_ok; then
  2291. break
  2292. fi
  2293. done
  2294. ac_cv_prog_CPP=$CPP
  2295. fi
  2296. CPP=$ac_cv_prog_CPP
  2297. else
  2298. ac_cv_prog_CPP=$CPP
  2299. fi
  2300. echo "$as_me:$LINENO: result: $CPP" >&5
  2301. echo "${ECHO_T}$CPP" >&6
  2302. ac_preproc_ok=false
  2303. for ac_c_preproc_warn_flag in '' yes
  2304. do
  2305. # Use a header file that comes with gcc, so configuring glibc
  2306. # with a fresh cross-compiler works.
  2307. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2308. # <limits.h> exists even on freestanding compilers.
  2309. # On the NeXT, cc -E runs the code through the compiler's parser,
  2310. # not just through cpp. "Syntax error" is here to catch this case.
  2311. cat >conftest.$ac_ext <<_ACEOF
  2312. /* confdefs.h. */
  2313. _ACEOF
  2314. cat confdefs.h >>conftest.$ac_ext
  2315. cat >>conftest.$ac_ext <<_ACEOF
  2316. /* end confdefs.h. */
  2317. #ifdef __STDC__
  2318. # include <limits.h>
  2319. #else
  2320. # include <assert.h>
  2321. #endif
  2322. Syntax error
  2323. _ACEOF
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2325. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } >/dev/null; then
  2332. if test -s conftest.err; then
  2333. ac_cpp_err=$ac_c_preproc_warn_flag
  2334. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2335. else
  2336. ac_cpp_err=
  2337. fi
  2338. else
  2339. ac_cpp_err=yes
  2340. fi
  2341. if test -z "$ac_cpp_err"; then
  2342. :
  2343. else
  2344. echo "$as_me: failed program was:" >&5
  2345. sed 's/^/| /' conftest.$ac_ext >&5
  2346. # Broken: fails on valid input.
  2347. continue
  2348. fi
  2349. rm -f conftest.err conftest.$ac_ext
  2350. # OK, works on sane cases. Now check whether non-existent headers
  2351. # can be detected and how.
  2352. cat >conftest.$ac_ext <<_ACEOF
  2353. /* confdefs.h. */
  2354. _ACEOF
  2355. cat confdefs.h >>conftest.$ac_ext
  2356. cat >>conftest.$ac_ext <<_ACEOF
  2357. /* end confdefs.h. */
  2358. #include <ac_nonexistent.h>
  2359. _ACEOF
  2360. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2361. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2362. ac_status=$?
  2363. grep -v '^ *+' conftest.er1 >conftest.err
  2364. rm -f conftest.er1
  2365. cat conftest.err >&5
  2366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2367. (exit $ac_status); } >/dev/null; then
  2368. if test -s conftest.err; then
  2369. ac_cpp_err=$ac_c_preproc_warn_flag
  2370. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2371. else
  2372. ac_cpp_err=
  2373. fi
  2374. else
  2375. ac_cpp_err=yes
  2376. fi
  2377. if test -z "$ac_cpp_err"; then
  2378. # Broken: success on invalid input.
  2379. continue
  2380. else
  2381. echo "$as_me: failed program was:" >&5
  2382. sed 's/^/| /' conftest.$ac_ext >&5
  2383. # Passes both tests.
  2384. ac_preproc_ok=:
  2385. break
  2386. fi
  2387. rm -f conftest.err conftest.$ac_ext
  2388. done
  2389. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2390. rm -f conftest.err conftest.$ac_ext
  2391. if $ac_preproc_ok; then
  2392. :
  2393. else
  2394. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2395. See \`config.log' for more details." >&5
  2396. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2397. See \`config.log' for more details." >&2;}
  2398. { (exit 1); exit 1; }; }
  2399. fi
  2400. ac_ext=c
  2401. ac_cpp='$CPP $CPPFLAGS'
  2402. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2403. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2404. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2405. echo "$as_me:$LINENO: checking for egrep" >&5
  2406. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2407. if test "${ac_cv_prog_egrep+set}" = set; then
  2408. echo $ECHO_N "(cached) $ECHO_C" >&6
  2409. else
  2410. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2411. then ac_cv_prog_egrep='grep -E'
  2412. else ac_cv_prog_egrep='egrep'
  2413. fi
  2414. fi
  2415. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2416. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2417. EGREP=$ac_cv_prog_egrep
  2418. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2419. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2420. if test "${ac_cv_header_stdc+set}" = set; then
  2421. echo $ECHO_N "(cached) $ECHO_C" >&6
  2422. else
  2423. cat >conftest.$ac_ext <<_ACEOF
  2424. /* confdefs.h. */
  2425. _ACEOF
  2426. cat confdefs.h >>conftest.$ac_ext
  2427. cat >>conftest.$ac_ext <<_ACEOF
  2428. /* end confdefs.h. */
  2429. #include <stdlib.h>
  2430. #include <stdarg.h>
  2431. #include <string.h>
  2432. #include <float.h>
  2433. int
  2434. main ()
  2435. {
  2436. ;
  2437. return 0;
  2438. }
  2439. _ACEOF
  2440. rm -f conftest.$ac_objext
  2441. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2442. (eval $ac_compile) 2>conftest.er1
  2443. ac_status=$?
  2444. grep -v '^ *+' conftest.er1 >conftest.err
  2445. rm -f conftest.er1
  2446. cat conftest.err >&5
  2447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2448. (exit $ac_status); } &&
  2449. { ac_try='test -z "$ac_c_werror_flag"
  2450. || test ! -s conftest.err'
  2451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2452. (eval $ac_try) 2>&5
  2453. ac_status=$?
  2454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455. (exit $ac_status); }; } &&
  2456. { ac_try='test -s conftest.$ac_objext'
  2457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2458. (eval $ac_try) 2>&5
  2459. ac_status=$?
  2460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2461. (exit $ac_status); }; }; then
  2462. ac_cv_header_stdc=yes
  2463. else
  2464. echo "$as_me: failed program was:" >&5
  2465. sed 's/^/| /' conftest.$ac_ext >&5
  2466. ac_cv_header_stdc=no
  2467. fi
  2468. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2469. if test $ac_cv_header_stdc = yes; then
  2470. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2471. cat >conftest.$ac_ext <<_ACEOF
  2472. /* confdefs.h. */
  2473. _ACEOF
  2474. cat confdefs.h >>conftest.$ac_ext
  2475. cat >>conftest.$ac_ext <<_ACEOF
  2476. /* end confdefs.h. */
  2477. #include <string.h>
  2478. _ACEOF
  2479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2480. $EGREP "memchr" >/dev/null 2>&1; then
  2481. :
  2482. else
  2483. ac_cv_header_stdc=no
  2484. fi
  2485. rm -f conftest*
  2486. fi
  2487. if test $ac_cv_header_stdc = yes; then
  2488. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2489. cat >conftest.$ac_ext <<_ACEOF
  2490. /* confdefs.h. */
  2491. _ACEOF
  2492. cat confdefs.h >>conftest.$ac_ext
  2493. cat >>conftest.$ac_ext <<_ACEOF
  2494. /* end confdefs.h. */
  2495. #include <stdlib.h>
  2496. _ACEOF
  2497. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2498. $EGREP "free" >/dev/null 2>&1; then
  2499. :
  2500. else
  2501. ac_cv_header_stdc=no
  2502. fi
  2503. rm -f conftest*
  2504. fi
  2505. if test $ac_cv_header_stdc = yes; then
  2506. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2507. if test "$cross_compiling" = yes; then
  2508. :
  2509. else
  2510. cat >conftest.$ac_ext <<_ACEOF
  2511. /* confdefs.h. */
  2512. _ACEOF
  2513. cat confdefs.h >>conftest.$ac_ext
  2514. cat >>conftest.$ac_ext <<_ACEOF
  2515. /* end confdefs.h. */
  2516. #include <ctype.h>
  2517. #if ((' ' & 0x0FF) == 0x020)
  2518. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2519. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2520. #else
  2521. # define ISLOWER(c) \
  2522. (('a' <= (c) && (c) <= 'i') \
  2523. || ('j' <= (c) && (c) <= 'r') \
  2524. || ('s' <= (c) && (c) <= 'z'))
  2525. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2526. #endif
  2527. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2528. int
  2529. main ()
  2530. {
  2531. int i;
  2532. for (i = 0; i < 256; i++)
  2533. if (XOR (islower (i), ISLOWER (i))
  2534. || toupper (i) != TOUPPER (i))
  2535. exit(2);
  2536. exit (0);
  2537. }
  2538. _ACEOF
  2539. rm -f conftest$ac_exeext
  2540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2541. (eval $ac_link) 2>&5
  2542. ac_status=$?
  2543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2544. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2546. (eval $ac_try) 2>&5
  2547. ac_status=$?
  2548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2549. (exit $ac_status); }; }; then
  2550. :
  2551. else
  2552. echo "$as_me: program exited with status $ac_status" >&5
  2553. echo "$as_me: failed program was:" >&5
  2554. sed 's/^/| /' conftest.$ac_ext >&5
  2555. ( exit $ac_status )
  2556. ac_cv_header_stdc=no
  2557. fi
  2558. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2559. fi
  2560. fi
  2561. fi
  2562. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2563. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2564. if test $ac_cv_header_stdc = yes; then
  2565. cat >>confdefs.h <<\_ACEOF
  2566. #define STDC_HEADERS 1
  2567. _ACEOF
  2568. fi
  2569. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  2570. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  2571. if test "${ac_cv_header_time+set}" = set; then
  2572. echo $ECHO_N "(cached) $ECHO_C" >&6
  2573. else
  2574. cat >conftest.$ac_ext <<_ACEOF
  2575. /* confdefs.h. */
  2576. _ACEOF
  2577. cat confdefs.h >>conftest.$ac_ext
  2578. cat >>conftest.$ac_ext <<_ACEOF
  2579. /* end confdefs.h. */
  2580. #include <sys/types.h>
  2581. #include <sys/time.h>
  2582. #include <time.h>
  2583. int
  2584. main ()
  2585. {
  2586. if ((struct tm *) 0)
  2587. return 0;
  2588. ;
  2589. return 0;
  2590. }
  2591. _ACEOF
  2592. rm -f conftest.$ac_objext
  2593. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2594. (eval $ac_compile) 2>conftest.er1
  2595. ac_status=$?
  2596. grep -v '^ *+' conftest.er1 >conftest.err
  2597. rm -f conftest.er1
  2598. cat conftest.err >&5
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); } &&
  2601. { ac_try='test -z "$ac_c_werror_flag"
  2602. || test ! -s conftest.err'
  2603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2604. (eval $ac_try) 2>&5
  2605. ac_status=$?
  2606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2607. (exit $ac_status); }; } &&
  2608. { ac_try='test -s conftest.$ac_objext'
  2609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2610. (eval $ac_try) 2>&5
  2611. ac_status=$?
  2612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2613. (exit $ac_status); }; }; then
  2614. ac_cv_header_time=yes
  2615. else
  2616. echo "$as_me: failed program was:" >&5
  2617. sed 's/^/| /' conftest.$ac_ext >&5
  2618. ac_cv_header_time=no
  2619. fi
  2620. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2621. fi
  2622. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  2623. echo "${ECHO_T}$ac_cv_header_time" >&6
  2624. if test $ac_cv_header_time = yes; then
  2625. cat >>confdefs.h <<\_ACEOF
  2626. #define TIME_WITH_SYS_TIME 1
  2627. _ACEOF
  2628. fi
  2629. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  2630. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  2631. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  2632. echo $ECHO_N "(cached) $ECHO_C" >&6
  2633. else
  2634. cat >conftest.$ac_ext <<_ACEOF
  2635. /* confdefs.h. */
  2636. _ACEOF
  2637. cat confdefs.h >>conftest.$ac_ext
  2638. cat >>conftest.$ac_ext <<_ACEOF
  2639. /* end confdefs.h. */
  2640. #include <sys/types.h>
  2641. #include <sys/wait.h>
  2642. #ifndef WEXITSTATUS
  2643. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  2644. #endif
  2645. #ifndef WIFEXITED
  2646. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  2647. #endif
  2648. int
  2649. main ()
  2650. {
  2651. int s;
  2652. wait (&s);
  2653. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  2654. ;
  2655. return 0;
  2656. }
  2657. _ACEOF
  2658. rm -f conftest.$ac_objext
  2659. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2660. (eval $ac_compile) 2>conftest.er1
  2661. ac_status=$?
  2662. grep -v '^ *+' conftest.er1 >conftest.err
  2663. rm -f conftest.er1
  2664. cat conftest.err >&5
  2665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2666. (exit $ac_status); } &&
  2667. { ac_try='test -z "$ac_c_werror_flag"
  2668. || test ! -s conftest.err'
  2669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2670. (eval $ac_try) 2>&5
  2671. ac_status=$?
  2672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2673. (exit $ac_status); }; } &&
  2674. { ac_try='test -s conftest.$ac_objext'
  2675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2676. (eval $ac_try) 2>&5
  2677. ac_status=$?
  2678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679. (exit $ac_status); }; }; then
  2680. ac_cv_header_sys_wait_h=yes
  2681. else
  2682. echo "$as_me: failed program was:" >&5
  2683. sed 's/^/| /' conftest.$ac_ext >&5
  2684. ac_cv_header_sys_wait_h=no
  2685. fi
  2686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2687. fi
  2688. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  2689. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  2690. if test $ac_cv_header_sys_wait_h = yes; then
  2691. cat >>confdefs.h <<\_ACEOF
  2692. #define HAVE_SYS_WAIT_H 1
  2693. _ACEOF
  2694. fi
  2695. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2696. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2697. inttypes.h stdint.h unistd.h
  2698. do
  2699. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2700. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2701. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2702. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2703. echo $ECHO_N "(cached) $ECHO_C" >&6
  2704. else
  2705. cat >conftest.$ac_ext <<_ACEOF
  2706. /* confdefs.h. */
  2707. _ACEOF
  2708. cat confdefs.h >>conftest.$ac_ext
  2709. cat >>conftest.$ac_ext <<_ACEOF
  2710. /* end confdefs.h. */
  2711. $ac_includes_default
  2712. #include <$ac_header>
  2713. _ACEOF
  2714. rm -f conftest.$ac_objext
  2715. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2716. (eval $ac_compile) 2>conftest.er1
  2717. ac_status=$?
  2718. grep -v '^ *+' conftest.er1 >conftest.err
  2719. rm -f conftest.er1
  2720. cat conftest.err >&5
  2721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2722. (exit $ac_status); } &&
  2723. { ac_try='test -z "$ac_c_werror_flag"
  2724. || test ! -s conftest.err'
  2725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2726. (eval $ac_try) 2>&5
  2727. ac_status=$?
  2728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2729. (exit $ac_status); }; } &&
  2730. { ac_try='test -s conftest.$ac_objext'
  2731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2732. (eval $ac_try) 2>&5
  2733. ac_status=$?
  2734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2735. (exit $ac_status); }; }; then
  2736. eval "$as_ac_Header=yes"
  2737. else
  2738. echo "$as_me: failed program was:" >&5
  2739. sed 's/^/| /' conftest.$ac_ext >&5
  2740. eval "$as_ac_Header=no"
  2741. fi
  2742. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2743. fi
  2744. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2745. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2746. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2747. cat >>confdefs.h <<_ACEOF
  2748. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2749. _ACEOF
  2750. fi
  2751. done
  2752. for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h signal.h stdint.h strings.h string.h syslog.h tcpd.h unistd.h arpa/inet.h netinet/in.h socket.h sys/types.h sys/time.h sys/resource.h sys/wait.h sys/socket.h sys/stat.h
  2753. do
  2754. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2755. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2756. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2757. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2758. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2759. echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. fi
  2761. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2762. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2763. else
  2764. # Is the header compilable?
  2765. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  2766. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  2767. cat >conftest.$ac_ext <<_ACEOF
  2768. /* confdefs.h. */
  2769. _ACEOF
  2770. cat confdefs.h >>conftest.$ac_ext
  2771. cat >>conftest.$ac_ext <<_ACEOF
  2772. /* end confdefs.h. */
  2773. $ac_includes_default
  2774. #include <$ac_header>
  2775. _ACEOF
  2776. rm -f conftest.$ac_objext
  2777. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2778. (eval $ac_compile) 2>conftest.er1
  2779. ac_status=$?
  2780. grep -v '^ *+' conftest.er1 >conftest.err
  2781. rm -f conftest.er1
  2782. cat conftest.err >&5
  2783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2784. (exit $ac_status); } &&
  2785. { ac_try='test -z "$ac_c_werror_flag"
  2786. || test ! -s conftest.err'
  2787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2788. (eval $ac_try) 2>&5
  2789. ac_status=$?
  2790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2791. (exit $ac_status); }; } &&
  2792. { ac_try='test -s conftest.$ac_objext'
  2793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2794. (eval $ac_try) 2>&5
  2795. ac_status=$?
  2796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2797. (exit $ac_status); }; }; then
  2798. ac_header_compiler=yes
  2799. else
  2800. echo "$as_me: failed program was:" >&5
  2801. sed 's/^/| /' conftest.$ac_ext >&5
  2802. ac_header_compiler=no
  2803. fi
  2804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2805. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2806. echo "${ECHO_T}$ac_header_compiler" >&6
  2807. # Is the header present?
  2808. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  2809. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  2810. cat >conftest.$ac_ext <<_ACEOF
  2811. /* confdefs.h. */
  2812. _ACEOF
  2813. cat confdefs.h >>conftest.$ac_ext
  2814. cat >>conftest.$ac_ext <<_ACEOF
  2815. /* end confdefs.h. */
  2816. #include <$ac_header>
  2817. _ACEOF
  2818. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2819. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2820. ac_status=$?
  2821. grep -v '^ *+' conftest.er1 >conftest.err
  2822. rm -f conftest.er1
  2823. cat conftest.err >&5
  2824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2825. (exit $ac_status); } >/dev/null; then
  2826. if test -s conftest.err; then
  2827. ac_cpp_err=$ac_c_preproc_warn_flag
  2828. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2829. else
  2830. ac_cpp_err=
  2831. fi
  2832. else
  2833. ac_cpp_err=yes
  2834. fi
  2835. if test -z "$ac_cpp_err"; then
  2836. ac_header_preproc=yes
  2837. else
  2838. echo "$as_me: failed program was:" >&5
  2839. sed 's/^/| /' conftest.$ac_ext >&5
  2840. ac_header_preproc=no
  2841. fi
  2842. rm -f conftest.err conftest.$ac_ext
  2843. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2844. echo "${ECHO_T}$ac_header_preproc" >&6
  2845. # So? What about this header?
  2846. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2847. yes:no: )
  2848. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  2849. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2850. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  2851. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  2852. ac_header_preproc=yes
  2853. ;;
  2854. no:yes:* )
  2855. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  2856. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  2857. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  2858. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  2859. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  2860. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  2861. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  2862. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  2863. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  2864. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  2865. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  2866. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  2867. (
  2868. cat <<\_ASBOX
  2869. ## ------------------------------------------------- ##
  2870. ## Report this to nagios-users@lists.sourceforge.net ##
  2871. ## ------------------------------------------------- ##
  2872. _ASBOX
  2873. ) |
  2874. sed "s/^/$as_me: WARNING: /" >&2
  2875. ;;
  2876. esac
  2877. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2878. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2879. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2880. echo $ECHO_N "(cached) $ECHO_C" >&6
  2881. else
  2882. eval "$as_ac_Header=\$ac_header_preproc"
  2883. fi
  2884. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2885. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2886. fi
  2887. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2888. cat >>confdefs.h <<_ACEOF
  2889. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2890. _ACEOF
  2891. fi
  2892. done
  2893. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  2894. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  2895. if test "${ac_cv_c_const+set}" = set; then
  2896. echo $ECHO_N "(cached) $ECHO_C" >&6
  2897. else
  2898. cat >conftest.$ac_ext <<_ACEOF
  2899. /* confdefs.h. */
  2900. _ACEOF
  2901. cat confdefs.h >>conftest.$ac_ext
  2902. cat >>conftest.$ac_ext <<_ACEOF
  2903. /* end confdefs.h. */
  2904. int
  2905. main ()
  2906. {
  2907. /* FIXME: Include the comments suggested by Paul. */
  2908. #ifndef __cplusplus
  2909. /* Ultrix mips cc rejects this. */
  2910. typedef int charset[2];
  2911. const charset x;
  2912. /* SunOS 4.1.1 cc rejects this. */
  2913. char const *const *ccp;
  2914. char **p;
  2915. /* NEC SVR4.0.2 mips cc rejects this. */
  2916. struct point {int x, y;};
  2917. static struct point const zero = {0,0};
  2918. /* AIX XL C 1.02.0.0 rejects this.
  2919. It does not let you subtract one const X* pointer from another in
  2920. an arm of an if-expression whose if-part is not a constant
  2921. expression */
  2922. const char *g = "string";
  2923. ccp = &g + (g ? g-g : 0);
  2924. /* HPUX 7.0 cc rejects these. */
  2925. ++ccp;
  2926. p = (char**) ccp;
  2927. ccp = (char const *const *) p;
  2928. { /* SCO 3.2v4 cc rejects this. */
  2929. char *t;
  2930. char const *s = 0 ? (char *) 0 : (char const *) 0;
  2931. *t++ = 0;
  2932. }
  2933. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  2934. int x[] = {25, 17};
  2935. const int *foo = &x[0];
  2936. ++foo;
  2937. }
  2938. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  2939. typedef const int *iptr;
  2940. iptr p = 0;
  2941. ++p;
  2942. }
  2943. { /* AIX XL C 1.02.0.0 rejects this saying
  2944. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  2945. struct s { int j; const int *ap[3]; };
  2946. struct s *b; b->j = 5;
  2947. }
  2948. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  2949. const int foo = 10;
  2950. }
  2951. #endif
  2952. ;
  2953. return 0;
  2954. }
  2955. _ACEOF
  2956. rm -f conftest.$ac_objext
  2957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2958. (eval $ac_compile) 2>conftest.er1
  2959. ac_status=$?
  2960. grep -v '^ *+' conftest.er1 >conftest.err
  2961. rm -f conftest.er1
  2962. cat conftest.err >&5
  2963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2964. (exit $ac_status); } &&
  2965. { ac_try='test -z "$ac_c_werror_flag"
  2966. || test ! -s conftest.err'
  2967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2968. (eval $ac_try) 2>&5
  2969. ac_status=$?
  2970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971. (exit $ac_status); }; } &&
  2972. { ac_try='test -s conftest.$ac_objext'
  2973. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2974. (eval $ac_try) 2>&5
  2975. ac_status=$?
  2976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2977. (exit $ac_status); }; }; then
  2978. ac_cv_c_const=yes
  2979. else
  2980. echo "$as_me: failed program was:" >&5
  2981. sed 's/^/| /' conftest.$ac_ext >&5
  2982. ac_cv_c_const=no
  2983. fi
  2984. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2985. fi
  2986. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  2987. echo "${ECHO_T}$ac_cv_c_const" >&6
  2988. if test $ac_cv_c_const = no; then
  2989. cat >>confdefs.h <<\_ACEOF
  2990. #define const
  2991. _ACEOF
  2992. fi
  2993. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  2994. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  2995. if test "${ac_cv_struct_tm+set}" = set; then
  2996. echo $ECHO_N "(cached) $ECHO_C" >&6
  2997. else
  2998. cat >conftest.$ac_ext <<_ACEOF
  2999. /* confdefs.h. */
  3000. _ACEOF
  3001. cat confdefs.h >>conftest.$ac_ext
  3002. cat >>conftest.$ac_ext <<_ACEOF
  3003. /* end confdefs.h. */
  3004. #include <sys/types.h>
  3005. #include <time.h>
  3006. int
  3007. main ()
  3008. {
  3009. struct tm *tp; tp->tm_sec;
  3010. ;
  3011. return 0;
  3012. }
  3013. _ACEOF
  3014. rm -f conftest.$ac_objext
  3015. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3016. (eval $ac_compile) 2>conftest.er1
  3017. ac_status=$?
  3018. grep -v '^ *+' conftest.er1 >conftest.err
  3019. rm -f conftest.er1
  3020. cat conftest.err >&5
  3021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3022. (exit $ac_status); } &&
  3023. { ac_try='test -z "$ac_c_werror_flag"
  3024. || test ! -s conftest.err'
  3025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3026. (eval $ac_try) 2>&5
  3027. ac_status=$?
  3028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3029. (exit $ac_status); }; } &&
  3030. { ac_try='test -s conftest.$ac_objext'
  3031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3032. (eval $ac_try) 2>&5
  3033. ac_status=$?
  3034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3035. (exit $ac_status); }; }; then
  3036. ac_cv_struct_tm=time.h
  3037. else
  3038. echo "$as_me: failed program was:" >&5
  3039. sed 's/^/| /' conftest.$ac_ext >&5
  3040. ac_cv_struct_tm=sys/time.h
  3041. fi
  3042. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3043. fi
  3044. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  3045. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  3046. if test $ac_cv_struct_tm = sys/time.h; then
  3047. cat >>confdefs.h <<\_ACEOF
  3048. #define TM_IN_SYS_TIME 1
  3049. _ACEOF
  3050. fi
  3051. echo "$as_me:$LINENO: checking for mode_t" >&5
  3052. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  3053. if test "${ac_cv_type_mode_t+set}" = set; then
  3054. echo $ECHO_N "(cached) $ECHO_C" >&6
  3055. else
  3056. cat >conftest.$ac_ext <<_ACEOF
  3057. /* confdefs.h. */
  3058. _ACEOF
  3059. cat confdefs.h >>conftest.$ac_ext
  3060. cat >>conftest.$ac_ext <<_ACEOF
  3061. /* end confdefs.h. */
  3062. $ac_includes_default
  3063. int
  3064. main ()
  3065. {
  3066. if ((mode_t *) 0)
  3067. return 0;
  3068. if (sizeof (mode_t))
  3069. return 0;
  3070. ;
  3071. return 0;
  3072. }
  3073. _ACEOF
  3074. rm -f conftest.$ac_objext
  3075. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3076. (eval $ac_compile) 2>conftest.er1
  3077. ac_status=$?
  3078. grep -v '^ *+' conftest.er1 >conftest.err
  3079. rm -f conftest.er1
  3080. cat conftest.err >&5
  3081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3082. (exit $ac_status); } &&
  3083. { ac_try='test -z "$ac_c_werror_flag"
  3084. || test ! -s conftest.err'
  3085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3086. (eval $ac_try) 2>&5
  3087. ac_status=$?
  3088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3089. (exit $ac_status); }; } &&
  3090. { ac_try='test -s conftest.$ac_objext'
  3091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3092. (eval $ac_try) 2>&5
  3093. ac_status=$?
  3094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3095. (exit $ac_status); }; }; then
  3096. ac_cv_type_mode_t=yes
  3097. else
  3098. echo "$as_me: failed program was:" >&5
  3099. sed 's/^/| /' conftest.$ac_ext >&5
  3100. ac_cv_type_mode_t=no
  3101. fi
  3102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3103. fi
  3104. echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  3105. echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  3106. if test $ac_cv_type_mode_t = yes; then
  3107. :
  3108. else
  3109. cat >>confdefs.h <<_ACEOF
  3110. #define mode_t int
  3111. _ACEOF
  3112. fi
  3113. echo "$as_me:$LINENO: checking for pid_t" >&5
  3114. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  3115. if test "${ac_cv_type_pid_t+set}" = set; then
  3116. echo $ECHO_N "(cached) $ECHO_C" >&6
  3117. else
  3118. cat >conftest.$ac_ext <<_ACEOF
  3119. /* confdefs.h. */
  3120. _ACEOF
  3121. cat confdefs.h >>conftest.$ac_ext
  3122. cat >>conftest.$ac_ext <<_ACEOF
  3123. /* end confdefs.h. */
  3124. $ac_includes_default
  3125. int
  3126. main ()
  3127. {
  3128. if ((pid_t *) 0)
  3129. return 0;
  3130. if (sizeof (pid_t))
  3131. return 0;
  3132. ;
  3133. return 0;
  3134. }
  3135. _ACEOF
  3136. rm -f conftest.$ac_objext
  3137. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3138. (eval $ac_compile) 2>conftest.er1
  3139. ac_status=$?
  3140. grep -v '^ *+' conftest.er1 >conftest.err
  3141. rm -f conftest.er1
  3142. cat conftest.err >&5
  3143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3144. (exit $ac_status); } &&
  3145. { ac_try='test -z "$ac_c_werror_flag"
  3146. || test ! -s conftest.err'
  3147. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3148. (eval $ac_try) 2>&5
  3149. ac_status=$?
  3150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3151. (exit $ac_status); }; } &&
  3152. { ac_try='test -s conftest.$ac_objext'
  3153. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3154. (eval $ac_try) 2>&5
  3155. ac_status=$?
  3156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3157. (exit $ac_status); }; }; then
  3158. ac_cv_type_pid_t=yes
  3159. else
  3160. echo "$as_me: failed program was:" >&5
  3161. sed 's/^/| /' conftest.$ac_ext >&5
  3162. ac_cv_type_pid_t=no
  3163. fi
  3164. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3165. fi
  3166. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  3167. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  3168. if test $ac_cv_type_pid_t = yes; then
  3169. :
  3170. else
  3171. cat >>confdefs.h <<_ACEOF
  3172. #define pid_t int
  3173. _ACEOF
  3174. fi
  3175. echo "$as_me:$LINENO: checking for size_t" >&5
  3176. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  3177. if test "${ac_cv_type_size_t+set}" = set; then
  3178. echo $ECHO_N "(cached) $ECHO_C" >&6
  3179. else
  3180. cat >conftest.$ac_ext <<_ACEOF
  3181. /* confdefs.h. */
  3182. _ACEOF
  3183. cat confdefs.h >>conftest.$ac_ext
  3184. cat >>conftest.$ac_ext <<_ACEOF
  3185. /* end confdefs.h. */
  3186. $ac_includes_default
  3187. int
  3188. main ()
  3189. {
  3190. if ((size_t *) 0)
  3191. return 0;
  3192. if (sizeof (size_t))
  3193. return 0;
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. rm -f conftest.$ac_objext
  3199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3200. (eval $ac_compile) 2>conftest.er1
  3201. ac_status=$?
  3202. grep -v '^ *+' conftest.er1 >conftest.err
  3203. rm -f conftest.er1
  3204. cat conftest.err >&5
  3205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3206. (exit $ac_status); } &&
  3207. { ac_try='test -z "$ac_c_werror_flag"
  3208. || test ! -s conftest.err'
  3209. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3210. (eval $ac_try) 2>&5
  3211. ac_status=$?
  3212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3213. (exit $ac_status); }; } &&
  3214. { ac_try='test -s conftest.$ac_objext'
  3215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3216. (eval $ac_try) 2>&5
  3217. ac_status=$?
  3218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3219. (exit $ac_status); }; }; then
  3220. ac_cv_type_size_t=yes
  3221. else
  3222. echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224. ac_cv_type_size_t=no
  3225. fi
  3226. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3227. fi
  3228. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3229. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  3230. if test $ac_cv_type_size_t = yes; then
  3231. :
  3232. else
  3233. cat >>confdefs.h <<_ACEOF
  3234. #define size_t unsigned
  3235. _ACEOF
  3236. fi
  3237. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  3238. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  3239. if test "${ac_cv_type_signal+set}" = set; then
  3240. echo $ECHO_N "(cached) $ECHO_C" >&6
  3241. else
  3242. cat >conftest.$ac_ext <<_ACEOF
  3243. /* confdefs.h. */
  3244. _ACEOF
  3245. cat confdefs.h >>conftest.$ac_ext
  3246. cat >>conftest.$ac_ext <<_ACEOF
  3247. /* end confdefs.h. */
  3248. #include <sys/types.h>
  3249. #include <signal.h>
  3250. #ifdef signal
  3251. # undef signal
  3252. #endif
  3253. #ifdef __cplusplus
  3254. extern "C" void (*signal (int, void (*)(int)))(int);
  3255. #else
  3256. void (*signal ()) ();
  3257. #endif
  3258. int
  3259. main ()
  3260. {
  3261. int i;
  3262. ;
  3263. return 0;
  3264. }
  3265. _ACEOF
  3266. rm -f conftest.$ac_objext
  3267. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3268. (eval $ac_compile) 2>conftest.er1
  3269. ac_status=$?
  3270. grep -v '^ *+' conftest.er1 >conftest.err
  3271. rm -f conftest.er1
  3272. cat conftest.err >&5
  3273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3274. (exit $ac_status); } &&
  3275. { ac_try='test -z "$ac_c_werror_flag"
  3276. || test ! -s conftest.err'
  3277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3278. (eval $ac_try) 2>&5
  3279. ac_status=$?
  3280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3281. (exit $ac_status); }; } &&
  3282. { ac_try='test -s conftest.$ac_objext'
  3283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3284. (eval $ac_try) 2>&5
  3285. ac_status=$?
  3286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3287. (exit $ac_status); }; }; then
  3288. ac_cv_type_signal=void
  3289. else
  3290. echo "$as_me: failed program was:" >&5
  3291. sed 's/^/| /' conftest.$ac_ext >&5
  3292. ac_cv_type_signal=int
  3293. fi
  3294. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3295. fi
  3296. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  3297. echo "${ECHO_T}$ac_cv_type_signal" >&6
  3298. cat >>confdefs.h <<_ACEOF
  3299. #define RETSIGTYPE $ac_cv_type_signal
  3300. _ACEOF
  3301. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  3302. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  3303. if test "${ac_cv_type_uid_t+set}" = set; then
  3304. echo $ECHO_N "(cached) $ECHO_C" >&6
  3305. else
  3306. cat >conftest.$ac_ext <<_ACEOF
  3307. /* confdefs.h. */
  3308. _ACEOF
  3309. cat confdefs.h >>conftest.$ac_ext
  3310. cat >>conftest.$ac_ext <<_ACEOF
  3311. /* end confdefs.h. */
  3312. #include <sys/types.h>
  3313. _ACEOF
  3314. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3315. $EGREP "uid_t" >/dev/null 2>&1; then
  3316. ac_cv_type_uid_t=yes
  3317. else
  3318. ac_cv_type_uid_t=no
  3319. fi
  3320. rm -f conftest*
  3321. fi
  3322. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  3323. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  3324. if test $ac_cv_type_uid_t = no; then
  3325. cat >>confdefs.h <<\_ACEOF
  3326. #define uid_t int
  3327. _ACEOF
  3328. cat >>confdefs.h <<\_ACEOF
  3329. #define gid_t int
  3330. _ACEOF
  3331. fi
  3332. echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
  3333. echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
  3334. if test "${ac_cv_type_getgroups+set}" = set; then
  3335. echo $ECHO_N "(cached) $ECHO_C" >&6
  3336. else
  3337. if test "$cross_compiling" = yes; then
  3338. ac_cv_type_getgroups=cross
  3339. else
  3340. cat >conftest.$ac_ext <<_ACEOF
  3341. /* confdefs.h. */
  3342. _ACEOF
  3343. cat confdefs.h >>conftest.$ac_ext
  3344. cat >>conftest.$ac_ext <<_ACEOF
  3345. /* end confdefs.h. */
  3346. /* Thanks to Mike Rendell for this test. */
  3347. #include <sys/types.h>
  3348. #define NGID 256
  3349. #undef MAX
  3350. #define MAX(x, y) ((x) > (y) ? (x) : (y))
  3351. int
  3352. main ()
  3353. {
  3354. gid_t gidset[NGID];
  3355. int i, n;
  3356. union { gid_t gval; long lval; } val;
  3357. val.lval = -1;
  3358. for (i = 0; i < NGID; i++)
  3359. gidset[i] = val.gval;
  3360. n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
  3361. gidset);
  3362. /* Exit non-zero if getgroups seems to require an array of ints. This
  3363. happens when gid_t is short but getgroups modifies an array of ints. */
  3364. exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
  3365. }
  3366. _ACEOF
  3367. rm -f conftest$ac_exeext
  3368. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3369. (eval $ac_link) 2>&5
  3370. ac_status=$?
  3371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3372. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3374. (eval $ac_try) 2>&5
  3375. ac_status=$?
  3376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. (exit $ac_status); }; }; then
  3378. ac_cv_type_getgroups=gid_t
  3379. else
  3380. echo "$as_me: program exited with status $ac_status" >&5
  3381. echo "$as_me: failed program was:" >&5
  3382. sed 's/^/| /' conftest.$ac_ext >&5
  3383. ( exit $ac_status )
  3384. ac_cv_type_getgroups=int
  3385. fi
  3386. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3387. fi
  3388. if test $ac_cv_type_getgroups = cross; then
  3389. cat >conftest.$ac_ext <<_ACEOF
  3390. /* confdefs.h. */
  3391. _ACEOF
  3392. cat confdefs.h >>conftest.$ac_ext
  3393. cat >>conftest.$ac_ext <<_ACEOF
  3394. /* end confdefs.h. */
  3395. #include <unistd.h>
  3396. _ACEOF
  3397. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3398. $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
  3399. ac_cv_type_getgroups=gid_t
  3400. else
  3401. ac_cv_type_getgroups=int
  3402. fi
  3403. rm -f conftest*
  3404. fi
  3405. fi
  3406. echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
  3407. echo "${ECHO_T}$ac_cv_type_getgroups" >&6
  3408. cat >>confdefs.h <<_ACEOF
  3409. #define GETGROUPS_T $ac_cv_type_getgroups
  3410. _ACEOF
  3411. echo "$as_me:$LINENO: checking for int" >&5
  3412. echo $ECHO_N "checking for int... $ECHO_C" >&6
  3413. if test "${ac_cv_type_int+set}" = set; then
  3414. echo $ECHO_N "(cached) $ECHO_C" >&6
  3415. else
  3416. cat >conftest.$ac_ext <<_ACEOF
  3417. /* confdefs.h. */
  3418. _ACEOF
  3419. cat confdefs.h >>conftest.$ac_ext
  3420. cat >>conftest.$ac_ext <<_ACEOF
  3421. /* end confdefs.h. */
  3422. $ac_includes_default
  3423. int
  3424. main ()
  3425. {
  3426. if ((int *) 0)
  3427. return 0;
  3428. if (sizeof (int))
  3429. return 0;
  3430. ;
  3431. return 0;
  3432. }
  3433. _ACEOF
  3434. rm -f conftest.$ac_objext
  3435. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3436. (eval $ac_compile) 2>conftest.er1
  3437. ac_status=$?
  3438. grep -v '^ *+' conftest.er1 >conftest.err
  3439. rm -f conftest.er1
  3440. cat conftest.err >&5
  3441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3442. (exit $ac_status); } &&
  3443. { ac_try='test -z "$ac_c_werror_flag"
  3444. || test ! -s conftest.err'
  3445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3446. (eval $ac_try) 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); }; } &&
  3450. { ac_try='test -s conftest.$ac_objext'
  3451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3452. (eval $ac_try) 2>&5
  3453. ac_status=$?
  3454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3455. (exit $ac_status); }; }; then
  3456. ac_cv_type_int=yes
  3457. else
  3458. echo "$as_me: failed program was:" >&5
  3459. sed 's/^/| /' conftest.$ac_ext >&5
  3460. ac_cv_type_int=no
  3461. fi
  3462. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3463. fi
  3464. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  3465. echo "${ECHO_T}$ac_cv_type_int" >&6
  3466. echo "$as_me:$LINENO: checking size of int" >&5
  3467. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  3468. if test "${ac_cv_sizeof_int+set}" = set; then
  3469. echo $ECHO_N "(cached) $ECHO_C" >&6
  3470. else
  3471. if test "$ac_cv_type_int" = yes; then
  3472. # The cast to unsigned long works around a bug in the HP C Compiler
  3473. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3474. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3475. # This bug is HP SR number 8606223364.
  3476. if test "$cross_compiling" = yes; then
  3477. # Depending upon the size, compute the lo and hi bounds.
  3478. cat >conftest.$ac_ext <<_ACEOF
  3479. /* confdefs.h. */
  3480. _ACEOF
  3481. cat confdefs.h >>conftest.$ac_ext
  3482. cat >>conftest.$ac_ext <<_ACEOF
  3483. /* end confdefs.h. */
  3484. $ac_includes_default
  3485. int
  3486. main ()
  3487. {
  3488. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  3489. test_array [0] = 0
  3490. ;
  3491. return 0;
  3492. }
  3493. _ACEOF
  3494. rm -f conftest.$ac_objext
  3495. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3496. (eval $ac_compile) 2>conftest.er1
  3497. ac_status=$?
  3498. grep -v '^ *+' conftest.er1 >conftest.err
  3499. rm -f conftest.er1
  3500. cat conftest.err >&5
  3501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3502. (exit $ac_status); } &&
  3503. { ac_try='test -z "$ac_c_werror_flag"
  3504. || test ! -s conftest.err'
  3505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3506. (eval $ac_try) 2>&5
  3507. ac_status=$?
  3508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3509. (exit $ac_status); }; } &&
  3510. { ac_try='test -s conftest.$ac_objext'
  3511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3512. (eval $ac_try) 2>&5
  3513. ac_status=$?
  3514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3515. (exit $ac_status); }; }; then
  3516. ac_lo=0 ac_mid=0
  3517. while :; do
  3518. cat >conftest.$ac_ext <<_ACEOF
  3519. /* confdefs.h. */
  3520. _ACEOF
  3521. cat confdefs.h >>conftest.$ac_ext
  3522. cat >>conftest.$ac_ext <<_ACEOF
  3523. /* end confdefs.h. */
  3524. $ac_includes_default
  3525. int
  3526. main ()
  3527. {
  3528. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  3529. test_array [0] = 0
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. rm -f conftest.$ac_objext
  3535. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3536. (eval $ac_compile) 2>conftest.er1
  3537. ac_status=$?
  3538. grep -v '^ *+' conftest.er1 >conftest.err
  3539. rm -f conftest.er1
  3540. cat conftest.err >&5
  3541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3542. (exit $ac_status); } &&
  3543. { ac_try='test -z "$ac_c_werror_flag"
  3544. || test ! -s conftest.err'
  3545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3546. (eval $ac_try) 2>&5
  3547. ac_status=$?
  3548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3549. (exit $ac_status); }; } &&
  3550. { ac_try='test -s conftest.$ac_objext'
  3551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3552. (eval $ac_try) 2>&5
  3553. ac_status=$?
  3554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3555. (exit $ac_status); }; }; then
  3556. ac_hi=$ac_mid; break
  3557. else
  3558. echo "$as_me: failed program was:" >&5
  3559. sed 's/^/| /' conftest.$ac_ext >&5
  3560. ac_lo=`expr $ac_mid + 1`
  3561. if test $ac_lo -le $ac_mid; then
  3562. ac_lo= ac_hi=
  3563. break
  3564. fi
  3565. ac_mid=`expr 2 '*' $ac_mid + 1`
  3566. fi
  3567. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3568. done
  3569. else
  3570. echo "$as_me: failed program was:" >&5
  3571. sed 's/^/| /' conftest.$ac_ext >&5
  3572. cat >conftest.$ac_ext <<_ACEOF
  3573. /* confdefs.h. */
  3574. _ACEOF
  3575. cat confdefs.h >>conftest.$ac_ext
  3576. cat >>conftest.$ac_ext <<_ACEOF
  3577. /* end confdefs.h. */
  3578. $ac_includes_default
  3579. int
  3580. main ()
  3581. {
  3582. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  3583. test_array [0] = 0
  3584. ;
  3585. return 0;
  3586. }
  3587. _ACEOF
  3588. rm -f conftest.$ac_objext
  3589. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3590. (eval $ac_compile) 2>conftest.er1
  3591. ac_status=$?
  3592. grep -v '^ *+' conftest.er1 >conftest.err
  3593. rm -f conftest.er1
  3594. cat conftest.err >&5
  3595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3596. (exit $ac_status); } &&
  3597. { ac_try='test -z "$ac_c_werror_flag"
  3598. || test ! -s conftest.err'
  3599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3600. (eval $ac_try) 2>&5
  3601. ac_status=$?
  3602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3603. (exit $ac_status); }; } &&
  3604. { ac_try='test -s conftest.$ac_objext'
  3605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3606. (eval $ac_try) 2>&5
  3607. ac_status=$?
  3608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3609. (exit $ac_status); }; }; then
  3610. ac_hi=-1 ac_mid=-1
  3611. while :; do
  3612. cat >conftest.$ac_ext <<_ACEOF
  3613. /* confdefs.h. */
  3614. _ACEOF
  3615. cat confdefs.h >>conftest.$ac_ext
  3616. cat >>conftest.$ac_ext <<_ACEOF
  3617. /* end confdefs.h. */
  3618. $ac_includes_default
  3619. int
  3620. main ()
  3621. {
  3622. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  3623. test_array [0] = 0
  3624. ;
  3625. return 0;
  3626. }
  3627. _ACEOF
  3628. rm -f conftest.$ac_objext
  3629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3630. (eval $ac_compile) 2>conftest.er1
  3631. ac_status=$?
  3632. grep -v '^ *+' conftest.er1 >conftest.err
  3633. rm -f conftest.er1
  3634. cat conftest.err >&5
  3635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3636. (exit $ac_status); } &&
  3637. { ac_try='test -z "$ac_c_werror_flag"
  3638. || test ! -s conftest.err'
  3639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3640. (eval $ac_try) 2>&5
  3641. ac_status=$?
  3642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3643. (exit $ac_status); }; } &&
  3644. { ac_try='test -s conftest.$ac_objext'
  3645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3646. (eval $ac_try) 2>&5
  3647. ac_status=$?
  3648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3649. (exit $ac_status); }; }; then
  3650. ac_lo=$ac_mid; break
  3651. else
  3652. echo "$as_me: failed program was:" >&5
  3653. sed 's/^/| /' conftest.$ac_ext >&5
  3654. ac_hi=`expr '(' $ac_mid ')' - 1`
  3655. if test $ac_mid -le $ac_hi; then
  3656. ac_lo= ac_hi=
  3657. break
  3658. fi
  3659. ac_mid=`expr 2 '*' $ac_mid`
  3660. fi
  3661. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3662. done
  3663. else
  3664. echo "$as_me: failed program was:" >&5
  3665. sed 's/^/| /' conftest.$ac_ext >&5
  3666. ac_lo= ac_hi=
  3667. fi
  3668. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3669. fi
  3670. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3671. # Binary search between lo and hi bounds.
  3672. while test "x$ac_lo" != "x$ac_hi"; do
  3673. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  3674. cat >conftest.$ac_ext <<_ACEOF
  3675. /* confdefs.h. */
  3676. _ACEOF
  3677. cat confdefs.h >>conftest.$ac_ext
  3678. cat >>conftest.$ac_ext <<_ACEOF
  3679. /* end confdefs.h. */
  3680. $ac_includes_default
  3681. int
  3682. main ()
  3683. {
  3684. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  3685. test_array [0] = 0
  3686. ;
  3687. return 0;
  3688. }
  3689. _ACEOF
  3690. rm -f conftest.$ac_objext
  3691. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3692. (eval $ac_compile) 2>conftest.er1
  3693. ac_status=$?
  3694. grep -v '^ *+' conftest.er1 >conftest.err
  3695. rm -f conftest.er1
  3696. cat conftest.err >&5
  3697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3698. (exit $ac_status); } &&
  3699. { ac_try='test -z "$ac_c_werror_flag"
  3700. || test ! -s conftest.err'
  3701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3702. (eval $ac_try) 2>&5
  3703. ac_status=$?
  3704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3705. (exit $ac_status); }; } &&
  3706. { ac_try='test -s conftest.$ac_objext'
  3707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3708. (eval $ac_try) 2>&5
  3709. ac_status=$?
  3710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3711. (exit $ac_status); }; }; then
  3712. ac_hi=$ac_mid
  3713. else
  3714. echo "$as_me: failed program was:" >&5
  3715. sed 's/^/| /' conftest.$ac_ext >&5
  3716. ac_lo=`expr '(' $ac_mid ')' + 1`
  3717. fi
  3718. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3719. done
  3720. case $ac_lo in
  3721. ?*) ac_cv_sizeof_int=$ac_lo;;
  3722. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  3723. See \`config.log' for more details." >&5
  3724. echo "$as_me: error: cannot compute sizeof (int), 77
  3725. See \`config.log' for more details." >&2;}
  3726. { (exit 1); exit 1; }; } ;;
  3727. esac
  3728. else
  3729. if test "$cross_compiling" = yes; then
  3730. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  3731. See \`config.log' for more details." >&5
  3732. echo "$as_me: error: cannot run test program while cross compiling
  3733. See \`config.log' for more details." >&2;}
  3734. { (exit 1); exit 1; }; }
  3735. else
  3736. cat >conftest.$ac_ext <<_ACEOF
  3737. /* confdefs.h. */
  3738. _ACEOF
  3739. cat confdefs.h >>conftest.$ac_ext
  3740. cat >>conftest.$ac_ext <<_ACEOF
  3741. /* end confdefs.h. */
  3742. $ac_includes_default
  3743. long longval () { return (long) (sizeof (int)); }
  3744. unsigned long ulongval () { return (long) (sizeof (int)); }
  3745. #include <stdio.h>
  3746. #include <stdlib.h>
  3747. int
  3748. main ()
  3749. {
  3750. FILE *f = fopen ("conftest.val", "w");
  3751. if (! f)
  3752. exit (1);
  3753. if (((long) (sizeof (int))) < 0)
  3754. {
  3755. long i = longval ();
  3756. if (i != ((long) (sizeof (int))))
  3757. exit (1);
  3758. fprintf (f, "%ld\n", i);
  3759. }
  3760. else
  3761. {
  3762. unsigned long i = ulongval ();
  3763. if (i != ((long) (sizeof (int))))
  3764. exit (1);
  3765. fprintf (f, "%lu\n", i);
  3766. }
  3767. exit (ferror (f) || fclose (f) != 0);
  3768. ;
  3769. return 0;
  3770. }
  3771. _ACEOF
  3772. rm -f conftest$ac_exeext
  3773. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3774. (eval $ac_link) 2>&5
  3775. ac_status=$?
  3776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3777. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3779. (eval $ac_try) 2>&5
  3780. ac_status=$?
  3781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3782. (exit $ac_status); }; }; then
  3783. ac_cv_sizeof_int=`cat conftest.val`
  3784. else
  3785. echo "$as_me: program exited with status $ac_status" >&5
  3786. echo "$as_me: failed program was:" >&5
  3787. sed 's/^/| /' conftest.$ac_ext >&5
  3788. ( exit $ac_status )
  3789. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  3790. See \`config.log' for more details." >&5
  3791. echo "$as_me: error: cannot compute sizeof (int), 77
  3792. See \`config.log' for more details." >&2;}
  3793. { (exit 1); exit 1; }; }
  3794. fi
  3795. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3796. fi
  3797. fi
  3798. rm -f conftest.val
  3799. else
  3800. ac_cv_sizeof_int=0
  3801. fi
  3802. fi
  3803. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  3804. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  3805. cat >>confdefs.h <<_ACEOF
  3806. #define SIZEOF_INT $ac_cv_sizeof_int
  3807. _ACEOF
  3808. echo "$as_me:$LINENO: checking for short" >&5
  3809. echo $ECHO_N "checking for short... $ECHO_C" >&6
  3810. if test "${ac_cv_type_short+set}" = set; then
  3811. echo $ECHO_N "(cached) $ECHO_C" >&6
  3812. else
  3813. cat >conftest.$ac_ext <<_ACEOF
  3814. /* confdefs.h. */
  3815. _ACEOF
  3816. cat confdefs.h >>conftest.$ac_ext
  3817. cat >>conftest.$ac_ext <<_ACEOF
  3818. /* end confdefs.h. */
  3819. $ac_includes_default
  3820. int
  3821. main ()
  3822. {
  3823. if ((short *) 0)
  3824. return 0;
  3825. if (sizeof (short))
  3826. return 0;
  3827. ;
  3828. return 0;
  3829. }
  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"
  3841. || test ! -s conftest.err'
  3842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3843. (eval $ac_try) 2>&5
  3844. ac_status=$?
  3845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846. (exit $ac_status); }; } &&
  3847. { ac_try='test -s conftest.$ac_objext'
  3848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3849. (eval $ac_try) 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; }; then
  3853. ac_cv_type_short=yes
  3854. else
  3855. echo "$as_me: failed program was:" >&5
  3856. sed 's/^/| /' conftest.$ac_ext >&5
  3857. ac_cv_type_short=no
  3858. fi
  3859. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3860. fi
  3861. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  3862. echo "${ECHO_T}$ac_cv_type_short" >&6
  3863. echo "$as_me:$LINENO: checking size of short" >&5
  3864. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  3865. if test "${ac_cv_sizeof_short+set}" = set; then
  3866. echo $ECHO_N "(cached) $ECHO_C" >&6
  3867. else
  3868. if test "$ac_cv_type_short" = yes; then
  3869. # The cast to unsigned long works around a bug in the HP C Compiler
  3870. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  3871. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  3872. # This bug is HP SR number 8606223364.
  3873. if test "$cross_compiling" = yes; then
  3874. # Depending upon the size, compute the lo and hi bounds.
  3875. cat >conftest.$ac_ext <<_ACEOF
  3876. /* confdefs.h. */
  3877. _ACEOF
  3878. cat confdefs.h >>conftest.$ac_ext
  3879. cat >>conftest.$ac_ext <<_ACEOF
  3880. /* end confdefs.h. */
  3881. $ac_includes_default
  3882. int
  3883. main ()
  3884. {
  3885. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  3886. test_array [0] = 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"
  3901. || test ! -s conftest.err'
  3902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3903. (eval $ac_try) 2>&5
  3904. ac_status=$?
  3905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3906. (exit $ac_status); }; } &&
  3907. { ac_try='test -s conftest.$ac_objext'
  3908. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3909. (eval $ac_try) 2>&5
  3910. ac_status=$?
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); }; }; then
  3913. ac_lo=0 ac_mid=0
  3914. while :; do
  3915. cat >conftest.$ac_ext <<_ACEOF
  3916. /* confdefs.h. */
  3917. _ACEOF
  3918. cat confdefs.h >>conftest.$ac_ext
  3919. cat >>conftest.$ac_ext <<_ACEOF
  3920. /* end confdefs.h. */
  3921. $ac_includes_default
  3922. int
  3923. main ()
  3924. {
  3925. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  3926. test_array [0] = 0
  3927. ;
  3928. return 0;
  3929. }
  3930. _ACEOF
  3931. rm -f conftest.$ac_objext
  3932. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3933. (eval $ac_compile) 2>conftest.er1
  3934. ac_status=$?
  3935. grep -v '^ *+' conftest.er1 >conftest.err
  3936. rm -f conftest.er1
  3937. cat conftest.err >&5
  3938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3939. (exit $ac_status); } &&
  3940. { ac_try='test -z "$ac_c_werror_flag"
  3941. || test ! -s conftest.err'
  3942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3943. (eval $ac_try) 2>&5
  3944. ac_status=$?
  3945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3946. (exit $ac_status); }; } &&
  3947. { ac_try='test -s conftest.$ac_objext'
  3948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3949. (eval $ac_try) 2>&5
  3950. ac_status=$?
  3951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3952. (exit $ac_status); }; }; then
  3953. ac_hi=$ac_mid; break
  3954. else
  3955. echo "$as_me: failed program was:" >&5
  3956. sed 's/^/| /' conftest.$ac_ext >&5
  3957. ac_lo=`expr $ac_mid + 1`
  3958. if test $ac_lo -le $ac_mid; then
  3959. ac_lo= ac_hi=
  3960. break
  3961. fi
  3962. ac_mid=`expr 2 '*' $ac_mid + 1`
  3963. fi
  3964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3965. done
  3966. else
  3967. echo "$as_me: failed program was:" >&5
  3968. sed 's/^/| /' conftest.$ac_ext >&5
  3969. cat >conftest.$ac_ext <<_ACEOF
  3970. /* confdefs.h. */
  3971. _ACEOF
  3972. cat confdefs.h >>conftest.$ac_ext
  3973. cat >>conftest.$ac_ext <<_ACEOF
  3974. /* end confdefs.h. */
  3975. $ac_includes_default
  3976. int
  3977. main ()
  3978. {
  3979. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  3980. test_array [0] = 0
  3981. ;
  3982. return 0;
  3983. }
  3984. _ACEOF
  3985. rm -f conftest.$ac_objext
  3986. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3987. (eval $ac_compile) 2>conftest.er1
  3988. ac_status=$?
  3989. grep -v '^ *+' conftest.er1 >conftest.err
  3990. rm -f conftest.er1
  3991. cat conftest.err >&5
  3992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3993. (exit $ac_status); } &&
  3994. { ac_try='test -z "$ac_c_werror_flag"
  3995. || test ! -s conftest.err'
  3996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3997. (eval $ac_try) 2>&5
  3998. ac_status=$?
  3999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4000. (exit $ac_status); }; } &&
  4001. { ac_try='test -s conftest.$ac_objext'
  4002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4003. (eval $ac_try) 2>&5
  4004. ac_status=$?
  4005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4006. (exit $ac_status); }; }; then
  4007. ac_hi=-1 ac_mid=-1
  4008. while :; do
  4009. cat >conftest.$ac_ext <<_ACEOF
  4010. /* confdefs.h. */
  4011. _ACEOF
  4012. cat confdefs.h >>conftest.$ac_ext
  4013. cat >>conftest.$ac_ext <<_ACEOF
  4014. /* end confdefs.h. */
  4015. $ac_includes_default
  4016. int
  4017. main ()
  4018. {
  4019. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  4020. test_array [0] = 0
  4021. ;
  4022. return 0;
  4023. }
  4024. _ACEOF
  4025. rm -f conftest.$ac_objext
  4026. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4027. (eval $ac_compile) 2>conftest.er1
  4028. ac_status=$?
  4029. grep -v '^ *+' conftest.er1 >conftest.err
  4030. rm -f conftest.er1
  4031. cat conftest.err >&5
  4032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4033. (exit $ac_status); } &&
  4034. { ac_try='test -z "$ac_c_werror_flag"
  4035. || test ! -s conftest.err'
  4036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4037. (eval $ac_try) 2>&5
  4038. ac_status=$?
  4039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. (exit $ac_status); }; } &&
  4041. { ac_try='test -s conftest.$ac_objext'
  4042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4043. (eval $ac_try) 2>&5
  4044. ac_status=$?
  4045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4046. (exit $ac_status); }; }; then
  4047. ac_lo=$ac_mid; break
  4048. else
  4049. echo "$as_me: failed program was:" >&5
  4050. sed 's/^/| /' conftest.$ac_ext >&5
  4051. ac_hi=`expr '(' $ac_mid ')' - 1`
  4052. if test $ac_mid -le $ac_hi; then
  4053. ac_lo= ac_hi=
  4054. break
  4055. fi
  4056. ac_mid=`expr 2 '*' $ac_mid`
  4057. fi
  4058. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4059. done
  4060. else
  4061. echo "$as_me: failed program was:" >&5
  4062. sed 's/^/| /' conftest.$ac_ext >&5
  4063. ac_lo= ac_hi=
  4064. fi
  4065. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4066. fi
  4067. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4068. # Binary search between lo and hi bounds.
  4069. while test "x$ac_lo" != "x$ac_hi"; do
  4070. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4071. cat >conftest.$ac_ext <<_ACEOF
  4072. /* confdefs.h. */
  4073. _ACEOF
  4074. cat confdefs.h >>conftest.$ac_ext
  4075. cat >>conftest.$ac_ext <<_ACEOF
  4076. /* end confdefs.h. */
  4077. $ac_includes_default
  4078. int
  4079. main ()
  4080. {
  4081. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  4082. test_array [0] = 0
  4083. ;
  4084. return 0;
  4085. }
  4086. _ACEOF
  4087. rm -f conftest.$ac_objext
  4088. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4089. (eval $ac_compile) 2>conftest.er1
  4090. ac_status=$?
  4091. grep -v '^ *+' conftest.er1 >conftest.err
  4092. rm -f conftest.er1
  4093. cat conftest.err >&5
  4094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4095. (exit $ac_status); } &&
  4096. { ac_try='test -z "$ac_c_werror_flag"
  4097. || test ! -s conftest.err'
  4098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4099. (eval $ac_try) 2>&5
  4100. ac_status=$?
  4101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4102. (exit $ac_status); }; } &&
  4103. { ac_try='test -s conftest.$ac_objext'
  4104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4105. (eval $ac_try) 2>&5
  4106. ac_status=$?
  4107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4108. (exit $ac_status); }; }; then
  4109. ac_hi=$ac_mid
  4110. else
  4111. echo "$as_me: failed program was:" >&5
  4112. sed 's/^/| /' conftest.$ac_ext >&5
  4113. ac_lo=`expr '(' $ac_mid ')' + 1`
  4114. fi
  4115. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4116. done
  4117. case $ac_lo in
  4118. ?*) ac_cv_sizeof_short=$ac_lo;;
  4119. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  4120. See \`config.log' for more details." >&5
  4121. echo "$as_me: error: cannot compute sizeof (short), 77
  4122. See \`config.log' for more details." >&2;}
  4123. { (exit 1); exit 1; }; } ;;
  4124. esac
  4125. else
  4126. if test "$cross_compiling" = yes; then
  4127. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  4128. See \`config.log' for more details." >&5
  4129. echo "$as_me: error: cannot run test program while cross compiling
  4130. See \`config.log' for more details." >&2;}
  4131. { (exit 1); exit 1; }; }
  4132. else
  4133. cat >conftest.$ac_ext <<_ACEOF
  4134. /* confdefs.h. */
  4135. _ACEOF
  4136. cat confdefs.h >>conftest.$ac_ext
  4137. cat >>conftest.$ac_ext <<_ACEOF
  4138. /* end confdefs.h. */
  4139. $ac_includes_default
  4140. long longval () { return (long) (sizeof (short)); }
  4141. unsigned long ulongval () { return (long) (sizeof (short)); }
  4142. #include <stdio.h>
  4143. #include <stdlib.h>
  4144. int
  4145. main ()
  4146. {
  4147. FILE *f = fopen ("conftest.val", "w");
  4148. if (! f)
  4149. exit (1);
  4150. if (((long) (sizeof (short))) < 0)
  4151. {
  4152. long i = longval ();
  4153. if (i != ((long) (sizeof (short))))
  4154. exit (1);
  4155. fprintf (f, "%ld\n", i);
  4156. }
  4157. else
  4158. {
  4159. unsigned long i = ulongval ();
  4160. if (i != ((long) (sizeof (short))))
  4161. exit (1);
  4162. fprintf (f, "%lu\n", i);
  4163. }
  4164. exit (ferror (f) || fclose (f) != 0);
  4165. ;
  4166. return 0;
  4167. }
  4168. _ACEOF
  4169. rm -f conftest$ac_exeext
  4170. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4171. (eval $ac_link) 2>&5
  4172. ac_status=$?
  4173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4174. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4176. (eval $ac_try) 2>&5
  4177. ac_status=$?
  4178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4179. (exit $ac_status); }; }; then
  4180. ac_cv_sizeof_short=`cat conftest.val`
  4181. else
  4182. echo "$as_me: program exited with status $ac_status" >&5
  4183. echo "$as_me: failed program was:" >&5
  4184. sed 's/^/| /' conftest.$ac_ext >&5
  4185. ( exit $ac_status )
  4186. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  4187. See \`config.log' for more details." >&5
  4188. echo "$as_me: error: cannot compute sizeof (short), 77
  4189. See \`config.log' for more details." >&2;}
  4190. { (exit 1); exit 1; }; }
  4191. fi
  4192. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4193. fi
  4194. fi
  4195. rm -f conftest.val
  4196. else
  4197. ac_cv_sizeof_short=0
  4198. fi
  4199. fi
  4200. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  4201. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  4202. cat >>confdefs.h <<_ACEOF
  4203. #define SIZEOF_SHORT $ac_cv_sizeof_short
  4204. _ACEOF
  4205. echo "$as_me:$LINENO: checking for long" >&5
  4206. echo $ECHO_N "checking for long... $ECHO_C" >&6
  4207. if test "${ac_cv_type_long+set}" = set; then
  4208. echo $ECHO_N "(cached) $ECHO_C" >&6
  4209. else
  4210. cat >conftest.$ac_ext <<_ACEOF
  4211. /* confdefs.h. */
  4212. _ACEOF
  4213. cat confdefs.h >>conftest.$ac_ext
  4214. cat >>conftest.$ac_ext <<_ACEOF
  4215. /* end confdefs.h. */
  4216. $ac_includes_default
  4217. int
  4218. main ()
  4219. {
  4220. if ((long *) 0)
  4221. return 0;
  4222. if (sizeof (long))
  4223. return 0;
  4224. ;
  4225. return 0;
  4226. }
  4227. _ACEOF
  4228. rm -f conftest.$ac_objext
  4229. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4230. (eval $ac_compile) 2>conftest.er1
  4231. ac_status=$?
  4232. grep -v '^ *+' conftest.er1 >conftest.err
  4233. rm -f conftest.er1
  4234. cat conftest.err >&5
  4235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4236. (exit $ac_status); } &&
  4237. { ac_try='test -z "$ac_c_werror_flag"
  4238. || test ! -s conftest.err'
  4239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4240. (eval $ac_try) 2>&5
  4241. ac_status=$?
  4242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4243. (exit $ac_status); }; } &&
  4244. { ac_try='test -s conftest.$ac_objext'
  4245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4246. (eval $ac_try) 2>&5
  4247. ac_status=$?
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); }; }; then
  4250. ac_cv_type_long=yes
  4251. else
  4252. echo "$as_me: failed program was:" >&5
  4253. sed 's/^/| /' conftest.$ac_ext >&5
  4254. ac_cv_type_long=no
  4255. fi
  4256. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4257. fi
  4258. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  4259. echo "${ECHO_T}$ac_cv_type_long" >&6
  4260. echo "$as_me:$LINENO: checking size of long" >&5
  4261. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  4262. if test "${ac_cv_sizeof_long+set}" = set; then
  4263. echo $ECHO_N "(cached) $ECHO_C" >&6
  4264. else
  4265. if test "$ac_cv_type_long" = yes; then
  4266. # The cast to unsigned long works around a bug in the HP C Compiler
  4267. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4268. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4269. # This bug is HP SR number 8606223364.
  4270. if test "$cross_compiling" = yes; then
  4271. # Depending upon the size, compute the lo and hi bounds.
  4272. cat >conftest.$ac_ext <<_ACEOF
  4273. /* confdefs.h. */
  4274. _ACEOF
  4275. cat confdefs.h >>conftest.$ac_ext
  4276. cat >>conftest.$ac_ext <<_ACEOF
  4277. /* end confdefs.h. */
  4278. $ac_includes_default
  4279. int
  4280. main ()
  4281. {
  4282. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  4283. test_array [0] = 0
  4284. ;
  4285. return 0;
  4286. }
  4287. _ACEOF
  4288. rm -f conftest.$ac_objext
  4289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4290. (eval $ac_compile) 2>conftest.er1
  4291. ac_status=$?
  4292. grep -v '^ *+' conftest.er1 >conftest.err
  4293. rm -f conftest.er1
  4294. cat conftest.err >&5
  4295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4296. (exit $ac_status); } &&
  4297. { ac_try='test -z "$ac_c_werror_flag"
  4298. || test ! -s conftest.err'
  4299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4300. (eval $ac_try) 2>&5
  4301. ac_status=$?
  4302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4303. (exit $ac_status); }; } &&
  4304. { ac_try='test -s conftest.$ac_objext'
  4305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4306. (eval $ac_try) 2>&5
  4307. ac_status=$?
  4308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4309. (exit $ac_status); }; }; then
  4310. ac_lo=0 ac_mid=0
  4311. while :; do
  4312. cat >conftest.$ac_ext <<_ACEOF
  4313. /* confdefs.h. */
  4314. _ACEOF
  4315. cat confdefs.h >>conftest.$ac_ext
  4316. cat >>conftest.$ac_ext <<_ACEOF
  4317. /* end confdefs.h. */
  4318. $ac_includes_default
  4319. int
  4320. main ()
  4321. {
  4322. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  4323. test_array [0] = 0
  4324. ;
  4325. return 0;
  4326. }
  4327. _ACEOF
  4328. rm -f conftest.$ac_objext
  4329. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4330. (eval $ac_compile) 2>conftest.er1
  4331. ac_status=$?
  4332. grep -v '^ *+' conftest.er1 >conftest.err
  4333. rm -f conftest.er1
  4334. cat conftest.err >&5
  4335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4336. (exit $ac_status); } &&
  4337. { ac_try='test -z "$ac_c_werror_flag"
  4338. || test ! -s conftest.err'
  4339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4340. (eval $ac_try) 2>&5
  4341. ac_status=$?
  4342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4343. (exit $ac_status); }; } &&
  4344. { ac_try='test -s conftest.$ac_objext'
  4345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4346. (eval $ac_try) 2>&5
  4347. ac_status=$?
  4348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4349. (exit $ac_status); }; }; then
  4350. ac_hi=$ac_mid; break
  4351. else
  4352. echo "$as_me: failed program was:" >&5
  4353. sed 's/^/| /' conftest.$ac_ext >&5
  4354. ac_lo=`expr $ac_mid + 1`
  4355. if test $ac_lo -le $ac_mid; then
  4356. ac_lo= ac_hi=
  4357. break
  4358. fi
  4359. ac_mid=`expr 2 '*' $ac_mid + 1`
  4360. fi
  4361. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4362. done
  4363. else
  4364. echo "$as_me: failed program was:" >&5
  4365. sed 's/^/| /' conftest.$ac_ext >&5
  4366. cat >conftest.$ac_ext <<_ACEOF
  4367. /* confdefs.h. */
  4368. _ACEOF
  4369. cat confdefs.h >>conftest.$ac_ext
  4370. cat >>conftest.$ac_ext <<_ACEOF
  4371. /* end confdefs.h. */
  4372. $ac_includes_default
  4373. int
  4374. main ()
  4375. {
  4376. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  4377. test_array [0] = 0
  4378. ;
  4379. return 0;
  4380. }
  4381. _ACEOF
  4382. rm -f conftest.$ac_objext
  4383. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4384. (eval $ac_compile) 2>conftest.er1
  4385. ac_status=$?
  4386. grep -v '^ *+' conftest.er1 >conftest.err
  4387. rm -f conftest.er1
  4388. cat conftest.err >&5
  4389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4390. (exit $ac_status); } &&
  4391. { ac_try='test -z "$ac_c_werror_flag"
  4392. || test ! -s conftest.err'
  4393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4394. (eval $ac_try) 2>&5
  4395. ac_status=$?
  4396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4397. (exit $ac_status); }; } &&
  4398. { ac_try='test -s conftest.$ac_objext'
  4399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4400. (eval $ac_try) 2>&5
  4401. ac_status=$?
  4402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403. (exit $ac_status); }; }; then
  4404. ac_hi=-1 ac_mid=-1
  4405. while :; do
  4406. cat >conftest.$ac_ext <<_ACEOF
  4407. /* confdefs.h. */
  4408. _ACEOF
  4409. cat confdefs.h >>conftest.$ac_ext
  4410. cat >>conftest.$ac_ext <<_ACEOF
  4411. /* end confdefs.h. */
  4412. $ac_includes_default
  4413. int
  4414. main ()
  4415. {
  4416. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  4417. test_array [0] = 0
  4418. ;
  4419. return 0;
  4420. }
  4421. _ACEOF
  4422. rm -f conftest.$ac_objext
  4423. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4424. (eval $ac_compile) 2>conftest.er1
  4425. ac_status=$?
  4426. grep -v '^ *+' conftest.er1 >conftest.err
  4427. rm -f conftest.er1
  4428. cat conftest.err >&5
  4429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4430. (exit $ac_status); } &&
  4431. { ac_try='test -z "$ac_c_werror_flag"
  4432. || test ! -s conftest.err'
  4433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4434. (eval $ac_try) 2>&5
  4435. ac_status=$?
  4436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4437. (exit $ac_status); }; } &&
  4438. { ac_try='test -s conftest.$ac_objext'
  4439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4440. (eval $ac_try) 2>&5
  4441. ac_status=$?
  4442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4443. (exit $ac_status); }; }; then
  4444. ac_lo=$ac_mid; break
  4445. else
  4446. echo "$as_me: failed program was:" >&5
  4447. sed 's/^/| /' conftest.$ac_ext >&5
  4448. ac_hi=`expr '(' $ac_mid ')' - 1`
  4449. if test $ac_mid -le $ac_hi; then
  4450. ac_lo= ac_hi=
  4451. break
  4452. fi
  4453. ac_mid=`expr 2 '*' $ac_mid`
  4454. fi
  4455. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4456. done
  4457. else
  4458. echo "$as_me: failed program was:" >&5
  4459. sed 's/^/| /' conftest.$ac_ext >&5
  4460. ac_lo= ac_hi=
  4461. fi
  4462. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4463. fi
  4464. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4465. # Binary search between lo and hi bounds.
  4466. while test "x$ac_lo" != "x$ac_hi"; do
  4467. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  4468. cat >conftest.$ac_ext <<_ACEOF
  4469. /* confdefs.h. */
  4470. _ACEOF
  4471. cat confdefs.h >>conftest.$ac_ext
  4472. cat >>conftest.$ac_ext <<_ACEOF
  4473. /* end confdefs.h. */
  4474. $ac_includes_default
  4475. int
  4476. main ()
  4477. {
  4478. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  4479. test_array [0] = 0
  4480. ;
  4481. return 0;
  4482. }
  4483. _ACEOF
  4484. rm -f conftest.$ac_objext
  4485. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4486. (eval $ac_compile) 2>conftest.er1
  4487. ac_status=$?
  4488. grep -v '^ *+' conftest.er1 >conftest.err
  4489. rm -f conftest.er1
  4490. cat conftest.err >&5
  4491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4492. (exit $ac_status); } &&
  4493. { ac_try='test -z "$ac_c_werror_flag"
  4494. || test ! -s conftest.err'
  4495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4496. (eval $ac_try) 2>&5
  4497. ac_status=$?
  4498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4499. (exit $ac_status); }; } &&
  4500. { ac_try='test -s conftest.$ac_objext'
  4501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4502. (eval $ac_try) 2>&5
  4503. ac_status=$?
  4504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4505. (exit $ac_status); }; }; then
  4506. ac_hi=$ac_mid
  4507. else
  4508. echo "$as_me: failed program was:" >&5
  4509. sed 's/^/| /' conftest.$ac_ext >&5
  4510. ac_lo=`expr '(' $ac_mid ')' + 1`
  4511. fi
  4512. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4513. done
  4514. case $ac_lo in
  4515. ?*) ac_cv_sizeof_long=$ac_lo;;
  4516. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  4517. See \`config.log' for more details." >&5
  4518. echo "$as_me: error: cannot compute sizeof (long), 77
  4519. See \`config.log' for more details." >&2;}
  4520. { (exit 1); exit 1; }; } ;;
  4521. esac
  4522. else
  4523. if test "$cross_compiling" = yes; then
  4524. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  4525. See \`config.log' for more details." >&5
  4526. echo "$as_me: error: cannot run test program while cross compiling
  4527. See \`config.log' for more details." >&2;}
  4528. { (exit 1); exit 1; }; }
  4529. else
  4530. cat >conftest.$ac_ext <<_ACEOF
  4531. /* confdefs.h. */
  4532. _ACEOF
  4533. cat confdefs.h >>conftest.$ac_ext
  4534. cat >>conftest.$ac_ext <<_ACEOF
  4535. /* end confdefs.h. */
  4536. $ac_includes_default
  4537. long longval () { return (long) (sizeof (long)); }
  4538. unsigned long ulongval () { return (long) (sizeof (long)); }
  4539. #include <stdio.h>
  4540. #include <stdlib.h>
  4541. int
  4542. main ()
  4543. {
  4544. FILE *f = fopen ("conftest.val", "w");
  4545. if (! f)
  4546. exit (1);
  4547. if (((long) (sizeof (long))) < 0)
  4548. {
  4549. long i = longval ();
  4550. if (i != ((long) (sizeof (long))))
  4551. exit (1);
  4552. fprintf (f, "%ld\n", i);
  4553. }
  4554. else
  4555. {
  4556. unsigned long i = ulongval ();
  4557. if (i != ((long) (sizeof (long))))
  4558. exit (1);
  4559. fprintf (f, "%lu\n", i);
  4560. }
  4561. exit (ferror (f) || fclose (f) != 0);
  4562. ;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. rm -f conftest$ac_exeext
  4567. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4568. (eval $ac_link) 2>&5
  4569. ac_status=$?
  4570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4571. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4573. (eval $ac_try) 2>&5
  4574. ac_status=$?
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); }; }; then
  4577. ac_cv_sizeof_long=`cat conftest.val`
  4578. else
  4579. echo "$as_me: program exited with status $ac_status" >&5
  4580. echo "$as_me: failed program was:" >&5
  4581. sed 's/^/| /' conftest.$ac_ext >&5
  4582. ( exit $ac_status )
  4583. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  4584. See \`config.log' for more details." >&5
  4585. echo "$as_me: error: cannot compute sizeof (long), 77
  4586. See \`config.log' for more details." >&2;}
  4587. { (exit 1); exit 1; }; }
  4588. fi
  4589. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4590. fi
  4591. fi
  4592. rm -f conftest.val
  4593. else
  4594. ac_cv_sizeof_long=0
  4595. fi
  4596. fi
  4597. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  4598. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  4599. cat >>confdefs.h <<_ACEOF
  4600. #define SIZEOF_LONG $ac_cv_sizeof_long
  4601. _ACEOF
  4602. echo "$as_me:$LINENO: checking for uint32_t" >&5
  4603. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  4604. if test "${ac_cv_type_uint32_t+set}" = set; then
  4605. echo $ECHO_N "(cached) $ECHO_C" >&6
  4606. else
  4607. cat >conftest.$ac_ext <<_ACEOF
  4608. /* confdefs.h. */
  4609. _ACEOF
  4610. cat confdefs.h >>conftest.$ac_ext
  4611. cat >>conftest.$ac_ext <<_ACEOF
  4612. /* end confdefs.h. */
  4613. $ac_includes_default
  4614. int
  4615. main ()
  4616. {
  4617. if ((uint32_t *) 0)
  4618. return 0;
  4619. if (sizeof (uint32_t))
  4620. return 0;
  4621. ;
  4622. return 0;
  4623. }
  4624. _ACEOF
  4625. rm -f conftest.$ac_objext
  4626. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4627. (eval $ac_compile) 2>conftest.er1
  4628. ac_status=$?
  4629. grep -v '^ *+' conftest.er1 >conftest.err
  4630. rm -f conftest.er1
  4631. cat conftest.err >&5
  4632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4633. (exit $ac_status); } &&
  4634. { ac_try='test -z "$ac_c_werror_flag"
  4635. || test ! -s conftest.err'
  4636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4637. (eval $ac_try) 2>&5
  4638. ac_status=$?
  4639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4640. (exit $ac_status); }; } &&
  4641. { ac_try='test -s conftest.$ac_objext'
  4642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4643. (eval $ac_try) 2>&5
  4644. ac_status=$?
  4645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4646. (exit $ac_status); }; }; then
  4647. ac_cv_type_uint32_t=yes
  4648. else
  4649. echo "$as_me: failed program was:" >&5
  4650. sed 's/^/| /' conftest.$ac_ext >&5
  4651. ac_cv_type_uint32_t=no
  4652. fi
  4653. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4654. fi
  4655. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  4656. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  4657. if test $ac_cv_type_uint32_t = yes; then
  4658. :
  4659. else
  4660. cat >>confdefs.h <<_ACEOF
  4661. #define uint32_t unsigned int
  4662. _ACEOF
  4663. fi
  4664. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  4665. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  4666. if test "${ac_cv_type_u_int32_t+set}" = set; then
  4667. echo $ECHO_N "(cached) $ECHO_C" >&6
  4668. else
  4669. cat >conftest.$ac_ext <<_ACEOF
  4670. /* confdefs.h. */
  4671. _ACEOF
  4672. cat confdefs.h >>conftest.$ac_ext
  4673. cat >>conftest.$ac_ext <<_ACEOF
  4674. /* end confdefs.h. */
  4675. $ac_includes_default
  4676. int
  4677. main ()
  4678. {
  4679. if ((u_int32_t *) 0)
  4680. return 0;
  4681. if (sizeof (u_int32_t))
  4682. return 0;
  4683. ;
  4684. return 0;
  4685. }
  4686. _ACEOF
  4687. rm -f conftest.$ac_objext
  4688. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4689. (eval $ac_compile) 2>conftest.er1
  4690. ac_status=$?
  4691. grep -v '^ *+' conftest.er1 >conftest.err
  4692. rm -f conftest.er1
  4693. cat conftest.err >&5
  4694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4695. (exit $ac_status); } &&
  4696. { ac_try='test -z "$ac_c_werror_flag"
  4697. || test ! -s conftest.err'
  4698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4699. (eval $ac_try) 2>&5
  4700. ac_status=$?
  4701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4702. (exit $ac_status); }; } &&
  4703. { ac_try='test -s conftest.$ac_objext'
  4704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4705. (eval $ac_try) 2>&5
  4706. ac_status=$?
  4707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4708. (exit $ac_status); }; }; then
  4709. ac_cv_type_u_int32_t=yes
  4710. else
  4711. echo "$as_me: failed program was:" >&5
  4712. sed 's/^/| /' conftest.$ac_ext >&5
  4713. ac_cv_type_u_int32_t=no
  4714. fi
  4715. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4716. fi
  4717. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  4718. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  4719. if test $ac_cv_type_u_int32_t = yes; then
  4720. :
  4721. else
  4722. cat >>confdefs.h <<_ACEOF
  4723. #define u_int32_t unsigned int
  4724. _ACEOF
  4725. fi
  4726. if test "$ac_cv_type_u_int32_t" = no ; then
  4727. if test "$ac_cv_type_u_int32_t" = yes ; then
  4728. cat >>confdefs.h <<\_ACEOF
  4729. #define U_INT32_T_IS_UINT32_T 1
  4730. _ACEOF
  4731. else
  4732. if test "$ac_cv_sizeof_int" = 4 ; then
  4733. cat >>confdefs.h <<\_ACEOF
  4734. #define U_INT32_T_IS_UINT 1
  4735. _ACEOF
  4736. else
  4737. if test "$ac_cv_sizeof_long" = 4 ; then
  4738. cat >>confdefs.h <<\_ACEOF
  4739. #define U_INT32_T_IS_ULONG 1
  4740. _ACEOF
  4741. else
  4742. if test "$ac_cv_sizeof_short" = 4 ; then
  4743. cat >>confdefs.h <<\_ACEOF
  4744. #define U_INT32_T_IS_USHORT 1
  4745. _ACEOF
  4746. fi
  4747. fi
  4748. fi
  4749. fi
  4750. fi
  4751. echo "$as_me:$LINENO: checking for int32_t" >&5
  4752. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  4753. if test "${ac_cv_type_int32_t+set}" = set; then
  4754. echo $ECHO_N "(cached) $ECHO_C" >&6
  4755. else
  4756. cat >conftest.$ac_ext <<_ACEOF
  4757. /* confdefs.h. */
  4758. _ACEOF
  4759. cat confdefs.h >>conftest.$ac_ext
  4760. cat >>conftest.$ac_ext <<_ACEOF
  4761. /* end confdefs.h. */
  4762. $ac_includes_default
  4763. int
  4764. main ()
  4765. {
  4766. if ((int32_t *) 0)
  4767. return 0;
  4768. if (sizeof (int32_t))
  4769. return 0;
  4770. ;
  4771. return 0;
  4772. }
  4773. _ACEOF
  4774. rm -f conftest.$ac_objext
  4775. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4776. (eval $ac_compile) 2>conftest.er1
  4777. ac_status=$?
  4778. grep -v '^ *+' conftest.er1 >conftest.err
  4779. rm -f conftest.er1
  4780. cat conftest.err >&5
  4781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4782. (exit $ac_status); } &&
  4783. { ac_try='test -z "$ac_c_werror_flag"
  4784. || test ! -s conftest.err'
  4785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4786. (eval $ac_try) 2>&5
  4787. ac_status=$?
  4788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4789. (exit $ac_status); }; } &&
  4790. { ac_try='test -s conftest.$ac_objext'
  4791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4792. (eval $ac_try) 2>&5
  4793. ac_status=$?
  4794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4795. (exit $ac_status); }; }; then
  4796. ac_cv_type_int32_t=yes
  4797. else
  4798. echo "$as_me: failed program was:" >&5
  4799. sed 's/^/| /' conftest.$ac_ext >&5
  4800. ac_cv_type_int32_t=no
  4801. fi
  4802. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4803. fi
  4804. echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  4805. echo "${ECHO_T}$ac_cv_type_int32_t" >&6
  4806. if test $ac_cv_type_int32_t = yes; then
  4807. :
  4808. else
  4809. cat >>confdefs.h <<_ACEOF
  4810. #define int32_t int
  4811. _ACEOF
  4812. fi
  4813. if test "$ac_cv_type_int32_t" = no ; then
  4814. if test "$ac_cv_sizeof_int" = 4 ; then
  4815. cat >>confdefs.h <<\_ACEOF
  4816. #define INT32_T_IS_UINT 1
  4817. _ACEOF
  4818. else
  4819. if test "$ac_cv_sizeof_long" = 4 ; then
  4820. cat >>confdefs.h <<\_ACEOF
  4821. #define INT32_T_IS_ULONG 1
  4822. _ACEOF
  4823. else
  4824. if test "$ac_cv_sizeof_short" = 4 ; then
  4825. cat >>confdefs.h <<\_ACEOF
  4826. #define INT32_T_IS_USHORT 1
  4827. _ACEOF
  4828. fi
  4829. fi
  4830. fi
  4831. fi
  4832. echo "$as_me:$LINENO: checking for va_copy" >&5
  4833. echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
  4834. if test "${ac_cv_HAVE_VA_COPY+set}" = set; then
  4835. echo $ECHO_N "(cached) $ECHO_C" >&6
  4836. else
  4837. cat >conftest.$ac_ext <<_ACEOF
  4838. /* confdefs.h. */
  4839. _ACEOF
  4840. cat confdefs.h >>conftest.$ac_ext
  4841. cat >>conftest.$ac_ext <<_ACEOF
  4842. /* end confdefs.h. */
  4843. #include <stdarg.h>
  4844. va_list ap1,ap2;
  4845. int
  4846. main ()
  4847. {
  4848. va_copy(ap1,ap2);
  4849. ;
  4850. return 0;
  4851. }
  4852. _ACEOF
  4853. rm -f conftest.$ac_objext conftest$ac_exeext
  4854. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4855. (eval $ac_link) 2>conftest.er1
  4856. ac_status=$?
  4857. grep -v '^ *+' conftest.er1 >conftest.err
  4858. rm -f conftest.er1
  4859. cat conftest.err >&5
  4860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4861. (exit $ac_status); } &&
  4862. { ac_try='test -z "$ac_c_werror_flag"
  4863. || test ! -s conftest.err'
  4864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4865. (eval $ac_try) 2>&5
  4866. ac_status=$?
  4867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4868. (exit $ac_status); }; } &&
  4869. { ac_try='test -s conftest$ac_exeext'
  4870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4871. (eval $ac_try) 2>&5
  4872. ac_status=$?
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); }; }; then
  4875. ac_cv_HAVE_VA_COPY=yes
  4876. else
  4877. echo "$as_me: failed program was:" >&5
  4878. sed 's/^/| /' conftest.$ac_ext >&5
  4879. ac_cv_HAVE_VA_COPY=no
  4880. fi
  4881. rm -f conftest.err conftest.$ac_objext \
  4882. conftest$ac_exeext conftest.$ac_ext
  4883. fi
  4884. echo "$as_me:$LINENO: result: $ac_cv_HAVE_VA_COPY" >&5
  4885. echo "${ECHO_T}$ac_cv_HAVE_VA_COPY" >&6
  4886. if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
  4887. cat >>confdefs.h <<\_ACEOF
  4888. #define HAVE_VA_COPY 1
  4889. _ACEOF
  4890. else
  4891. echo "$as_me:$LINENO: checking for __va_copy" >&5
  4892. echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
  4893. if test "${ac_cv_HAVE___VA_COPY+set}" = set; then
  4894. echo $ECHO_N "(cached) $ECHO_C" >&6
  4895. else
  4896. cat >conftest.$ac_ext <<_ACEOF
  4897. /* confdefs.h. */
  4898. _ACEOF
  4899. cat confdefs.h >>conftest.$ac_ext
  4900. cat >>conftest.$ac_ext <<_ACEOF
  4901. /* end confdefs.h. */
  4902. #include <stdarg.h>
  4903. va_list ap1,ap2;
  4904. int
  4905. main ()
  4906. {
  4907. __va_copy(ap1,ap2);
  4908. ;
  4909. return 0;
  4910. }
  4911. _ACEOF
  4912. rm -f conftest.$ac_objext conftest$ac_exeext
  4913. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4914. (eval $ac_link) 2>conftest.er1
  4915. ac_status=$?
  4916. grep -v '^ *+' conftest.er1 >conftest.err
  4917. rm -f conftest.er1
  4918. cat conftest.err >&5
  4919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4920. (exit $ac_status); } &&
  4921. { ac_try='test -z "$ac_c_werror_flag"
  4922. || test ! -s conftest.err'
  4923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4924. (eval $ac_try) 2>&5
  4925. ac_status=$?
  4926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4927. (exit $ac_status); }; } &&
  4928. { ac_try='test -s conftest$ac_exeext'
  4929. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4930. (eval $ac_try) 2>&5
  4931. ac_status=$?
  4932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4933. (exit $ac_status); }; }; then
  4934. ac_cv_HAVE___VA_COPY=yes
  4935. else
  4936. echo "$as_me: failed program was:" >&5
  4937. sed 's/^/| /' conftest.$ac_ext >&5
  4938. ac_cv_HAVE___VA_COPY=no
  4939. fi
  4940. rm -f conftest.err conftest.$ac_objext \
  4941. conftest$ac_exeext conftest.$ac_ext
  4942. fi
  4943. echo "$as_me:$LINENO: result: $ac_cv_HAVE___VA_COPY" >&5
  4944. echo "${ECHO_T}$ac_cv_HAVE___VA_COPY" >&6
  4945. if test x"$ac_cv_HAVE___VA_COPY" = x"yes"; then
  4946. cat >>confdefs.h <<\_ACEOF
  4947. #define HAVE___VA_COPY 1
  4948. _ACEOF
  4949. fi
  4950. fi
  4951. echo "$as_me:$LINENO: checking for vsnprintf" >&5
  4952. echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
  4953. if test "${ac_cv_func_vsnprintf+set}" = set; then
  4954. echo $ECHO_N "(cached) $ECHO_C" >&6
  4955. else
  4956. cat >conftest.$ac_ext <<_ACEOF
  4957. /* confdefs.h. */
  4958. _ACEOF
  4959. cat confdefs.h >>conftest.$ac_ext
  4960. cat >>conftest.$ac_ext <<_ACEOF
  4961. /* end confdefs.h. */
  4962. /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
  4963. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4964. #define vsnprintf innocuous_vsnprintf
  4965. /* System header to define __stub macros and hopefully few prototypes,
  4966. which can conflict with char vsnprintf (); below.
  4967. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4968. <limits.h> exists even on freestanding compilers. */
  4969. #ifdef __STDC__
  4970. # include <limits.h>
  4971. #else
  4972. # include <assert.h>
  4973. #endif
  4974. #undef vsnprintf
  4975. /* Override any gcc2 internal prototype to avoid an error. */
  4976. #ifdef __cplusplus
  4977. extern "C"
  4978. {
  4979. #endif
  4980. /* We use char because int might match the return type of a gcc2
  4981. builtin and then its argument prototype would still apply. */
  4982. char vsnprintf ();
  4983. /* The GNU C library defines this for functions which it implements
  4984. to always fail with ENOSYS. Some functions are actually named
  4985. something starting with __ and the normal name is an alias. */
  4986. #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
  4987. choke me
  4988. #else
  4989. char (*f) () = vsnprintf;
  4990. #endif
  4991. #ifdef __cplusplus
  4992. }
  4993. #endif
  4994. int
  4995. main ()
  4996. {
  4997. return f != vsnprintf;
  4998. ;
  4999. return 0;
  5000. }
  5001. _ACEOF
  5002. rm -f conftest.$ac_objext conftest$ac_exeext
  5003. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5004. (eval $ac_link) 2>conftest.er1
  5005. ac_status=$?
  5006. grep -v '^ *+' conftest.er1 >conftest.err
  5007. rm -f conftest.er1
  5008. cat conftest.err >&5
  5009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5010. (exit $ac_status); } &&
  5011. { ac_try='test -z "$ac_c_werror_flag"
  5012. || test ! -s conftest.err'
  5013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5014. (eval $ac_try) 2>&5
  5015. ac_status=$?
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); }; } &&
  5018. { ac_try='test -s conftest$ac_exeext'
  5019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5020. (eval $ac_try) 2>&5
  5021. ac_status=$?
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); }; }; then
  5024. ac_cv_func_vsnprintf=yes
  5025. else
  5026. echo "$as_me: failed program was:" >&5
  5027. sed 's/^/| /' conftest.$ac_ext >&5
  5028. ac_cv_func_vsnprintf=no
  5029. fi
  5030. rm -f conftest.err conftest.$ac_objext \
  5031. conftest$ac_exeext conftest.$ac_ext
  5032. fi
  5033. echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
  5034. echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
  5035. if test $ac_cv_func_vsnprintf = yes; then
  5036. :
  5037. else
  5038. SNPRINTF_O=./snprintf.o
  5039. fi
  5040. echo "$as_me:$LINENO: checking for snprintf" >&5
  5041. echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
  5042. if test "${ac_cv_func_snprintf+set}" = set; then
  5043. echo $ECHO_N "(cached) $ECHO_C" >&6
  5044. else
  5045. cat >conftest.$ac_ext <<_ACEOF
  5046. /* confdefs.h. */
  5047. _ACEOF
  5048. cat confdefs.h >>conftest.$ac_ext
  5049. cat >>conftest.$ac_ext <<_ACEOF
  5050. /* end confdefs.h. */
  5051. /* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf.
  5052. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5053. #define snprintf innocuous_snprintf
  5054. /* System header to define __stub macros and hopefully few prototypes,
  5055. which can conflict with char snprintf (); below.
  5056. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5057. <limits.h> exists even on freestanding compilers. */
  5058. #ifdef __STDC__
  5059. # include <limits.h>
  5060. #else
  5061. # include <assert.h>
  5062. #endif
  5063. #undef snprintf
  5064. /* Override any gcc2 internal prototype to avoid an error. */
  5065. #ifdef __cplusplus
  5066. extern "C"
  5067. {
  5068. #endif
  5069. /* We use char because int might match the return type of a gcc2
  5070. builtin and then its argument prototype would still apply. */
  5071. char snprintf ();
  5072. /* The GNU C library defines this for functions which it implements
  5073. to always fail with ENOSYS. Some functions are actually named
  5074. something starting with __ and the normal name is an alias. */
  5075. #if defined (__stub_snprintf) || defined (__stub___snprintf)
  5076. choke me
  5077. #else
  5078. char (*f) () = snprintf;
  5079. #endif
  5080. #ifdef __cplusplus
  5081. }
  5082. #endif
  5083. int
  5084. main ()
  5085. {
  5086. return f != snprintf;
  5087. ;
  5088. return 0;
  5089. }
  5090. _ACEOF
  5091. rm -f conftest.$ac_objext conftest$ac_exeext
  5092. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5093. (eval $ac_link) 2>conftest.er1
  5094. ac_status=$?
  5095. grep -v '^ *+' conftest.er1 >conftest.err
  5096. rm -f conftest.er1
  5097. cat conftest.err >&5
  5098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5099. (exit $ac_status); } &&
  5100. { ac_try='test -z "$ac_c_werror_flag"
  5101. || test ! -s conftest.err'
  5102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5103. (eval $ac_try) 2>&5
  5104. ac_status=$?
  5105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5106. (exit $ac_status); }; } &&
  5107. { ac_try='test -s conftest$ac_exeext'
  5108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5109. (eval $ac_try) 2>&5
  5110. ac_status=$?
  5111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. (exit $ac_status); }; }; then
  5113. ac_cv_func_snprintf=yes
  5114. else
  5115. echo "$as_me: failed program was:" >&5
  5116. sed 's/^/| /' conftest.$ac_ext >&5
  5117. ac_cv_func_snprintf=no
  5118. fi
  5119. rm -f conftest.err conftest.$ac_objext \
  5120. conftest$ac_exeext conftest.$ac_ext
  5121. fi
  5122. echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
  5123. echo "${ECHO_T}$ac_cv_func_snprintf" >&6
  5124. if test $ac_cv_func_snprintf = yes; then
  5125. :
  5126. else
  5127. SNPRINTF_O=./snprintf.o
  5128. fi
  5129. echo "$as_me:$LINENO: checking for asprintf" >&5
  5130. echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
  5131. if test "${ac_cv_func_asprintf+set}" = set; then
  5132. echo $ECHO_N "(cached) $ECHO_C" >&6
  5133. else
  5134. cat >conftest.$ac_ext <<_ACEOF
  5135. /* confdefs.h. */
  5136. _ACEOF
  5137. cat confdefs.h >>conftest.$ac_ext
  5138. cat >>conftest.$ac_ext <<_ACEOF
  5139. /* end confdefs.h. */
  5140. /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
  5141. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5142. #define asprintf innocuous_asprintf
  5143. /* System header to define __stub macros and hopefully few prototypes,
  5144. which can conflict with char asprintf (); below.
  5145. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5146. <limits.h> exists even on freestanding compilers. */
  5147. #ifdef __STDC__
  5148. # include <limits.h>
  5149. #else
  5150. # include <assert.h>
  5151. #endif
  5152. #undef asprintf
  5153. /* Override any gcc2 internal prototype to avoid an error. */
  5154. #ifdef __cplusplus
  5155. extern "C"
  5156. {
  5157. #endif
  5158. /* We use char because int might match the return type of a gcc2
  5159. builtin and then its argument prototype would still apply. */
  5160. char asprintf ();
  5161. /* The GNU C library defines this for functions which it implements
  5162. to always fail with ENOSYS. Some functions are actually named
  5163. something starting with __ and the normal name is an alias. */
  5164. #if defined (__stub_asprintf) || defined (__stub___asprintf)
  5165. choke me
  5166. #else
  5167. char (*f) () = asprintf;
  5168. #endif
  5169. #ifdef __cplusplus
  5170. }
  5171. #endif
  5172. int
  5173. main ()
  5174. {
  5175. return f != asprintf;
  5176. ;
  5177. return 0;
  5178. }
  5179. _ACEOF
  5180. rm -f conftest.$ac_objext conftest$ac_exeext
  5181. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5182. (eval $ac_link) 2>conftest.er1
  5183. ac_status=$?
  5184. grep -v '^ *+' conftest.er1 >conftest.err
  5185. rm -f conftest.er1
  5186. cat conftest.err >&5
  5187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5188. (exit $ac_status); } &&
  5189. { ac_try='test -z "$ac_c_werror_flag"
  5190. || test ! -s conftest.err'
  5191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5192. (eval $ac_try) 2>&5
  5193. ac_status=$?
  5194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5195. (exit $ac_status); }; } &&
  5196. { ac_try='test -s conftest$ac_exeext'
  5197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5198. (eval $ac_try) 2>&5
  5199. ac_status=$?
  5200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5201. (exit $ac_status); }; }; then
  5202. ac_cv_func_asprintf=yes
  5203. else
  5204. echo "$as_me: failed program was:" >&5
  5205. sed 's/^/| /' conftest.$ac_ext >&5
  5206. ac_cv_func_asprintf=no
  5207. fi
  5208. rm -f conftest.err conftest.$ac_objext \
  5209. conftest$ac_exeext conftest.$ac_ext
  5210. fi
  5211. echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
  5212. echo "${ECHO_T}$ac_cv_func_asprintf" >&6
  5213. if test $ac_cv_func_asprintf = yes; then
  5214. :
  5215. else
  5216. SNPRINTF_O=./snprintf.o
  5217. fi
  5218. echo "$as_me:$LINENO: checking for vasprintf" >&5
  5219. echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
  5220. if test "${ac_cv_func_vasprintf+set}" = set; then
  5221. echo $ECHO_N "(cached) $ECHO_C" >&6
  5222. else
  5223. cat >conftest.$ac_ext <<_ACEOF
  5224. /* confdefs.h. */
  5225. _ACEOF
  5226. cat confdefs.h >>conftest.$ac_ext
  5227. cat >>conftest.$ac_ext <<_ACEOF
  5228. /* end confdefs.h. */
  5229. /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
  5230. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5231. #define vasprintf innocuous_vasprintf
  5232. /* System header to define __stub macros and hopefully few prototypes,
  5233. which can conflict with char vasprintf (); below.
  5234. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5235. <limits.h> exists even on freestanding compilers. */
  5236. #ifdef __STDC__
  5237. # include <limits.h>
  5238. #else
  5239. # include <assert.h>
  5240. #endif
  5241. #undef vasprintf
  5242. /* Override any gcc2 internal prototype to avoid an error. */
  5243. #ifdef __cplusplus
  5244. extern "C"
  5245. {
  5246. #endif
  5247. /* We use char because int might match the return type of a gcc2
  5248. builtin and then its argument prototype would still apply. */
  5249. char vasprintf ();
  5250. /* The GNU C library defines this for functions which it implements
  5251. to always fail with ENOSYS. Some functions are actually named
  5252. something starting with __ and the normal name is an alias. */
  5253. #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
  5254. choke me
  5255. #else
  5256. char (*f) () = vasprintf;
  5257. #endif
  5258. #ifdef __cplusplus
  5259. }
  5260. #endif
  5261. int
  5262. main ()
  5263. {
  5264. return f != vasprintf;
  5265. ;
  5266. return 0;
  5267. }
  5268. _ACEOF
  5269. rm -f conftest.$ac_objext conftest$ac_exeext
  5270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5271. (eval $ac_link) 2>conftest.er1
  5272. ac_status=$?
  5273. grep -v '^ *+' conftest.er1 >conftest.err
  5274. rm -f conftest.er1
  5275. cat conftest.err >&5
  5276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); } &&
  5278. { ac_try='test -z "$ac_c_werror_flag"
  5279. || test ! -s conftest.err'
  5280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5281. (eval $ac_try) 2>&5
  5282. ac_status=$?
  5283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5284. (exit $ac_status); }; } &&
  5285. { ac_try='test -s conftest$ac_exeext'
  5286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5287. (eval $ac_try) 2>&5
  5288. ac_status=$?
  5289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5290. (exit $ac_status); }; }; then
  5291. ac_cv_func_vasprintf=yes
  5292. else
  5293. echo "$as_me: failed program was:" >&5
  5294. sed 's/^/| /' conftest.$ac_ext >&5
  5295. ac_cv_func_vasprintf=no
  5296. fi
  5297. rm -f conftest.err conftest.$ac_objext \
  5298. conftest$ac_exeext conftest.$ac_ext
  5299. fi
  5300. echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
  5301. echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
  5302. if test $ac_cv_func_vasprintf = yes; then
  5303. :
  5304. else
  5305. SNPRINTF_O=./snprintf.o
  5306. fi
  5307. echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
  5308. echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
  5309. if test "${ac_cv_HAVE_C99_VSNPRINTF+set}" = set; then
  5310. echo $ECHO_N "(cached) $ECHO_C" >&6
  5311. else
  5312. if test "$cross_compiling" = yes; then
  5313. ac_cv_HAVE_C99_VSNPRINTF=cross
  5314. else
  5315. cat >conftest.$ac_ext <<_ACEOF
  5316. /* confdefs.h. */
  5317. _ACEOF
  5318. cat confdefs.h >>conftest.$ac_ext
  5319. cat >>conftest.$ac_ext <<_ACEOF
  5320. /* end confdefs.h. */
  5321. #include <sys/types.h>
  5322. #include <stdarg.h>
  5323. void foo(const char *format, ...) {
  5324. va_list ap;
  5325. int len;
  5326. char buf[5];
  5327. va_start(ap, format);
  5328. len = vsnprintf(buf, 0, format, ap);
  5329. va_end(ap);
  5330. if (len != 5) exit(1);
  5331. va_start(ap, format);
  5332. len = vsnprintf(0, 0, format, ap);
  5333. va_end(ap);
  5334. if (len != 5) exit(1);
  5335. if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
  5336. exit(0);
  5337. }
  5338. main() { foo("hello"); }
  5339. _ACEOF
  5340. rm -f conftest$ac_exeext
  5341. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5342. (eval $ac_link) 2>&5
  5343. ac_status=$?
  5344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5345. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5347. (eval $ac_try) 2>&5
  5348. ac_status=$?
  5349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5350. (exit $ac_status); }; }; then
  5351. ac_cv_HAVE_C99_VSNPRINTF=yes
  5352. else
  5353. echo "$as_me: program exited with status $ac_status" >&5
  5354. echo "$as_me: failed program was:" >&5
  5355. sed 's/^/| /' conftest.$ac_ext >&5
  5356. ( exit $ac_status )
  5357. ac_cv_HAVE_C99_VSNPRINTF=no
  5358. fi
  5359. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5360. fi
  5361. fi
  5362. echo "$as_me:$LINENO: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
  5363. echo "${ECHO_T}$ac_cv_HAVE_C99_VSNPRINTF" >&6
  5364. if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
  5365. cat >>confdefs.h <<\_ACEOF
  5366. #define HAVE_C99_VSNPRINTF 1
  5367. _ACEOF
  5368. fi
  5369. for ac_func in getopt_long
  5370. do
  5371. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5372. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5373. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5374. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5375. echo $ECHO_N "(cached) $ECHO_C" >&6
  5376. else
  5377. cat >conftest.$ac_ext <<_ACEOF
  5378. /* confdefs.h. */
  5379. _ACEOF
  5380. cat confdefs.h >>conftest.$ac_ext
  5381. cat >>conftest.$ac_ext <<_ACEOF
  5382. /* end confdefs.h. */
  5383. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5384. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5385. #define $ac_func innocuous_$ac_func
  5386. /* System header to define __stub macros and hopefully few prototypes,
  5387. which can conflict with char $ac_func (); below.
  5388. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5389. <limits.h> exists even on freestanding compilers. */
  5390. #ifdef __STDC__
  5391. # include <limits.h>
  5392. #else
  5393. # include <assert.h>
  5394. #endif
  5395. #undef $ac_func
  5396. /* Override any gcc2 internal prototype to avoid an error. */
  5397. #ifdef __cplusplus
  5398. extern "C"
  5399. {
  5400. #endif
  5401. /* We use char because int might match the return type of a gcc2
  5402. builtin and then its argument prototype would still apply. */
  5403. char $ac_func ();
  5404. /* The GNU C library defines this for functions which it implements
  5405. to always fail with ENOSYS. Some functions are actually named
  5406. something starting with __ and the normal name is an alias. */
  5407. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5408. choke me
  5409. #else
  5410. char (*f) () = $ac_func;
  5411. #endif
  5412. #ifdef __cplusplus
  5413. }
  5414. #endif
  5415. int
  5416. main ()
  5417. {
  5418. return f != $ac_func;
  5419. ;
  5420. return 0;
  5421. }
  5422. _ACEOF
  5423. rm -f conftest.$ac_objext conftest$ac_exeext
  5424. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5425. (eval $ac_link) 2>conftest.er1
  5426. ac_status=$?
  5427. grep -v '^ *+' conftest.er1 >conftest.err
  5428. rm -f conftest.er1
  5429. cat conftest.err >&5
  5430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5431. (exit $ac_status); } &&
  5432. { ac_try='test -z "$ac_c_werror_flag"
  5433. || test ! -s conftest.err'
  5434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5435. (eval $ac_try) 2>&5
  5436. ac_status=$?
  5437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5438. (exit $ac_status); }; } &&
  5439. { ac_try='test -s conftest$ac_exeext'
  5440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5441. (eval $ac_try) 2>&5
  5442. ac_status=$?
  5443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5444. (exit $ac_status); }; }; then
  5445. eval "$as_ac_var=yes"
  5446. else
  5447. echo "$as_me: failed program was:" >&5
  5448. sed 's/^/| /' conftest.$ac_ext >&5
  5449. eval "$as_ac_var=no"
  5450. fi
  5451. rm -f conftest.err conftest.$ac_objext \
  5452. conftest$ac_exeext conftest.$ac_ext
  5453. fi
  5454. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5455. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5456. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5457. cat >>confdefs.h <<_ACEOF
  5458. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5459. _ACEOF
  5460. else
  5461. echo "$as_me:$LINENO: checking for getopt_long in -liberty" >&5
  5462. echo $ECHO_N "checking for getopt_long in -liberty... $ECHO_C" >&6
  5463. if test "${ac_cv_lib_iberty_getopt_long+set}" = set; then
  5464. echo $ECHO_N "(cached) $ECHO_C" >&6
  5465. else
  5466. ac_check_lib_save_LIBS=$LIBS
  5467. LIBS="-liberty $LIBS"
  5468. cat >conftest.$ac_ext <<_ACEOF
  5469. /* confdefs.h. */
  5470. _ACEOF
  5471. cat confdefs.h >>conftest.$ac_ext
  5472. cat >>conftest.$ac_ext <<_ACEOF
  5473. /* end confdefs.h. */
  5474. /* Override any gcc2 internal prototype to avoid an error. */
  5475. #ifdef __cplusplus
  5476. extern "C"
  5477. #endif
  5478. /* We use char because int might match the return type of a gcc2
  5479. builtin and then its argument prototype would still apply. */
  5480. char getopt_long ();
  5481. int
  5482. main ()
  5483. {
  5484. getopt_long ();
  5485. ;
  5486. return 0;
  5487. }
  5488. _ACEOF
  5489. rm -f conftest.$ac_objext conftest$ac_exeext
  5490. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5491. (eval $ac_link) 2>conftest.er1
  5492. ac_status=$?
  5493. grep -v '^ *+' conftest.er1 >conftest.err
  5494. rm -f conftest.er1
  5495. cat conftest.err >&5
  5496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5497. (exit $ac_status); } &&
  5498. { ac_try='test -z "$ac_c_werror_flag"
  5499. || test ! -s conftest.err'
  5500. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5501. (eval $ac_try) 2>&5
  5502. ac_status=$?
  5503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5504. (exit $ac_status); }; } &&
  5505. { ac_try='test -s conftest$ac_exeext'
  5506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5507. (eval $ac_try) 2>&5
  5508. ac_status=$?
  5509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5510. (exit $ac_status); }; }; then
  5511. ac_cv_lib_iberty_getopt_long=yes
  5512. else
  5513. echo "$as_me: failed program was:" >&5
  5514. sed 's/^/| /' conftest.$ac_ext >&5
  5515. ac_cv_lib_iberty_getopt_long=no
  5516. fi
  5517. rm -f conftest.err conftest.$ac_objext \
  5518. conftest$ac_exeext conftest.$ac_ext
  5519. LIBS=$ac_check_lib_save_LIBS
  5520. fi
  5521. echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_getopt_long" >&5
  5522. echo "${ECHO_T}$ac_cv_lib_iberty_getopt_long" >&6
  5523. if test $ac_cv_lib_iberty_getopt_long = yes; then
  5524. OTHERLIBS="$OTHERLIBS -liberty"
  5525. fi
  5526. fi
  5527. done
  5528. echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  5529. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
  5530. if test "${ac_cv_lib_nsl_main+set}" = set; then
  5531. echo $ECHO_N "(cached) $ECHO_C" >&6
  5532. else
  5533. ac_check_lib_save_LIBS=$LIBS
  5534. LIBS="-lnsl $LIBS"
  5535. cat >conftest.$ac_ext <<_ACEOF
  5536. /* confdefs.h. */
  5537. _ACEOF
  5538. cat confdefs.h >>conftest.$ac_ext
  5539. cat >>conftest.$ac_ext <<_ACEOF
  5540. /* end confdefs.h. */
  5541. int
  5542. main ()
  5543. {
  5544. main ();
  5545. ;
  5546. return 0;
  5547. }
  5548. _ACEOF
  5549. rm -f conftest.$ac_objext conftest$ac_exeext
  5550. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5551. (eval $ac_link) 2>conftest.er1
  5552. ac_status=$?
  5553. grep -v '^ *+' conftest.er1 >conftest.err
  5554. rm -f conftest.er1
  5555. cat conftest.err >&5
  5556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5557. (exit $ac_status); } &&
  5558. { ac_try='test -z "$ac_c_werror_flag"
  5559. || test ! -s conftest.err'
  5560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5561. (eval $ac_try) 2>&5
  5562. ac_status=$?
  5563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5564. (exit $ac_status); }; } &&
  5565. { ac_try='test -s conftest$ac_exeext'
  5566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5567. (eval $ac_try) 2>&5
  5568. ac_status=$?
  5569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5570. (exit $ac_status); }; }; then
  5571. ac_cv_lib_nsl_main=yes
  5572. else
  5573. echo "$as_me: failed program was:" >&5
  5574. sed 's/^/| /' conftest.$ac_ext >&5
  5575. ac_cv_lib_nsl_main=no
  5576. fi
  5577. rm -f conftest.err conftest.$ac_objext \
  5578. conftest$ac_exeext conftest.$ac_ext
  5579. LIBS=$ac_check_lib_save_LIBS
  5580. fi
  5581. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  5582. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
  5583. if test $ac_cv_lib_nsl_main = yes; then
  5584. SOCKETLIBS="$SOCKETLIBS -lnsl"
  5585. fi
  5586. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  5587. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  5588. if test "${ac_cv_lib_socket_socket+set}" = set; then
  5589. echo $ECHO_N "(cached) $ECHO_C" >&6
  5590. else
  5591. ac_check_lib_save_LIBS=$LIBS
  5592. LIBS="-lsocket $LIBS"
  5593. cat >conftest.$ac_ext <<_ACEOF
  5594. /* confdefs.h. */
  5595. _ACEOF
  5596. cat confdefs.h >>conftest.$ac_ext
  5597. cat >>conftest.$ac_ext <<_ACEOF
  5598. /* end confdefs.h. */
  5599. /* Override any gcc2 internal prototype to avoid an error. */
  5600. #ifdef __cplusplus
  5601. extern "C"
  5602. #endif
  5603. /* We use char because int might match the return type of a gcc2
  5604. builtin and then its argument prototype would still apply. */
  5605. char socket ();
  5606. int
  5607. main ()
  5608. {
  5609. socket ();
  5610. ;
  5611. return 0;
  5612. }
  5613. _ACEOF
  5614. rm -f conftest.$ac_objext conftest$ac_exeext
  5615. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5616. (eval $ac_link) 2>conftest.er1
  5617. ac_status=$?
  5618. grep -v '^ *+' conftest.er1 >conftest.err
  5619. rm -f conftest.er1
  5620. cat conftest.err >&5
  5621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5622. (exit $ac_status); } &&
  5623. { ac_try='test -z "$ac_c_werror_flag"
  5624. || test ! -s conftest.err'
  5625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5626. (eval $ac_try) 2>&5
  5627. ac_status=$?
  5628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5629. (exit $ac_status); }; } &&
  5630. { ac_try='test -s conftest$ac_exeext'
  5631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5632. (eval $ac_try) 2>&5
  5633. ac_status=$?
  5634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635. (exit $ac_status); }; }; then
  5636. ac_cv_lib_socket_socket=yes
  5637. else
  5638. echo "$as_me: failed program was:" >&5
  5639. sed 's/^/| /' conftest.$ac_ext >&5
  5640. ac_cv_lib_socket_socket=no
  5641. fi
  5642. rm -f conftest.err conftest.$ac_objext \
  5643. conftest$ac_exeext conftest.$ac_ext
  5644. LIBS=$ac_check_lib_save_LIBS
  5645. fi
  5646. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  5647. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  5648. if test $ac_cv_lib_socket_socket = yes; then
  5649. SOCKETLIBS="$SOCKETLIBS -lsocket"
  5650. fi
  5651. echo "$as_me:$LINENO: checking for main in -lwrap" >&5
  5652. echo $ECHO_N "checking for main in -lwrap... $ECHO_C" >&6
  5653. if test "${ac_cv_lib_wrap_main+set}" = set; then
  5654. echo $ECHO_N "(cached) $ECHO_C" >&6
  5655. else
  5656. ac_check_lib_save_LIBS=$LIBS
  5657. LIBS="-lwrap $LIBS"
  5658. cat >conftest.$ac_ext <<_ACEOF
  5659. /* confdefs.h. */
  5660. _ACEOF
  5661. cat confdefs.h >>conftest.$ac_ext
  5662. cat >>conftest.$ac_ext <<_ACEOF
  5663. /* end confdefs.h. */
  5664. int
  5665. main ()
  5666. {
  5667. main ();
  5668. ;
  5669. return 0;
  5670. }
  5671. _ACEOF
  5672. rm -f conftest.$ac_objext conftest$ac_exeext
  5673. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5674. (eval $ac_link) 2>conftest.er1
  5675. ac_status=$?
  5676. grep -v '^ *+' conftest.er1 >conftest.err
  5677. rm -f conftest.er1
  5678. cat conftest.err >&5
  5679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5680. (exit $ac_status); } &&
  5681. { ac_try='test -z "$ac_c_werror_flag"
  5682. || test ! -s conftest.err'
  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); }; } &&
  5688. { ac_try='test -s conftest$ac_exeext'
  5689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5690. (eval $ac_try) 2>&5
  5691. ac_status=$?
  5692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5693. (exit $ac_status); }; }; then
  5694. ac_cv_lib_wrap_main=yes
  5695. else
  5696. echo "$as_me: failed program was:" >&5
  5697. sed 's/^/| /' conftest.$ac_ext >&5
  5698. ac_cv_lib_wrap_main=no
  5699. fi
  5700. rm -f conftest.err conftest.$ac_objext \
  5701. conftest$ac_exeext conftest.$ac_ext
  5702. LIBS=$ac_check_lib_save_LIBS
  5703. fi
  5704. echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_main" >&5
  5705. echo "${ECHO_T}$ac_cv_lib_wrap_main" >&6
  5706. if test $ac_cv_lib_wrap_main = yes; then
  5707. LIBWRAPLIBS="$LIBWRAPLIBS -lwrap"
  5708. cat >>confdefs.h <<\_ACEOF
  5709. #define HAVE_LIBWRAP 1
  5710. _ACEOF
  5711. fi
  5712. for ac_func in strdup strstr strtoul initgroups closesocket
  5713. do
  5714. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5715. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5716. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5717. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5718. echo $ECHO_N "(cached) $ECHO_C" >&6
  5719. else
  5720. cat >conftest.$ac_ext <<_ACEOF
  5721. /* confdefs.h. */
  5722. _ACEOF
  5723. cat confdefs.h >>conftest.$ac_ext
  5724. cat >>conftest.$ac_ext <<_ACEOF
  5725. /* end confdefs.h. */
  5726. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5727. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5728. #define $ac_func innocuous_$ac_func
  5729. /* System header to define __stub macros and hopefully few prototypes,
  5730. which can conflict with char $ac_func (); below.
  5731. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5732. <limits.h> exists even on freestanding compilers. */
  5733. #ifdef __STDC__
  5734. # include <limits.h>
  5735. #else
  5736. # include <assert.h>
  5737. #endif
  5738. #undef $ac_func
  5739. /* Override any gcc2 internal prototype to avoid an error. */
  5740. #ifdef __cplusplus
  5741. extern "C"
  5742. {
  5743. #endif
  5744. /* We use char because int might match the return type of a gcc2
  5745. builtin and then its argument prototype would still apply. */
  5746. char $ac_func ();
  5747. /* The GNU C library defines this for functions which it implements
  5748. to always fail with ENOSYS. Some functions are actually named
  5749. something starting with __ and the normal name is an alias. */
  5750. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5751. choke me
  5752. #else
  5753. char (*f) () = $ac_func;
  5754. #endif
  5755. #ifdef __cplusplus
  5756. }
  5757. #endif
  5758. int
  5759. main ()
  5760. {
  5761. return f != $ac_func;
  5762. ;
  5763. return 0;
  5764. }
  5765. _ACEOF
  5766. rm -f conftest.$ac_objext conftest$ac_exeext
  5767. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5768. (eval $ac_link) 2>conftest.er1
  5769. ac_status=$?
  5770. grep -v '^ *+' conftest.er1 >conftest.err
  5771. rm -f conftest.er1
  5772. cat conftest.err >&5
  5773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5774. (exit $ac_status); } &&
  5775. { ac_try='test -z "$ac_c_werror_flag"
  5776. || test ! -s conftest.err'
  5777. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5778. (eval $ac_try) 2>&5
  5779. ac_status=$?
  5780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5781. (exit $ac_status); }; } &&
  5782. { ac_try='test -s conftest$ac_exeext'
  5783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5784. (eval $ac_try) 2>&5
  5785. ac_status=$?
  5786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5787. (exit $ac_status); }; }; then
  5788. eval "$as_ac_var=yes"
  5789. else
  5790. echo "$as_me: failed program was:" >&5
  5791. sed 's/^/| /' conftest.$ac_ext >&5
  5792. eval "$as_ac_var=no"
  5793. fi
  5794. rm -f conftest.err conftest.$ac_objext \
  5795. conftest$ac_exeext conftest.$ac_ext
  5796. fi
  5797. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5798. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5799. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5800. cat >>confdefs.h <<_ACEOF
  5801. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5802. _ACEOF
  5803. fi
  5804. done
  5805. echo "$as_me:$LINENO: checking for socklen_t" >&5
  5806. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  5807. if test "${ac_cv_type_socklen_t+set}" = set; then
  5808. echo $ECHO_N "(cached) $ECHO_C" >&6
  5809. else
  5810. cat >conftest.$ac_ext <<_ACEOF
  5811. /* confdefs.h. */
  5812. _ACEOF
  5813. cat confdefs.h >>conftest.$ac_ext
  5814. cat >>conftest.$ac_ext <<_ACEOF
  5815. /* end confdefs.h. */
  5816. #include <sys/types.h>
  5817. #include <sys/socket.h>
  5818. int
  5819. main ()
  5820. {
  5821. if ((socklen_t *) 0)
  5822. return 0;
  5823. if (sizeof (socklen_t))
  5824. return 0;
  5825. ;
  5826. return 0;
  5827. }
  5828. _ACEOF
  5829. rm -f conftest.$ac_objext
  5830. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5831. (eval $ac_compile) 2>conftest.er1
  5832. ac_status=$?
  5833. grep -v '^ *+' conftest.er1 >conftest.err
  5834. rm -f conftest.er1
  5835. cat conftest.err >&5
  5836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5837. (exit $ac_status); } &&
  5838. { ac_try='test -z "$ac_c_werror_flag"
  5839. || test ! -s conftest.err'
  5840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5841. (eval $ac_try) 2>&5
  5842. ac_status=$?
  5843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5844. (exit $ac_status); }; } &&
  5845. { ac_try='test -s conftest.$ac_objext'
  5846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5847. (eval $ac_try) 2>&5
  5848. ac_status=$?
  5849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5850. (exit $ac_status); }; }; then
  5851. ac_cv_type_socklen_t=yes
  5852. else
  5853. echo "$as_me: failed program was:" >&5
  5854. sed 's/^/| /' conftest.$ac_ext >&5
  5855. ac_cv_type_socklen_t=no
  5856. fi
  5857. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5858. fi
  5859. echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  5860. echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
  5861. if test $ac_cv_type_socklen_t = yes; then
  5862. :
  5863. else
  5864. echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
  5865. echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
  5866. if test "${curl_cv_socklen_t_equiv+set}" = set; then
  5867. echo $ECHO_N "(cached) $ECHO_C" >&6
  5868. else
  5869. # Systems have either "struct sockaddr *" or
  5870. # "void *" as the second argument to getpeername
  5871. curl_cv_socklen_t_equiv=
  5872. for arg2 in "struct sockaddr" void; do
  5873. for t in int size_t unsigned long "unsigned long"; do
  5874. cat >conftest.$ac_ext <<_ACEOF
  5875. /* confdefs.h. */
  5876. _ACEOF
  5877. cat confdefs.h >>conftest.$ac_ext
  5878. cat >>conftest.$ac_ext <<_ACEOF
  5879. /* end confdefs.h. */
  5880. #ifdef HAVE_SYS_TYPES_H
  5881. #include <sys/types.h>
  5882. #endif
  5883. #ifdef HAVE_SYS_SOCKET_H
  5884. #include <sys/socket.h>
  5885. #endif
  5886. int getpeername (int, $arg2 *, $t *);
  5887. int
  5888. main ()
  5889. {
  5890. $t len;
  5891. getpeername(0,0,&len);
  5892. ;
  5893. return 0;
  5894. }
  5895. _ACEOF
  5896. rm -f conftest.$ac_objext
  5897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5898. (eval $ac_compile) 2>conftest.er1
  5899. ac_status=$?
  5900. grep -v '^ *+' conftest.er1 >conftest.err
  5901. rm -f conftest.er1
  5902. cat conftest.err >&5
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); } &&
  5905. { ac_try='test -z "$ac_c_werror_flag"
  5906. || test ! -s conftest.err'
  5907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5908. (eval $ac_try) 2>&5
  5909. ac_status=$?
  5910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5911. (exit $ac_status); }; } &&
  5912. { ac_try='test -s conftest.$ac_objext'
  5913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5914. (eval $ac_try) 2>&5
  5915. ac_status=$?
  5916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5917. (exit $ac_status); }; }; then
  5918. curl_cv_socklen_t_equiv="$t"
  5919. break
  5920. else
  5921. echo "$as_me: failed program was:" >&5
  5922. sed 's/^/| /' conftest.$ac_ext >&5
  5923. fi
  5924. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5925. done
  5926. done
  5927. if test "x$curl_cv_socklen_t_equiv" = x; then
  5928. { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
  5929. echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
  5930. { (exit 1); exit 1; }; }
  5931. fi
  5932. fi
  5933. echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
  5934. echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
  5935. cat >>confdefs.h <<_ACEOF
  5936. #define socklen_t $curl_cv_socklen_t_equiv
  5937. _ACEOF
  5938. fi
  5939. echo "$as_me:$LINENO: checking for type of socket size" >&5
  5940. echo $ECHO_N "checking for type of socket size... $ECHO_C" >&6
  5941. cat >conftest.$ac_ext <<_ACEOF
  5942. /* confdefs.h. */
  5943. _ACEOF
  5944. cat confdefs.h >>conftest.$ac_ext
  5945. cat >>conftest.$ac_ext <<_ACEOF
  5946. /* end confdefs.h. */
  5947. #include <stdlib.h>
  5948. #include <sys/types.h>
  5949. #include <sys/socket.h>
  5950. int
  5951. main ()
  5952. {
  5953. int a = send(1, (const void *)0, (size_t *) 0, (int *) 0);
  5954. ;
  5955. return 0;
  5956. }
  5957. _ACEOF
  5958. rm -f conftest.$ac_objext
  5959. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5960. (eval $ac_compile) 2>conftest.er1
  5961. ac_status=$?
  5962. grep -v '^ *+' conftest.er1 >conftest.err
  5963. rm -f conftest.er1
  5964. cat conftest.err >&5
  5965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5966. (exit $ac_status); } &&
  5967. { ac_try='test -z "$ac_c_werror_flag"
  5968. || test ! -s conftest.err'
  5969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5970. (eval $ac_try) 2>&5
  5971. ac_status=$?
  5972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5973. (exit $ac_status); }; } &&
  5974. { ac_try='test -s conftest.$ac_objext'
  5975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5976. (eval $ac_try) 2>&5
  5977. ac_status=$?
  5978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5979. (exit $ac_status); }; }; then
  5980. cat >>confdefs.h <<\_ACEOF
  5981. #define SOCKET_SIZE_TYPE size_t
  5982. _ACEOF
  5983. echo "$as_me:$LINENO: result: size_t" >&5
  5984. echo "${ECHO_T}size_t" >&6
  5985. else
  5986. echo "$as_me: failed program was:" >&5
  5987. sed 's/^/| /' conftest.$ac_ext >&5
  5988. cat >>confdefs.h <<\_ACEOF
  5989. #define SOCKET_SIZE_TYPE int
  5990. _ACEOF
  5991. echo "$as_me:$LINENO: result: int" >&5
  5992. echo "${ECHO_T}int" >&6
  5993. fi
  5994. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5995. #AC_CHECK_TYPE(socklen_t,int,
  5996. # AC_DEFINE(socklen_t,int,
  5997. # Define to `int' if <sys/socket.h> does not define.),[
  5998. # #ifdef HAVE_SYS_TYPES_H
  5999. # #include <sys/types.h>
  6000. # #endif
  6001. # #ifdef HAVE_SYS_SOCKET_H
  6002. # #include <sys/socket.h>
  6003. # #endif
  6004. # ])
  6005. # Check whether --enable-ssl or --disable-ssl was given.
  6006. if test "${enable_ssl+set}" = set; then
  6007. enableval="$enable_ssl"
  6008. if test x$enableval = xyes; then
  6009. check_for_ssl=yes
  6010. else
  6011. check_for_ssl=no
  6012. fi
  6013. else
  6014. check_for_ssl=yes
  6015. fi;
  6016. ssl_dir=
  6017. ssl_inc_dir=
  6018. ssl_lib_dir=
  6019. # Check whether --with-ssl or --without-ssl was given.
  6020. if test "${with_ssl+set}" = set; then
  6021. withval="$with_ssl"
  6022. ssl_dir=$withval
  6023. fi;
  6024. # Check whether --with-ssl-inc or --without-ssl-inc was given.
  6025. if test "${with_ssl_inc+set}" = set; then
  6026. withval="$with_ssl_inc"
  6027. ssl_inc_dir=$withval
  6028. fi;
  6029. # Check whether --with-ssl-lib or --without-ssl-lib was given.
  6030. if test "${with_ssl_lib+set}" = set; then
  6031. withval="$with_ssl_lib"
  6032. ssl_lib_dir=$withval
  6033. fi;
  6034. # Check whether --with-kerberos-inc or --without-kerberos-inc was given.
  6035. if test "${with_kerberos_inc+set}" = set; then
  6036. withval="$with_kerberos_inc"
  6037. kerberos_inc_dir=$withval
  6038. fi;
  6039. if test x$check_for_ssl = xyes; then
  6040. echo "$as_me:$LINENO: checking for SSL headers" >&5
  6041. echo $ECHO_N "checking for SSL headers... $ECHO_C" >&6
  6042. found_ssl=no
  6043. for dir in $ssl_inc_dir $ssl_dir /usr/local/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr /usr/freeware/lib/openssl /usr/sfw/include; do
  6044. ssldir="$dir"
  6045. if test -f "$dir/include/openssl/ssl.h"; then
  6046. found_ssl=yes
  6047. CFLAGS="$CFLAGS -I$dir/include/openssl -I$ssldir/include"
  6048. sslincdir="$dir/include/openssl"
  6049. break
  6050. fi
  6051. if test -f "$dir/include/ssl.h"; then
  6052. found_ssl=yes
  6053. CFLAGS="$CFLAGS -I$dir/include"
  6054. sslincdir="$dir/include"
  6055. break
  6056. fi
  6057. if test -f "$dir/ssl.h"; then
  6058. found_ssl=yes
  6059. CFLAGS="$CFLAGS -I$dir"
  6060. sslincdir="$dir"
  6061. ssldir="$dir/.."
  6062. break
  6063. fi
  6064. if test -f "$dir/openssl/ssl.h"; then
  6065. found_ssl=yes
  6066. CFLAGS="$CFLAGS -I$dir/openssl"
  6067. sslincdir="$dir/openssl"
  6068. ssldir="$dir/.."
  6069. break
  6070. fi
  6071. done
  6072. if test x_$found_ssl != x_yes; then
  6073. { { echo "$as_me:$LINENO: error: Cannot find ssl headers" >&5
  6074. echo "$as_me: error: Cannot find ssl headers" >&2;}
  6075. { (exit 1); exit 1; }; }
  6076. else
  6077. printf "SSL headers found in $ssldir\n";
  6078. echo "$as_me:$LINENO: checking for SSL libraries" >&5
  6079. echo $ECHO_N "checking for SSL libraries... $ECHO_C" >&6
  6080. found_ssl=no
  6081. for dir in $ssl_lib_dir $ssl_dir /usr/lib64 /usr/lib /usr/local/lib /usr/lib/ssl /usr/ssl/lib /usr/openssl/lib /usr/pkg/lib /usr/freeware/lib/openssl /usr/sfw/lib; do
  6082. ssllibdir="$dir"
  6083. if test -f "$dir/libssl.so"; then
  6084. found_ssl=yes
  6085. break
  6086. fi
  6087. done
  6088. if test x_$found_ssl != x_yes; then
  6089. { { echo "$as_me:$LINENO: error: Cannot find ssl libraries" >&5
  6090. echo "$as_me: error: Cannot find ssl libraries" >&2;}
  6091. { (exit 1); exit 1; }; }
  6092. else
  6093. printf "SSL libraries found in $ssllibdir\n";
  6094. LDFLAGS="$LDFLAGS -L$ssllibdir";
  6095. LIBS="$LIBS -lssl -lcrypto";
  6096. cat >>confdefs.h <<_ACEOF
  6097. #define HAVE_SSL 1
  6098. _ACEOF
  6099. echo ""
  6100. echo "*** Generating DH Parameters for SSL/TLS ***"
  6101. if test -f "$ssldir/sbin/openssl"; then
  6102. sslbin=$ssldir/sbin/openssl
  6103. else
  6104. sslbin=$ssldir/bin/openssl
  6105. fi
  6106. # awk to strip off meta data at bottom of dhparam output
  6107. $sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h
  6108. fi
  6109. fi
  6110. echo "$as_me:$LINENO: checking for Kerberos include files" >&5
  6111. echo $ECHO_N "checking for Kerberos include files... $ECHO_C" >&6
  6112. found_kerberos=no
  6113. for dir in $kerberos_inc_dir /usr/kerberos/include; do
  6114. kerbdir="$dir"
  6115. if test -f "$dir/krb5.h"; then
  6116. found_kerberos=yes
  6117. CFLAGS="$CFLAGS -I$kerbdir"
  6118. cat >>confdefs.h <<_ACEOF
  6119. #define HAVE_KRB5_H 1
  6120. _ACEOF
  6121. break
  6122. fi
  6123. done
  6124. if test x_$found_kerberos != x_yes; then
  6125. printf "could not find include files\n";
  6126. else
  6127. printf "found Kerberos include files in $kerbdir\n";
  6128. fi
  6129. fi
  6130. # Check whether --with-log_facility or --without-log_facility was given.
  6131. if test "${with_log_facility+set}" = set; then
  6132. withval="$with_log_facility"
  6133. log_facility=$withval
  6134. else
  6135. log_facility=daemon
  6136. fi;
  6137. cat >>confdefs.h <<_ACEOF
  6138. #define NRPE_LOG_FACILITY "$log_facility"
  6139. _ACEOF
  6140. # Check whether --with-nrpe_user or --without-nrpe_user was given.
  6141. if test "${with_nrpe_user+set}" = set; then
  6142. withval="$with_nrpe_user"
  6143. nrpe_user=$withval
  6144. else
  6145. nrpe_user=nagios
  6146. fi;
  6147. # Check whether --with-nrpe_group or --without-nrpe_group was given.
  6148. if test "${with_nrpe_group+set}" = set; then
  6149. withval="$with_nrpe_group"
  6150. nrpe_group=$withval
  6151. else
  6152. nrpe_group=nagios
  6153. fi;
  6154. # Check whether --with-nrpe_port or --without-nrpe_port was given.
  6155. if test "${with_nrpe_port+set}" = set; then
  6156. withval="$with_nrpe_port"
  6157. nrpe_port=$withval
  6158. else
  6159. nrpe_port=5666
  6160. fi;
  6161. NRPE_INSTALL_OPTS="-o $nrpe_user -g $nrpe_group"
  6162. cat >>confdefs.h <<_ACEOF
  6163. #define DEFAULT_SERVER_PORT $nrpe_port
  6164. _ACEOF
  6165. # Check whether --with-nagios_user or --without-nagios_user was given.
  6166. if test "${with_nagios_user+set}" = set; then
  6167. withval="$with_nagios_user"
  6168. nagios_user=$withval
  6169. else
  6170. nagios_user=nagios
  6171. fi;
  6172. # Check whether --with-nagios_group or --without-nagios_group was given.
  6173. if test "${with_nagios_group+set}" = set; then
  6174. withval="$with_nagios_group"
  6175. nagios_group=$withval
  6176. else
  6177. nagios_group=nagios
  6178. fi;
  6179. NAGIOS_INSTALL_OPTS="-o $nagios_user -g $nagios_group"
  6180. # Determine target OS, version and architecture for package build macros
  6181. if test "x$target_ver" = "x" ; then
  6182. TARGET_VER=`uname -r`
  6183. else
  6184. TARGET_VER=$target_ver
  6185. fi
  6186. if test "x$target_os" = "x" ; then
  6187. TARGET_OS=`uname -s`
  6188. else
  6189. TARGET_OS=$target_os
  6190. fi
  6191. if test "x$target_cpu" = "x" ; then
  6192. TARGET_ARCH=`uname -p`
  6193. else
  6194. TARGET_ARCH=$target_cpu
  6195. fi
  6196. TARGET_PLATFORM=""
  6197. if test "x$TARGET_OS" = "xSunOS" ; then
  6198. if test "x$TARGET_VER" = "x5.10" ; then
  6199. TARGET_PLATFORM="sol10"
  6200. fi
  6201. fi
  6202. # Check whether --enable-command-args or --disable-command-args was given.
  6203. if test "${enable_command_args+set}" = set; then
  6204. enableval="$enable_command_args"
  6205. cat >>confdefs.h <<_ACEOF
  6206. #define ENABLE_COMMAND_ARGUMENTS 1
  6207. _ACEOF
  6208. fi;
  6209. # Extract the first word of "perl", so it can be a program name with args.
  6210. set dummy perl; ac_word=$2
  6211. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6212. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6213. if test "${ac_cv_path_PERL+set}" = set; then
  6214. echo $ECHO_N "(cached) $ECHO_C" >&6
  6215. else
  6216. case $PERL in
  6217. [\\/]* | ?:[\\/]*)
  6218. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  6219. ;;
  6220. *)
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6228. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  6229. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. ;;
  6235. esac
  6236. fi
  6237. PERL=$ac_cv_path_PERL
  6238. if test -n "$PERL"; then
  6239. echo "$as_me:$LINENO: result: $PERL" >&5
  6240. echo "${ECHO_T}$PERL" >&6
  6241. else
  6242. echo "$as_me:$LINENO: result: no" >&5
  6243. echo "${ECHO_T}no" >&6
  6244. fi
  6245. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6246. # Let make expand exec_prefix.
  6247. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6248. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  6249. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  6250. # trailing colons and then remove the whole line if VPATH becomes empty
  6251. # (actually we leave an empty line to preserve line numbers).
  6252. if test "x$srcdir" = x.; then
  6253. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  6254. s/:*\$(srcdir):*/:/;
  6255. s/:*\${srcdir}:*/:/;
  6256. s/:*@srcdir@:*/:/;
  6257. s/^\([^=]*=[ ]*\):*/\1/;
  6258. s/:*$//;
  6259. s/^[^=]*=[ ]*$//;
  6260. }'
  6261. fi
  6262. DEFS=-DHAVE_CONFIG_H
  6263. ac_libobjs=
  6264. ac_ltlibobjs=
  6265. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6266. # 1. Remove the extension, and $U if already installed.
  6267. ac_i=`echo "$ac_i" |
  6268. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  6269. # 2. Add them.
  6270. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  6271. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  6272. done
  6273. LIBOBJS=$ac_libobjs
  6274. LTLIBOBJS=$ac_ltlibobjs
  6275. : ${CONFIG_STATUS=./config.status}
  6276. ac_clean_files_save=$ac_clean_files
  6277. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6278. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  6279. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6280. cat >$CONFIG_STATUS <<_ACEOF
  6281. #! $SHELL
  6282. # Generated by $as_me.
  6283. # Run this file to recreate the current configuration.
  6284. # Compiler output produced by configure, useful for debugging
  6285. # configure, is in config.log if it exists.
  6286. debug=false
  6287. ac_cs_recheck=false
  6288. ac_cs_silent=false
  6289. SHELL=\${CONFIG_SHELL-$SHELL}
  6290. _ACEOF
  6291. cat >>$CONFIG_STATUS <<\_ACEOF
  6292. ## --------------------- ##
  6293. ## M4sh Initialization. ##
  6294. ## --------------------- ##
  6295. # Be Bourne compatible
  6296. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  6297. emulate sh
  6298. NULLCMD=:
  6299. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  6300. # is contrary to our usage. Disable this feature.
  6301. alias -g '${1+"$@"}'='"$@"'
  6302. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  6303. set -o posix
  6304. fi
  6305. DUALCASE=1; export DUALCASE # for MKS sh
  6306. # Support unset when possible.
  6307. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6308. as_unset=unset
  6309. else
  6310. as_unset=false
  6311. fi
  6312. # Work around bugs in pre-3.0 UWIN ksh.
  6313. $as_unset ENV MAIL MAILPATH
  6314. PS1='$ '
  6315. PS2='> '
  6316. PS4='+ '
  6317. # NLS nuisances.
  6318. for as_var in \
  6319. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  6320. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  6321. LC_TELEPHONE LC_TIME
  6322. do
  6323. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  6324. eval $as_var=C; export $as_var
  6325. else
  6326. $as_unset $as_var
  6327. fi
  6328. done
  6329. # Required to use basename.
  6330. if expr a : '\(a\)' >/dev/null 2>&1; then
  6331. as_expr=expr
  6332. else
  6333. as_expr=false
  6334. fi
  6335. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  6336. as_basename=basename
  6337. else
  6338. as_basename=false
  6339. fi
  6340. # Name of the executable.
  6341. as_me=`$as_basename "$0" ||
  6342. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  6343. X"$0" : 'X\(//\)$' \| \
  6344. X"$0" : 'X\(/\)$' \| \
  6345. . : '\(.\)' 2>/dev/null ||
  6346. echo X/"$0" |
  6347. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  6348. /^X\/\(\/\/\)$/{ s//\1/; q; }
  6349. /^X\/\(\/\).*/{ s//\1/; q; }
  6350. s/.*/./; q'`
  6351. # PATH needs CR, and LINENO needs CR and PATH.
  6352. # Avoid depending upon Character Ranges.
  6353. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  6354. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  6355. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  6356. as_cr_digits='0123456789'
  6357. as_cr_alnum=$as_cr_Letters$as_cr_digits
  6358. # The user is always right.
  6359. if test "${PATH_SEPARATOR+set}" != set; then
  6360. echo "#! /bin/sh" >conf$$.sh
  6361. echo "exit 0" >>conf$$.sh
  6362. chmod +x conf$$.sh
  6363. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6364. PATH_SEPARATOR=';'
  6365. else
  6366. PATH_SEPARATOR=:
  6367. fi
  6368. rm -f conf$$.sh
  6369. fi
  6370. as_lineno_1=$LINENO
  6371. as_lineno_2=$LINENO
  6372. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  6373. test "x$as_lineno_1" != "x$as_lineno_2" &&
  6374. test "x$as_lineno_3" = "x$as_lineno_2" || {
  6375. # Find who we are. Look in the path if we contain no path at all
  6376. # relative or not.
  6377. case $0 in
  6378. *[\\/]* ) as_myself=$0 ;;
  6379. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6380. for as_dir in $PATH
  6381. do
  6382. IFS=$as_save_IFS
  6383. test -z "$as_dir" && as_dir=.
  6384. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  6385. done
  6386. ;;
  6387. esac
  6388. # We did not find ourselves, most probably we were run as `sh COMMAND'
  6389. # in which case we are not to be found in the path.
  6390. if test "x$as_myself" = x; then
  6391. as_myself=$0
  6392. fi
  6393. if test ! -f "$as_myself"; then
  6394. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  6395. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  6396. { (exit 1); exit 1; }; }
  6397. fi
  6398. case $CONFIG_SHELL in
  6399. '')
  6400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6401. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  6402. do
  6403. IFS=$as_save_IFS
  6404. test -z "$as_dir" && as_dir=.
  6405. for as_base in sh bash ksh sh5; do
  6406. case $as_dir in
  6407. /*)
  6408. if ("$as_dir/$as_base" -c '
  6409. as_lineno_1=$LINENO
  6410. as_lineno_2=$LINENO
  6411. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  6412. test "x$as_lineno_1" != "x$as_lineno_2" &&
  6413. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  6414. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  6415. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  6416. CONFIG_SHELL=$as_dir/$as_base
  6417. export CONFIG_SHELL
  6418. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  6419. fi;;
  6420. esac
  6421. done
  6422. done
  6423. ;;
  6424. esac
  6425. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  6426. # uniformly replaced by the line number. The first 'sed' inserts a
  6427. # line-number line before each line; the second 'sed' does the real
  6428. # work. The second script uses 'N' to pair each line-number line
  6429. # with the numbered line, and appends trailing '-' during
  6430. # substitution so that $LINENO is not a special case at line end.
  6431. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  6432. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  6433. sed '=' <$as_myself |
  6434. sed '
  6435. N
  6436. s,$,-,
  6437. : loop
  6438. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  6439. t loop
  6440. s,-$,,
  6441. s,^['$as_cr_digits']*\n,,
  6442. ' >$as_me.lineno &&
  6443. chmod +x $as_me.lineno ||
  6444. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  6445. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  6446. { (exit 1); exit 1; }; }
  6447. # Don't try to exec as it changes $[0], causing all sort of problems
  6448. # (the dirname of $[0] is not the place where we might find the
  6449. # original and so on. Autoconf is especially sensible to this).
  6450. . ./$as_me.lineno
  6451. # Exit status is that of the last command.
  6452. exit
  6453. }
  6454. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  6455. *c*,-n*) ECHO_N= ECHO_C='
  6456. ' ECHO_T=' ' ;;
  6457. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  6458. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  6459. esac
  6460. if expr a : '\(a\)' >/dev/null 2>&1; then
  6461. as_expr=expr
  6462. else
  6463. as_expr=false
  6464. fi
  6465. rm -f conf$$ conf$$.exe conf$$.file
  6466. echo >conf$$.file
  6467. if ln -s conf$$.file conf$$ 2>/dev/null; then
  6468. # We could just check for DJGPP; but this test a) works b) is more generic
  6469. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  6470. if test -f conf$$.exe; then
  6471. # Don't use ln at all; we don't have any links
  6472. as_ln_s='cp -p'
  6473. else
  6474. as_ln_s='ln -s'
  6475. fi
  6476. elif ln conf$$.file conf$$ 2>/dev/null; then
  6477. as_ln_s=ln
  6478. else
  6479. as_ln_s='cp -p'
  6480. fi
  6481. rm -f conf$$ conf$$.exe conf$$.file
  6482. if mkdir -p . 2>/dev/null; then
  6483. as_mkdir_p=:
  6484. else
  6485. test -d ./-p && rmdir ./-p
  6486. as_mkdir_p=false
  6487. fi
  6488. as_executable_p="test -f"
  6489. # Sed expression to map a string onto a valid CPP name.
  6490. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  6491. # Sed expression to map a string onto a valid variable name.
  6492. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  6493. # IFS
  6494. # We need space, tab and new line, in precisely that order.
  6495. as_nl='
  6496. '
  6497. IFS=" $as_nl"
  6498. # CDPATH.
  6499. $as_unset CDPATH
  6500. exec 6>&1
  6501. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  6502. # report actual input values of CONFIG_FILES etc. instead of their
  6503. # values after options handling. Logging --version etc. is OK.
  6504. exec 5>>config.log
  6505. {
  6506. echo
  6507. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  6508. ## Running $as_me. ##
  6509. _ASBOX
  6510. } >&5
  6511. cat >&5 <<_CSEOF
  6512. This file was extended by nrpe $as_me 2.13, which was
  6513. generated by GNU Autoconf 2.59. Invocation command line was
  6514. CONFIG_FILES = $CONFIG_FILES
  6515. CONFIG_HEADERS = $CONFIG_HEADERS
  6516. CONFIG_LINKS = $CONFIG_LINKS
  6517. CONFIG_COMMANDS = $CONFIG_COMMANDS
  6518. $ $0 $@
  6519. _CSEOF
  6520. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  6521. echo >&5
  6522. _ACEOF
  6523. # Files that config.status was made for.
  6524. if test -n "$ac_config_files"; then
  6525. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  6526. fi
  6527. if test -n "$ac_config_headers"; then
  6528. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  6529. fi
  6530. if test -n "$ac_config_links"; then
  6531. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  6532. fi
  6533. if test -n "$ac_config_commands"; then
  6534. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  6535. fi
  6536. cat >>$CONFIG_STATUS <<\_ACEOF
  6537. ac_cs_usage="\
  6538. \`$as_me' instantiates files from templates according to the
  6539. current configuration.
  6540. Usage: $0 [OPTIONS] [FILE]...
  6541. -h, --help print this help, then exit
  6542. -V, --version print version number, then exit
  6543. -q, --quiet do not print progress messages
  6544. -d, --debug don't remove temporary files
  6545. --recheck update $as_me by reconfiguring in the same conditions
  6546. --file=FILE[:TEMPLATE]
  6547. instantiate the configuration file FILE
  6548. --header=FILE[:TEMPLATE]
  6549. instantiate the configuration header FILE
  6550. Configuration files:
  6551. $config_files
  6552. Configuration headers:
  6553. $config_headers
  6554. Report bugs to <bug-autoconf@gnu.org>."
  6555. _ACEOF
  6556. cat >>$CONFIG_STATUS <<_ACEOF
  6557. ac_cs_version="\\
  6558. nrpe config.status 2.13
  6559. configured by $0, generated by GNU Autoconf 2.59,
  6560. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  6561. Copyright (C) 2003 Free Software Foundation, Inc.
  6562. This config.status script is free software; the Free Software Foundation
  6563. gives unlimited permission to copy, distribute and modify it."
  6564. srcdir=$srcdir
  6565. INSTALL="$INSTALL"
  6566. _ACEOF
  6567. cat >>$CONFIG_STATUS <<\_ACEOF
  6568. # If no file are specified by the user, then we need to provide default
  6569. # value. By we need to know if files were specified by the user.
  6570. ac_need_defaults=:
  6571. while test $# != 0
  6572. do
  6573. case $1 in
  6574. --*=*)
  6575. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  6576. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  6577. ac_shift=:
  6578. ;;
  6579. -*)
  6580. ac_option=$1
  6581. ac_optarg=$2
  6582. ac_shift=shift
  6583. ;;
  6584. *) # This is not an option, so the user has probably given explicit
  6585. # arguments.
  6586. ac_option=$1
  6587. ac_need_defaults=false;;
  6588. esac
  6589. case $ac_option in
  6590. # Handling of the options.
  6591. _ACEOF
  6592. cat >>$CONFIG_STATUS <<\_ACEOF
  6593. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  6594. ac_cs_recheck=: ;;
  6595. --version | --vers* | -V )
  6596. echo "$ac_cs_version"; exit 0 ;;
  6597. --he | --h)
  6598. # Conflict between --help and --header
  6599. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  6600. Try \`$0 --help' for more information." >&5
  6601. echo "$as_me: error: ambiguous option: $1
  6602. Try \`$0 --help' for more information." >&2;}
  6603. { (exit 1); exit 1; }; };;
  6604. --help | --hel | -h )
  6605. echo "$ac_cs_usage"; exit 0 ;;
  6606. --debug | --d* | -d )
  6607. debug=: ;;
  6608. --file | --fil | --fi | --f )
  6609. $ac_shift
  6610. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  6611. ac_need_defaults=false;;
  6612. --header | --heade | --head | --hea )
  6613. $ac_shift
  6614. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  6615. ac_need_defaults=false;;
  6616. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  6617. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  6618. ac_cs_silent=: ;;
  6619. # This is an error.
  6620. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  6621. Try \`$0 --help' for more information." >&5
  6622. echo "$as_me: error: unrecognized option: $1
  6623. Try \`$0 --help' for more information." >&2;}
  6624. { (exit 1); exit 1; }; } ;;
  6625. *) ac_config_targets="$ac_config_targets $1" ;;
  6626. esac
  6627. shift
  6628. done
  6629. ac_configure_extra_args=
  6630. if $ac_cs_silent; then
  6631. exec 6>/dev/null
  6632. ac_configure_extra_args="$ac_configure_extra_args --silent"
  6633. fi
  6634. _ACEOF
  6635. cat >>$CONFIG_STATUS <<_ACEOF
  6636. if \$ac_cs_recheck; then
  6637. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  6638. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  6639. fi
  6640. _ACEOF
  6641. cat >>$CONFIG_STATUS <<\_ACEOF
  6642. for ac_config_target in $ac_config_targets
  6643. do
  6644. case "$ac_config_target" in
  6645. # Handling of arguments.
  6646. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  6647. "subst" ) CONFIG_FILES="$CONFIG_FILES subst" ;;
  6648. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  6649. "package/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES package/solaris/Makefile" ;;
  6650. "init-script" ) CONFIG_FILES="$CONFIG_FILES init-script" ;;
  6651. "init-script.debian" ) CONFIG_FILES="$CONFIG_FILES init-script.debian" ;;
  6652. "init-script.suse" ) CONFIG_FILES="$CONFIG_FILES init-script.suse" ;;
  6653. "sample-config/nrpe.cfg" ) CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.cfg" ;;
  6654. "sample-config/nrpe.xinetd" ) CONFIG_FILES="$CONFIG_FILES sample-config/nrpe.xinetd" ;;
  6655. "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  6656. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  6657. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  6658. { (exit 1); exit 1; }; };;
  6659. esac
  6660. done
  6661. # If the user did not use the arguments to specify the items to instantiate,
  6662. # then the envvar interface is used. Set only those that are not.
  6663. # We use the long form for the default assignment because of an extremely
  6664. # bizarre bug on SunOS 4.1.3.
  6665. if $ac_need_defaults; then
  6666. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  6667. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  6668. fi
  6669. # Have a temporary directory for convenience. Make it in the build tree
  6670. # simply because there is no reason to put it here, and in addition,
  6671. # creating and moving files from /tmp can sometimes cause problems.
  6672. # Create a temporary directory, and hook for its removal unless debugging.
  6673. $debug ||
  6674. {
  6675. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  6676. trap '{ (exit 1); exit 1; }' 1 2 13 15
  6677. }
  6678. # Create a (secure) tmp directory for tmp files.
  6679. {
  6680. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  6681. test -n "$tmp" && test -d "$tmp"
  6682. } ||
  6683. {
  6684. tmp=./confstat$$-$RANDOM
  6685. (umask 077 && mkdir $tmp)
  6686. } ||
  6687. {
  6688. echo "$me: cannot create a temporary directory in ." >&2
  6689. { (exit 1); exit 1; }
  6690. }
  6691. _ACEOF
  6692. cat >>$CONFIG_STATUS <<_ACEOF
  6693. #
  6694. # CONFIG_FILES section.
  6695. #
  6696. # No need to generate the scripts if there are no CONFIG_FILES.
  6697. # This happens for instance when ./config.status config.h
  6698. if test -n "\$CONFIG_FILES"; then
  6699. # Protect against being on the right side of a sed subst in config.status.
  6700. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  6701. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  6702. s,@SHELL@,$SHELL,;t t
  6703. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  6704. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  6705. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  6706. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  6707. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  6708. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  6709. s,@exec_prefix@,$exec_prefix,;t t
  6710. s,@prefix@,$prefix,;t t
  6711. s,@program_transform_name@,$program_transform_name,;t t
  6712. s,@bindir@,$bindir,;t t
  6713. s,@sbindir@,$sbindir,;t t
  6714. s,@libexecdir@,$libexecdir,;t t
  6715. s,@datadir@,$datadir,;t t
  6716. s,@sysconfdir@,$sysconfdir,;t t
  6717. s,@sharedstatedir@,$sharedstatedir,;t t
  6718. s,@localstatedir@,$localstatedir,;t t
  6719. s,@libdir@,$libdir,;t t
  6720. s,@includedir@,$includedir,;t t
  6721. s,@oldincludedir@,$oldincludedir,;t t
  6722. s,@infodir@,$infodir,;t t
  6723. s,@mandir@,$mandir,;t t
  6724. s,@build_alias@,$build_alias,;t t
  6725. s,@host_alias@,$host_alias,;t t
  6726. s,@target_alias@,$target_alias,;t t
  6727. s,@DEFS@,$DEFS,;t t
  6728. s,@ECHO_C@,$ECHO_C,;t t
  6729. s,@ECHO_N@,$ECHO_N,;t t
  6730. s,@ECHO_T@,$ECHO_T,;t t
  6731. s,@LIBS@,$LIBS,;t t
  6732. s,@PKG_NAME@,$PKG_NAME,;t t
  6733. s,@PKG_VERSION@,$PKG_VERSION,;t t
  6734. s,@PKG_HOME_URL@,$PKG_HOME_URL,;t t
  6735. s,@PKG_REL_DATE@,$PKG_REL_DATE,;t t
  6736. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  6737. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  6738. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  6739. s,@INSTALL@,$INSTALL,;t t
  6740. s,@build@,$build,;t t
  6741. s,@build_cpu@,$build_cpu,;t t
  6742. s,@build_vendor@,$build_vendor,;t t
  6743. s,@build_os@,$build_os,;t t
  6744. s,@host@,$host,;t t
  6745. s,@host_cpu@,$host_cpu,;t t
  6746. s,@host_vendor@,$host_vendor,;t t
  6747. s,@host_os@,$host_os,;t t
  6748. s,@CC@,$CC,;t t
  6749. s,@CFLAGS@,$CFLAGS,;t t
  6750. s,@LDFLAGS@,$LDFLAGS,;t t
  6751. s,@CPPFLAGS@,$CPPFLAGS,;t t
  6752. s,@ac_ct_CC@,$ac_ct_CC,;t t
  6753. s,@EXEEXT@,$EXEEXT,;t t
  6754. s,@OBJEXT@,$OBJEXT,;t t
  6755. s,@SET_MAKE@,$SET_MAKE,;t t
  6756. s,@CPP@,$CPP,;t t
  6757. s,@EGREP@,$EGREP,;t t
  6758. s,@SNPRINTF_O@,$SNPRINTF_O,;t t
  6759. s,@OTHERLIBS@,$OTHERLIBS,;t t
  6760. s,@SOCKETLIBS@,$SOCKETLIBS,;t t
  6761. s,@LIBWRAPLIBS@,$LIBWRAPLIBS,;t t
  6762. s,@HAVE_SSL@,$HAVE_SSL,;t t
  6763. s,@log_facility@,$log_facility,;t t
  6764. s,@nrpe_user@,$nrpe_user,;t t
  6765. s,@nrpe_group@,$nrpe_group,;t t
  6766. s,@NRPE_INSTALL_OPTS@,$NRPE_INSTALL_OPTS,;t t
  6767. s,@nrpe_port@,$nrpe_port,;t t
  6768. s,@nagios_user@,$nagios_user,;t t
  6769. s,@nagios_group@,$nagios_group,;t t
  6770. s,@NAGIOS_INSTALL_OPTS@,$NAGIOS_INSTALL_OPTS,;t t
  6771. s,@TARGET_VER@,$TARGET_VER,;t t
  6772. s,@TARGET_OS@,$TARGET_OS,;t t
  6773. s,@TARGET_ARCH@,$TARGET_ARCH,;t t
  6774. s,@TARGET_PLATFORM@,$TARGET_PLATFORM,;t t
  6775. s,@PERL@,$PERL,;t t
  6776. s,@LIBOBJS@,$LIBOBJS,;t t
  6777. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  6778. CEOF
  6779. _ACEOF
  6780. cat >>$CONFIG_STATUS <<\_ACEOF
  6781. # Split the substitutions into bite-sized pieces for seds with
  6782. # small command number limits, like on Digital OSF/1 and HP-UX.
  6783. ac_max_sed_lines=48
  6784. ac_sed_frag=1 # Number of current file.
  6785. ac_beg=1 # First line for current file.
  6786. ac_end=$ac_max_sed_lines # Line after last line for current file.
  6787. ac_more_lines=:
  6788. ac_sed_cmds=
  6789. while $ac_more_lines; do
  6790. if test $ac_beg -gt 1; then
  6791. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  6792. else
  6793. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  6794. fi
  6795. if test ! -s $tmp/subs.frag; then
  6796. ac_more_lines=false
  6797. else
  6798. # The purpose of the label and of the branching condition is to
  6799. # speed up the sed processing (if there are no `@' at all, there
  6800. # is no need to browse any of the substitutions).
  6801. # These are the two extra sed commands mentioned above.
  6802. (echo ':t
  6803. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  6804. if test -z "$ac_sed_cmds"; then
  6805. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  6806. else
  6807. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  6808. fi
  6809. ac_sed_frag=`expr $ac_sed_frag + 1`
  6810. ac_beg=$ac_end
  6811. ac_end=`expr $ac_end + $ac_max_sed_lines`
  6812. fi
  6813. done
  6814. if test -z "$ac_sed_cmds"; then
  6815. ac_sed_cmds=cat
  6816. fi
  6817. fi # test -n "$CONFIG_FILES"
  6818. _ACEOF
  6819. cat >>$CONFIG_STATUS <<\_ACEOF
  6820. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  6821. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6822. case $ac_file in
  6823. - | *:- | *:-:* ) # input from stdin
  6824. cat >$tmp/stdin
  6825. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  6826. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  6827. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  6828. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  6829. * ) ac_file_in=$ac_file.in ;;
  6830. esac
  6831. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  6832. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  6833. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6834. X"$ac_file" : 'X\(//\)[^/]' \| \
  6835. X"$ac_file" : 'X\(//\)$' \| \
  6836. X"$ac_file" : 'X\(/\)' \| \
  6837. . : '\(.\)' 2>/dev/null ||
  6838. echo X"$ac_file" |
  6839. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6840. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6841. /^X\(\/\/\)$/{ s//\1/; q; }
  6842. /^X\(\/\).*/{ s//\1/; q; }
  6843. s/.*/./; q'`
  6844. { if $as_mkdir_p; then
  6845. mkdir -p "$ac_dir"
  6846. else
  6847. as_dir="$ac_dir"
  6848. as_dirs=
  6849. while test ! -d "$as_dir"; do
  6850. as_dirs="$as_dir $as_dirs"
  6851. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  6852. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6853. X"$as_dir" : 'X\(//\)[^/]' \| \
  6854. X"$as_dir" : 'X\(//\)$' \| \
  6855. X"$as_dir" : 'X\(/\)' \| \
  6856. . : '\(.\)' 2>/dev/null ||
  6857. echo X"$as_dir" |
  6858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6859. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6860. /^X\(\/\/\)$/{ s//\1/; q; }
  6861. /^X\(\/\).*/{ s//\1/; q; }
  6862. s/.*/./; q'`
  6863. done
  6864. test ! -n "$as_dirs" || mkdir $as_dirs
  6865. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  6866. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  6867. { (exit 1); exit 1; }; }; }
  6868. ac_builddir=.
  6869. if test "$ac_dir" != .; then
  6870. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  6871. # A "../" for each directory in $ac_dir_suffix.
  6872. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  6873. else
  6874. ac_dir_suffix= ac_top_builddir=
  6875. fi
  6876. case $srcdir in
  6877. .) # No --srcdir option. We are building in place.
  6878. ac_srcdir=.
  6879. if test -z "$ac_top_builddir"; then
  6880. ac_top_srcdir=.
  6881. else
  6882. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  6883. fi ;;
  6884. [\\/]* | ?:[\\/]* ) # Absolute path.
  6885. ac_srcdir=$srcdir$ac_dir_suffix;
  6886. ac_top_srcdir=$srcdir ;;
  6887. *) # Relative path.
  6888. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  6889. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  6890. esac
  6891. # Do not use `cd foo && pwd` to compute absolute paths, because
  6892. # the directories may not exist.
  6893. case `pwd` in
  6894. .) ac_abs_builddir="$ac_dir";;
  6895. *)
  6896. case "$ac_dir" in
  6897. .) ac_abs_builddir=`pwd`;;
  6898. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  6899. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  6900. esac;;
  6901. esac
  6902. case $ac_abs_builddir in
  6903. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  6904. *)
  6905. case ${ac_top_builddir}. in
  6906. .) ac_abs_top_builddir=$ac_abs_builddir;;
  6907. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  6908. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  6909. esac;;
  6910. esac
  6911. case $ac_abs_builddir in
  6912. .) ac_abs_srcdir=$ac_srcdir;;
  6913. *)
  6914. case $ac_srcdir in
  6915. .) ac_abs_srcdir=$ac_abs_builddir;;
  6916. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  6917. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  6918. esac;;
  6919. esac
  6920. case $ac_abs_builddir in
  6921. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  6922. *)
  6923. case $ac_top_srcdir in
  6924. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  6925. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  6926. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  6927. esac;;
  6928. esac
  6929. case $INSTALL in
  6930. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6931. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  6932. esac
  6933. if test x"$ac_file" != x-; then
  6934. { echo "$as_me:$LINENO: creating $ac_file" >&5
  6935. echo "$as_me: creating $ac_file" >&6;}
  6936. rm -f "$ac_file"
  6937. fi
  6938. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6939. # use $as_me), people would be surprised to read:
  6940. # /* config.h. Generated by config.status. */
  6941. if test x"$ac_file" = x-; then
  6942. configure_input=
  6943. else
  6944. configure_input="$ac_file. "
  6945. fi
  6946. configure_input=$configure_input"Generated from `echo $ac_file_in |
  6947. sed 's,.*/,,'` by configure."
  6948. # First look for the input files in the build tree, otherwise in the
  6949. # src tree.
  6950. ac_file_inputs=`IFS=:
  6951. for f in $ac_file_in; do
  6952. case $f in
  6953. -) echo $tmp/stdin ;;
  6954. [\\/$]*)
  6955. # Absolute (can't be DOS-style, as IFS=:)
  6956. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  6957. echo "$as_me: error: cannot find input file: $f" >&2;}
  6958. { (exit 1); exit 1; }; }
  6959. echo "$f";;
  6960. *) # Relative
  6961. if test -f "$f"; then
  6962. # Build tree
  6963. echo "$f"
  6964. elif test -f "$srcdir/$f"; then
  6965. # Source tree
  6966. echo "$srcdir/$f"
  6967. else
  6968. # /dev/null tree
  6969. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  6970. echo "$as_me: error: cannot find input file: $f" >&2;}
  6971. { (exit 1); exit 1; }; }
  6972. fi;;
  6973. esac
  6974. done` || { (exit 1); exit 1; }
  6975. _ACEOF
  6976. cat >>$CONFIG_STATUS <<_ACEOF
  6977. sed "$ac_vpsub
  6978. $extrasub
  6979. _ACEOF
  6980. cat >>$CONFIG_STATUS <<\_ACEOF
  6981. :t
  6982. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6983. s,@configure_input@,$configure_input,;t t
  6984. s,@srcdir@,$ac_srcdir,;t t
  6985. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  6986. s,@top_srcdir@,$ac_top_srcdir,;t t
  6987. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  6988. s,@builddir@,$ac_builddir,;t t
  6989. s,@abs_builddir@,$ac_abs_builddir,;t t
  6990. s,@top_builddir@,$ac_top_builddir,;t t
  6991. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  6992. s,@INSTALL@,$ac_INSTALL,;t t
  6993. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  6994. rm -f $tmp/stdin
  6995. if test x"$ac_file" != x-; then
  6996. mv $tmp/out $ac_file
  6997. else
  6998. cat $tmp/out
  6999. rm -f $tmp/out
  7000. fi
  7001. done
  7002. _ACEOF
  7003. cat >>$CONFIG_STATUS <<\_ACEOF
  7004. #
  7005. # CONFIG_HEADER section.
  7006. #
  7007. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  7008. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  7009. #
  7010. # ac_d sets the value in "#define NAME VALUE" lines.
  7011. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  7012. ac_dB='[ ].*$,\1#\2'
  7013. ac_dC=' '
  7014. ac_dD=',;t'
  7015. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  7016. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  7017. ac_uB='$,\1#\2define\3'
  7018. ac_uC=' '
  7019. ac_uD=',;t'
  7020. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  7021. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7022. case $ac_file in
  7023. - | *:- | *:-:* ) # input from stdin
  7024. cat >$tmp/stdin
  7025. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7026. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7027. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7028. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7029. * ) ac_file_in=$ac_file.in ;;
  7030. esac
  7031. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  7032. echo "$as_me: creating $ac_file" >&6;}
  7033. # First look for the input files in the build tree, otherwise in the
  7034. # src tree.
  7035. ac_file_inputs=`IFS=:
  7036. for f in $ac_file_in; do
  7037. case $f in
  7038. -) echo $tmp/stdin ;;
  7039. [\\/$]*)
  7040. # Absolute (can't be DOS-style, as IFS=:)
  7041. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7042. echo "$as_me: error: cannot find input file: $f" >&2;}
  7043. { (exit 1); exit 1; }; }
  7044. # Do quote $f, to prevent DOS paths from being IFS'd.
  7045. echo "$f";;
  7046. *) # Relative
  7047. if test -f "$f"; then
  7048. # Build tree
  7049. echo "$f"
  7050. elif test -f "$srcdir/$f"; then
  7051. # Source tree
  7052. echo "$srcdir/$f"
  7053. else
  7054. # /dev/null tree
  7055. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7056. echo "$as_me: error: cannot find input file: $f" >&2;}
  7057. { (exit 1); exit 1; }; }
  7058. fi;;
  7059. esac
  7060. done` || { (exit 1); exit 1; }
  7061. # Remove the trailing spaces.
  7062. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  7063. _ACEOF
  7064. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  7065. # `conftest.undefs', that substitutes the proper values into
  7066. # config.h.in to produce config.h. The first handles `#define'
  7067. # templates, and the second `#undef' templates.
  7068. # And first: Protect against being on the right side of a sed subst in
  7069. # config.status. Protect against being in an unquoted here document
  7070. # in config.status.
  7071. rm -f conftest.defines conftest.undefs
  7072. # Using a here document instead of a string reduces the quoting nightmare.
  7073. # Putting comments in sed scripts is not portable.
  7074. #
  7075. # `end' is used to avoid that the second main sed command (meant for
  7076. # 0-ary CPP macros) applies to n-ary macro definitions.
  7077. # See the Autoconf documentation for `clear'.
  7078. cat >confdef2sed.sed <<\_ACEOF
  7079. s/[\\&,]/\\&/g
  7080. s,[\\$`],\\&,g
  7081. t clear
  7082. : clear
  7083. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  7084. t end
  7085. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  7086. : end
  7087. _ACEOF
  7088. # If some macros were called several times there might be several times
  7089. # the same #defines, which is useless. Nevertheless, we may not want to
  7090. # sort them, since we want the *last* AC-DEFINE to be honored.
  7091. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  7092. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  7093. rm -f confdef2sed.sed
  7094. # This sed command replaces #undef with comments. This is necessary, for
  7095. # example, in the case of _POSIX_SOURCE, which is predefined and required
  7096. # on some systems where configure will not decide to define it.
  7097. cat >>conftest.undefs <<\_ACEOF
  7098. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  7099. _ACEOF
  7100. # Break up conftest.defines because some shells have a limit on the size
  7101. # of here documents, and old seds have small limits too (100 cmds).
  7102. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  7103. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  7104. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  7105. echo ' :' >>$CONFIG_STATUS
  7106. rm -f conftest.tail
  7107. while grep . conftest.defines >/dev/null
  7108. do
  7109. # Write a limited-size here document to $tmp/defines.sed.
  7110. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  7111. # Speed up: don't consider the non `#define' lines.
  7112. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  7113. # Work around the forget-to-reset-the-flag bug.
  7114. echo 't clr' >>$CONFIG_STATUS
  7115. echo ': clr' >>$CONFIG_STATUS
  7116. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  7117. echo 'CEOF
  7118. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  7119. rm -f $tmp/in
  7120. mv $tmp/out $tmp/in
  7121. ' >>$CONFIG_STATUS
  7122. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  7123. rm -f conftest.defines
  7124. mv conftest.tail conftest.defines
  7125. done
  7126. rm -f conftest.defines
  7127. echo ' fi # grep' >>$CONFIG_STATUS
  7128. echo >>$CONFIG_STATUS
  7129. # Break up conftest.undefs because some shells have a limit on the size
  7130. # of here documents, and old seds have small limits too (100 cmds).
  7131. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  7132. rm -f conftest.tail
  7133. while grep . conftest.undefs >/dev/null
  7134. do
  7135. # Write a limited-size here document to $tmp/undefs.sed.
  7136. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  7137. # Speed up: don't consider the non `#undef'
  7138. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  7139. # Work around the forget-to-reset-the-flag bug.
  7140. echo 't clr' >>$CONFIG_STATUS
  7141. echo ': clr' >>$CONFIG_STATUS
  7142. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  7143. echo 'CEOF
  7144. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  7145. rm -f $tmp/in
  7146. mv $tmp/out $tmp/in
  7147. ' >>$CONFIG_STATUS
  7148. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  7149. rm -f conftest.undefs
  7150. mv conftest.tail conftest.undefs
  7151. done
  7152. rm -f conftest.undefs
  7153. cat >>$CONFIG_STATUS <<\_ACEOF
  7154. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7155. # use $as_me), people would be surprised to read:
  7156. # /* config.h. Generated by config.status. */
  7157. if test x"$ac_file" = x-; then
  7158. echo "/* Generated by configure. */" >$tmp/config.h
  7159. else
  7160. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  7161. fi
  7162. cat $tmp/in >>$tmp/config.h
  7163. rm -f $tmp/in
  7164. if test x"$ac_file" != x-; then
  7165. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  7166. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  7167. echo "$as_me: $ac_file is unchanged" >&6;}
  7168. else
  7169. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  7170. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7171. X"$ac_file" : 'X\(//\)[^/]' \| \
  7172. X"$ac_file" : 'X\(//\)$' \| \
  7173. X"$ac_file" : 'X\(/\)' \| \
  7174. . : '\(.\)' 2>/dev/null ||
  7175. echo X"$ac_file" |
  7176. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7177. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7178. /^X\(\/\/\)$/{ s//\1/; q; }
  7179. /^X\(\/\).*/{ s//\1/; q; }
  7180. s/.*/./; q'`
  7181. { if $as_mkdir_p; then
  7182. mkdir -p "$ac_dir"
  7183. else
  7184. as_dir="$ac_dir"
  7185. as_dirs=
  7186. while test ! -d "$as_dir"; do
  7187. as_dirs="$as_dir $as_dirs"
  7188. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  7189. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7190. X"$as_dir" : 'X\(//\)[^/]' \| \
  7191. X"$as_dir" : 'X\(//\)$' \| \
  7192. X"$as_dir" : 'X\(/\)' \| \
  7193. . : '\(.\)' 2>/dev/null ||
  7194. echo X"$as_dir" |
  7195. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7196. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7197. /^X\(\/\/\)$/{ s//\1/; q; }
  7198. /^X\(\/\).*/{ s//\1/; q; }
  7199. s/.*/./; q'`
  7200. done
  7201. test ! -n "$as_dirs" || mkdir $as_dirs
  7202. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  7203. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  7204. { (exit 1); exit 1; }; }; }
  7205. rm -f $ac_file
  7206. mv $tmp/config.h $ac_file
  7207. fi
  7208. else
  7209. cat $tmp/config.h
  7210. rm -f $tmp/config.h
  7211. fi
  7212. done
  7213. _ACEOF
  7214. cat >>$CONFIG_STATUS <<\_ACEOF
  7215. { (exit 0); exit 0; }
  7216. _ACEOF
  7217. chmod +x $CONFIG_STATUS
  7218. ac_clean_files=$ac_clean_files_save
  7219. # configure is writing to config.log, and then calls config.status.
  7220. # config.status does its own redirection, appending to config.log.
  7221. # Unfortunately, on DOS this fails, as config.log is still kept open
  7222. # by configure, so config.status won't be able to write to it; its
  7223. # output is simply discarded. So we exec the FD to /dev/null,
  7224. # effectively closing config.log, so it can be properly (re)opened and
  7225. # appended to by config.status. When coming back to configure, we
  7226. # need to make the FD available again.
  7227. if test "$no_create" != yes; then
  7228. ac_cs_success=:
  7229. ac_config_status_args=
  7230. test "$silent" = yes &&
  7231. ac_config_status_args="$ac_config_status_args --quiet"
  7232. exec 5>/dev/null
  7233. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7234. exec 5>>config.log
  7235. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7236. # would make configure fail if this is the last instruction.
  7237. $ac_cs_success || { (exit 1); exit 1; }
  7238. fi
  7239. perl subst init-script
  7240. perl subst init-script.debian
  7241. perl subst init-script.suse
  7242. perl subst sample-config/nrpe.cfg
  7243. perl subst sample-config/nrpe.xinetd
  7244. echo ""
  7245. echo ""
  7246. echo "$as_me:$LINENO: result: *** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&5
  7247. echo "${ECHO_T}*** Configuration summary for $PKG_NAME $PKG_VERSION $PKG_REL_DATE ***:" >&6
  7248. echo ""
  7249. echo " General Options:"
  7250. echo " -------------------------"
  7251. echo "$as_me:$LINENO: result: NRPE port: $nrpe_port" >&5
  7252. echo "${ECHO_T} NRPE port: $nrpe_port" >&6
  7253. echo "$as_me:$LINENO: result: NRPE user: $nrpe_user" >&5
  7254. echo "${ECHO_T} NRPE user: $nrpe_user" >&6
  7255. echo "$as_me:$LINENO: result: NRPE group: $nrpe_group" >&5
  7256. echo "${ECHO_T} NRPE group: $nrpe_group" >&6
  7257. echo "$as_me:$LINENO: result: Nagios user: $nagios_user" >&5
  7258. echo "${ECHO_T} Nagios user: $nagios_user" >&6
  7259. echo "$as_me:$LINENO: result: Nagios group: $nagios_group" >&5
  7260. echo "${ECHO_T} Nagios group: $nagios_group" >&6
  7261. echo ""
  7262. echo ""
  7263. echo "Review the options above for accuracy. If they look okay,"
  7264. echo "type 'make all' to compile the NRPE daemon and client."
  7265. echo ""