configure 374 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.24 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. 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 egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME CFG MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-cfg=PATH full path to pack.cfg
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Do not use `cd foo && pwd` to compute absolute paths, because
  785. # the directories may not exist.
  786. case `pwd` in
  787. .) ac_abs_builddir="$ac_dir";;
  788. *)
  789. case "$ac_dir" in
  790. .) ac_abs_builddir=`pwd`;;
  791. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  792. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  793. esac;;
  794. esac
  795. case $ac_abs_builddir in
  796. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *)
  798. case ${ac_top_builddir}. in
  799. .) ac_abs_top_builddir=$ac_abs_builddir;;
  800. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  801. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  802. esac;;
  803. esac
  804. case $ac_abs_builddir in
  805. .) ac_abs_srcdir=$ac_srcdir;;
  806. *)
  807. case $ac_srcdir in
  808. .) ac_abs_srcdir=$ac_abs_builddir;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  810. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *)
  816. case $ac_top_srcdir in
  817. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  819. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  820. esac;;
  821. esac
  822. cd $ac_dir
  823. # Check for guested configure; otherwise get Cygnus style configure.
  824. if test -f $ac_srcdir/configure.gnu; then
  825. echo
  826. $SHELL $ac_srcdir/configure.gnu --help=recursive
  827. elif test -f $ac_srcdir/configure; then
  828. echo
  829. $SHELL $ac_srcdir/configure --help=recursive
  830. elif test -f $ac_srcdir/configure.ac ||
  831. test -f $ac_srcdir/configure.in; then
  832. echo
  833. $ac_configure --help
  834. else
  835. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  836. fi
  837. cd "$ac_popdir"
  838. done
  839. fi
  840. test -n "$ac_init_help" && exit 0
  841. if $ac_init_version; then
  842. cat <<\_ACEOF
  843. Copyright (C) 2003 Free Software Foundation, Inc.
  844. This configure script is free software; the Free Software Foundation
  845. gives unlimited permission to copy, distribute and modify it.
  846. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  847. _ACEOF
  848. exit 0
  849. fi
  850. exec 5>config.log
  851. cat >&5 <<_ACEOF
  852. This file contains any messages produced by compilers while
  853. running configure, to aid debugging if configure makes a mistake.
  854. It was created by $as_me, which was
  855. generated by GNU Autoconf 2.59. Invocation command line was
  856. $ $0 $@
  857. _ACEOF
  858. {
  859. cat <<_ASUNAME
  860. ## --------- ##
  861. ## Platform. ##
  862. ## --------- ##
  863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  873. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  877. _ASUNAME
  878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  879. for as_dir in $PATH
  880. do
  881. IFS=$as_save_IFS
  882. test -z "$as_dir" && as_dir=.
  883. echo "PATH: $as_dir"
  884. done
  885. } >&5
  886. cat >&5 <<_ACEOF
  887. ## ----------- ##
  888. ## Core tests. ##
  889. ## ----------- ##
  890. _ACEOF
  891. # Keep a trace of the command line.
  892. # Strip out --no-create and --no-recursion so they do not pile up.
  893. # Strip out --silent because we don't want to record it for future runs.
  894. # Also quote any args containing shell meta-characters.
  895. # Make two passes to allow for proper duplicate-argument suppression.
  896. ac_configure_args=
  897. ac_configure_args0=
  898. ac_configure_args1=
  899. ac_sep=
  900. ac_must_keep_next=false
  901. for ac_pass in 1 2
  902. do
  903. for ac_arg
  904. do
  905. case $ac_arg in
  906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. continue ;;
  910. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  911. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  912. esac
  913. case $ac_pass in
  914. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  915. 2)
  916. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  917. if test $ac_must_keep_next = true; then
  918. ac_must_keep_next=false # Got value, back to normal.
  919. else
  920. case $ac_arg in
  921. *=* | --config-cache | -C | -disable-* | --disable-* \
  922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  924. | -with-* | --with-* | -without-* | --without-* | --x)
  925. case "$ac_configure_args0 " in
  926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  927. esac
  928. ;;
  929. -* ) ac_must_keep_next=true ;;
  930. esac
  931. fi
  932. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  933. # Get rid of the leading space.
  934. ac_sep=" "
  935. ;;
  936. esac
  937. done
  938. done
  939. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  940. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  941. # When interrupted or exit'd, cleanup temporary files, and complete
  942. # config.log. We remove comments because anyway the quotes in there
  943. # would cause problems or look ugly.
  944. # WARNING: Be sure not to use single quotes in there, as some shells,
  945. # such as our DU 5.0 friend, will then `close' the trap.
  946. trap 'exit_status=$?
  947. # Save into config.log some information that might help in debugging.
  948. {
  949. echo
  950. cat <<\_ASBOX
  951. ## ---------------- ##
  952. ## Cache variables. ##
  953. ## ---------------- ##
  954. _ASBOX
  955. echo
  956. # The following way of writing the cache mishandles newlines in values,
  957. {
  958. (set) 2>&1 |
  959. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  960. *ac_space=\ *)
  961. sed -n \
  962. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  964. ;;
  965. *)
  966. sed -n \
  967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  968. ;;
  969. esac;
  970. }
  971. echo
  972. cat <<\_ASBOX
  973. ## ----------------- ##
  974. ## Output variables. ##
  975. ## ----------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_vars
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. if test -n "$ac_subst_files"; then
  985. cat <<\_ASBOX
  986. ## ------------- ##
  987. ## Output files. ##
  988. ## ------------- ##
  989. _ASBOX
  990. echo
  991. for ac_var in $ac_subst_files
  992. do
  993. eval ac_val=$`echo $ac_var`
  994. echo "$ac_var='"'"'$ac_val'"'"'"
  995. done | sort
  996. echo
  997. fi
  998. if test -s confdefs.h; then
  999. cat <<\_ASBOX
  1000. ## ----------- ##
  1001. ## confdefs.h. ##
  1002. ## ----------- ##
  1003. _ASBOX
  1004. echo
  1005. sed "/^$/d" confdefs.h | sort
  1006. echo
  1007. fi
  1008. test "$ac_signal" != 0 &&
  1009. echo "$as_me: caught signal $ac_signal"
  1010. echo "$as_me: exit $exit_status"
  1011. } >&5
  1012. rm -f core *.core &&
  1013. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1014. exit $exit_status
  1015. ' 0
  1016. for ac_signal in 1 2 13 15; do
  1017. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1018. done
  1019. ac_signal=0
  1020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1021. rm -rf conftest* confdefs.h
  1022. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1023. echo >confdefs.h
  1024. # Predefined preprocessor variables.
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_NAME "$PACKAGE_NAME"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1030. _ACEOF
  1031. cat >>confdefs.h <<_ACEOF
  1032. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1033. _ACEOF
  1034. cat >>confdefs.h <<_ACEOF
  1035. #define PACKAGE_STRING "$PACKAGE_STRING"
  1036. _ACEOF
  1037. cat >>confdefs.h <<_ACEOF
  1038. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1039. _ACEOF
  1040. # Let the site file select an alternate cache file if it wants to.
  1041. # Prefer explicitly selected file to automatically selected ones.
  1042. if test -z "$CONFIG_SITE"; then
  1043. if test "x$prefix" != xNONE; then
  1044. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1045. else
  1046. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1047. fi
  1048. fi
  1049. for ac_site_file in $CONFIG_SITE; do
  1050. if test -r "$ac_site_file"; then
  1051. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1052. echo "$as_me: loading site script $ac_site_file" >&6;}
  1053. sed 's/^/| /' "$ac_site_file" >&5
  1054. . "$ac_site_file"
  1055. fi
  1056. done
  1057. if test -r "$cache_file"; then
  1058. # Some versions of bash will fail to source /dev/null (special
  1059. # files actually), so we avoid doing that.
  1060. if test -f "$cache_file"; then
  1061. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1062. echo "$as_me: loading cache $cache_file" >&6;}
  1063. case $cache_file in
  1064. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1065. *) . ./$cache_file;;
  1066. esac
  1067. fi
  1068. else
  1069. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1070. echo "$as_me: creating cache $cache_file" >&6;}
  1071. >$cache_file
  1072. fi
  1073. # Check that the precious variables saved in the cache have kept the same
  1074. # value.
  1075. ac_cache_corrupted=false
  1076. for ac_var in `(set) 2>&1 |
  1077. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1078. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1079. eval ac_new_set=\$ac_env_${ac_var}_set
  1080. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1081. eval ac_new_val="\$ac_env_${ac_var}_value"
  1082. case $ac_old_set,$ac_new_set in
  1083. set,)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,set)
  1088. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1089. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1090. ac_cache_corrupted=: ;;
  1091. ,);;
  1092. *)
  1093. if test "x$ac_old_val" != "x$ac_new_val"; then
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1095. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1096. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1097. echo "$as_me: former value: $ac_old_val" >&2;}
  1098. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1099. echo "$as_me: current value: $ac_new_val" >&2;}
  1100. ac_cache_corrupted=:
  1101. fi;;
  1102. esac
  1103. # Pass precious variables to config.status.
  1104. if test "$ac_new_set" = set; then
  1105. case $ac_new_val in
  1106. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1107. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1108. *) ac_arg=$ac_var=$ac_new_val ;;
  1109. esac
  1110. case " $ac_configure_args " in
  1111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1112. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1113. esac
  1114. fi
  1115. done
  1116. if $ac_cache_corrupted; then
  1117. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1118. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1119. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1120. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1121. { (exit 1); exit 1; }; }
  1122. fi
  1123. ac_ext=c
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1128. ac_config_headers="$ac_config_headers config.h"
  1129. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1130. egg_ac_parameters=
  1131. ac_prev=
  1132. for ac_arg in $ac_configure_args; do
  1133. if test -n "$ac_prev"; then
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_arg in
  1138. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1139. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1140. ac_prev=cache_file ;;
  1141. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1142. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1143. | --c=*)
  1144. ;;
  1145. --config-cache | -C)
  1146. ;;
  1147. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1148. ac_prev=srcdir ;;
  1149. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1150. ;;
  1151. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1152. esac
  1153. done
  1154. cfg="pack/pack.cfg"
  1155. # Check whether --with-cfg or --without-cfg was given.
  1156. if test "${with_cfg+set}" = set; then
  1157. withval="$with_cfg"
  1158. cfg="$withval"
  1159. fi;
  1160. # Setup build environment
  1161. ac_ext=c
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1166. if test -n "$ac_tool_prefix"; then
  1167. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1168. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1169. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1171. if test "${ac_cv_prog_CC+set}" = set; then
  1172. echo $ECHO_N "(cached) $ECHO_C" >&6
  1173. else
  1174. if test -n "$CC"; then
  1175. ac_cv_prog_CC="$CC" # Let the user override the test.
  1176. else
  1177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1178. for as_dir in $PATH
  1179. do
  1180. IFS=$as_save_IFS
  1181. test -z "$as_dir" && as_dir=.
  1182. for ac_exec_ext in '' $ac_executable_extensions; do
  1183. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1184. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1186. break 2
  1187. fi
  1188. done
  1189. done
  1190. fi
  1191. fi
  1192. CC=$ac_cv_prog_CC
  1193. if test -n "$CC"; then
  1194. echo "$as_me:$LINENO: result: $CC" >&5
  1195. echo "${ECHO_T}$CC" >&6
  1196. else
  1197. echo "$as_me:$LINENO: result: no" >&5
  1198. echo "${ECHO_T}no" >&6
  1199. fi
  1200. fi
  1201. if test -z "$ac_cv_prog_CC"; then
  1202. ac_ct_CC=$CC
  1203. # Extract the first word of "gcc", so it can be a program name with args.
  1204. set dummy gcc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$ac_ct_CC"; then
  1211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_ac_ct_CC="gcc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1229. if test -n "$ac_ct_CC"; then
  1230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1231. echo "${ECHO_T}$ac_ct_CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. CC=$ac_ct_CC
  1237. else
  1238. CC="$ac_cv_prog_CC"
  1239. fi
  1240. if test -z "$CC"; then
  1241. if test -n "$ac_tool_prefix"; then
  1242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1246. if test "${ac_cv_prog_CC+set}" = set; then
  1247. echo $ECHO_N "(cached) $ECHO_C" >&6
  1248. else
  1249. if test -n "$CC"; then
  1250. ac_cv_prog_CC="$CC" # Let the user override the test.
  1251. else
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255. IFS=$as_save_IFS
  1256. test -z "$as_dir" && as_dir=.
  1257. for ac_exec_ext in '' $ac_executable_extensions; do
  1258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1261. break 2
  1262. fi
  1263. done
  1264. done
  1265. fi
  1266. fi
  1267. CC=$ac_cv_prog_CC
  1268. if test -n "$CC"; then
  1269. echo "$as_me:$LINENO: result: $CC" >&5
  1270. echo "${ECHO_T}$CC" >&6
  1271. else
  1272. echo "$as_me:$LINENO: result: no" >&5
  1273. echo "${ECHO_T}no" >&6
  1274. fi
  1275. fi
  1276. if test -z "$ac_cv_prog_CC"; then
  1277. ac_ct_CC=$CC
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$ac_ct_CC"; then
  1286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1287. else
  1288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1289. for as_dir in $PATH
  1290. do
  1291. IFS=$as_save_IFS
  1292. test -z "$as_dir" && as_dir=.
  1293. for ac_exec_ext in '' $ac_executable_extensions; do
  1294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1295. ac_cv_prog_ac_ct_CC="cc"
  1296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1297. break 2
  1298. fi
  1299. done
  1300. done
  1301. fi
  1302. fi
  1303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1304. if test -n "$ac_ct_CC"; then
  1305. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1306. echo "${ECHO_T}$ac_ct_CC" >&6
  1307. else
  1308. echo "$as_me:$LINENO: result: no" >&5
  1309. echo "${ECHO_T}no" >&6
  1310. fi
  1311. CC=$ac_ct_CC
  1312. else
  1313. CC="$ac_cv_prog_CC"
  1314. fi
  1315. fi
  1316. if test -z "$CC"; then
  1317. # Extract the first word of "cc", so it can be a program name with args.
  1318. set dummy cc; ac_word=$2
  1319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1321. if test "${ac_cv_prog_CC+set}" = set; then
  1322. echo $ECHO_N "(cached) $ECHO_C" >&6
  1323. else
  1324. if test -n "$CC"; then
  1325. ac_cv_prog_CC="$CC" # Let the user override the test.
  1326. else
  1327. ac_prog_rejected=no
  1328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1329. for as_dir in $PATH
  1330. do
  1331. IFS=$as_save_IFS
  1332. test -z "$as_dir" && as_dir=.
  1333. for ac_exec_ext in '' $ac_executable_extensions; do
  1334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1335. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1336. ac_prog_rejected=yes
  1337. continue
  1338. fi
  1339. ac_cv_prog_CC="cc"
  1340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1341. break 2
  1342. fi
  1343. done
  1344. done
  1345. if test $ac_prog_rejected = yes; then
  1346. # We found a bogon in the path, so make sure we never use it.
  1347. set dummy $ac_cv_prog_CC
  1348. shift
  1349. if test $# != 0; then
  1350. # We chose a different compiler from the bogus one.
  1351. # However, it has the same basename, so the bogon will be chosen
  1352. # first if we set CC to just the basename; use the full file name.
  1353. shift
  1354. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1355. fi
  1356. fi
  1357. fi
  1358. fi
  1359. CC=$ac_cv_prog_CC
  1360. if test -n "$CC"; then
  1361. echo "$as_me:$LINENO: result: $CC" >&5
  1362. echo "${ECHO_T}$CC" >&6
  1363. else
  1364. echo "$as_me:$LINENO: result: no" >&5
  1365. echo "${ECHO_T}no" >&6
  1366. fi
  1367. fi
  1368. if test -z "$CC"; then
  1369. if test -n "$ac_tool_prefix"; then
  1370. for ac_prog in cl
  1371. do
  1372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$CC"; then
  1380. ac_cv_prog_CC="$CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. CC=$ac_cv_prog_CC
  1398. if test -n "$CC"; then
  1399. echo "$as_me:$LINENO: result: $CC" >&5
  1400. echo "${ECHO_T}$CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$CC" && break
  1406. done
  1407. fi
  1408. if test -z "$CC"; then
  1409. ac_ct_CC=$CC
  1410. for ac_prog in cl
  1411. do
  1412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1413. set dummy $ac_prog; ac_word=$2
  1414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. if test -n "$ac_ct_CC"; then
  1420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1421. else
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. ac_cv_prog_ac_ct_CC="$ac_prog"
  1430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1431. break 2
  1432. fi
  1433. done
  1434. done
  1435. fi
  1436. fi
  1437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1438. if test -n "$ac_ct_CC"; then
  1439. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1440. echo "${ECHO_T}$ac_ct_CC" >&6
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. fi
  1445. test -n "$ac_ct_CC" && break
  1446. done
  1447. CC=$ac_ct_CC
  1448. fi
  1449. fi
  1450. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1451. See \`config.log' for more details." >&5
  1452. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1453. See \`config.log' for more details." >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. # Provide some information about the compiler.
  1456. echo "$as_me:$LINENO:" \
  1457. "checking for C compiler version" >&5
  1458. ac_compiler=`set X $ac_compile; echo $2`
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1460. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1470. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1471. ac_status=$?
  1472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1473. (exit $ac_status); }
  1474. cat >conftest.$ac_ext <<_ACEOF
  1475. /* confdefs.h. */
  1476. _ACEOF
  1477. cat confdefs.h >>conftest.$ac_ext
  1478. cat >>conftest.$ac_ext <<_ACEOF
  1479. /* end confdefs.h. */
  1480. int
  1481. main ()
  1482. {
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. ac_clean_files_save=$ac_clean_files
  1488. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1489. # Try to create an executable without -o first, disregard a.out.
  1490. # It will help us diagnose broken compilers, and finding out an intuition
  1491. # of exeext.
  1492. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1493. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1494. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1495. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1496. (eval $ac_link_default) 2>&5
  1497. ac_status=$?
  1498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1499. (exit $ac_status); }; then
  1500. # Find the output, starting from the most likely. This scheme is
  1501. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1502. # resort.
  1503. # Be careful to initialize this variable, since it used to be cached.
  1504. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1505. ac_cv_exeext=
  1506. # b.out is created by i960 compilers.
  1507. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1508. do
  1509. test -f "$ac_file" || continue
  1510. case $ac_file in
  1511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1512. ;;
  1513. conftest.$ac_ext )
  1514. # This is the source file.
  1515. ;;
  1516. [ab].out )
  1517. # We found the default executable, but exeext='' is most
  1518. # certainly right.
  1519. break;;
  1520. *.* )
  1521. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1522. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1523. # but it would be cool to find out if it's true. Does anybody
  1524. # maintain Libtool? --akim.
  1525. export ac_cv_exeext
  1526. break;;
  1527. * )
  1528. break;;
  1529. esac
  1530. done
  1531. else
  1532. echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1535. See \`config.log' for more details." >&5
  1536. echo "$as_me: error: C compiler cannot create executables
  1537. See \`config.log' for more details." >&2;}
  1538. { (exit 77); exit 77; }; }
  1539. fi
  1540. ac_exeext=$ac_cv_exeext
  1541. echo "$as_me:$LINENO: result: $ac_file" >&5
  1542. echo "${ECHO_T}$ac_file" >&6
  1543. # Check the compiler produces executables we can run. If not, either
  1544. # the compiler is broken, or we cross compile.
  1545. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1546. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1547. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1548. # If not cross compiling, check that we can run a simple program.
  1549. if test "$cross_compiling" != yes; then
  1550. if { ac_try='./$ac_file'
  1551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1552. (eval $ac_try) 2>&5
  1553. ac_status=$?
  1554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1555. (exit $ac_status); }; }; then
  1556. cross_compiling=no
  1557. else
  1558. if test "$cross_compiling" = maybe; then
  1559. cross_compiling=yes
  1560. else
  1561. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1562. If you meant to cross compile, use \`--host'.
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot run C compiled programs.
  1565. If you meant to cross compile, use \`--host'.
  1566. See \`config.log' for more details." >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. fi
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1574. ac_clean_files=$ac_clean_files_save
  1575. # Check the compiler produces executables we can run. If not, either
  1576. # the compiler is broken, or we cross compile.
  1577. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1578. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1579. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1580. echo "${ECHO_T}$cross_compiling" >&6
  1581. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1582. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1584. (eval $ac_link) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }; then
  1588. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1589. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1590. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1591. # `rm'.
  1592. for ac_file in conftest.exe conftest conftest.*; do
  1593. test -f "$ac_file" || continue
  1594. case $ac_file in
  1595. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1596. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1597. export ac_cv_exeext
  1598. break;;
  1599. * ) break;;
  1600. esac
  1601. done
  1602. else
  1603. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1604. See \`config.log' for more details." >&5
  1605. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1606. See \`config.log' for more details." >&2;}
  1607. { (exit 1); exit 1; }; }
  1608. fi
  1609. rm -f conftest$ac_cv_exeext
  1610. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1611. echo "${ECHO_T}$ac_cv_exeext" >&6
  1612. rm -f conftest.$ac_ext
  1613. EXEEXT=$ac_cv_exeext
  1614. ac_exeext=$EXEEXT
  1615. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1616. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1617. if test "${ac_cv_objext+set}" = set; then
  1618. echo $ECHO_N "(cached) $ECHO_C" >&6
  1619. else
  1620. cat >conftest.$ac_ext <<_ACEOF
  1621. /* confdefs.h. */
  1622. _ACEOF
  1623. cat confdefs.h >>conftest.$ac_ext
  1624. cat >>conftest.$ac_ext <<_ACEOF
  1625. /* end confdefs.h. */
  1626. int
  1627. main ()
  1628. {
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. rm -f conftest.o conftest.obj
  1634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1635. (eval $ac_compile) 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }; then
  1639. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1640. case $ac_file in
  1641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1643. break;;
  1644. esac
  1645. done
  1646. else
  1647. echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1650. See \`config.log' for more details." >&5
  1651. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1652. See \`config.log' for more details." >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. fi
  1655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1656. fi
  1657. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1658. echo "${ECHO_T}$ac_cv_objext" >&6
  1659. OBJEXT=$ac_cv_objext
  1660. ac_objext=$OBJEXT
  1661. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1662. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1663. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. cat >conftest.$ac_ext <<_ACEOF
  1667. /* confdefs.h. */
  1668. _ACEOF
  1669. cat confdefs.h >>conftest.$ac_ext
  1670. cat >>conftest.$ac_ext <<_ACEOF
  1671. /* end confdefs.h. */
  1672. int
  1673. main ()
  1674. {
  1675. #ifndef __GNUC__
  1676. choke me
  1677. #endif
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. rm -f conftest.$ac_objext
  1683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1684. (eval $ac_compile) 2>conftest.er1
  1685. ac_status=$?
  1686. grep -v '^ *+' conftest.er1 >conftest.err
  1687. rm -f conftest.er1
  1688. cat conftest.err >&5
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); } &&
  1691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; } &&
  1697. { ac_try='test -s conftest.$ac_objext'
  1698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1699. (eval $ac_try) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; }; then
  1703. ac_compiler_gnu=yes
  1704. else
  1705. echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_compiler_gnu=no
  1708. fi
  1709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1710. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1711. fi
  1712. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1713. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1714. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1715. ac_test_CFLAGS=${CFLAGS+set}
  1716. ac_save_CFLAGS=$CFLAGS
  1717. CFLAGS="-g"
  1718. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1719. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1720. if test "${ac_cv_prog_cc_g+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1738. (eval $ac_compile) 2>conftest.er1
  1739. ac_status=$?
  1740. grep -v '^ *+' conftest.er1 >conftest.err
  1741. rm -f conftest.er1
  1742. cat conftest.err >&5
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); } &&
  1745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1747. (eval $ac_try) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; } &&
  1751. { ac_try='test -s conftest.$ac_objext'
  1752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1753. (eval $ac_try) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; }; then
  1757. ac_cv_prog_cc_g=yes
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. ac_cv_prog_cc_g=no
  1762. fi
  1763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1766. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1767. if test "$ac_test_CFLAGS" = set; then
  1768. CFLAGS=$ac_save_CFLAGS
  1769. elif test $ac_cv_prog_cc_g = yes; then
  1770. if test "$GCC" = yes; then
  1771. CFLAGS="-g -O2"
  1772. else
  1773. CFLAGS="-g"
  1774. fi
  1775. else
  1776. if test "$GCC" = yes; then
  1777. CFLAGS="-O2"
  1778. else
  1779. CFLAGS=
  1780. fi
  1781. fi
  1782. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1783. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1784. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. ac_cv_prog_cc_stdc=no
  1788. ac_save_CC=$CC
  1789. cat >conftest.$ac_ext <<_ACEOF
  1790. /* confdefs.h. */
  1791. _ACEOF
  1792. cat confdefs.h >>conftest.$ac_ext
  1793. cat >>conftest.$ac_ext <<_ACEOF
  1794. /* end confdefs.h. */
  1795. #include <stdarg.h>
  1796. #include <stdio.h>
  1797. #include <sys/types.h>
  1798. #include <sys/stat.h>
  1799. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1800. struct buf { int x; };
  1801. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1802. static char *e (p, i)
  1803. char **p;
  1804. int i;
  1805. {
  1806. return p[i];
  1807. }
  1808. static char *f (char * (*g) (char **, int), char **p, ...)
  1809. {
  1810. char *s;
  1811. va_list v;
  1812. va_start (v,p);
  1813. s = g (p, va_arg (v,int));
  1814. va_end (v);
  1815. return s;
  1816. }
  1817. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1818. function prototypes and stuff, but not '\xHH' hex character constants.
  1819. These don't provoke an error unfortunately, instead are silently treated
  1820. as 'x'. The following induces an error, until -std1 is added to get
  1821. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1822. array size at least. It's necessary to write '\x00'==0 to get something
  1823. that's true only with -std1. */
  1824. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1825. int test (int i, double x);
  1826. struct s1 {int (*f) (int a);};
  1827. struct s2 {int (*f) (double a);};
  1828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1829. int argc;
  1830. char **argv;
  1831. int
  1832. main ()
  1833. {
  1834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. # Don't try gcc -ansi; that turns off useful extensions and
  1840. # breaks some systems' header files.
  1841. # AIX -qlanglvl=ansi
  1842. # Ultrix and OSF/1 -std1
  1843. # HP-UX 10.20 and later -Ae
  1844. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1845. # SVR4 -Xc -D__EXTENSIONS__
  1846. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1847. do
  1848. CC="$ac_save_CC $ac_arg"
  1849. rm -f conftest.$ac_objext
  1850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1851. (eval $ac_compile) 2>conftest.er1
  1852. ac_status=$?
  1853. grep -v '^ *+' conftest.er1 >conftest.err
  1854. rm -f conftest.er1
  1855. cat conftest.err >&5
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); } &&
  1858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1860. (eval $ac_try) 2>&5
  1861. ac_status=$?
  1862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. (exit $ac_status); }; } &&
  1864. { ac_try='test -s conftest.$ac_objext'
  1865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1866. (eval $ac_try) 2>&5
  1867. ac_status=$?
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); }; }; then
  1870. ac_cv_prog_cc_stdc=$ac_arg
  1871. break
  1872. else
  1873. echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. fi
  1876. rm -f conftest.err conftest.$ac_objext
  1877. done
  1878. rm -f conftest.$ac_ext conftest.$ac_objext
  1879. CC=$ac_save_CC
  1880. fi
  1881. case "x$ac_cv_prog_cc_stdc" in
  1882. x|xno)
  1883. echo "$as_me:$LINENO: result: none needed" >&5
  1884. echo "${ECHO_T}none needed" >&6 ;;
  1885. *)
  1886. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1887. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1888. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1889. esac
  1890. # Some people use a C++ compiler to compile C. Since we use `exit',
  1891. # in C++ we need to declare it. In case someone uses the same compiler
  1892. # for both compiling C and C++ we need to have the C++ compiler decide
  1893. # the declaration of exit, since it's the most demanding environment.
  1894. cat >conftest.$ac_ext <<_ACEOF
  1895. #ifndef __cplusplus
  1896. choke me
  1897. #endif
  1898. _ACEOF
  1899. rm -f conftest.$ac_objext
  1900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1901. (eval $ac_compile) 2>conftest.er1
  1902. ac_status=$?
  1903. grep -v '^ *+' conftest.er1 >conftest.err
  1904. rm -f conftest.er1
  1905. cat conftest.err >&5
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); } &&
  1908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1910. (eval $ac_try) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }; } &&
  1914. { ac_try='test -s conftest.$ac_objext'
  1915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1916. (eval $ac_try) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; }; then
  1920. for ac_declaration in \
  1921. '' \
  1922. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1923. 'extern "C" void std::exit (int); using std::exit;' \
  1924. 'extern "C" void exit (int) throw ();' \
  1925. 'extern "C" void exit (int);' \
  1926. 'void exit (int);'
  1927. do
  1928. cat >conftest.$ac_ext <<_ACEOF
  1929. /* confdefs.h. */
  1930. _ACEOF
  1931. cat confdefs.h >>conftest.$ac_ext
  1932. cat >>conftest.$ac_ext <<_ACEOF
  1933. /* end confdefs.h. */
  1934. $ac_declaration
  1935. #include <stdlib.h>
  1936. int
  1937. main ()
  1938. {
  1939. exit (42);
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. rm -f conftest.$ac_objext
  1945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1946. (eval $ac_compile) 2>conftest.er1
  1947. ac_status=$?
  1948. grep -v '^ *+' conftest.er1 >conftest.err
  1949. rm -f conftest.er1
  1950. cat conftest.err >&5
  1951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1952. (exit $ac_status); } &&
  1953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1955. (eval $ac_try) 2>&5
  1956. ac_status=$?
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); }; } &&
  1959. { ac_try='test -s conftest.$ac_objext'
  1960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1961. (eval $ac_try) 2>&5
  1962. ac_status=$?
  1963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1964. (exit $ac_status); }; }; then
  1965. :
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. continue
  1970. fi
  1971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. cat >conftest.$ac_ext <<_ACEOF
  1973. /* confdefs.h. */
  1974. _ACEOF
  1975. cat confdefs.h >>conftest.$ac_ext
  1976. cat >>conftest.$ac_ext <<_ACEOF
  1977. /* end confdefs.h. */
  1978. $ac_declaration
  1979. int
  1980. main ()
  1981. {
  1982. exit (42);
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. rm -f conftest.$ac_objext
  1988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1989. (eval $ac_compile) 2>conftest.er1
  1990. ac_status=$?
  1991. grep -v '^ *+' conftest.er1 >conftest.err
  1992. rm -f conftest.er1
  1993. cat conftest.err >&5
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); } &&
  1996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; } &&
  2002. { ac_try='test -s conftest.$ac_objext'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. break
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. fi
  2013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. done
  2015. rm -f conftest*
  2016. if test -n "$ac_declaration"; then
  2017. echo '#ifdef __cplusplus' >>confdefs.h
  2018. echo $ac_declaration >>confdefs.h
  2019. echo '#endif' >>confdefs.h
  2020. fi
  2021. else
  2022. echo "$as_me: failed program was:" >&5
  2023. sed 's/^/| /' conftest.$ac_ext >&5
  2024. fi
  2025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. if test "${cross_compiling-x}" = "x"
  2032. then
  2033. cat << 'EOF' >&2
  2034. configure: error:
  2035. This system does not appear to have a working C compiler.
  2036. A working C compiler is required to compile Eggdrop.
  2037. EOF
  2038. exit 1
  2039. fi
  2040. # Crazy machines
  2041. ac_ext=c
  2042. ac_cpp='$CPP $CPPFLAGS'
  2043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2046. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2047. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2048. # On Suns, sometimes $CPP names a directory.
  2049. if test -n "$CPP" && test -d "$CPP"; then
  2050. CPP=
  2051. fi
  2052. if test -z "$CPP"; then
  2053. if test "${ac_cv_prog_CPP+set}" = set; then
  2054. echo $ECHO_N "(cached) $ECHO_C" >&6
  2055. else
  2056. # Double quotes because CPP needs to be expanded
  2057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2058. do
  2059. ac_preproc_ok=false
  2060. for ac_c_preproc_warn_flag in '' yes
  2061. do
  2062. # Use a header file that comes with gcc, so configuring glibc
  2063. # with a fresh cross-compiler works.
  2064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2065. # <limits.h> exists even on freestanding compilers.
  2066. # On the NeXT, cc -E runs the code through the compiler's parser,
  2067. # not just through cpp. "Syntax error" is here to catch this case.
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. #ifdef __STDC__
  2075. # include <limits.h>
  2076. #else
  2077. # include <assert.h>
  2078. #endif
  2079. Syntax error
  2080. _ACEOF
  2081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2083. ac_status=$?
  2084. grep -v '^ *+' conftest.er1 >conftest.err
  2085. rm -f conftest.er1
  2086. cat conftest.err >&5
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); } >/dev/null; then
  2089. if test -s conftest.err; then
  2090. ac_cpp_err=$ac_c_preproc_warn_flag
  2091. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2092. else
  2093. ac_cpp_err=
  2094. fi
  2095. else
  2096. ac_cpp_err=yes
  2097. fi
  2098. if test -z "$ac_cpp_err"; then
  2099. :
  2100. else
  2101. echo "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. # Broken: fails on valid input.
  2104. continue
  2105. fi
  2106. rm -f conftest.err conftest.$ac_ext
  2107. # OK, works on sane cases. Now check whether non-existent headers
  2108. # can be detected and how.
  2109. cat >conftest.$ac_ext <<_ACEOF
  2110. /* confdefs.h. */
  2111. _ACEOF
  2112. cat confdefs.h >>conftest.$ac_ext
  2113. cat >>conftest.$ac_ext <<_ACEOF
  2114. /* end confdefs.h. */
  2115. #include <ac_nonexistent.h>
  2116. _ACEOF
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2118. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } >/dev/null; then
  2125. if test -s conftest.err; then
  2126. ac_cpp_err=$ac_c_preproc_warn_flag
  2127. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2128. else
  2129. ac_cpp_err=
  2130. fi
  2131. else
  2132. ac_cpp_err=yes
  2133. fi
  2134. if test -z "$ac_cpp_err"; then
  2135. # Broken: success on invalid input.
  2136. continue
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. # Passes both tests.
  2141. ac_preproc_ok=:
  2142. break
  2143. fi
  2144. rm -f conftest.err conftest.$ac_ext
  2145. done
  2146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2147. rm -f conftest.err conftest.$ac_ext
  2148. if $ac_preproc_ok; then
  2149. break
  2150. fi
  2151. done
  2152. ac_cv_prog_CPP=$CPP
  2153. fi
  2154. CPP=$ac_cv_prog_CPP
  2155. else
  2156. ac_cv_prog_CPP=$CPP
  2157. fi
  2158. echo "$as_me:$LINENO: result: $CPP" >&5
  2159. echo "${ECHO_T}$CPP" >&6
  2160. ac_preproc_ok=false
  2161. for ac_c_preproc_warn_flag in '' yes
  2162. do
  2163. # Use a header file that comes with gcc, so configuring glibc
  2164. # with a fresh cross-compiler works.
  2165. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2166. # <limits.h> exists even on freestanding compilers.
  2167. # On the NeXT, cc -E runs the code through the compiler's parser,
  2168. # not just through cpp. "Syntax error" is here to catch this case.
  2169. cat >conftest.$ac_ext <<_ACEOF
  2170. /* confdefs.h. */
  2171. _ACEOF
  2172. cat confdefs.h >>conftest.$ac_ext
  2173. cat >>conftest.$ac_ext <<_ACEOF
  2174. /* end confdefs.h. */
  2175. #ifdef __STDC__
  2176. # include <limits.h>
  2177. #else
  2178. # include <assert.h>
  2179. #endif
  2180. Syntax error
  2181. _ACEOF
  2182. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2184. ac_status=$?
  2185. grep -v '^ *+' conftest.er1 >conftest.err
  2186. rm -f conftest.er1
  2187. cat conftest.err >&5
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); } >/dev/null; then
  2190. if test -s conftest.err; then
  2191. ac_cpp_err=$ac_c_preproc_warn_flag
  2192. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2193. else
  2194. ac_cpp_err=
  2195. fi
  2196. else
  2197. ac_cpp_err=yes
  2198. fi
  2199. if test -z "$ac_cpp_err"; then
  2200. :
  2201. else
  2202. echo "$as_me: failed program was:" >&5
  2203. sed 's/^/| /' conftest.$ac_ext >&5
  2204. # Broken: fails on valid input.
  2205. continue
  2206. fi
  2207. rm -f conftest.err conftest.$ac_ext
  2208. # OK, works on sane cases. Now check whether non-existent headers
  2209. # can be detected and how.
  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. #include <ac_nonexistent.h>
  2217. _ACEOF
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2219. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } >/dev/null; then
  2226. if test -s conftest.err; then
  2227. ac_cpp_err=$ac_c_preproc_warn_flag
  2228. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2229. else
  2230. ac_cpp_err=
  2231. fi
  2232. else
  2233. ac_cpp_err=yes
  2234. fi
  2235. if test -z "$ac_cpp_err"; then
  2236. # Broken: success on invalid input.
  2237. continue
  2238. else
  2239. echo "$as_me: failed program was:" >&5
  2240. sed 's/^/| /' conftest.$ac_ext >&5
  2241. # Passes both tests.
  2242. ac_preproc_ok=:
  2243. break
  2244. fi
  2245. rm -f conftest.err conftest.$ac_ext
  2246. done
  2247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2248. rm -f conftest.err conftest.$ac_ext
  2249. if $ac_preproc_ok; then
  2250. :
  2251. else
  2252. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2253. See \`config.log' for more details." >&5
  2254. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2255. See \`config.log' for more details." >&2;}
  2256. { (exit 1); exit 1; }; }
  2257. fi
  2258. ac_ext=c
  2259. ac_cpp='$CPP $CPPFLAGS'
  2260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2263. echo "$as_me:$LINENO: checking for egrep" >&5
  2264. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2265. if test "${ac_cv_prog_egrep+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2269. then ac_cv_prog_egrep='grep -E'
  2270. else ac_cv_prog_egrep='egrep'
  2271. fi
  2272. fi
  2273. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2274. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2275. EGREP=$ac_cv_prog_egrep
  2276. echo "$as_me:$LINENO: checking for AIX" >&5
  2277. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2278. cat >conftest.$ac_ext <<_ACEOF
  2279. /* confdefs.h. */
  2280. _ACEOF
  2281. cat confdefs.h >>conftest.$ac_ext
  2282. cat >>conftest.$ac_ext <<_ACEOF
  2283. /* end confdefs.h. */
  2284. #ifdef _AIX
  2285. yes
  2286. #endif
  2287. _ACEOF
  2288. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2289. $EGREP "yes" >/dev/null 2>&1; then
  2290. echo "$as_me:$LINENO: result: yes" >&5
  2291. echo "${ECHO_T}yes" >&6
  2292. cat >>confdefs.h <<\_ACEOF
  2293. #define _ALL_SOURCE 1
  2294. _ACEOF
  2295. else
  2296. echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6
  2298. fi
  2299. rm -f conftest*
  2300. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2301. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2302. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. ac_check_lib_save_LIBS=$LIBS
  2306. LIBS="-lcposix $LIBS"
  2307. cat >conftest.$ac_ext <<_ACEOF
  2308. /* confdefs.h. */
  2309. _ACEOF
  2310. cat confdefs.h >>conftest.$ac_ext
  2311. cat >>conftest.$ac_ext <<_ACEOF
  2312. /* end confdefs.h. */
  2313. /* Override any gcc2 internal prototype to avoid an error. */
  2314. #ifdef __cplusplus
  2315. extern "C"
  2316. #endif
  2317. /* We use char because int might match the return type of a gcc2
  2318. builtin and then its argument prototype would still apply. */
  2319. char strerror ();
  2320. int
  2321. main ()
  2322. {
  2323. strerror ();
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. rm -f conftest.$ac_objext conftest$ac_exeext
  2329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2330. (eval $ac_link) 2>conftest.er1
  2331. ac_status=$?
  2332. grep -v '^ *+' conftest.er1 >conftest.err
  2333. rm -f conftest.er1
  2334. cat conftest.err >&5
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); } &&
  2337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; } &&
  2343. { ac_try='test -s conftest$ac_exeext'
  2344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2345. (eval $ac_try) 2>&5
  2346. ac_status=$?
  2347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2348. (exit $ac_status); }; }; then
  2349. ac_cv_lib_cposix_strerror=yes
  2350. else
  2351. echo "$as_me: failed program was:" >&5
  2352. sed 's/^/| /' conftest.$ac_ext >&5
  2353. ac_cv_lib_cposix_strerror=no
  2354. fi
  2355. rm -f conftest.err conftest.$ac_objext \
  2356. conftest$ac_exeext conftest.$ac_ext
  2357. LIBS=$ac_check_lib_save_LIBS
  2358. fi
  2359. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2360. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2361. if test $ac_cv_lib_cposix_strerror = yes; then
  2362. LIBS="$LIBS -lcposix"
  2363. fi
  2364. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2365. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2366. if test "${ac_cv_header_stdc+set}" = set; then
  2367. echo $ECHO_N "(cached) $ECHO_C" >&6
  2368. else
  2369. cat >conftest.$ac_ext <<_ACEOF
  2370. /* confdefs.h. */
  2371. _ACEOF
  2372. cat confdefs.h >>conftest.$ac_ext
  2373. cat >>conftest.$ac_ext <<_ACEOF
  2374. /* end confdefs.h. */
  2375. #include <stdlib.h>
  2376. #include <stdarg.h>
  2377. #include <string.h>
  2378. #include <float.h>
  2379. int
  2380. main ()
  2381. {
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. rm -f conftest.$ac_objext
  2387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2388. (eval $ac_compile) 2>conftest.er1
  2389. ac_status=$?
  2390. grep -v '^ *+' conftest.er1 >conftest.err
  2391. rm -f conftest.er1
  2392. cat conftest.err >&5
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); } &&
  2395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2397. (eval $ac_try) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }; } &&
  2401. { ac_try='test -s conftest.$ac_objext'
  2402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2403. (eval $ac_try) 2>&5
  2404. ac_status=$?
  2405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406. (exit $ac_status); }; }; then
  2407. ac_cv_header_stdc=yes
  2408. else
  2409. echo "$as_me: failed program was:" >&5
  2410. sed 's/^/| /' conftest.$ac_ext >&5
  2411. ac_cv_header_stdc=no
  2412. fi
  2413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2414. if test $ac_cv_header_stdc = yes; then
  2415. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422. #include <string.h>
  2423. _ACEOF
  2424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2425. $EGREP "memchr" >/dev/null 2>&1; then
  2426. :
  2427. else
  2428. ac_cv_header_stdc=no
  2429. fi
  2430. rm -f conftest*
  2431. fi
  2432. if test $ac_cv_header_stdc = yes; then
  2433. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2434. cat >conftest.$ac_ext <<_ACEOF
  2435. /* confdefs.h. */
  2436. _ACEOF
  2437. cat confdefs.h >>conftest.$ac_ext
  2438. cat >>conftest.$ac_ext <<_ACEOF
  2439. /* end confdefs.h. */
  2440. #include <stdlib.h>
  2441. _ACEOF
  2442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2443. $EGREP "free" >/dev/null 2>&1; then
  2444. :
  2445. else
  2446. ac_cv_header_stdc=no
  2447. fi
  2448. rm -f conftest*
  2449. fi
  2450. if test $ac_cv_header_stdc = yes; then
  2451. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2452. if test "$cross_compiling" = yes; then
  2453. :
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. #include <ctype.h>
  2462. #if ((' ' & 0x0FF) == 0x020)
  2463. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2464. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2465. #else
  2466. # define ISLOWER(c) \
  2467. (('a' <= (c) && (c) <= 'i') \
  2468. || ('j' <= (c) && (c) <= 'r') \
  2469. || ('s' <= (c) && (c) <= 'z'))
  2470. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2471. #endif
  2472. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2473. int
  2474. main ()
  2475. {
  2476. int i;
  2477. for (i = 0; i < 256; i++)
  2478. if (XOR (islower (i), ISLOWER (i))
  2479. || toupper (i) != TOUPPER (i))
  2480. exit(2);
  2481. exit (0);
  2482. }
  2483. _ACEOF
  2484. rm -f conftest$ac_exeext
  2485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2486. (eval $ac_link) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2491. (eval $ac_try) 2>&5
  2492. ac_status=$?
  2493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. (exit $ac_status); }; }; then
  2495. :
  2496. else
  2497. echo "$as_me: program exited with status $ac_status" >&5
  2498. echo "$as_me: failed program was:" >&5
  2499. sed 's/^/| /' conftest.$ac_ext >&5
  2500. ( exit $ac_status )
  2501. ac_cv_header_stdc=no
  2502. fi
  2503. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2504. fi
  2505. fi
  2506. fi
  2507. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2508. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2509. if test $ac_cv_header_stdc = yes; then
  2510. cat >>confdefs.h <<\_ACEOF
  2511. #define STDC_HEADERS 1
  2512. _ACEOF
  2513. fi
  2514. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2515. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2516. inttypes.h stdint.h unistd.h
  2517. do
  2518. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2522. echo $ECHO_N "(cached) $ECHO_C" >&6
  2523. else
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. $ac_includes_default
  2531. #include <$ac_header>
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. eval "$as_ac_Header=yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. eval "$as_ac_Header=no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. fi
  2562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2563. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2564. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2567. _ACEOF
  2568. fi
  2569. done
  2570. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2571. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2572. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2573. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. fi
  2576. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2577. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2578. else
  2579. # Is the header compilable?
  2580. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2581. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2582. cat >conftest.$ac_ext <<_ACEOF
  2583. /* confdefs.h. */
  2584. _ACEOF
  2585. cat confdefs.h >>conftest.$ac_ext
  2586. cat >>conftest.$ac_ext <<_ACEOF
  2587. /* end confdefs.h. */
  2588. $ac_includes_default
  2589. #include <minix/config.h>
  2590. _ACEOF
  2591. rm -f conftest.$ac_objext
  2592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2593. (eval $ac_compile) 2>conftest.er1
  2594. ac_status=$?
  2595. grep -v '^ *+' conftest.er1 >conftest.err
  2596. rm -f conftest.er1
  2597. cat conftest.err >&5
  2598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); } &&
  2600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2602. (eval $ac_try) 2>&5
  2603. ac_status=$?
  2604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605. (exit $ac_status); }; } &&
  2606. { ac_try='test -s conftest.$ac_objext'
  2607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608. (eval $ac_try) 2>&5
  2609. ac_status=$?
  2610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611. (exit $ac_status); }; }; then
  2612. ac_header_compiler=yes
  2613. else
  2614. echo "$as_me: failed program was:" >&5
  2615. sed 's/^/| /' conftest.$ac_ext >&5
  2616. ac_header_compiler=no
  2617. fi
  2618. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2619. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2620. echo "${ECHO_T}$ac_header_compiler" >&6
  2621. # Is the header present?
  2622. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2623. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2624. cat >conftest.$ac_ext <<_ACEOF
  2625. /* confdefs.h. */
  2626. _ACEOF
  2627. cat confdefs.h >>conftest.$ac_ext
  2628. cat >>conftest.$ac_ext <<_ACEOF
  2629. /* end confdefs.h. */
  2630. #include <minix/config.h>
  2631. _ACEOF
  2632. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2633. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2634. ac_status=$?
  2635. grep -v '^ *+' conftest.er1 >conftest.err
  2636. rm -f conftest.er1
  2637. cat conftest.err >&5
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); } >/dev/null; then
  2640. if test -s conftest.err; then
  2641. ac_cpp_err=$ac_c_preproc_warn_flag
  2642. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2643. else
  2644. ac_cpp_err=
  2645. fi
  2646. else
  2647. ac_cpp_err=yes
  2648. fi
  2649. if test -z "$ac_cpp_err"; then
  2650. ac_header_preproc=yes
  2651. else
  2652. echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654. ac_header_preproc=no
  2655. fi
  2656. rm -f conftest.err conftest.$ac_ext
  2657. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2658. echo "${ECHO_T}$ac_header_preproc" >&6
  2659. # So? What about this header?
  2660. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2661. yes:no: )
  2662. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2663. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2665. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2666. ac_header_preproc=yes
  2667. ;;
  2668. no:yes:* )
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2670. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2671. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2672. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2673. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2674. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2675. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2676. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2677. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2678. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2680. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2681. (
  2682. cat <<\_ASBOX
  2683. ## ------------------------------------------ ##
  2684. ## Report this to the AC_PACKAGE_NAME lists. ##
  2685. ## ------------------------------------------ ##
  2686. _ASBOX
  2687. ) |
  2688. sed "s/^/$as_me: WARNING: /" >&2
  2689. ;;
  2690. esac
  2691. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2692. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2693. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2694. echo $ECHO_N "(cached) $ECHO_C" >&6
  2695. else
  2696. ac_cv_header_minix_config_h=$ac_header_preproc
  2697. fi
  2698. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2699. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2700. fi
  2701. if test $ac_cv_header_minix_config_h = yes; then
  2702. MINIX=yes
  2703. else
  2704. MINIX=
  2705. fi
  2706. if test "$MINIX" = yes; then
  2707. cat >>confdefs.h <<\_ACEOF
  2708. #define _POSIX_SOURCE 1
  2709. _ACEOF
  2710. cat >>confdefs.h <<\_ACEOF
  2711. #define _POSIX_1_SOURCE 2
  2712. _ACEOF
  2713. cat >>confdefs.h <<\_ACEOF
  2714. #define _MINIX 1
  2715. _ACEOF
  2716. fi
  2717. #checkpoint
  2718. cat >confcache <<\_ACEOF
  2719. # This file is a shell script that caches the results of configure
  2720. # tests run on this system so they can be shared between configure
  2721. # scripts and configure runs, see configure's option --config-cache.
  2722. # It is not useful on other systems. If it contains results you don't
  2723. # want to keep, you may remove or edit it.
  2724. #
  2725. # config.status only pays attention to the cache file if you give it
  2726. # the --recheck option to rerun configure.
  2727. #
  2728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2730. # following values.
  2731. _ACEOF
  2732. # The following way of writing the cache mishandles newlines in values,
  2733. # but we know of no workaround that is simple, portable, and efficient.
  2734. # So, don't put newlines in cache variables' values.
  2735. # Ultrix sh set writes to stderr and can't be redirected directly,
  2736. # and sets the high bit in the cache file unless we assign to the vars.
  2737. {
  2738. (set) 2>&1 |
  2739. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2740. *ac_space=\ *)
  2741. # `set' does not quote correctly, so add quotes (double-quote
  2742. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2743. sed -n \
  2744. "s/'/'\\\\''/g;
  2745. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2746. ;;
  2747. *)
  2748. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2749. sed -n \
  2750. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2751. ;;
  2752. esac;
  2753. } |
  2754. sed '
  2755. t clear
  2756. : clear
  2757. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2758. t end
  2759. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2760. : end' >>confcache
  2761. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2762. if test -w $cache_file; then
  2763. test "x$cache_file" != "x/dev/null"
  2764. cat confcache >$cache_file
  2765. else
  2766. echo "not updating unwritable cache $cache_file"
  2767. fi
  2768. fi
  2769. rm -f confcache
  2770. # Speedup compile
  2771. if test -z "$no_pipe"
  2772. then
  2773. if test -n "$GCC"
  2774. then
  2775. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2776. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2777. if test "${egg_cv_var_ccpipe+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. ac_old_CC="$CC"
  2781. CC="$CC -pipe"
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. ;
  2792. return 0;
  2793. }
  2794. _ACEOF
  2795. rm -f conftest.$ac_objext
  2796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2797. (eval $ac_compile) 2>conftest.er1
  2798. ac_status=$?
  2799. grep -v '^ *+' conftest.er1 >conftest.err
  2800. rm -f conftest.er1
  2801. cat conftest.err >&5
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); } &&
  2804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. (eval $ac_try) 2>&5
  2807. ac_status=$?
  2808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }; } &&
  2810. { ac_try='test -s conftest.$ac_objext'
  2811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2812. (eval $ac_try) 2>&5
  2813. ac_status=$?
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; }; then
  2816. egg_cv_var_ccpipe="yes"
  2817. else
  2818. echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. egg_cv_var_ccpipe="no"
  2821. fi
  2822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. CC="$ac_old_CC"
  2824. fi
  2825. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2826. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2827. if test "$egg_cv_var_ccpipe" = "yes"
  2828. then
  2829. CC="$CC -pipe"
  2830. fi
  2831. fi
  2832. fi
  2833. CCDEPMODE=gcc
  2834. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2835. if test $num = "3"; then
  2836. CCDEPMODE=gcc3
  2837. fi
  2838. # Create static binaries
  2839. if test -z "$no_static"
  2840. then
  2841. if test -n "$GCC"
  2842. then
  2843. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2844. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2845. if test "${egg_cv_var_ccstatic+set}" = set; then
  2846. echo $ECHO_N "(cached) $ECHO_C" >&6
  2847. else
  2848. ac_old_CC="$CC"
  2849. CC="$CC -static"
  2850. cat >conftest.$ac_ext <<_ACEOF
  2851. /* confdefs.h. */
  2852. _ACEOF
  2853. cat confdefs.h >>conftest.$ac_ext
  2854. cat >>conftest.$ac_ext <<_ACEOF
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.$ac_objext
  2864. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2865. (eval $ac_compile) 2>conftest.er1
  2866. ac_status=$?
  2867. grep -v '^ *+' conftest.er1 >conftest.err
  2868. rm -f conftest.er1
  2869. cat conftest.err >&5
  2870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2871. (exit $ac_status); } &&
  2872. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2874. (eval $ac_try) 2>&5
  2875. ac_status=$?
  2876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2877. (exit $ac_status); }; } &&
  2878. { ac_try='test -s conftest.$ac_objext'
  2879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2880. (eval $ac_try) 2>&5
  2881. ac_status=$?
  2882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2883. (exit $ac_status); }; }; then
  2884. egg_cv_var_ccstatic="yes"
  2885. else
  2886. echo "$as_me: failed program was:" >&5
  2887. sed 's/^/| /' conftest.$ac_ext >&5
  2888. egg_cv_var_ccstatic="no"
  2889. fi
  2890. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2891. CC="$ac_old_CC"
  2892. fi
  2893. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2894. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2895. if test "$egg_cv_var_ccstatic" = "yes"
  2896. then
  2897. CCDEBUG="$CC"
  2898. CC="$CC -static"
  2899. else
  2900. cat << 'EOF' >&2
  2901. configure: error:
  2902. Your C compiler does not support -static.
  2903. This compile flag is required for the botpack.
  2904. EOF
  2905. exit 1
  2906. fi
  2907. fi
  2908. fi
  2909. # Checks for programs
  2910. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2911. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2912. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2913. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2914. echo $ECHO_N "(cached) $ECHO_C" >&6
  2915. else
  2916. cat >conftest.make <<\_ACEOF
  2917. all:
  2918. @echo 'ac_maketemp="$(MAKE)"'
  2919. _ACEOF
  2920. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2921. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2922. if test -n "$ac_maketemp"; then
  2923. eval ac_cv_prog_make_${ac_make}_set=yes
  2924. else
  2925. eval ac_cv_prog_make_${ac_make}_set=no
  2926. fi
  2927. rm -f conftest.make
  2928. fi
  2929. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2930. echo "$as_me:$LINENO: result: yes" >&5
  2931. echo "${ECHO_T}yes" >&6
  2932. SET_MAKE=
  2933. else
  2934. echo "$as_me:$LINENO: result: no" >&5
  2935. echo "${ECHO_T}no" >&6
  2936. SET_MAKE="MAKE=${MAKE-make}"
  2937. fi
  2938. cat << 'EOF' > conftest.head
  2939. a
  2940. b
  2941. c
  2942. EOF
  2943. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2944. do
  2945. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2946. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2947. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2948. echo $ECHO_N "(cached) $ECHO_C" >&6
  2949. else
  2950. if test -n "$HEAD_1"
  2951. then
  2952. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2953. else
  2954. if test "`cat conftest.head | $ac_prog`" = "a";
  2955. then
  2956. echo "$as_me:$LINENO: result: yes" >&5
  2957. echo "${ECHO_T}yes" >&6
  2958. ac_cv_prog_HEAD_1=$ac_prog
  2959. else
  2960. echo "$as_me:$LINENO: result: no" >&5
  2961. echo "${ECHO_T}no" >&6
  2962. fi
  2963. fi
  2964. fi
  2965. test -n "$ac_cv_prog_HEAD_1" && break
  2966. done
  2967. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2968. then
  2969. cat << 'EOF' >&2
  2970. configure: error:
  2971. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2972. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2973. EOF
  2974. exit 1
  2975. fi
  2976. rm -f conftest.head
  2977. HEAD_1=$ac_cv_prog_HEAD_1
  2978. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2979. for ac_prog in gawk mawk nawk awk
  2980. do
  2981. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2982. set dummy $ac_prog; ac_word=$2
  2983. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2984. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2985. if test "${ac_cv_prog_AWK+set}" = set; then
  2986. echo $ECHO_N "(cached) $ECHO_C" >&6
  2987. else
  2988. if test -n "$AWK"; then
  2989. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2990. else
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_exec_ext in '' $ac_executable_extensions; do
  2997. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2998. ac_cv_prog_AWK="$ac_prog"
  2999. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3000. break 2
  3001. fi
  3002. done
  3003. done
  3004. fi
  3005. fi
  3006. AWK=$ac_cv_prog_AWK
  3007. if test -n "$AWK"; then
  3008. echo "$as_me:$LINENO: result: $AWK" >&5
  3009. echo "${ECHO_T}$AWK" >&6
  3010. else
  3011. echo "$as_me:$LINENO: result: no" >&5
  3012. echo "${ECHO_T}no" >&6
  3013. fi
  3014. test -n "$AWK" && break
  3015. done
  3016. if test "${AWK-x}" = "x"
  3017. then
  3018. cat << 'EOF' >&2
  3019. configure: error:
  3020. This system seems to lack a working 'awk' command.
  3021. A working 'awk' command is required to compile Eggdrop.
  3022. EOF
  3023. exit 1
  3024. fi
  3025. # basename is needed for Tcl library and header checks
  3026. # Extract the first word of "basename", so it can be a program name with args.
  3027. set dummy basename; ac_word=$2
  3028. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3029. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3030. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3031. echo $ECHO_N "(cached) $ECHO_C" >&6
  3032. else
  3033. if test -n "$BASENAME"; then
  3034. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3035. else
  3036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3037. for as_dir in $PATH
  3038. do
  3039. IFS=$as_save_IFS
  3040. test -z "$as_dir" && as_dir=.
  3041. for ac_exec_ext in '' $ac_executable_extensions; do
  3042. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3043. ac_cv_prog_BASENAME="basename"
  3044. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3045. break 2
  3046. fi
  3047. done
  3048. done
  3049. fi
  3050. fi
  3051. BASENAME=$ac_cv_prog_BASENAME
  3052. if test -n "$BASENAME"; then
  3053. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3054. echo "${ECHO_T}$BASENAME" >&6
  3055. else
  3056. echo "$as_me:$LINENO: result: no" >&5
  3057. echo "${ECHO_T}no" >&6
  3058. fi
  3059. if test "${BASENAME-x}" = "x"
  3060. then
  3061. cat << 'EOF' >&2
  3062. configure: error:
  3063. This system seems to lack a working 'basename' command.
  3064. A working 'basename' command is required to compile Eggdrop.
  3065. EOF
  3066. exit 1
  3067. fi
  3068. # Extract the first word of "objcopy", so it can be a program name with args.
  3069. set dummy objcopy; ac_word=$2
  3070. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3072. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3073. echo $ECHO_N "(cached) $ECHO_C" >&6
  3074. else
  3075. if test -n "$OBJCOPY"; then
  3076. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3077. else
  3078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3079. for as_dir in $PATH
  3080. do
  3081. IFS=$as_save_IFS
  3082. test -z "$as_dir" && as_dir=.
  3083. for ac_exec_ext in '' $ac_executable_extensions; do
  3084. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3085. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3086. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3087. break 2
  3088. fi
  3089. done
  3090. done
  3091. fi
  3092. fi
  3093. OBJCOPY=$ac_cv_prog_OBJCOPY
  3094. if test -n "$OBJCOPY"; then
  3095. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3096. echo "${ECHO_T}$OBJCOPY" >&6
  3097. else
  3098. echo "$as_me:$LINENO: result: no" >&5
  3099. echo "${ECHO_T}no" >&6
  3100. fi
  3101. # Extract the first word of "strip", so it can be a program name with args.
  3102. set dummy strip; ac_word=$2
  3103. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3104. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3105. if test "${ac_cv_prog_STRIP+set}" = set; then
  3106. echo $ECHO_N "(cached) $ECHO_C" >&6
  3107. else
  3108. if test -n "$STRIP"; then
  3109. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3110. else
  3111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3112. for as_dir in $PATH
  3113. do
  3114. IFS=$as_save_IFS
  3115. test -z "$as_dir" && as_dir=.
  3116. for ac_exec_ext in '' $ac_executable_extensions; do
  3117. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3118. ac_cv_prog_STRIP="strip"
  3119. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3120. break 2
  3121. fi
  3122. done
  3123. done
  3124. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3125. fi
  3126. fi
  3127. STRIP=$ac_cv_prog_STRIP
  3128. if test -n "$STRIP"; then
  3129. echo "$as_me:$LINENO: result: $STRIP" >&5
  3130. echo "${ECHO_T}$STRIP" >&6
  3131. else
  3132. echo "$as_me:$LINENO: result: no" >&5
  3133. echo "${ECHO_T}no" >&6
  3134. fi
  3135. # Extract the first word of "uname", so it can be a program name with args.
  3136. set dummy uname; ac_word=$2
  3137. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3139. if test "${ac_cv_prog_UNAME+set}" = set; then
  3140. echo $ECHO_N "(cached) $ECHO_C" >&6
  3141. else
  3142. if test -n "$UNAME"; then
  3143. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3144. else
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3152. ac_cv_prog_UNAME="uname"
  3153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. fi
  3159. fi
  3160. UNAME=$ac_cv_prog_UNAME
  3161. if test -n "$UNAME"; then
  3162. echo "$as_me:$LINENO: result: $UNAME" >&5
  3163. echo "${ECHO_T}$UNAME" >&6
  3164. else
  3165. echo "$as_me:$LINENO: result: no" >&5
  3166. echo "${ECHO_T}no" >&6
  3167. fi
  3168. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3169. # Extract the first word of "distcc", so it can be a program name with args.
  3170. set dummy distcc; ac_word=$2
  3171. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3173. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. if test -n "$DISTCC"; then
  3177. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3178. else
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_exec_ext in '' $ac_executable_extensions; do
  3185. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3186. ac_cv_prog_DISTCC="distcc"
  3187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3188. break 2
  3189. fi
  3190. done
  3191. done
  3192. fi
  3193. fi
  3194. DISTCC=$ac_cv_prog_DISTCC
  3195. if test -n "$DISTCC"; then
  3196. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3197. echo "${ECHO_T}$DISTCC" >&6
  3198. else
  3199. echo "$as_me:$LINENO: result: no" >&5
  3200. echo "${ECHO_T}no" >&6
  3201. fi
  3202. # Test the os and set the module linking settings
  3203. LINUX=no
  3204. IRIX=no
  3205. SUNOS=no
  3206. EGG_CYGWIN=no
  3207. echo "$as_me:$LINENO: checking system type" >&5
  3208. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3209. if test "${egg_cv_var_system_type+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. egg_cv_var_system_type=`$UNAME -s`
  3213. fi
  3214. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3215. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3216. echo "$as_me:$LINENO: checking system release" >&5
  3217. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3218. if test "${egg_cv_var_system_release+set}" = set; then
  3219. echo $ECHO_N "(cached) $ECHO_C" >&6
  3220. else
  3221. egg_cv_var_system_release=`$UNAME -r`
  3222. fi
  3223. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3224. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3225. case "$egg_cv_var_system_type" in
  3226. BSD/OS)
  3227. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3228. 2)
  3229. ;;
  3230. *)
  3231. CFLAGS="$CFLAGS -Wall"
  3232. ;;
  3233. esac
  3234. ;;
  3235. CYGWI*)
  3236. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3237. 1.*)
  3238. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3239. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3240. WIN32FLAGS=
  3241. cat >conftest.$ac_ext <<_ACEOF
  3242. /* confdefs.h. */
  3243. _ACEOF
  3244. cat confdefs.h >>conftest.$ac_ext
  3245. cat >>conftest.$ac_ext <<_ACEOF
  3246. /* end confdefs.h. */
  3247. int
  3248. main ()
  3249. {
  3250. #ifndef WIN32
  3251. # ifndef _WIN32
  3252. # error WIN32 or _WIN32 not defined
  3253. # endif
  3254. #endif
  3255. ;
  3256. return 0;
  3257. }
  3258. _ACEOF
  3259. rm -f conftest.$ac_objext
  3260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3261. (eval $ac_compile) 2>conftest.er1
  3262. ac_status=$?
  3263. grep -v '^ *+' conftest.er1 >conftest.err
  3264. rm -f conftest.er1
  3265. cat conftest.err >&5
  3266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3267. (exit $ac_status); } &&
  3268. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3270. (eval $ac_try) 2>&5
  3271. ac_status=$?
  3272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3273. (exit $ac_status); }; } &&
  3274. { ac_try='test -s conftest.$ac_objext'
  3275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3276. (eval $ac_try) 2>&5
  3277. ac_status=$?
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); }; }; then
  3280. echo "$as_me:$LINENO: result: present by default" >&5
  3281. echo "${ECHO_T}present by default" >&6
  3282. else
  3283. echo "$as_me: failed program was:" >&5
  3284. sed 's/^/| /' conftest.$ac_ext >&5
  3285. ac_compile_save="$ac_compile"
  3286. save_CC="$CC"
  3287. ac_compile="$ac_compile -mwin32"
  3288. CC="$CC -mwin32"
  3289. cat >conftest.$ac_ext <<_ACEOF
  3290. /* confdefs.h. */
  3291. _ACEOF
  3292. cat confdefs.h >>conftest.$ac_ext
  3293. cat >>conftest.$ac_ext <<_ACEOF
  3294. /* end confdefs.h. */
  3295. int
  3296. main ()
  3297. {
  3298. #ifndef WIN32
  3299. # ifndef _WIN32
  3300. # error WIN32 or _WIN32 not defined
  3301. # endif
  3302. #endif
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. rm -f conftest.$ac_objext
  3308. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3309. (eval $ac_compile) 2>conftest.er1
  3310. ac_status=$?
  3311. grep -v '^ *+' conftest.er1 >conftest.err
  3312. rm -f conftest.er1
  3313. cat conftest.err >&5
  3314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3315. (exit $ac_status); } &&
  3316. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3318. (eval $ac_try) 2>&5
  3319. ac_status=$?
  3320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321. (exit $ac_status); }; } &&
  3322. { ac_try='test -s conftest.$ac_objext'
  3323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3324. (eval $ac_try) 2>&5
  3325. ac_status=$?
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); }; }; then
  3328. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3329. echo "${ECHO_T}found via -mwin32" >&6
  3330. ac_compile="$ac_compile_save"
  3331. CC="$save_CC"
  3332. WIN32FLAGS="-mwin32"
  3333. else
  3334. echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. ac_compile="$ac_compile_save"
  3337. CC="$save_CC"
  3338. echo "$as_me:$LINENO: result: not found" >&5
  3339. echo "${ECHO_T}not found" >&6
  3340. fi
  3341. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. fi
  3343. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3344. CC="$CC $WIN32FLAGS"
  3345. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3346. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3347. if test -r /usr/lib/binmode.o
  3348. then
  3349. echo "$as_me:$LINENO: result: yes" >&5
  3350. echo "${ECHO_T}yes" >&6
  3351. LIBS="$LIBS /usr/lib/binmode.o"
  3352. else
  3353. echo "$as_me:$LINENO: result: no" >&5
  3354. echo "${ECHO_T}no" >&6
  3355. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3356. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3357. fi
  3358. ;;
  3359. *)
  3360. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3361. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3362. ;;
  3363. esac
  3364. EGG_CYGWIN=yes
  3365. cat >>confdefs.h <<\_ACEOF
  3366. #define CYGWIN_HACKS 1
  3367. _ACEOF
  3368. ;;
  3369. IRIX)
  3370. IRIX=yes
  3371. ;;
  3372. Ultrix)
  3373. SHELL=/bin/sh5
  3374. ;;
  3375. SINIX*)
  3376. ;;
  3377. BeOS)
  3378. ;;
  3379. Linux)
  3380. LINUX=yes
  3381. CFLAGS="$CFLAGS -Wall"
  3382. ;;
  3383. Lynx)
  3384. ;;
  3385. QNX)
  3386. ;;
  3387. OSF1)
  3388. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3389. V*)
  3390. if test "$AWK" = "gawk"
  3391. then
  3392. AWK=awk
  3393. fi
  3394. ;;
  3395. 1.0|1.1|1.2)
  3396. cat >>confdefs.h <<\_ACEOF
  3397. #define OSF1_HACKS 1
  3398. _ACEOF
  3399. ;;
  3400. 1.*)
  3401. cat >>confdefs.h <<\_ACEOF
  3402. #define OSF1_HACKS 1
  3403. _ACEOF
  3404. ;;
  3405. *)
  3406. ;;
  3407. esac
  3408. cat >>confdefs.h <<\_ACEOF
  3409. #define STOP_UAC 1
  3410. _ACEOF
  3411. cat >>confdefs.h <<\_ACEOF
  3412. #define BROKEN_SNPRINTF 1
  3413. _ACEOF
  3414. ;;
  3415. SunOS)
  3416. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3417. then
  3418. # SunOS 4
  3419. SUNOS=yes
  3420. fi
  3421. ;;
  3422. *BSD)
  3423. # FreeBSD/OpenBSD/NetBSD
  3424. ;;
  3425. *)
  3426. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3427. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3428. if test -r /mach
  3429. then
  3430. echo "$as_me:$LINENO: result: yes" >&5
  3431. echo "${ECHO_T}yes" >&6
  3432. cat >>confdefs.h <<\_ACEOF
  3433. #define BORGCUBES 1
  3434. _ACEOF
  3435. else
  3436. echo "$as_me:$LINENO: result: no" >&5
  3437. echo "${ECHO_T}no" >&6
  3438. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3439. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3440. if test -r /cmds
  3441. then
  3442. echo "$as_me:$LINENO: result: yes" >&5
  3443. echo "${ECHO_T}yes" >&6
  3444. else
  3445. echo "$as_me:$LINENO: result: no" >&5
  3446. echo "${ECHO_T}no" >&6
  3447. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3448. echo "${ECHO_T}Something unknown!" >&6
  3449. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3450. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3451. fi
  3452. fi
  3453. ;;
  3454. esac
  3455. dns_reslib_avail="true"
  3456. echo "$as_me:$LINENO: checking for res_init" >&5
  3457. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3458. if test "${ac_cv_func_res_init+set}" = set; then
  3459. echo $ECHO_N "(cached) $ECHO_C" >&6
  3460. else
  3461. cat >conftest.$ac_ext <<_ACEOF
  3462. /* confdefs.h. */
  3463. _ACEOF
  3464. cat confdefs.h >>conftest.$ac_ext
  3465. cat >>conftest.$ac_ext <<_ACEOF
  3466. /* end confdefs.h. */
  3467. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3468. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3469. #define res_init innocuous_res_init
  3470. /* System header to define __stub macros and hopefully few prototypes,
  3471. which can conflict with char res_init (); below.
  3472. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3473. <limits.h> exists even on freestanding compilers. */
  3474. #ifdef __STDC__
  3475. # include <limits.h>
  3476. #else
  3477. # include <assert.h>
  3478. #endif
  3479. #undef res_init
  3480. /* Override any gcc2 internal prototype to avoid an error. */
  3481. #ifdef __cplusplus
  3482. extern "C"
  3483. {
  3484. #endif
  3485. /* We use char because int might match the return type of a gcc2
  3486. builtin and then its argument prototype would still apply. */
  3487. char res_init ();
  3488. /* The GNU C library defines this for functions which it implements
  3489. to always fail with ENOSYS. Some functions are actually named
  3490. something starting with __ and the normal name is an alias. */
  3491. #if defined (__stub_res_init) || defined (__stub___res_init)
  3492. choke me
  3493. #else
  3494. char (*f) () = res_init;
  3495. #endif
  3496. #ifdef __cplusplus
  3497. }
  3498. #endif
  3499. int
  3500. main ()
  3501. {
  3502. return f != res_init;
  3503. ;
  3504. return 0;
  3505. }
  3506. _ACEOF
  3507. rm -f conftest.$ac_objext conftest$ac_exeext
  3508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3509. (eval $ac_link) 2>conftest.er1
  3510. ac_status=$?
  3511. grep -v '^ *+' conftest.er1 >conftest.err
  3512. rm -f conftest.er1
  3513. cat conftest.err >&5
  3514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3515. (exit $ac_status); } &&
  3516. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3518. (eval $ac_try) 2>&5
  3519. ac_status=$?
  3520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3521. (exit $ac_status); }; } &&
  3522. { ac_try='test -s conftest$ac_exeext'
  3523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3524. (eval $ac_try) 2>&5
  3525. ac_status=$?
  3526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3527. (exit $ac_status); }; }; then
  3528. ac_cv_func_res_init=yes
  3529. else
  3530. echo "$as_me: failed program was:" >&5
  3531. sed 's/^/| /' conftest.$ac_ext >&5
  3532. ac_cv_func_res_init=no
  3533. fi
  3534. rm -f conftest.err conftest.$ac_objext \
  3535. conftest$ac_exeext conftest.$ac_ext
  3536. fi
  3537. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3538. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3539. if test $ac_cv_func_res_init = yes; then
  3540. :
  3541. else
  3542. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3543. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3544. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3545. echo $ECHO_N "(cached) $ECHO_C" >&6
  3546. else
  3547. ac_check_lib_save_LIBS=$LIBS
  3548. LIBS="-lresolv $LIBS"
  3549. cat >conftest.$ac_ext <<_ACEOF
  3550. /* confdefs.h. */
  3551. _ACEOF
  3552. cat confdefs.h >>conftest.$ac_ext
  3553. cat >>conftest.$ac_ext <<_ACEOF
  3554. /* end confdefs.h. */
  3555. /* Override any gcc2 internal prototype to avoid an error. */
  3556. #ifdef __cplusplus
  3557. extern "C"
  3558. #endif
  3559. /* We use char because int might match the return type of a gcc2
  3560. builtin and then its argument prototype would still apply. */
  3561. char res_init ();
  3562. int
  3563. main ()
  3564. {
  3565. res_init ();
  3566. ;
  3567. return 0;
  3568. }
  3569. _ACEOF
  3570. rm -f conftest.$ac_objext conftest$ac_exeext
  3571. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3572. (eval $ac_link) 2>conftest.er1
  3573. ac_status=$?
  3574. grep -v '^ *+' conftest.er1 >conftest.err
  3575. rm -f conftest.er1
  3576. cat conftest.err >&5
  3577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3578. (exit $ac_status); } &&
  3579. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3580. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3581. (eval $ac_try) 2>&5
  3582. ac_status=$?
  3583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3584. (exit $ac_status); }; } &&
  3585. { ac_try='test -s conftest$ac_exeext'
  3586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3587. (eval $ac_try) 2>&5
  3588. ac_status=$?
  3589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3590. (exit $ac_status); }; }; then
  3591. ac_cv_lib_resolv_res_init=yes
  3592. else
  3593. echo "$as_me: failed program was:" >&5
  3594. sed 's/^/| /' conftest.$ac_ext >&5
  3595. ac_cv_lib_resolv_res_init=no
  3596. fi
  3597. rm -f conftest.err conftest.$ac_objext \
  3598. conftest$ac_exeext conftest.$ac_ext
  3599. LIBS=$ac_check_lib_save_LIBS
  3600. fi
  3601. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3602. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3603. if test $ac_cv_lib_resolv_res_init = yes; then
  3604. RESLIB="-lresolv"
  3605. else
  3606. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3607. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3608. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3609. echo $ECHO_N "(cached) $ECHO_C" >&6
  3610. else
  3611. ac_check_lib_save_LIBS=$LIBS
  3612. LIBS="-lbind $LIBS"
  3613. cat >conftest.$ac_ext <<_ACEOF
  3614. /* confdefs.h. */
  3615. _ACEOF
  3616. cat confdefs.h >>conftest.$ac_ext
  3617. cat >>conftest.$ac_ext <<_ACEOF
  3618. /* end confdefs.h. */
  3619. /* Override any gcc2 internal prototype to avoid an error. */
  3620. #ifdef __cplusplus
  3621. extern "C"
  3622. #endif
  3623. /* We use char because int might match the return type of a gcc2
  3624. builtin and then its argument prototype would still apply. */
  3625. char res_init ();
  3626. int
  3627. main ()
  3628. {
  3629. res_init ();
  3630. ;
  3631. return 0;
  3632. }
  3633. _ACEOF
  3634. rm -f conftest.$ac_objext conftest$ac_exeext
  3635. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3636. (eval $ac_link) 2>conftest.er1
  3637. ac_status=$?
  3638. grep -v '^ *+' conftest.er1 >conftest.err
  3639. rm -f conftest.er1
  3640. cat conftest.err >&5
  3641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); } &&
  3643. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3644. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3645. (eval $ac_try) 2>&5
  3646. ac_status=$?
  3647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3648. (exit $ac_status); }; } &&
  3649. { ac_try='test -s conftest$ac_exeext'
  3650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3651. (eval $ac_try) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); }; }; then
  3655. ac_cv_lib_bind_res_init=yes
  3656. else
  3657. echo "$as_me: failed program was:" >&5
  3658. sed 's/^/| /' conftest.$ac_ext >&5
  3659. ac_cv_lib_bind_res_init=no
  3660. fi
  3661. rm -f conftest.err conftest.$ac_objext \
  3662. conftest$ac_exeext conftest.$ac_ext
  3663. LIBS=$ac_check_lib_save_LIBS
  3664. fi
  3665. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3666. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3667. if test $ac_cv_lib_bind_res_init = yes; then
  3668. RESLIB="-lbind"
  3669. else
  3670. dns_reslib_avail="false";
  3671. fi
  3672. fi
  3673. fi
  3674. if test "${dns_reslib_avail}" = false; then
  3675. dns_reslib_avail="true"
  3676. echo "$as_me:$LINENO: checking for __res_init" >&5
  3677. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3678. if test "${ac_cv_func___res_init+set}" = set; then
  3679. echo $ECHO_N "(cached) $ECHO_C" >&6
  3680. else
  3681. cat >conftest.$ac_ext <<_ACEOF
  3682. /* confdefs.h. */
  3683. _ACEOF
  3684. cat confdefs.h >>conftest.$ac_ext
  3685. cat >>conftest.$ac_ext <<_ACEOF
  3686. /* end confdefs.h. */
  3687. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3688. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3689. #define __res_init innocuous___res_init
  3690. /* System header to define __stub macros and hopefully few prototypes,
  3691. which can conflict with char __res_init (); below.
  3692. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3693. <limits.h> exists even on freestanding compilers. */
  3694. #ifdef __STDC__
  3695. # include <limits.h>
  3696. #else
  3697. # include <assert.h>
  3698. #endif
  3699. #undef __res_init
  3700. /* Override any gcc2 internal prototype to avoid an error. */
  3701. #ifdef __cplusplus
  3702. extern "C"
  3703. {
  3704. #endif
  3705. /* We use char because int might match the return type of a gcc2
  3706. builtin and then its argument prototype would still apply. */
  3707. char __res_init ();
  3708. /* The GNU C library defines this for functions which it implements
  3709. to always fail with ENOSYS. Some functions are actually named
  3710. something starting with __ and the normal name is an alias. */
  3711. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3712. choke me
  3713. #else
  3714. char (*f) () = __res_init;
  3715. #endif
  3716. #ifdef __cplusplus
  3717. }
  3718. #endif
  3719. int
  3720. main ()
  3721. {
  3722. return f != __res_init;
  3723. ;
  3724. return 0;
  3725. }
  3726. _ACEOF
  3727. rm -f conftest.$ac_objext conftest$ac_exeext
  3728. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3729. (eval $ac_link) 2>conftest.er1
  3730. ac_status=$?
  3731. grep -v '^ *+' conftest.er1 >conftest.err
  3732. rm -f conftest.er1
  3733. cat conftest.err >&5
  3734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3735. (exit $ac_status); } &&
  3736. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3738. (eval $ac_try) 2>&5
  3739. ac_status=$?
  3740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3741. (exit $ac_status); }; } &&
  3742. { ac_try='test -s conftest$ac_exeext'
  3743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3744. (eval $ac_try) 2>&5
  3745. ac_status=$?
  3746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3747. (exit $ac_status); }; }; then
  3748. ac_cv_func___res_init=yes
  3749. else
  3750. echo "$as_me: failed program was:" >&5
  3751. sed 's/^/| /' conftest.$ac_ext >&5
  3752. ac_cv_func___res_init=no
  3753. fi
  3754. rm -f conftest.err conftest.$ac_objext \
  3755. conftest$ac_exeext conftest.$ac_ext
  3756. fi
  3757. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3758. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3759. if test $ac_cv_func___res_init = yes; then
  3760. :
  3761. else
  3762. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3763. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3764. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3765. echo $ECHO_N "(cached) $ECHO_C" >&6
  3766. else
  3767. ac_check_lib_save_LIBS=$LIBS
  3768. LIBS="-lresolv $LIBS"
  3769. cat >conftest.$ac_ext <<_ACEOF
  3770. /* confdefs.h. */
  3771. _ACEOF
  3772. cat confdefs.h >>conftest.$ac_ext
  3773. cat >>conftest.$ac_ext <<_ACEOF
  3774. /* end confdefs.h. */
  3775. /* Override any gcc2 internal prototype to avoid an error. */
  3776. #ifdef __cplusplus
  3777. extern "C"
  3778. #endif
  3779. /* We use char because int might match the return type of a gcc2
  3780. builtin and then its argument prototype would still apply. */
  3781. char __res_init ();
  3782. int
  3783. main ()
  3784. {
  3785. __res_init ();
  3786. ;
  3787. return 0;
  3788. }
  3789. _ACEOF
  3790. rm -f conftest.$ac_objext conftest$ac_exeext
  3791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3792. (eval $ac_link) 2>conftest.er1
  3793. ac_status=$?
  3794. grep -v '^ *+' conftest.er1 >conftest.err
  3795. rm -f conftest.er1
  3796. cat conftest.err >&5
  3797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3798. (exit $ac_status); } &&
  3799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3801. (eval $ac_try) 2>&5
  3802. ac_status=$?
  3803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3804. (exit $ac_status); }; } &&
  3805. { ac_try='test -s conftest$ac_exeext'
  3806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3807. (eval $ac_try) 2>&5
  3808. ac_status=$?
  3809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810. (exit $ac_status); }; }; then
  3811. ac_cv_lib_resolv___res_init=yes
  3812. else
  3813. echo "$as_me: failed program was:" >&5
  3814. sed 's/^/| /' conftest.$ac_ext >&5
  3815. ac_cv_lib_resolv___res_init=no
  3816. fi
  3817. rm -f conftest.err conftest.$ac_objext \
  3818. conftest$ac_exeext conftest.$ac_ext
  3819. LIBS=$ac_check_lib_save_LIBS
  3820. fi
  3821. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3822. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3823. if test $ac_cv_lib_resolv___res_init = yes; then
  3824. RESLIB="-lresolv"
  3825. else
  3826. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3827. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3828. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3829. echo $ECHO_N "(cached) $ECHO_C" >&6
  3830. else
  3831. ac_check_lib_save_LIBS=$LIBS
  3832. LIBS="-lbind $LIBS"
  3833. cat >conftest.$ac_ext <<_ACEOF
  3834. /* confdefs.h. */
  3835. _ACEOF
  3836. cat confdefs.h >>conftest.$ac_ext
  3837. cat >>conftest.$ac_ext <<_ACEOF
  3838. /* end confdefs.h. */
  3839. /* Override any gcc2 internal prototype to avoid an error. */
  3840. #ifdef __cplusplus
  3841. extern "C"
  3842. #endif
  3843. /* We use char because int might match the return type of a gcc2
  3844. builtin and then its argument prototype would still apply. */
  3845. char __res_init ();
  3846. int
  3847. main ()
  3848. {
  3849. __res_init ();
  3850. ;
  3851. return 0;
  3852. }
  3853. _ACEOF
  3854. rm -f conftest.$ac_objext conftest$ac_exeext
  3855. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3856. (eval $ac_link) 2>conftest.er1
  3857. ac_status=$?
  3858. grep -v '^ *+' conftest.er1 >conftest.err
  3859. rm -f conftest.er1
  3860. cat conftest.err >&5
  3861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3862. (exit $ac_status); } &&
  3863. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3865. (eval $ac_try) 2>&5
  3866. ac_status=$?
  3867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3868. (exit $ac_status); }; } &&
  3869. { ac_try='test -s conftest$ac_exeext'
  3870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3871. (eval $ac_try) 2>&5
  3872. ac_status=$?
  3873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3874. (exit $ac_status); }; }; then
  3875. ac_cv_lib_bind___res_init=yes
  3876. else
  3877. echo "$as_me: failed program was:" >&5
  3878. sed 's/^/| /' conftest.$ac_ext >&5
  3879. ac_cv_lib_bind___res_init=no
  3880. fi
  3881. rm -f conftest.err conftest.$ac_objext \
  3882. conftest$ac_exeext conftest.$ac_ext
  3883. LIBS=$ac_check_lib_save_LIBS
  3884. fi
  3885. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3886. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3887. if test $ac_cv_lib_bind___res_init = yes; then
  3888. RESLIB="-lbind"
  3889. else
  3890. dns_reslib_avail="false";
  3891. fi
  3892. fi
  3893. fi
  3894. fi
  3895. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3896. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3897. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3898. echo $ECHO_N "(cached) $ECHO_C" >&6
  3899. else
  3900. cat >conftest.$ac_ext <<_ACEOF
  3901. /* confdefs.h. */
  3902. _ACEOF
  3903. cat confdefs.h >>conftest.$ac_ext
  3904. cat >>conftest.$ac_ext <<_ACEOF
  3905. /* end confdefs.h. */
  3906. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3907. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3908. #define res_mkquery innocuous_res_mkquery
  3909. /* System header to define __stub macros and hopefully few prototypes,
  3910. which can conflict with char res_mkquery (); below.
  3911. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3912. <limits.h> exists even on freestanding compilers. */
  3913. #ifdef __STDC__
  3914. # include <limits.h>
  3915. #else
  3916. # include <assert.h>
  3917. #endif
  3918. #undef res_mkquery
  3919. /* Override any gcc2 internal prototype to avoid an error. */
  3920. #ifdef __cplusplus
  3921. extern "C"
  3922. {
  3923. #endif
  3924. /* We use char because int might match the return type of a gcc2
  3925. builtin and then its argument prototype would still apply. */
  3926. char res_mkquery ();
  3927. /* The GNU C library defines this for functions which it implements
  3928. to always fail with ENOSYS. Some functions are actually named
  3929. something starting with __ and the normal name is an alias. */
  3930. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3931. choke me
  3932. #else
  3933. char (*f) () = res_mkquery;
  3934. #endif
  3935. #ifdef __cplusplus
  3936. }
  3937. #endif
  3938. int
  3939. main ()
  3940. {
  3941. return f != res_mkquery;
  3942. ;
  3943. return 0;
  3944. }
  3945. _ACEOF
  3946. rm -f conftest.$ac_objext conftest$ac_exeext
  3947. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3948. (eval $ac_link) 2>conftest.er1
  3949. ac_status=$?
  3950. grep -v '^ *+' conftest.er1 >conftest.err
  3951. rm -f conftest.er1
  3952. cat conftest.err >&5
  3953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3954. (exit $ac_status); } &&
  3955. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3957. (eval $ac_try) 2>&5
  3958. ac_status=$?
  3959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3960. (exit $ac_status); }; } &&
  3961. { ac_try='test -s conftest$ac_exeext'
  3962. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3963. (eval $ac_try) 2>&5
  3964. ac_status=$?
  3965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3966. (exit $ac_status); }; }; then
  3967. ac_cv_func_res_mkquery=yes
  3968. else
  3969. echo "$as_me: failed program was:" >&5
  3970. sed 's/^/| /' conftest.$ac_ext >&5
  3971. ac_cv_func_res_mkquery=no
  3972. fi
  3973. rm -f conftest.err conftest.$ac_objext \
  3974. conftest$ac_exeext conftest.$ac_ext
  3975. fi
  3976. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3977. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3978. if test $ac_cv_func_res_mkquery = yes; then
  3979. :
  3980. else
  3981. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3982. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3983. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3984. echo $ECHO_N "(cached) $ECHO_C" >&6
  3985. else
  3986. ac_check_lib_save_LIBS=$LIBS
  3987. LIBS="-lresolv $LIBS"
  3988. cat >conftest.$ac_ext <<_ACEOF
  3989. /* confdefs.h. */
  3990. _ACEOF
  3991. cat confdefs.h >>conftest.$ac_ext
  3992. cat >>conftest.$ac_ext <<_ACEOF
  3993. /* end confdefs.h. */
  3994. /* Override any gcc2 internal prototype to avoid an error. */
  3995. #ifdef __cplusplus
  3996. extern "C"
  3997. #endif
  3998. /* We use char because int might match the return type of a gcc2
  3999. builtin and then its argument prototype would still apply. */
  4000. char res_mkquery ();
  4001. int
  4002. main ()
  4003. {
  4004. res_mkquery ();
  4005. ;
  4006. return 0;
  4007. }
  4008. _ACEOF
  4009. rm -f conftest.$ac_objext conftest$ac_exeext
  4010. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4011. (eval $ac_link) 2>conftest.er1
  4012. ac_status=$?
  4013. grep -v '^ *+' conftest.er1 >conftest.err
  4014. rm -f conftest.er1
  4015. cat conftest.err >&5
  4016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4017. (exit $ac_status); } &&
  4018. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4020. (eval $ac_try) 2>&5
  4021. ac_status=$?
  4022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4023. (exit $ac_status); }; } &&
  4024. { ac_try='test -s conftest$ac_exeext'
  4025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4026. (eval $ac_try) 2>&5
  4027. ac_status=$?
  4028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4029. (exit $ac_status); }; }; then
  4030. ac_cv_lib_resolv_res_mkquery=yes
  4031. else
  4032. echo "$as_me: failed program was:" >&5
  4033. sed 's/^/| /' conftest.$ac_ext >&5
  4034. ac_cv_lib_resolv_res_mkquery=no
  4035. fi
  4036. rm -f conftest.err conftest.$ac_objext \
  4037. conftest$ac_exeext conftest.$ac_ext
  4038. LIBS=$ac_check_lib_save_LIBS
  4039. fi
  4040. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4041. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4042. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4043. if test "x${RESLIB}" != "x-lresolv"; then
  4044. RESLIB="${RESLIB} -lresolv"
  4045. fi
  4046. else
  4047. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4048. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4049. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4050. echo $ECHO_N "(cached) $ECHO_C" >&6
  4051. else
  4052. ac_check_lib_save_LIBS=$LIBS
  4053. LIBS="-lbind $LIBS"
  4054. cat >conftest.$ac_ext <<_ACEOF
  4055. /* confdefs.h. */
  4056. _ACEOF
  4057. cat confdefs.h >>conftest.$ac_ext
  4058. cat >>conftest.$ac_ext <<_ACEOF
  4059. /* end confdefs.h. */
  4060. /* Override any gcc2 internal prototype to avoid an error. */
  4061. #ifdef __cplusplus
  4062. extern "C"
  4063. #endif
  4064. /* We use char because int might match the return type of a gcc2
  4065. builtin and then its argument prototype would still apply. */
  4066. char res_mkquery ();
  4067. int
  4068. main ()
  4069. {
  4070. res_mkquery ();
  4071. ;
  4072. return 0;
  4073. }
  4074. _ACEOF
  4075. rm -f conftest.$ac_objext conftest$ac_exeext
  4076. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4077. (eval $ac_link) 2>conftest.er1
  4078. ac_status=$?
  4079. grep -v '^ *+' conftest.er1 >conftest.err
  4080. rm -f conftest.er1
  4081. cat conftest.err >&5
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); } &&
  4084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4086. (eval $ac_try) 2>&5
  4087. ac_status=$?
  4088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4089. (exit $ac_status); }; } &&
  4090. { ac_try='test -s conftest$ac_exeext'
  4091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4092. (eval $ac_try) 2>&5
  4093. ac_status=$?
  4094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4095. (exit $ac_status); }; }; then
  4096. ac_cv_lib_bind_res_mkquery=yes
  4097. else
  4098. echo "$as_me: failed program was:" >&5
  4099. sed 's/^/| /' conftest.$ac_ext >&5
  4100. ac_cv_lib_bind_res_mkquery=no
  4101. fi
  4102. rm -f conftest.err conftest.$ac_objext \
  4103. conftest$ac_exeext conftest.$ac_ext
  4104. LIBS=$ac_check_lib_save_LIBS
  4105. fi
  4106. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4107. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4108. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4109. if test "x${RESLIB}" != "x-lbind"; then
  4110. RESLIB="${RESLIB} -lbind"
  4111. fi
  4112. else
  4113. dns_reslib_avail="false";
  4114. fi
  4115. fi
  4116. fi
  4117. if test "${dns_reslib_avail}" = false; then
  4118. dns_reslib_avail="true"
  4119. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4120. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4121. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4122. echo $ECHO_N "(cached) $ECHO_C" >&6
  4123. else
  4124. cat >conftest.$ac_ext <<_ACEOF
  4125. /* confdefs.h. */
  4126. _ACEOF
  4127. cat confdefs.h >>conftest.$ac_ext
  4128. cat >>conftest.$ac_ext <<_ACEOF
  4129. /* end confdefs.h. */
  4130. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4131. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4132. #define __res_mkquery innocuous___res_mkquery
  4133. /* System header to define __stub macros and hopefully few prototypes,
  4134. which can conflict with char __res_mkquery (); below.
  4135. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4136. <limits.h> exists even on freestanding compilers. */
  4137. #ifdef __STDC__
  4138. # include <limits.h>
  4139. #else
  4140. # include <assert.h>
  4141. #endif
  4142. #undef __res_mkquery
  4143. /* Override any gcc2 internal prototype to avoid an error. */
  4144. #ifdef __cplusplus
  4145. extern "C"
  4146. {
  4147. #endif
  4148. /* We use char because int might match the return type of a gcc2
  4149. builtin and then its argument prototype would still apply. */
  4150. char __res_mkquery ();
  4151. /* The GNU C library defines this for functions which it implements
  4152. to always fail with ENOSYS. Some functions are actually named
  4153. something starting with __ and the normal name is an alias. */
  4154. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4155. choke me
  4156. #else
  4157. char (*f) () = __res_mkquery;
  4158. #endif
  4159. #ifdef __cplusplus
  4160. }
  4161. #endif
  4162. int
  4163. main ()
  4164. {
  4165. return f != __res_mkquery;
  4166. ;
  4167. return 0;
  4168. }
  4169. _ACEOF
  4170. rm -f conftest.$ac_objext conftest$ac_exeext
  4171. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4172. (eval $ac_link) 2>conftest.er1
  4173. ac_status=$?
  4174. grep -v '^ *+' conftest.er1 >conftest.err
  4175. rm -f conftest.er1
  4176. cat conftest.err >&5
  4177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4178. (exit $ac_status); } &&
  4179. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4181. (eval $ac_try) 2>&5
  4182. ac_status=$?
  4183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4184. (exit $ac_status); }; } &&
  4185. { ac_try='test -s conftest$ac_exeext'
  4186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4187. (eval $ac_try) 2>&5
  4188. ac_status=$?
  4189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4190. (exit $ac_status); }; }; then
  4191. ac_cv_func___res_mkquery=yes
  4192. else
  4193. echo "$as_me: failed program was:" >&5
  4194. sed 's/^/| /' conftest.$ac_ext >&5
  4195. ac_cv_func___res_mkquery=no
  4196. fi
  4197. rm -f conftest.err conftest.$ac_objext \
  4198. conftest$ac_exeext conftest.$ac_ext
  4199. fi
  4200. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4201. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4202. if test $ac_cv_func___res_mkquery = yes; then
  4203. :
  4204. else
  4205. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4206. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4207. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4208. echo $ECHO_N "(cached) $ECHO_C" >&6
  4209. else
  4210. ac_check_lib_save_LIBS=$LIBS
  4211. LIBS="-lresolv $LIBS"
  4212. cat >conftest.$ac_ext <<_ACEOF
  4213. /* confdefs.h. */
  4214. _ACEOF
  4215. cat confdefs.h >>conftest.$ac_ext
  4216. cat >>conftest.$ac_ext <<_ACEOF
  4217. /* end confdefs.h. */
  4218. /* Override any gcc2 internal prototype to avoid an error. */
  4219. #ifdef __cplusplus
  4220. extern "C"
  4221. #endif
  4222. /* We use char because int might match the return type of a gcc2
  4223. builtin and then its argument prototype would still apply. */
  4224. char __res_mkquery ();
  4225. int
  4226. main ()
  4227. {
  4228. __res_mkquery ();
  4229. ;
  4230. return 0;
  4231. }
  4232. _ACEOF
  4233. rm -f conftest.$ac_objext conftest$ac_exeext
  4234. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4235. (eval $ac_link) 2>conftest.er1
  4236. ac_status=$?
  4237. grep -v '^ *+' conftest.er1 >conftest.err
  4238. rm -f conftest.er1
  4239. cat conftest.err >&5
  4240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4241. (exit $ac_status); } &&
  4242. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4244. (eval $ac_try) 2>&5
  4245. ac_status=$?
  4246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4247. (exit $ac_status); }; } &&
  4248. { ac_try='test -s conftest$ac_exeext'
  4249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4250. (eval $ac_try) 2>&5
  4251. ac_status=$?
  4252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4253. (exit $ac_status); }; }; then
  4254. ac_cv_lib_resolv___res_mkquery=yes
  4255. else
  4256. echo "$as_me: failed program was:" >&5
  4257. sed 's/^/| /' conftest.$ac_ext >&5
  4258. ac_cv_lib_resolv___res_mkquery=no
  4259. fi
  4260. rm -f conftest.err conftest.$ac_objext \
  4261. conftest$ac_exeext conftest.$ac_ext
  4262. LIBS=$ac_check_lib_save_LIBS
  4263. fi
  4264. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4265. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4266. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4267. if test "x${RESLIB}" != "x-lresolv"; then
  4268. RESLIB="${RESLIB} -lresolv"
  4269. fi
  4270. else
  4271. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4272. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4273. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4274. echo $ECHO_N "(cached) $ECHO_C" >&6
  4275. else
  4276. ac_check_lib_save_LIBS=$LIBS
  4277. LIBS="-lbind $LIBS"
  4278. cat >conftest.$ac_ext <<_ACEOF
  4279. /* confdefs.h. */
  4280. _ACEOF
  4281. cat confdefs.h >>conftest.$ac_ext
  4282. cat >>conftest.$ac_ext <<_ACEOF
  4283. /* end confdefs.h. */
  4284. /* Override any gcc2 internal prototype to avoid an error. */
  4285. #ifdef __cplusplus
  4286. extern "C"
  4287. #endif
  4288. /* We use char because int might match the return type of a gcc2
  4289. builtin and then its argument prototype would still apply. */
  4290. char __res_mkquery ();
  4291. int
  4292. main ()
  4293. {
  4294. __res_mkquery ();
  4295. ;
  4296. return 0;
  4297. }
  4298. _ACEOF
  4299. rm -f conftest.$ac_objext conftest$ac_exeext
  4300. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4301. (eval $ac_link) 2>conftest.er1
  4302. ac_status=$?
  4303. grep -v '^ *+' conftest.er1 >conftest.err
  4304. rm -f conftest.er1
  4305. cat conftest.err >&5
  4306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4307. (exit $ac_status); } &&
  4308. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4310. (eval $ac_try) 2>&5
  4311. ac_status=$?
  4312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4313. (exit $ac_status); }; } &&
  4314. { ac_try='test -s conftest$ac_exeext'
  4315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4316. (eval $ac_try) 2>&5
  4317. ac_status=$?
  4318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4319. (exit $ac_status); }; }; then
  4320. ac_cv_lib_bind___res_mkquery=yes
  4321. else
  4322. echo "$as_me: failed program was:" >&5
  4323. sed 's/^/| /' conftest.$ac_ext >&5
  4324. ac_cv_lib_bind___res_mkquery=no
  4325. fi
  4326. rm -f conftest.err conftest.$ac_objext \
  4327. conftest$ac_exeext conftest.$ac_ext
  4328. LIBS=$ac_check_lib_save_LIBS
  4329. fi
  4330. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4331. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4332. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4333. if test "x${RESLIB}" != "x-lbind"; then
  4334. RESLIB="${RESLIB} -lbind"
  4335. fi
  4336. else
  4337. dns_reslib_avail="false";
  4338. fi
  4339. fi
  4340. fi
  4341. fi
  4342. if test "${dns_reslib_avail}" = false; then
  4343. if test "$ac_cv_cygwin" = "yes"; then
  4344. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4345. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4346. if test -r /usr/local/bind/lib/libbind.a; then
  4347. echo "$as_me:$LINENO: result: yes" >&5
  4348. echo "${ECHO_T}yes" >&6
  4349. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4350. RESINCLUDE="-I/usr/local/bind/include"
  4351. dns_reslib_avail="true"
  4352. else
  4353. echo "$as_me:$LINENO: result: no" >&5
  4354. echo "${ECHO_T}no" >&6
  4355. fi
  4356. fi
  4357. fi
  4358. if test "${dns_reslib_avail}" = false; then
  4359. cat >&2 <<EOF
  4360. configure: warning:
  4361. Your system provides no functional resolver library.
  4362. One is required for buld.
  4363. EOF
  4364. exit 1
  4365. fi
  4366. # Check for IPv6 support
  4367. #EGG_IPV6_SUPPORTED
  4368. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4369. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4370. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4371. if test "${enable_ipv6+set}" = set; then
  4372. enableval="$enable_ipv6"
  4373. ac_cv_dipv6="yes"
  4374. echo "$as_me:$LINENO: result: yes" >&5
  4375. echo "${ECHO_T}yes" >&6
  4376. else
  4377. ac_cv_dipv6="no"
  4378. if test "$egg_cv_ipv6_supported" = "no"; then
  4379. ac_cv_dipv6="no"
  4380. fi
  4381. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4382. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4383. fi;
  4384. if ! test "$EGG_CYGWIN" = "yes"; then
  4385. if test "$ac_cv_dipv6" = "no"; then
  4386. cat >>confdefs.h <<\_ACEOF
  4387. #define USE_IPV6 1
  4388. _ACEOF
  4389. fi
  4390. fi
  4391. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4392. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4393. if test "${egg_cv_socklen_t+set}" = set; then
  4394. echo $ECHO_N "(cached) $ECHO_C" >&6
  4395. else
  4396. if test "$cross_compiling" = yes; then
  4397. egg_cv_socklen_t=no
  4398. else
  4399. cat >conftest.$ac_ext <<_ACEOF
  4400. /* confdefs.h. */
  4401. _ACEOF
  4402. cat confdefs.h >>conftest.$ac_ext
  4403. cat >>conftest.$ac_ext <<_ACEOF
  4404. /* end confdefs.h. */
  4405. #include <unistd.h>
  4406. #include <sys/types.h>
  4407. #include <sys/socket.h>
  4408. #include <netinet/in.h>
  4409. #include <arpa/inet.h>
  4410. int main()
  4411. {
  4412. socklen_t test = sizeof(int);
  4413. return 0;
  4414. }
  4415. _ACEOF
  4416. rm -f conftest$ac_exeext
  4417. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4418. (eval $ac_link) 2>&5
  4419. ac_status=$?
  4420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4421. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4423. (eval $ac_try) 2>&5
  4424. ac_status=$?
  4425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4426. (exit $ac_status); }; }; then
  4427. egg_cv_socklen_t=yes
  4428. else
  4429. echo "$as_me: program exited with status $ac_status" >&5
  4430. echo "$as_me: failed program was:" >&5
  4431. sed 's/^/| /' conftest.$ac_ext >&5
  4432. ( exit $ac_status )
  4433. egg_cv_socklen_t=no
  4434. fi
  4435. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4436. fi
  4437. fi
  4438. if test "$egg_cv_socklen_t" = "yes"; then
  4439. cat >>confdefs.h <<\_ACEOF
  4440. #define HAVE_SOCKLEN_T 1
  4441. _ACEOF
  4442. echo "$as_me:$LINENO: result: yes" >&5
  4443. echo "${ECHO_T}yes" >&6
  4444. else
  4445. echo "$as_me:$LINENO: result: no" >&5
  4446. echo "${ECHO_T}no" >&6
  4447. fi
  4448. #checkpoint
  4449. cat >confcache <<\_ACEOF
  4450. # This file is a shell script that caches the results of configure
  4451. # tests run on this system so they can be shared between configure
  4452. # scripts and configure runs, see configure's option --config-cache.
  4453. # It is not useful on other systems. If it contains results you don't
  4454. # want to keep, you may remove or edit it.
  4455. #
  4456. # config.status only pays attention to the cache file if you give it
  4457. # the --recheck option to rerun configure.
  4458. #
  4459. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4460. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4461. # following values.
  4462. _ACEOF
  4463. # The following way of writing the cache mishandles newlines in values,
  4464. # but we know of no workaround that is simple, portable, and efficient.
  4465. # So, don't put newlines in cache variables' values.
  4466. # Ultrix sh set writes to stderr and can't be redirected directly,
  4467. # and sets the high bit in the cache file unless we assign to the vars.
  4468. {
  4469. (set) 2>&1 |
  4470. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4471. *ac_space=\ *)
  4472. # `set' does not quote correctly, so add quotes (double-quote
  4473. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4474. sed -n \
  4475. "s/'/'\\\\''/g;
  4476. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4477. ;;
  4478. *)
  4479. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4480. sed -n \
  4481. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4482. ;;
  4483. esac;
  4484. } |
  4485. sed '
  4486. t clear
  4487. : clear
  4488. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4489. t end
  4490. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4491. : end' >>confcache
  4492. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4493. if test -w $cache_file; then
  4494. test "x$cache_file" != "x/dev/null"
  4495. cat confcache >$cache_file
  4496. else
  4497. echo "not updating unwritable cache $cache_file"
  4498. fi
  4499. fi
  4500. rm -f confcache
  4501. # Checks for system libraries
  4502. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4503. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4504. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4505. echo $ECHO_N "(cached) $ECHO_C" >&6
  4506. else
  4507. ac_check_lib_save_LIBS=$LIBS
  4508. LIBS="-lsocket $LIBS"
  4509. cat >conftest.$ac_ext <<_ACEOF
  4510. /* confdefs.h. */
  4511. _ACEOF
  4512. cat confdefs.h >>conftest.$ac_ext
  4513. cat >>conftest.$ac_ext <<_ACEOF
  4514. /* end confdefs.h. */
  4515. /* Override any gcc2 internal prototype to avoid an error. */
  4516. #ifdef __cplusplus
  4517. extern "C"
  4518. #endif
  4519. /* We use char because int might match the return type of a gcc2
  4520. builtin and then its argument prototype would still apply. */
  4521. char socket ();
  4522. int
  4523. main ()
  4524. {
  4525. socket ();
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. rm -f conftest.$ac_objext conftest$ac_exeext
  4531. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4532. (eval $ac_link) 2>conftest.er1
  4533. ac_status=$?
  4534. grep -v '^ *+' conftest.er1 >conftest.err
  4535. rm -f conftest.er1
  4536. cat conftest.err >&5
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); } &&
  4539. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; } &&
  4545. { ac_try='test -s conftest$ac_exeext'
  4546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4547. (eval $ac_try) 2>&5
  4548. ac_status=$?
  4549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); }; }; then
  4551. ac_cv_lib_socket_socket=yes
  4552. else
  4553. echo "$as_me: failed program was:" >&5
  4554. sed 's/^/| /' conftest.$ac_ext >&5
  4555. ac_cv_lib_socket_socket=no
  4556. fi
  4557. rm -f conftest.err conftest.$ac_objext \
  4558. conftest$ac_exeext conftest.$ac_ext
  4559. LIBS=$ac_check_lib_save_LIBS
  4560. fi
  4561. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4562. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4563. if test $ac_cv_lib_socket_socket = yes; then
  4564. cat >>confdefs.h <<_ACEOF
  4565. #define HAVE_LIBSOCKET 1
  4566. _ACEOF
  4567. LIBS="-lsocket $LIBS"
  4568. fi
  4569. # AC_CHECK_LIB(nsl, connect)
  4570. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4571. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4572. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4573. echo $ECHO_N "(cached) $ECHO_C" >&6
  4574. else
  4575. ac_check_lib_save_LIBS=$LIBS
  4576. LIBS="-ldns $LIBS"
  4577. cat >conftest.$ac_ext <<_ACEOF
  4578. /* confdefs.h. */
  4579. _ACEOF
  4580. cat confdefs.h >>conftest.$ac_ext
  4581. cat >>conftest.$ac_ext <<_ACEOF
  4582. /* end confdefs.h. */
  4583. /* Override any gcc2 internal prototype to avoid an error. */
  4584. #ifdef __cplusplus
  4585. extern "C"
  4586. #endif
  4587. /* We use char because int might match the return type of a gcc2
  4588. builtin and then its argument prototype would still apply. */
  4589. char gethostbyname ();
  4590. int
  4591. main ()
  4592. {
  4593. gethostbyname ();
  4594. ;
  4595. return 0;
  4596. }
  4597. _ACEOF
  4598. rm -f conftest.$ac_objext conftest$ac_exeext
  4599. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4600. (eval $ac_link) 2>conftest.er1
  4601. ac_status=$?
  4602. grep -v '^ *+' conftest.er1 >conftest.err
  4603. rm -f conftest.er1
  4604. cat conftest.err >&5
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); } &&
  4607. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4609. (eval $ac_try) 2>&5
  4610. ac_status=$?
  4611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4612. (exit $ac_status); }; } &&
  4613. { ac_try='test -s conftest$ac_exeext'
  4614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4615. (eval $ac_try) 2>&5
  4616. ac_status=$?
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); }; }; then
  4619. ac_cv_lib_dns_gethostbyname=yes
  4620. else
  4621. echo "$as_me: failed program was:" >&5
  4622. sed 's/^/| /' conftest.$ac_ext >&5
  4623. ac_cv_lib_dns_gethostbyname=no
  4624. fi
  4625. rm -f conftest.err conftest.$ac_objext \
  4626. conftest$ac_exeext conftest.$ac_ext
  4627. LIBS=$ac_check_lib_save_LIBS
  4628. fi
  4629. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4630. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4631. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4632. cat >>confdefs.h <<_ACEOF
  4633. #define HAVE_LIBDNS 1
  4634. _ACEOF
  4635. LIBS="-ldns $LIBS"
  4636. fi
  4637. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4638. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4639. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4640. # This is needed for Tcl libraries compiled with thread support
  4641. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4642. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4643. # ac_cv_lib_pthread="-lpthread"], [dnl
  4644. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4645. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4646. # ac_cv_lib_pthread="-lpthread"], [dnl
  4647. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4648. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4649. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4650. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4651. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4652. # ac_cv_lib_pthread=""],
  4653. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4654. # Checks for header files
  4655. ac_header_dirent=no
  4656. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4657. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4658. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4659. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4660. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4661. echo $ECHO_N "(cached) $ECHO_C" >&6
  4662. else
  4663. cat >conftest.$ac_ext <<_ACEOF
  4664. /* confdefs.h. */
  4665. _ACEOF
  4666. cat confdefs.h >>conftest.$ac_ext
  4667. cat >>conftest.$ac_ext <<_ACEOF
  4668. /* end confdefs.h. */
  4669. #include <sys/types.h>
  4670. #include <$ac_hdr>
  4671. int
  4672. main ()
  4673. {
  4674. if ((DIR *) 0)
  4675. return 0;
  4676. ;
  4677. return 0;
  4678. }
  4679. _ACEOF
  4680. rm -f conftest.$ac_objext
  4681. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4682. (eval $ac_compile) 2>conftest.er1
  4683. ac_status=$?
  4684. grep -v '^ *+' conftest.er1 >conftest.err
  4685. rm -f conftest.er1
  4686. cat conftest.err >&5
  4687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4688. (exit $ac_status); } &&
  4689. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4691. (eval $ac_try) 2>&5
  4692. ac_status=$?
  4693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4694. (exit $ac_status); }; } &&
  4695. { ac_try='test -s conftest.$ac_objext'
  4696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4697. (eval $ac_try) 2>&5
  4698. ac_status=$?
  4699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4700. (exit $ac_status); }; }; then
  4701. eval "$as_ac_Header=yes"
  4702. else
  4703. echo "$as_me: failed program was:" >&5
  4704. sed 's/^/| /' conftest.$ac_ext >&5
  4705. eval "$as_ac_Header=no"
  4706. fi
  4707. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4708. fi
  4709. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4710. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4711. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4712. cat >>confdefs.h <<_ACEOF
  4713. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4714. _ACEOF
  4715. ac_header_dirent=$ac_hdr; break
  4716. fi
  4717. done
  4718. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4719. if test $ac_header_dirent = dirent.h; then
  4720. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4721. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4722. if test "${ac_cv_search_opendir+set}" = set; then
  4723. echo $ECHO_N "(cached) $ECHO_C" >&6
  4724. else
  4725. ac_func_search_save_LIBS=$LIBS
  4726. ac_cv_search_opendir=no
  4727. cat >conftest.$ac_ext <<_ACEOF
  4728. /* confdefs.h. */
  4729. _ACEOF
  4730. cat confdefs.h >>conftest.$ac_ext
  4731. cat >>conftest.$ac_ext <<_ACEOF
  4732. /* end confdefs.h. */
  4733. /* Override any gcc2 internal prototype to avoid an error. */
  4734. #ifdef __cplusplus
  4735. extern "C"
  4736. #endif
  4737. /* We use char because int might match the return type of a gcc2
  4738. builtin and then its argument prototype would still apply. */
  4739. char opendir ();
  4740. int
  4741. main ()
  4742. {
  4743. opendir ();
  4744. ;
  4745. return 0;
  4746. }
  4747. _ACEOF
  4748. rm -f conftest.$ac_objext conftest$ac_exeext
  4749. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4750. (eval $ac_link) 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } &&
  4757. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4759. (eval $ac_try) 2>&5
  4760. ac_status=$?
  4761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4762. (exit $ac_status); }; } &&
  4763. { ac_try='test -s conftest$ac_exeext'
  4764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4765. (eval $ac_try) 2>&5
  4766. ac_status=$?
  4767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4768. (exit $ac_status); }; }; then
  4769. ac_cv_search_opendir="none required"
  4770. else
  4771. echo "$as_me: failed program was:" >&5
  4772. sed 's/^/| /' conftest.$ac_ext >&5
  4773. fi
  4774. rm -f conftest.err conftest.$ac_objext \
  4775. conftest$ac_exeext conftest.$ac_ext
  4776. if test "$ac_cv_search_opendir" = no; then
  4777. for ac_lib in dir; do
  4778. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4779. cat >conftest.$ac_ext <<_ACEOF
  4780. /* confdefs.h. */
  4781. _ACEOF
  4782. cat confdefs.h >>conftest.$ac_ext
  4783. cat >>conftest.$ac_ext <<_ACEOF
  4784. /* end confdefs.h. */
  4785. /* Override any gcc2 internal prototype to avoid an error. */
  4786. #ifdef __cplusplus
  4787. extern "C"
  4788. #endif
  4789. /* We use char because int might match the return type of a gcc2
  4790. builtin and then its argument prototype would still apply. */
  4791. char opendir ();
  4792. int
  4793. main ()
  4794. {
  4795. opendir ();
  4796. ;
  4797. return 0;
  4798. }
  4799. _ACEOF
  4800. rm -f conftest.$ac_objext conftest$ac_exeext
  4801. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4802. (eval $ac_link) 2>conftest.er1
  4803. ac_status=$?
  4804. grep -v '^ *+' conftest.er1 >conftest.err
  4805. rm -f conftest.er1
  4806. cat conftest.err >&5
  4807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4808. (exit $ac_status); } &&
  4809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4811. (eval $ac_try) 2>&5
  4812. ac_status=$?
  4813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); }; } &&
  4815. { ac_try='test -s conftest$ac_exeext'
  4816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4817. (eval $ac_try) 2>&5
  4818. ac_status=$?
  4819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); }; }; then
  4821. ac_cv_search_opendir="-l$ac_lib"
  4822. break
  4823. else
  4824. echo "$as_me: failed program was:" >&5
  4825. sed 's/^/| /' conftest.$ac_ext >&5
  4826. fi
  4827. rm -f conftest.err conftest.$ac_objext \
  4828. conftest$ac_exeext conftest.$ac_ext
  4829. done
  4830. fi
  4831. LIBS=$ac_func_search_save_LIBS
  4832. fi
  4833. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4834. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4835. if test "$ac_cv_search_opendir" != no; then
  4836. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4837. fi
  4838. else
  4839. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4840. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4841. if test "${ac_cv_search_opendir+set}" = set; then
  4842. echo $ECHO_N "(cached) $ECHO_C" >&6
  4843. else
  4844. ac_func_search_save_LIBS=$LIBS
  4845. ac_cv_search_opendir=no
  4846. cat >conftest.$ac_ext <<_ACEOF
  4847. /* confdefs.h. */
  4848. _ACEOF
  4849. cat confdefs.h >>conftest.$ac_ext
  4850. cat >>conftest.$ac_ext <<_ACEOF
  4851. /* end confdefs.h. */
  4852. /* Override any gcc2 internal prototype to avoid an error. */
  4853. #ifdef __cplusplus
  4854. extern "C"
  4855. #endif
  4856. /* We use char because int might match the return type of a gcc2
  4857. builtin and then its argument prototype would still apply. */
  4858. char opendir ();
  4859. int
  4860. main ()
  4861. {
  4862. opendir ();
  4863. ;
  4864. return 0;
  4865. }
  4866. _ACEOF
  4867. rm -f conftest.$ac_objext conftest$ac_exeext
  4868. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4869. (eval $ac_link) 2>conftest.er1
  4870. ac_status=$?
  4871. grep -v '^ *+' conftest.er1 >conftest.err
  4872. rm -f conftest.er1
  4873. cat conftest.err >&5
  4874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4875. (exit $ac_status); } &&
  4876. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4878. (eval $ac_try) 2>&5
  4879. ac_status=$?
  4880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4881. (exit $ac_status); }; } &&
  4882. { ac_try='test -s conftest$ac_exeext'
  4883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4884. (eval $ac_try) 2>&5
  4885. ac_status=$?
  4886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4887. (exit $ac_status); }; }; then
  4888. ac_cv_search_opendir="none required"
  4889. else
  4890. echo "$as_me: failed program was:" >&5
  4891. sed 's/^/| /' conftest.$ac_ext >&5
  4892. fi
  4893. rm -f conftest.err conftest.$ac_objext \
  4894. conftest$ac_exeext conftest.$ac_ext
  4895. if test "$ac_cv_search_opendir" = no; then
  4896. for ac_lib in x; do
  4897. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4898. cat >conftest.$ac_ext <<_ACEOF
  4899. /* confdefs.h. */
  4900. _ACEOF
  4901. cat confdefs.h >>conftest.$ac_ext
  4902. cat >>conftest.$ac_ext <<_ACEOF
  4903. /* end confdefs.h. */
  4904. /* Override any gcc2 internal prototype to avoid an error. */
  4905. #ifdef __cplusplus
  4906. extern "C"
  4907. #endif
  4908. /* We use char because int might match the return type of a gcc2
  4909. builtin and then its argument prototype would still apply. */
  4910. char opendir ();
  4911. int
  4912. main ()
  4913. {
  4914. opendir ();
  4915. ;
  4916. return 0;
  4917. }
  4918. _ACEOF
  4919. rm -f conftest.$ac_objext conftest$ac_exeext
  4920. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4921. (eval $ac_link) 2>conftest.er1
  4922. ac_status=$?
  4923. grep -v '^ *+' conftest.er1 >conftest.err
  4924. rm -f conftest.er1
  4925. cat conftest.err >&5
  4926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4927. (exit $ac_status); } &&
  4928. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4934. { ac_try='test -s conftest$ac_exeext'
  4935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4936. (eval $ac_try) 2>&5
  4937. ac_status=$?
  4938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4939. (exit $ac_status); }; }; then
  4940. ac_cv_search_opendir="-l$ac_lib"
  4941. break
  4942. else
  4943. echo "$as_me: failed program was:" >&5
  4944. sed 's/^/| /' conftest.$ac_ext >&5
  4945. fi
  4946. rm -f conftest.err conftest.$ac_objext \
  4947. conftest$ac_exeext conftest.$ac_ext
  4948. done
  4949. fi
  4950. LIBS=$ac_func_search_save_LIBS
  4951. fi
  4952. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4953. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4954. if test "$ac_cv_search_opendir" != no; then
  4955. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4956. fi
  4957. fi
  4958. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4959. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4960. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4961. echo $ECHO_N "(cached) $ECHO_C" >&6
  4962. else
  4963. cat >conftest.$ac_ext <<_ACEOF
  4964. /* confdefs.h. */
  4965. _ACEOF
  4966. cat confdefs.h >>conftest.$ac_ext
  4967. cat >>conftest.$ac_ext <<_ACEOF
  4968. /* end confdefs.h. */
  4969. #include <sys/types.h>
  4970. #include <sys/wait.h>
  4971. #ifndef WEXITSTATUS
  4972. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4973. #endif
  4974. #ifndef WIFEXITED
  4975. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4976. #endif
  4977. int
  4978. main ()
  4979. {
  4980. int s;
  4981. wait (&s);
  4982. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4983. ;
  4984. return 0;
  4985. }
  4986. _ACEOF
  4987. rm -f conftest.$ac_objext
  4988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4989. (eval $ac_compile) 2>conftest.er1
  4990. ac_status=$?
  4991. grep -v '^ *+' conftest.er1 >conftest.err
  4992. rm -f conftest.er1
  4993. cat conftest.err >&5
  4994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4995. (exit $ac_status); } &&
  4996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4998. (eval $ac_try) 2>&5
  4999. ac_status=$?
  5000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5001. (exit $ac_status); }; } &&
  5002. { ac_try='test -s conftest.$ac_objext'
  5003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5004. (eval $ac_try) 2>&5
  5005. ac_status=$?
  5006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5007. (exit $ac_status); }; }; then
  5008. ac_cv_header_sys_wait_h=yes
  5009. else
  5010. echo "$as_me: failed program was:" >&5
  5011. sed 's/^/| /' conftest.$ac_ext >&5
  5012. ac_cv_header_sys_wait_h=no
  5013. fi
  5014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5015. fi
  5016. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5017. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5018. if test $ac_cv_header_sys_wait_h = yes; then
  5019. cat >>confdefs.h <<\_ACEOF
  5020. #define HAVE_SYS_WAIT_H 1
  5021. _ACEOF
  5022. fi
  5023. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5024. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5025. if test "${ac_cv_header_time+set}" = set; then
  5026. echo $ECHO_N "(cached) $ECHO_C" >&6
  5027. else
  5028. cat >conftest.$ac_ext <<_ACEOF
  5029. /* confdefs.h. */
  5030. _ACEOF
  5031. cat confdefs.h >>conftest.$ac_ext
  5032. cat >>conftest.$ac_ext <<_ACEOF
  5033. /* end confdefs.h. */
  5034. #include <sys/types.h>
  5035. #include <sys/time.h>
  5036. #include <time.h>
  5037. int
  5038. main ()
  5039. {
  5040. if ((struct tm *) 0)
  5041. return 0;
  5042. ;
  5043. return 0;
  5044. }
  5045. _ACEOF
  5046. rm -f conftest.$ac_objext
  5047. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5048. (eval $ac_compile) 2>conftest.er1
  5049. ac_status=$?
  5050. grep -v '^ *+' conftest.er1 >conftest.err
  5051. rm -f conftest.er1
  5052. cat conftest.err >&5
  5053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5054. (exit $ac_status); } &&
  5055. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5057. (eval $ac_try) 2>&5
  5058. ac_status=$?
  5059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5060. (exit $ac_status); }; } &&
  5061. { ac_try='test -s conftest.$ac_objext'
  5062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5063. (eval $ac_try) 2>&5
  5064. ac_status=$?
  5065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5066. (exit $ac_status); }; }; then
  5067. ac_cv_header_time=yes
  5068. else
  5069. echo "$as_me: failed program was:" >&5
  5070. sed 's/^/| /' conftest.$ac_ext >&5
  5071. ac_cv_header_time=no
  5072. fi
  5073. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5074. fi
  5075. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5076. echo "${ECHO_T}$ac_cv_header_time" >&6
  5077. if test $ac_cv_header_time = yes; then
  5078. cat >>confdefs.h <<\_ACEOF
  5079. #define TIME_WITH_SYS_TIME 1
  5080. _ACEOF
  5081. fi
  5082. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5083. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5084. if test "${ac_cv_header_stat_broken+set}" = set; then
  5085. echo $ECHO_N "(cached) $ECHO_C" >&6
  5086. else
  5087. cat >conftest.$ac_ext <<_ACEOF
  5088. /* confdefs.h. */
  5089. _ACEOF
  5090. cat confdefs.h >>conftest.$ac_ext
  5091. cat >>conftest.$ac_ext <<_ACEOF
  5092. /* end confdefs.h. */
  5093. #include <sys/types.h>
  5094. #include <sys/stat.h>
  5095. #if defined(S_ISBLK) && defined(S_IFDIR)
  5096. # if S_ISBLK (S_IFDIR)
  5097. You lose.
  5098. # endif
  5099. #endif
  5100. #if defined(S_ISBLK) && defined(S_IFCHR)
  5101. # if S_ISBLK (S_IFCHR)
  5102. You lose.
  5103. # endif
  5104. #endif
  5105. #if defined(S_ISLNK) && defined(S_IFREG)
  5106. # if S_ISLNK (S_IFREG)
  5107. You lose.
  5108. # endif
  5109. #endif
  5110. #if defined(S_ISSOCK) && defined(S_IFREG)
  5111. # if S_ISSOCK (S_IFREG)
  5112. You lose.
  5113. # endif
  5114. #endif
  5115. _ACEOF
  5116. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5117. $EGREP "You lose" >/dev/null 2>&1; then
  5118. ac_cv_header_stat_broken=yes
  5119. else
  5120. ac_cv_header_stat_broken=no
  5121. fi
  5122. rm -f conftest*
  5123. fi
  5124. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5125. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5126. if test $ac_cv_header_stat_broken = yes; then
  5127. cat >>confdefs.h <<\_ACEOF
  5128. #define STAT_MACROS_BROKEN 1
  5129. _ACEOF
  5130. fi
  5131. #checkpoint
  5132. cat >confcache <<\_ACEOF
  5133. # This file is a shell script that caches the results of configure
  5134. # tests run on this system so they can be shared between configure
  5135. # scripts and configure runs, see configure's option --config-cache.
  5136. # It is not useful on other systems. If it contains results you don't
  5137. # want to keep, you may remove or edit it.
  5138. #
  5139. # config.status only pays attention to the cache file if you give it
  5140. # the --recheck option to rerun configure.
  5141. #
  5142. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5143. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5144. # following values.
  5145. _ACEOF
  5146. # The following way of writing the cache mishandles newlines in values,
  5147. # but we know of no workaround that is simple, portable, and efficient.
  5148. # So, don't put newlines in cache variables' values.
  5149. # Ultrix sh set writes to stderr and can't be redirected directly,
  5150. # and sets the high bit in the cache file unless we assign to the vars.
  5151. {
  5152. (set) 2>&1 |
  5153. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5154. *ac_space=\ *)
  5155. # `set' does not quote correctly, so add quotes (double-quote
  5156. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5157. sed -n \
  5158. "s/'/'\\\\''/g;
  5159. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5160. ;;
  5161. *)
  5162. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5163. sed -n \
  5164. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5165. ;;
  5166. esac;
  5167. } |
  5168. sed '
  5169. t clear
  5170. : clear
  5171. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5172. t end
  5173. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5174. : end' >>confcache
  5175. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5176. if test -w $cache_file; then
  5177. test "x$cache_file" != "x/dev/null"
  5178. cat confcache >$cache_file
  5179. else
  5180. echo "not updating unwritable cache $cache_file"
  5181. fi
  5182. fi
  5183. rm -f confcache
  5184. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5185. do
  5186. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5187. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5188. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5189. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5190. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5191. echo $ECHO_N "(cached) $ECHO_C" >&6
  5192. fi
  5193. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5194. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5195. else
  5196. # Is the header compilable?
  5197. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5198. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5199. cat >conftest.$ac_ext <<_ACEOF
  5200. /* confdefs.h. */
  5201. _ACEOF
  5202. cat confdefs.h >>conftest.$ac_ext
  5203. cat >>conftest.$ac_ext <<_ACEOF
  5204. /* end confdefs.h. */
  5205. $ac_includes_default
  5206. #include <$ac_header>
  5207. _ACEOF
  5208. rm -f conftest.$ac_objext
  5209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5210. (eval $ac_compile) 2>conftest.er1
  5211. ac_status=$?
  5212. grep -v '^ *+' conftest.er1 >conftest.err
  5213. rm -f conftest.er1
  5214. cat conftest.err >&5
  5215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5216. (exit $ac_status); } &&
  5217. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5219. (eval $ac_try) 2>&5
  5220. ac_status=$?
  5221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5222. (exit $ac_status); }; } &&
  5223. { ac_try='test -s conftest.$ac_objext'
  5224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5225. (eval $ac_try) 2>&5
  5226. ac_status=$?
  5227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5228. (exit $ac_status); }; }; then
  5229. ac_header_compiler=yes
  5230. else
  5231. echo "$as_me: failed program was:" >&5
  5232. sed 's/^/| /' conftest.$ac_ext >&5
  5233. ac_header_compiler=no
  5234. fi
  5235. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5236. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5237. echo "${ECHO_T}$ac_header_compiler" >&6
  5238. # Is the header present?
  5239. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5240. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5241. cat >conftest.$ac_ext <<_ACEOF
  5242. /* confdefs.h. */
  5243. _ACEOF
  5244. cat confdefs.h >>conftest.$ac_ext
  5245. cat >>conftest.$ac_ext <<_ACEOF
  5246. /* end confdefs.h. */
  5247. #include <$ac_header>
  5248. _ACEOF
  5249. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5250. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5251. ac_status=$?
  5252. grep -v '^ *+' conftest.er1 >conftest.err
  5253. rm -f conftest.er1
  5254. cat conftest.err >&5
  5255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5256. (exit $ac_status); } >/dev/null; then
  5257. if test -s conftest.err; then
  5258. ac_cpp_err=$ac_c_preproc_warn_flag
  5259. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5260. else
  5261. ac_cpp_err=
  5262. fi
  5263. else
  5264. ac_cpp_err=yes
  5265. fi
  5266. if test -z "$ac_cpp_err"; then
  5267. ac_header_preproc=yes
  5268. else
  5269. echo "$as_me: failed program was:" >&5
  5270. sed 's/^/| /' conftest.$ac_ext >&5
  5271. ac_header_preproc=no
  5272. fi
  5273. rm -f conftest.err conftest.$ac_ext
  5274. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5275. echo "${ECHO_T}$ac_header_preproc" >&6
  5276. # So? What about this header?
  5277. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5278. yes:no: )
  5279. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5280. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5281. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5282. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5283. ac_header_preproc=yes
  5284. ;;
  5285. no:yes:* )
  5286. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5287. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5288. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5289. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5290. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5291. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5292. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5293. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5294. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5295. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5296. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5297. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5298. (
  5299. cat <<\_ASBOX
  5300. ## ------------------------------------------ ##
  5301. ## Report this to the AC_PACKAGE_NAME lists. ##
  5302. ## ------------------------------------------ ##
  5303. _ASBOX
  5304. ) |
  5305. sed "s/^/$as_me: WARNING: /" >&2
  5306. ;;
  5307. esac
  5308. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5310. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5311. echo $ECHO_N "(cached) $ECHO_C" >&6
  5312. else
  5313. eval "$as_ac_Header=\$ac_header_preproc"
  5314. fi
  5315. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5316. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5317. fi
  5318. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5319. cat >>confdefs.h <<_ACEOF
  5320. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5321. _ACEOF
  5322. fi
  5323. done
  5324. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5325. do
  5326. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5328. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5330. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5331. echo $ECHO_N "(cached) $ECHO_C" >&6
  5332. fi
  5333. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5334. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5335. else
  5336. # Is the header compilable?
  5337. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5338. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5339. cat >conftest.$ac_ext <<_ACEOF
  5340. /* confdefs.h. */
  5341. _ACEOF
  5342. cat confdefs.h >>conftest.$ac_ext
  5343. cat >>conftest.$ac_ext <<_ACEOF
  5344. /* end confdefs.h. */
  5345. $ac_includes_default
  5346. #include <$ac_header>
  5347. _ACEOF
  5348. rm -f conftest.$ac_objext
  5349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5350. (eval $ac_compile) 2>conftest.er1
  5351. ac_status=$?
  5352. grep -v '^ *+' conftest.er1 >conftest.err
  5353. rm -f conftest.er1
  5354. cat conftest.err >&5
  5355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5356. (exit $ac_status); } &&
  5357. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5359. (eval $ac_try) 2>&5
  5360. ac_status=$?
  5361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5362. (exit $ac_status); }; } &&
  5363. { ac_try='test -s conftest.$ac_objext'
  5364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5365. (eval $ac_try) 2>&5
  5366. ac_status=$?
  5367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5368. (exit $ac_status); }; }; then
  5369. ac_header_compiler=yes
  5370. else
  5371. echo "$as_me: failed program was:" >&5
  5372. sed 's/^/| /' conftest.$ac_ext >&5
  5373. ac_header_compiler=no
  5374. fi
  5375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5376. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5377. echo "${ECHO_T}$ac_header_compiler" >&6
  5378. # Is the header present?
  5379. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5380. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5381. cat >conftest.$ac_ext <<_ACEOF
  5382. /* confdefs.h. */
  5383. _ACEOF
  5384. cat confdefs.h >>conftest.$ac_ext
  5385. cat >>conftest.$ac_ext <<_ACEOF
  5386. /* end confdefs.h. */
  5387. #include <$ac_header>
  5388. _ACEOF
  5389. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5390. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5391. ac_status=$?
  5392. grep -v '^ *+' conftest.er1 >conftest.err
  5393. rm -f conftest.er1
  5394. cat conftest.err >&5
  5395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5396. (exit $ac_status); } >/dev/null; then
  5397. if test -s conftest.err; then
  5398. ac_cpp_err=$ac_c_preproc_warn_flag
  5399. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5400. else
  5401. ac_cpp_err=
  5402. fi
  5403. else
  5404. ac_cpp_err=yes
  5405. fi
  5406. if test -z "$ac_cpp_err"; then
  5407. ac_header_preproc=yes
  5408. else
  5409. echo "$as_me: failed program was:" >&5
  5410. sed 's/^/| /' conftest.$ac_ext >&5
  5411. ac_header_preproc=no
  5412. fi
  5413. rm -f conftest.err conftest.$ac_ext
  5414. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5415. echo "${ECHO_T}$ac_header_preproc" >&6
  5416. # So? What about this header?
  5417. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5418. yes:no: )
  5419. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5420. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5421. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5422. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5423. ac_header_preproc=yes
  5424. ;;
  5425. no:yes:* )
  5426. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5427. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5428. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5429. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5430. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5431. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5432. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5433. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5434. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5435. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5436. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5437. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5438. (
  5439. cat <<\_ASBOX
  5440. ## ------------------------------------------ ##
  5441. ## Report this to the AC_PACKAGE_NAME lists. ##
  5442. ## ------------------------------------------ ##
  5443. _ASBOX
  5444. ) |
  5445. sed "s/^/$as_me: WARNING: /" >&2
  5446. ;;
  5447. esac
  5448. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5449. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5450. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5451. echo $ECHO_N "(cached) $ECHO_C" >&6
  5452. else
  5453. eval "$as_ac_Header=\$ac_header_preproc"
  5454. fi
  5455. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5456. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5457. fi
  5458. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5459. cat >>confdefs.h <<_ACEOF
  5460. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5461. _ACEOF
  5462. fi
  5463. done
  5464. #checkpoint
  5465. cat >confcache <<\_ACEOF
  5466. # This file is a shell script that caches the results of configure
  5467. # tests run on this system so they can be shared between configure
  5468. # scripts and configure runs, see configure's option --config-cache.
  5469. # It is not useful on other systems. If it contains results you don't
  5470. # want to keep, you may remove or edit it.
  5471. #
  5472. # config.status only pays attention to the cache file if you give it
  5473. # the --recheck option to rerun configure.
  5474. #
  5475. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5476. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5477. # following values.
  5478. _ACEOF
  5479. # The following way of writing the cache mishandles newlines in values,
  5480. # but we know of no workaround that is simple, portable, and efficient.
  5481. # So, don't put newlines in cache variables' values.
  5482. # Ultrix sh set writes to stderr and can't be redirected directly,
  5483. # and sets the high bit in the cache file unless we assign to the vars.
  5484. {
  5485. (set) 2>&1 |
  5486. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5487. *ac_space=\ *)
  5488. # `set' does not quote correctly, so add quotes (double-quote
  5489. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5490. sed -n \
  5491. "s/'/'\\\\''/g;
  5492. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5493. ;;
  5494. *)
  5495. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5496. sed -n \
  5497. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5498. ;;
  5499. esac;
  5500. } |
  5501. sed '
  5502. t clear
  5503. : clear
  5504. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5505. t end
  5506. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5507. : end' >>confcache
  5508. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5509. if test -w $cache_file; then
  5510. test "x$cache_file" != "x/dev/null"
  5511. cat confcache >$cache_file
  5512. else
  5513. echo "not updating unwritable cache $cache_file"
  5514. fi
  5515. fi
  5516. rm -f confcache
  5517. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5518. #AC_CHECK_HEADERS(zlib.h)
  5519. #EGG_CHECK_ZLIB
  5520. #EGG_CHECK_SSL
  5521. #AC_SUBST(SSL)dnl
  5522. # Checks for typedefs, structures, and compiler characteristics
  5523. echo "$as_me:$LINENO: checking for pid_t" >&5
  5524. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5525. if test "${ac_cv_type_pid_t+set}" = set; then
  5526. echo $ECHO_N "(cached) $ECHO_C" >&6
  5527. else
  5528. cat >conftest.$ac_ext <<_ACEOF
  5529. /* confdefs.h. */
  5530. _ACEOF
  5531. cat confdefs.h >>conftest.$ac_ext
  5532. cat >>conftest.$ac_ext <<_ACEOF
  5533. /* end confdefs.h. */
  5534. $ac_includes_default
  5535. int
  5536. main ()
  5537. {
  5538. if ((pid_t *) 0)
  5539. return 0;
  5540. if (sizeof (pid_t))
  5541. return 0;
  5542. ;
  5543. return 0;
  5544. }
  5545. _ACEOF
  5546. rm -f conftest.$ac_objext
  5547. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5548. (eval $ac_compile) 2>conftest.er1
  5549. ac_status=$?
  5550. grep -v '^ *+' conftest.er1 >conftest.err
  5551. rm -f conftest.er1
  5552. cat conftest.err >&5
  5553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554. (exit $ac_status); } &&
  5555. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5557. (eval $ac_try) 2>&5
  5558. ac_status=$?
  5559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5560. (exit $ac_status); }; } &&
  5561. { ac_try='test -s conftest.$ac_objext'
  5562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5563. (eval $ac_try) 2>&5
  5564. ac_status=$?
  5565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5566. (exit $ac_status); }; }; then
  5567. ac_cv_type_pid_t=yes
  5568. else
  5569. echo "$as_me: failed program was:" >&5
  5570. sed 's/^/| /' conftest.$ac_ext >&5
  5571. ac_cv_type_pid_t=no
  5572. fi
  5573. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5574. fi
  5575. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5576. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5577. if test $ac_cv_type_pid_t = yes; then
  5578. :
  5579. else
  5580. cat >>confdefs.h <<_ACEOF
  5581. #define pid_t int
  5582. _ACEOF
  5583. fi
  5584. echo "$as_me:$LINENO: checking for size_t" >&5
  5585. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5586. if test "${ac_cv_type_size_t+set}" = set; then
  5587. echo $ECHO_N "(cached) $ECHO_C" >&6
  5588. else
  5589. cat >conftest.$ac_ext <<_ACEOF
  5590. /* confdefs.h. */
  5591. _ACEOF
  5592. cat confdefs.h >>conftest.$ac_ext
  5593. cat >>conftest.$ac_ext <<_ACEOF
  5594. /* end confdefs.h. */
  5595. $ac_includes_default
  5596. int
  5597. main ()
  5598. {
  5599. if ((size_t *) 0)
  5600. return 0;
  5601. if (sizeof (size_t))
  5602. return 0;
  5603. ;
  5604. return 0;
  5605. }
  5606. _ACEOF
  5607. rm -f conftest.$ac_objext
  5608. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5609. (eval $ac_compile) 2>conftest.er1
  5610. ac_status=$?
  5611. grep -v '^ *+' conftest.er1 >conftest.err
  5612. rm -f conftest.er1
  5613. cat conftest.err >&5
  5614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615. (exit $ac_status); } &&
  5616. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5618. (eval $ac_try) 2>&5
  5619. ac_status=$?
  5620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5621. (exit $ac_status); }; } &&
  5622. { ac_try='test -s conftest.$ac_objext'
  5623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5624. (eval $ac_try) 2>&5
  5625. ac_status=$?
  5626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5627. (exit $ac_status); }; }; then
  5628. ac_cv_type_size_t=yes
  5629. else
  5630. echo "$as_me: failed program was:" >&5
  5631. sed 's/^/| /' conftest.$ac_ext >&5
  5632. ac_cv_type_size_t=no
  5633. fi
  5634. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5635. fi
  5636. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5637. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5638. if test $ac_cv_type_size_t = yes; then
  5639. :
  5640. else
  5641. cat >>confdefs.h <<_ACEOF
  5642. #define size_t unsigned
  5643. _ACEOF
  5644. fi
  5645. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5646. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5647. if test "${ac_cv_type_uid_t+set}" = set; then
  5648. echo $ECHO_N "(cached) $ECHO_C" >&6
  5649. else
  5650. cat >conftest.$ac_ext <<_ACEOF
  5651. /* confdefs.h. */
  5652. _ACEOF
  5653. cat confdefs.h >>conftest.$ac_ext
  5654. cat >>conftest.$ac_ext <<_ACEOF
  5655. /* end confdefs.h. */
  5656. #include <sys/types.h>
  5657. _ACEOF
  5658. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5659. $EGREP "uid_t" >/dev/null 2>&1; then
  5660. ac_cv_type_uid_t=yes
  5661. else
  5662. ac_cv_type_uid_t=no
  5663. fi
  5664. rm -f conftest*
  5665. fi
  5666. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5667. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5668. if test $ac_cv_type_uid_t = no; then
  5669. cat >>confdefs.h <<\_ACEOF
  5670. #define uid_t int
  5671. _ACEOF
  5672. cat >>confdefs.h <<\_ACEOF
  5673. #define gid_t int
  5674. _ACEOF
  5675. fi
  5676. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5677. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5678. if test "${ac_cv_c_const+set}" = set; then
  5679. echo $ECHO_N "(cached) $ECHO_C" >&6
  5680. else
  5681. cat >conftest.$ac_ext <<_ACEOF
  5682. /* confdefs.h. */
  5683. _ACEOF
  5684. cat confdefs.h >>conftest.$ac_ext
  5685. cat >>conftest.$ac_ext <<_ACEOF
  5686. /* end confdefs.h. */
  5687. int
  5688. main ()
  5689. {
  5690. /* FIXME: Include the comments suggested by Paul. */
  5691. #ifndef __cplusplus
  5692. /* Ultrix mips cc rejects this. */
  5693. typedef int charset[2];
  5694. const charset x;
  5695. /* SunOS 4.1.1 cc rejects this. */
  5696. char const *const *ccp;
  5697. char **p;
  5698. /* NEC SVR4.0.2 mips cc rejects this. */
  5699. struct point {int x, y;};
  5700. static struct point const zero = {0,0};
  5701. /* AIX XL C 1.02.0.0 rejects this.
  5702. It does not let you subtract one const X* pointer from another in
  5703. an arm of an if-expression whose if-part is not a constant
  5704. expression */
  5705. const char *g = "string";
  5706. ccp = &g + (g ? g-g : 0);
  5707. /* HPUX 7.0 cc rejects these. */
  5708. ++ccp;
  5709. p = (char**) ccp;
  5710. ccp = (char const *const *) p;
  5711. { /* SCO 3.2v4 cc rejects this. */
  5712. char *t;
  5713. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5714. *t++ = 0;
  5715. }
  5716. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5717. int x[] = {25, 17};
  5718. const int *foo = &x[0];
  5719. ++foo;
  5720. }
  5721. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5722. typedef const int *iptr;
  5723. iptr p = 0;
  5724. ++p;
  5725. }
  5726. { /* AIX XL C 1.02.0.0 rejects this saying
  5727. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5728. struct s { int j; const int *ap[3]; };
  5729. struct s *b; b->j = 5;
  5730. }
  5731. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5732. const int foo = 10;
  5733. }
  5734. #endif
  5735. ;
  5736. return 0;
  5737. }
  5738. _ACEOF
  5739. rm -f conftest.$ac_objext
  5740. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5741. (eval $ac_compile) 2>conftest.er1
  5742. ac_status=$?
  5743. grep -v '^ *+' conftest.er1 >conftest.err
  5744. rm -f conftest.er1
  5745. cat conftest.err >&5
  5746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5747. (exit $ac_status); } &&
  5748. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5750. (eval $ac_try) 2>&5
  5751. ac_status=$?
  5752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5753. (exit $ac_status); }; } &&
  5754. { ac_try='test -s conftest.$ac_objext'
  5755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5756. (eval $ac_try) 2>&5
  5757. ac_status=$?
  5758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5759. (exit $ac_status); }; }; then
  5760. ac_cv_c_const=yes
  5761. else
  5762. echo "$as_me: failed program was:" >&5
  5763. sed 's/^/| /' conftest.$ac_ext >&5
  5764. ac_cv_c_const=no
  5765. fi
  5766. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5767. fi
  5768. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5769. echo "${ECHO_T}$ac_cv_c_const" >&6
  5770. if test $ac_cv_c_const = no; then
  5771. cat >>confdefs.h <<\_ACEOF
  5772. #define const
  5773. _ACEOF
  5774. fi
  5775. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5776. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5777. if test "${ac_cv_c_bigendian+set}" = set; then
  5778. echo $ECHO_N "(cached) $ECHO_C" >&6
  5779. else
  5780. # See if sys/param.h defines the BYTE_ORDER macro.
  5781. cat >conftest.$ac_ext <<_ACEOF
  5782. /* confdefs.h. */
  5783. _ACEOF
  5784. cat confdefs.h >>conftest.$ac_ext
  5785. cat >>conftest.$ac_ext <<_ACEOF
  5786. /* end confdefs.h. */
  5787. #include <sys/types.h>
  5788. #include <sys/param.h>
  5789. int
  5790. main ()
  5791. {
  5792. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5793. bogus endian macros
  5794. #endif
  5795. ;
  5796. return 0;
  5797. }
  5798. _ACEOF
  5799. rm -f conftest.$ac_objext
  5800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5801. (eval $ac_compile) 2>conftest.er1
  5802. ac_status=$?
  5803. grep -v '^ *+' conftest.er1 >conftest.err
  5804. rm -f conftest.er1
  5805. cat conftest.err >&5
  5806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); } &&
  5808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5810. (eval $ac_try) 2>&5
  5811. ac_status=$?
  5812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5813. (exit $ac_status); }; } &&
  5814. { ac_try='test -s conftest.$ac_objext'
  5815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5816. (eval $ac_try) 2>&5
  5817. ac_status=$?
  5818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5819. (exit $ac_status); }; }; then
  5820. # It does; now see whether it defined to BIG_ENDIAN or not.
  5821. cat >conftest.$ac_ext <<_ACEOF
  5822. /* confdefs.h. */
  5823. _ACEOF
  5824. cat confdefs.h >>conftest.$ac_ext
  5825. cat >>conftest.$ac_ext <<_ACEOF
  5826. /* end confdefs.h. */
  5827. #include <sys/types.h>
  5828. #include <sys/param.h>
  5829. int
  5830. main ()
  5831. {
  5832. #if BYTE_ORDER != BIG_ENDIAN
  5833. not big endian
  5834. #endif
  5835. ;
  5836. return 0;
  5837. }
  5838. _ACEOF
  5839. rm -f conftest.$ac_objext
  5840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5841. (eval $ac_compile) 2>conftest.er1
  5842. ac_status=$?
  5843. grep -v '^ *+' conftest.er1 >conftest.err
  5844. rm -f conftest.er1
  5845. cat conftest.err >&5
  5846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5847. (exit $ac_status); } &&
  5848. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5850. (eval $ac_try) 2>&5
  5851. ac_status=$?
  5852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5853. (exit $ac_status); }; } &&
  5854. { ac_try='test -s conftest.$ac_objext'
  5855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5856. (eval $ac_try) 2>&5
  5857. ac_status=$?
  5858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5859. (exit $ac_status); }; }; then
  5860. ac_cv_c_bigendian=yes
  5861. else
  5862. echo "$as_me: failed program was:" >&5
  5863. sed 's/^/| /' conftest.$ac_ext >&5
  5864. ac_cv_c_bigendian=no
  5865. fi
  5866. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5867. else
  5868. echo "$as_me: failed program was:" >&5
  5869. sed 's/^/| /' conftest.$ac_ext >&5
  5870. # It does not; compile a test program.
  5871. if test "$cross_compiling" = yes; then
  5872. # try to guess the endianness by grepping values into an object file
  5873. ac_cv_c_bigendian=unknown
  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. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5881. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5882. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5883. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5884. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5885. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5886. int
  5887. main ()
  5888. {
  5889. _ascii (); _ebcdic ();
  5890. ;
  5891. return 0;
  5892. }
  5893. _ACEOF
  5894. rm -f conftest.$ac_objext
  5895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5896. (eval $ac_compile) 2>conftest.er1
  5897. ac_status=$?
  5898. grep -v '^ *+' conftest.er1 >conftest.err
  5899. rm -f conftest.er1
  5900. cat conftest.err >&5
  5901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5902. (exit $ac_status); } &&
  5903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5905. (eval $ac_try) 2>&5
  5906. ac_status=$?
  5907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5908. (exit $ac_status); }; } &&
  5909. { ac_try='test -s conftest.$ac_objext'
  5910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5911. (eval $ac_try) 2>&5
  5912. ac_status=$?
  5913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5914. (exit $ac_status); }; }; then
  5915. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5916. ac_cv_c_bigendian=yes
  5917. fi
  5918. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5919. if test "$ac_cv_c_bigendian" = unknown; then
  5920. ac_cv_c_bigendian=no
  5921. else
  5922. # finding both strings is unlikely to happen, but who knows?
  5923. ac_cv_c_bigendian=unknown
  5924. fi
  5925. fi
  5926. else
  5927. echo "$as_me: failed program was:" >&5
  5928. sed 's/^/| /' conftest.$ac_ext >&5
  5929. fi
  5930. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5931. else
  5932. cat >conftest.$ac_ext <<_ACEOF
  5933. /* confdefs.h. */
  5934. _ACEOF
  5935. cat confdefs.h >>conftest.$ac_ext
  5936. cat >>conftest.$ac_ext <<_ACEOF
  5937. /* end confdefs.h. */
  5938. int
  5939. main ()
  5940. {
  5941. /* Are we little or big endian? From Harbison&Steele. */
  5942. union
  5943. {
  5944. long l;
  5945. char c[sizeof (long)];
  5946. } u;
  5947. u.l = 1;
  5948. exit (u.c[sizeof (long) - 1] == 1);
  5949. }
  5950. _ACEOF
  5951. rm -f conftest$ac_exeext
  5952. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5953. (eval $ac_link) 2>&5
  5954. ac_status=$?
  5955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5956. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5958. (eval $ac_try) 2>&5
  5959. ac_status=$?
  5960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5961. (exit $ac_status); }; }; then
  5962. ac_cv_c_bigendian=no
  5963. else
  5964. echo "$as_me: program exited with status $ac_status" >&5
  5965. echo "$as_me: failed program was:" >&5
  5966. sed 's/^/| /' conftest.$ac_ext >&5
  5967. ( exit $ac_status )
  5968. ac_cv_c_bigendian=yes
  5969. fi
  5970. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5971. fi
  5972. fi
  5973. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5974. fi
  5975. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5976. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5977. case $ac_cv_c_bigendian in
  5978. yes)
  5979. cat >>confdefs.h <<\_ACEOF
  5980. #define WORDS_BIGENDIAN 1
  5981. _ACEOF
  5982. ;;
  5983. no)
  5984. ;;
  5985. *)
  5986. { { echo "$as_me:$LINENO: error: unknown endianness
  5987. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5988. echo "$as_me: error: unknown endianness
  5989. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5990. { (exit 1); exit 1; }; } ;;
  5991. esac
  5992. echo "$as_me:$LINENO: checking for inline" >&5
  5993. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5994. if test "${ac_cv_c_inline+set}" = set; then
  5995. echo $ECHO_N "(cached) $ECHO_C" >&6
  5996. else
  5997. ac_cv_c_inline=no
  5998. for ac_kw in inline __inline__ __inline; do
  5999. cat >conftest.$ac_ext <<_ACEOF
  6000. /* confdefs.h. */
  6001. _ACEOF
  6002. cat confdefs.h >>conftest.$ac_ext
  6003. cat >>conftest.$ac_ext <<_ACEOF
  6004. /* end confdefs.h. */
  6005. #ifndef __cplusplus
  6006. typedef int foo_t;
  6007. static $ac_kw foo_t static_foo () {return 0; }
  6008. $ac_kw foo_t foo () {return 0; }
  6009. #endif
  6010. _ACEOF
  6011. rm -f conftest.$ac_objext
  6012. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6013. (eval $ac_compile) 2>conftest.er1
  6014. ac_status=$?
  6015. grep -v '^ *+' conftest.er1 >conftest.err
  6016. rm -f conftest.er1
  6017. cat conftest.err >&5
  6018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6019. (exit $ac_status); } &&
  6020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6022. (eval $ac_try) 2>&5
  6023. ac_status=$?
  6024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6025. (exit $ac_status); }; } &&
  6026. { ac_try='test -s conftest.$ac_objext'
  6027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6028. (eval $ac_try) 2>&5
  6029. ac_status=$?
  6030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6031. (exit $ac_status); }; }; then
  6032. ac_cv_c_inline=$ac_kw; break
  6033. else
  6034. echo "$as_me: failed program was:" >&5
  6035. sed 's/^/| /' conftest.$ac_ext >&5
  6036. fi
  6037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6038. done
  6039. fi
  6040. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6041. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6042. case $ac_cv_c_inline in
  6043. inline | yes) ;;
  6044. *)
  6045. case $ac_cv_c_inline in
  6046. no) ac_val=;;
  6047. *) ac_val=$ac_cv_c_inline;;
  6048. esac
  6049. cat >>confdefs.h <<_ACEOF
  6050. #ifndef __cplusplus
  6051. #define inline $ac_val
  6052. #endif
  6053. _ACEOF
  6054. ;;
  6055. esac
  6056. echo "$as_me:$LINENO: checking for int" >&5
  6057. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6058. if test "${ac_cv_type_int+set}" = set; then
  6059. echo $ECHO_N "(cached) $ECHO_C" >&6
  6060. else
  6061. cat >conftest.$ac_ext <<_ACEOF
  6062. /* confdefs.h. */
  6063. _ACEOF
  6064. cat confdefs.h >>conftest.$ac_ext
  6065. cat >>conftest.$ac_ext <<_ACEOF
  6066. /* end confdefs.h. */
  6067. $ac_includes_default
  6068. int
  6069. main ()
  6070. {
  6071. if ((int *) 0)
  6072. return 0;
  6073. if (sizeof (int))
  6074. return 0;
  6075. ;
  6076. return 0;
  6077. }
  6078. _ACEOF
  6079. rm -f conftest.$ac_objext
  6080. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6081. (eval $ac_compile) 2>conftest.er1
  6082. ac_status=$?
  6083. grep -v '^ *+' conftest.er1 >conftest.err
  6084. rm -f conftest.er1
  6085. cat conftest.err >&5
  6086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6087. (exit $ac_status); } &&
  6088. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6090. (eval $ac_try) 2>&5
  6091. ac_status=$?
  6092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6093. (exit $ac_status); }; } &&
  6094. { ac_try='test -s conftest.$ac_objext'
  6095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6096. (eval $ac_try) 2>&5
  6097. ac_status=$?
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); }; }; then
  6100. ac_cv_type_int=yes
  6101. else
  6102. echo "$as_me: failed program was:" >&5
  6103. sed 's/^/| /' conftest.$ac_ext >&5
  6104. ac_cv_type_int=no
  6105. fi
  6106. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6107. fi
  6108. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6109. echo "${ECHO_T}$ac_cv_type_int" >&6
  6110. echo "$as_me:$LINENO: checking size of int" >&5
  6111. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6112. if test "${ac_cv_sizeof_int+set}" = set; then
  6113. echo $ECHO_N "(cached) $ECHO_C" >&6
  6114. else
  6115. if test "$ac_cv_type_int" = yes; then
  6116. # The cast to unsigned long works around a bug in the HP C Compiler
  6117. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6118. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6119. # This bug is HP SR number 8606223364.
  6120. if test "$cross_compiling" = yes; then
  6121. # Depending upon the size, compute the lo and hi bounds.
  6122. cat >conftest.$ac_ext <<_ACEOF
  6123. /* confdefs.h. */
  6124. _ACEOF
  6125. cat confdefs.h >>conftest.$ac_ext
  6126. cat >>conftest.$ac_ext <<_ACEOF
  6127. /* end confdefs.h. */
  6128. $ac_includes_default
  6129. int
  6130. main ()
  6131. {
  6132. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6133. test_array [0] = 0
  6134. ;
  6135. return 0;
  6136. }
  6137. _ACEOF
  6138. rm -f conftest.$ac_objext
  6139. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6140. (eval $ac_compile) 2>conftest.er1
  6141. ac_status=$?
  6142. grep -v '^ *+' conftest.er1 >conftest.err
  6143. rm -f conftest.er1
  6144. cat conftest.err >&5
  6145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6146. (exit $ac_status); } &&
  6147. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6149. (eval $ac_try) 2>&5
  6150. ac_status=$?
  6151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6152. (exit $ac_status); }; } &&
  6153. { ac_try='test -s conftest.$ac_objext'
  6154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6155. (eval $ac_try) 2>&5
  6156. ac_status=$?
  6157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6158. (exit $ac_status); }; }; then
  6159. ac_lo=0 ac_mid=0
  6160. while :; do
  6161. cat >conftest.$ac_ext <<_ACEOF
  6162. /* confdefs.h. */
  6163. _ACEOF
  6164. cat confdefs.h >>conftest.$ac_ext
  6165. cat >>conftest.$ac_ext <<_ACEOF
  6166. /* end confdefs.h. */
  6167. $ac_includes_default
  6168. int
  6169. main ()
  6170. {
  6171. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6172. test_array [0] = 0
  6173. ;
  6174. return 0;
  6175. }
  6176. _ACEOF
  6177. rm -f conftest.$ac_objext
  6178. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6179. (eval $ac_compile) 2>conftest.er1
  6180. ac_status=$?
  6181. grep -v '^ *+' conftest.er1 >conftest.err
  6182. rm -f conftest.er1
  6183. cat conftest.err >&5
  6184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185. (exit $ac_status); } &&
  6186. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6188. (eval $ac_try) 2>&5
  6189. ac_status=$?
  6190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6191. (exit $ac_status); }; } &&
  6192. { ac_try='test -s conftest.$ac_objext'
  6193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6194. (eval $ac_try) 2>&5
  6195. ac_status=$?
  6196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6197. (exit $ac_status); }; }; then
  6198. ac_hi=$ac_mid; break
  6199. else
  6200. echo "$as_me: failed program was:" >&5
  6201. sed 's/^/| /' conftest.$ac_ext >&5
  6202. ac_lo=`expr $ac_mid + 1`
  6203. if test $ac_lo -le $ac_mid; then
  6204. ac_lo= ac_hi=
  6205. break
  6206. fi
  6207. ac_mid=`expr 2 '*' $ac_mid + 1`
  6208. fi
  6209. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6210. done
  6211. else
  6212. echo "$as_me: failed program was:" >&5
  6213. sed 's/^/| /' conftest.$ac_ext >&5
  6214. cat >conftest.$ac_ext <<_ACEOF
  6215. /* confdefs.h. */
  6216. _ACEOF
  6217. cat confdefs.h >>conftest.$ac_ext
  6218. cat >>conftest.$ac_ext <<_ACEOF
  6219. /* end confdefs.h. */
  6220. $ac_includes_default
  6221. int
  6222. main ()
  6223. {
  6224. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6225. test_array [0] = 0
  6226. ;
  6227. return 0;
  6228. }
  6229. _ACEOF
  6230. rm -f conftest.$ac_objext
  6231. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6232. (eval $ac_compile) 2>conftest.er1
  6233. ac_status=$?
  6234. grep -v '^ *+' conftest.er1 >conftest.err
  6235. rm -f conftest.er1
  6236. cat conftest.err >&5
  6237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); } &&
  6239. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6241. (eval $ac_try) 2>&5
  6242. ac_status=$?
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); }; } &&
  6245. { ac_try='test -s conftest.$ac_objext'
  6246. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6247. (eval $ac_try) 2>&5
  6248. ac_status=$?
  6249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6250. (exit $ac_status); }; }; then
  6251. ac_hi=-1 ac_mid=-1
  6252. while :; do
  6253. cat >conftest.$ac_ext <<_ACEOF
  6254. /* confdefs.h. */
  6255. _ACEOF
  6256. cat confdefs.h >>conftest.$ac_ext
  6257. cat >>conftest.$ac_ext <<_ACEOF
  6258. /* end confdefs.h. */
  6259. $ac_includes_default
  6260. int
  6261. main ()
  6262. {
  6263. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6264. test_array [0] = 0
  6265. ;
  6266. return 0;
  6267. }
  6268. _ACEOF
  6269. rm -f conftest.$ac_objext
  6270. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6271. (eval $ac_compile) 2>conftest.er1
  6272. ac_status=$?
  6273. grep -v '^ *+' conftest.er1 >conftest.err
  6274. rm -f conftest.er1
  6275. cat conftest.err >&5
  6276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6277. (exit $ac_status); } &&
  6278. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6280. (eval $ac_try) 2>&5
  6281. ac_status=$?
  6282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283. (exit $ac_status); }; } &&
  6284. { ac_try='test -s conftest.$ac_objext'
  6285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6286. (eval $ac_try) 2>&5
  6287. ac_status=$?
  6288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6289. (exit $ac_status); }; }; then
  6290. ac_lo=$ac_mid; break
  6291. else
  6292. echo "$as_me: failed program was:" >&5
  6293. sed 's/^/| /' conftest.$ac_ext >&5
  6294. ac_hi=`expr '(' $ac_mid ')' - 1`
  6295. if test $ac_mid -le $ac_hi; then
  6296. ac_lo= ac_hi=
  6297. break
  6298. fi
  6299. ac_mid=`expr 2 '*' $ac_mid`
  6300. fi
  6301. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6302. done
  6303. else
  6304. echo "$as_me: failed program was:" >&5
  6305. sed 's/^/| /' conftest.$ac_ext >&5
  6306. ac_lo= ac_hi=
  6307. fi
  6308. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6309. fi
  6310. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6311. # Binary search between lo and hi bounds.
  6312. while test "x$ac_lo" != "x$ac_hi"; do
  6313. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6314. cat >conftest.$ac_ext <<_ACEOF
  6315. /* confdefs.h. */
  6316. _ACEOF
  6317. cat confdefs.h >>conftest.$ac_ext
  6318. cat >>conftest.$ac_ext <<_ACEOF
  6319. /* end confdefs.h. */
  6320. $ac_includes_default
  6321. int
  6322. main ()
  6323. {
  6324. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6325. test_array [0] = 0
  6326. ;
  6327. return 0;
  6328. }
  6329. _ACEOF
  6330. rm -f conftest.$ac_objext
  6331. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6332. (eval $ac_compile) 2>conftest.er1
  6333. ac_status=$?
  6334. grep -v '^ *+' conftest.er1 >conftest.err
  6335. rm -f conftest.er1
  6336. cat conftest.err >&5
  6337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6338. (exit $ac_status); } &&
  6339. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6341. (eval $ac_try) 2>&5
  6342. ac_status=$?
  6343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6344. (exit $ac_status); }; } &&
  6345. { ac_try='test -s conftest.$ac_objext'
  6346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6347. (eval $ac_try) 2>&5
  6348. ac_status=$?
  6349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6350. (exit $ac_status); }; }; then
  6351. ac_hi=$ac_mid
  6352. else
  6353. echo "$as_me: failed program was:" >&5
  6354. sed 's/^/| /' conftest.$ac_ext >&5
  6355. ac_lo=`expr '(' $ac_mid ')' + 1`
  6356. fi
  6357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6358. done
  6359. case $ac_lo in
  6360. ?*) ac_cv_sizeof_int=$ac_lo;;
  6361. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6362. See \`config.log' for more details." >&5
  6363. echo "$as_me: error: cannot compute sizeof (int), 77
  6364. See \`config.log' for more details." >&2;}
  6365. { (exit 1); exit 1; }; } ;;
  6366. esac
  6367. else
  6368. if test "$cross_compiling" = yes; then
  6369. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6370. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6371. { (exit 1); exit 1; }; }
  6372. else
  6373. cat >conftest.$ac_ext <<_ACEOF
  6374. /* confdefs.h. */
  6375. _ACEOF
  6376. cat confdefs.h >>conftest.$ac_ext
  6377. cat >>conftest.$ac_ext <<_ACEOF
  6378. /* end confdefs.h. */
  6379. $ac_includes_default
  6380. long longval () { return (long) (sizeof (int)); }
  6381. unsigned long ulongval () { return (long) (sizeof (int)); }
  6382. #include <stdio.h>
  6383. #include <stdlib.h>
  6384. int
  6385. main ()
  6386. {
  6387. FILE *f = fopen ("conftest.val", "w");
  6388. if (! f)
  6389. exit (1);
  6390. if (((long) (sizeof (int))) < 0)
  6391. {
  6392. long i = longval ();
  6393. if (i != ((long) (sizeof (int))))
  6394. exit (1);
  6395. fprintf (f, "%ld\n", i);
  6396. }
  6397. else
  6398. {
  6399. unsigned long i = ulongval ();
  6400. if (i != ((long) (sizeof (int))))
  6401. exit (1);
  6402. fprintf (f, "%lu\n", i);
  6403. }
  6404. exit (ferror (f) || fclose (f) != 0);
  6405. ;
  6406. return 0;
  6407. }
  6408. _ACEOF
  6409. rm -f conftest$ac_exeext
  6410. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6411. (eval $ac_link) 2>&5
  6412. ac_status=$?
  6413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6415. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6416. (eval $ac_try) 2>&5
  6417. ac_status=$?
  6418. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6419. (exit $ac_status); }; }; then
  6420. ac_cv_sizeof_int=`cat conftest.val`
  6421. else
  6422. echo "$as_me: program exited with status $ac_status" >&5
  6423. echo "$as_me: failed program was:" >&5
  6424. sed 's/^/| /' conftest.$ac_ext >&5
  6425. ( exit $ac_status )
  6426. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6427. See \`config.log' for more details." >&5
  6428. echo "$as_me: error: cannot compute sizeof (int), 77
  6429. See \`config.log' for more details." >&2;}
  6430. { (exit 1); exit 1; }; }
  6431. fi
  6432. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6433. fi
  6434. fi
  6435. rm -f conftest.val
  6436. else
  6437. ac_cv_sizeof_int=0
  6438. fi
  6439. fi
  6440. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6441. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6442. cat >>confdefs.h <<_ACEOF
  6443. #define SIZEOF_INT $ac_cv_sizeof_int
  6444. _ACEOF
  6445. echo "$as_me:$LINENO: checking for short" >&5
  6446. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6447. if test "${ac_cv_type_short+set}" = set; then
  6448. echo $ECHO_N "(cached) $ECHO_C" >&6
  6449. else
  6450. cat >conftest.$ac_ext <<_ACEOF
  6451. /* confdefs.h. */
  6452. _ACEOF
  6453. cat confdefs.h >>conftest.$ac_ext
  6454. cat >>conftest.$ac_ext <<_ACEOF
  6455. /* end confdefs.h. */
  6456. $ac_includes_default
  6457. int
  6458. main ()
  6459. {
  6460. if ((short *) 0)
  6461. return 0;
  6462. if (sizeof (short))
  6463. return 0;
  6464. ;
  6465. return 0;
  6466. }
  6467. _ACEOF
  6468. rm -f conftest.$ac_objext
  6469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6470. (eval $ac_compile) 2>conftest.er1
  6471. ac_status=$?
  6472. grep -v '^ *+' conftest.er1 >conftest.err
  6473. rm -f conftest.er1
  6474. cat conftest.err >&5
  6475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6476. (exit $ac_status); } &&
  6477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6479. (eval $ac_try) 2>&5
  6480. ac_status=$?
  6481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6482. (exit $ac_status); }; } &&
  6483. { ac_try='test -s conftest.$ac_objext'
  6484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6485. (eval $ac_try) 2>&5
  6486. ac_status=$?
  6487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6488. (exit $ac_status); }; }; then
  6489. ac_cv_type_short=yes
  6490. else
  6491. echo "$as_me: failed program was:" >&5
  6492. sed 's/^/| /' conftest.$ac_ext >&5
  6493. ac_cv_type_short=no
  6494. fi
  6495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6496. fi
  6497. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6498. echo "${ECHO_T}$ac_cv_type_short" >&6
  6499. echo "$as_me:$LINENO: checking size of short" >&5
  6500. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6501. if test "${ac_cv_sizeof_short+set}" = set; then
  6502. echo $ECHO_N "(cached) $ECHO_C" >&6
  6503. else
  6504. if test "$ac_cv_type_short" = yes; then
  6505. # The cast to unsigned long works around a bug in the HP C Compiler
  6506. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6507. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6508. # This bug is HP SR number 8606223364.
  6509. if test "$cross_compiling" = yes; then
  6510. # Depending upon the size, compute the lo and hi bounds.
  6511. cat >conftest.$ac_ext <<_ACEOF
  6512. /* confdefs.h. */
  6513. _ACEOF
  6514. cat confdefs.h >>conftest.$ac_ext
  6515. cat >>conftest.$ac_ext <<_ACEOF
  6516. /* end confdefs.h. */
  6517. $ac_includes_default
  6518. int
  6519. main ()
  6520. {
  6521. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6522. test_array [0] = 0
  6523. ;
  6524. return 0;
  6525. }
  6526. _ACEOF
  6527. rm -f conftest.$ac_objext
  6528. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6529. (eval $ac_compile) 2>conftest.er1
  6530. ac_status=$?
  6531. grep -v '^ *+' conftest.er1 >conftest.err
  6532. rm -f conftest.er1
  6533. cat conftest.err >&5
  6534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6535. (exit $ac_status); } &&
  6536. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6538. (eval $ac_try) 2>&5
  6539. ac_status=$?
  6540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6541. (exit $ac_status); }; } &&
  6542. { ac_try='test -s conftest.$ac_objext'
  6543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6544. (eval $ac_try) 2>&5
  6545. ac_status=$?
  6546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6547. (exit $ac_status); }; }; then
  6548. ac_lo=0 ac_mid=0
  6549. while :; do
  6550. cat >conftest.$ac_ext <<_ACEOF
  6551. /* confdefs.h. */
  6552. _ACEOF
  6553. cat confdefs.h >>conftest.$ac_ext
  6554. cat >>conftest.$ac_ext <<_ACEOF
  6555. /* end confdefs.h. */
  6556. $ac_includes_default
  6557. int
  6558. main ()
  6559. {
  6560. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6561. test_array [0] = 0
  6562. ;
  6563. return 0;
  6564. }
  6565. _ACEOF
  6566. rm -f conftest.$ac_objext
  6567. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6568. (eval $ac_compile) 2>conftest.er1
  6569. ac_status=$?
  6570. grep -v '^ *+' conftest.er1 >conftest.err
  6571. rm -f conftest.er1
  6572. cat conftest.err >&5
  6573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6574. (exit $ac_status); } &&
  6575. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6577. (eval $ac_try) 2>&5
  6578. ac_status=$?
  6579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6580. (exit $ac_status); }; } &&
  6581. { ac_try='test -s conftest.$ac_objext'
  6582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6583. (eval $ac_try) 2>&5
  6584. ac_status=$?
  6585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6586. (exit $ac_status); }; }; then
  6587. ac_hi=$ac_mid; break
  6588. else
  6589. echo "$as_me: failed program was:" >&5
  6590. sed 's/^/| /' conftest.$ac_ext >&5
  6591. ac_lo=`expr $ac_mid + 1`
  6592. if test $ac_lo -le $ac_mid; then
  6593. ac_lo= ac_hi=
  6594. break
  6595. fi
  6596. ac_mid=`expr 2 '*' $ac_mid + 1`
  6597. fi
  6598. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6599. done
  6600. else
  6601. echo "$as_me: failed program was:" >&5
  6602. sed 's/^/| /' conftest.$ac_ext >&5
  6603. cat >conftest.$ac_ext <<_ACEOF
  6604. /* confdefs.h. */
  6605. _ACEOF
  6606. cat confdefs.h >>conftest.$ac_ext
  6607. cat >>conftest.$ac_ext <<_ACEOF
  6608. /* end confdefs.h. */
  6609. $ac_includes_default
  6610. int
  6611. main ()
  6612. {
  6613. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6614. test_array [0] = 0
  6615. ;
  6616. return 0;
  6617. }
  6618. _ACEOF
  6619. rm -f conftest.$ac_objext
  6620. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6621. (eval $ac_compile) 2>conftest.er1
  6622. ac_status=$?
  6623. grep -v '^ *+' conftest.er1 >conftest.err
  6624. rm -f conftest.er1
  6625. cat conftest.err >&5
  6626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6627. (exit $ac_status); } &&
  6628. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6630. (eval $ac_try) 2>&5
  6631. ac_status=$?
  6632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6633. (exit $ac_status); }; } &&
  6634. { ac_try='test -s conftest.$ac_objext'
  6635. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6636. (eval $ac_try) 2>&5
  6637. ac_status=$?
  6638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6639. (exit $ac_status); }; }; then
  6640. ac_hi=-1 ac_mid=-1
  6641. while :; do
  6642. cat >conftest.$ac_ext <<_ACEOF
  6643. /* confdefs.h. */
  6644. _ACEOF
  6645. cat confdefs.h >>conftest.$ac_ext
  6646. cat >>conftest.$ac_ext <<_ACEOF
  6647. /* end confdefs.h. */
  6648. $ac_includes_default
  6649. int
  6650. main ()
  6651. {
  6652. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6653. test_array [0] = 0
  6654. ;
  6655. return 0;
  6656. }
  6657. _ACEOF
  6658. rm -f conftest.$ac_objext
  6659. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6660. (eval $ac_compile) 2>conftest.er1
  6661. ac_status=$?
  6662. grep -v '^ *+' conftest.er1 >conftest.err
  6663. rm -f conftest.er1
  6664. cat conftest.err >&5
  6665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6666. (exit $ac_status); } &&
  6667. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6669. (eval $ac_try) 2>&5
  6670. ac_status=$?
  6671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6672. (exit $ac_status); }; } &&
  6673. { ac_try='test -s conftest.$ac_objext'
  6674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6675. (eval $ac_try) 2>&5
  6676. ac_status=$?
  6677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6678. (exit $ac_status); }; }; then
  6679. ac_lo=$ac_mid; break
  6680. else
  6681. echo "$as_me: failed program was:" >&5
  6682. sed 's/^/| /' conftest.$ac_ext >&5
  6683. ac_hi=`expr '(' $ac_mid ')' - 1`
  6684. if test $ac_mid -le $ac_hi; then
  6685. ac_lo= ac_hi=
  6686. break
  6687. fi
  6688. ac_mid=`expr 2 '*' $ac_mid`
  6689. fi
  6690. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6691. done
  6692. else
  6693. echo "$as_me: failed program was:" >&5
  6694. sed 's/^/| /' conftest.$ac_ext >&5
  6695. ac_lo= ac_hi=
  6696. fi
  6697. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6698. fi
  6699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6700. # Binary search between lo and hi bounds.
  6701. while test "x$ac_lo" != "x$ac_hi"; do
  6702. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6703. cat >conftest.$ac_ext <<_ACEOF
  6704. /* confdefs.h. */
  6705. _ACEOF
  6706. cat confdefs.h >>conftest.$ac_ext
  6707. cat >>conftest.$ac_ext <<_ACEOF
  6708. /* end confdefs.h. */
  6709. $ac_includes_default
  6710. int
  6711. main ()
  6712. {
  6713. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6714. test_array [0] = 0
  6715. ;
  6716. return 0;
  6717. }
  6718. _ACEOF
  6719. rm -f conftest.$ac_objext
  6720. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6721. (eval $ac_compile) 2>conftest.er1
  6722. ac_status=$?
  6723. grep -v '^ *+' conftest.er1 >conftest.err
  6724. rm -f conftest.er1
  6725. cat conftest.err >&5
  6726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6727. (exit $ac_status); } &&
  6728. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6730. (eval $ac_try) 2>&5
  6731. ac_status=$?
  6732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6733. (exit $ac_status); }; } &&
  6734. { ac_try='test -s conftest.$ac_objext'
  6735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6736. (eval $ac_try) 2>&5
  6737. ac_status=$?
  6738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6739. (exit $ac_status); }; }; then
  6740. ac_hi=$ac_mid
  6741. else
  6742. echo "$as_me: failed program was:" >&5
  6743. sed 's/^/| /' conftest.$ac_ext >&5
  6744. ac_lo=`expr '(' $ac_mid ')' + 1`
  6745. fi
  6746. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6747. done
  6748. case $ac_lo in
  6749. ?*) ac_cv_sizeof_short=$ac_lo;;
  6750. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6751. See \`config.log' for more details." >&5
  6752. echo "$as_me: error: cannot compute sizeof (short), 77
  6753. See \`config.log' for more details." >&2;}
  6754. { (exit 1); exit 1; }; } ;;
  6755. esac
  6756. else
  6757. if test "$cross_compiling" = yes; then
  6758. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6759. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6760. { (exit 1); exit 1; }; }
  6761. else
  6762. cat >conftest.$ac_ext <<_ACEOF
  6763. /* confdefs.h. */
  6764. _ACEOF
  6765. cat confdefs.h >>conftest.$ac_ext
  6766. cat >>conftest.$ac_ext <<_ACEOF
  6767. /* end confdefs.h. */
  6768. $ac_includes_default
  6769. long longval () { return (long) (sizeof (short)); }
  6770. unsigned long ulongval () { return (long) (sizeof (short)); }
  6771. #include <stdio.h>
  6772. #include <stdlib.h>
  6773. int
  6774. main ()
  6775. {
  6776. FILE *f = fopen ("conftest.val", "w");
  6777. if (! f)
  6778. exit (1);
  6779. if (((long) (sizeof (short))) < 0)
  6780. {
  6781. long i = longval ();
  6782. if (i != ((long) (sizeof (short))))
  6783. exit (1);
  6784. fprintf (f, "%ld\n", i);
  6785. }
  6786. else
  6787. {
  6788. unsigned long i = ulongval ();
  6789. if (i != ((long) (sizeof (short))))
  6790. exit (1);
  6791. fprintf (f, "%lu\n", i);
  6792. }
  6793. exit (ferror (f) || fclose (f) != 0);
  6794. ;
  6795. return 0;
  6796. }
  6797. _ACEOF
  6798. rm -f conftest$ac_exeext
  6799. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6800. (eval $ac_link) 2>&5
  6801. ac_status=$?
  6802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6803. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6805. (eval $ac_try) 2>&5
  6806. ac_status=$?
  6807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6808. (exit $ac_status); }; }; then
  6809. ac_cv_sizeof_short=`cat conftest.val`
  6810. else
  6811. echo "$as_me: program exited with status $ac_status" >&5
  6812. echo "$as_me: failed program was:" >&5
  6813. sed 's/^/| /' conftest.$ac_ext >&5
  6814. ( exit $ac_status )
  6815. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6816. See \`config.log' for more details." >&5
  6817. echo "$as_me: error: cannot compute sizeof (short), 77
  6818. See \`config.log' for more details." >&2;}
  6819. { (exit 1); exit 1; }; }
  6820. fi
  6821. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6822. fi
  6823. fi
  6824. rm -f conftest.val
  6825. else
  6826. ac_cv_sizeof_short=0
  6827. fi
  6828. fi
  6829. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6830. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  6831. cat >>confdefs.h <<_ACEOF
  6832. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6833. _ACEOF
  6834. echo "$as_me:$LINENO: checking for long" >&5
  6835. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6836. if test "${ac_cv_type_long+set}" = set; then
  6837. echo $ECHO_N "(cached) $ECHO_C" >&6
  6838. else
  6839. cat >conftest.$ac_ext <<_ACEOF
  6840. /* confdefs.h. */
  6841. _ACEOF
  6842. cat confdefs.h >>conftest.$ac_ext
  6843. cat >>conftest.$ac_ext <<_ACEOF
  6844. /* end confdefs.h. */
  6845. $ac_includes_default
  6846. int
  6847. main ()
  6848. {
  6849. if ((long *) 0)
  6850. return 0;
  6851. if (sizeof (long))
  6852. return 0;
  6853. ;
  6854. return 0;
  6855. }
  6856. _ACEOF
  6857. rm -f conftest.$ac_objext
  6858. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6859. (eval $ac_compile) 2>conftest.er1
  6860. ac_status=$?
  6861. grep -v '^ *+' conftest.er1 >conftest.err
  6862. rm -f conftest.er1
  6863. cat conftest.err >&5
  6864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6865. (exit $ac_status); } &&
  6866. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6868. (eval $ac_try) 2>&5
  6869. ac_status=$?
  6870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6871. (exit $ac_status); }; } &&
  6872. { ac_try='test -s conftest.$ac_objext'
  6873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6874. (eval $ac_try) 2>&5
  6875. ac_status=$?
  6876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6877. (exit $ac_status); }; }; then
  6878. ac_cv_type_long=yes
  6879. else
  6880. echo "$as_me: failed program was:" >&5
  6881. sed 's/^/| /' conftest.$ac_ext >&5
  6882. ac_cv_type_long=no
  6883. fi
  6884. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6885. fi
  6886. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6887. echo "${ECHO_T}$ac_cv_type_long" >&6
  6888. echo "$as_me:$LINENO: checking size of long" >&5
  6889. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6890. if test "${ac_cv_sizeof_long+set}" = set; then
  6891. echo $ECHO_N "(cached) $ECHO_C" >&6
  6892. else
  6893. if test "$ac_cv_type_long" = yes; then
  6894. # The cast to unsigned long works around a bug in the HP C Compiler
  6895. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6896. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6897. # This bug is HP SR number 8606223364.
  6898. if test "$cross_compiling" = yes; then
  6899. # Depending upon the size, compute the lo and hi bounds.
  6900. cat >conftest.$ac_ext <<_ACEOF
  6901. /* confdefs.h. */
  6902. _ACEOF
  6903. cat confdefs.h >>conftest.$ac_ext
  6904. cat >>conftest.$ac_ext <<_ACEOF
  6905. /* end confdefs.h. */
  6906. $ac_includes_default
  6907. int
  6908. main ()
  6909. {
  6910. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6911. test_array [0] = 0
  6912. ;
  6913. return 0;
  6914. }
  6915. _ACEOF
  6916. rm -f conftest.$ac_objext
  6917. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6918. (eval $ac_compile) 2>conftest.er1
  6919. ac_status=$?
  6920. grep -v '^ *+' conftest.er1 >conftest.err
  6921. rm -f conftest.er1
  6922. cat conftest.err >&5
  6923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6924. (exit $ac_status); } &&
  6925. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6927. (eval $ac_try) 2>&5
  6928. ac_status=$?
  6929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6930. (exit $ac_status); }; } &&
  6931. { ac_try='test -s conftest.$ac_objext'
  6932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6933. (eval $ac_try) 2>&5
  6934. ac_status=$?
  6935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6936. (exit $ac_status); }; }; then
  6937. ac_lo=0 ac_mid=0
  6938. while :; do
  6939. cat >conftest.$ac_ext <<_ACEOF
  6940. /* confdefs.h. */
  6941. _ACEOF
  6942. cat confdefs.h >>conftest.$ac_ext
  6943. cat >>conftest.$ac_ext <<_ACEOF
  6944. /* end confdefs.h. */
  6945. $ac_includes_default
  6946. int
  6947. main ()
  6948. {
  6949. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6950. test_array [0] = 0
  6951. ;
  6952. return 0;
  6953. }
  6954. _ACEOF
  6955. rm -f conftest.$ac_objext
  6956. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6957. (eval $ac_compile) 2>conftest.er1
  6958. ac_status=$?
  6959. grep -v '^ *+' conftest.er1 >conftest.err
  6960. rm -f conftest.er1
  6961. cat conftest.err >&5
  6962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6963. (exit $ac_status); } &&
  6964. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6966. (eval $ac_try) 2>&5
  6967. ac_status=$?
  6968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. (exit $ac_status); }; } &&
  6970. { ac_try='test -s conftest.$ac_objext'
  6971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6972. (eval $ac_try) 2>&5
  6973. ac_status=$?
  6974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6975. (exit $ac_status); }; }; then
  6976. ac_hi=$ac_mid; break
  6977. else
  6978. echo "$as_me: failed program was:" >&5
  6979. sed 's/^/| /' conftest.$ac_ext >&5
  6980. ac_lo=`expr $ac_mid + 1`
  6981. if test $ac_lo -le $ac_mid; then
  6982. ac_lo= ac_hi=
  6983. break
  6984. fi
  6985. ac_mid=`expr 2 '*' $ac_mid + 1`
  6986. fi
  6987. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6988. done
  6989. else
  6990. echo "$as_me: failed program was:" >&5
  6991. sed 's/^/| /' conftest.$ac_ext >&5
  6992. cat >conftest.$ac_ext <<_ACEOF
  6993. /* confdefs.h. */
  6994. _ACEOF
  6995. cat confdefs.h >>conftest.$ac_ext
  6996. cat >>conftest.$ac_ext <<_ACEOF
  6997. /* end confdefs.h. */
  6998. $ac_includes_default
  6999. int
  7000. main ()
  7001. {
  7002. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7003. test_array [0] = 0
  7004. ;
  7005. return 0;
  7006. }
  7007. _ACEOF
  7008. rm -f conftest.$ac_objext
  7009. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7010. (eval $ac_compile) 2>conftest.er1
  7011. ac_status=$?
  7012. grep -v '^ *+' conftest.er1 >conftest.err
  7013. rm -f conftest.er1
  7014. cat conftest.err >&5
  7015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7016. (exit $ac_status); } &&
  7017. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7019. (eval $ac_try) 2>&5
  7020. ac_status=$?
  7021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7022. (exit $ac_status); }; } &&
  7023. { ac_try='test -s conftest.$ac_objext'
  7024. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7025. (eval $ac_try) 2>&5
  7026. ac_status=$?
  7027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7028. (exit $ac_status); }; }; then
  7029. ac_hi=-1 ac_mid=-1
  7030. while :; do
  7031. cat >conftest.$ac_ext <<_ACEOF
  7032. /* confdefs.h. */
  7033. _ACEOF
  7034. cat confdefs.h >>conftest.$ac_ext
  7035. cat >>conftest.$ac_ext <<_ACEOF
  7036. /* end confdefs.h. */
  7037. $ac_includes_default
  7038. int
  7039. main ()
  7040. {
  7041. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7042. test_array [0] = 0
  7043. ;
  7044. return 0;
  7045. }
  7046. _ACEOF
  7047. rm -f conftest.$ac_objext
  7048. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7049. (eval $ac_compile) 2>conftest.er1
  7050. ac_status=$?
  7051. grep -v '^ *+' conftest.er1 >conftest.err
  7052. rm -f conftest.er1
  7053. cat conftest.err >&5
  7054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7055. (exit $ac_status); } &&
  7056. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7058. (eval $ac_try) 2>&5
  7059. ac_status=$?
  7060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7061. (exit $ac_status); }; } &&
  7062. { ac_try='test -s conftest.$ac_objext'
  7063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7064. (eval $ac_try) 2>&5
  7065. ac_status=$?
  7066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7067. (exit $ac_status); }; }; then
  7068. ac_lo=$ac_mid; break
  7069. else
  7070. echo "$as_me: failed program was:" >&5
  7071. sed 's/^/| /' conftest.$ac_ext >&5
  7072. ac_hi=`expr '(' $ac_mid ')' - 1`
  7073. if test $ac_mid -le $ac_hi; then
  7074. ac_lo= ac_hi=
  7075. break
  7076. fi
  7077. ac_mid=`expr 2 '*' $ac_mid`
  7078. fi
  7079. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7080. done
  7081. else
  7082. echo "$as_me: failed program was:" >&5
  7083. sed 's/^/| /' conftest.$ac_ext >&5
  7084. ac_lo= ac_hi=
  7085. fi
  7086. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7087. fi
  7088. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7089. # Binary search between lo and hi bounds.
  7090. while test "x$ac_lo" != "x$ac_hi"; do
  7091. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7092. cat >conftest.$ac_ext <<_ACEOF
  7093. /* confdefs.h. */
  7094. _ACEOF
  7095. cat confdefs.h >>conftest.$ac_ext
  7096. cat >>conftest.$ac_ext <<_ACEOF
  7097. /* end confdefs.h. */
  7098. $ac_includes_default
  7099. int
  7100. main ()
  7101. {
  7102. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7103. test_array [0] = 0
  7104. ;
  7105. return 0;
  7106. }
  7107. _ACEOF
  7108. rm -f conftest.$ac_objext
  7109. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7110. (eval $ac_compile) 2>conftest.er1
  7111. ac_status=$?
  7112. grep -v '^ *+' conftest.er1 >conftest.err
  7113. rm -f conftest.er1
  7114. cat conftest.err >&5
  7115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7116. (exit $ac_status); } &&
  7117. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7119. (eval $ac_try) 2>&5
  7120. ac_status=$?
  7121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7122. (exit $ac_status); }; } &&
  7123. { ac_try='test -s conftest.$ac_objext'
  7124. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7125. (eval $ac_try) 2>&5
  7126. ac_status=$?
  7127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7128. (exit $ac_status); }; }; then
  7129. ac_hi=$ac_mid
  7130. else
  7131. echo "$as_me: failed program was:" >&5
  7132. sed 's/^/| /' conftest.$ac_ext >&5
  7133. ac_lo=`expr '(' $ac_mid ')' + 1`
  7134. fi
  7135. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7136. done
  7137. case $ac_lo in
  7138. ?*) ac_cv_sizeof_long=$ac_lo;;
  7139. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7140. See \`config.log' for more details." >&5
  7141. echo "$as_me: error: cannot compute sizeof (long), 77
  7142. See \`config.log' for more details." >&2;}
  7143. { (exit 1); exit 1; }; } ;;
  7144. esac
  7145. else
  7146. if test "$cross_compiling" = yes; then
  7147. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7148. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7149. { (exit 1); exit 1; }; }
  7150. else
  7151. cat >conftest.$ac_ext <<_ACEOF
  7152. /* confdefs.h. */
  7153. _ACEOF
  7154. cat confdefs.h >>conftest.$ac_ext
  7155. cat >>conftest.$ac_ext <<_ACEOF
  7156. /* end confdefs.h. */
  7157. $ac_includes_default
  7158. long longval () { return (long) (sizeof (long)); }
  7159. unsigned long ulongval () { return (long) (sizeof (long)); }
  7160. #include <stdio.h>
  7161. #include <stdlib.h>
  7162. int
  7163. main ()
  7164. {
  7165. FILE *f = fopen ("conftest.val", "w");
  7166. if (! f)
  7167. exit (1);
  7168. if (((long) (sizeof (long))) < 0)
  7169. {
  7170. long i = longval ();
  7171. if (i != ((long) (sizeof (long))))
  7172. exit (1);
  7173. fprintf (f, "%ld\n", i);
  7174. }
  7175. else
  7176. {
  7177. unsigned long i = ulongval ();
  7178. if (i != ((long) (sizeof (long))))
  7179. exit (1);
  7180. fprintf (f, "%lu\n", i);
  7181. }
  7182. exit (ferror (f) || fclose (f) != 0);
  7183. ;
  7184. return 0;
  7185. }
  7186. _ACEOF
  7187. rm -f conftest$ac_exeext
  7188. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7189. (eval $ac_link) 2>&5
  7190. ac_status=$?
  7191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7192. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7194. (eval $ac_try) 2>&5
  7195. ac_status=$?
  7196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. (exit $ac_status); }; }; then
  7198. ac_cv_sizeof_long=`cat conftest.val`
  7199. else
  7200. echo "$as_me: program exited with status $ac_status" >&5
  7201. echo "$as_me: failed program was:" >&5
  7202. sed 's/^/| /' conftest.$ac_ext >&5
  7203. ( exit $ac_status )
  7204. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7205. See \`config.log' for more details." >&5
  7206. echo "$as_me: error: cannot compute sizeof (long), 77
  7207. See \`config.log' for more details." >&2;}
  7208. { (exit 1); exit 1; }; }
  7209. fi
  7210. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7211. fi
  7212. fi
  7213. rm -f conftest.val
  7214. else
  7215. ac_cv_sizeof_long=0
  7216. fi
  7217. fi
  7218. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7219. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7220. cat >>confdefs.h <<_ACEOF
  7221. #define SIZEOF_LONG $ac_cv_sizeof_long
  7222. _ACEOF
  7223. echo "$as_me:$LINENO: checking for long long" >&5
  7224. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7225. if test "${ac_cv_type_long_long+set}" = set; then
  7226. echo $ECHO_N "(cached) $ECHO_C" >&6
  7227. else
  7228. cat >conftest.$ac_ext <<_ACEOF
  7229. /* confdefs.h. */
  7230. _ACEOF
  7231. cat confdefs.h >>conftest.$ac_ext
  7232. cat >>conftest.$ac_ext <<_ACEOF
  7233. /* end confdefs.h. */
  7234. $ac_includes_default
  7235. int
  7236. main ()
  7237. {
  7238. if ((long long *) 0)
  7239. return 0;
  7240. if (sizeof (long long))
  7241. return 0;
  7242. ;
  7243. return 0;
  7244. }
  7245. _ACEOF
  7246. rm -f conftest.$ac_objext
  7247. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7248. (eval $ac_compile) 2>conftest.er1
  7249. ac_status=$?
  7250. grep -v '^ *+' conftest.er1 >conftest.err
  7251. rm -f conftest.er1
  7252. cat conftest.err >&5
  7253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. (exit $ac_status); } &&
  7255. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7257. (eval $ac_try) 2>&5
  7258. ac_status=$?
  7259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7260. (exit $ac_status); }; } &&
  7261. { ac_try='test -s conftest.$ac_objext'
  7262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7263. (eval $ac_try) 2>&5
  7264. ac_status=$?
  7265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266. (exit $ac_status); }; }; then
  7267. ac_cv_type_long_long=yes
  7268. else
  7269. echo "$as_me: failed program was:" >&5
  7270. sed 's/^/| /' conftest.$ac_ext >&5
  7271. ac_cv_type_long_long=no
  7272. fi
  7273. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7274. fi
  7275. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7276. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7277. echo "$as_me:$LINENO: checking size of long long" >&5
  7278. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7279. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7280. echo $ECHO_N "(cached) $ECHO_C" >&6
  7281. else
  7282. if test "$ac_cv_type_long_long" = yes; then
  7283. # The cast to unsigned long works around a bug in the HP C Compiler
  7284. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7285. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7286. # This bug is HP SR number 8606223364.
  7287. if test "$cross_compiling" = yes; then
  7288. # Depending upon the size, compute the lo and hi bounds.
  7289. cat >conftest.$ac_ext <<_ACEOF
  7290. /* confdefs.h. */
  7291. _ACEOF
  7292. cat confdefs.h >>conftest.$ac_ext
  7293. cat >>conftest.$ac_ext <<_ACEOF
  7294. /* end confdefs.h. */
  7295. $ac_includes_default
  7296. int
  7297. main ()
  7298. {
  7299. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7300. test_array [0] = 0
  7301. ;
  7302. return 0;
  7303. }
  7304. _ACEOF
  7305. rm -f conftest.$ac_objext
  7306. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7307. (eval $ac_compile) 2>conftest.er1
  7308. ac_status=$?
  7309. grep -v '^ *+' conftest.er1 >conftest.err
  7310. rm -f conftest.er1
  7311. cat conftest.err >&5
  7312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7313. (exit $ac_status); } &&
  7314. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7316. (eval $ac_try) 2>&5
  7317. ac_status=$?
  7318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7319. (exit $ac_status); }; } &&
  7320. { ac_try='test -s conftest.$ac_objext'
  7321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7322. (eval $ac_try) 2>&5
  7323. ac_status=$?
  7324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7325. (exit $ac_status); }; }; then
  7326. ac_lo=0 ac_mid=0
  7327. while :; do
  7328. cat >conftest.$ac_ext <<_ACEOF
  7329. /* confdefs.h. */
  7330. _ACEOF
  7331. cat confdefs.h >>conftest.$ac_ext
  7332. cat >>conftest.$ac_ext <<_ACEOF
  7333. /* end confdefs.h. */
  7334. $ac_includes_default
  7335. int
  7336. main ()
  7337. {
  7338. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7339. test_array [0] = 0
  7340. ;
  7341. return 0;
  7342. }
  7343. _ACEOF
  7344. rm -f conftest.$ac_objext
  7345. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7346. (eval $ac_compile) 2>conftest.er1
  7347. ac_status=$?
  7348. grep -v '^ *+' conftest.er1 >conftest.err
  7349. rm -f conftest.er1
  7350. cat conftest.err >&5
  7351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7352. (exit $ac_status); } &&
  7353. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7355. (eval $ac_try) 2>&5
  7356. ac_status=$?
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. (exit $ac_status); }; } &&
  7359. { ac_try='test -s conftest.$ac_objext'
  7360. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7361. (eval $ac_try) 2>&5
  7362. ac_status=$?
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. (exit $ac_status); }; }; then
  7365. ac_hi=$ac_mid; break
  7366. else
  7367. echo "$as_me: failed program was:" >&5
  7368. sed 's/^/| /' conftest.$ac_ext >&5
  7369. ac_lo=`expr $ac_mid + 1`
  7370. if test $ac_lo -le $ac_mid; then
  7371. ac_lo= ac_hi=
  7372. break
  7373. fi
  7374. ac_mid=`expr 2 '*' $ac_mid + 1`
  7375. fi
  7376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7377. done
  7378. else
  7379. echo "$as_me: failed program was:" >&5
  7380. sed 's/^/| /' conftest.$ac_ext >&5
  7381. cat >conftest.$ac_ext <<_ACEOF
  7382. /* confdefs.h. */
  7383. _ACEOF
  7384. cat confdefs.h >>conftest.$ac_ext
  7385. cat >>conftest.$ac_ext <<_ACEOF
  7386. /* end confdefs.h. */
  7387. $ac_includes_default
  7388. int
  7389. main ()
  7390. {
  7391. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7392. test_array [0] = 0
  7393. ;
  7394. return 0;
  7395. }
  7396. _ACEOF
  7397. rm -f conftest.$ac_objext
  7398. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7399. (eval $ac_compile) 2>conftest.er1
  7400. ac_status=$?
  7401. grep -v '^ *+' conftest.er1 >conftest.err
  7402. rm -f conftest.er1
  7403. cat conftest.err >&5
  7404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7405. (exit $ac_status); } &&
  7406. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7408. (eval $ac_try) 2>&5
  7409. ac_status=$?
  7410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411. (exit $ac_status); }; } &&
  7412. { ac_try='test -s conftest.$ac_objext'
  7413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7414. (eval $ac_try) 2>&5
  7415. ac_status=$?
  7416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7417. (exit $ac_status); }; }; then
  7418. ac_hi=-1 ac_mid=-1
  7419. while :; do
  7420. cat >conftest.$ac_ext <<_ACEOF
  7421. /* confdefs.h. */
  7422. _ACEOF
  7423. cat confdefs.h >>conftest.$ac_ext
  7424. cat >>conftest.$ac_ext <<_ACEOF
  7425. /* end confdefs.h. */
  7426. $ac_includes_default
  7427. int
  7428. main ()
  7429. {
  7430. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7431. test_array [0] = 0
  7432. ;
  7433. return 0;
  7434. }
  7435. _ACEOF
  7436. rm -f conftest.$ac_objext
  7437. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7438. (eval $ac_compile) 2>conftest.er1
  7439. ac_status=$?
  7440. grep -v '^ *+' conftest.er1 >conftest.err
  7441. rm -f conftest.er1
  7442. cat conftest.err >&5
  7443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444. (exit $ac_status); } &&
  7445. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7447. (eval $ac_try) 2>&5
  7448. ac_status=$?
  7449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7450. (exit $ac_status); }; } &&
  7451. { ac_try='test -s conftest.$ac_objext'
  7452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7453. (eval $ac_try) 2>&5
  7454. ac_status=$?
  7455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7456. (exit $ac_status); }; }; then
  7457. ac_lo=$ac_mid; break
  7458. else
  7459. echo "$as_me: failed program was:" >&5
  7460. sed 's/^/| /' conftest.$ac_ext >&5
  7461. ac_hi=`expr '(' $ac_mid ')' - 1`
  7462. if test $ac_mid -le $ac_hi; then
  7463. ac_lo= ac_hi=
  7464. break
  7465. fi
  7466. ac_mid=`expr 2 '*' $ac_mid`
  7467. fi
  7468. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7469. done
  7470. else
  7471. echo "$as_me: failed program was:" >&5
  7472. sed 's/^/| /' conftest.$ac_ext >&5
  7473. ac_lo= ac_hi=
  7474. fi
  7475. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7476. fi
  7477. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7478. # Binary search between lo and hi bounds.
  7479. while test "x$ac_lo" != "x$ac_hi"; do
  7480. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7481. cat >conftest.$ac_ext <<_ACEOF
  7482. /* confdefs.h. */
  7483. _ACEOF
  7484. cat confdefs.h >>conftest.$ac_ext
  7485. cat >>conftest.$ac_ext <<_ACEOF
  7486. /* end confdefs.h. */
  7487. $ac_includes_default
  7488. int
  7489. main ()
  7490. {
  7491. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7492. test_array [0] = 0
  7493. ;
  7494. return 0;
  7495. }
  7496. _ACEOF
  7497. rm -f conftest.$ac_objext
  7498. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7499. (eval $ac_compile) 2>conftest.er1
  7500. ac_status=$?
  7501. grep -v '^ *+' conftest.er1 >conftest.err
  7502. rm -f conftest.er1
  7503. cat conftest.err >&5
  7504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7505. (exit $ac_status); } &&
  7506. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7507. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7508. (eval $ac_try) 2>&5
  7509. ac_status=$?
  7510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7511. (exit $ac_status); }; } &&
  7512. { ac_try='test -s conftest.$ac_objext'
  7513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7514. (eval $ac_try) 2>&5
  7515. ac_status=$?
  7516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7517. (exit $ac_status); }; }; then
  7518. ac_hi=$ac_mid
  7519. else
  7520. echo "$as_me: failed program was:" >&5
  7521. sed 's/^/| /' conftest.$ac_ext >&5
  7522. ac_lo=`expr '(' $ac_mid ')' + 1`
  7523. fi
  7524. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7525. done
  7526. case $ac_lo in
  7527. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7528. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7529. See \`config.log' for more details." >&5
  7530. echo "$as_me: error: cannot compute sizeof (long long), 77
  7531. See \`config.log' for more details." >&2;}
  7532. { (exit 1); exit 1; }; } ;;
  7533. esac
  7534. else
  7535. if test "$cross_compiling" = yes; then
  7536. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7537. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7538. { (exit 1); exit 1; }; }
  7539. else
  7540. cat >conftest.$ac_ext <<_ACEOF
  7541. /* confdefs.h. */
  7542. _ACEOF
  7543. cat confdefs.h >>conftest.$ac_ext
  7544. cat >>conftest.$ac_ext <<_ACEOF
  7545. /* end confdefs.h. */
  7546. $ac_includes_default
  7547. long longval () { return (long) (sizeof (long long)); }
  7548. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7549. #include <stdio.h>
  7550. #include <stdlib.h>
  7551. int
  7552. main ()
  7553. {
  7554. FILE *f = fopen ("conftest.val", "w");
  7555. if (! f)
  7556. exit (1);
  7557. if (((long) (sizeof (long long))) < 0)
  7558. {
  7559. long i = longval ();
  7560. if (i != ((long) (sizeof (long long))))
  7561. exit (1);
  7562. fprintf (f, "%ld\n", i);
  7563. }
  7564. else
  7565. {
  7566. unsigned long i = ulongval ();
  7567. if (i != ((long) (sizeof (long long))))
  7568. exit (1);
  7569. fprintf (f, "%lu\n", i);
  7570. }
  7571. exit (ferror (f) || fclose (f) != 0);
  7572. ;
  7573. return 0;
  7574. }
  7575. _ACEOF
  7576. rm -f conftest$ac_exeext
  7577. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7578. (eval $ac_link) 2>&5
  7579. ac_status=$?
  7580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7581. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7583. (eval $ac_try) 2>&5
  7584. ac_status=$?
  7585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7586. (exit $ac_status); }; }; then
  7587. ac_cv_sizeof_long_long=`cat conftest.val`
  7588. else
  7589. echo "$as_me: program exited with status $ac_status" >&5
  7590. echo "$as_me: failed program was:" >&5
  7591. sed 's/^/| /' conftest.$ac_ext >&5
  7592. ( exit $ac_status )
  7593. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7594. See \`config.log' for more details." >&5
  7595. echo "$as_me: error: cannot compute sizeof (long long), 77
  7596. See \`config.log' for more details." >&2;}
  7597. { (exit 1); exit 1; }; }
  7598. fi
  7599. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7600. fi
  7601. fi
  7602. rm -f conftest.val
  7603. else
  7604. ac_cv_sizeof_long_long=0
  7605. fi
  7606. fi
  7607. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7608. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7609. cat >>confdefs.h <<_ACEOF
  7610. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7611. _ACEOF
  7612. #checkpoint
  7613. cat >confcache <<\_ACEOF
  7614. # This file is a shell script that caches the results of configure
  7615. # tests run on this system so they can be shared between configure
  7616. # scripts and configure runs, see configure's option --config-cache.
  7617. # It is not useful on other systems. If it contains results you don't
  7618. # want to keep, you may remove or edit it.
  7619. #
  7620. # config.status only pays attention to the cache file if you give it
  7621. # the --recheck option to rerun configure.
  7622. #
  7623. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7624. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7625. # following values.
  7626. _ACEOF
  7627. # The following way of writing the cache mishandles newlines in values,
  7628. # but we know of no workaround that is simple, portable, and efficient.
  7629. # So, don't put newlines in cache variables' values.
  7630. # Ultrix sh set writes to stderr and can't be redirected directly,
  7631. # and sets the high bit in the cache file unless we assign to the vars.
  7632. {
  7633. (set) 2>&1 |
  7634. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7635. *ac_space=\ *)
  7636. # `set' does not quote correctly, so add quotes (double-quote
  7637. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7638. sed -n \
  7639. "s/'/'\\\\''/g;
  7640. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7641. ;;
  7642. *)
  7643. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7644. sed -n \
  7645. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7646. ;;
  7647. esac;
  7648. } |
  7649. sed '
  7650. t clear
  7651. : clear
  7652. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7653. t end
  7654. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7655. : end' >>confcache
  7656. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7657. if test -w $cache_file; then
  7658. test "x$cache_file" != "x/dev/null"
  7659. cat confcache >$cache_file
  7660. else
  7661. echo "not updating unwritable cache $cache_file"
  7662. fi
  7663. fi
  7664. rm -f confcache
  7665. echo "$as_me:$LINENO: checking for working volatile" >&5
  7666. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7667. if test "${ac_cv_c_volatile+set}" = set; then
  7668. echo $ECHO_N "(cached) $ECHO_C" >&6
  7669. else
  7670. cat >conftest.$ac_ext <<_ACEOF
  7671. /* confdefs.h. */
  7672. _ACEOF
  7673. cat confdefs.h >>conftest.$ac_ext
  7674. cat >>conftest.$ac_ext <<_ACEOF
  7675. /* end confdefs.h. */
  7676. int
  7677. main ()
  7678. {
  7679. volatile int x;
  7680. int * volatile y;
  7681. ;
  7682. return 0;
  7683. }
  7684. _ACEOF
  7685. rm -f conftest.$ac_objext
  7686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7687. (eval $ac_compile) 2>conftest.er1
  7688. ac_status=$?
  7689. grep -v '^ *+' conftest.er1 >conftest.err
  7690. rm -f conftest.er1
  7691. cat conftest.err >&5
  7692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7693. (exit $ac_status); } &&
  7694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7696. (eval $ac_try) 2>&5
  7697. ac_status=$?
  7698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7699. (exit $ac_status); }; } &&
  7700. { ac_try='test -s conftest.$ac_objext'
  7701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7702. (eval $ac_try) 2>&5
  7703. ac_status=$?
  7704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); }; }; then
  7706. ac_cv_c_volatile=yes
  7707. else
  7708. echo "$as_me: failed program was:" >&5
  7709. sed 's/^/| /' conftest.$ac_ext >&5
  7710. ac_cv_c_volatile=no
  7711. fi
  7712. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7713. fi
  7714. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7715. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7716. if test $ac_cv_c_volatile = no; then
  7717. cat >>confdefs.h <<\_ACEOF
  7718. #define volatile
  7719. _ACEOF
  7720. fi
  7721. if test $ac_cv_c_compiler_gnu = yes; then
  7722. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7723. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7724. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7725. echo $ECHO_N "(cached) $ECHO_C" >&6
  7726. else
  7727. ac_pattern="Autoconf.*'x'"
  7728. cat >conftest.$ac_ext <<_ACEOF
  7729. /* confdefs.h. */
  7730. _ACEOF
  7731. cat confdefs.h >>conftest.$ac_ext
  7732. cat >>conftest.$ac_ext <<_ACEOF
  7733. /* end confdefs.h. */
  7734. #include <sgtty.h>
  7735. Autoconf TIOCGETP
  7736. _ACEOF
  7737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7738. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7739. ac_cv_prog_gcc_traditional=yes
  7740. else
  7741. ac_cv_prog_gcc_traditional=no
  7742. fi
  7743. rm -f conftest*
  7744. if test $ac_cv_prog_gcc_traditional = no; then
  7745. cat >conftest.$ac_ext <<_ACEOF
  7746. /* confdefs.h. */
  7747. _ACEOF
  7748. cat confdefs.h >>conftest.$ac_ext
  7749. cat >>conftest.$ac_ext <<_ACEOF
  7750. /* end confdefs.h. */
  7751. #include <termio.h>
  7752. Autoconf TCGETA
  7753. _ACEOF
  7754. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7755. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7756. ac_cv_prog_gcc_traditional=yes
  7757. fi
  7758. rm -f conftest*
  7759. fi
  7760. fi
  7761. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7762. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7763. if test $ac_cv_prog_gcc_traditional = yes; then
  7764. CC="$CC -traditional"
  7765. fi
  7766. fi
  7767. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7768. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7769. if test "${ac_cv_struct_tm+set}" = set; then
  7770. echo $ECHO_N "(cached) $ECHO_C" >&6
  7771. else
  7772. cat >conftest.$ac_ext <<_ACEOF
  7773. /* confdefs.h. */
  7774. _ACEOF
  7775. cat confdefs.h >>conftest.$ac_ext
  7776. cat >>conftest.$ac_ext <<_ACEOF
  7777. /* end confdefs.h. */
  7778. #include <sys/types.h>
  7779. #include <time.h>
  7780. int
  7781. main ()
  7782. {
  7783. struct tm *tp; tp->tm_sec;
  7784. ;
  7785. return 0;
  7786. }
  7787. _ACEOF
  7788. rm -f conftest.$ac_objext
  7789. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7790. (eval $ac_compile) 2>conftest.er1
  7791. ac_status=$?
  7792. grep -v '^ *+' conftest.er1 >conftest.err
  7793. rm -f conftest.er1
  7794. cat conftest.err >&5
  7795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7796. (exit $ac_status); } &&
  7797. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7799. (eval $ac_try) 2>&5
  7800. ac_status=$?
  7801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7802. (exit $ac_status); }; } &&
  7803. { ac_try='test -s conftest.$ac_objext'
  7804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7805. (eval $ac_try) 2>&5
  7806. ac_status=$?
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. (exit $ac_status); }; }; then
  7809. ac_cv_struct_tm=time.h
  7810. else
  7811. echo "$as_me: failed program was:" >&5
  7812. sed 's/^/| /' conftest.$ac_ext >&5
  7813. ac_cv_struct_tm=sys/time.h
  7814. fi
  7815. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7816. fi
  7817. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7818. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7819. if test $ac_cv_struct_tm = sys/time.h; then
  7820. cat >>confdefs.h <<\_ACEOF
  7821. #define TM_IN_SYS_TIME 1
  7822. _ACEOF
  7823. fi
  7824. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7825. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7826. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7827. echo $ECHO_N "(cached) $ECHO_C" >&6
  7828. else
  7829. cat >conftest.$ac_ext <<_ACEOF
  7830. /* confdefs.h. */
  7831. _ACEOF
  7832. cat confdefs.h >>conftest.$ac_ext
  7833. cat >>conftest.$ac_ext <<_ACEOF
  7834. /* end confdefs.h. */
  7835. #include <sys/types.h>
  7836. #include <$ac_cv_struct_tm>
  7837. int
  7838. main ()
  7839. {
  7840. static struct tm ac_aggr;
  7841. if (ac_aggr.tm_zone)
  7842. return 0;
  7843. ;
  7844. return 0;
  7845. }
  7846. _ACEOF
  7847. rm -f conftest.$ac_objext
  7848. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7849. (eval $ac_compile) 2>conftest.er1
  7850. ac_status=$?
  7851. grep -v '^ *+' conftest.er1 >conftest.err
  7852. rm -f conftest.er1
  7853. cat conftest.err >&5
  7854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7855. (exit $ac_status); } &&
  7856. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7857. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7858. (eval $ac_try) 2>&5
  7859. ac_status=$?
  7860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7861. (exit $ac_status); }; } &&
  7862. { ac_try='test -s conftest.$ac_objext'
  7863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7864. (eval $ac_try) 2>&5
  7865. ac_status=$?
  7866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7867. (exit $ac_status); }; }; then
  7868. ac_cv_member_struct_tm_tm_zone=yes
  7869. else
  7870. echo "$as_me: failed program was:" >&5
  7871. sed 's/^/| /' conftest.$ac_ext >&5
  7872. cat >conftest.$ac_ext <<_ACEOF
  7873. /* confdefs.h. */
  7874. _ACEOF
  7875. cat confdefs.h >>conftest.$ac_ext
  7876. cat >>conftest.$ac_ext <<_ACEOF
  7877. /* end confdefs.h. */
  7878. #include <sys/types.h>
  7879. #include <$ac_cv_struct_tm>
  7880. int
  7881. main ()
  7882. {
  7883. static struct tm ac_aggr;
  7884. if (sizeof ac_aggr.tm_zone)
  7885. return 0;
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. rm -f conftest.$ac_objext
  7891. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7892. (eval $ac_compile) 2>conftest.er1
  7893. ac_status=$?
  7894. grep -v '^ *+' conftest.er1 >conftest.err
  7895. rm -f conftest.er1
  7896. cat conftest.err >&5
  7897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7898. (exit $ac_status); } &&
  7899. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7901. (eval $ac_try) 2>&5
  7902. ac_status=$?
  7903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7904. (exit $ac_status); }; } &&
  7905. { ac_try='test -s conftest.$ac_objext'
  7906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7907. (eval $ac_try) 2>&5
  7908. ac_status=$?
  7909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7910. (exit $ac_status); }; }; then
  7911. ac_cv_member_struct_tm_tm_zone=yes
  7912. else
  7913. echo "$as_me: failed program was:" >&5
  7914. sed 's/^/| /' conftest.$ac_ext >&5
  7915. ac_cv_member_struct_tm_tm_zone=no
  7916. fi
  7917. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7918. fi
  7919. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7920. fi
  7921. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7922. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7923. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7924. cat >>confdefs.h <<_ACEOF
  7925. #define HAVE_STRUCT_TM_TM_ZONE 1
  7926. _ACEOF
  7927. fi
  7928. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7929. cat >>confdefs.h <<\_ACEOF
  7930. #define HAVE_TM_ZONE 1
  7931. _ACEOF
  7932. else
  7933. echo "$as_me:$LINENO: checking for tzname" >&5
  7934. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7935. if test "${ac_cv_var_tzname+set}" = set; then
  7936. echo $ECHO_N "(cached) $ECHO_C" >&6
  7937. else
  7938. cat >conftest.$ac_ext <<_ACEOF
  7939. /* confdefs.h. */
  7940. _ACEOF
  7941. cat confdefs.h >>conftest.$ac_ext
  7942. cat >>conftest.$ac_ext <<_ACEOF
  7943. /* end confdefs.h. */
  7944. #include <time.h>
  7945. #ifndef tzname /* For SGI. */
  7946. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7947. #endif
  7948. int
  7949. main ()
  7950. {
  7951. atoi(*tzname);
  7952. ;
  7953. return 0;
  7954. }
  7955. _ACEOF
  7956. rm -f conftest.$ac_objext conftest$ac_exeext
  7957. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7958. (eval $ac_link) 2>conftest.er1
  7959. ac_status=$?
  7960. grep -v '^ *+' conftest.er1 >conftest.err
  7961. rm -f conftest.er1
  7962. cat conftest.err >&5
  7963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7964. (exit $ac_status); } &&
  7965. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7967. (eval $ac_try) 2>&5
  7968. ac_status=$?
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. (exit $ac_status); }; } &&
  7971. { ac_try='test -s conftest$ac_exeext'
  7972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7973. (eval $ac_try) 2>&5
  7974. ac_status=$?
  7975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); }; }; then
  7977. ac_cv_var_tzname=yes
  7978. else
  7979. echo "$as_me: failed program was:" >&5
  7980. sed 's/^/| /' conftest.$ac_ext >&5
  7981. ac_cv_var_tzname=no
  7982. fi
  7983. rm -f conftest.err conftest.$ac_objext \
  7984. conftest$ac_exeext conftest.$ac_ext
  7985. fi
  7986. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7987. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7988. if test $ac_cv_var_tzname = yes; then
  7989. cat >>confdefs.h <<\_ACEOF
  7990. #define HAVE_TZNAME 1
  7991. _ACEOF
  7992. fi
  7993. fi
  7994. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7995. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7996. if test "${ac_cv_struct_tm+set}" = set; then
  7997. echo $ECHO_N "(cached) $ECHO_C" >&6
  7998. else
  7999. cat >conftest.$ac_ext <<_ACEOF
  8000. /* confdefs.h. */
  8001. _ACEOF
  8002. cat confdefs.h >>conftest.$ac_ext
  8003. cat >>conftest.$ac_ext <<_ACEOF
  8004. /* end confdefs.h. */
  8005. #include <sys/types.h>
  8006. #include <time.h>
  8007. int
  8008. main ()
  8009. {
  8010. struct tm *tp; tp->tm_sec;
  8011. ;
  8012. return 0;
  8013. }
  8014. _ACEOF
  8015. rm -f conftest.$ac_objext
  8016. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8017. (eval $ac_compile) 2>conftest.er1
  8018. ac_status=$?
  8019. grep -v '^ *+' conftest.er1 >conftest.err
  8020. rm -f conftest.er1
  8021. cat conftest.err >&5
  8022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8023. (exit $ac_status); } &&
  8024. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8026. (eval $ac_try) 2>&5
  8027. ac_status=$?
  8028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8029. (exit $ac_status); }; } &&
  8030. { ac_try='test -s conftest.$ac_objext'
  8031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8032. (eval $ac_try) 2>&5
  8033. ac_status=$?
  8034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8035. (exit $ac_status); }; }; then
  8036. ac_cv_struct_tm=time.h
  8037. else
  8038. echo "$as_me: failed program was:" >&5
  8039. sed 's/^/| /' conftest.$ac_ext >&5
  8040. ac_cv_struct_tm=sys/time.h
  8041. fi
  8042. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8043. fi
  8044. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8045. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8046. if test $ac_cv_struct_tm = sys/time.h; then
  8047. cat >>confdefs.h <<\_ACEOF
  8048. #define TM_IN_SYS_TIME 1
  8049. _ACEOF
  8050. fi
  8051. #checkpoint
  8052. cat >confcache <<\_ACEOF
  8053. # This file is a shell script that caches the results of configure
  8054. # tests run on this system so they can be shared between configure
  8055. # scripts and configure runs, see configure's option --config-cache.
  8056. # It is not useful on other systems. If it contains results you don't
  8057. # want to keep, you may remove or edit it.
  8058. #
  8059. # config.status only pays attention to the cache file if you give it
  8060. # the --recheck option to rerun configure.
  8061. #
  8062. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8063. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8064. # following values.
  8065. _ACEOF
  8066. # The following way of writing the cache mishandles newlines in values,
  8067. # but we know of no workaround that is simple, portable, and efficient.
  8068. # So, don't put newlines in cache variables' values.
  8069. # Ultrix sh set writes to stderr and can't be redirected directly,
  8070. # and sets the high bit in the cache file unless we assign to the vars.
  8071. {
  8072. (set) 2>&1 |
  8073. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8074. *ac_space=\ *)
  8075. # `set' does not quote correctly, so add quotes (double-quote
  8076. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8077. sed -n \
  8078. "s/'/'\\\\''/g;
  8079. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8080. ;;
  8081. *)
  8082. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8083. sed -n \
  8084. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8085. ;;
  8086. esac;
  8087. } |
  8088. sed '
  8089. t clear
  8090. : clear
  8091. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8092. t end
  8093. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8094. : end' >>confcache
  8095. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8096. if test -w $cache_file; then
  8097. test "x$cache_file" != "x/dev/null"
  8098. cat confcache >$cache_file
  8099. else
  8100. echo "not updating unwritable cache $cache_file"
  8101. fi
  8102. fi
  8103. rm -f confcache
  8104. # Checks for library functions
  8105. for ac_header in unistd.h vfork.h
  8106. do
  8107. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8108. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8109. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8110. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8111. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8112. echo $ECHO_N "(cached) $ECHO_C" >&6
  8113. fi
  8114. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8115. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8116. else
  8117. # Is the header compilable?
  8118. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8119. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8120. cat >conftest.$ac_ext <<_ACEOF
  8121. /* confdefs.h. */
  8122. _ACEOF
  8123. cat confdefs.h >>conftest.$ac_ext
  8124. cat >>conftest.$ac_ext <<_ACEOF
  8125. /* end confdefs.h. */
  8126. $ac_includes_default
  8127. #include <$ac_header>
  8128. _ACEOF
  8129. rm -f conftest.$ac_objext
  8130. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8131. (eval $ac_compile) 2>conftest.er1
  8132. ac_status=$?
  8133. grep -v '^ *+' conftest.er1 >conftest.err
  8134. rm -f conftest.er1
  8135. cat conftest.err >&5
  8136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8137. (exit $ac_status); } &&
  8138. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8140. (eval $ac_try) 2>&5
  8141. ac_status=$?
  8142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8143. (exit $ac_status); }; } &&
  8144. { ac_try='test -s conftest.$ac_objext'
  8145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8146. (eval $ac_try) 2>&5
  8147. ac_status=$?
  8148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8149. (exit $ac_status); }; }; then
  8150. ac_header_compiler=yes
  8151. else
  8152. echo "$as_me: failed program was:" >&5
  8153. sed 's/^/| /' conftest.$ac_ext >&5
  8154. ac_header_compiler=no
  8155. fi
  8156. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8157. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8158. echo "${ECHO_T}$ac_header_compiler" >&6
  8159. # Is the header present?
  8160. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8161. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8162. cat >conftest.$ac_ext <<_ACEOF
  8163. /* confdefs.h. */
  8164. _ACEOF
  8165. cat confdefs.h >>conftest.$ac_ext
  8166. cat >>conftest.$ac_ext <<_ACEOF
  8167. /* end confdefs.h. */
  8168. #include <$ac_header>
  8169. _ACEOF
  8170. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8171. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8172. ac_status=$?
  8173. grep -v '^ *+' conftest.er1 >conftest.err
  8174. rm -f conftest.er1
  8175. cat conftest.err >&5
  8176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8177. (exit $ac_status); } >/dev/null; then
  8178. if test -s conftest.err; then
  8179. ac_cpp_err=$ac_c_preproc_warn_flag
  8180. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8181. else
  8182. ac_cpp_err=
  8183. fi
  8184. else
  8185. ac_cpp_err=yes
  8186. fi
  8187. if test -z "$ac_cpp_err"; then
  8188. ac_header_preproc=yes
  8189. else
  8190. echo "$as_me: failed program was:" >&5
  8191. sed 's/^/| /' conftest.$ac_ext >&5
  8192. ac_header_preproc=no
  8193. fi
  8194. rm -f conftest.err conftest.$ac_ext
  8195. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8196. echo "${ECHO_T}$ac_header_preproc" >&6
  8197. # So? What about this header?
  8198. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8199. yes:no: )
  8200. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8201. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8202. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8203. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8204. ac_header_preproc=yes
  8205. ;;
  8206. no:yes:* )
  8207. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8208. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8209. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8210. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8211. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8212. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8213. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8214. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8215. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8216. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8217. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8218. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8219. (
  8220. cat <<\_ASBOX
  8221. ## ------------------------------------------ ##
  8222. ## Report this to the AC_PACKAGE_NAME lists. ##
  8223. ## ------------------------------------------ ##
  8224. _ASBOX
  8225. ) |
  8226. sed "s/^/$as_me: WARNING: /" >&2
  8227. ;;
  8228. esac
  8229. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8230. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8231. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8232. echo $ECHO_N "(cached) $ECHO_C" >&6
  8233. else
  8234. eval "$as_ac_Header=\$ac_header_preproc"
  8235. fi
  8236. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8237. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8238. fi
  8239. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8240. cat >>confdefs.h <<_ACEOF
  8241. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8242. _ACEOF
  8243. fi
  8244. done
  8245. for ac_func in fork vfork
  8246. do
  8247. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8248. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8249. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8250. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8251. echo $ECHO_N "(cached) $ECHO_C" >&6
  8252. else
  8253. cat >conftest.$ac_ext <<_ACEOF
  8254. /* confdefs.h. */
  8255. _ACEOF
  8256. cat confdefs.h >>conftest.$ac_ext
  8257. cat >>conftest.$ac_ext <<_ACEOF
  8258. /* end confdefs.h. */
  8259. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8260. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8261. #define $ac_func innocuous_$ac_func
  8262. /* System header to define __stub macros and hopefully few prototypes,
  8263. which can conflict with char $ac_func (); below.
  8264. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8265. <limits.h> exists even on freestanding compilers. */
  8266. #ifdef __STDC__
  8267. # include <limits.h>
  8268. #else
  8269. # include <assert.h>
  8270. #endif
  8271. #undef $ac_func
  8272. /* Override any gcc2 internal prototype to avoid an error. */
  8273. #ifdef __cplusplus
  8274. extern "C"
  8275. {
  8276. #endif
  8277. /* We use char because int might match the return type of a gcc2
  8278. builtin and then its argument prototype would still apply. */
  8279. char $ac_func ();
  8280. /* The GNU C library defines this for functions which it implements
  8281. to always fail with ENOSYS. Some functions are actually named
  8282. something starting with __ and the normal name is an alias. */
  8283. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8284. choke me
  8285. #else
  8286. char (*f) () = $ac_func;
  8287. #endif
  8288. #ifdef __cplusplus
  8289. }
  8290. #endif
  8291. int
  8292. main ()
  8293. {
  8294. return f != $ac_func;
  8295. ;
  8296. return 0;
  8297. }
  8298. _ACEOF
  8299. rm -f conftest.$ac_objext conftest$ac_exeext
  8300. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8301. (eval $ac_link) 2>conftest.er1
  8302. ac_status=$?
  8303. grep -v '^ *+' conftest.er1 >conftest.err
  8304. rm -f conftest.er1
  8305. cat conftest.err >&5
  8306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8307. (exit $ac_status); } &&
  8308. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8310. (eval $ac_try) 2>&5
  8311. ac_status=$?
  8312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8313. (exit $ac_status); }; } &&
  8314. { ac_try='test -s conftest$ac_exeext'
  8315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8316. (eval $ac_try) 2>&5
  8317. ac_status=$?
  8318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8319. (exit $ac_status); }; }; then
  8320. eval "$as_ac_var=yes"
  8321. else
  8322. echo "$as_me: failed program was:" >&5
  8323. sed 's/^/| /' conftest.$ac_ext >&5
  8324. eval "$as_ac_var=no"
  8325. fi
  8326. rm -f conftest.err conftest.$ac_objext \
  8327. conftest$ac_exeext conftest.$ac_ext
  8328. fi
  8329. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8330. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8331. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8332. cat >>confdefs.h <<_ACEOF
  8333. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8334. _ACEOF
  8335. fi
  8336. done
  8337. if test "x$ac_cv_func_fork" = xyes; then
  8338. echo "$as_me:$LINENO: checking for working fork" >&5
  8339. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8340. if test "${ac_cv_func_fork_works+set}" = set; then
  8341. echo $ECHO_N "(cached) $ECHO_C" >&6
  8342. else
  8343. if test "$cross_compiling" = yes; then
  8344. ac_cv_func_fork_works=cross
  8345. else
  8346. cat >conftest.$ac_ext <<_ACEOF
  8347. /* By Ruediger Kuhlmann. */
  8348. #include <sys/types.h>
  8349. #if HAVE_UNISTD_H
  8350. # include <unistd.h>
  8351. #endif
  8352. /* Some systems only have a dummy stub for fork() */
  8353. int main ()
  8354. {
  8355. if (fork() < 0)
  8356. exit (1);
  8357. exit (0);
  8358. }
  8359. _ACEOF
  8360. rm -f conftest$ac_exeext
  8361. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8362. (eval $ac_link) 2>&5
  8363. ac_status=$?
  8364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8365. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8367. (eval $ac_try) 2>&5
  8368. ac_status=$?
  8369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8370. (exit $ac_status); }; }; then
  8371. ac_cv_func_fork_works=yes
  8372. else
  8373. echo "$as_me: program exited with status $ac_status" >&5
  8374. echo "$as_me: failed program was:" >&5
  8375. sed 's/^/| /' conftest.$ac_ext >&5
  8376. ( exit $ac_status )
  8377. ac_cv_func_fork_works=no
  8378. fi
  8379. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8380. fi
  8381. fi
  8382. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8383. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8384. else
  8385. ac_cv_func_fork_works=$ac_cv_func_fork
  8386. fi
  8387. if test "x$ac_cv_func_fork_works" = xcross; then
  8388. case $host in
  8389. *-*-amigaos* | *-*-msdosdjgpp*)
  8390. # Override, as these systems have only a dummy fork() stub
  8391. ac_cv_func_fork_works=no
  8392. ;;
  8393. *)
  8394. ac_cv_func_fork_works=yes
  8395. ;;
  8396. esac
  8397. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8398. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8399. fi
  8400. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8401. if test "x$ac_cv_func_vfork" = xyes; then
  8402. echo "$as_me:$LINENO: checking for working vfork" >&5
  8403. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8404. if test "${ac_cv_func_vfork_works+set}" = set; then
  8405. echo $ECHO_N "(cached) $ECHO_C" >&6
  8406. else
  8407. if test "$cross_compiling" = yes; then
  8408. ac_cv_func_vfork_works=cross
  8409. else
  8410. cat >conftest.$ac_ext <<_ACEOF
  8411. /* confdefs.h. */
  8412. _ACEOF
  8413. cat confdefs.h >>conftest.$ac_ext
  8414. cat >>conftest.$ac_ext <<_ACEOF
  8415. /* end confdefs.h. */
  8416. /* Thanks to Paul Eggert for this test. */
  8417. #include <stdio.h>
  8418. #include <stdlib.h>
  8419. #include <sys/types.h>
  8420. #include <sys/stat.h>
  8421. #include <sys/wait.h>
  8422. #if HAVE_UNISTD_H
  8423. # include <unistd.h>
  8424. #endif
  8425. #if HAVE_VFORK_H
  8426. # include <vfork.h>
  8427. #endif
  8428. /* On some sparc systems, changes by the child to local and incoming
  8429. argument registers are propagated back to the parent. The compiler
  8430. is told about this with #include <vfork.h>, but some compilers
  8431. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8432. static variable whose address is put into a register that is
  8433. clobbered by the vfork. */
  8434. static void
  8435. #ifdef __cplusplus
  8436. sparc_address_test (int arg)
  8437. # else
  8438. sparc_address_test (arg) int arg;
  8439. #endif
  8440. {
  8441. static pid_t child;
  8442. if (!child) {
  8443. child = vfork ();
  8444. if (child < 0) {
  8445. perror ("vfork");
  8446. _exit(2);
  8447. }
  8448. if (!child) {
  8449. arg = getpid();
  8450. write(-1, "", 0);
  8451. _exit (arg);
  8452. }
  8453. }
  8454. }
  8455. int
  8456. main ()
  8457. {
  8458. pid_t parent = getpid ();
  8459. pid_t child;
  8460. sparc_address_test (0);
  8461. child = vfork ();
  8462. if (child == 0) {
  8463. /* Here is another test for sparc vfork register problems. This
  8464. test uses lots of local variables, at least as many local
  8465. variables as main has allocated so far including compiler
  8466. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8467. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8468. reuse the register of parent for one of the local variables,
  8469. since it will think that parent can't possibly be used any more
  8470. in this routine. Assigning to the local variable will thus
  8471. munge parent in the parent process. */
  8472. pid_t
  8473. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8474. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8475. /* Convince the compiler that p..p7 are live; otherwise, it might
  8476. use the same hardware register for all 8 local variables. */
  8477. if (p != p1 || p != p2 || p != p3 || p != p4
  8478. || p != p5 || p != p6 || p != p7)
  8479. _exit(1);
  8480. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8481. from child file descriptors. If the child closes a descriptor
  8482. before it execs or exits, this munges the parent's descriptor
  8483. as well. Test for this by closing stdout in the child. */
  8484. _exit(close(fileno(stdout)) != 0);
  8485. } else {
  8486. int status;
  8487. struct stat st;
  8488. while (wait(&status) != child)
  8489. ;
  8490. exit(
  8491. /* Was there some problem with vforking? */
  8492. child < 0
  8493. /* Did the child fail? (This shouldn't happen.) */
  8494. || status
  8495. /* Did the vfork/compiler bug occur? */
  8496. || parent != getpid()
  8497. /* Did the file descriptor bug occur? */
  8498. || fstat(fileno(stdout), &st) != 0
  8499. );
  8500. }
  8501. }
  8502. _ACEOF
  8503. rm -f conftest$ac_exeext
  8504. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8505. (eval $ac_link) 2>&5
  8506. ac_status=$?
  8507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8508. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8510. (eval $ac_try) 2>&5
  8511. ac_status=$?
  8512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8513. (exit $ac_status); }; }; then
  8514. ac_cv_func_vfork_works=yes
  8515. else
  8516. echo "$as_me: program exited with status $ac_status" >&5
  8517. echo "$as_me: failed program was:" >&5
  8518. sed 's/^/| /' conftest.$ac_ext >&5
  8519. ( exit $ac_status )
  8520. ac_cv_func_vfork_works=no
  8521. fi
  8522. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8523. fi
  8524. fi
  8525. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8526. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8527. fi;
  8528. if test "x$ac_cv_func_fork_works" = xcross; then
  8529. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8530. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8531. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8532. fi
  8533. if test "x$ac_cv_func_vfork_works" = xyes; then
  8534. cat >>confdefs.h <<\_ACEOF
  8535. #define HAVE_WORKING_VFORK 1
  8536. _ACEOF
  8537. else
  8538. cat >>confdefs.h <<\_ACEOF
  8539. #define vfork fork
  8540. _ACEOF
  8541. fi
  8542. if test "x$ac_cv_func_fork_works" = xyes; then
  8543. cat >>confdefs.h <<\_ACEOF
  8544. #define HAVE_WORKING_FORK 1
  8545. _ACEOF
  8546. fi
  8547. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8548. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8549. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8550. echo $ECHO_N "(cached) $ECHO_C" >&6
  8551. else
  8552. rm -f conftest.sym conftest.file
  8553. echo >conftest.file
  8554. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8555. if test "$cross_compiling" = yes; then
  8556. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8557. else
  8558. cat >conftest.$ac_ext <<_ACEOF
  8559. /* confdefs.h. */
  8560. _ACEOF
  8561. cat confdefs.h >>conftest.$ac_ext
  8562. cat >>conftest.$ac_ext <<_ACEOF
  8563. /* end confdefs.h. */
  8564. $ac_includes_default
  8565. int
  8566. main ()
  8567. {
  8568. struct stat sbuf;
  8569. /* Linux will dereference the symlink and fail.
  8570. That is better in the sense that it means we will not
  8571. have to compile and use the lstat wrapper. */
  8572. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8573. ;
  8574. return 0;
  8575. }
  8576. _ACEOF
  8577. rm -f conftest$ac_exeext
  8578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8579. (eval $ac_link) 2>&5
  8580. ac_status=$?
  8581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8582. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8584. (eval $ac_try) 2>&5
  8585. ac_status=$?
  8586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8587. (exit $ac_status); }; }; then
  8588. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8589. else
  8590. echo "$as_me: program exited with status $ac_status" >&5
  8591. echo "$as_me: failed program was:" >&5
  8592. sed 's/^/| /' conftest.$ac_ext >&5
  8593. ( exit $ac_status )
  8594. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8595. fi
  8596. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8597. fi
  8598. else
  8599. # If the `ln -s' command failed, then we probably don't even
  8600. # have an lstat function.
  8601. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8602. fi
  8603. rm -f conftest.sym conftest.file
  8604. fi
  8605. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8606. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8607. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8608. cat >>confdefs.h <<_ACEOF
  8609. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8610. _ACEOF
  8611. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8612. case $LIBOBJS in
  8613. "lstat.$ac_objext" | \
  8614. *" lstat.$ac_objext" | \
  8615. "lstat.$ac_objext "* | \
  8616. *" lstat.$ac_objext "* ) ;;
  8617. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8618. esac
  8619. fi
  8620. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8621. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8622. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8623. echo $ECHO_N "(cached) $ECHO_C" >&6
  8624. else
  8625. if test "$cross_compiling" = yes; then
  8626. ac_cv_func_lstat_empty_string_bug=yes
  8627. else
  8628. cat >conftest.$ac_ext <<_ACEOF
  8629. /* confdefs.h. */
  8630. _ACEOF
  8631. cat confdefs.h >>conftest.$ac_ext
  8632. cat >>conftest.$ac_ext <<_ACEOF
  8633. /* end confdefs.h. */
  8634. $ac_includes_default
  8635. int
  8636. main ()
  8637. {
  8638. struct stat sbuf;
  8639. exit (lstat ("", &sbuf) ? 1 : 0);
  8640. ;
  8641. return 0;
  8642. }
  8643. _ACEOF
  8644. rm -f conftest$ac_exeext
  8645. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8646. (eval $ac_link) 2>&5
  8647. ac_status=$?
  8648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8649. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8651. (eval $ac_try) 2>&5
  8652. ac_status=$?
  8653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8654. (exit $ac_status); }; }; then
  8655. ac_cv_func_lstat_empty_string_bug=yes
  8656. else
  8657. echo "$as_me: program exited with status $ac_status" >&5
  8658. echo "$as_me: failed program was:" >&5
  8659. sed 's/^/| /' conftest.$ac_ext >&5
  8660. ( exit $ac_status )
  8661. ac_cv_func_lstat_empty_string_bug=no
  8662. fi
  8663. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8664. fi
  8665. fi
  8666. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8667. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8668. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8669. case $LIBOBJS in
  8670. "lstat.$ac_objext" | \
  8671. *" lstat.$ac_objext" | \
  8672. "lstat.$ac_objext "* | \
  8673. *" lstat.$ac_objext "* ) ;;
  8674. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8675. esac
  8676. cat >>confdefs.h <<_ACEOF
  8677. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8678. _ACEOF
  8679. fi
  8680. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8681. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8682. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8683. echo $ECHO_N "(cached) $ECHO_C" >&6
  8684. else
  8685. rm -f conftest.sym conftest.file
  8686. echo >conftest.file
  8687. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8688. if test "$cross_compiling" = yes; then
  8689. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8690. else
  8691. cat >conftest.$ac_ext <<_ACEOF
  8692. /* confdefs.h. */
  8693. _ACEOF
  8694. cat confdefs.h >>conftest.$ac_ext
  8695. cat >>conftest.$ac_ext <<_ACEOF
  8696. /* end confdefs.h. */
  8697. $ac_includes_default
  8698. int
  8699. main ()
  8700. {
  8701. struct stat sbuf;
  8702. /* Linux will dereference the symlink and fail.
  8703. That is better in the sense that it means we will not
  8704. have to compile and use the lstat wrapper. */
  8705. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8706. ;
  8707. return 0;
  8708. }
  8709. _ACEOF
  8710. rm -f conftest$ac_exeext
  8711. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8712. (eval $ac_link) 2>&5
  8713. ac_status=$?
  8714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8715. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8717. (eval $ac_try) 2>&5
  8718. ac_status=$?
  8719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8720. (exit $ac_status); }; }; then
  8721. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8722. else
  8723. echo "$as_me: program exited with status $ac_status" >&5
  8724. echo "$as_me: failed program was:" >&5
  8725. sed 's/^/| /' conftest.$ac_ext >&5
  8726. ( exit $ac_status )
  8727. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8728. fi
  8729. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8730. fi
  8731. else
  8732. # If the `ln -s' command failed, then we probably don't even
  8733. # have an lstat function.
  8734. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8735. fi
  8736. rm -f conftest.sym conftest.file
  8737. fi
  8738. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8739. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8740. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8741. cat >>confdefs.h <<_ACEOF
  8742. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8743. _ACEOF
  8744. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8745. case $LIBOBJS in
  8746. "lstat.$ac_objext" | \
  8747. *" lstat.$ac_objext" | \
  8748. "lstat.$ac_objext "* | \
  8749. *" lstat.$ac_objext "* ) ;;
  8750. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8751. esac
  8752. fi
  8753. for ac_header in stdlib.h
  8754. do
  8755. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8756. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8757. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8758. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8759. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8760. echo $ECHO_N "(cached) $ECHO_C" >&6
  8761. fi
  8762. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8763. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8764. else
  8765. # Is the header compilable?
  8766. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8767. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8768. cat >conftest.$ac_ext <<_ACEOF
  8769. /* confdefs.h. */
  8770. _ACEOF
  8771. cat confdefs.h >>conftest.$ac_ext
  8772. cat >>conftest.$ac_ext <<_ACEOF
  8773. /* end confdefs.h. */
  8774. $ac_includes_default
  8775. #include <$ac_header>
  8776. _ACEOF
  8777. rm -f conftest.$ac_objext
  8778. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8779. (eval $ac_compile) 2>conftest.er1
  8780. ac_status=$?
  8781. grep -v '^ *+' conftest.er1 >conftest.err
  8782. rm -f conftest.er1
  8783. cat conftest.err >&5
  8784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8785. (exit $ac_status); } &&
  8786. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8788. (eval $ac_try) 2>&5
  8789. ac_status=$?
  8790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8791. (exit $ac_status); }; } &&
  8792. { ac_try='test -s conftest.$ac_objext'
  8793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8794. (eval $ac_try) 2>&5
  8795. ac_status=$?
  8796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8797. (exit $ac_status); }; }; then
  8798. ac_header_compiler=yes
  8799. else
  8800. echo "$as_me: failed program was:" >&5
  8801. sed 's/^/| /' conftest.$ac_ext >&5
  8802. ac_header_compiler=no
  8803. fi
  8804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8805. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8806. echo "${ECHO_T}$ac_header_compiler" >&6
  8807. # Is the header present?
  8808. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8809. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8810. cat >conftest.$ac_ext <<_ACEOF
  8811. /* confdefs.h. */
  8812. _ACEOF
  8813. cat confdefs.h >>conftest.$ac_ext
  8814. cat >>conftest.$ac_ext <<_ACEOF
  8815. /* end confdefs.h. */
  8816. #include <$ac_header>
  8817. _ACEOF
  8818. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8819. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8820. ac_status=$?
  8821. grep -v '^ *+' conftest.er1 >conftest.err
  8822. rm -f conftest.er1
  8823. cat conftest.err >&5
  8824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8825. (exit $ac_status); } >/dev/null; then
  8826. if test -s conftest.err; then
  8827. ac_cpp_err=$ac_c_preproc_warn_flag
  8828. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8829. else
  8830. ac_cpp_err=
  8831. fi
  8832. else
  8833. ac_cpp_err=yes
  8834. fi
  8835. if test -z "$ac_cpp_err"; then
  8836. ac_header_preproc=yes
  8837. else
  8838. echo "$as_me: failed program was:" >&5
  8839. sed 's/^/| /' conftest.$ac_ext >&5
  8840. ac_header_preproc=no
  8841. fi
  8842. rm -f conftest.err conftest.$ac_ext
  8843. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8844. echo "${ECHO_T}$ac_header_preproc" >&6
  8845. # So? What about this header?
  8846. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8847. yes:no: )
  8848. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8849. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8850. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8851. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8852. ac_header_preproc=yes
  8853. ;;
  8854. no:yes:* )
  8855. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8856. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8857. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8858. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8859. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8860. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8861. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8862. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8863. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8864. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8865. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8866. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8867. (
  8868. cat <<\_ASBOX
  8869. ## ------------------------------------------ ##
  8870. ## Report this to the AC_PACKAGE_NAME lists. ##
  8871. ## ------------------------------------------ ##
  8872. _ASBOX
  8873. ) |
  8874. sed "s/^/$as_me: WARNING: /" >&2
  8875. ;;
  8876. esac
  8877. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8878. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8879. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8880. echo $ECHO_N "(cached) $ECHO_C" >&6
  8881. else
  8882. eval "$as_ac_Header=\$ac_header_preproc"
  8883. fi
  8884. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8885. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8886. fi
  8887. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8888. cat >>confdefs.h <<_ACEOF
  8889. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8890. _ACEOF
  8891. fi
  8892. done
  8893. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8894. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8895. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8896. echo $ECHO_N "(cached) $ECHO_C" >&6
  8897. else
  8898. if test "$cross_compiling" = yes; then
  8899. ac_cv_func_malloc_0_nonnull=no
  8900. else
  8901. cat >conftest.$ac_ext <<_ACEOF
  8902. /* confdefs.h. */
  8903. _ACEOF
  8904. cat confdefs.h >>conftest.$ac_ext
  8905. cat >>conftest.$ac_ext <<_ACEOF
  8906. /* end confdefs.h. */
  8907. #if STDC_HEADERS || HAVE_STDLIB_H
  8908. # include <stdlib.h>
  8909. #else
  8910. char *malloc ();
  8911. #endif
  8912. int
  8913. main ()
  8914. {
  8915. exit (malloc (0) ? 0 : 1);
  8916. ;
  8917. return 0;
  8918. }
  8919. _ACEOF
  8920. rm -f conftest$ac_exeext
  8921. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8922. (eval $ac_link) 2>&5
  8923. ac_status=$?
  8924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8925. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8927. (eval $ac_try) 2>&5
  8928. ac_status=$?
  8929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8930. (exit $ac_status); }; }; then
  8931. ac_cv_func_malloc_0_nonnull=yes
  8932. else
  8933. echo "$as_me: program exited with status $ac_status" >&5
  8934. echo "$as_me: failed program was:" >&5
  8935. sed 's/^/| /' conftest.$ac_ext >&5
  8936. ( exit $ac_status )
  8937. ac_cv_func_malloc_0_nonnull=no
  8938. fi
  8939. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8940. fi
  8941. fi
  8942. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8943. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8944. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8945. cat >>confdefs.h <<\_ACEOF
  8946. #define HAVE_MALLOC 1
  8947. _ACEOF
  8948. else
  8949. cat >>confdefs.h <<\_ACEOF
  8950. #define HAVE_MALLOC 0
  8951. _ACEOF
  8952. case $LIBOBJS in
  8953. "malloc.$ac_objext" | \
  8954. *" malloc.$ac_objext" | \
  8955. "malloc.$ac_objext "* | \
  8956. *" malloc.$ac_objext "* ) ;;
  8957. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8958. esac
  8959. cat >>confdefs.h <<\_ACEOF
  8960. #define malloc rpl_malloc
  8961. _ACEOF
  8962. fi
  8963. for ac_header in stdlib.h sys/time.h unistd.h
  8964. do
  8965. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8966. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8967. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8968. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8969. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8970. echo $ECHO_N "(cached) $ECHO_C" >&6
  8971. fi
  8972. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8973. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8974. else
  8975. # Is the header compilable?
  8976. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8977. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8978. cat >conftest.$ac_ext <<_ACEOF
  8979. /* confdefs.h. */
  8980. _ACEOF
  8981. cat confdefs.h >>conftest.$ac_ext
  8982. cat >>conftest.$ac_ext <<_ACEOF
  8983. /* end confdefs.h. */
  8984. $ac_includes_default
  8985. #include <$ac_header>
  8986. _ACEOF
  8987. rm -f conftest.$ac_objext
  8988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8989. (eval $ac_compile) 2>conftest.er1
  8990. ac_status=$?
  8991. grep -v '^ *+' conftest.er1 >conftest.err
  8992. rm -f conftest.er1
  8993. cat conftest.err >&5
  8994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8995. (exit $ac_status); } &&
  8996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8998. (eval $ac_try) 2>&5
  8999. ac_status=$?
  9000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9001. (exit $ac_status); }; } &&
  9002. { ac_try='test -s conftest.$ac_objext'
  9003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9004. (eval $ac_try) 2>&5
  9005. ac_status=$?
  9006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9007. (exit $ac_status); }; }; then
  9008. ac_header_compiler=yes
  9009. else
  9010. echo "$as_me: failed program was:" >&5
  9011. sed 's/^/| /' conftest.$ac_ext >&5
  9012. ac_header_compiler=no
  9013. fi
  9014. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9015. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9016. echo "${ECHO_T}$ac_header_compiler" >&6
  9017. # Is the header present?
  9018. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9019. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9020. cat >conftest.$ac_ext <<_ACEOF
  9021. /* confdefs.h. */
  9022. _ACEOF
  9023. cat confdefs.h >>conftest.$ac_ext
  9024. cat >>conftest.$ac_ext <<_ACEOF
  9025. /* end confdefs.h. */
  9026. #include <$ac_header>
  9027. _ACEOF
  9028. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9029. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9030. ac_status=$?
  9031. grep -v '^ *+' conftest.er1 >conftest.err
  9032. rm -f conftest.er1
  9033. cat conftest.err >&5
  9034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9035. (exit $ac_status); } >/dev/null; then
  9036. if test -s conftest.err; then
  9037. ac_cpp_err=$ac_c_preproc_warn_flag
  9038. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9039. else
  9040. ac_cpp_err=
  9041. fi
  9042. else
  9043. ac_cpp_err=yes
  9044. fi
  9045. if test -z "$ac_cpp_err"; then
  9046. ac_header_preproc=yes
  9047. else
  9048. echo "$as_me: failed program was:" >&5
  9049. sed 's/^/| /' conftest.$ac_ext >&5
  9050. ac_header_preproc=no
  9051. fi
  9052. rm -f conftest.err conftest.$ac_ext
  9053. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9054. echo "${ECHO_T}$ac_header_preproc" >&6
  9055. # So? What about this header?
  9056. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9057. yes:no: )
  9058. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9059. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9060. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9061. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9062. ac_header_preproc=yes
  9063. ;;
  9064. no:yes:* )
  9065. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9066. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9067. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9068. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9069. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9070. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9071. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9072. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9073. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9074. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9075. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9076. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9077. (
  9078. cat <<\_ASBOX
  9079. ## ------------------------------------------ ##
  9080. ## Report this to the AC_PACKAGE_NAME lists. ##
  9081. ## ------------------------------------------ ##
  9082. _ASBOX
  9083. ) |
  9084. sed "s/^/$as_me: WARNING: /" >&2
  9085. ;;
  9086. esac
  9087. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9088. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9089. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9090. echo $ECHO_N "(cached) $ECHO_C" >&6
  9091. else
  9092. eval "$as_ac_Header=\$ac_header_preproc"
  9093. fi
  9094. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9095. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9096. fi
  9097. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9098. cat >>confdefs.h <<_ACEOF
  9099. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9100. _ACEOF
  9101. fi
  9102. done
  9103. for ac_func in alarm
  9104. do
  9105. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9106. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9107. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9108. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9109. echo $ECHO_N "(cached) $ECHO_C" >&6
  9110. else
  9111. cat >conftest.$ac_ext <<_ACEOF
  9112. /* confdefs.h. */
  9113. _ACEOF
  9114. cat confdefs.h >>conftest.$ac_ext
  9115. cat >>conftest.$ac_ext <<_ACEOF
  9116. /* end confdefs.h. */
  9117. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9118. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9119. #define $ac_func innocuous_$ac_func
  9120. /* System header to define __stub macros and hopefully few prototypes,
  9121. which can conflict with char $ac_func (); below.
  9122. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9123. <limits.h> exists even on freestanding compilers. */
  9124. #ifdef __STDC__
  9125. # include <limits.h>
  9126. #else
  9127. # include <assert.h>
  9128. #endif
  9129. #undef $ac_func
  9130. /* Override any gcc2 internal prototype to avoid an error. */
  9131. #ifdef __cplusplus
  9132. extern "C"
  9133. {
  9134. #endif
  9135. /* We use char because int might match the return type of a gcc2
  9136. builtin and then its argument prototype would still apply. */
  9137. char $ac_func ();
  9138. /* The GNU C library defines this for functions which it implements
  9139. to always fail with ENOSYS. Some functions are actually named
  9140. something starting with __ and the normal name is an alias. */
  9141. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9142. choke me
  9143. #else
  9144. char (*f) () = $ac_func;
  9145. #endif
  9146. #ifdef __cplusplus
  9147. }
  9148. #endif
  9149. int
  9150. main ()
  9151. {
  9152. return f != $ac_func;
  9153. ;
  9154. return 0;
  9155. }
  9156. _ACEOF
  9157. rm -f conftest.$ac_objext conftest$ac_exeext
  9158. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9159. (eval $ac_link) 2>conftest.er1
  9160. ac_status=$?
  9161. grep -v '^ *+' conftest.er1 >conftest.err
  9162. rm -f conftest.er1
  9163. cat conftest.err >&5
  9164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9165. (exit $ac_status); } &&
  9166. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9168. (eval $ac_try) 2>&5
  9169. ac_status=$?
  9170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9171. (exit $ac_status); }; } &&
  9172. { ac_try='test -s conftest$ac_exeext'
  9173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9174. (eval $ac_try) 2>&5
  9175. ac_status=$?
  9176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9177. (exit $ac_status); }; }; then
  9178. eval "$as_ac_var=yes"
  9179. else
  9180. echo "$as_me: failed program was:" >&5
  9181. sed 's/^/| /' conftest.$ac_ext >&5
  9182. eval "$as_ac_var=no"
  9183. fi
  9184. rm -f conftest.err conftest.$ac_objext \
  9185. conftest$ac_exeext conftest.$ac_ext
  9186. fi
  9187. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9188. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9189. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9190. cat >>confdefs.h <<_ACEOF
  9191. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9192. _ACEOF
  9193. fi
  9194. done
  9195. echo "$as_me:$LINENO: checking for working mktime" >&5
  9196. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9197. if test "${ac_cv_func_working_mktime+set}" = set; then
  9198. echo $ECHO_N "(cached) $ECHO_C" >&6
  9199. else
  9200. if test "$cross_compiling" = yes; then
  9201. ac_cv_func_working_mktime=no
  9202. else
  9203. cat >conftest.$ac_ext <<_ACEOF
  9204. /* confdefs.h. */
  9205. _ACEOF
  9206. cat confdefs.h >>conftest.$ac_ext
  9207. cat >>conftest.$ac_ext <<_ACEOF
  9208. /* end confdefs.h. */
  9209. /* Test program from Paul Eggert and Tony Leneis. */
  9210. #if TIME_WITH_SYS_TIME
  9211. # include <sys/time.h>
  9212. # include <time.h>
  9213. #else
  9214. # if HAVE_SYS_TIME_H
  9215. # include <sys/time.h>
  9216. # else
  9217. # include <time.h>
  9218. # endif
  9219. #endif
  9220. #if HAVE_STDLIB_H
  9221. # include <stdlib.h>
  9222. #endif
  9223. #if HAVE_UNISTD_H
  9224. # include <unistd.h>
  9225. #endif
  9226. #if !HAVE_ALARM
  9227. # define alarm(X) /* empty */
  9228. #endif
  9229. /* Work around redefinition to rpl_putenv by other config tests. */
  9230. #undef putenv
  9231. static time_t time_t_max;
  9232. static time_t time_t_min;
  9233. /* Values we'll use to set the TZ environment variable. */
  9234. static char *tz_strings[] = {
  9235. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9236. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9237. };
  9238. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9239. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9240. Based on a problem report from Andreas Jaeger. */
  9241. static void
  9242. spring_forward_gap ()
  9243. {
  9244. /* glibc (up to about 1998-10-07) failed this test. */
  9245. struct tm tm;
  9246. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9247. instead of "TZ=America/Vancouver" in order to detect the bug even
  9248. on systems that don't support the Olson extension, or don't have the
  9249. full zoneinfo tables installed. */
  9250. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9251. tm.tm_year = 98;
  9252. tm.tm_mon = 3;
  9253. tm.tm_mday = 5;
  9254. tm.tm_hour = 2;
  9255. tm.tm_min = 0;
  9256. tm.tm_sec = 0;
  9257. tm.tm_isdst = -1;
  9258. if (mktime (&tm) == (time_t)-1)
  9259. exit (1);
  9260. }
  9261. static void
  9262. mktime_test1 (now)
  9263. time_t now;
  9264. {
  9265. struct tm *lt;
  9266. if ((lt = localtime (&now)) && mktime (lt) != now)
  9267. exit (1);
  9268. }
  9269. static void
  9270. mktime_test (now)
  9271. time_t now;
  9272. {
  9273. mktime_test1 (now);
  9274. mktime_test1 ((time_t) (time_t_max - now));
  9275. mktime_test1 ((time_t) (time_t_min + now));
  9276. }
  9277. static void
  9278. irix_6_4_bug ()
  9279. {
  9280. /* Based on code from Ariel Faigon. */
  9281. struct tm tm;
  9282. tm.tm_year = 96;
  9283. tm.tm_mon = 3;
  9284. tm.tm_mday = 0;
  9285. tm.tm_hour = 0;
  9286. tm.tm_min = 0;
  9287. tm.tm_sec = 0;
  9288. tm.tm_isdst = -1;
  9289. mktime (&tm);
  9290. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9291. exit (1);
  9292. }
  9293. static void
  9294. bigtime_test (j)
  9295. int j;
  9296. {
  9297. struct tm tm;
  9298. time_t now;
  9299. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9300. now = mktime (&tm);
  9301. if (now != (time_t) -1)
  9302. {
  9303. struct tm *lt = localtime (&now);
  9304. if (! (lt
  9305. && lt->tm_year == tm.tm_year
  9306. && lt->tm_mon == tm.tm_mon
  9307. && lt->tm_mday == tm.tm_mday
  9308. && lt->tm_hour == tm.tm_hour
  9309. && lt->tm_min == tm.tm_min
  9310. && lt->tm_sec == tm.tm_sec
  9311. && lt->tm_yday == tm.tm_yday
  9312. && lt->tm_wday == tm.tm_wday
  9313. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9314. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9315. exit (1);
  9316. }
  9317. }
  9318. int
  9319. main ()
  9320. {
  9321. time_t t, delta;
  9322. int i, j;
  9323. /* This test makes some buggy mktime implementations loop.
  9324. Give up after 60 seconds; a mktime slower than that
  9325. isn't worth using anyway. */
  9326. alarm (60);
  9327. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9328. continue;
  9329. time_t_max--;
  9330. if ((time_t) -1 < 0)
  9331. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9332. continue;
  9333. delta = time_t_max / 997; /* a suitable prime number */
  9334. for (i = 0; i < N_STRINGS; i++)
  9335. {
  9336. if (tz_strings[i])
  9337. putenv (tz_strings[i]);
  9338. for (t = 0; t <= time_t_max - delta; t += delta)
  9339. mktime_test (t);
  9340. mktime_test ((time_t) 1);
  9341. mktime_test ((time_t) (60 * 60));
  9342. mktime_test ((time_t) (60 * 60 * 24));
  9343. for (j = 1; 0 < j; j *= 2)
  9344. bigtime_test (j);
  9345. bigtime_test (j - 1);
  9346. }
  9347. irix_6_4_bug ();
  9348. spring_forward_gap ();
  9349. exit (0);
  9350. }
  9351. _ACEOF
  9352. rm -f conftest$ac_exeext
  9353. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9354. (eval $ac_link) 2>&5
  9355. ac_status=$?
  9356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9357. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9359. (eval $ac_try) 2>&5
  9360. ac_status=$?
  9361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9362. (exit $ac_status); }; }; then
  9363. ac_cv_func_working_mktime=yes
  9364. else
  9365. echo "$as_me: program exited with status $ac_status" >&5
  9366. echo "$as_me: failed program was:" >&5
  9367. sed 's/^/| /' conftest.$ac_ext >&5
  9368. ( exit $ac_status )
  9369. ac_cv_func_working_mktime=no
  9370. fi
  9371. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9372. fi
  9373. fi
  9374. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9375. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9376. if test $ac_cv_func_working_mktime = no; then
  9377. case $LIBOBJS in
  9378. "mktime.$ac_objext" | \
  9379. *" mktime.$ac_objext" | \
  9380. "mktime.$ac_objext "* | \
  9381. *" mktime.$ac_objext "* ) ;;
  9382. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9383. esac
  9384. fi
  9385. for ac_header in stdlib.h unistd.h
  9386. do
  9387. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9388. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9389. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9390. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9391. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9392. echo $ECHO_N "(cached) $ECHO_C" >&6
  9393. fi
  9394. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9395. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9396. else
  9397. # Is the header compilable?
  9398. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9399. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9400. cat >conftest.$ac_ext <<_ACEOF
  9401. /* confdefs.h. */
  9402. _ACEOF
  9403. cat confdefs.h >>conftest.$ac_ext
  9404. cat >>conftest.$ac_ext <<_ACEOF
  9405. /* end confdefs.h. */
  9406. $ac_includes_default
  9407. #include <$ac_header>
  9408. _ACEOF
  9409. rm -f conftest.$ac_objext
  9410. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9411. (eval $ac_compile) 2>conftest.er1
  9412. ac_status=$?
  9413. grep -v '^ *+' conftest.er1 >conftest.err
  9414. rm -f conftest.er1
  9415. cat conftest.err >&5
  9416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9417. (exit $ac_status); } &&
  9418. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9420. (eval $ac_try) 2>&5
  9421. ac_status=$?
  9422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9423. (exit $ac_status); }; } &&
  9424. { ac_try='test -s conftest.$ac_objext'
  9425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9426. (eval $ac_try) 2>&5
  9427. ac_status=$?
  9428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9429. (exit $ac_status); }; }; then
  9430. ac_header_compiler=yes
  9431. else
  9432. echo "$as_me: failed program was:" >&5
  9433. sed 's/^/| /' conftest.$ac_ext >&5
  9434. ac_header_compiler=no
  9435. fi
  9436. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9437. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9438. echo "${ECHO_T}$ac_header_compiler" >&6
  9439. # Is the header present?
  9440. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9441. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9442. cat >conftest.$ac_ext <<_ACEOF
  9443. /* confdefs.h. */
  9444. _ACEOF
  9445. cat confdefs.h >>conftest.$ac_ext
  9446. cat >>conftest.$ac_ext <<_ACEOF
  9447. /* end confdefs.h. */
  9448. #include <$ac_header>
  9449. _ACEOF
  9450. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9451. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9452. ac_status=$?
  9453. grep -v '^ *+' conftest.er1 >conftest.err
  9454. rm -f conftest.er1
  9455. cat conftest.err >&5
  9456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9457. (exit $ac_status); } >/dev/null; then
  9458. if test -s conftest.err; then
  9459. ac_cpp_err=$ac_c_preproc_warn_flag
  9460. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9461. else
  9462. ac_cpp_err=
  9463. fi
  9464. else
  9465. ac_cpp_err=yes
  9466. fi
  9467. if test -z "$ac_cpp_err"; then
  9468. ac_header_preproc=yes
  9469. else
  9470. echo "$as_me: failed program was:" >&5
  9471. sed 's/^/| /' conftest.$ac_ext >&5
  9472. ac_header_preproc=no
  9473. fi
  9474. rm -f conftest.err conftest.$ac_ext
  9475. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9476. echo "${ECHO_T}$ac_header_preproc" >&6
  9477. # So? What about this header?
  9478. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9479. yes:no: )
  9480. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9481. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9482. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9483. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9484. ac_header_preproc=yes
  9485. ;;
  9486. no:yes:* )
  9487. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9488. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9489. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9490. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9491. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9492. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9493. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9494. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9495. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9496. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9497. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9498. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9499. (
  9500. cat <<\_ASBOX
  9501. ## ------------------------------------------ ##
  9502. ## Report this to the AC_PACKAGE_NAME lists. ##
  9503. ## ------------------------------------------ ##
  9504. _ASBOX
  9505. ) |
  9506. sed "s/^/$as_me: WARNING: /" >&2
  9507. ;;
  9508. esac
  9509. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9511. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9512. echo $ECHO_N "(cached) $ECHO_C" >&6
  9513. else
  9514. eval "$as_ac_Header=\$ac_header_preproc"
  9515. fi
  9516. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9517. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9518. fi
  9519. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9520. cat >>confdefs.h <<_ACEOF
  9521. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9522. _ACEOF
  9523. fi
  9524. done
  9525. for ac_func in getpagesize
  9526. do
  9527. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9528. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9529. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9530. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9531. echo $ECHO_N "(cached) $ECHO_C" >&6
  9532. else
  9533. cat >conftest.$ac_ext <<_ACEOF
  9534. /* confdefs.h. */
  9535. _ACEOF
  9536. cat confdefs.h >>conftest.$ac_ext
  9537. cat >>conftest.$ac_ext <<_ACEOF
  9538. /* end confdefs.h. */
  9539. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9540. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9541. #define $ac_func innocuous_$ac_func
  9542. /* System header to define __stub macros and hopefully few prototypes,
  9543. which can conflict with char $ac_func (); below.
  9544. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9545. <limits.h> exists even on freestanding compilers. */
  9546. #ifdef __STDC__
  9547. # include <limits.h>
  9548. #else
  9549. # include <assert.h>
  9550. #endif
  9551. #undef $ac_func
  9552. /* Override any gcc2 internal prototype to avoid an error. */
  9553. #ifdef __cplusplus
  9554. extern "C"
  9555. {
  9556. #endif
  9557. /* We use char because int might match the return type of a gcc2
  9558. builtin and then its argument prototype would still apply. */
  9559. char $ac_func ();
  9560. /* The GNU C library defines this for functions which it implements
  9561. to always fail with ENOSYS. Some functions are actually named
  9562. something starting with __ and the normal name is an alias. */
  9563. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9564. choke me
  9565. #else
  9566. char (*f) () = $ac_func;
  9567. #endif
  9568. #ifdef __cplusplus
  9569. }
  9570. #endif
  9571. int
  9572. main ()
  9573. {
  9574. return f != $ac_func;
  9575. ;
  9576. return 0;
  9577. }
  9578. _ACEOF
  9579. rm -f conftest.$ac_objext conftest$ac_exeext
  9580. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9581. (eval $ac_link) 2>conftest.er1
  9582. ac_status=$?
  9583. grep -v '^ *+' conftest.er1 >conftest.err
  9584. rm -f conftest.er1
  9585. cat conftest.err >&5
  9586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9587. (exit $ac_status); } &&
  9588. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9590. (eval $ac_try) 2>&5
  9591. ac_status=$?
  9592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9593. (exit $ac_status); }; } &&
  9594. { ac_try='test -s conftest$ac_exeext'
  9595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9596. (eval $ac_try) 2>&5
  9597. ac_status=$?
  9598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9599. (exit $ac_status); }; }; then
  9600. eval "$as_ac_var=yes"
  9601. else
  9602. echo "$as_me: failed program was:" >&5
  9603. sed 's/^/| /' conftest.$ac_ext >&5
  9604. eval "$as_ac_var=no"
  9605. fi
  9606. rm -f conftest.err conftest.$ac_objext \
  9607. conftest$ac_exeext conftest.$ac_ext
  9608. fi
  9609. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9610. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9611. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9612. cat >>confdefs.h <<_ACEOF
  9613. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9614. _ACEOF
  9615. fi
  9616. done
  9617. echo "$as_me:$LINENO: checking for working mmap" >&5
  9618. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9619. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9620. echo $ECHO_N "(cached) $ECHO_C" >&6
  9621. else
  9622. if test "$cross_compiling" = yes; then
  9623. ac_cv_func_mmap_fixed_mapped=no
  9624. else
  9625. cat >conftest.$ac_ext <<_ACEOF
  9626. /* confdefs.h. */
  9627. _ACEOF
  9628. cat confdefs.h >>conftest.$ac_ext
  9629. cat >>conftest.$ac_ext <<_ACEOF
  9630. /* end confdefs.h. */
  9631. $ac_includes_default
  9632. /* malloc might have been renamed as rpl_malloc. */
  9633. #undef malloc
  9634. /* Thanks to Mike Haertel and Jim Avera for this test.
  9635. Here is a matrix of mmap possibilities:
  9636. mmap private not fixed
  9637. mmap private fixed at somewhere currently unmapped
  9638. mmap private fixed at somewhere already mapped
  9639. mmap shared not fixed
  9640. mmap shared fixed at somewhere currently unmapped
  9641. mmap shared fixed at somewhere already mapped
  9642. For private mappings, we should verify that changes cannot be read()
  9643. back from the file, nor mmap's back from the file at a different
  9644. address. (There have been systems where private was not correctly
  9645. implemented like the infamous i386 svr4.0, and systems where the
  9646. VM page cache was not coherent with the file system buffer cache
  9647. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9648. For shared mappings, we should conversely verify that changes get
  9649. propagated back to all the places they're supposed to be.
  9650. Grep wants private fixed already mapped.
  9651. The main things grep needs to know about mmap are:
  9652. * does it exist and is it safe to write into the mmap'd area
  9653. * how to use it (BSD variants) */
  9654. #include <fcntl.h>
  9655. #include <sys/mman.h>
  9656. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9657. char *malloc ();
  9658. #endif
  9659. /* This mess was copied from the GNU getpagesize.h. */
  9660. #if !HAVE_GETPAGESIZE
  9661. /* Assume that all systems that can run configure have sys/param.h. */
  9662. # if !HAVE_SYS_PARAM_H
  9663. # define HAVE_SYS_PARAM_H 1
  9664. # endif
  9665. # ifdef _SC_PAGESIZE
  9666. # define getpagesize() sysconf(_SC_PAGESIZE)
  9667. # else /* no _SC_PAGESIZE */
  9668. # if HAVE_SYS_PARAM_H
  9669. # include <sys/param.h>
  9670. # ifdef EXEC_PAGESIZE
  9671. # define getpagesize() EXEC_PAGESIZE
  9672. # else /* no EXEC_PAGESIZE */
  9673. # ifdef NBPG
  9674. # define getpagesize() NBPG * CLSIZE
  9675. # ifndef CLSIZE
  9676. # define CLSIZE 1
  9677. # endif /* no CLSIZE */
  9678. # else /* no NBPG */
  9679. # ifdef NBPC
  9680. # define getpagesize() NBPC
  9681. # else /* no NBPC */
  9682. # ifdef PAGESIZE
  9683. # define getpagesize() PAGESIZE
  9684. # endif /* PAGESIZE */
  9685. # endif /* no NBPC */
  9686. # endif /* no NBPG */
  9687. # endif /* no EXEC_PAGESIZE */
  9688. # else /* no HAVE_SYS_PARAM_H */
  9689. # define getpagesize() 8192 /* punt totally */
  9690. # endif /* no HAVE_SYS_PARAM_H */
  9691. # endif /* no _SC_PAGESIZE */
  9692. #endif /* no HAVE_GETPAGESIZE */
  9693. int
  9694. main ()
  9695. {
  9696. char *data, *data2, *data3;
  9697. int i, pagesize;
  9698. int fd;
  9699. pagesize = getpagesize ();
  9700. /* First, make a file with some known garbage in it. */
  9701. data = (char *) malloc (pagesize);
  9702. if (!data)
  9703. exit (1);
  9704. for (i = 0; i < pagesize; ++i)
  9705. *(data + i) = rand ();
  9706. umask (0);
  9707. fd = creat ("conftest.mmap", 0600);
  9708. if (fd < 0)
  9709. exit (1);
  9710. if (write (fd, data, pagesize) != pagesize)
  9711. exit (1);
  9712. close (fd);
  9713. /* Next, try to mmap the file at a fixed address which already has
  9714. something else allocated at it. If we can, also make sure that
  9715. we see the same garbage. */
  9716. fd = open ("conftest.mmap", O_RDWR);
  9717. if (fd < 0)
  9718. exit (1);
  9719. data2 = (char *) malloc (2 * pagesize);
  9720. if (!data2)
  9721. exit (1);
  9722. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9723. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9724. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9725. exit (1);
  9726. for (i = 0; i < pagesize; ++i)
  9727. if (*(data + i) != *(data2 + i))
  9728. exit (1);
  9729. /* Finally, make sure that changes to the mapped area do not
  9730. percolate back to the file as seen by read(). (This is a bug on
  9731. some variants of i386 svr4.0.) */
  9732. for (i = 0; i < pagesize; ++i)
  9733. *(data2 + i) = *(data2 + i) + 1;
  9734. data3 = (char *) malloc (pagesize);
  9735. if (!data3)
  9736. exit (1);
  9737. if (read (fd, data3, pagesize) != pagesize)
  9738. exit (1);
  9739. for (i = 0; i < pagesize; ++i)
  9740. if (*(data + i) != *(data3 + i))
  9741. exit (1);
  9742. close (fd);
  9743. exit (0);
  9744. }
  9745. _ACEOF
  9746. rm -f conftest$ac_exeext
  9747. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9748. (eval $ac_link) 2>&5
  9749. ac_status=$?
  9750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9751. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9753. (eval $ac_try) 2>&5
  9754. ac_status=$?
  9755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9756. (exit $ac_status); }; }; then
  9757. ac_cv_func_mmap_fixed_mapped=yes
  9758. else
  9759. echo "$as_me: program exited with status $ac_status" >&5
  9760. echo "$as_me: failed program was:" >&5
  9761. sed 's/^/| /' conftest.$ac_ext >&5
  9762. ( exit $ac_status )
  9763. ac_cv_func_mmap_fixed_mapped=no
  9764. fi
  9765. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9766. fi
  9767. fi
  9768. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9769. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9770. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9771. cat >>confdefs.h <<\_ACEOF
  9772. #define HAVE_MMAP 1
  9773. _ACEOF
  9774. fi
  9775. rm -f conftest.mmap
  9776. for ac_header in stdlib.h
  9777. do
  9778. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9779. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9780. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9781. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9782. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9783. echo $ECHO_N "(cached) $ECHO_C" >&6
  9784. fi
  9785. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9786. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9787. else
  9788. # Is the header compilable?
  9789. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9790. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9791. cat >conftest.$ac_ext <<_ACEOF
  9792. /* confdefs.h. */
  9793. _ACEOF
  9794. cat confdefs.h >>conftest.$ac_ext
  9795. cat >>conftest.$ac_ext <<_ACEOF
  9796. /* end confdefs.h. */
  9797. $ac_includes_default
  9798. #include <$ac_header>
  9799. _ACEOF
  9800. rm -f conftest.$ac_objext
  9801. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9802. (eval $ac_compile) 2>conftest.er1
  9803. ac_status=$?
  9804. grep -v '^ *+' conftest.er1 >conftest.err
  9805. rm -f conftest.er1
  9806. cat conftest.err >&5
  9807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9808. (exit $ac_status); } &&
  9809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9811. (eval $ac_try) 2>&5
  9812. ac_status=$?
  9813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9814. (exit $ac_status); }; } &&
  9815. { ac_try='test -s conftest.$ac_objext'
  9816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9817. (eval $ac_try) 2>&5
  9818. ac_status=$?
  9819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9820. (exit $ac_status); }; }; then
  9821. ac_header_compiler=yes
  9822. else
  9823. echo "$as_me: failed program was:" >&5
  9824. sed 's/^/| /' conftest.$ac_ext >&5
  9825. ac_header_compiler=no
  9826. fi
  9827. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9828. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9829. echo "${ECHO_T}$ac_header_compiler" >&6
  9830. # Is the header present?
  9831. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9832. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9833. cat >conftest.$ac_ext <<_ACEOF
  9834. /* confdefs.h. */
  9835. _ACEOF
  9836. cat confdefs.h >>conftest.$ac_ext
  9837. cat >>conftest.$ac_ext <<_ACEOF
  9838. /* end confdefs.h. */
  9839. #include <$ac_header>
  9840. _ACEOF
  9841. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9842. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9843. ac_status=$?
  9844. grep -v '^ *+' conftest.er1 >conftest.err
  9845. rm -f conftest.er1
  9846. cat conftest.err >&5
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); } >/dev/null; then
  9849. if test -s conftest.err; then
  9850. ac_cpp_err=$ac_c_preproc_warn_flag
  9851. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9852. else
  9853. ac_cpp_err=
  9854. fi
  9855. else
  9856. ac_cpp_err=yes
  9857. fi
  9858. if test -z "$ac_cpp_err"; then
  9859. ac_header_preproc=yes
  9860. else
  9861. echo "$as_me: failed program was:" >&5
  9862. sed 's/^/| /' conftest.$ac_ext >&5
  9863. ac_header_preproc=no
  9864. fi
  9865. rm -f conftest.err conftest.$ac_ext
  9866. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9867. echo "${ECHO_T}$ac_header_preproc" >&6
  9868. # So? What about this header?
  9869. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9870. yes:no: )
  9871. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9872. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9873. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9874. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9875. ac_header_preproc=yes
  9876. ;;
  9877. no:yes:* )
  9878. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9879. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9880. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9881. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9882. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9883. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9884. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9885. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9886. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9887. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9888. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9889. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9890. (
  9891. cat <<\_ASBOX
  9892. ## ------------------------------------------ ##
  9893. ## Report this to the AC_PACKAGE_NAME lists. ##
  9894. ## ------------------------------------------ ##
  9895. _ASBOX
  9896. ) |
  9897. sed "s/^/$as_me: WARNING: /" >&2
  9898. ;;
  9899. esac
  9900. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9901. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9902. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9903. echo $ECHO_N "(cached) $ECHO_C" >&6
  9904. else
  9905. eval "$as_ac_Header=\$ac_header_preproc"
  9906. fi
  9907. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9908. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9909. fi
  9910. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9911. cat >>confdefs.h <<_ACEOF
  9912. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9913. _ACEOF
  9914. fi
  9915. done
  9916. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9917. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9918. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9919. echo $ECHO_N "(cached) $ECHO_C" >&6
  9920. else
  9921. if test "$cross_compiling" = yes; then
  9922. ac_cv_func_realloc_0_nonnull=no
  9923. else
  9924. cat >conftest.$ac_ext <<_ACEOF
  9925. /* confdefs.h. */
  9926. _ACEOF
  9927. cat confdefs.h >>conftest.$ac_ext
  9928. cat >>conftest.$ac_ext <<_ACEOF
  9929. /* end confdefs.h. */
  9930. #if STDC_HEADERS || HAVE_STDLIB_H
  9931. # include <stdlib.h>
  9932. #else
  9933. char *realloc ();
  9934. #endif
  9935. int
  9936. main ()
  9937. {
  9938. exit (realloc (0, 0) ? 0 : 1);
  9939. ;
  9940. return 0;
  9941. }
  9942. _ACEOF
  9943. rm -f conftest$ac_exeext
  9944. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9945. (eval $ac_link) 2>&5
  9946. ac_status=$?
  9947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9948. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9950. (eval $ac_try) 2>&5
  9951. ac_status=$?
  9952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9953. (exit $ac_status); }; }; then
  9954. ac_cv_func_realloc_0_nonnull=yes
  9955. else
  9956. echo "$as_me: program exited with status $ac_status" >&5
  9957. echo "$as_me: failed program was:" >&5
  9958. sed 's/^/| /' conftest.$ac_ext >&5
  9959. ( exit $ac_status )
  9960. ac_cv_func_realloc_0_nonnull=no
  9961. fi
  9962. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9963. fi
  9964. fi
  9965. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9966. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9967. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9968. cat >>confdefs.h <<\_ACEOF
  9969. #define HAVE_REALLOC 1
  9970. _ACEOF
  9971. else
  9972. cat >>confdefs.h <<\_ACEOF
  9973. #define HAVE_REALLOC 0
  9974. _ACEOF
  9975. case $LIBOBJS in
  9976. "realloc.$ac_objext" | \
  9977. *" realloc.$ac_objext" | \
  9978. "realloc.$ac_objext "* | \
  9979. *" realloc.$ac_objext "* ) ;;
  9980. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9981. esac
  9982. cat >>confdefs.h <<\_ACEOF
  9983. #define realloc rpl_realloc
  9984. _ACEOF
  9985. fi
  9986. for ac_header in sys/select.h sys/socket.h
  9987. do
  9988. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9989. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9990. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9991. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9992. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9993. echo $ECHO_N "(cached) $ECHO_C" >&6
  9994. fi
  9995. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9996. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9997. else
  9998. # Is the header compilable?
  9999. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10000. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10001. cat >conftest.$ac_ext <<_ACEOF
  10002. /* confdefs.h. */
  10003. _ACEOF
  10004. cat confdefs.h >>conftest.$ac_ext
  10005. cat >>conftest.$ac_ext <<_ACEOF
  10006. /* end confdefs.h. */
  10007. $ac_includes_default
  10008. #include <$ac_header>
  10009. _ACEOF
  10010. rm -f conftest.$ac_objext
  10011. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10012. (eval $ac_compile) 2>conftest.er1
  10013. ac_status=$?
  10014. grep -v '^ *+' conftest.er1 >conftest.err
  10015. rm -f conftest.er1
  10016. cat conftest.err >&5
  10017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10018. (exit $ac_status); } &&
  10019. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10021. (eval $ac_try) 2>&5
  10022. ac_status=$?
  10023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10024. (exit $ac_status); }; } &&
  10025. { ac_try='test -s conftest.$ac_objext'
  10026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10027. (eval $ac_try) 2>&5
  10028. ac_status=$?
  10029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10030. (exit $ac_status); }; }; then
  10031. ac_header_compiler=yes
  10032. else
  10033. echo "$as_me: failed program was:" >&5
  10034. sed 's/^/| /' conftest.$ac_ext >&5
  10035. ac_header_compiler=no
  10036. fi
  10037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10038. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10039. echo "${ECHO_T}$ac_header_compiler" >&6
  10040. # Is the header present?
  10041. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10042. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10043. cat >conftest.$ac_ext <<_ACEOF
  10044. /* confdefs.h. */
  10045. _ACEOF
  10046. cat confdefs.h >>conftest.$ac_ext
  10047. cat >>conftest.$ac_ext <<_ACEOF
  10048. /* end confdefs.h. */
  10049. #include <$ac_header>
  10050. _ACEOF
  10051. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10052. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10053. ac_status=$?
  10054. grep -v '^ *+' conftest.er1 >conftest.err
  10055. rm -f conftest.er1
  10056. cat conftest.err >&5
  10057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10058. (exit $ac_status); } >/dev/null; then
  10059. if test -s conftest.err; then
  10060. ac_cpp_err=$ac_c_preproc_warn_flag
  10061. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10062. else
  10063. ac_cpp_err=
  10064. fi
  10065. else
  10066. ac_cpp_err=yes
  10067. fi
  10068. if test -z "$ac_cpp_err"; then
  10069. ac_header_preproc=yes
  10070. else
  10071. echo "$as_me: failed program was:" >&5
  10072. sed 's/^/| /' conftest.$ac_ext >&5
  10073. ac_header_preproc=no
  10074. fi
  10075. rm -f conftest.err conftest.$ac_ext
  10076. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10077. echo "${ECHO_T}$ac_header_preproc" >&6
  10078. # So? What about this header?
  10079. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10080. yes:no: )
  10081. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10082. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10083. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10084. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10085. ac_header_preproc=yes
  10086. ;;
  10087. no:yes:* )
  10088. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10089. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10090. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10091. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10092. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10093. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10094. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10095. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10096. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10097. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10098. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10099. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10100. (
  10101. cat <<\_ASBOX
  10102. ## ------------------------------------------ ##
  10103. ## Report this to the AC_PACKAGE_NAME lists. ##
  10104. ## ------------------------------------------ ##
  10105. _ASBOX
  10106. ) |
  10107. sed "s/^/$as_me: WARNING: /" >&2
  10108. ;;
  10109. esac
  10110. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10111. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10112. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10113. echo $ECHO_N "(cached) $ECHO_C" >&6
  10114. else
  10115. eval "$as_ac_Header=\$ac_header_preproc"
  10116. fi
  10117. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10118. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10119. fi
  10120. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10121. cat >>confdefs.h <<_ACEOF
  10122. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10123. _ACEOF
  10124. fi
  10125. done
  10126. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10127. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10128. if test "${ac_cv_func_select_args+set}" = set; then
  10129. echo $ECHO_N "(cached) $ECHO_C" >&6
  10130. else
  10131. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10132. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10133. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10134. cat >conftest.$ac_ext <<_ACEOF
  10135. /* confdefs.h. */
  10136. _ACEOF
  10137. cat confdefs.h >>conftest.$ac_ext
  10138. cat >>conftest.$ac_ext <<_ACEOF
  10139. /* end confdefs.h. */
  10140. $ac_includes_default
  10141. #if HAVE_SYS_SELECT_H
  10142. # include <sys/select.h>
  10143. #endif
  10144. #if HAVE_SYS_SOCKET_H
  10145. # include <sys/socket.h>
  10146. #endif
  10147. int
  10148. main ()
  10149. {
  10150. extern int select ($ac_arg1,
  10151. $ac_arg234, $ac_arg234, $ac_arg234,
  10152. $ac_arg5);
  10153. ;
  10154. return 0;
  10155. }
  10156. _ACEOF
  10157. rm -f conftest.$ac_objext
  10158. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10159. (eval $ac_compile) 2>conftest.er1
  10160. ac_status=$?
  10161. grep -v '^ *+' conftest.er1 >conftest.err
  10162. rm -f conftest.er1
  10163. cat conftest.err >&5
  10164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10165. (exit $ac_status); } &&
  10166. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10168. (eval $ac_try) 2>&5
  10169. ac_status=$?
  10170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10171. (exit $ac_status); }; } &&
  10172. { ac_try='test -s conftest.$ac_objext'
  10173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10174. (eval $ac_try) 2>&5
  10175. ac_status=$?
  10176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10177. (exit $ac_status); }; }; then
  10178. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10179. else
  10180. echo "$as_me: failed program was:" >&5
  10181. sed 's/^/| /' conftest.$ac_ext >&5
  10182. fi
  10183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10184. done
  10185. done
  10186. done
  10187. # Provide a safe default value.
  10188. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10189. fi
  10190. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10191. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10192. ac_save_IFS=$IFS; IFS=','
  10193. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10194. IFS=$ac_save_IFS
  10195. shift
  10196. cat >>confdefs.h <<_ACEOF
  10197. #define SELECT_TYPE_ARG1 $1
  10198. _ACEOF
  10199. cat >>confdefs.h <<_ACEOF
  10200. #define SELECT_TYPE_ARG234 ($2)
  10201. _ACEOF
  10202. cat >>confdefs.h <<_ACEOF
  10203. #define SELECT_TYPE_ARG5 ($3)
  10204. _ACEOF
  10205. rm -f conftest*
  10206. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10207. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10208. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10209. echo $ECHO_N "(cached) $ECHO_C" >&6
  10210. else
  10211. if test "$cross_compiling" = yes; then
  10212. ac_cv_func_stat_empty_string_bug=yes
  10213. else
  10214. cat >conftest.$ac_ext <<_ACEOF
  10215. /* confdefs.h. */
  10216. _ACEOF
  10217. cat confdefs.h >>conftest.$ac_ext
  10218. cat >>conftest.$ac_ext <<_ACEOF
  10219. /* end confdefs.h. */
  10220. $ac_includes_default
  10221. int
  10222. main ()
  10223. {
  10224. struct stat sbuf;
  10225. exit (stat ("", &sbuf) ? 1 : 0);
  10226. ;
  10227. return 0;
  10228. }
  10229. _ACEOF
  10230. rm -f conftest$ac_exeext
  10231. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10232. (eval $ac_link) 2>&5
  10233. ac_status=$?
  10234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10235. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10237. (eval $ac_try) 2>&5
  10238. ac_status=$?
  10239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10240. (exit $ac_status); }; }; then
  10241. ac_cv_func_stat_empty_string_bug=yes
  10242. else
  10243. echo "$as_me: program exited with status $ac_status" >&5
  10244. echo "$as_me: failed program was:" >&5
  10245. sed 's/^/| /' conftest.$ac_ext >&5
  10246. ( exit $ac_status )
  10247. ac_cv_func_stat_empty_string_bug=no
  10248. fi
  10249. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10250. fi
  10251. fi
  10252. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10253. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10254. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10255. case $LIBOBJS in
  10256. "stat.$ac_objext" | \
  10257. *" stat.$ac_objext" | \
  10258. "stat.$ac_objext "* | \
  10259. *" stat.$ac_objext "* ) ;;
  10260. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10261. esac
  10262. cat >>confdefs.h <<_ACEOF
  10263. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10264. _ACEOF
  10265. fi
  10266. for ac_func in strftime
  10267. do
  10268. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10269. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10270. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10271. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10272. echo $ECHO_N "(cached) $ECHO_C" >&6
  10273. else
  10274. cat >conftest.$ac_ext <<_ACEOF
  10275. /* confdefs.h. */
  10276. _ACEOF
  10277. cat confdefs.h >>conftest.$ac_ext
  10278. cat >>conftest.$ac_ext <<_ACEOF
  10279. /* end confdefs.h. */
  10280. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10281. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10282. #define $ac_func innocuous_$ac_func
  10283. /* System header to define __stub macros and hopefully few prototypes,
  10284. which can conflict with char $ac_func (); below.
  10285. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10286. <limits.h> exists even on freestanding compilers. */
  10287. #ifdef __STDC__
  10288. # include <limits.h>
  10289. #else
  10290. # include <assert.h>
  10291. #endif
  10292. #undef $ac_func
  10293. /* Override any gcc2 internal prototype to avoid an error. */
  10294. #ifdef __cplusplus
  10295. extern "C"
  10296. {
  10297. #endif
  10298. /* We use char because int might match the return type of a gcc2
  10299. builtin and then its argument prototype would still apply. */
  10300. char $ac_func ();
  10301. /* The GNU C library defines this for functions which it implements
  10302. to always fail with ENOSYS. Some functions are actually named
  10303. something starting with __ and the normal name is an alias. */
  10304. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10305. choke me
  10306. #else
  10307. char (*f) () = $ac_func;
  10308. #endif
  10309. #ifdef __cplusplus
  10310. }
  10311. #endif
  10312. int
  10313. main ()
  10314. {
  10315. return f != $ac_func;
  10316. ;
  10317. return 0;
  10318. }
  10319. _ACEOF
  10320. rm -f conftest.$ac_objext conftest$ac_exeext
  10321. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10322. (eval $ac_link) 2>conftest.er1
  10323. ac_status=$?
  10324. grep -v '^ *+' conftest.er1 >conftest.err
  10325. rm -f conftest.er1
  10326. cat conftest.err >&5
  10327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10328. (exit $ac_status); } &&
  10329. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10331. (eval $ac_try) 2>&5
  10332. ac_status=$?
  10333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10334. (exit $ac_status); }; } &&
  10335. { ac_try='test -s conftest$ac_exeext'
  10336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10337. (eval $ac_try) 2>&5
  10338. ac_status=$?
  10339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10340. (exit $ac_status); }; }; then
  10341. eval "$as_ac_var=yes"
  10342. else
  10343. echo "$as_me: failed program was:" >&5
  10344. sed 's/^/| /' conftest.$ac_ext >&5
  10345. eval "$as_ac_var=no"
  10346. fi
  10347. rm -f conftest.err conftest.$ac_objext \
  10348. conftest$ac_exeext conftest.$ac_ext
  10349. fi
  10350. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10351. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10352. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10353. cat >>confdefs.h <<_ACEOF
  10354. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10355. _ACEOF
  10356. else
  10357. # strftime is in -lintl on SCO UNIX.
  10358. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10359. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10360. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10361. echo $ECHO_N "(cached) $ECHO_C" >&6
  10362. else
  10363. ac_check_lib_save_LIBS=$LIBS
  10364. LIBS="-lintl $LIBS"
  10365. cat >conftest.$ac_ext <<_ACEOF
  10366. /* confdefs.h. */
  10367. _ACEOF
  10368. cat confdefs.h >>conftest.$ac_ext
  10369. cat >>conftest.$ac_ext <<_ACEOF
  10370. /* end confdefs.h. */
  10371. /* Override any gcc2 internal prototype to avoid an error. */
  10372. #ifdef __cplusplus
  10373. extern "C"
  10374. #endif
  10375. /* We use char because int might match the return type of a gcc2
  10376. builtin and then its argument prototype would still apply. */
  10377. char strftime ();
  10378. int
  10379. main ()
  10380. {
  10381. strftime ();
  10382. ;
  10383. return 0;
  10384. }
  10385. _ACEOF
  10386. rm -f conftest.$ac_objext conftest$ac_exeext
  10387. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10388. (eval $ac_link) 2>conftest.er1
  10389. ac_status=$?
  10390. grep -v '^ *+' conftest.er1 >conftest.err
  10391. rm -f conftest.er1
  10392. cat conftest.err >&5
  10393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10394. (exit $ac_status); } &&
  10395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10397. (eval $ac_try) 2>&5
  10398. ac_status=$?
  10399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10400. (exit $ac_status); }; } &&
  10401. { ac_try='test -s conftest$ac_exeext'
  10402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10403. (eval $ac_try) 2>&5
  10404. ac_status=$?
  10405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10406. (exit $ac_status); }; }; then
  10407. ac_cv_lib_intl_strftime=yes
  10408. else
  10409. echo "$as_me: failed program was:" >&5
  10410. sed 's/^/| /' conftest.$ac_ext >&5
  10411. ac_cv_lib_intl_strftime=no
  10412. fi
  10413. rm -f conftest.err conftest.$ac_objext \
  10414. conftest$ac_exeext conftest.$ac_ext
  10415. LIBS=$ac_check_lib_save_LIBS
  10416. fi
  10417. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10418. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10419. if test $ac_cv_lib_intl_strftime = yes; then
  10420. cat >>confdefs.h <<\_ACEOF
  10421. #define HAVE_STRFTIME 1
  10422. _ACEOF
  10423. LIBS="-lintl $LIBS"
  10424. fi
  10425. fi
  10426. done
  10427. #checkpoint
  10428. cat >confcache <<\_ACEOF
  10429. # This file is a shell script that caches the results of configure
  10430. # tests run on this system so they can be shared between configure
  10431. # scripts and configure runs, see configure's option --config-cache.
  10432. # It is not useful on other systems. If it contains results you don't
  10433. # want to keep, you may remove or edit it.
  10434. #
  10435. # config.status only pays attention to the cache file if you give it
  10436. # the --recheck option to rerun configure.
  10437. #
  10438. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10439. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10440. # following values.
  10441. _ACEOF
  10442. # The following way of writing the cache mishandles newlines in values,
  10443. # but we know of no workaround that is simple, portable, and efficient.
  10444. # So, don't put newlines in cache variables' values.
  10445. # Ultrix sh set writes to stderr and can't be redirected directly,
  10446. # and sets the high bit in the cache file unless we assign to the vars.
  10447. {
  10448. (set) 2>&1 |
  10449. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10450. *ac_space=\ *)
  10451. # `set' does not quote correctly, so add quotes (double-quote
  10452. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10453. sed -n \
  10454. "s/'/'\\\\''/g;
  10455. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10456. ;;
  10457. *)
  10458. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10459. sed -n \
  10460. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10461. ;;
  10462. esac;
  10463. } |
  10464. sed '
  10465. t clear
  10466. : clear
  10467. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10468. t end
  10469. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10470. : end' >>confcache
  10471. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10472. if test -w $cache_file; then
  10473. test "x$cache_file" != "x/dev/null"
  10474. cat confcache >$cache_file
  10475. else
  10476. echo "not updating unwritable cache $cache_file"
  10477. fi
  10478. fi
  10479. rm -f confcache
  10480. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10481. do
  10482. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10483. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10484. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10485. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10486. echo $ECHO_N "(cached) $ECHO_C" >&6
  10487. else
  10488. cat >conftest.$ac_ext <<_ACEOF
  10489. /* confdefs.h. */
  10490. _ACEOF
  10491. cat confdefs.h >>conftest.$ac_ext
  10492. cat >>conftest.$ac_ext <<_ACEOF
  10493. /* end confdefs.h. */
  10494. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10495. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10496. #define $ac_func innocuous_$ac_func
  10497. /* System header to define __stub macros and hopefully few prototypes,
  10498. which can conflict with char $ac_func (); below.
  10499. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10500. <limits.h> exists even on freestanding compilers. */
  10501. #ifdef __STDC__
  10502. # include <limits.h>
  10503. #else
  10504. # include <assert.h>
  10505. #endif
  10506. #undef $ac_func
  10507. /* Override any gcc2 internal prototype to avoid an error. */
  10508. #ifdef __cplusplus
  10509. extern "C"
  10510. {
  10511. #endif
  10512. /* We use char because int might match the return type of a gcc2
  10513. builtin and then its argument prototype would still apply. */
  10514. char $ac_func ();
  10515. /* The GNU C library defines this for functions which it implements
  10516. to always fail with ENOSYS. Some functions are actually named
  10517. something starting with __ and the normal name is an alias. */
  10518. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10519. choke me
  10520. #else
  10521. char (*f) () = $ac_func;
  10522. #endif
  10523. #ifdef __cplusplus
  10524. }
  10525. #endif
  10526. int
  10527. main ()
  10528. {
  10529. return f != $ac_func;
  10530. ;
  10531. return 0;
  10532. }
  10533. _ACEOF
  10534. rm -f conftest.$ac_objext conftest$ac_exeext
  10535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10536. (eval $ac_link) 2>conftest.er1
  10537. ac_status=$?
  10538. grep -v '^ *+' conftest.er1 >conftest.err
  10539. rm -f conftest.er1
  10540. cat conftest.err >&5
  10541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10542. (exit $ac_status); } &&
  10543. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10545. (eval $ac_try) 2>&5
  10546. ac_status=$?
  10547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10548. (exit $ac_status); }; } &&
  10549. { ac_try='test -s conftest$ac_exeext'
  10550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10551. (eval $ac_try) 2>&5
  10552. ac_status=$?
  10553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10554. (exit $ac_status); }; }; then
  10555. eval "$as_ac_var=yes"
  10556. else
  10557. echo "$as_me: failed program was:" >&5
  10558. sed 's/^/| /' conftest.$ac_ext >&5
  10559. eval "$as_ac_var=no"
  10560. fi
  10561. rm -f conftest.err conftest.$ac_objext \
  10562. conftest$ac_exeext conftest.$ac_ext
  10563. fi
  10564. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10565. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10566. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10567. cat >>confdefs.h <<_ACEOF
  10568. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10569. _ACEOF
  10570. fi
  10571. done
  10572. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10573. do
  10574. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10575. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10576. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10577. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10578. echo $ECHO_N "(cached) $ECHO_C" >&6
  10579. else
  10580. cat >conftest.$ac_ext <<_ACEOF
  10581. /* confdefs.h. */
  10582. _ACEOF
  10583. cat confdefs.h >>conftest.$ac_ext
  10584. cat >>conftest.$ac_ext <<_ACEOF
  10585. /* end confdefs.h. */
  10586. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10587. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10588. #define $ac_func innocuous_$ac_func
  10589. /* System header to define __stub macros and hopefully few prototypes,
  10590. which can conflict with char $ac_func (); below.
  10591. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10592. <limits.h> exists even on freestanding compilers. */
  10593. #ifdef __STDC__
  10594. # include <limits.h>
  10595. #else
  10596. # include <assert.h>
  10597. #endif
  10598. #undef $ac_func
  10599. /* Override any gcc2 internal prototype to avoid an error. */
  10600. #ifdef __cplusplus
  10601. extern "C"
  10602. {
  10603. #endif
  10604. /* We use char because int might match the return type of a gcc2
  10605. builtin and then its argument prototype would still apply. */
  10606. char $ac_func ();
  10607. /* The GNU C library defines this for functions which it implements
  10608. to always fail with ENOSYS. Some functions are actually named
  10609. something starting with __ and the normal name is an alias. */
  10610. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10611. choke me
  10612. #else
  10613. char (*f) () = $ac_func;
  10614. #endif
  10615. #ifdef __cplusplus
  10616. }
  10617. #endif
  10618. int
  10619. main ()
  10620. {
  10621. return f != $ac_func;
  10622. ;
  10623. return 0;
  10624. }
  10625. _ACEOF
  10626. rm -f conftest.$ac_objext conftest$ac_exeext
  10627. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10628. (eval $ac_link) 2>conftest.er1
  10629. ac_status=$?
  10630. grep -v '^ *+' conftest.er1 >conftest.err
  10631. rm -f conftest.er1
  10632. cat conftest.err >&5
  10633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10634. (exit $ac_status); } &&
  10635. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10637. (eval $ac_try) 2>&5
  10638. ac_status=$?
  10639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10640. (exit $ac_status); }; } &&
  10641. { ac_try='test -s conftest$ac_exeext'
  10642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10643. (eval $ac_try) 2>&5
  10644. ac_status=$?
  10645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10646. (exit $ac_status); }; }; then
  10647. eval "$as_ac_var=yes"
  10648. else
  10649. echo "$as_me: failed program was:" >&5
  10650. sed 's/^/| /' conftest.$ac_ext >&5
  10651. eval "$as_ac_var=no"
  10652. fi
  10653. rm -f conftest.err conftest.$ac_objext \
  10654. conftest$ac_exeext conftest.$ac_ext
  10655. fi
  10656. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10657. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10658. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10659. cat >>confdefs.h <<_ACEOF
  10660. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10661. _ACEOF
  10662. fi
  10663. done
  10664. #checkpoint
  10665. cat >confcache <<\_ACEOF
  10666. # This file is a shell script that caches the results of configure
  10667. # tests run on this system so they can be shared between configure
  10668. # scripts and configure runs, see configure's option --config-cache.
  10669. # It is not useful on other systems. If it contains results you don't
  10670. # want to keep, you may remove or edit it.
  10671. #
  10672. # config.status only pays attention to the cache file if you give it
  10673. # the --recheck option to rerun configure.
  10674. #
  10675. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10676. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10677. # following values.
  10678. _ACEOF
  10679. # The following way of writing the cache mishandles newlines in values,
  10680. # but we know of no workaround that is simple, portable, and efficient.
  10681. # So, don't put newlines in cache variables' values.
  10682. # Ultrix sh set writes to stderr and can't be redirected directly,
  10683. # and sets the high bit in the cache file unless we assign to the vars.
  10684. {
  10685. (set) 2>&1 |
  10686. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10687. *ac_space=\ *)
  10688. # `set' does not quote correctly, so add quotes (double-quote
  10689. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10690. sed -n \
  10691. "s/'/'\\\\''/g;
  10692. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10693. ;;
  10694. *)
  10695. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10696. sed -n \
  10697. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10698. ;;
  10699. esac;
  10700. } |
  10701. sed '
  10702. t clear
  10703. : clear
  10704. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10705. t end
  10706. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10707. : end' >>confcache
  10708. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10709. if test -w $cache_file; then
  10710. test "x$cache_file" != "x/dev/null"
  10711. cat confcache >$cache_file
  10712. else
  10713. echo "not updating unwritable cache $cache_file"
  10714. fi
  10715. fi
  10716. rm -f confcache
  10717. for ac_func in strcasecmp strncasecmp vsnprintf
  10718. do
  10719. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10720. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10721. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10722. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10723. echo $ECHO_N "(cached) $ECHO_C" >&6
  10724. else
  10725. cat >conftest.$ac_ext <<_ACEOF
  10726. /* confdefs.h. */
  10727. _ACEOF
  10728. cat confdefs.h >>conftest.$ac_ext
  10729. cat >>conftest.$ac_ext <<_ACEOF
  10730. /* end confdefs.h. */
  10731. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10732. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10733. #define $ac_func innocuous_$ac_func
  10734. /* System header to define __stub macros and hopefully few prototypes,
  10735. which can conflict with char $ac_func (); below.
  10736. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10737. <limits.h> exists even on freestanding compilers. */
  10738. #ifdef __STDC__
  10739. # include <limits.h>
  10740. #else
  10741. # include <assert.h>
  10742. #endif
  10743. #undef $ac_func
  10744. /* Override any gcc2 internal prototype to avoid an error. */
  10745. #ifdef __cplusplus
  10746. extern "C"
  10747. {
  10748. #endif
  10749. /* We use char because int might match the return type of a gcc2
  10750. builtin and then its argument prototype would still apply. */
  10751. char $ac_func ();
  10752. /* The GNU C library defines this for functions which it implements
  10753. to always fail with ENOSYS. Some functions are actually named
  10754. something starting with __ and the normal name is an alias. */
  10755. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10756. choke me
  10757. #else
  10758. char (*f) () = $ac_func;
  10759. #endif
  10760. #ifdef __cplusplus
  10761. }
  10762. #endif
  10763. int
  10764. main ()
  10765. {
  10766. return f != $ac_func;
  10767. ;
  10768. return 0;
  10769. }
  10770. _ACEOF
  10771. rm -f conftest.$ac_objext conftest$ac_exeext
  10772. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10773. (eval $ac_link) 2>conftest.er1
  10774. ac_status=$?
  10775. grep -v '^ *+' conftest.er1 >conftest.err
  10776. rm -f conftest.er1
  10777. cat conftest.err >&5
  10778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10779. (exit $ac_status); } &&
  10780. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10782. (eval $ac_try) 2>&5
  10783. ac_status=$?
  10784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10785. (exit $ac_status); }; } &&
  10786. { ac_try='test -s conftest$ac_exeext'
  10787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10788. (eval $ac_try) 2>&5
  10789. ac_status=$?
  10790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10791. (exit $ac_status); }; }; then
  10792. eval "$as_ac_var=yes"
  10793. else
  10794. echo "$as_me: failed program was:" >&5
  10795. sed 's/^/| /' conftest.$ac_ext >&5
  10796. eval "$as_ac_var=no"
  10797. fi
  10798. rm -f conftest.err conftest.$ac_objext \
  10799. conftest$ac_exeext conftest.$ac_ext
  10800. fi
  10801. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10802. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10803. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10804. cat >>confdefs.h <<_ACEOF
  10805. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10806. _ACEOF
  10807. fi
  10808. done
  10809. #autoscan suggested this....
  10810. #These are recommended by autoscan, but no code supports it currently
  10811. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10812. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10813. for ac_func in vsprintf
  10814. do
  10815. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10816. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10817. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10818. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10819. echo $ECHO_N "(cached) $ECHO_C" >&6
  10820. else
  10821. cat >conftest.$ac_ext <<_ACEOF
  10822. /* confdefs.h. */
  10823. _ACEOF
  10824. cat confdefs.h >>conftest.$ac_ext
  10825. cat >>conftest.$ac_ext <<_ACEOF
  10826. /* end confdefs.h. */
  10827. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10828. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10829. #define $ac_func innocuous_$ac_func
  10830. /* System header to define __stub macros and hopefully few prototypes,
  10831. which can conflict with char $ac_func (); below.
  10832. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10833. <limits.h> exists even on freestanding compilers. */
  10834. #ifdef __STDC__
  10835. # include <limits.h>
  10836. #else
  10837. # include <assert.h>
  10838. #endif
  10839. #undef $ac_func
  10840. /* Override any gcc2 internal prototype to avoid an error. */
  10841. #ifdef __cplusplus
  10842. extern "C"
  10843. {
  10844. #endif
  10845. /* We use char because int might match the return type of a gcc2
  10846. builtin and then its argument prototype would still apply. */
  10847. char $ac_func ();
  10848. /* The GNU C library defines this for functions which it implements
  10849. to always fail with ENOSYS. Some functions are actually named
  10850. something starting with __ and the normal name is an alias. */
  10851. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10852. choke me
  10853. #else
  10854. char (*f) () = $ac_func;
  10855. #endif
  10856. #ifdef __cplusplus
  10857. }
  10858. #endif
  10859. int
  10860. main ()
  10861. {
  10862. return f != $ac_func;
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. rm -f conftest.$ac_objext conftest$ac_exeext
  10868. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10869. (eval $ac_link) 2>conftest.er1
  10870. ac_status=$?
  10871. grep -v '^ *+' conftest.er1 >conftest.err
  10872. rm -f conftest.er1
  10873. cat conftest.err >&5
  10874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10875. (exit $ac_status); } &&
  10876. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10878. (eval $ac_try) 2>&5
  10879. ac_status=$?
  10880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10881. (exit $ac_status); }; } &&
  10882. { ac_try='test -s conftest$ac_exeext'
  10883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10884. (eval $ac_try) 2>&5
  10885. ac_status=$?
  10886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10887. (exit $ac_status); }; }; then
  10888. eval "$as_ac_var=yes"
  10889. else
  10890. echo "$as_me: failed program was:" >&5
  10891. sed 's/^/| /' conftest.$ac_ext >&5
  10892. eval "$as_ac_var=no"
  10893. fi
  10894. rm -f conftest.err conftest.$ac_objext \
  10895. conftest$ac_exeext conftest.$ac_ext
  10896. fi
  10897. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10898. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10899. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10900. cat >>confdefs.h <<_ACEOF
  10901. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10902. _ACEOF
  10903. fi
  10904. done
  10905. if test "$ac_cv_func_vsprintf" = "no"
  10906. then
  10907. cat << 'EOF' >&2
  10908. configure: error:
  10909. Your system does not have the sprintf/vsprintf libraries.
  10910. These are required to compile almost anything. Sorry.
  10911. EOF
  10912. exit 1
  10913. fi
  10914. for ac_func in uname
  10915. do
  10916. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10917. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10918. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10919. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10920. echo $ECHO_N "(cached) $ECHO_C" >&6
  10921. else
  10922. cat >conftest.$ac_ext <<_ACEOF
  10923. /* confdefs.h. */
  10924. _ACEOF
  10925. cat confdefs.h >>conftest.$ac_ext
  10926. cat >>conftest.$ac_ext <<_ACEOF
  10927. /* end confdefs.h. */
  10928. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10929. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10930. #define $ac_func innocuous_$ac_func
  10931. /* System header to define __stub macros and hopefully few prototypes,
  10932. which can conflict with char $ac_func (); below.
  10933. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10934. <limits.h> exists even on freestanding compilers. */
  10935. #ifdef __STDC__
  10936. # include <limits.h>
  10937. #else
  10938. # include <assert.h>
  10939. #endif
  10940. #undef $ac_func
  10941. /* Override any gcc2 internal prototype to avoid an error. */
  10942. #ifdef __cplusplus
  10943. extern "C"
  10944. {
  10945. #endif
  10946. /* We use char because int might match the return type of a gcc2
  10947. builtin and then its argument prototype would still apply. */
  10948. char $ac_func ();
  10949. /* The GNU C library defines this for functions which it implements
  10950. to always fail with ENOSYS. Some functions are actually named
  10951. something starting with __ and the normal name is an alias. */
  10952. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10953. choke me
  10954. #else
  10955. char (*f) () = $ac_func;
  10956. #endif
  10957. #ifdef __cplusplus
  10958. }
  10959. #endif
  10960. int
  10961. main ()
  10962. {
  10963. return f != $ac_func;
  10964. ;
  10965. return 0;
  10966. }
  10967. _ACEOF
  10968. rm -f conftest.$ac_objext conftest$ac_exeext
  10969. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10970. (eval $ac_link) 2>conftest.er1
  10971. ac_status=$?
  10972. grep -v '^ *+' conftest.er1 >conftest.err
  10973. rm -f conftest.er1
  10974. cat conftest.err >&5
  10975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10976. (exit $ac_status); } &&
  10977. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10979. (eval $ac_try) 2>&5
  10980. ac_status=$?
  10981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10982. (exit $ac_status); }; } &&
  10983. { ac_try='test -s conftest$ac_exeext'
  10984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10985. (eval $ac_try) 2>&5
  10986. ac_status=$?
  10987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10988. (exit $ac_status); }; }; then
  10989. eval "$as_ac_var=yes"
  10990. else
  10991. echo "$as_me: failed program was:" >&5
  10992. sed 's/^/| /' conftest.$ac_ext >&5
  10993. eval "$as_ac_var=no"
  10994. fi
  10995. rm -f conftest.err conftest.$ac_objext \
  10996. conftest$ac_exeext conftest.$ac_ext
  10997. fi
  10998. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10999. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11000. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11001. cat >>confdefs.h <<_ACEOF
  11002. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11003. _ACEOF
  11004. fi
  11005. done
  11006. if test "$ac_cv_func_uname" = "no"
  11007. then
  11008. cat << 'EOF' >&2
  11009. configure: error:
  11010. Your system does not have the uname() function.
  11011. This is required for the botpack.
  11012. EOF
  11013. exit 1
  11014. fi
  11015. # Make sure we have stdc headers, since we can't compile without them
  11016. if test "$ac_cv_header_stdc" = "no"
  11017. then
  11018. cat << 'EOF' >&2
  11019. configure: error:
  11020. Your system must support ANSI C Header files.
  11021. These are required for the language support. Sorry.
  11022. EOF
  11023. exit 1
  11024. fi
  11025. #checkpoint
  11026. cat >confcache <<\_ACEOF
  11027. # This file is a shell script that caches the results of configure
  11028. # tests run on this system so they can be shared between configure
  11029. # scripts and configure runs, see configure's option --config-cache.
  11030. # It is not useful on other systems. If it contains results you don't
  11031. # want to keep, you may remove or edit it.
  11032. #
  11033. # config.status only pays attention to the cache file if you give it
  11034. # the --recheck option to rerun configure.
  11035. #
  11036. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11037. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11038. # following values.
  11039. _ACEOF
  11040. # The following way of writing the cache mishandles newlines in values,
  11041. # but we know of no workaround that is simple, portable, and efficient.
  11042. # So, don't put newlines in cache variables' values.
  11043. # Ultrix sh set writes to stderr and can't be redirected directly,
  11044. # and sets the high bit in the cache file unless we assign to the vars.
  11045. {
  11046. (set) 2>&1 |
  11047. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11048. *ac_space=\ *)
  11049. # `set' does not quote correctly, so add quotes (double-quote
  11050. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11051. sed -n \
  11052. "s/'/'\\\\''/g;
  11053. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11054. ;;
  11055. *)
  11056. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11057. sed -n \
  11058. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11059. ;;
  11060. esac;
  11061. } |
  11062. sed '
  11063. t clear
  11064. : clear
  11065. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11066. t end
  11067. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11068. : end' >>confcache
  11069. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11070. if test -w $cache_file; then
  11071. test "x$cache_file" != "x/dev/null"
  11072. cat confcache >$cache_file
  11073. else
  11074. echo "not updating unwritable cache $cache_file"
  11075. fi
  11076. fi
  11077. rm -f confcache
  11078. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11079. if ! test -f $cfg; then
  11080. cat << EOF >&2
  11081. configure: error:
  11082. Your pack cfg is missing, please copy it to $srcdir/$cfg
  11083. Or specify the path to it with: --with-cfg=
  11084. EOF
  11085. exit 1
  11086. fi
  11087. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  11088. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11089. cat >>confdefs.h <<_ACEOF
  11090. #define EGG_VERSION $version_num
  11091. _ACEOF
  11092. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  11093. u_define="S_$define"
  11094. cat >>confdefs.h <<_ACEOF
  11095. #define $u_define 1
  11096. _ACEOF
  11097. CFG="$cfg"
  11098. done
  11099. case "$srcdir" in
  11100. [\\/]* | ?:[\\/]*)
  11101. MOD_UPDIR=""
  11102. ;;
  11103. *)
  11104. MOD_UPDIR="../"
  11105. ;;
  11106. esac
  11107. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  11108. for mf in $files; do
  11109. # Strip MF so we end up with the name of the file.
  11110. # echo "MF: $mf"
  11111. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11112. dirpart=`(dirname "$mf") 2>/dev/null ||
  11113. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11114. X"$mf" : 'X\(//\)[^/]' \| \
  11115. X"$mf" : 'X\(//\)$' \| \
  11116. X"$mf" : 'X\(/\)' \| \
  11117. . : '\(.\)' 2>/dev/null ||
  11118. echo X"$mf" |
  11119. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11120. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11121. /^X\(\/\/\)$/{ s//\1/; q; }
  11122. /^X\(\/\).*/{ s//\1/; q; }
  11123. s/.*/./; q'`
  11124. # echo "dirpart: $dirpart mf: $mf"
  11125. # rm -rf "$dirpart/.deps/"
  11126. rm -f "$dirpart/.deps/includes"
  11127. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11128. for file in `sed -n -e '
  11129. /^OBJS = .*\\\\$/ {
  11130. s/^OBJS = //
  11131. :loop
  11132. s/\\\\$//
  11133. p
  11134. n
  11135. /\\\\$/ b loop
  11136. p
  11137. }
  11138. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11139. do
  11140. base=`basename $file .o`
  11141. test -f "$dirpart/$base.c" || continue
  11142. if ! test -f "$dirpart/.deps/$base.Po"; then
  11143. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11144. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11145. if test -f "$dirpart/$base.o"; then
  11146. rm -f "$dirpart/$base.o"
  11147. fi
  11148. fi
  11149. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11150. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11151. done
  11152. done
  11153. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  11154. cat >confcache <<\_ACEOF
  11155. # This file is a shell script that caches the results of configure
  11156. # tests run on this system so they can be shared between configure
  11157. # scripts and configure runs, see configure's option --config-cache.
  11158. # It is not useful on other systems. If it contains results you don't
  11159. # want to keep, you may remove or edit it.
  11160. #
  11161. # config.status only pays attention to the cache file if you give it
  11162. # the --recheck option to rerun configure.
  11163. #
  11164. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11165. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11166. # following values.
  11167. _ACEOF
  11168. # The following way of writing the cache mishandles newlines in values,
  11169. # but we know of no workaround that is simple, portable, and efficient.
  11170. # So, don't put newlines in cache variables' values.
  11171. # Ultrix sh set writes to stderr and can't be redirected directly,
  11172. # and sets the high bit in the cache file unless we assign to the vars.
  11173. {
  11174. (set) 2>&1 |
  11175. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11176. *ac_space=\ *)
  11177. # `set' does not quote correctly, so add quotes (double-quote
  11178. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11179. sed -n \
  11180. "s/'/'\\\\''/g;
  11181. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11182. ;;
  11183. *)
  11184. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11185. sed -n \
  11186. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11187. ;;
  11188. esac;
  11189. } |
  11190. sed '
  11191. t clear
  11192. : clear
  11193. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11194. t end
  11195. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11196. : end' >>confcache
  11197. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11198. if test -w $cache_file; then
  11199. test "x$cache_file" != "x/dev/null"
  11200. cat confcache >$cache_file
  11201. else
  11202. echo "not updating unwritable cache $cache_file"
  11203. fi
  11204. fi
  11205. rm -f confcache
  11206. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11207. # Let make expand exec_prefix.
  11208. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11209. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11210. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11211. # trailing colons and then remove the whole line if VPATH becomes empty
  11212. # (actually we leave an empty line to preserve line numbers).
  11213. if test "x$srcdir" = x.; then
  11214. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11215. s/:*\$(srcdir):*/:/;
  11216. s/:*\${srcdir}:*/:/;
  11217. s/:*@srcdir@:*/:/;
  11218. s/^\([^=]*=[ ]*\):*/\1/;
  11219. s/:*$//;
  11220. s/^[^=]*=[ ]*$//;
  11221. }'
  11222. fi
  11223. DEFS=-DHAVE_CONFIG_H
  11224. ac_libobjs=
  11225. ac_ltlibobjs=
  11226. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11227. # 1. Remove the extension, and $U if already installed.
  11228. ac_i=`echo "$ac_i" |
  11229. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11230. # 2. Add them.
  11231. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11232. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11233. done
  11234. LIBOBJS=$ac_libobjs
  11235. LTLIBOBJS=$ac_ltlibobjs
  11236. : ${CONFIG_STATUS=./config.status}
  11237. ac_clean_files_save=$ac_clean_files
  11238. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11239. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11240. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11241. cat >$CONFIG_STATUS <<_ACEOF
  11242. #! $SHELL
  11243. # Generated by $as_me.
  11244. # Run this file to recreate the current configuration.
  11245. # Compiler output produced by configure, useful for debugging
  11246. # configure, is in config.log if it exists.
  11247. debug=false
  11248. ac_cs_recheck=false
  11249. ac_cs_silent=false
  11250. SHELL=\${CONFIG_SHELL-$SHELL}
  11251. _ACEOF
  11252. cat >>$CONFIG_STATUS <<\_ACEOF
  11253. ## --------------------- ##
  11254. ## M4sh Initialization. ##
  11255. ## --------------------- ##
  11256. # Be Bourne compatible
  11257. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11258. emulate sh
  11259. NULLCMD=:
  11260. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11261. # is contrary to our usage. Disable this feature.
  11262. alias -g '${1+"$@"}'='"$@"'
  11263. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11264. set -o posix
  11265. fi
  11266. DUALCASE=1; export DUALCASE # for MKS sh
  11267. # Support unset when possible.
  11268. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11269. as_unset=unset
  11270. else
  11271. as_unset=false
  11272. fi
  11273. # Work around bugs in pre-3.0 UWIN ksh.
  11274. $as_unset ENV MAIL MAILPATH
  11275. PS1='$ '
  11276. PS2='> '
  11277. PS4='+ '
  11278. # NLS nuisances.
  11279. for as_var in \
  11280. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11281. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11282. LC_TELEPHONE LC_TIME
  11283. do
  11284. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11285. eval $as_var=C; export $as_var
  11286. else
  11287. $as_unset $as_var
  11288. fi
  11289. done
  11290. # Required to use basename.
  11291. if expr a : '\(a\)' >/dev/null 2>&1; then
  11292. as_expr=expr
  11293. else
  11294. as_expr=false
  11295. fi
  11296. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11297. as_basename=basename
  11298. else
  11299. as_basename=false
  11300. fi
  11301. # Name of the executable.
  11302. as_me=`$as_basename "$0" ||
  11303. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11304. X"$0" : 'X\(//\)$' \| \
  11305. X"$0" : 'X\(/\)$' \| \
  11306. . : '\(.\)' 2>/dev/null ||
  11307. echo X/"$0" |
  11308. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11309. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11310. /^X\/\(\/\).*/{ s//\1/; q; }
  11311. s/.*/./; q'`
  11312. # PATH needs CR, and LINENO needs CR and PATH.
  11313. # Avoid depending upon Character Ranges.
  11314. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11315. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11316. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11317. as_cr_digits='0123456789'
  11318. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11319. # The user is always right.
  11320. if test "${PATH_SEPARATOR+set}" != set; then
  11321. echo "#! /bin/sh" >conf$$.sh
  11322. echo "exit 0" >>conf$$.sh
  11323. chmod +x conf$$.sh
  11324. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11325. PATH_SEPARATOR=';'
  11326. else
  11327. PATH_SEPARATOR=:
  11328. fi
  11329. rm -f conf$$.sh
  11330. fi
  11331. as_lineno_1=$LINENO
  11332. as_lineno_2=$LINENO
  11333. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11334. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11335. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11336. # Find who we are. Look in the path if we contain no path at all
  11337. # relative or not.
  11338. case $0 in
  11339. *[\\/]* ) as_myself=$0 ;;
  11340. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11341. for as_dir in $PATH
  11342. do
  11343. IFS=$as_save_IFS
  11344. test -z "$as_dir" && as_dir=.
  11345. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11346. done
  11347. ;;
  11348. esac
  11349. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11350. # in which case we are not to be found in the path.
  11351. if test "x$as_myself" = x; then
  11352. as_myself=$0
  11353. fi
  11354. if test ! -f "$as_myself"; then
  11355. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11356. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11357. { (exit 1); exit 1; }; }
  11358. fi
  11359. case $CONFIG_SHELL in
  11360. '')
  11361. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11362. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11363. do
  11364. IFS=$as_save_IFS
  11365. test -z "$as_dir" && as_dir=.
  11366. for as_base in sh bash ksh sh5; do
  11367. case $as_dir in
  11368. /*)
  11369. if ("$as_dir/$as_base" -c '
  11370. as_lineno_1=$LINENO
  11371. as_lineno_2=$LINENO
  11372. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11373. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11374. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11375. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11376. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11377. CONFIG_SHELL=$as_dir/$as_base
  11378. export CONFIG_SHELL
  11379. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11380. fi;;
  11381. esac
  11382. done
  11383. done
  11384. ;;
  11385. esac
  11386. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11387. # uniformly replaced by the line number. The first 'sed' inserts a
  11388. # line-number line before each line; the second 'sed' does the real
  11389. # work. The second script uses 'N' to pair each line-number line
  11390. # with the numbered line, and appends trailing '-' during
  11391. # substitution so that $LINENO is not a special case at line end.
  11392. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11393. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11394. sed '=' <$as_myself |
  11395. sed '
  11396. N
  11397. s,$,-,
  11398. : loop
  11399. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11400. t loop
  11401. s,-$,,
  11402. s,^['$as_cr_digits']*\n,,
  11403. ' >$as_me.lineno &&
  11404. chmod +x $as_me.lineno ||
  11405. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11406. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11407. { (exit 1); exit 1; }; }
  11408. # Don't try to exec as it changes $[0], causing all sort of problems
  11409. # (the dirname of $[0] is not the place where we might find the
  11410. # original and so on. Autoconf is especially sensible to this).
  11411. . ./$as_me.lineno
  11412. # Exit status is that of the last command.
  11413. exit
  11414. }
  11415. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11416. *c*,-n*) ECHO_N= ECHO_C='
  11417. ' ECHO_T=' ' ;;
  11418. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11419. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11420. esac
  11421. if expr a : '\(a\)' >/dev/null 2>&1; then
  11422. as_expr=expr
  11423. else
  11424. as_expr=false
  11425. fi
  11426. rm -f conf$$ conf$$.exe conf$$.file
  11427. echo >conf$$.file
  11428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11429. # We could just check for DJGPP; but this test a) works b) is more generic
  11430. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11431. if test -f conf$$.exe; then
  11432. # Don't use ln at all; we don't have any links
  11433. as_ln_s='cp -p'
  11434. else
  11435. as_ln_s='ln -s'
  11436. fi
  11437. elif ln conf$$.file conf$$ 2>/dev/null; then
  11438. as_ln_s=ln
  11439. else
  11440. as_ln_s='cp -p'
  11441. fi
  11442. rm -f conf$$ conf$$.exe conf$$.file
  11443. if mkdir -p . 2>/dev/null; then
  11444. as_mkdir_p=:
  11445. else
  11446. test -d ./-p && rmdir ./-p
  11447. as_mkdir_p=false
  11448. fi
  11449. as_executable_p="test -f"
  11450. # Sed expression to map a string onto a valid CPP name.
  11451. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11452. # Sed expression to map a string onto a valid variable name.
  11453. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11454. # IFS
  11455. # We need space, tab and new line, in precisely that order.
  11456. as_nl='
  11457. '
  11458. IFS=" $as_nl"
  11459. # CDPATH.
  11460. $as_unset CDPATH
  11461. exec 6>&1
  11462. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11463. # report actual input values of CONFIG_FILES etc. instead of their
  11464. # values after options handling. Logging --version etc. is OK.
  11465. exec 5>>config.log
  11466. {
  11467. echo
  11468. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11469. ## Running $as_me. ##
  11470. _ASBOX
  11471. } >&5
  11472. cat >&5 <<_CSEOF
  11473. This file was extended by $as_me, which was
  11474. generated by GNU Autoconf 2.59. Invocation command line was
  11475. CONFIG_FILES = $CONFIG_FILES
  11476. CONFIG_HEADERS = $CONFIG_HEADERS
  11477. CONFIG_LINKS = $CONFIG_LINKS
  11478. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11479. $ $0 $@
  11480. _CSEOF
  11481. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11482. echo >&5
  11483. _ACEOF
  11484. # Files that config.status was made for.
  11485. if test -n "$ac_config_files"; then
  11486. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11487. fi
  11488. if test -n "$ac_config_headers"; then
  11489. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11490. fi
  11491. if test -n "$ac_config_links"; then
  11492. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11493. fi
  11494. if test -n "$ac_config_commands"; then
  11495. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11496. fi
  11497. cat >>$CONFIG_STATUS <<\_ACEOF
  11498. ac_cs_usage="\
  11499. \`$as_me' instantiates files from templates according to the
  11500. current configuration.
  11501. Usage: $0 [OPTIONS] [FILE]...
  11502. -h, --help print this help, then exit
  11503. -V, --version print version number, then exit
  11504. -q, --quiet do not print progress messages
  11505. -d, --debug don't remove temporary files
  11506. --recheck update $as_me by reconfiguring in the same conditions
  11507. --file=FILE[:TEMPLATE]
  11508. instantiate the configuration file FILE
  11509. --header=FILE[:TEMPLATE]
  11510. instantiate the configuration header FILE
  11511. Configuration files:
  11512. $config_files
  11513. Configuration headers:
  11514. $config_headers
  11515. Report bugs to <bug-autoconf@gnu.org>."
  11516. _ACEOF
  11517. cat >>$CONFIG_STATUS <<_ACEOF
  11518. ac_cs_version="\\
  11519. config.status
  11520. configured by $0, generated by GNU Autoconf 2.59,
  11521. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11522. Copyright (C) 2003 Free Software Foundation, Inc.
  11523. This config.status script is free software; the Free Software Foundation
  11524. gives unlimited permission to copy, distribute and modify it."
  11525. srcdir=$srcdir
  11526. _ACEOF
  11527. cat >>$CONFIG_STATUS <<\_ACEOF
  11528. # If no file are specified by the user, then we need to provide default
  11529. # value. By we need to know if files were specified by the user.
  11530. ac_need_defaults=:
  11531. while test $# != 0
  11532. do
  11533. case $1 in
  11534. --*=*)
  11535. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11536. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11537. ac_shift=:
  11538. ;;
  11539. -*)
  11540. ac_option=$1
  11541. ac_optarg=$2
  11542. ac_shift=shift
  11543. ;;
  11544. *) # This is not an option, so the user has probably given explicit
  11545. # arguments.
  11546. ac_option=$1
  11547. ac_need_defaults=false;;
  11548. esac
  11549. case $ac_option in
  11550. # Handling of the options.
  11551. _ACEOF
  11552. cat >>$CONFIG_STATUS <<\_ACEOF
  11553. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11554. ac_cs_recheck=: ;;
  11555. --version | --vers* | -V )
  11556. echo "$ac_cs_version"; exit 0 ;;
  11557. --he | --h)
  11558. # Conflict between --help and --header
  11559. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11560. Try \`$0 --help' for more information." >&5
  11561. echo "$as_me: error: ambiguous option: $1
  11562. Try \`$0 --help' for more information." >&2;}
  11563. { (exit 1); exit 1; }; };;
  11564. --help | --hel | -h )
  11565. echo "$ac_cs_usage"; exit 0 ;;
  11566. --debug | --d* | -d )
  11567. debug=: ;;
  11568. --file | --fil | --fi | --f )
  11569. $ac_shift
  11570. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11571. ac_need_defaults=false;;
  11572. --header | --heade | --head | --hea )
  11573. $ac_shift
  11574. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11575. ac_need_defaults=false;;
  11576. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11577. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11578. ac_cs_silent=: ;;
  11579. # This is an error.
  11580. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11581. Try \`$0 --help' for more information." >&5
  11582. echo "$as_me: error: unrecognized option: $1
  11583. Try \`$0 --help' for more information." >&2;}
  11584. { (exit 1); exit 1; }; } ;;
  11585. *) ac_config_targets="$ac_config_targets $1" ;;
  11586. esac
  11587. shift
  11588. done
  11589. ac_configure_extra_args=
  11590. if $ac_cs_silent; then
  11591. exec 6>/dev/null
  11592. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11593. fi
  11594. _ACEOF
  11595. cat >>$CONFIG_STATUS <<_ACEOF
  11596. if \$ac_cs_recheck; then
  11597. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11598. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11599. fi
  11600. _ACEOF
  11601. cat >>$CONFIG_STATUS <<\_ACEOF
  11602. for ac_config_target in $ac_config_targets
  11603. do
  11604. case "$ac_config_target" in
  11605. # Handling of arguments.
  11606. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11607. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11608. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11609. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11610. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11611. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11612. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11613. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11614. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11615. { (exit 1); exit 1; }; };;
  11616. esac
  11617. done
  11618. # If the user did not use the arguments to specify the items to instantiate,
  11619. # then the envvar interface is used. Set only those that are not.
  11620. # We use the long form for the default assignment because of an extremely
  11621. # bizarre bug on SunOS 4.1.3.
  11622. if $ac_need_defaults; then
  11623. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11624. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11625. fi
  11626. # Have a temporary directory for convenience. Make it in the build tree
  11627. # simply because there is no reason to put it here, and in addition,
  11628. # creating and moving files from /tmp can sometimes cause problems.
  11629. # Create a temporary directory, and hook for its removal unless debugging.
  11630. $debug ||
  11631. {
  11632. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11633. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11634. }
  11635. # Create a (secure) tmp directory for tmp files.
  11636. {
  11637. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11638. test -n "$tmp" && test -d "$tmp"
  11639. } ||
  11640. {
  11641. tmp=./confstat$$-$RANDOM
  11642. (umask 077 && mkdir $tmp)
  11643. } ||
  11644. {
  11645. echo "$me: cannot create a temporary directory in ." >&2
  11646. { (exit 1); exit 1; }
  11647. }
  11648. _ACEOF
  11649. cat >>$CONFIG_STATUS <<_ACEOF
  11650. #
  11651. # CONFIG_FILES section.
  11652. #
  11653. # No need to generate the scripts if there are no CONFIG_FILES.
  11654. # This happens for instance when ./config.status config.h
  11655. if test -n "\$CONFIG_FILES"; then
  11656. # Protect against being on the right side of a sed subst in config.status.
  11657. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11658. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11659. s,@SHELL@,$SHELL,;t t
  11660. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11661. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11662. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11663. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11664. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11665. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11666. s,@exec_prefix@,$exec_prefix,;t t
  11667. s,@prefix@,$prefix,;t t
  11668. s,@program_transform_name@,$program_transform_name,;t t
  11669. s,@bindir@,$bindir,;t t
  11670. s,@sbindir@,$sbindir,;t t
  11671. s,@libexecdir@,$libexecdir,;t t
  11672. s,@datadir@,$datadir,;t t
  11673. s,@sysconfdir@,$sysconfdir,;t t
  11674. s,@sharedstatedir@,$sharedstatedir,;t t
  11675. s,@localstatedir@,$localstatedir,;t t
  11676. s,@libdir@,$libdir,;t t
  11677. s,@includedir@,$includedir,;t t
  11678. s,@oldincludedir@,$oldincludedir,;t t
  11679. s,@infodir@,$infodir,;t t
  11680. s,@mandir@,$mandir,;t t
  11681. s,@build_alias@,$build_alias,;t t
  11682. s,@host_alias@,$host_alias,;t t
  11683. s,@target_alias@,$target_alias,;t t
  11684. s,@DEFS@,$DEFS,;t t
  11685. s,@ECHO_C@,$ECHO_C,;t t
  11686. s,@ECHO_N@,$ECHO_N,;t t
  11687. s,@ECHO_T@,$ECHO_T,;t t
  11688. s,@LIBS@,$LIBS,;t t
  11689. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11690. s,@CC@,$CC,;t t
  11691. s,@CFLAGS@,$CFLAGS,;t t
  11692. s,@LDFLAGS@,$LDFLAGS,;t t
  11693. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11694. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11695. s,@EXEEXT@,$EXEEXT,;t t
  11696. s,@OBJEXT@,$OBJEXT,;t t
  11697. s,@CPP@,$CPP,;t t
  11698. s,@EGREP@,$EGREP,;t t
  11699. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11700. s,@CCDEBUG@,$CCDEBUG,;t t
  11701. s,@SET_MAKE@,$SET_MAKE,;t t
  11702. s,@HEAD_1@,$HEAD_1,;t t
  11703. s,@AWK@,$AWK,;t t
  11704. s,@BASENAME@,$BASENAME,;t t
  11705. s,@OBJCOPY@,$OBJCOPY,;t t
  11706. s,@STRIP@,$STRIP,;t t
  11707. s,@UNAME@,$UNAME,;t t
  11708. s,@DISTCC@,$DISTCC,;t t
  11709. s,@RESLIB@,$RESLIB,;t t
  11710. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11711. s,@ZLIB@,$ZLIB,;t t
  11712. s,@LIBOBJS@,$LIBOBJS,;t t
  11713. s,@VERSION@,$VERSION,;t t
  11714. s,@NUMVER@,$NUMVER,;t t
  11715. s,@PACKNAME@,$PACKNAME,;t t
  11716. s,@CFG@,$CFG,;t t
  11717. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11718. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11719. CEOF
  11720. _ACEOF
  11721. cat >>$CONFIG_STATUS <<\_ACEOF
  11722. # Split the substitutions into bite-sized pieces for seds with
  11723. # small command number limits, like on Digital OSF/1 and HP-UX.
  11724. ac_max_sed_lines=48
  11725. ac_sed_frag=1 # Number of current file.
  11726. ac_beg=1 # First line for current file.
  11727. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11728. ac_more_lines=:
  11729. ac_sed_cmds=
  11730. while $ac_more_lines; do
  11731. if test $ac_beg -gt 1; then
  11732. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11733. else
  11734. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11735. fi
  11736. if test ! -s $tmp/subs.frag; then
  11737. ac_more_lines=false
  11738. else
  11739. # The purpose of the label and of the branching condition is to
  11740. # speed up the sed processing (if there are no `@' at all, there
  11741. # is no need to browse any of the substitutions).
  11742. # These are the two extra sed commands mentioned above.
  11743. (echo ':t
  11744. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11745. if test -z "$ac_sed_cmds"; then
  11746. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11747. else
  11748. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11749. fi
  11750. ac_sed_frag=`expr $ac_sed_frag + 1`
  11751. ac_beg=$ac_end
  11752. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11753. fi
  11754. done
  11755. if test -z "$ac_sed_cmds"; then
  11756. ac_sed_cmds=cat
  11757. fi
  11758. fi # test -n "$CONFIG_FILES"
  11759. _ACEOF
  11760. cat >>$CONFIG_STATUS <<\_ACEOF
  11761. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11762. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11763. case $ac_file in
  11764. - | *:- | *:-:* ) # input from stdin
  11765. cat >$tmp/stdin
  11766. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11767. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11768. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11769. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11770. * ) ac_file_in=$ac_file.in ;;
  11771. esac
  11772. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11773. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11774. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11775. X"$ac_file" : 'X\(//\)[^/]' \| \
  11776. X"$ac_file" : 'X\(//\)$' \| \
  11777. X"$ac_file" : 'X\(/\)' \| \
  11778. . : '\(.\)' 2>/dev/null ||
  11779. echo X"$ac_file" |
  11780. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11781. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11782. /^X\(\/\/\)$/{ s//\1/; q; }
  11783. /^X\(\/\).*/{ s//\1/; q; }
  11784. s/.*/./; q'`
  11785. { if $as_mkdir_p; then
  11786. mkdir -p "$ac_dir"
  11787. else
  11788. as_dir="$ac_dir"
  11789. as_dirs=
  11790. while test ! -d "$as_dir"; do
  11791. as_dirs="$as_dir $as_dirs"
  11792. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11793. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11794. X"$as_dir" : 'X\(//\)[^/]' \| \
  11795. X"$as_dir" : 'X\(//\)$' \| \
  11796. X"$as_dir" : 'X\(/\)' \| \
  11797. . : '\(.\)' 2>/dev/null ||
  11798. echo X"$as_dir" |
  11799. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11800. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11801. /^X\(\/\/\)$/{ s//\1/; q; }
  11802. /^X\(\/\).*/{ s//\1/; q; }
  11803. s/.*/./; q'`
  11804. done
  11805. test ! -n "$as_dirs" || mkdir $as_dirs
  11806. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11807. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11808. { (exit 1); exit 1; }; }; }
  11809. ac_builddir=.
  11810. if test "$ac_dir" != .; then
  11811. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11812. # A "../" for each directory in $ac_dir_suffix.
  11813. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11814. else
  11815. ac_dir_suffix= ac_top_builddir=
  11816. fi
  11817. case $srcdir in
  11818. .) # No --srcdir option. We are building in place.
  11819. ac_srcdir=.
  11820. if test -z "$ac_top_builddir"; then
  11821. ac_top_srcdir=.
  11822. else
  11823. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11824. fi ;;
  11825. [\\/]* | ?:[\\/]* ) # Absolute path.
  11826. ac_srcdir=$srcdir$ac_dir_suffix;
  11827. ac_top_srcdir=$srcdir ;;
  11828. *) # Relative path.
  11829. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11830. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11831. esac
  11832. # Do not use `cd foo && pwd` to compute absolute paths, because
  11833. # the directories may not exist.
  11834. case `pwd` in
  11835. .) ac_abs_builddir="$ac_dir";;
  11836. *)
  11837. case "$ac_dir" in
  11838. .) ac_abs_builddir=`pwd`;;
  11839. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11840. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11841. esac;;
  11842. esac
  11843. case $ac_abs_builddir in
  11844. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11845. *)
  11846. case ${ac_top_builddir}. in
  11847. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11848. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11849. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11850. esac;;
  11851. esac
  11852. case $ac_abs_builddir in
  11853. .) ac_abs_srcdir=$ac_srcdir;;
  11854. *)
  11855. case $ac_srcdir in
  11856. .) ac_abs_srcdir=$ac_abs_builddir;;
  11857. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11858. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11859. esac;;
  11860. esac
  11861. case $ac_abs_builddir in
  11862. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11863. *)
  11864. case $ac_top_srcdir in
  11865. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11866. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11867. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11868. esac;;
  11869. esac
  11870. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11871. # use $as_me), people would be surprised to read:
  11872. # /* config.h. Generated by config.status. */
  11873. if test x"$ac_file" = x-; then
  11874. configure_input=
  11875. else
  11876. configure_input="$ac_file. "
  11877. fi
  11878. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11879. sed 's,.*/,,'` by configure."
  11880. # First look for the input files in the build tree, otherwise in the
  11881. # src tree.
  11882. ac_file_inputs=`IFS=:
  11883. for f in $ac_file_in; do
  11884. case $f in
  11885. -) echo $tmp/stdin ;;
  11886. [\\/$]*)
  11887. # Absolute (can't be DOS-style, as IFS=:)
  11888. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11889. echo "$as_me: error: cannot find input file: $f" >&2;}
  11890. { (exit 1); exit 1; }; }
  11891. echo "$f";;
  11892. *) # Relative
  11893. if test -f "$f"; then
  11894. # Build tree
  11895. echo "$f"
  11896. elif test -f "$srcdir/$f"; then
  11897. # Source tree
  11898. echo "$srcdir/$f"
  11899. else
  11900. # /dev/null tree
  11901. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11902. echo "$as_me: error: cannot find input file: $f" >&2;}
  11903. { (exit 1); exit 1; }; }
  11904. fi;;
  11905. esac
  11906. done` || { (exit 1); exit 1; }
  11907. if test x"$ac_file" != x-; then
  11908. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11909. echo "$as_me: creating $ac_file" >&6;}
  11910. rm -f "$ac_file"
  11911. fi
  11912. _ACEOF
  11913. cat >>$CONFIG_STATUS <<_ACEOF
  11914. sed "$ac_vpsub
  11915. $extrasub
  11916. _ACEOF
  11917. cat >>$CONFIG_STATUS <<\_ACEOF
  11918. :t
  11919. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11920. s,@configure_input@,$configure_input,;t t
  11921. s,@srcdir@,$ac_srcdir,;t t
  11922. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11923. s,@top_srcdir@,$ac_top_srcdir,;t t
  11924. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11925. s,@builddir@,$ac_builddir,;t t
  11926. s,@abs_builddir@,$ac_abs_builddir,;t t
  11927. s,@top_builddir@,$ac_top_builddir,;t t
  11928. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11929. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11930. rm -f $tmp/stdin
  11931. if test x"$ac_file" != x-; then
  11932. mv $tmp/out $ac_file
  11933. else
  11934. cat $tmp/out
  11935. rm -f $tmp/out
  11936. fi
  11937. done
  11938. _ACEOF
  11939. cat >>$CONFIG_STATUS <<\_ACEOF
  11940. #
  11941. # CONFIG_HEADER section.
  11942. #
  11943. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11944. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11945. #
  11946. # ac_d sets the value in "#define NAME VALUE" lines.
  11947. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11948. ac_dB='[ ].*$,\1#\2'
  11949. ac_dC=' '
  11950. ac_dD=',;t'
  11951. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11952. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11953. ac_uB='$,\1#\2define\3'
  11954. ac_uC=' '
  11955. ac_uD=',;t'
  11956. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11957. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11958. case $ac_file in
  11959. - | *:- | *:-:* ) # input from stdin
  11960. cat >$tmp/stdin
  11961. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11962. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11963. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11964. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11965. * ) ac_file_in=$ac_file.in ;;
  11966. esac
  11967. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11968. echo "$as_me: creating $ac_file" >&6;}
  11969. # First look for the input files in the build tree, otherwise in the
  11970. # src tree.
  11971. ac_file_inputs=`IFS=:
  11972. for f in $ac_file_in; do
  11973. case $f in
  11974. -) echo $tmp/stdin ;;
  11975. [\\/$]*)
  11976. # Absolute (can't be DOS-style, as IFS=:)
  11977. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11978. echo "$as_me: error: cannot find input file: $f" >&2;}
  11979. { (exit 1); exit 1; }; }
  11980. # Do quote $f, to prevent DOS paths from being IFS'd.
  11981. echo "$f";;
  11982. *) # Relative
  11983. if test -f "$f"; then
  11984. # Build tree
  11985. echo "$f"
  11986. elif test -f "$srcdir/$f"; then
  11987. # Source tree
  11988. echo "$srcdir/$f"
  11989. else
  11990. # /dev/null tree
  11991. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11992. echo "$as_me: error: cannot find input file: $f" >&2;}
  11993. { (exit 1); exit 1; }; }
  11994. fi;;
  11995. esac
  11996. done` || { (exit 1); exit 1; }
  11997. # Remove the trailing spaces.
  11998. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11999. _ACEOF
  12000. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12001. # `conftest.undefs', that substitutes the proper values into
  12002. # config.h.in to produce config.h. The first handles `#define'
  12003. # templates, and the second `#undef' templates.
  12004. # And first: Protect against being on the right side of a sed subst in
  12005. # config.status. Protect against being in an unquoted here document
  12006. # in config.status.
  12007. rm -f conftest.defines conftest.undefs
  12008. # Using a here document instead of a string reduces the quoting nightmare.
  12009. # Putting comments in sed scripts is not portable.
  12010. #
  12011. # `end' is used to avoid that the second main sed command (meant for
  12012. # 0-ary CPP macros) applies to n-ary macro definitions.
  12013. # See the Autoconf documentation for `clear'.
  12014. cat >confdef2sed.sed <<\_ACEOF
  12015. s/[\\&,]/\\&/g
  12016. s,[\\$`],\\&,g
  12017. t clear
  12018. : clear
  12019. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12020. t end
  12021. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12022. : end
  12023. _ACEOF
  12024. # If some macros were called several times there might be several times
  12025. # the same #defines, which is useless. Nevertheless, we may not want to
  12026. # sort them, since we want the *last* AC-DEFINE to be honored.
  12027. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12028. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12029. rm -f confdef2sed.sed
  12030. # This sed command replaces #undef with comments. This is necessary, for
  12031. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12032. # on some systems where configure will not decide to define it.
  12033. cat >>conftest.undefs <<\_ACEOF
  12034. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12035. _ACEOF
  12036. # Break up conftest.defines because some shells have a limit on the size
  12037. # of here documents, and old seds have small limits too (100 cmds).
  12038. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12039. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12040. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12041. echo ' :' >>$CONFIG_STATUS
  12042. rm -f conftest.tail
  12043. while grep . conftest.defines >/dev/null
  12044. do
  12045. # Write a limited-size here document to $tmp/defines.sed.
  12046. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12047. # Speed up: don't consider the non `#define' lines.
  12048. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12049. # Work around the forget-to-reset-the-flag bug.
  12050. echo 't clr' >>$CONFIG_STATUS
  12051. echo ': clr' >>$CONFIG_STATUS
  12052. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12053. echo 'CEOF
  12054. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12055. rm -f $tmp/in
  12056. mv $tmp/out $tmp/in
  12057. ' >>$CONFIG_STATUS
  12058. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12059. rm -f conftest.defines
  12060. mv conftest.tail conftest.defines
  12061. done
  12062. rm -f conftest.defines
  12063. echo ' fi # grep' >>$CONFIG_STATUS
  12064. echo >>$CONFIG_STATUS
  12065. # Break up conftest.undefs because some shells have a limit on the size
  12066. # of here documents, and old seds have small limits too (100 cmds).
  12067. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12068. rm -f conftest.tail
  12069. while grep . conftest.undefs >/dev/null
  12070. do
  12071. # Write a limited-size here document to $tmp/undefs.sed.
  12072. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12073. # Speed up: don't consider the non `#undef'
  12074. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12075. # Work around the forget-to-reset-the-flag bug.
  12076. echo 't clr' >>$CONFIG_STATUS
  12077. echo ': clr' >>$CONFIG_STATUS
  12078. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12079. echo 'CEOF
  12080. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12081. rm -f $tmp/in
  12082. mv $tmp/out $tmp/in
  12083. ' >>$CONFIG_STATUS
  12084. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12085. rm -f conftest.undefs
  12086. mv conftest.tail conftest.undefs
  12087. done
  12088. rm -f conftest.undefs
  12089. cat >>$CONFIG_STATUS <<\_ACEOF
  12090. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12091. # use $as_me), people would be surprised to read:
  12092. # /* config.h. Generated by config.status. */
  12093. if test x"$ac_file" = x-; then
  12094. echo "/* Generated by configure. */" >$tmp/config.h
  12095. else
  12096. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12097. fi
  12098. cat $tmp/in >>$tmp/config.h
  12099. rm -f $tmp/in
  12100. if test x"$ac_file" != x-; then
  12101. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12102. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12103. echo "$as_me: $ac_file is unchanged" >&6;}
  12104. else
  12105. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12106. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12107. X"$ac_file" : 'X\(//\)[^/]' \| \
  12108. X"$ac_file" : 'X\(//\)$' \| \
  12109. X"$ac_file" : 'X\(/\)' \| \
  12110. . : '\(.\)' 2>/dev/null ||
  12111. echo X"$ac_file" |
  12112. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12113. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12114. /^X\(\/\/\)$/{ s//\1/; q; }
  12115. /^X\(\/\).*/{ s//\1/; q; }
  12116. s/.*/./; q'`
  12117. { if $as_mkdir_p; then
  12118. mkdir -p "$ac_dir"
  12119. else
  12120. as_dir="$ac_dir"
  12121. as_dirs=
  12122. while test ! -d "$as_dir"; do
  12123. as_dirs="$as_dir $as_dirs"
  12124. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12125. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12126. X"$as_dir" : 'X\(//\)[^/]' \| \
  12127. X"$as_dir" : 'X\(//\)$' \| \
  12128. X"$as_dir" : 'X\(/\)' \| \
  12129. . : '\(.\)' 2>/dev/null ||
  12130. echo X"$as_dir" |
  12131. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12132. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12133. /^X\(\/\/\)$/{ s//\1/; q; }
  12134. /^X\(\/\).*/{ s//\1/; q; }
  12135. s/.*/./; q'`
  12136. done
  12137. test ! -n "$as_dirs" || mkdir $as_dirs
  12138. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12139. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12140. { (exit 1); exit 1; }; }; }
  12141. rm -f $ac_file
  12142. mv $tmp/config.h $ac_file
  12143. fi
  12144. else
  12145. cat $tmp/config.h
  12146. rm -f $tmp/config.h
  12147. fi
  12148. done
  12149. _ACEOF
  12150. cat >>$CONFIG_STATUS <<\_ACEOF
  12151. { (exit 0); exit 0; }
  12152. _ACEOF
  12153. chmod +x $CONFIG_STATUS
  12154. ac_clean_files=$ac_clean_files_save
  12155. # configure is writing to config.log, and then calls config.status.
  12156. # config.status does its own redirection, appending to config.log.
  12157. # Unfortunately, on DOS this fails, as config.log is still kept open
  12158. # by configure, so config.status won't be able to write to it; its
  12159. # output is simply discarded. So we exec the FD to /dev/null,
  12160. # effectively closing config.log, so it can be properly (re)opened and
  12161. # appended to by config.status. When coming back to configure, we
  12162. # need to make the FD available again.
  12163. if test "$no_create" != yes; then
  12164. ac_cs_success=:
  12165. ac_config_status_args=
  12166. test "$silent" = yes &&
  12167. ac_config_status_args="$ac_config_status_args --quiet"
  12168. exec 5>/dev/null
  12169. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12170. exec 5>>config.log
  12171. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12172. # would make configure fail if this is the last instruction.
  12173. $ac_cs_success || { (exit 1); exit 1; }
  12174. fi