configure 286 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316
  1. #! /bin/sh
  2. # From configure.in Revision: 1.4 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.58.
  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. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23. # Support unset when possible.
  24. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  25. as_unset=unset
  26. else
  27. as_unset=false
  28. fi
  29. # Work around bugs in pre-3.0 UWIN ksh.
  30. $as_unset ENV MAIL MAILPATH
  31. PS1='$ '
  32. PS2='> '
  33. PS4='+ '
  34. # NLS nuisances.
  35. for as_var in \
  36. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  37. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  38. LC_TELEPHONE LC_TIME
  39. do
  40. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  41. eval $as_var=C; export $as_var
  42. else
  43. $as_unset $as_var
  44. fi
  45. done
  46. # Required to use basename.
  47. if expr a : '\(a\)' >/dev/null 2>&1; then
  48. as_expr=expr
  49. else
  50. as_expr=false
  51. fi
  52. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  53. as_basename=basename
  54. else
  55. as_basename=false
  56. fi
  57. # Name of the executable.
  58. as_me=`$as_basename "$0" ||
  59. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  60. X"$0" : 'X\(//\)$' \| \
  61. X"$0" : 'X\(/\)$' \| \
  62. . : '\(.\)' 2>/dev/null ||
  63. echo X/"$0" |
  64. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  65. /^X\/\(\/\/\)$/{ s//\1/; q; }
  66. /^X\/\(\/\).*/{ s//\1/; q; }
  67. s/.*/./; q'`
  68. # PATH needs CR, and LINENO needs CR and PATH.
  69. # Avoid depending upon Character Ranges.
  70. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  71. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  72. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  73. as_cr_digits='0123456789'
  74. as_cr_alnum=$as_cr_Letters$as_cr_digits
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. echo "#! /bin/sh" >conf$$.sh
  78. echo "exit 0" >>conf$$.sh
  79. chmod +x conf$$.sh
  80. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  81. PATH_SEPARATOR=';'
  82. else
  83. PATH_SEPARATOR=:
  84. fi
  85. rm -f conf$$.sh
  86. fi
  87. as_lineno_1=$LINENO
  88. as_lineno_2=$LINENO
  89. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  90. test "x$as_lineno_1" != "x$as_lineno_2" &&
  91. test "x$as_lineno_3" = "x$as_lineno_2" || {
  92. # Find who we are. Look in the path if we contain no path at all
  93. # relative or not.
  94. case $0 in
  95. *[\\/]* ) as_myself=$0 ;;
  96. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97. for as_dir in $PATH
  98. do
  99. IFS=$as_save_IFS
  100. test -z "$as_dir" && as_dir=.
  101. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  102. done
  103. ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108. as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  112. { (exit 1); exit 1; }; }
  113. fi
  114. case $CONFIG_SHELL in
  115. '')
  116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  117. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  118. do
  119. IFS=$as_save_IFS
  120. test -z "$as_dir" && as_dir=.
  121. for as_base in sh bash ksh sh5; do
  122. case $as_dir in
  123. /*)
  124. if ("$as_dir/$as_base" -c '
  125. as_lineno_1=$LINENO
  126. as_lineno_2=$LINENO
  127. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  128. test "x$as_lineno_1" != "x$as_lineno_2" &&
  129. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  130. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  131. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  132. CONFIG_SHELL=$as_dir/$as_base
  133. export CONFIG_SHELL
  134. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  135. fi;;
  136. esac
  137. done
  138. done
  139. ;;
  140. esac
  141. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  142. # uniformly replaced by the line number. The first 'sed' inserts a
  143. # line-number line before each line; the second 'sed' does the real
  144. # work. The second script uses 'N' to pair each line-number line
  145. # with the numbered line, and appends trailing '-' during
  146. # substitution so that $LINENO is not a special case at line end.
  147. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  148. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  149. sed '=' <$as_myself |
  150. sed '
  151. N
  152. s,$,-,
  153. : loop
  154. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  155. t loop
  156. s,-$,,
  157. s,^['$as_cr_digits']*\n,,
  158. ' >$as_me.lineno &&
  159. chmod +x $as_me.lineno ||
  160. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  161. { (exit 1); exit 1; }; }
  162. # Don't try to exec as it changes $[0], causing all sort of problems
  163. # (the dirname of $[0] is not the place where we might find the
  164. # original and so on. Autoconf is especially sensible to this).
  165. . ./$as_me.lineno
  166. # Exit status is that of the last command.
  167. exit
  168. }
  169. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  170. *c*,-n*) ECHO_N= ECHO_C='
  171. ' ECHO_T=' ' ;;
  172. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  173. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  174. esac
  175. if expr a : '\(a\)' >/dev/null 2>&1; then
  176. as_expr=expr
  177. else
  178. as_expr=false
  179. fi
  180. rm -f conf$$ conf$$.exe conf$$.file
  181. echo >conf$$.file
  182. if ln -s conf$$.file conf$$ 2>/dev/null; then
  183. # We could just check for DJGPP; but this test a) works b) is more generic
  184. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  185. if test -f conf$$.exe; then
  186. # Don't use ln at all; we don't have any links
  187. as_ln_s='cp -p'
  188. else
  189. as_ln_s='ln -s'
  190. fi
  191. elif ln conf$$.file conf$$ 2>/dev/null; then
  192. as_ln_s=ln
  193. else
  194. as_ln_s='cp -p'
  195. fi
  196. rm -f conf$$ conf$$.exe conf$$.file
  197. if mkdir -p . 2>/dev/null; then
  198. as_mkdir_p=:
  199. else
  200. test -d ./-p && rmdir ./-p
  201. as_mkdir_p=false
  202. fi
  203. as_executable_p="test -f"
  204. # Sed expression to map a string onto a valid CPP name.
  205. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  206. # Sed expression to map a string onto a valid variable name.
  207. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  208. # IFS
  209. # We need space, tab and new line, in precisely that order.
  210. as_nl='
  211. '
  212. IFS=" $as_nl"
  213. # CDPATH.
  214. $as_unset CDPATH
  215. # Name of the host.
  216. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  217. # so uname gets run too.
  218. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  219. exec 6>&1
  220. #
  221. # Initializations.
  222. #
  223. ac_default_prefix=/usr/local
  224. ac_config_libobj_dir=.
  225. cross_compiling=no
  226. subdirs=
  227. MFLAGS=
  228. MAKEFLAGS=
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. # Maximum number of lines to put in a shell here document.
  231. # This variable seems obsolete. It should probably be removed, and
  232. # only ac_max_sed_lines should be used.
  233. : ${ac_max_here_lines=38}
  234. # Identity of this package.
  235. PACKAGE_NAME=
  236. PACKAGE_TARNAME=
  237. PACKAGE_VERSION=
  238. PACKAGE_STRING=
  239. PACKAGE_BUGREPORT=
  240. ac_unique_file="src/eggdrop.h"
  241. # Factoring default headers for most tests.
  242. ac_includes_default="\
  243. #include <stdio.h>
  244. #if HAVE_SYS_TYPES_H
  245. # include <sys/types.h>
  246. #endif
  247. #if HAVE_SYS_STAT_H
  248. # include <sys/stat.h>
  249. #endif
  250. #if STDC_HEADERS
  251. # include <stdlib.h>
  252. # include <stddef.h>
  253. #else
  254. # if HAVE_STDLIB_H
  255. # include <stdlib.h>
  256. # endif
  257. #endif
  258. #if HAVE_STRING_H
  259. # if !STDC_HEADERS && HAVE_MEMORY_H
  260. # include <memory.h>
  261. # endif
  262. # include <string.h>
  263. #endif
  264. #if HAVE_STRINGS_H
  265. # include <strings.h>
  266. #endif
  267. #if HAVE_INTTYPES_H
  268. # include <inttypes.h>
  269. #else
  270. # if HAVE_STDINT_H
  271. # include <stdint.h>
  272. # endif
  273. #endif
  274. #if HAVE_UNISTD_H
  275. # include <unistd.h>
  276. #endif"
  277. 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 SET_MAKE HEAD_1 STRIP AWK BASENAME UNAME ZLIB SSL TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME MOD_UPDIR LIBOBJS LTLIBOBJS'
  278. ac_subst_files=''
  279. # Initialize some variables set by options.
  280. ac_init_help=
  281. ac_init_version=false
  282. # The variables have the same names as the options, with
  283. # dashes changed to underlines.
  284. cache_file=/dev/null
  285. exec_prefix=NONE
  286. no_create=
  287. no_recursion=
  288. prefix=NONE
  289. program_prefix=NONE
  290. program_suffix=NONE
  291. program_transform_name=s,x,x,
  292. silent=
  293. site=
  294. srcdir=
  295. verbose=
  296. x_includes=NONE
  297. x_libraries=NONE
  298. # Installation directory options.
  299. # These are left unexpanded so users can "make install exec_prefix=/foo"
  300. # and all the variables that are supposed to be based on exec_prefix
  301. # by default will actually change.
  302. # Use braces instead of parens because sh, perl, etc. also accept them.
  303. bindir='${exec_prefix}/bin'
  304. sbindir='${exec_prefix}/sbin'
  305. libexecdir='${exec_prefix}/libexec'
  306. datadir='${prefix}/share'
  307. sysconfdir='${prefix}/etc'
  308. sharedstatedir='${prefix}/com'
  309. localstatedir='${prefix}/var'
  310. libdir='${exec_prefix}/lib'
  311. includedir='${prefix}/include'
  312. oldincludedir='/usr/include'
  313. infodir='${prefix}/info'
  314. mandir='${prefix}/man'
  315. ac_prev=
  316. for ac_option
  317. do
  318. # If the previous option needs an argument, assign it.
  319. if test -n "$ac_prev"; then
  320. eval "$ac_prev=\$ac_option"
  321. ac_prev=
  322. continue
  323. fi
  324. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  325. # Accept the important Cygnus configure options, so we can diagnose typos.
  326. case $ac_option in
  327. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  328. ac_prev=bindir ;;
  329. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  330. bindir=$ac_optarg ;;
  331. -build | --build | --buil | --bui | --bu)
  332. ac_prev=build_alias ;;
  333. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  334. build_alias=$ac_optarg ;;
  335. -cache-file | --cache-file | --cache-fil | --cache-fi \
  336. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  337. ac_prev=cache_file ;;
  338. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  339. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  340. cache_file=$ac_optarg ;;
  341. --config-cache | -C)
  342. cache_file=config.cache ;;
  343. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  344. ac_prev=datadir ;;
  345. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  346. | --da=*)
  347. datadir=$ac_optarg ;;
  348. -disable-* | --disable-*)
  349. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  350. # Reject names that are not valid shell variable names.
  351. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  352. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  353. { (exit 1); exit 1; }; }
  354. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  355. eval "enable_$ac_feature=no" ;;
  356. -enable-* | --enable-*)
  357. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  358. # Reject names that are not valid shell variable names.
  359. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  360. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  361. { (exit 1); exit 1; }; }
  362. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  363. case $ac_option in
  364. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  365. *) ac_optarg=yes ;;
  366. esac
  367. eval "enable_$ac_feature='$ac_optarg'" ;;
  368. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  369. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  370. | --exec | --exe | --ex)
  371. ac_prev=exec_prefix ;;
  372. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  373. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  374. | --exec=* | --exe=* | --ex=*)
  375. exec_prefix=$ac_optarg ;;
  376. -gas | --gas | --ga | --g)
  377. # Obsolete; use --with-gas.
  378. with_gas=yes ;;
  379. -help | --help | --hel | --he | -h)
  380. ac_init_help=long ;;
  381. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  382. ac_init_help=recursive ;;
  383. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  384. ac_init_help=short ;;
  385. -host | --host | --hos | --ho)
  386. ac_prev=host_alias ;;
  387. -host=* | --host=* | --hos=* | --ho=*)
  388. host_alias=$ac_optarg ;;
  389. -includedir | --includedir | --includedi | --included | --include \
  390. | --includ | --inclu | --incl | --inc)
  391. ac_prev=includedir ;;
  392. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  393. | --includ=* | --inclu=* | --incl=* | --inc=*)
  394. includedir=$ac_optarg ;;
  395. -infodir | --infodir | --infodi | --infod | --info | --inf)
  396. ac_prev=infodir ;;
  397. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  398. infodir=$ac_optarg ;;
  399. -libdir | --libdir | --libdi | --libd)
  400. ac_prev=libdir ;;
  401. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  402. libdir=$ac_optarg ;;
  403. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  404. | --libexe | --libex | --libe)
  405. ac_prev=libexecdir ;;
  406. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  407. | --libexe=* | --libex=* | --libe=*)
  408. libexecdir=$ac_optarg ;;
  409. -localstatedir | --localstatedir | --localstatedi | --localstated \
  410. | --localstate | --localstat | --localsta | --localst \
  411. | --locals | --local | --loca | --loc | --lo)
  412. ac_prev=localstatedir ;;
  413. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  414. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  415. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  416. localstatedir=$ac_optarg ;;
  417. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  418. ac_prev=mandir ;;
  419. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  420. mandir=$ac_optarg ;;
  421. -nfp | --nfp | --nf)
  422. # Obsolete; use --without-fp.
  423. with_fp=no ;;
  424. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  425. | --no-cr | --no-c | -n)
  426. no_create=yes ;;
  427. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  428. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  429. no_recursion=yes ;;
  430. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  431. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  432. | --oldin | --oldi | --old | --ol | --o)
  433. ac_prev=oldincludedir ;;
  434. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  435. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  436. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  437. oldincludedir=$ac_optarg ;;
  438. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  439. ac_prev=prefix ;;
  440. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  441. prefix=$ac_optarg ;;
  442. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  443. | --program-pre | --program-pr | --program-p)
  444. ac_prev=program_prefix ;;
  445. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  446. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  447. program_prefix=$ac_optarg ;;
  448. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  449. | --program-suf | --program-su | --program-s)
  450. ac_prev=program_suffix ;;
  451. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  452. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  453. program_suffix=$ac_optarg ;;
  454. -program-transform-name | --program-transform-name \
  455. | --program-transform-nam | --program-transform-na \
  456. | --program-transform-n | --program-transform- \
  457. | --program-transform | --program-transfor \
  458. | --program-transfo | --program-transf \
  459. | --program-trans | --program-tran \
  460. | --progr-tra | --program-tr | --program-t)
  461. ac_prev=program_transform_name ;;
  462. -program-transform-name=* | --program-transform-name=* \
  463. | --program-transform-nam=* | --program-transform-na=* \
  464. | --program-transform-n=* | --program-transform-=* \
  465. | --program-transform=* | --program-transfor=* \
  466. | --program-transfo=* | --program-transf=* \
  467. | --program-trans=* | --program-tran=* \
  468. | --progr-tra=* | --program-tr=* | --program-t=*)
  469. program_transform_name=$ac_optarg ;;
  470. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  471. | -silent | --silent | --silen | --sile | --sil)
  472. silent=yes ;;
  473. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  474. ac_prev=sbindir ;;
  475. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  476. | --sbi=* | --sb=*)
  477. sbindir=$ac_optarg ;;
  478. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  479. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  480. | --sharedst | --shareds | --shared | --share | --shar \
  481. | --sha | --sh)
  482. ac_prev=sharedstatedir ;;
  483. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  484. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  485. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  486. | --sha=* | --sh=*)
  487. sharedstatedir=$ac_optarg ;;
  488. -site | --site | --sit)
  489. ac_prev=site ;;
  490. -site=* | --site=* | --sit=*)
  491. site=$ac_optarg ;;
  492. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  493. ac_prev=srcdir ;;
  494. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  495. srcdir=$ac_optarg ;;
  496. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  497. | --syscon | --sysco | --sysc | --sys | --sy)
  498. ac_prev=sysconfdir ;;
  499. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  500. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  501. sysconfdir=$ac_optarg ;;
  502. -target | --target | --targe | --targ | --tar | --ta | --t)
  503. ac_prev=target_alias ;;
  504. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  505. target_alias=$ac_optarg ;;
  506. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  507. verbose=yes ;;
  508. -version | --version | --versio | --versi | --vers | -V)
  509. ac_init_version=: ;;
  510. -with-* | --with-*)
  511. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  512. # Reject names that are not valid shell variable names.
  513. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  514. { echo "$as_me: error: invalid package name: $ac_package" >&2
  515. { (exit 1); exit 1; }; }
  516. ac_package=`echo $ac_package| sed 's/-/_/g'`
  517. case $ac_option in
  518. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  519. *) ac_optarg=yes ;;
  520. esac
  521. eval "with_$ac_package='$ac_optarg'" ;;
  522. -without-* | --without-*)
  523. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  524. # Reject names that are not valid shell variable names.
  525. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  526. { echo "$as_me: error: invalid package name: $ac_package" >&2
  527. { (exit 1); exit 1; }; }
  528. ac_package=`echo $ac_package | sed 's/-/_/g'`
  529. eval "with_$ac_package=no" ;;
  530. --x)
  531. # Obsolete; use --with-x.
  532. with_x=yes ;;
  533. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  534. | --x-incl | --x-inc | --x-in | --x-i)
  535. ac_prev=x_includes ;;
  536. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  537. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  538. x_includes=$ac_optarg ;;
  539. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  540. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  541. ac_prev=x_libraries ;;
  542. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  543. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  544. x_libraries=$ac_optarg ;;
  545. -*) { echo "$as_me: error: unrecognized option: $ac_option
  546. Try \`$0 --help' for more information." >&2
  547. { (exit 1); exit 1; }; }
  548. ;;
  549. *=*)
  550. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  551. # Reject names that are not valid shell variable names.
  552. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  553. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  554. { (exit 1); exit 1; }; }
  555. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  556. eval "$ac_envvar='$ac_optarg'"
  557. export $ac_envvar ;;
  558. *)
  559. # FIXME: should be removed in autoconf 3.0.
  560. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  561. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  562. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  563. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  564. ;;
  565. esac
  566. done
  567. if test -n "$ac_prev"; then
  568. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  569. { echo "$as_me: error: missing argument to $ac_option" >&2
  570. { (exit 1); exit 1; }; }
  571. fi
  572. # Be sure to have absolute paths.
  573. for ac_var in exec_prefix prefix
  574. do
  575. eval ac_val=$`echo $ac_var`
  576. case $ac_val in
  577. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  578. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  579. { (exit 1); exit 1; }; };;
  580. esac
  581. done
  582. # Be sure to have absolute paths.
  583. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  584. localstatedir libdir includedir oldincludedir infodir mandir
  585. do
  586. eval ac_val=$`echo $ac_var`
  587. case $ac_val in
  588. [\\/$]* | ?:[\\/]* ) ;;
  589. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  590. { (exit 1); exit 1; }; };;
  591. esac
  592. done
  593. # There might be people who depend on the old broken behavior: `$host'
  594. # used to hold the argument of --host etc.
  595. # FIXME: To remove some day.
  596. build=$build_alias
  597. host=$host_alias
  598. target=$target_alias
  599. # FIXME: To remove some day.
  600. if test "x$host_alias" != x; then
  601. if test "x$build_alias" = x; then
  602. cross_compiling=maybe
  603. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  604. If a cross compiler is detected then cross compile mode will be used." >&2
  605. elif test "x$build_alias" != "x$host_alias"; then
  606. cross_compiling=yes
  607. fi
  608. fi
  609. ac_tool_prefix=
  610. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  611. test "$silent" = yes && exec 6>/dev/null
  612. # Find the source files, if location was not specified.
  613. if test -z "$srcdir"; then
  614. ac_srcdir_defaulted=yes
  615. # Try the directory containing this script, then its parent.
  616. ac_confdir=`(dirname "$0") 2>/dev/null ||
  617. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  618. X"$0" : 'X\(//\)[^/]' \| \
  619. X"$0" : 'X\(//\)$' \| \
  620. X"$0" : 'X\(/\)' \| \
  621. . : '\(.\)' 2>/dev/null ||
  622. echo X"$0" |
  623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  624. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  625. /^X\(\/\/\)$/{ s//\1/; q; }
  626. /^X\(\/\).*/{ s//\1/; q; }
  627. s/.*/./; q'`
  628. srcdir=$ac_confdir
  629. if test ! -r $srcdir/$ac_unique_file; then
  630. srcdir=..
  631. fi
  632. else
  633. ac_srcdir_defaulted=no
  634. fi
  635. if test ! -r $srcdir/$ac_unique_file; then
  636. if test "$ac_srcdir_defaulted" = yes; then
  637. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  638. { (exit 1); exit 1; }; }
  639. else
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  641. { (exit 1); exit 1; }; }
  642. fi
  643. fi
  644. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  645. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  646. { (exit 1); exit 1; }; }
  647. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  648. ac_env_build_alias_set=${build_alias+set}
  649. ac_env_build_alias_value=$build_alias
  650. ac_cv_env_build_alias_set=${build_alias+set}
  651. ac_cv_env_build_alias_value=$build_alias
  652. ac_env_host_alias_set=${host_alias+set}
  653. ac_env_host_alias_value=$host_alias
  654. ac_cv_env_host_alias_set=${host_alias+set}
  655. ac_cv_env_host_alias_value=$host_alias
  656. ac_env_target_alias_set=${target_alias+set}
  657. ac_env_target_alias_value=$target_alias
  658. ac_cv_env_target_alias_set=${target_alias+set}
  659. ac_cv_env_target_alias_value=$target_alias
  660. ac_env_CC_set=${CC+set}
  661. ac_env_CC_value=$CC
  662. ac_cv_env_CC_set=${CC+set}
  663. ac_cv_env_CC_value=$CC
  664. ac_env_CFLAGS_set=${CFLAGS+set}
  665. ac_env_CFLAGS_value=$CFLAGS
  666. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  667. ac_cv_env_CFLAGS_value=$CFLAGS
  668. ac_env_LDFLAGS_set=${LDFLAGS+set}
  669. ac_env_LDFLAGS_value=$LDFLAGS
  670. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  671. ac_cv_env_LDFLAGS_value=$LDFLAGS
  672. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  673. ac_env_CPPFLAGS_value=$CPPFLAGS
  674. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  675. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  676. ac_env_CPP_set=${CPP+set}
  677. ac_env_CPP_value=$CPP
  678. ac_cv_env_CPP_set=${CPP+set}
  679. ac_cv_env_CPP_value=$CPP
  680. #
  681. # Report the --help message.
  682. #
  683. if test "$ac_init_help" = "long"; then
  684. # Omit some internal or obsolete options to make the list less imposing.
  685. # This message is too long to be a string in the A/UX 3.1 sh.
  686. cat <<_ACEOF
  687. \`configure' configures this package to adapt to many kinds of systems.
  688. Usage: $0 [OPTION]... [VAR=VALUE]...
  689. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  690. VAR=VALUE. See below for descriptions of some of the useful variables.
  691. Defaults for the options are specified in brackets.
  692. Configuration:
  693. -h, --help display this help and exit
  694. --help=short display options specific to this package
  695. --help=recursive display the short help of all the included packages
  696. -V, --version display version information and exit
  697. -q, --quiet, --silent do not print \`checking...' messages
  698. --cache-file=FILE cache test results in FILE [disabled]
  699. -C, --config-cache alias for \`--cache-file=config.cache'
  700. -n, --no-create do not create output files
  701. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  702. _ACEOF
  703. cat <<_ACEOF
  704. Installation directories:
  705. --prefix=PREFIX install architecture-independent files in PREFIX
  706. [$ac_default_prefix]
  707. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  708. [PREFIX]
  709. By default, \`make install' will install all the files in
  710. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  711. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  712. for instance \`--prefix=\$HOME'.
  713. For better control, use the options below.
  714. Fine tuning of the installation directories:
  715. --bindir=DIR user executables [EPREFIX/bin]
  716. --sbindir=DIR system admin executables [EPREFIX/sbin]
  717. --libexecdir=DIR program executables [EPREFIX/libexec]
  718. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  719. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  720. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  721. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  722. --libdir=DIR object code libraries [EPREFIX/lib]
  723. --includedir=DIR C header files [PREFIX/include]
  724. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  725. --infodir=DIR info documentation [PREFIX/info]
  726. --mandir=DIR man documentation [PREFIX/man]
  727. _ACEOF
  728. cat <<\_ACEOF
  729. _ACEOF
  730. fi
  731. if test -n "$ac_init_help"; then
  732. cat <<\_ACEOF
  733. Optional Features:
  734. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  735. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  736. --disable-ipv6 disable IPv6 support
  737. Optional Packages:
  738. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  739. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  740. --with-tcllib=PATH full path to Tcl library
  741. --with-tclinc=PATH full path to Tcl header
  742. Some influential environment variables:
  743. CC
  744. C compiler command
  745. CFLAGS
  746. C compiler flags
  747. LDFLAGS
  748. linker flags, e.g. -L<lib dir> if you have
  749. libraries in a nonstandard directory <lib dir>
  750. CPPFLAGS
  751. C/C++ preprocessor flags, e.g. -I<include dir> if you
  752. have headers in a nonstandard directory <include dir>
  753. CPP
  754. C preprocessor
  755. Use these variables to override the choices made by `configure' or to help
  756. it to find libraries and programs with nonstandard names/locations.
  757. _ACEOF
  758. fi
  759. if test "$ac_init_help" = "recursive"; then
  760. # If there are subdirs, report their specific --help.
  761. ac_popdir=`pwd`
  762. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  763. test -d $ac_dir || continue
  764. ac_builddir=.
  765. if test "$ac_dir" != .; then
  766. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  767. # A "../" for each directory in $ac_dir_suffix.
  768. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  769. else
  770. ac_dir_suffix= ac_top_builddir=
  771. fi
  772. case $srcdir in
  773. .) # No --srcdir option. We are building in place.
  774. ac_srcdir=.
  775. if test -z "$ac_top_builddir"; then
  776. ac_top_srcdir=.
  777. else
  778. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  779. fi ;;
  780. [\\/]* | ?:[\\/]* ) # Absolute path.
  781. ac_srcdir=$srcdir$ac_dir_suffix;
  782. ac_top_srcdir=$srcdir ;;
  783. *) # Relative path.
  784. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  785. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  786. esac
  787. # Do not use `cd foo && pwd` to compute absolute paths, because
  788. # the directories may not exist.
  789. case `pwd` in
  790. .) ac_abs_builddir="$ac_dir";;
  791. *)
  792. case "$ac_dir" in
  793. .) ac_abs_builddir=`pwd`;;
  794. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  795. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  796. esac;;
  797. esac
  798. case $ac_abs_builddir in
  799. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  800. *)
  801. case ${ac_top_builddir}. in
  802. .) ac_abs_top_builddir=$ac_abs_builddir;;
  803. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  804. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  805. esac;;
  806. esac
  807. case $ac_abs_builddir in
  808. .) ac_abs_srcdir=$ac_srcdir;;
  809. *)
  810. case $ac_srcdir in
  811. .) ac_abs_srcdir=$ac_abs_builddir;;
  812. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  813. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  814. esac;;
  815. esac
  816. case $ac_abs_builddir in
  817. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  818. *)
  819. case $ac_top_srcdir in
  820. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  821. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  822. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  823. esac;;
  824. esac
  825. cd $ac_dir
  826. # Check for guested configure; otherwise get Cygnus style configure.
  827. if test -f $ac_srcdir/configure.gnu; then
  828. echo
  829. $SHELL $ac_srcdir/configure.gnu --help=recursive
  830. elif test -f $ac_srcdir/configure; then
  831. echo
  832. $SHELL $ac_srcdir/configure --help=recursive
  833. elif test -f $ac_srcdir/configure.ac ||
  834. test -f $ac_srcdir/configure.in; then
  835. echo
  836. $ac_configure --help
  837. else
  838. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  839. fi
  840. cd "$ac_popdir"
  841. done
  842. fi
  843. test -n "$ac_init_help" && exit 0
  844. if $ac_init_version; then
  845. cat <<\_ACEOF
  846. Copyright (C) 2003 Free Software Foundation, Inc.
  847. This configure script is free software; the Free Software Foundation
  848. gives unlimited permission to copy, distribute and modify it.
  849. _ACEOF
  850. exit 0
  851. fi
  852. exec 5>config.log
  853. cat >&5 <<_ACEOF
  854. This file contains any messages produced by compilers while
  855. running configure, to aid debugging if configure makes a mistake.
  856. It was created by $as_me, which was
  857. generated by GNU Autoconf 2.58. Invocation command line was
  858. $ $0 $@
  859. _ACEOF
  860. {
  861. cat <<_ASUNAME
  862. ## --------- ##
  863. ## Platform. ##
  864. ## --------- ##
  865. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  866. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  867. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  868. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  869. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  870. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  871. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  872. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  873. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  874. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  875. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  876. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  877. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  878. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  879. _ASUNAME
  880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  881. for as_dir in $PATH
  882. do
  883. IFS=$as_save_IFS
  884. test -z "$as_dir" && as_dir=.
  885. echo "PATH: $as_dir"
  886. done
  887. } >&5
  888. cat >&5 <<_ACEOF
  889. ## ----------- ##
  890. ## Core tests. ##
  891. ## ----------- ##
  892. _ACEOF
  893. # Keep a trace of the command line.
  894. # Strip out --no-create and --no-recursion so they do not pile up.
  895. # Strip out --silent because we don't want to record it for future runs.
  896. # Also quote any args containing shell meta-characters.
  897. # Make two passes to allow for proper duplicate-argument suppression.
  898. ac_configure_args=
  899. ac_configure_args0=
  900. ac_configure_args1=
  901. ac_sep=
  902. ac_must_keep_next=false
  903. for ac_pass in 1 2
  904. do
  905. for ac_arg
  906. do
  907. case $ac_arg in
  908. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  909. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  910. | -silent | --silent | --silen | --sile | --sil)
  911. continue ;;
  912. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  913. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  914. esac
  915. case $ac_pass in
  916. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  917. 2)
  918. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  919. if test $ac_must_keep_next = true; then
  920. ac_must_keep_next=false # Got value, back to normal.
  921. else
  922. case $ac_arg in
  923. *=* | --config-cache | -C | -disable-* | --disable-* \
  924. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  925. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  926. | -with-* | --with-* | -without-* | --without-* | --x)
  927. case "$ac_configure_args0 " in
  928. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  929. esac
  930. ;;
  931. -* ) ac_must_keep_next=true ;;
  932. esac
  933. fi
  934. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  935. # Get rid of the leading space.
  936. ac_sep=" "
  937. ;;
  938. esac
  939. done
  940. done
  941. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  942. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  943. # When interrupted or exit'd, cleanup temporary files, and complete
  944. # config.log. We remove comments because anyway the quotes in there
  945. # would cause problems or look ugly.
  946. # WARNING: Be sure not to use single quotes in there, as some shells,
  947. # such as our DU 5.0 friend, will then `close' the trap.
  948. trap 'exit_status=$?
  949. # Save into config.log some information that might help in debugging.
  950. {
  951. echo
  952. cat <<\_ASBOX
  953. ## ---------------- ##
  954. ## Cache variables. ##
  955. ## ---------------- ##
  956. _ASBOX
  957. echo
  958. # The following way of writing the cache mishandles newlines in values,
  959. {
  960. (set) 2>&1 |
  961. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  962. *ac_space=\ *)
  963. sed -n \
  964. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  965. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  966. ;;
  967. *)
  968. sed -n \
  969. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  970. ;;
  971. esac;
  972. }
  973. echo
  974. cat <<\_ASBOX
  975. ## ----------------- ##
  976. ## Output variables. ##
  977. ## ----------------- ##
  978. _ASBOX
  979. echo
  980. for ac_var in $ac_subst_vars
  981. do
  982. eval ac_val=$`echo $ac_var`
  983. echo "$ac_var='"'"'$ac_val'"'"'"
  984. done | sort
  985. echo
  986. if test -n "$ac_subst_files"; then
  987. cat <<\_ASBOX
  988. ## ------------- ##
  989. ## Output files. ##
  990. ## ------------- ##
  991. _ASBOX
  992. echo
  993. for ac_var in $ac_subst_files
  994. do
  995. eval ac_val=$`echo $ac_var`
  996. echo "$ac_var='"'"'$ac_val'"'"'"
  997. done | sort
  998. echo
  999. fi
  1000. if test -s confdefs.h; then
  1001. cat <<\_ASBOX
  1002. ## ----------- ##
  1003. ## confdefs.h. ##
  1004. ## ----------- ##
  1005. _ASBOX
  1006. echo
  1007. sed "/^$/d" confdefs.h | sort
  1008. echo
  1009. fi
  1010. test "$ac_signal" != 0 &&
  1011. echo "$as_me: caught signal $ac_signal"
  1012. echo "$as_me: exit $exit_status"
  1013. } >&5
  1014. rm -f core *.core &&
  1015. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1016. exit $exit_status
  1017. ' 0
  1018. for ac_signal in 1 2 13 15; do
  1019. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1020. done
  1021. ac_signal=0
  1022. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1023. rm -rf conftest* confdefs.h
  1024. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1025. echo >confdefs.h
  1026. # Predefined preprocessor variables.
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_NAME "$PACKAGE_NAME"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1035. _ACEOF
  1036. cat >>confdefs.h <<_ACEOF
  1037. #define PACKAGE_STRING "$PACKAGE_STRING"
  1038. _ACEOF
  1039. cat >>confdefs.h <<_ACEOF
  1040. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1041. _ACEOF
  1042. # Let the site file select an alternate cache file if it wants to.
  1043. # Prefer explicitly selected file to automatically selected ones.
  1044. if test -z "$CONFIG_SITE"; then
  1045. if test "x$prefix" != xNONE; then
  1046. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1047. else
  1048. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1049. fi
  1050. fi
  1051. for ac_site_file in $CONFIG_SITE; do
  1052. if test -r "$ac_site_file"; then
  1053. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1054. echo "$as_me: loading site script $ac_site_file" >&6;}
  1055. sed 's/^/| /' "$ac_site_file" >&5
  1056. . "$ac_site_file"
  1057. fi
  1058. done
  1059. if test -r "$cache_file"; then
  1060. # Some versions of bash will fail to source /dev/null (special
  1061. # files actually), so we avoid doing that.
  1062. if test -f "$cache_file"; then
  1063. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1064. echo "$as_me: loading cache $cache_file" >&6;}
  1065. case $cache_file in
  1066. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1067. *) . ./$cache_file;;
  1068. esac
  1069. fi
  1070. else
  1071. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1072. echo "$as_me: creating cache $cache_file" >&6;}
  1073. >$cache_file
  1074. fi
  1075. # Check that the precious variables saved in the cache have kept the same
  1076. # value.
  1077. ac_cache_corrupted=false
  1078. for ac_var in `(set) 2>&1 |
  1079. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1080. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1081. eval ac_new_set=\$ac_env_${ac_var}_set
  1082. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1083. eval ac_new_val="\$ac_env_${ac_var}_value"
  1084. case $ac_old_set,$ac_new_set in
  1085. set,)
  1086. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1087. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1088. ac_cache_corrupted=: ;;
  1089. ,set)
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1091. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1092. ac_cache_corrupted=: ;;
  1093. ,);;
  1094. *)
  1095. if test "x$ac_old_val" != "x$ac_new_val"; then
  1096. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1097. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1098. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1099. echo "$as_me: former value: $ac_old_val" >&2;}
  1100. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1101. echo "$as_me: current value: $ac_new_val" >&2;}
  1102. ac_cache_corrupted=:
  1103. fi;;
  1104. esac
  1105. # Pass precious variables to config.status.
  1106. if test "$ac_new_set" = set; then
  1107. case $ac_new_val in
  1108. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1109. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1110. *) ac_arg=$ac_var=$ac_new_val ;;
  1111. esac
  1112. case " $ac_configure_args " in
  1113. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1114. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1115. esac
  1116. fi
  1117. done
  1118. if $ac_cache_corrupted; then
  1119. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1120. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1121. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1122. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1123. { (exit 1); exit 1; }; }
  1124. fi
  1125. ac_ext=c
  1126. ac_cpp='$CPP $CPPFLAGS'
  1127. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1128. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1129. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1130. ac_config_headers="$ac_config_headers config.h"
  1131. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1132. egg_ac_parameters=
  1133. ac_prev=
  1134. for ac_arg in $ac_configure_args; do
  1135. if test -n "$ac_prev"; then
  1136. ac_prev=
  1137. continue
  1138. fi
  1139. case $ac_arg in
  1140. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1141. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1142. ac_prev=cache_file ;;
  1143. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1144. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1145. | --c=*)
  1146. ;;
  1147. --config-cache | -C)
  1148. ;;
  1149. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1150. ac_prev=srcdir ;;
  1151. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1152. ;;
  1153. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1154. esac
  1155. done
  1156. # Setup build environment
  1157. ac_ext=c
  1158. ac_cpp='$CPP $CPPFLAGS'
  1159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1162. if test -n "$ac_tool_prefix"; then
  1163. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1164. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1165. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1166. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1167. if test "${ac_cv_prog_CC+set}" = set; then
  1168. echo $ECHO_N "(cached) $ECHO_C" >&6
  1169. else
  1170. if test -n "$CC"; then
  1171. ac_cv_prog_CC="$CC" # Let the user override the test.
  1172. else
  1173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1174. for as_dir in $PATH
  1175. do
  1176. IFS=$as_save_IFS
  1177. test -z "$as_dir" && as_dir=.
  1178. for ac_exec_ext in '' $ac_executable_extensions; do
  1179. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1180. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1181. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1182. break 2
  1183. fi
  1184. done
  1185. done
  1186. fi
  1187. fi
  1188. CC=$ac_cv_prog_CC
  1189. if test -n "$CC"; then
  1190. echo "$as_me:$LINENO: result: $CC" >&5
  1191. echo "${ECHO_T}$CC" >&6
  1192. else
  1193. echo "$as_me:$LINENO: result: no" >&5
  1194. echo "${ECHO_T}no" >&6
  1195. fi
  1196. fi
  1197. if test -z "$ac_cv_prog_CC"; then
  1198. ac_ct_CC=$CC
  1199. # Extract the first word of "gcc", so it can be a program name with args.
  1200. set dummy gcc; ac_word=$2
  1201. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1203. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1204. echo $ECHO_N "(cached) $ECHO_C" >&6
  1205. else
  1206. if test -n "$ac_ct_CC"; then
  1207. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1208. else
  1209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1210. for as_dir in $PATH
  1211. do
  1212. IFS=$as_save_IFS
  1213. test -z "$as_dir" && as_dir=.
  1214. for ac_exec_ext in '' $ac_executable_extensions; do
  1215. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1216. ac_cv_prog_ac_ct_CC="gcc"
  1217. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1218. break 2
  1219. fi
  1220. done
  1221. done
  1222. fi
  1223. fi
  1224. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1225. if test -n "$ac_ct_CC"; then
  1226. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1227. echo "${ECHO_T}$ac_ct_CC" >&6
  1228. else
  1229. echo "$as_me:$LINENO: result: no" >&5
  1230. echo "${ECHO_T}no" >&6
  1231. fi
  1232. CC=$ac_ct_CC
  1233. else
  1234. CC="$ac_cv_prog_CC"
  1235. fi
  1236. if test -z "$CC"; then
  1237. if test -n "$ac_tool_prefix"; then
  1238. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1239. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1240. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1241. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1242. if test "${ac_cv_prog_CC+set}" = set; then
  1243. echo $ECHO_N "(cached) $ECHO_C" >&6
  1244. else
  1245. if test -n "$CC"; then
  1246. ac_cv_prog_CC="$CC" # Let the user override the test.
  1247. else
  1248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1249. for as_dir in $PATH
  1250. do
  1251. IFS=$as_save_IFS
  1252. test -z "$as_dir" && as_dir=.
  1253. for ac_exec_ext in '' $ac_executable_extensions; do
  1254. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1255. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1256. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1257. break 2
  1258. fi
  1259. done
  1260. done
  1261. fi
  1262. fi
  1263. CC=$ac_cv_prog_CC
  1264. if test -n "$CC"; then
  1265. echo "$as_me:$LINENO: result: $CC" >&5
  1266. echo "${ECHO_T}$CC" >&6
  1267. else
  1268. echo "$as_me:$LINENO: result: no" >&5
  1269. echo "${ECHO_T}no" >&6
  1270. fi
  1271. fi
  1272. if test -z "$ac_cv_prog_CC"; then
  1273. ac_ct_CC=$CC
  1274. # Extract the first word of "cc", so it can be a program name with args.
  1275. set dummy cc; ac_word=$2
  1276. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1277. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1278. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1279. echo $ECHO_N "(cached) $ECHO_C" >&6
  1280. else
  1281. if test -n "$ac_ct_CC"; then
  1282. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1283. else
  1284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1285. for as_dir in $PATH
  1286. do
  1287. IFS=$as_save_IFS
  1288. test -z "$as_dir" && as_dir=.
  1289. for ac_exec_ext in '' $ac_executable_extensions; do
  1290. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1291. ac_cv_prog_ac_ct_CC="cc"
  1292. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1293. break 2
  1294. fi
  1295. done
  1296. done
  1297. fi
  1298. fi
  1299. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1300. if test -n "$ac_ct_CC"; then
  1301. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1302. echo "${ECHO_T}$ac_ct_CC" >&6
  1303. else
  1304. echo "$as_me:$LINENO: result: no" >&5
  1305. echo "${ECHO_T}no" >&6
  1306. fi
  1307. CC=$ac_ct_CC
  1308. else
  1309. CC="$ac_cv_prog_CC"
  1310. fi
  1311. fi
  1312. if test -z "$CC"; then
  1313. # Extract the first word of "cc", so it can be a program name with args.
  1314. set dummy cc; ac_word=$2
  1315. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1316. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1317. if test "${ac_cv_prog_CC+set}" = set; then
  1318. echo $ECHO_N "(cached) $ECHO_C" >&6
  1319. else
  1320. if test -n "$CC"; then
  1321. ac_cv_prog_CC="$CC" # Let the user override the test.
  1322. else
  1323. ac_prog_rejected=no
  1324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1325. for as_dir in $PATH
  1326. do
  1327. IFS=$as_save_IFS
  1328. test -z "$as_dir" && as_dir=.
  1329. for ac_exec_ext in '' $ac_executable_extensions; do
  1330. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1331. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1332. ac_prog_rejected=yes
  1333. continue
  1334. fi
  1335. ac_cv_prog_CC="cc"
  1336. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1337. break 2
  1338. fi
  1339. done
  1340. done
  1341. if test $ac_prog_rejected = yes; then
  1342. # We found a bogon in the path, so make sure we never use it.
  1343. set dummy $ac_cv_prog_CC
  1344. shift
  1345. if test $# != 0; then
  1346. # We chose a different compiler from the bogus one.
  1347. # However, it has the same basename, so the bogon will be chosen
  1348. # first if we set CC to just the basename; use the full file name.
  1349. shift
  1350. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1351. fi
  1352. fi
  1353. fi
  1354. fi
  1355. CC=$ac_cv_prog_CC
  1356. if test -n "$CC"; then
  1357. echo "$as_me:$LINENO: result: $CC" >&5
  1358. echo "${ECHO_T}$CC" >&6
  1359. else
  1360. echo "$as_me:$LINENO: result: no" >&5
  1361. echo "${ECHO_T}no" >&6
  1362. fi
  1363. fi
  1364. if test -z "$CC"; then
  1365. if test -n "$ac_tool_prefix"; then
  1366. for ac_prog in cl
  1367. do
  1368. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1369. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1370. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1371. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1372. if test "${ac_cv_prog_CC+set}" = set; then
  1373. echo $ECHO_N "(cached) $ECHO_C" >&6
  1374. else
  1375. if test -n "$CC"; then
  1376. ac_cv_prog_CC="$CC" # Let the user override the test.
  1377. else
  1378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1379. for as_dir in $PATH
  1380. do
  1381. IFS=$as_save_IFS
  1382. test -z "$as_dir" && as_dir=.
  1383. for ac_exec_ext in '' $ac_executable_extensions; do
  1384. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1385. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1386. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1387. break 2
  1388. fi
  1389. done
  1390. done
  1391. fi
  1392. fi
  1393. CC=$ac_cv_prog_CC
  1394. if test -n "$CC"; then
  1395. echo "$as_me:$LINENO: result: $CC" >&5
  1396. echo "${ECHO_T}$CC" >&6
  1397. else
  1398. echo "$as_me:$LINENO: result: no" >&5
  1399. echo "${ECHO_T}no" >&6
  1400. fi
  1401. test -n "$CC" && break
  1402. done
  1403. fi
  1404. if test -z "$CC"; then
  1405. ac_ct_CC=$CC
  1406. for ac_prog in cl
  1407. do
  1408. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1409. set dummy $ac_prog; ac_word=$2
  1410. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1411. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1412. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1413. echo $ECHO_N "(cached) $ECHO_C" >&6
  1414. else
  1415. if test -n "$ac_ct_CC"; then
  1416. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1417. else
  1418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1419. for as_dir in $PATH
  1420. do
  1421. IFS=$as_save_IFS
  1422. test -z "$as_dir" && as_dir=.
  1423. for ac_exec_ext in '' $ac_executable_extensions; do
  1424. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1425. ac_cv_prog_ac_ct_CC="$ac_prog"
  1426. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1427. break 2
  1428. fi
  1429. done
  1430. done
  1431. fi
  1432. fi
  1433. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1434. if test -n "$ac_ct_CC"; then
  1435. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1436. echo "${ECHO_T}$ac_ct_CC" >&6
  1437. else
  1438. echo "$as_me:$LINENO: result: no" >&5
  1439. echo "${ECHO_T}no" >&6
  1440. fi
  1441. test -n "$ac_ct_CC" && break
  1442. done
  1443. CC=$ac_ct_CC
  1444. fi
  1445. fi
  1446. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1447. See \`config.log' for more details." >&5
  1448. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1449. See \`config.log' for more details." >&2;}
  1450. { (exit 1); exit 1; }; }
  1451. # Provide some information about the compiler.
  1452. echo "$as_me:$LINENO:" \
  1453. "checking for C compiler version" >&5
  1454. ac_compiler=`set X $ac_compile; echo $2`
  1455. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1456. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1457. ac_status=$?
  1458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1459. (exit $ac_status); }
  1460. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1461. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1462. ac_status=$?
  1463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1464. (exit $ac_status); }
  1465. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1466. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1467. ac_status=$?
  1468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1469. (exit $ac_status); }
  1470. cat >conftest.$ac_ext <<_ACEOF
  1471. /* confdefs.h. */
  1472. _ACEOF
  1473. cat confdefs.h >>conftest.$ac_ext
  1474. cat >>conftest.$ac_ext <<_ACEOF
  1475. /* end confdefs.h. */
  1476. int
  1477. main ()
  1478. {
  1479. ;
  1480. return 0;
  1481. }
  1482. _ACEOF
  1483. ac_clean_files_save=$ac_clean_files
  1484. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1485. # Try to create an executable without -o first, disregard a.out.
  1486. # It will help us diagnose broken compilers, and finding out an intuition
  1487. # of exeext.
  1488. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1489. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1490. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1491. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1492. (eval $ac_link_default) 2>&5
  1493. ac_status=$?
  1494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1495. (exit $ac_status); }; then
  1496. # Find the output, starting from the most likely. This scheme is
  1497. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1498. # resort.
  1499. # Be careful to initialize this variable, since it used to be cached.
  1500. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1501. ac_cv_exeext=
  1502. # b.out is created by i960 compilers.
  1503. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1504. do
  1505. test -f "$ac_file" || continue
  1506. case $ac_file in
  1507. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1508. ;;
  1509. conftest.$ac_ext )
  1510. # This is the source file.
  1511. ;;
  1512. [ab].out )
  1513. # We found the default executable, but exeext='' is most
  1514. # certainly right.
  1515. break;;
  1516. *.* )
  1517. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1518. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1519. # but it would be cool to find out if it's true. Does anybody
  1520. # maintain Libtool? --akim.
  1521. export ac_cv_exeext
  1522. break;;
  1523. * )
  1524. break;;
  1525. esac
  1526. done
  1527. else
  1528. echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1531. See \`config.log' for more details." >&5
  1532. echo "$as_me: error: C compiler cannot create executables
  1533. See \`config.log' for more details." >&2;}
  1534. { (exit 77); exit 77; }; }
  1535. fi
  1536. ac_exeext=$ac_cv_exeext
  1537. echo "$as_me:$LINENO: result: $ac_file" >&5
  1538. echo "${ECHO_T}$ac_file" >&6
  1539. # Check the compiler produces executables we can run. If not, either
  1540. # the compiler is broken, or we cross compile.
  1541. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1542. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1543. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1544. # If not cross compiling, check that we can run a simple program.
  1545. if test "$cross_compiling" != yes; then
  1546. if { ac_try='./$ac_file'
  1547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1548. (eval $ac_try) 2>&5
  1549. ac_status=$?
  1550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1551. (exit $ac_status); }; }; then
  1552. cross_compiling=no
  1553. else
  1554. if test "$cross_compiling" = maybe; then
  1555. cross_compiling=yes
  1556. else
  1557. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1558. If you meant to cross compile, use \`--host'.
  1559. See \`config.log' for more details." >&5
  1560. echo "$as_me: error: cannot run C compiled programs.
  1561. If you meant to cross compile, use \`--host'.
  1562. See \`config.log' for more details." >&2;}
  1563. { (exit 1); exit 1; }; }
  1564. fi
  1565. fi
  1566. fi
  1567. echo "$as_me:$LINENO: result: yes" >&5
  1568. echo "${ECHO_T}yes" >&6
  1569. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1570. ac_clean_files=$ac_clean_files_save
  1571. # Check the compiler produces executables we can run. If not, either
  1572. # the compiler is broken, or we cross compile.
  1573. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1574. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1575. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1576. echo "${ECHO_T}$cross_compiling" >&6
  1577. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1578. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1579. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1580. (eval $ac_link) 2>&5
  1581. ac_status=$?
  1582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1583. (exit $ac_status); }; then
  1584. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1585. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1586. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1587. # `rm'.
  1588. for ac_file in conftest.exe conftest conftest.*; do
  1589. test -f "$ac_file" || continue
  1590. case $ac_file in
  1591. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1592. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1593. export ac_cv_exeext
  1594. break;;
  1595. * ) break;;
  1596. esac
  1597. done
  1598. else
  1599. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1600. See \`config.log' for more details." >&5
  1601. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1602. See \`config.log' for more details." >&2;}
  1603. { (exit 1); exit 1; }; }
  1604. fi
  1605. rm -f conftest$ac_cv_exeext
  1606. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1607. echo "${ECHO_T}$ac_cv_exeext" >&6
  1608. rm -f conftest.$ac_ext
  1609. EXEEXT=$ac_cv_exeext
  1610. ac_exeext=$EXEEXT
  1611. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1612. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1613. if test "${ac_cv_objext+set}" = set; then
  1614. echo $ECHO_N "(cached) $ECHO_C" >&6
  1615. else
  1616. cat >conftest.$ac_ext <<_ACEOF
  1617. /* confdefs.h. */
  1618. _ACEOF
  1619. cat confdefs.h >>conftest.$ac_ext
  1620. cat >>conftest.$ac_ext <<_ACEOF
  1621. /* end confdefs.h. */
  1622. int
  1623. main ()
  1624. {
  1625. ;
  1626. return 0;
  1627. }
  1628. _ACEOF
  1629. rm -f conftest.o conftest.obj
  1630. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1631. (eval $ac_compile) 2>&5
  1632. ac_status=$?
  1633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1634. (exit $ac_status); }; then
  1635. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1636. case $ac_file in
  1637. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1638. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1639. break;;
  1640. esac
  1641. done
  1642. else
  1643. echo "$as_me: failed program was:" >&5
  1644. sed 's/^/| /' conftest.$ac_ext >&5
  1645. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1646. See \`config.log' for more details." >&5
  1647. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1648. See \`config.log' for more details." >&2;}
  1649. { (exit 1); exit 1; }; }
  1650. fi
  1651. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1652. fi
  1653. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1654. echo "${ECHO_T}$ac_cv_objext" >&6
  1655. OBJEXT=$ac_cv_objext
  1656. ac_objext=$OBJEXT
  1657. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1658. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1659. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1660. echo $ECHO_N "(cached) $ECHO_C" >&6
  1661. else
  1662. cat >conftest.$ac_ext <<_ACEOF
  1663. /* confdefs.h. */
  1664. _ACEOF
  1665. cat confdefs.h >>conftest.$ac_ext
  1666. cat >>conftest.$ac_ext <<_ACEOF
  1667. /* end confdefs.h. */
  1668. int
  1669. main ()
  1670. {
  1671. #ifndef __GNUC__
  1672. choke me
  1673. #endif
  1674. ;
  1675. return 0;
  1676. }
  1677. _ACEOF
  1678. rm -f conftest.$ac_objext
  1679. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1680. (eval $ac_compile) 2>conftest.er1
  1681. ac_status=$?
  1682. grep -v '^ *+' conftest.er1 >conftest.err
  1683. rm -f conftest.er1
  1684. cat conftest.err >&5
  1685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1686. (exit $ac_status); } &&
  1687. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1689. (eval $ac_try) 2>&5
  1690. ac_status=$?
  1691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1692. (exit $ac_status); }; } &&
  1693. { ac_try='test -s conftest.$ac_objext'
  1694. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1695. (eval $ac_try) 2>&5
  1696. ac_status=$?
  1697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1698. (exit $ac_status); }; }; then
  1699. ac_compiler_gnu=yes
  1700. else
  1701. echo "$as_me: failed program was:" >&5
  1702. sed 's/^/| /' conftest.$ac_ext >&5
  1703. ac_compiler_gnu=no
  1704. fi
  1705. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1706. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1707. fi
  1708. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1709. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1710. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1711. ac_test_CFLAGS=${CFLAGS+set}
  1712. ac_save_CFLAGS=$CFLAGS
  1713. CFLAGS="-g"
  1714. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1715. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1716. if test "${ac_cv_prog_cc_g+set}" = set; then
  1717. echo $ECHO_N "(cached) $ECHO_C" >&6
  1718. else
  1719. cat >conftest.$ac_ext <<_ACEOF
  1720. /* confdefs.h. */
  1721. _ACEOF
  1722. cat confdefs.h >>conftest.$ac_ext
  1723. cat >>conftest.$ac_ext <<_ACEOF
  1724. /* end confdefs.h. */
  1725. int
  1726. main ()
  1727. {
  1728. ;
  1729. return 0;
  1730. }
  1731. _ACEOF
  1732. rm -f conftest.$ac_objext
  1733. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1734. (eval $ac_compile) 2>conftest.er1
  1735. ac_status=$?
  1736. grep -v '^ *+' conftest.er1 >conftest.err
  1737. rm -f conftest.er1
  1738. cat conftest.err >&5
  1739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1740. (exit $ac_status); } &&
  1741. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1743. (eval $ac_try) 2>&5
  1744. ac_status=$?
  1745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1746. (exit $ac_status); }; } &&
  1747. { ac_try='test -s conftest.$ac_objext'
  1748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1749. (eval $ac_try) 2>&5
  1750. ac_status=$?
  1751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1752. (exit $ac_status); }; }; then
  1753. ac_cv_prog_cc_g=yes
  1754. else
  1755. echo "$as_me: failed program was:" >&5
  1756. sed 's/^/| /' conftest.$ac_ext >&5
  1757. ac_cv_prog_cc_g=no
  1758. fi
  1759. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1760. fi
  1761. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1762. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1763. if test "$ac_test_CFLAGS" = set; then
  1764. CFLAGS=$ac_save_CFLAGS
  1765. elif test $ac_cv_prog_cc_g = yes; then
  1766. if test "$GCC" = yes; then
  1767. CFLAGS="-g -O2"
  1768. else
  1769. CFLAGS="-g"
  1770. fi
  1771. else
  1772. if test "$GCC" = yes; then
  1773. CFLAGS="-O2"
  1774. else
  1775. CFLAGS=
  1776. fi
  1777. fi
  1778. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1779. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1780. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1781. echo $ECHO_N "(cached) $ECHO_C" >&6
  1782. else
  1783. ac_cv_prog_cc_stdc=no
  1784. ac_save_CC=$CC
  1785. cat >conftest.$ac_ext <<_ACEOF
  1786. /* confdefs.h. */
  1787. _ACEOF
  1788. cat confdefs.h >>conftest.$ac_ext
  1789. cat >>conftest.$ac_ext <<_ACEOF
  1790. /* end confdefs.h. */
  1791. #include <stdarg.h>
  1792. #include <stdio.h>
  1793. #include <sys/types.h>
  1794. #include <sys/stat.h>
  1795. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1796. struct buf { int x; };
  1797. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1798. static char *e (p, i)
  1799. char **p;
  1800. int i;
  1801. {
  1802. return p[i];
  1803. }
  1804. static char *f (char * (*g) (char **, int), char **p, ...)
  1805. {
  1806. char *s;
  1807. va_list v;
  1808. va_start (v,p);
  1809. s = g (p, va_arg (v,int));
  1810. va_end (v);
  1811. return s;
  1812. }
  1813. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1814. function prototypes and stuff, but not '\xHH' hex character constants.
  1815. These don't provoke an error unfortunately, instead are silently treated
  1816. as 'x'. The following induces an error, until -std1 is added to get
  1817. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1818. array size at least. It's necessary to write '\x00'==0 to get something
  1819. that's true only with -std1. */
  1820. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1821. int test (int i, double x);
  1822. struct s1 {int (*f) (int a);};
  1823. struct s2 {int (*f) (double a);};
  1824. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1825. int argc;
  1826. char **argv;
  1827. int
  1828. main ()
  1829. {
  1830. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1831. ;
  1832. return 0;
  1833. }
  1834. _ACEOF
  1835. # Don't try gcc -ansi; that turns off useful extensions and
  1836. # breaks some systems' header files.
  1837. # AIX -qlanglvl=ansi
  1838. # Ultrix and OSF/1 -std1
  1839. # HP-UX 10.20 and later -Ae
  1840. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1841. # SVR4 -Xc -D__EXTENSIONS__
  1842. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1843. do
  1844. CC="$ac_save_CC $ac_arg"
  1845. rm -f conftest.$ac_objext
  1846. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1847. (eval $ac_compile) 2>conftest.er1
  1848. ac_status=$?
  1849. grep -v '^ *+' conftest.er1 >conftest.err
  1850. rm -f conftest.er1
  1851. cat conftest.err >&5
  1852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1853. (exit $ac_status); } &&
  1854. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1856. (eval $ac_try) 2>&5
  1857. ac_status=$?
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); }; } &&
  1860. { ac_try='test -s conftest.$ac_objext'
  1861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1862. (eval $ac_try) 2>&5
  1863. ac_status=$?
  1864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1865. (exit $ac_status); }; }; then
  1866. ac_cv_prog_cc_stdc=$ac_arg
  1867. break
  1868. else
  1869. echo "$as_me: failed program was:" >&5
  1870. sed 's/^/| /' conftest.$ac_ext >&5
  1871. fi
  1872. rm -f conftest.err conftest.$ac_objext
  1873. done
  1874. rm -f conftest.$ac_ext conftest.$ac_objext
  1875. CC=$ac_save_CC
  1876. fi
  1877. case "x$ac_cv_prog_cc_stdc" in
  1878. x|xno)
  1879. echo "$as_me:$LINENO: result: none needed" >&5
  1880. echo "${ECHO_T}none needed" >&6 ;;
  1881. *)
  1882. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1883. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1884. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1885. esac
  1886. # Some people use a C++ compiler to compile C. Since we use `exit',
  1887. # in C++ we need to declare it. In case someone uses the same compiler
  1888. # for both compiling C and C++ we need to have the C++ compiler decide
  1889. # the declaration of exit, since it's the most demanding environment.
  1890. cat >conftest.$ac_ext <<_ACEOF
  1891. #ifndef __cplusplus
  1892. choke me
  1893. #endif
  1894. _ACEOF
  1895. rm -f conftest.$ac_objext
  1896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1897. (eval $ac_compile) 2>conftest.er1
  1898. ac_status=$?
  1899. grep -v '^ *+' conftest.er1 >conftest.err
  1900. rm -f conftest.er1
  1901. cat conftest.err >&5
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); } &&
  1904. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1906. (eval $ac_try) 2>&5
  1907. ac_status=$?
  1908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1909. (exit $ac_status); }; } &&
  1910. { ac_try='test -s conftest.$ac_objext'
  1911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1912. (eval $ac_try) 2>&5
  1913. ac_status=$?
  1914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1915. (exit $ac_status); }; }; then
  1916. for ac_declaration in \
  1917. '' \
  1918. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1919. 'extern "C" void std::exit (int); using std::exit;' \
  1920. 'extern "C" void exit (int) throw ();' \
  1921. 'extern "C" void exit (int);' \
  1922. 'void exit (int);'
  1923. do
  1924. cat >conftest.$ac_ext <<_ACEOF
  1925. /* confdefs.h. */
  1926. _ACEOF
  1927. cat confdefs.h >>conftest.$ac_ext
  1928. cat >>conftest.$ac_ext <<_ACEOF
  1929. /* end confdefs.h. */
  1930. $ac_declaration
  1931. #include <stdlib.h>
  1932. int
  1933. main ()
  1934. {
  1935. exit (42);
  1936. ;
  1937. return 0;
  1938. }
  1939. _ACEOF
  1940. rm -f conftest.$ac_objext
  1941. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1942. (eval $ac_compile) 2>conftest.er1
  1943. ac_status=$?
  1944. grep -v '^ *+' conftest.er1 >conftest.err
  1945. rm -f conftest.er1
  1946. cat conftest.err >&5
  1947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1948. (exit $ac_status); } &&
  1949. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1951. (eval $ac_try) 2>&5
  1952. ac_status=$?
  1953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1954. (exit $ac_status); }; } &&
  1955. { ac_try='test -s conftest.$ac_objext'
  1956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1957. (eval $ac_try) 2>&5
  1958. ac_status=$?
  1959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1960. (exit $ac_status); }; }; then
  1961. :
  1962. else
  1963. echo "$as_me: failed program was:" >&5
  1964. sed 's/^/| /' conftest.$ac_ext >&5
  1965. continue
  1966. fi
  1967. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1968. cat >conftest.$ac_ext <<_ACEOF
  1969. /* confdefs.h. */
  1970. _ACEOF
  1971. cat confdefs.h >>conftest.$ac_ext
  1972. cat >>conftest.$ac_ext <<_ACEOF
  1973. /* end confdefs.h. */
  1974. $ac_declaration
  1975. int
  1976. main ()
  1977. {
  1978. exit (42);
  1979. ;
  1980. return 0;
  1981. }
  1982. _ACEOF
  1983. rm -f conftest.$ac_objext
  1984. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1985. (eval $ac_compile) 2>conftest.er1
  1986. ac_status=$?
  1987. grep -v '^ *+' conftest.er1 >conftest.err
  1988. rm -f conftest.er1
  1989. cat conftest.err >&5
  1990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1991. (exit $ac_status); } &&
  1992. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1994. (eval $ac_try) 2>&5
  1995. ac_status=$?
  1996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1997. (exit $ac_status); }; } &&
  1998. { ac_try='test -s conftest.$ac_objext'
  1999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2000. (eval $ac_try) 2>&5
  2001. ac_status=$?
  2002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2003. (exit $ac_status); }; }; then
  2004. break
  2005. else
  2006. echo "$as_me: failed program was:" >&5
  2007. sed 's/^/| /' conftest.$ac_ext >&5
  2008. fi
  2009. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2010. done
  2011. rm -f conftest*
  2012. if test -n "$ac_declaration"; then
  2013. echo '#ifdef __cplusplus' >>confdefs.h
  2014. echo $ac_declaration >>confdefs.h
  2015. echo '#endif' >>confdefs.h
  2016. fi
  2017. else
  2018. echo "$as_me: failed program was:" >&5
  2019. sed 's/^/| /' conftest.$ac_ext >&5
  2020. fi
  2021. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2022. ac_ext=c
  2023. ac_cpp='$CPP $CPPFLAGS'
  2024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2027. if test "${cross_compiling-x}" = "x"
  2028. then
  2029. cat << 'EOF' >&2
  2030. configure: error:
  2031. This system does not appear to have a working C compiler.
  2032. A working C compiler is required to compile Eggdrop.
  2033. EOF
  2034. exit 1
  2035. fi
  2036. # Crazy machines
  2037. ac_ext=c
  2038. ac_cpp='$CPP $CPPFLAGS'
  2039. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2040. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2041. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2042. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2043. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2044. # On Suns, sometimes $CPP names a directory.
  2045. if test -n "$CPP" && test -d "$CPP"; then
  2046. CPP=
  2047. fi
  2048. if test -z "$CPP"; then
  2049. if test "${ac_cv_prog_CPP+set}" = set; then
  2050. echo $ECHO_N "(cached) $ECHO_C" >&6
  2051. else
  2052. # Double quotes because CPP needs to be expanded
  2053. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2054. do
  2055. ac_preproc_ok=false
  2056. for ac_c_preproc_warn_flag in '' yes
  2057. do
  2058. # Use a header file that comes with gcc, so configuring glibc
  2059. # with a fresh cross-compiler works.
  2060. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2061. # <limits.h> exists even on freestanding compilers.
  2062. # On the NeXT, cc -E runs the code through the compiler's parser,
  2063. # not just through cpp. "Syntax error" is here to catch this case.
  2064. cat >conftest.$ac_ext <<_ACEOF
  2065. /* confdefs.h. */
  2066. _ACEOF
  2067. cat confdefs.h >>conftest.$ac_ext
  2068. cat >>conftest.$ac_ext <<_ACEOF
  2069. /* end confdefs.h. */
  2070. #ifdef __STDC__
  2071. # include <limits.h>
  2072. #else
  2073. # include <assert.h>
  2074. #endif
  2075. Syntax error
  2076. _ACEOF
  2077. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2078. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2079. ac_status=$?
  2080. grep -v '^ *+' conftest.er1 >conftest.err
  2081. rm -f conftest.er1
  2082. cat conftest.err >&5
  2083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2084. (exit $ac_status); } >/dev/null; then
  2085. if test -s conftest.err; then
  2086. ac_cpp_err=$ac_c_preproc_warn_flag
  2087. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2088. else
  2089. ac_cpp_err=
  2090. fi
  2091. else
  2092. ac_cpp_err=yes
  2093. fi
  2094. if test -z "$ac_cpp_err"; then
  2095. :
  2096. else
  2097. echo "$as_me: failed program was:" >&5
  2098. sed 's/^/| /' conftest.$ac_ext >&5
  2099. # Broken: fails on valid input.
  2100. continue
  2101. fi
  2102. rm -f conftest.err conftest.$ac_ext
  2103. # OK, works on sane cases. Now check whether non-existent headers
  2104. # can be detected and how.
  2105. cat >conftest.$ac_ext <<_ACEOF
  2106. /* confdefs.h. */
  2107. _ACEOF
  2108. cat confdefs.h >>conftest.$ac_ext
  2109. cat >>conftest.$ac_ext <<_ACEOF
  2110. /* end confdefs.h. */
  2111. #include <ac_nonexistent.h>
  2112. _ACEOF
  2113. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2114. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2115. ac_status=$?
  2116. grep -v '^ *+' conftest.er1 >conftest.err
  2117. rm -f conftest.er1
  2118. cat conftest.err >&5
  2119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2120. (exit $ac_status); } >/dev/null; then
  2121. if test -s conftest.err; then
  2122. ac_cpp_err=$ac_c_preproc_warn_flag
  2123. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2124. else
  2125. ac_cpp_err=
  2126. fi
  2127. else
  2128. ac_cpp_err=yes
  2129. fi
  2130. if test -z "$ac_cpp_err"; then
  2131. # Broken: success on invalid input.
  2132. continue
  2133. else
  2134. echo "$as_me: failed program was:" >&5
  2135. sed 's/^/| /' conftest.$ac_ext >&5
  2136. # Passes both tests.
  2137. ac_preproc_ok=:
  2138. break
  2139. fi
  2140. rm -f conftest.err conftest.$ac_ext
  2141. done
  2142. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2143. rm -f conftest.err conftest.$ac_ext
  2144. if $ac_preproc_ok; then
  2145. break
  2146. fi
  2147. done
  2148. ac_cv_prog_CPP=$CPP
  2149. fi
  2150. CPP=$ac_cv_prog_CPP
  2151. else
  2152. ac_cv_prog_CPP=$CPP
  2153. fi
  2154. echo "$as_me:$LINENO: result: $CPP" >&5
  2155. echo "${ECHO_T}$CPP" >&6
  2156. ac_preproc_ok=false
  2157. for ac_c_preproc_warn_flag in '' yes
  2158. do
  2159. # Use a header file that comes with gcc, so configuring glibc
  2160. # with a fresh cross-compiler works.
  2161. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2162. # <limits.h> exists even on freestanding compilers.
  2163. # On the NeXT, cc -E runs the code through the compiler's parser,
  2164. # not just through cpp. "Syntax error" is here to catch this case.
  2165. cat >conftest.$ac_ext <<_ACEOF
  2166. /* confdefs.h. */
  2167. _ACEOF
  2168. cat confdefs.h >>conftest.$ac_ext
  2169. cat >>conftest.$ac_ext <<_ACEOF
  2170. /* end confdefs.h. */
  2171. #ifdef __STDC__
  2172. # include <limits.h>
  2173. #else
  2174. # include <assert.h>
  2175. #endif
  2176. Syntax error
  2177. _ACEOF
  2178. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2179. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2180. ac_status=$?
  2181. grep -v '^ *+' conftest.er1 >conftest.err
  2182. rm -f conftest.er1
  2183. cat conftest.err >&5
  2184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2185. (exit $ac_status); } >/dev/null; then
  2186. if test -s conftest.err; then
  2187. ac_cpp_err=$ac_c_preproc_warn_flag
  2188. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2189. else
  2190. ac_cpp_err=
  2191. fi
  2192. else
  2193. ac_cpp_err=yes
  2194. fi
  2195. if test -z "$ac_cpp_err"; then
  2196. :
  2197. else
  2198. echo "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200. # Broken: fails on valid input.
  2201. continue
  2202. fi
  2203. rm -f conftest.err conftest.$ac_ext
  2204. # OK, works on sane cases. Now check whether non-existent headers
  2205. # can be detected and how.
  2206. cat >conftest.$ac_ext <<_ACEOF
  2207. /* confdefs.h. */
  2208. _ACEOF
  2209. cat confdefs.h >>conftest.$ac_ext
  2210. cat >>conftest.$ac_ext <<_ACEOF
  2211. /* end confdefs.h. */
  2212. #include <ac_nonexistent.h>
  2213. _ACEOF
  2214. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2215. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2216. ac_status=$?
  2217. grep -v '^ *+' conftest.er1 >conftest.err
  2218. rm -f conftest.er1
  2219. cat conftest.err >&5
  2220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2221. (exit $ac_status); } >/dev/null; then
  2222. if test -s conftest.err; then
  2223. ac_cpp_err=$ac_c_preproc_warn_flag
  2224. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2225. else
  2226. ac_cpp_err=
  2227. fi
  2228. else
  2229. ac_cpp_err=yes
  2230. fi
  2231. if test -z "$ac_cpp_err"; then
  2232. # Broken: success on invalid input.
  2233. continue
  2234. else
  2235. echo "$as_me: failed program was:" >&5
  2236. sed 's/^/| /' conftest.$ac_ext >&5
  2237. # Passes both tests.
  2238. ac_preproc_ok=:
  2239. break
  2240. fi
  2241. rm -f conftest.err conftest.$ac_ext
  2242. done
  2243. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2244. rm -f conftest.err conftest.$ac_ext
  2245. if $ac_preproc_ok; then
  2246. :
  2247. else
  2248. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2249. See \`config.log' for more details." >&5
  2250. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2251. See \`config.log' for more details." >&2;}
  2252. { (exit 1); exit 1; }; }
  2253. fi
  2254. ac_ext=c
  2255. ac_cpp='$CPP $CPPFLAGS'
  2256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2259. echo "$as_me:$LINENO: checking for egrep" >&5
  2260. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2261. if test "${ac_cv_prog_egrep+set}" = set; then
  2262. echo $ECHO_N "(cached) $ECHO_C" >&6
  2263. else
  2264. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2265. then ac_cv_prog_egrep='grep -E'
  2266. else ac_cv_prog_egrep='egrep'
  2267. fi
  2268. fi
  2269. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2270. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2271. EGREP=$ac_cv_prog_egrep
  2272. echo "$as_me:$LINENO: checking for AIX" >&5
  2273. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2274. cat >conftest.$ac_ext <<_ACEOF
  2275. /* confdefs.h. */
  2276. _ACEOF
  2277. cat confdefs.h >>conftest.$ac_ext
  2278. cat >>conftest.$ac_ext <<_ACEOF
  2279. /* end confdefs.h. */
  2280. #ifdef _AIX
  2281. yes
  2282. #endif
  2283. _ACEOF
  2284. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2285. $EGREP "yes" >/dev/null 2>&1; then
  2286. echo "$as_me:$LINENO: result: yes" >&5
  2287. echo "${ECHO_T}yes" >&6
  2288. cat >>confdefs.h <<\_ACEOF
  2289. #define _ALL_SOURCE 1
  2290. _ACEOF
  2291. else
  2292. echo "$as_me:$LINENO: result: no" >&5
  2293. echo "${ECHO_T}no" >&6
  2294. fi
  2295. rm -f conftest*
  2296. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2297. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2298. if test "${ac_cv_search_strerror+set}" = set; then
  2299. echo $ECHO_N "(cached) $ECHO_C" >&6
  2300. else
  2301. ac_func_search_save_LIBS=$LIBS
  2302. ac_cv_search_strerror=no
  2303. cat >conftest.$ac_ext <<_ACEOF
  2304. /* confdefs.h. */
  2305. _ACEOF
  2306. cat confdefs.h >>conftest.$ac_ext
  2307. cat >>conftest.$ac_ext <<_ACEOF
  2308. /* end confdefs.h. */
  2309. /* Override any gcc2 internal prototype to avoid an error. */
  2310. #ifdef __cplusplus
  2311. extern "C"
  2312. #endif
  2313. /* We use char because int might match the return type of a gcc2
  2314. builtin and then its argument prototype would still apply. */
  2315. char strerror ();
  2316. int
  2317. main ()
  2318. {
  2319. strerror ();
  2320. ;
  2321. return 0;
  2322. }
  2323. _ACEOF
  2324. rm -f conftest.$ac_objext conftest$ac_exeext
  2325. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2326. (eval $ac_link) 2>conftest.er1
  2327. ac_status=$?
  2328. grep -v '^ *+' conftest.er1 >conftest.err
  2329. rm -f conftest.er1
  2330. cat conftest.err >&5
  2331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2332. (exit $ac_status); } &&
  2333. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2335. (eval $ac_try) 2>&5
  2336. ac_status=$?
  2337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2338. (exit $ac_status); }; } &&
  2339. { ac_try='test -s conftest$ac_exeext'
  2340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2341. (eval $ac_try) 2>&5
  2342. ac_status=$?
  2343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2344. (exit $ac_status); }; }; then
  2345. ac_cv_search_strerror="none required"
  2346. else
  2347. echo "$as_me: failed program was:" >&5
  2348. sed 's/^/| /' conftest.$ac_ext >&5
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. if test "$ac_cv_search_strerror" = no; then
  2353. for ac_lib in cposix; do
  2354. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2355. cat >conftest.$ac_ext <<_ACEOF
  2356. /* confdefs.h. */
  2357. _ACEOF
  2358. cat confdefs.h >>conftest.$ac_ext
  2359. cat >>conftest.$ac_ext <<_ACEOF
  2360. /* end confdefs.h. */
  2361. /* Override any gcc2 internal prototype to avoid an error. */
  2362. #ifdef __cplusplus
  2363. extern "C"
  2364. #endif
  2365. /* We use char because int might match the return type of a gcc2
  2366. builtin and then its argument prototype would still apply. */
  2367. char strerror ();
  2368. int
  2369. main ()
  2370. {
  2371. strerror ();
  2372. ;
  2373. return 0;
  2374. }
  2375. _ACEOF
  2376. rm -f conftest.$ac_objext conftest$ac_exeext
  2377. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2378. (eval $ac_link) 2>conftest.er1
  2379. ac_status=$?
  2380. grep -v '^ *+' conftest.er1 >conftest.err
  2381. rm -f conftest.er1
  2382. cat conftest.err >&5
  2383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2384. (exit $ac_status); } &&
  2385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2387. (eval $ac_try) 2>&5
  2388. ac_status=$?
  2389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2390. (exit $ac_status); }; } &&
  2391. { ac_try='test -s conftest$ac_exeext'
  2392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2393. (eval $ac_try) 2>&5
  2394. ac_status=$?
  2395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2396. (exit $ac_status); }; }; then
  2397. ac_cv_search_strerror="-l$ac_lib"
  2398. break
  2399. else
  2400. echo "$as_me: failed program was:" >&5
  2401. sed 's/^/| /' conftest.$ac_ext >&5
  2402. fi
  2403. rm -f conftest.err conftest.$ac_objext \
  2404. conftest$ac_exeext conftest.$ac_ext
  2405. done
  2406. fi
  2407. LIBS=$ac_func_search_save_LIBS
  2408. fi
  2409. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2410. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2411. if test "$ac_cv_search_strerror" != no; then
  2412. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2413. fi
  2414. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2415. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2416. if test "${ac_cv_header_stdc+set}" = set; then
  2417. echo $ECHO_N "(cached) $ECHO_C" >&6
  2418. else
  2419. cat >conftest.$ac_ext <<_ACEOF
  2420. /* confdefs.h. */
  2421. _ACEOF
  2422. cat confdefs.h >>conftest.$ac_ext
  2423. cat >>conftest.$ac_ext <<_ACEOF
  2424. /* end confdefs.h. */
  2425. #include <stdlib.h>
  2426. #include <stdarg.h>
  2427. #include <string.h>
  2428. #include <float.h>
  2429. int
  2430. main ()
  2431. {
  2432. ;
  2433. return 0;
  2434. }
  2435. _ACEOF
  2436. rm -f conftest.$ac_objext
  2437. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2438. (eval $ac_compile) 2>conftest.er1
  2439. ac_status=$?
  2440. grep -v '^ *+' conftest.er1 >conftest.err
  2441. rm -f conftest.er1
  2442. cat conftest.err >&5
  2443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2444. (exit $ac_status); } &&
  2445. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2447. (eval $ac_try) 2>&5
  2448. ac_status=$?
  2449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2450. (exit $ac_status); }; } &&
  2451. { ac_try='test -s conftest.$ac_objext'
  2452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2453. (eval $ac_try) 2>&5
  2454. ac_status=$?
  2455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2456. (exit $ac_status); }; }; then
  2457. ac_cv_header_stdc=yes
  2458. else
  2459. echo "$as_me: failed program was:" >&5
  2460. sed 's/^/| /' conftest.$ac_ext >&5
  2461. ac_cv_header_stdc=no
  2462. fi
  2463. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2464. if test $ac_cv_header_stdc = yes; then
  2465. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2466. cat >conftest.$ac_ext <<_ACEOF
  2467. /* confdefs.h. */
  2468. _ACEOF
  2469. cat confdefs.h >>conftest.$ac_ext
  2470. cat >>conftest.$ac_ext <<_ACEOF
  2471. /* end confdefs.h. */
  2472. #include <string.h>
  2473. _ACEOF
  2474. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2475. $EGREP "memchr" >/dev/null 2>&1; then
  2476. :
  2477. else
  2478. ac_cv_header_stdc=no
  2479. fi
  2480. rm -f conftest*
  2481. fi
  2482. if test $ac_cv_header_stdc = yes; then
  2483. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2484. cat >conftest.$ac_ext <<_ACEOF
  2485. /* confdefs.h. */
  2486. _ACEOF
  2487. cat confdefs.h >>conftest.$ac_ext
  2488. cat >>conftest.$ac_ext <<_ACEOF
  2489. /* end confdefs.h. */
  2490. #include <stdlib.h>
  2491. _ACEOF
  2492. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2493. $EGREP "free" >/dev/null 2>&1; then
  2494. :
  2495. else
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f conftest*
  2499. fi
  2500. if test $ac_cv_header_stdc = yes; then
  2501. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2502. if test "$cross_compiling" = yes; then
  2503. :
  2504. else
  2505. cat >conftest.$ac_ext <<_ACEOF
  2506. /* confdefs.h. */
  2507. _ACEOF
  2508. cat confdefs.h >>conftest.$ac_ext
  2509. cat >>conftest.$ac_ext <<_ACEOF
  2510. /* end confdefs.h. */
  2511. #include <ctype.h>
  2512. #if ((' ' & 0x0FF) == 0x020)
  2513. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2514. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2515. #else
  2516. # define ISLOWER(c) \
  2517. (('a' <= (c) && (c) <= 'i') \
  2518. || ('j' <= (c) && (c) <= 'r') \
  2519. || ('s' <= (c) && (c) <= 'z'))
  2520. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2521. #endif
  2522. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2523. int
  2524. main ()
  2525. {
  2526. int i;
  2527. for (i = 0; i < 256; i++)
  2528. if (XOR (islower (i), ISLOWER (i))
  2529. || toupper (i) != TOUPPER (i))
  2530. exit(2);
  2531. exit (0);
  2532. }
  2533. _ACEOF
  2534. rm -f conftest$ac_exeext
  2535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2536. (eval $ac_link) 2>&5
  2537. ac_status=$?
  2538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2539. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2541. (eval $ac_try) 2>&5
  2542. ac_status=$?
  2543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2544. (exit $ac_status); }; }; then
  2545. :
  2546. else
  2547. echo "$as_me: program exited with status $ac_status" >&5
  2548. echo "$as_me: failed program was:" >&5
  2549. sed 's/^/| /' conftest.$ac_ext >&5
  2550. ( exit $ac_status )
  2551. ac_cv_header_stdc=no
  2552. fi
  2553. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2554. fi
  2555. fi
  2556. fi
  2557. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2558. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2559. if test $ac_cv_header_stdc = yes; then
  2560. cat >>confdefs.h <<\_ACEOF
  2561. #define STDC_HEADERS 1
  2562. _ACEOF
  2563. fi
  2564. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2565. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2566. inttypes.h stdint.h unistd.h
  2567. do
  2568. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2569. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2570. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2571. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2572. echo $ECHO_N "(cached) $ECHO_C" >&6
  2573. else
  2574. cat >conftest.$ac_ext <<_ACEOF
  2575. /* confdefs.h. */
  2576. _ACEOF
  2577. cat confdefs.h >>conftest.$ac_ext
  2578. cat >>conftest.$ac_ext <<_ACEOF
  2579. /* end confdefs.h. */
  2580. $ac_includes_default
  2581. #include <$ac_header>
  2582. _ACEOF
  2583. rm -f conftest.$ac_objext
  2584. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2585. (eval $ac_compile) 2>conftest.er1
  2586. ac_status=$?
  2587. grep -v '^ *+' conftest.er1 >conftest.err
  2588. rm -f conftest.er1
  2589. cat conftest.err >&5
  2590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2591. (exit $ac_status); } &&
  2592. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2594. (eval $ac_try) 2>&5
  2595. ac_status=$?
  2596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2597. (exit $ac_status); }; } &&
  2598. { ac_try='test -s conftest.$ac_objext'
  2599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2600. (eval $ac_try) 2>&5
  2601. ac_status=$?
  2602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2603. (exit $ac_status); }; }; then
  2604. eval "$as_ac_Header=yes"
  2605. else
  2606. echo "$as_me: failed program was:" >&5
  2607. sed 's/^/| /' conftest.$ac_ext >&5
  2608. eval "$as_ac_Header=no"
  2609. fi
  2610. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2611. fi
  2612. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2613. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2614. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2615. cat >>confdefs.h <<_ACEOF
  2616. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2617. _ACEOF
  2618. fi
  2619. done
  2620. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2621. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2622. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2623. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2624. echo $ECHO_N "(cached) $ECHO_C" >&6
  2625. fi
  2626. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2627. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2628. else
  2629. # Is the header compilable?
  2630. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2631. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2632. cat >conftest.$ac_ext <<_ACEOF
  2633. /* confdefs.h. */
  2634. _ACEOF
  2635. cat confdefs.h >>conftest.$ac_ext
  2636. cat >>conftest.$ac_ext <<_ACEOF
  2637. /* end confdefs.h. */
  2638. $ac_includes_default
  2639. #include <minix/config.h>
  2640. _ACEOF
  2641. rm -f conftest.$ac_objext
  2642. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2643. (eval $ac_compile) 2>conftest.er1
  2644. ac_status=$?
  2645. grep -v '^ *+' conftest.er1 >conftest.err
  2646. rm -f conftest.er1
  2647. cat conftest.err >&5
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); } &&
  2650. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2652. (eval $ac_try) 2>&5
  2653. ac_status=$?
  2654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2655. (exit $ac_status); }; } &&
  2656. { ac_try='test -s conftest.$ac_objext'
  2657. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2658. (eval $ac_try) 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; }; then
  2662. ac_header_compiler=yes
  2663. else
  2664. echo "$as_me: failed program was:" >&5
  2665. sed 's/^/| /' conftest.$ac_ext >&5
  2666. ac_header_compiler=no
  2667. fi
  2668. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2669. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2670. echo "${ECHO_T}$ac_header_compiler" >&6
  2671. # Is the header present?
  2672. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2673. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2674. cat >conftest.$ac_ext <<_ACEOF
  2675. /* confdefs.h. */
  2676. _ACEOF
  2677. cat confdefs.h >>conftest.$ac_ext
  2678. cat >>conftest.$ac_ext <<_ACEOF
  2679. /* end confdefs.h. */
  2680. #include <minix/config.h>
  2681. _ACEOF
  2682. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2683. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2684. ac_status=$?
  2685. grep -v '^ *+' conftest.er1 >conftest.err
  2686. rm -f conftest.er1
  2687. cat conftest.err >&5
  2688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2689. (exit $ac_status); } >/dev/null; then
  2690. if test -s conftest.err; then
  2691. ac_cpp_err=$ac_c_preproc_warn_flag
  2692. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2693. else
  2694. ac_cpp_err=
  2695. fi
  2696. else
  2697. ac_cpp_err=yes
  2698. fi
  2699. if test -z "$ac_cpp_err"; then
  2700. ac_header_preproc=yes
  2701. else
  2702. echo "$as_me: failed program was:" >&5
  2703. sed 's/^/| /' conftest.$ac_ext >&5
  2704. ac_header_preproc=no
  2705. fi
  2706. rm -f conftest.err conftest.$ac_ext
  2707. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2708. echo "${ECHO_T}$ac_header_preproc" >&6
  2709. # So? What about this header?
  2710. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2711. yes:no: )
  2712. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2713. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2714. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2715. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2716. ac_header_preproc=yes
  2717. ;;
  2718. no:yes:* )
  2719. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2720. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2721. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2722. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2723. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2724. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2725. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2726. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2727. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2728. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2729. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2730. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2731. (
  2732. cat <<\_ASBOX
  2733. ## ------------------------------------------ ##
  2734. ## Report this to the AC_PACKAGE_NAME lists. ##
  2735. ## ------------------------------------------ ##
  2736. _ASBOX
  2737. ) |
  2738. sed "s/^/$as_me: WARNING: /" >&2
  2739. ;;
  2740. esac
  2741. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2742. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2743. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2744. echo $ECHO_N "(cached) $ECHO_C" >&6
  2745. else
  2746. ac_cv_header_minix_config_h=$ac_header_preproc
  2747. fi
  2748. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2749. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2750. fi
  2751. if test $ac_cv_header_minix_config_h = yes; then
  2752. MINIX=yes
  2753. else
  2754. MINIX=
  2755. fi
  2756. if test "$MINIX" = yes; then
  2757. cat >>confdefs.h <<\_ACEOF
  2758. #define _POSIX_SOURCE 1
  2759. _ACEOF
  2760. cat >>confdefs.h <<\_ACEOF
  2761. #define _POSIX_1_SOURCE 2
  2762. _ACEOF
  2763. cat >>confdefs.h <<\_ACEOF
  2764. #define _MINIX 1
  2765. _ACEOF
  2766. fi
  2767. # Speedup compile
  2768. if test -z "$no_pipe"
  2769. then
  2770. if test -n "$GCC"
  2771. then
  2772. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2773. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2774. if test "${egg_cv_var_ccpipe+set}" = set; then
  2775. echo $ECHO_N "(cached) $ECHO_C" >&6
  2776. else
  2777. ac_old_CC="$CC"
  2778. CC="$CC -pipe"
  2779. cat >conftest.$ac_ext <<_ACEOF
  2780. /* confdefs.h. */
  2781. _ACEOF
  2782. cat confdefs.h >>conftest.$ac_ext
  2783. cat >>conftest.$ac_ext <<_ACEOF
  2784. /* end confdefs.h. */
  2785. int
  2786. main ()
  2787. {
  2788. ;
  2789. return 0;
  2790. }
  2791. _ACEOF
  2792. rm -f conftest.$ac_objext
  2793. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2794. (eval $ac_compile) 2>conftest.er1
  2795. ac_status=$?
  2796. grep -v '^ *+' conftest.er1 >conftest.err
  2797. rm -f conftest.er1
  2798. cat conftest.err >&5
  2799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2800. (exit $ac_status); } &&
  2801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2803. (eval $ac_try) 2>&5
  2804. ac_status=$?
  2805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2806. (exit $ac_status); }; } &&
  2807. { ac_try='test -s conftest.$ac_objext'
  2808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2809. (eval $ac_try) 2>&5
  2810. ac_status=$?
  2811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); }; }; then
  2813. egg_cv_var_ccpipe="yes"
  2814. else
  2815. echo "$as_me: failed program was:" >&5
  2816. sed 's/^/| /' conftest.$ac_ext >&5
  2817. egg_cv_var_ccpipe="no"
  2818. fi
  2819. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2820. CC="$ac_old_CC"
  2821. fi
  2822. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2823. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2824. if test "$egg_cv_var_ccpipe" = "yes"
  2825. then
  2826. CC="$CC -pipe"
  2827. fi
  2828. fi
  2829. fi
  2830. # Create static binaries
  2831. if test -z "$no_static"
  2832. then
  2833. if test -n "$GCC"
  2834. then
  2835. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2836. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2837. if test "${egg_cv_var_ccstatic+set}" = set; then
  2838. echo $ECHO_N "(cached) $ECHO_C" >&6
  2839. else
  2840. ac_old_CC="$CC"
  2841. CC="$CC -static"
  2842. cat >conftest.$ac_ext <<_ACEOF
  2843. /* confdefs.h. */
  2844. _ACEOF
  2845. cat confdefs.h >>conftest.$ac_ext
  2846. cat >>conftest.$ac_ext <<_ACEOF
  2847. /* end confdefs.h. */
  2848. int
  2849. main ()
  2850. {
  2851. ;
  2852. return 0;
  2853. }
  2854. _ACEOF
  2855. rm -f conftest.$ac_objext
  2856. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2857. (eval $ac_compile) 2>conftest.er1
  2858. ac_status=$?
  2859. grep -v '^ *+' conftest.er1 >conftest.err
  2860. rm -f conftest.er1
  2861. cat conftest.err >&5
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); } &&
  2864. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2866. (eval $ac_try) 2>&5
  2867. ac_status=$?
  2868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2869. (exit $ac_status); }; } &&
  2870. { ac_try='test -s conftest.$ac_objext'
  2871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2872. (eval $ac_try) 2>&5
  2873. ac_status=$?
  2874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2875. (exit $ac_status); }; }; then
  2876. egg_cv_var_ccstatic="yes"
  2877. else
  2878. echo "$as_me: failed program was:" >&5
  2879. sed 's/^/| /' conftest.$ac_ext >&5
  2880. egg_cv_var_ccstatic="no"
  2881. fi
  2882. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2883. CC="$ac_old_CC"
  2884. fi
  2885. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2886. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2887. if test "$egg_cv_var_ccstatic" = "yes"
  2888. then
  2889. CC="$CC -static"
  2890. else
  2891. cat << 'EOF' >&2
  2892. configure: error:
  2893. Your C compiler does not support -static.
  2894. This compile flag is required for the botpack.
  2895. EOF
  2896. exit 1
  2897. fi
  2898. fi
  2899. fi
  2900. # Checks for programs
  2901. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2902. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2903. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2904. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2905. echo $ECHO_N "(cached) $ECHO_C" >&6
  2906. else
  2907. cat >conftest.make <<\_ACEOF
  2908. all:
  2909. @echo 'ac_maketemp="$(MAKE)"'
  2910. _ACEOF
  2911. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2912. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2913. if test -n "$ac_maketemp"; then
  2914. eval ac_cv_prog_make_${ac_make}_set=yes
  2915. else
  2916. eval ac_cv_prog_make_${ac_make}_set=no
  2917. fi
  2918. rm -f conftest.make
  2919. fi
  2920. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2921. echo "$as_me:$LINENO: result: yes" >&5
  2922. echo "${ECHO_T}yes" >&6
  2923. SET_MAKE=
  2924. else
  2925. echo "$as_me:$LINENO: result: no" >&5
  2926. echo "${ECHO_T}no" >&6
  2927. SET_MAKE="MAKE=${MAKE-make}"
  2928. fi
  2929. cat << 'EOF' > conftest.head
  2930. a
  2931. b
  2932. c
  2933. EOF
  2934. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2935. do
  2936. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2937. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2938. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2939. echo $ECHO_N "(cached) $ECHO_C" >&6
  2940. else
  2941. if test -n "$HEAD_1"
  2942. then
  2943. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2944. else
  2945. if test "`cat conftest.head | $ac_prog`" = "a";
  2946. then
  2947. echo "$as_me:$LINENO: result: yes" >&5
  2948. echo "${ECHO_T}yes" >&6
  2949. ac_cv_prog_HEAD_1=$ac_prog
  2950. else
  2951. echo "$as_me:$LINENO: result: no" >&5
  2952. echo "${ECHO_T}no" >&6
  2953. fi
  2954. fi
  2955. fi
  2956. test -n "$ac_cv_prog_HEAD_1" && break
  2957. done
  2958. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2959. then
  2960. cat << 'EOF' >&2
  2961. configure: error:
  2962. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2963. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2964. EOF
  2965. exit 1
  2966. fi
  2967. rm -f conftest.head
  2968. HEAD_1=$ac_cv_prog_HEAD_1
  2969. # Extract the first word of "strip", so it can be a program name with args.
  2970. set dummy strip; ac_word=$2
  2971. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2972. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2973. if test "${ac_cv_prog_STRIP+set}" = set; then
  2974. echo $ECHO_N "(cached) $ECHO_C" >&6
  2975. else
  2976. if test -n "$STRIP"; then
  2977. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2978. else
  2979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2980. for as_dir in $PATH
  2981. do
  2982. IFS=$as_save_IFS
  2983. test -z "$as_dir" && as_dir=.
  2984. for ac_exec_ext in '' $ac_executable_extensions; do
  2985. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2986. ac_cv_prog_STRIP="strip"
  2987. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2988. break 2
  2989. fi
  2990. done
  2991. done
  2992. fi
  2993. fi
  2994. STRIP=$ac_cv_prog_STRIP
  2995. if test -n "$STRIP"; then
  2996. echo "$as_me:$LINENO: result: $STRIP" >&5
  2997. echo "${ECHO_T}$STRIP" >&6
  2998. else
  2999. echo "$as_me:$LINENO: result: no" >&5
  3000. echo "${ECHO_T}no" >&6
  3001. fi
  3002. if test "${STRIP-x}" = "x"
  3003. then
  3004. STRIP=touch
  3005. fi
  3006. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3007. for ac_prog in gawk mawk nawk awk
  3008. do
  3009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3010. set dummy $ac_prog; ac_word=$2
  3011. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3013. if test "${ac_cv_prog_AWK+set}" = set; then
  3014. echo $ECHO_N "(cached) $ECHO_C" >&6
  3015. else
  3016. if test -n "$AWK"; then
  3017. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3018. else
  3019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3020. for as_dir in $PATH
  3021. do
  3022. IFS=$as_save_IFS
  3023. test -z "$as_dir" && as_dir=.
  3024. for ac_exec_ext in '' $ac_executable_extensions; do
  3025. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3026. ac_cv_prog_AWK="$ac_prog"
  3027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3028. break 2
  3029. fi
  3030. done
  3031. done
  3032. fi
  3033. fi
  3034. AWK=$ac_cv_prog_AWK
  3035. if test -n "$AWK"; then
  3036. echo "$as_me:$LINENO: result: $AWK" >&5
  3037. echo "${ECHO_T}$AWK" >&6
  3038. else
  3039. echo "$as_me:$LINENO: result: no" >&5
  3040. echo "${ECHO_T}no" >&6
  3041. fi
  3042. test -n "$AWK" && break
  3043. done
  3044. if test "${AWK-x}" = "x"
  3045. then
  3046. cat << 'EOF' >&2
  3047. configure: error:
  3048. This system seems to lack a working 'awk' command.
  3049. A working 'awk' command is required to compile Eggdrop.
  3050. EOF
  3051. exit 1
  3052. fi
  3053. # basename is needed for Tcl library and header checks
  3054. # Extract the first word of "basename", so it can be a program name with args.
  3055. set dummy basename; ac_word=$2
  3056. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3057. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3058. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3059. echo $ECHO_N "(cached) $ECHO_C" >&6
  3060. else
  3061. if test -n "$BASENAME"; then
  3062. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3063. else
  3064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3065. for as_dir in $PATH
  3066. do
  3067. IFS=$as_save_IFS
  3068. test -z "$as_dir" && as_dir=.
  3069. for ac_exec_ext in '' $ac_executable_extensions; do
  3070. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3071. ac_cv_prog_BASENAME="basename"
  3072. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3073. break 2
  3074. fi
  3075. done
  3076. done
  3077. fi
  3078. fi
  3079. BASENAME=$ac_cv_prog_BASENAME
  3080. if test -n "$BASENAME"; then
  3081. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3082. echo "${ECHO_T}$BASENAME" >&6
  3083. else
  3084. echo "$as_me:$LINENO: result: no" >&5
  3085. echo "${ECHO_T}no" >&6
  3086. fi
  3087. if test "${BASENAME-x}" = "x"
  3088. then
  3089. cat << 'EOF' >&2
  3090. configure: error:
  3091. This system seems to lack a working 'basename' command.
  3092. A working 'basename' command is required to compile Eggdrop.
  3093. EOF
  3094. exit 1
  3095. fi
  3096. # Extract the first word of "uname", so it can be a program name with args.
  3097. set dummy uname; ac_word=$2
  3098. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3099. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3100. if test "${ac_cv_prog_UNAME+set}" = set; then
  3101. echo $ECHO_N "(cached) $ECHO_C" >&6
  3102. else
  3103. if test -n "$UNAME"; then
  3104. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3105. else
  3106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3107. for as_dir in $PATH
  3108. do
  3109. IFS=$as_save_IFS
  3110. test -z "$as_dir" && as_dir=.
  3111. for ac_exec_ext in '' $ac_executable_extensions; do
  3112. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3113. ac_cv_prog_UNAME="uname"
  3114. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3115. break 2
  3116. fi
  3117. done
  3118. done
  3119. fi
  3120. fi
  3121. UNAME=$ac_cv_prog_UNAME
  3122. if test -n "$UNAME"; then
  3123. echo "$as_me:$LINENO: result: $UNAME" >&5
  3124. echo "${ECHO_T}$UNAME" >&6
  3125. else
  3126. echo "$as_me:$LINENO: result: no" >&5
  3127. echo "${ECHO_T}no" >&6
  3128. fi
  3129. # Test the os and set the module linking settings
  3130. LINUX=no
  3131. IRIX=no
  3132. SUNOS=no
  3133. HPUX=no
  3134. EGG_CYGWIN=no
  3135. NEED_DL=1
  3136. echo "$as_me:$LINENO: checking system type" >&5
  3137. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3138. if test "${egg_cv_var_system_type+set}" = set; then
  3139. echo $ECHO_N "(cached) $ECHO_C" >&6
  3140. else
  3141. egg_cv_var_system_type=`$UNAME -s`
  3142. fi
  3143. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3144. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3145. echo "$as_me:$LINENO: checking system release" >&5
  3146. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3147. if test "${egg_cv_var_system_release+set}" = set; then
  3148. echo $ECHO_N "(cached) $ECHO_C" >&6
  3149. else
  3150. egg_cv_var_system_release=`$UNAME -r`
  3151. fi
  3152. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3153. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3154. case "$egg_cv_var_system_type" in
  3155. BSD/OS)
  3156. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3157. 2)
  3158. NEED_DL=0
  3159. ;;
  3160. 3)
  3161. cat >>confdefs.h <<\_ACEOF
  3162. #define MODULES_OK 1
  3163. _ACEOF
  3164. ;;
  3165. *)
  3166. CFLAGS="$CFLAGS -Wall"
  3167. cat >>confdefs.h <<\_ACEOF
  3168. #define MODULES_OK 1
  3169. _ACEOF
  3170. ;;
  3171. esac
  3172. ;;
  3173. CYGWI*)
  3174. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3175. 1.*)
  3176. NEED_DL=0
  3177. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3178. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3179. WIN32FLAGS=
  3180. cat >conftest.$ac_ext <<_ACEOF
  3181. /* confdefs.h. */
  3182. _ACEOF
  3183. cat confdefs.h >>conftest.$ac_ext
  3184. cat >>conftest.$ac_ext <<_ACEOF
  3185. /* end confdefs.h. */
  3186. int
  3187. main ()
  3188. {
  3189. #ifndef WIN32
  3190. # ifndef _WIN32
  3191. # error WIN32 or _WIN32 not defined
  3192. # endif
  3193. #endif
  3194. ;
  3195. return 0;
  3196. }
  3197. _ACEOF
  3198. rm -f conftest.$ac_objext
  3199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3200. (eval $ac_compile) 2>conftest.er1
  3201. ac_status=$?
  3202. grep -v '^ *+' conftest.er1 >conftest.err
  3203. rm -f conftest.er1
  3204. cat conftest.err >&5
  3205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3206. (exit $ac_status); } &&
  3207. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3209. (eval $ac_try) 2>&5
  3210. ac_status=$?
  3211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3212. (exit $ac_status); }; } &&
  3213. { ac_try='test -s conftest.$ac_objext'
  3214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3215. (eval $ac_try) 2>&5
  3216. ac_status=$?
  3217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3218. (exit $ac_status); }; }; then
  3219. echo "$as_me:$LINENO: result: present by default" >&5
  3220. echo "${ECHO_T}present by default" >&6
  3221. else
  3222. echo "$as_me: failed program was:" >&5
  3223. sed 's/^/| /' conftest.$ac_ext >&5
  3224. ac_compile_save="$ac_compile"
  3225. save_CC="$CC"
  3226. ac_compile="$ac_compile -mwin32"
  3227. CC="$CC -mwin32"
  3228. cat >conftest.$ac_ext <<_ACEOF
  3229. /* confdefs.h. */
  3230. _ACEOF
  3231. cat confdefs.h >>conftest.$ac_ext
  3232. cat >>conftest.$ac_ext <<_ACEOF
  3233. /* end confdefs.h. */
  3234. int
  3235. main ()
  3236. {
  3237. #ifndef WIN32
  3238. # ifndef _WIN32
  3239. # error WIN32 or _WIN32 not defined
  3240. # endif
  3241. #endif
  3242. ;
  3243. return 0;
  3244. }
  3245. _ACEOF
  3246. rm -f conftest.$ac_objext
  3247. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3248. (eval $ac_compile) 2>conftest.er1
  3249. ac_status=$?
  3250. grep -v '^ *+' conftest.er1 >conftest.err
  3251. rm -f conftest.er1
  3252. cat conftest.err >&5
  3253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3254. (exit $ac_status); } &&
  3255. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3257. (eval $ac_try) 2>&5
  3258. ac_status=$?
  3259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3260. (exit $ac_status); }; } &&
  3261. { ac_try='test -s conftest.$ac_objext'
  3262. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3263. (eval $ac_try) 2>&5
  3264. ac_status=$?
  3265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3266. (exit $ac_status); }; }; then
  3267. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3268. echo "${ECHO_T}found via -mwin32" >&6
  3269. ac_compile="$ac_compile_save"
  3270. CC="$save_CC"
  3271. WIN32FLAGS="-mwin32"
  3272. else
  3273. echo "$as_me: failed program was:" >&5
  3274. sed 's/^/| /' conftest.$ac_ext >&5
  3275. ac_compile="$ac_compile_save"
  3276. CC="$save_CC"
  3277. echo "$as_me:$LINENO: result: not found" >&5
  3278. echo "${ECHO_T}not found" >&6
  3279. fi
  3280. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3281. fi
  3282. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3283. CC="$CC $WIN32FLAGS"
  3284. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3285. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3286. if test -r /usr/lib/binmode.o
  3287. then
  3288. echo "$as_me:$LINENO: result: yes" >&5
  3289. echo "${ECHO_T}yes" >&6
  3290. LIBS="$LIBS /usr/lib/binmode.o"
  3291. else
  3292. echo "$as_me:$LINENO: result: no" >&5
  3293. echo "${ECHO_T}no" >&6
  3294. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3295. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3296. fi
  3297. cat >>confdefs.h <<\_ACEOF
  3298. #define MODULES_OK 1
  3299. _ACEOF
  3300. ;;
  3301. *)
  3302. NEED_DL=0
  3303. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3304. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3305. ;;
  3306. esac
  3307. EGG_CYGWIN=yes
  3308. cat >>confdefs.h <<\_ACEOF
  3309. #define CYGWIN_HACKS 1
  3310. _ACEOF
  3311. ;;
  3312. HP-UX)
  3313. HPUX=yes
  3314. NEED_DL=0
  3315. cat >>confdefs.h <<\_ACEOF
  3316. #define MODULES_OK 1
  3317. _ACEOF
  3318. cat >>confdefs.h <<\_ACEOF
  3319. #define HPUX_HACKS 1
  3320. _ACEOF
  3321. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3322. then
  3323. cat >>confdefs.h <<\_ACEOF
  3324. #define HPUX10_HACKS 1
  3325. _ACEOF
  3326. fi
  3327. ;;
  3328. dell)
  3329. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3330. echo "${ECHO_T}Dell SVR4" >&6
  3331. NEED_DL=0
  3332. ;;
  3333. IRIX)
  3334. IRIX=yes
  3335. NEED_DL=0
  3336. ;;
  3337. Ultrix)
  3338. NEED_DL=0
  3339. SHELL=/bin/sh5
  3340. ;;
  3341. SINIX*)
  3342. NEED_DL=0
  3343. ;;
  3344. BeOS)
  3345. NEED_DL=0
  3346. ;;
  3347. Linux)
  3348. LINUX=yes
  3349. CFLAGS="$CFLAGS -Wall"
  3350. cat >>confdefs.h <<\_ACEOF
  3351. #define MODULES_OK 1
  3352. _ACEOF
  3353. ;;
  3354. Lynx)
  3355. NEED_DL=0
  3356. ;;
  3357. QNX)
  3358. NEED_DL=0
  3359. ;;
  3360. OSF1)
  3361. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3362. V*)
  3363. # FIXME: we should check this in a separate test
  3364. # Digital OSF uses an ancient version of gawk
  3365. if test "$AWK" = "gawk"
  3366. then
  3367. AWK=awk
  3368. fi
  3369. cat >>confdefs.h <<\_ACEOF
  3370. #define MODULES_OK 1
  3371. _ACEOF
  3372. ;;
  3373. 1.0|1.1|1.2)
  3374. cat >>confdefs.h <<\_ACEOF
  3375. #define MODULES_OK 1
  3376. _ACEOF
  3377. cat >>confdefs.h <<\_ACEOF
  3378. #define OSF1_HACKS 1
  3379. _ACEOF
  3380. ;;
  3381. 1.*)
  3382. cat >>confdefs.h <<\_ACEOF
  3383. #define MODULES_OK 1
  3384. _ACEOF
  3385. cat >>confdefs.h <<\_ACEOF
  3386. #define OSF1_HACKS 1
  3387. _ACEOF
  3388. ;;
  3389. *)
  3390. NEED_DL=0
  3391. ;;
  3392. esac
  3393. cat >>confdefs.h <<\_ACEOF
  3394. #define STOP_UAC 1
  3395. _ACEOF
  3396. cat >>confdefs.h <<\_ACEOF
  3397. #define BROKEN_SNPRINTF 1
  3398. _ACEOF
  3399. ;;
  3400. SunOS)
  3401. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3402. then
  3403. # SunOS 4
  3404. SUNOS=yes
  3405. cat >>confdefs.h <<\_ACEOF
  3406. #define DLOPEN_1 1
  3407. _ACEOF
  3408. fi
  3409. cat >>confdefs.h <<\_ACEOF
  3410. #define MODULES_OK 1
  3411. _ACEOF
  3412. ;;
  3413. *BSD)
  3414. # FreeBSD/OpenBSD/NetBSD
  3415. cat >>confdefs.h <<\_ACEOF
  3416. #define MODULES_OK 1
  3417. _ACEOF
  3418. ;;
  3419. *)
  3420. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3421. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3422. if test -r /mach
  3423. then
  3424. echo "$as_me:$LINENO: result: yes" >&5
  3425. echo "${ECHO_T}yes" >&6
  3426. NEED_DL=0
  3427. cat >>confdefs.h <<\_ACEOF
  3428. #define BORGCUBES 1
  3429. _ACEOF
  3430. else
  3431. echo "$as_me:$LINENO: result: no" >&5
  3432. echo "${ECHO_T}no" >&6
  3433. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3434. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3435. if test -r /cmds
  3436. then
  3437. echo "$as_me:$LINENO: result: yes" >&5
  3438. echo "${ECHO_T}yes" >&6
  3439. NEED_DL=0
  3440. else
  3441. echo "$as_me:$LINENO: result: no" >&5
  3442. echo "${ECHO_T}no" >&6
  3443. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3444. echo "${ECHO_T}Something unknown!" >&6
  3445. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3446. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3447. NEED_DL=0
  3448. fi
  3449. fi
  3450. ;;
  3451. esac
  3452. # Checks for system libraries
  3453. # FIXME: this needs to be fixed so that it works on IRIX
  3454. if test "$IRIX" = "yes"
  3455. then
  3456. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3457. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3458. else
  3459. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3460. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3461. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3462. echo $ECHO_N "(cached) $ECHO_C" >&6
  3463. else
  3464. ac_check_lib_save_LIBS=$LIBS
  3465. LIBS="-lsocket $LIBS"
  3466. cat >conftest.$ac_ext <<_ACEOF
  3467. /* confdefs.h. */
  3468. _ACEOF
  3469. cat confdefs.h >>conftest.$ac_ext
  3470. cat >>conftest.$ac_ext <<_ACEOF
  3471. /* end confdefs.h. */
  3472. /* Override any gcc2 internal prototype to avoid an error. */
  3473. #ifdef __cplusplus
  3474. extern "C"
  3475. #endif
  3476. /* We use char because int might match the return type of a gcc2
  3477. builtin and then its argument prototype would still apply. */
  3478. char socket ();
  3479. int
  3480. main ()
  3481. {
  3482. socket ();
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. rm -f conftest.$ac_objext conftest$ac_exeext
  3488. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3489. (eval $ac_link) 2>conftest.er1
  3490. ac_status=$?
  3491. grep -v '^ *+' conftest.er1 >conftest.err
  3492. rm -f conftest.er1
  3493. cat conftest.err >&5
  3494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3495. (exit $ac_status); } &&
  3496. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3498. (eval $ac_try) 2>&5
  3499. ac_status=$?
  3500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3501. (exit $ac_status); }; } &&
  3502. { ac_try='test -s conftest$ac_exeext'
  3503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3504. (eval $ac_try) 2>&5
  3505. ac_status=$?
  3506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3507. (exit $ac_status); }; }; then
  3508. ac_cv_lib_socket_socket=yes
  3509. else
  3510. echo "$as_me: failed program was:" >&5
  3511. sed 's/^/| /' conftest.$ac_ext >&5
  3512. ac_cv_lib_socket_socket=no
  3513. fi
  3514. rm -f conftest.err conftest.$ac_objext \
  3515. conftest$ac_exeext conftest.$ac_ext
  3516. LIBS=$ac_check_lib_save_LIBS
  3517. fi
  3518. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3519. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3520. if test $ac_cv_lib_socket_socket = yes; then
  3521. cat >>confdefs.h <<_ACEOF
  3522. #define HAVE_LIBSOCKET 1
  3523. _ACEOF
  3524. LIBS="-lsocket $LIBS"
  3525. fi
  3526. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3527. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3528. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3529. echo $ECHO_N "(cached) $ECHO_C" >&6
  3530. else
  3531. ac_check_lib_save_LIBS=$LIBS
  3532. LIBS="-lnsl $LIBS"
  3533. cat >conftest.$ac_ext <<_ACEOF
  3534. /* confdefs.h. */
  3535. _ACEOF
  3536. cat confdefs.h >>conftest.$ac_ext
  3537. cat >>conftest.$ac_ext <<_ACEOF
  3538. /* end confdefs.h. */
  3539. /* Override any gcc2 internal prototype to avoid an error. */
  3540. #ifdef __cplusplus
  3541. extern "C"
  3542. #endif
  3543. /* We use char because int might match the return type of a gcc2
  3544. builtin and then its argument prototype would still apply. */
  3545. char connect ();
  3546. int
  3547. main ()
  3548. {
  3549. connect ();
  3550. ;
  3551. return 0;
  3552. }
  3553. _ACEOF
  3554. rm -f conftest.$ac_objext conftest$ac_exeext
  3555. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3556. (eval $ac_link) 2>conftest.er1
  3557. ac_status=$?
  3558. grep -v '^ *+' conftest.er1 >conftest.err
  3559. rm -f conftest.er1
  3560. cat conftest.err >&5
  3561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3562. (exit $ac_status); } &&
  3563. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3565. (eval $ac_try) 2>&5
  3566. ac_status=$?
  3567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3568. (exit $ac_status); }; } &&
  3569. { ac_try='test -s conftest$ac_exeext'
  3570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3571. (eval $ac_try) 2>&5
  3572. ac_status=$?
  3573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3574. (exit $ac_status); }; }; then
  3575. ac_cv_lib_nsl_connect=yes
  3576. else
  3577. echo "$as_me: failed program was:" >&5
  3578. sed 's/^/| /' conftest.$ac_ext >&5
  3579. ac_cv_lib_nsl_connect=no
  3580. fi
  3581. rm -f conftest.err conftest.$ac_objext \
  3582. conftest$ac_exeext conftest.$ac_ext
  3583. LIBS=$ac_check_lib_save_LIBS
  3584. fi
  3585. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3586. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3587. if test $ac_cv_lib_nsl_connect = yes; then
  3588. cat >>confdefs.h <<_ACEOF
  3589. #define HAVE_LIBNSL 1
  3590. _ACEOF
  3591. LIBS="-lnsl $LIBS"
  3592. fi
  3593. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3594. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3595. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3596. echo $ECHO_N "(cached) $ECHO_C" >&6
  3597. else
  3598. ac_check_lib_save_LIBS=$LIBS
  3599. LIBS="-ldns $LIBS"
  3600. cat >conftest.$ac_ext <<_ACEOF
  3601. /* confdefs.h. */
  3602. _ACEOF
  3603. cat confdefs.h >>conftest.$ac_ext
  3604. cat >>conftest.$ac_ext <<_ACEOF
  3605. /* end confdefs.h. */
  3606. /* Override any gcc2 internal prototype to avoid an error. */
  3607. #ifdef __cplusplus
  3608. extern "C"
  3609. #endif
  3610. /* We use char because int might match the return type of a gcc2
  3611. builtin and then its argument prototype would still apply. */
  3612. char gethostbyname ();
  3613. int
  3614. main ()
  3615. {
  3616. gethostbyname ();
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. rm -f conftest.$ac_objext conftest$ac_exeext
  3622. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3623. (eval $ac_link) 2>conftest.er1
  3624. ac_status=$?
  3625. grep -v '^ *+' conftest.er1 >conftest.err
  3626. rm -f conftest.er1
  3627. cat conftest.err >&5
  3628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3629. (exit $ac_status); } &&
  3630. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3632. (eval $ac_try) 2>&5
  3633. ac_status=$?
  3634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3635. (exit $ac_status); }; } &&
  3636. { ac_try='test -s conftest$ac_exeext'
  3637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3638. (eval $ac_try) 2>&5
  3639. ac_status=$?
  3640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3641. (exit $ac_status); }; }; then
  3642. ac_cv_lib_dns_gethostbyname=yes
  3643. else
  3644. echo "$as_me: failed program was:" >&5
  3645. sed 's/^/| /' conftest.$ac_ext >&5
  3646. ac_cv_lib_dns_gethostbyname=no
  3647. fi
  3648. rm -f conftest.err conftest.$ac_objext \
  3649. conftest$ac_exeext conftest.$ac_ext
  3650. LIBS=$ac_check_lib_save_LIBS
  3651. fi
  3652. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3653. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3654. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3655. cat >>confdefs.h <<_ACEOF
  3656. #define HAVE_LIBDNS 1
  3657. _ACEOF
  3658. LIBS="-ldns $LIBS"
  3659. fi
  3660. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3661. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3662. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3663. echo $ECHO_N "(cached) $ECHO_C" >&6
  3664. else
  3665. ac_check_lib_save_LIBS=$LIBS
  3666. LIBS="-lz $LIBS"
  3667. cat >conftest.$ac_ext <<_ACEOF
  3668. /* confdefs.h. */
  3669. _ACEOF
  3670. cat confdefs.h >>conftest.$ac_ext
  3671. cat >>conftest.$ac_ext <<_ACEOF
  3672. /* end confdefs.h. */
  3673. /* Override any gcc2 internal prototype to avoid an error. */
  3674. #ifdef __cplusplus
  3675. extern "C"
  3676. #endif
  3677. /* We use char because int might match the return type of a gcc2
  3678. builtin and then its argument prototype would still apply. */
  3679. char gzopen ();
  3680. int
  3681. main ()
  3682. {
  3683. gzopen ();
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. rm -f conftest.$ac_objext conftest$ac_exeext
  3689. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3690. (eval $ac_link) 2>conftest.er1
  3691. ac_status=$?
  3692. grep -v '^ *+' conftest.er1 >conftest.err
  3693. rm -f conftest.er1
  3694. cat conftest.err >&5
  3695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3696. (exit $ac_status); } &&
  3697. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3699. (eval $ac_try) 2>&5
  3700. ac_status=$?
  3701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3702. (exit $ac_status); }; } &&
  3703. { ac_try='test -s conftest$ac_exeext'
  3704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3705. (eval $ac_try) 2>&5
  3706. ac_status=$?
  3707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3708. (exit $ac_status); }; }; then
  3709. ac_cv_lib_z_gzopen=yes
  3710. else
  3711. echo "$as_me: failed program was:" >&5
  3712. sed 's/^/| /' conftest.$ac_ext >&5
  3713. ac_cv_lib_z_gzopen=no
  3714. fi
  3715. rm -f conftest.err conftest.$ac_objext \
  3716. conftest$ac_exeext conftest.$ac_ext
  3717. LIBS=$ac_check_lib_save_LIBS
  3718. fi
  3719. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3720. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3721. if test $ac_cv_lib_z_gzopen = yes; then
  3722. ZLIB="-lz"
  3723. fi
  3724. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3725. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3726. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3727. echo $ECHO_N "(cached) $ECHO_C" >&6
  3728. else
  3729. ac_check_lib_save_LIBS=$LIBS
  3730. LIBS="-lssl -lcrypto $LIBS"
  3731. cat >conftest.$ac_ext <<_ACEOF
  3732. /* confdefs.h. */
  3733. _ACEOF
  3734. cat confdefs.h >>conftest.$ac_ext
  3735. cat >>conftest.$ac_ext <<_ACEOF
  3736. /* end confdefs.h. */
  3737. /* Override any gcc2 internal prototype to avoid an error. */
  3738. #ifdef __cplusplus
  3739. extern "C"
  3740. #endif
  3741. /* We use char because int might match the return type of a gcc2
  3742. builtin and then its argument prototype would still apply. */
  3743. char SSL_accept ();
  3744. int
  3745. main ()
  3746. {
  3747. SSL_accept ();
  3748. ;
  3749. return 0;
  3750. }
  3751. _ACEOF
  3752. rm -f conftest.$ac_objext conftest$ac_exeext
  3753. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3754. (eval $ac_link) 2>conftest.er1
  3755. ac_status=$?
  3756. grep -v '^ *+' conftest.er1 >conftest.err
  3757. rm -f conftest.er1
  3758. cat conftest.err >&5
  3759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3760. (exit $ac_status); } &&
  3761. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3763. (eval $ac_try) 2>&5
  3764. ac_status=$?
  3765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3766. (exit $ac_status); }; } &&
  3767. { ac_try='test -s conftest$ac_exeext'
  3768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3769. (eval $ac_try) 2>&5
  3770. ac_status=$?
  3771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3772. (exit $ac_status); }; }; then
  3773. ac_cv_lib_ssl_SSL_accept=yes
  3774. else
  3775. echo "$as_me: failed program was:" >&5
  3776. sed 's/^/| /' conftest.$ac_ext >&5
  3777. ac_cv_lib_ssl_SSL_accept=no
  3778. fi
  3779. rm -f conftest.err conftest.$ac_objext \
  3780. conftest$ac_exeext conftest.$ac_ext
  3781. LIBS=$ac_check_lib_save_LIBS
  3782. fi
  3783. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3784. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3785. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3786. SSL="-lssl -lcrypto"
  3787. else
  3788. SSL=""
  3789. fi
  3790. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3791. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3792. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3793. echo $ECHO_N "(cached) $ECHO_C" >&6
  3794. else
  3795. ac_check_lib_save_LIBS=$LIBS
  3796. LIBS="-ldl $LIBS"
  3797. cat >conftest.$ac_ext <<_ACEOF
  3798. /* confdefs.h. */
  3799. _ACEOF
  3800. cat confdefs.h >>conftest.$ac_ext
  3801. cat >>conftest.$ac_ext <<_ACEOF
  3802. /* end confdefs.h. */
  3803. /* Override any gcc2 internal prototype to avoid an error. */
  3804. #ifdef __cplusplus
  3805. extern "C"
  3806. #endif
  3807. /* We use char because int might match the return type of a gcc2
  3808. builtin and then its argument prototype would still apply. */
  3809. char dlopen ();
  3810. int
  3811. main ()
  3812. {
  3813. dlopen ();
  3814. ;
  3815. return 0;
  3816. }
  3817. _ACEOF
  3818. rm -f conftest.$ac_objext conftest$ac_exeext
  3819. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3820. (eval $ac_link) 2>conftest.er1
  3821. ac_status=$?
  3822. grep -v '^ *+' conftest.er1 >conftest.err
  3823. rm -f conftest.er1
  3824. cat conftest.err >&5
  3825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3826. (exit $ac_status); } &&
  3827. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3829. (eval $ac_try) 2>&5
  3830. ac_status=$?
  3831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3832. (exit $ac_status); }; } &&
  3833. { ac_try='test -s conftest$ac_exeext'
  3834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3835. (eval $ac_try) 2>&5
  3836. ac_status=$?
  3837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3838. (exit $ac_status); }; }; then
  3839. ac_cv_lib_dl_dlopen=yes
  3840. else
  3841. echo "$as_me: failed program was:" >&5
  3842. sed 's/^/| /' conftest.$ac_ext >&5
  3843. ac_cv_lib_dl_dlopen=no
  3844. fi
  3845. rm -f conftest.err conftest.$ac_objext \
  3846. conftest$ac_exeext conftest.$ac_ext
  3847. LIBS=$ac_check_lib_save_LIBS
  3848. fi
  3849. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3850. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3851. if test $ac_cv_lib_dl_dlopen = yes; then
  3852. cat >>confdefs.h <<_ACEOF
  3853. #define HAVE_LIBDL 1
  3854. _ACEOF
  3855. LIBS="-ldl $LIBS"
  3856. fi
  3857. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3858. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3859. if test "${ac_cv_lib_m_tan+set}" = set; then
  3860. echo $ECHO_N "(cached) $ECHO_C" >&6
  3861. else
  3862. ac_check_lib_save_LIBS=$LIBS
  3863. LIBS="-lm $LIBS"
  3864. cat >conftest.$ac_ext <<_ACEOF
  3865. /* confdefs.h. */
  3866. _ACEOF
  3867. cat confdefs.h >>conftest.$ac_ext
  3868. cat >>conftest.$ac_ext <<_ACEOF
  3869. /* end confdefs.h. */
  3870. /* Override any gcc2 internal prototype to avoid an error. */
  3871. #ifdef __cplusplus
  3872. extern "C"
  3873. #endif
  3874. /* We use char because int might match the return type of a gcc2
  3875. builtin and then its argument prototype would still apply. */
  3876. char tan ();
  3877. int
  3878. main ()
  3879. {
  3880. tan ();
  3881. ;
  3882. return 0;
  3883. }
  3884. _ACEOF
  3885. rm -f conftest.$ac_objext conftest$ac_exeext
  3886. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3887. (eval $ac_link) 2>conftest.er1
  3888. ac_status=$?
  3889. grep -v '^ *+' conftest.er1 >conftest.err
  3890. rm -f conftest.er1
  3891. cat conftest.err >&5
  3892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3893. (exit $ac_status); } &&
  3894. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3896. (eval $ac_try) 2>&5
  3897. ac_status=$?
  3898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3899. (exit $ac_status); }; } &&
  3900. { ac_try='test -s conftest$ac_exeext'
  3901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3902. (eval $ac_try) 2>&5
  3903. ac_status=$?
  3904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3905. (exit $ac_status); }; }; then
  3906. ac_cv_lib_m_tan=yes
  3907. else
  3908. echo "$as_me: failed program was:" >&5
  3909. sed 's/^/| /' conftest.$ac_ext >&5
  3910. ac_cv_lib_m_tan=no
  3911. fi
  3912. rm -f conftest.err conftest.$ac_objext \
  3913. conftest$ac_exeext conftest.$ac_ext
  3914. LIBS=$ac_check_lib_save_LIBS
  3915. fi
  3916. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  3917. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  3918. if test $ac_cv_lib_m_tan = yes; then
  3919. EGG_MATH_LIB="-lm"
  3920. fi
  3921. # This is needed for Tcl libraries compiled with thread support
  3922. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  3923. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3924. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  3925. echo $ECHO_N "(cached) $ECHO_C" >&6
  3926. else
  3927. ac_check_lib_save_LIBS=$LIBS
  3928. LIBS="-lpthread $LIBS"
  3929. cat >conftest.$ac_ext <<_ACEOF
  3930. /* confdefs.h. */
  3931. _ACEOF
  3932. cat confdefs.h >>conftest.$ac_ext
  3933. cat >>conftest.$ac_ext <<_ACEOF
  3934. /* end confdefs.h. */
  3935. /* Override any gcc2 internal prototype to avoid an error. */
  3936. #ifdef __cplusplus
  3937. extern "C"
  3938. #endif
  3939. /* We use char because int might match the return type of a gcc2
  3940. builtin and then its argument prototype would still apply. */
  3941. char pthread_mutex_init ();
  3942. int
  3943. main ()
  3944. {
  3945. pthread_mutex_init ();
  3946. ;
  3947. return 0;
  3948. }
  3949. _ACEOF
  3950. rm -f conftest.$ac_objext conftest$ac_exeext
  3951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3952. (eval $ac_link) 2>conftest.er1
  3953. ac_status=$?
  3954. grep -v '^ *+' conftest.er1 >conftest.err
  3955. rm -f conftest.er1
  3956. cat conftest.err >&5
  3957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3958. (exit $ac_status); } &&
  3959. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3961. (eval $ac_try) 2>&5
  3962. ac_status=$?
  3963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3964. (exit $ac_status); }; } &&
  3965. { ac_try='test -s conftest$ac_exeext'
  3966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3967. (eval $ac_try) 2>&5
  3968. ac_status=$?
  3969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3970. (exit $ac_status); }; }; then
  3971. ac_cv_lib_pthread_pthread_mutex_init=yes
  3972. else
  3973. echo "$as_me: failed program was:" >&5
  3974. sed 's/^/| /' conftest.$ac_ext >&5
  3975. ac_cv_lib_pthread_pthread_mutex_init=no
  3976. fi
  3977. rm -f conftest.err conftest.$ac_objext \
  3978. conftest$ac_exeext conftest.$ac_ext
  3979. LIBS=$ac_check_lib_save_LIBS
  3980. fi
  3981. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  3982. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  3983. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  3984. ac_cv_lib_pthread_pthread_mutex_init=yes
  3985. ac_cv_lib_pthread="-lpthread"
  3986. else
  3987. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  3988. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3989. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  3990. echo $ECHO_N "(cached) $ECHO_C" >&6
  3991. else
  3992. ac_check_lib_save_LIBS=$LIBS
  3993. LIBS="-lpthread $LIBS"
  3994. cat >conftest.$ac_ext <<_ACEOF
  3995. /* confdefs.h. */
  3996. _ACEOF
  3997. cat confdefs.h >>conftest.$ac_ext
  3998. cat >>conftest.$ac_ext <<_ACEOF
  3999. /* end confdefs.h. */
  4000. /* Override any gcc2 internal prototype to avoid an error. */
  4001. #ifdef __cplusplus
  4002. extern "C"
  4003. #endif
  4004. /* We use char because int might match the return type of a gcc2
  4005. builtin and then its argument prototype would still apply. */
  4006. char __pthread_mutex_init ();
  4007. int
  4008. main ()
  4009. {
  4010. __pthread_mutex_init ();
  4011. ;
  4012. return 0;
  4013. }
  4014. _ACEOF
  4015. rm -f conftest.$ac_objext conftest$ac_exeext
  4016. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4017. (eval $ac_link) 2>conftest.er1
  4018. ac_status=$?
  4019. grep -v '^ *+' conftest.er1 >conftest.err
  4020. rm -f conftest.er1
  4021. cat conftest.err >&5
  4022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4023. (exit $ac_status); } &&
  4024. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4030. { ac_try='test -s conftest$ac_exeext'
  4031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4032. (eval $ac_try) 2>&5
  4033. ac_status=$?
  4034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4035. (exit $ac_status); }; }; then
  4036. ac_cv_lib_pthread___pthread_mutex_init=yes
  4037. else
  4038. echo "$as_me: failed program was:" >&5
  4039. sed 's/^/| /' conftest.$ac_ext >&5
  4040. ac_cv_lib_pthread___pthread_mutex_init=no
  4041. fi
  4042. rm -f conftest.err conftest.$ac_objext \
  4043. conftest$ac_exeext conftest.$ac_ext
  4044. LIBS=$ac_check_lib_save_LIBS
  4045. fi
  4046. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4047. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4048. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4049. ac_cv_lib_pthread_pthread_mutex_init=yes
  4050. ac_cv_lib_pthread="-lpthread"
  4051. else
  4052. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4053. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4054. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4055. echo $ECHO_N "(cached) $ECHO_C" >&6
  4056. else
  4057. ac_check_lib_save_LIBS=$LIBS
  4058. LIBS="-lpthreads $LIBS"
  4059. cat >conftest.$ac_ext <<_ACEOF
  4060. /* confdefs.h. */
  4061. _ACEOF
  4062. cat confdefs.h >>conftest.$ac_ext
  4063. cat >>conftest.$ac_ext <<_ACEOF
  4064. /* end confdefs.h. */
  4065. /* Override any gcc2 internal prototype to avoid an error. */
  4066. #ifdef __cplusplus
  4067. extern "C"
  4068. #endif
  4069. /* We use char because int might match the return type of a gcc2
  4070. builtin and then its argument prototype would still apply. */
  4071. char pthread_mutex_init ();
  4072. int
  4073. main ()
  4074. {
  4075. pthread_mutex_init ();
  4076. ;
  4077. return 0;
  4078. }
  4079. _ACEOF
  4080. rm -f conftest.$ac_objext conftest$ac_exeext
  4081. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4082. (eval $ac_link) 2>conftest.er1
  4083. ac_status=$?
  4084. grep -v '^ *+' conftest.er1 >conftest.err
  4085. rm -f conftest.er1
  4086. cat conftest.err >&5
  4087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4088. (exit $ac_status); } &&
  4089. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4091. (eval $ac_try) 2>&5
  4092. ac_status=$?
  4093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4094. (exit $ac_status); }; } &&
  4095. { ac_try='test -s conftest$ac_exeext'
  4096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4097. (eval $ac_try) 2>&5
  4098. ac_status=$?
  4099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. (exit $ac_status); }; }; then
  4101. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4102. else
  4103. echo "$as_me: failed program was:" >&5
  4104. sed 's/^/| /' conftest.$ac_ext >&5
  4105. ac_cv_lib_pthreads_pthread_mutex_init=no
  4106. fi
  4107. rm -f conftest.err conftest.$ac_objext \
  4108. conftest$ac_exeext conftest.$ac_ext
  4109. LIBS=$ac_check_lib_save_LIBS
  4110. fi
  4111. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4112. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4113. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4114. ac_cv_lib_pthread_pthread_mutex_init=yes
  4115. ac_cv_lib_pthread="-lpthreads"
  4116. else
  4117. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4118. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4119. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4120. echo $ECHO_N "(cached) $ECHO_C" >&6
  4121. else
  4122. cat >conftest.$ac_ext <<_ACEOF
  4123. /* confdefs.h. */
  4124. _ACEOF
  4125. cat confdefs.h >>conftest.$ac_ext
  4126. cat >>conftest.$ac_ext <<_ACEOF
  4127. /* end confdefs.h. */
  4128. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4129. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4130. #define pthread_mutex_init innocuous_pthread_mutex_init
  4131. /* System header to define __stub macros and hopefully few prototypes,
  4132. which can conflict with char pthread_mutex_init (); below.
  4133. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4134. <limits.h> exists even on freestanding compilers. */
  4135. #ifdef __STDC__
  4136. # include <limits.h>
  4137. #else
  4138. # include <assert.h>
  4139. #endif
  4140. #undef pthread_mutex_init
  4141. /* Override any gcc2 internal prototype to avoid an error. */
  4142. #ifdef __cplusplus
  4143. extern "C"
  4144. {
  4145. #endif
  4146. /* We use char because int might match the return type of a gcc2
  4147. builtin and then its argument prototype would still apply. */
  4148. char pthread_mutex_init ();
  4149. /* The GNU C library defines this for functions which it implements
  4150. to always fail with ENOSYS. Some functions are actually named
  4151. something starting with __ and the normal name is an alias. */
  4152. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4153. choke me
  4154. #else
  4155. char (*f) () = pthread_mutex_init;
  4156. #endif
  4157. #ifdef __cplusplus
  4158. }
  4159. #endif
  4160. int
  4161. main ()
  4162. {
  4163. return f != pthread_mutex_init;
  4164. ;
  4165. return 0;
  4166. }
  4167. _ACEOF
  4168. rm -f conftest.$ac_objext conftest$ac_exeext
  4169. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4170. (eval $ac_link) 2>conftest.er1
  4171. ac_status=$?
  4172. grep -v '^ *+' conftest.er1 >conftest.err
  4173. rm -f conftest.er1
  4174. cat conftest.err >&5
  4175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4176. (exit $ac_status); } &&
  4177. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4179. (eval $ac_try) 2>&5
  4180. ac_status=$?
  4181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. (exit $ac_status); }; } &&
  4183. { ac_try='test -s conftest$ac_exeext'
  4184. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4185. (eval $ac_try) 2>&5
  4186. ac_status=$?
  4187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4188. (exit $ac_status); }; }; then
  4189. ac_cv_func_pthread_mutex_init=yes
  4190. else
  4191. echo "$as_me: failed program was:" >&5
  4192. sed 's/^/| /' conftest.$ac_ext >&5
  4193. ac_cv_func_pthread_mutex_init=no
  4194. fi
  4195. rm -f conftest.err conftest.$ac_objext \
  4196. conftest$ac_exeext conftest.$ac_ext
  4197. fi
  4198. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4199. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4200. if test $ac_cv_func_pthread_mutex_init = yes; then
  4201. ac_cv_lib_pthread_pthread_mutex_init=yes
  4202. ac_cv_lib_pthread=""
  4203. else
  4204. ac_cv_lib_pthread_pthread_mutex_init=no
  4205. fi
  4206. fi
  4207. fi
  4208. fi
  4209. if test "$SUNOS" = "yes"
  4210. then
  4211. # For suns without yp or something like that
  4212. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4213. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4214. if test "${ac_cv_lib_dl_main+set}" = set; then
  4215. echo $ECHO_N "(cached) $ECHO_C" >&6
  4216. else
  4217. ac_check_lib_save_LIBS=$LIBS
  4218. LIBS="-ldl $LIBS"
  4219. cat >conftest.$ac_ext <<_ACEOF
  4220. /* confdefs.h. */
  4221. _ACEOF
  4222. cat confdefs.h >>conftest.$ac_ext
  4223. cat >>conftest.$ac_ext <<_ACEOF
  4224. /* end confdefs.h. */
  4225. int
  4226. main ()
  4227. {
  4228. main ();
  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_dl_main=yes
  4255. else
  4256. echo "$as_me: failed program was:" >&5
  4257. sed 's/^/| /' conftest.$ac_ext >&5
  4258. ac_cv_lib_dl_main=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_dl_main" >&5
  4265. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4266. if test $ac_cv_lib_dl_main = yes; then
  4267. cat >>confdefs.h <<_ACEOF
  4268. #define HAVE_LIBDL 1
  4269. _ACEOF
  4270. LIBS="-ldl $LIBS"
  4271. fi
  4272. else
  4273. if test "$HPUX" = "yes"
  4274. then
  4275. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4276. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4277. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4278. echo $ECHO_N "(cached) $ECHO_C" >&6
  4279. else
  4280. ac_check_lib_save_LIBS=$LIBS
  4281. LIBS="-ldld $LIBS"
  4282. cat >conftest.$ac_ext <<_ACEOF
  4283. /* confdefs.h. */
  4284. _ACEOF
  4285. cat confdefs.h >>conftest.$ac_ext
  4286. cat >>conftest.$ac_ext <<_ACEOF
  4287. /* end confdefs.h. */
  4288. /* Override any gcc2 internal prototype to avoid an error. */
  4289. #ifdef __cplusplus
  4290. extern "C"
  4291. #endif
  4292. /* We use char because int might match the return type of a gcc2
  4293. builtin and then its argument prototype would still apply. */
  4294. char shl_load ();
  4295. int
  4296. main ()
  4297. {
  4298. shl_load ();
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. rm -f conftest.$ac_objext conftest$ac_exeext
  4304. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4305. (eval $ac_link) 2>conftest.er1
  4306. ac_status=$?
  4307. grep -v '^ *+' conftest.er1 >conftest.err
  4308. rm -f conftest.er1
  4309. cat conftest.err >&5
  4310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4311. (exit $ac_status); } &&
  4312. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4314. (eval $ac_try) 2>&5
  4315. ac_status=$?
  4316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4317. (exit $ac_status); }; } &&
  4318. { ac_try='test -s conftest$ac_exeext'
  4319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4320. (eval $ac_try) 2>&5
  4321. ac_status=$?
  4322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4323. (exit $ac_status); }; }; then
  4324. ac_cv_lib_dld_shl_load=yes
  4325. else
  4326. echo "$as_me: failed program was:" >&5
  4327. sed 's/^/| /' conftest.$ac_ext >&5
  4328. ac_cv_lib_dld_shl_load=no
  4329. fi
  4330. rm -f conftest.err conftest.$ac_objext \
  4331. conftest$ac_exeext conftest.$ac_ext
  4332. LIBS=$ac_check_lib_save_LIBS
  4333. fi
  4334. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4335. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4336. if test $ac_cv_lib_dld_shl_load = yes; then
  4337. cat >>confdefs.h <<_ACEOF
  4338. #define HAVE_LIBDLD 1
  4339. _ACEOF
  4340. LIBS="-ldld $LIBS"
  4341. fi
  4342. fi
  4343. fi
  4344. fi
  4345. for ac_header in stdlib.h unistd.h
  4346. do
  4347. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4348. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4349. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4350. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4351. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4352. echo $ECHO_N "(cached) $ECHO_C" >&6
  4353. fi
  4354. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4355. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4356. else
  4357. # Is the header compilable?
  4358. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4359. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4360. cat >conftest.$ac_ext <<_ACEOF
  4361. /* confdefs.h. */
  4362. _ACEOF
  4363. cat confdefs.h >>conftest.$ac_ext
  4364. cat >>conftest.$ac_ext <<_ACEOF
  4365. /* end confdefs.h. */
  4366. $ac_includes_default
  4367. #include <$ac_header>
  4368. _ACEOF
  4369. rm -f conftest.$ac_objext
  4370. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4371. (eval $ac_compile) 2>conftest.er1
  4372. ac_status=$?
  4373. grep -v '^ *+' conftest.er1 >conftest.err
  4374. rm -f conftest.er1
  4375. cat conftest.err >&5
  4376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4377. (exit $ac_status); } &&
  4378. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4379. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4380. (eval $ac_try) 2>&5
  4381. ac_status=$?
  4382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383. (exit $ac_status); }; } &&
  4384. { ac_try='test -s conftest.$ac_objext'
  4385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4386. (eval $ac_try) 2>&5
  4387. ac_status=$?
  4388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4389. (exit $ac_status); }; }; then
  4390. ac_header_compiler=yes
  4391. else
  4392. echo "$as_me: failed program was:" >&5
  4393. sed 's/^/| /' conftest.$ac_ext >&5
  4394. ac_header_compiler=no
  4395. fi
  4396. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4397. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4398. echo "${ECHO_T}$ac_header_compiler" >&6
  4399. # Is the header present?
  4400. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4401. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4402. cat >conftest.$ac_ext <<_ACEOF
  4403. /* confdefs.h. */
  4404. _ACEOF
  4405. cat confdefs.h >>conftest.$ac_ext
  4406. cat >>conftest.$ac_ext <<_ACEOF
  4407. /* end confdefs.h. */
  4408. #include <$ac_header>
  4409. _ACEOF
  4410. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4411. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4412. ac_status=$?
  4413. grep -v '^ *+' conftest.er1 >conftest.err
  4414. rm -f conftest.er1
  4415. cat conftest.err >&5
  4416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4417. (exit $ac_status); } >/dev/null; then
  4418. if test -s conftest.err; then
  4419. ac_cpp_err=$ac_c_preproc_warn_flag
  4420. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4421. else
  4422. ac_cpp_err=
  4423. fi
  4424. else
  4425. ac_cpp_err=yes
  4426. fi
  4427. if test -z "$ac_cpp_err"; then
  4428. ac_header_preproc=yes
  4429. else
  4430. echo "$as_me: failed program was:" >&5
  4431. sed 's/^/| /' conftest.$ac_ext >&5
  4432. ac_header_preproc=no
  4433. fi
  4434. rm -f conftest.err conftest.$ac_ext
  4435. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4436. echo "${ECHO_T}$ac_header_preproc" >&6
  4437. # So? What about this header?
  4438. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4439. yes:no: )
  4440. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4441. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4442. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4443. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4444. ac_header_preproc=yes
  4445. ;;
  4446. no:yes:* )
  4447. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4448. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4449. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4450. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4451. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4452. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4453. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4454. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4455. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4456. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4457. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4458. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4459. (
  4460. cat <<\_ASBOX
  4461. ## ------------------------------------------ ##
  4462. ## Report this to the AC_PACKAGE_NAME lists. ##
  4463. ## ------------------------------------------ ##
  4464. _ASBOX
  4465. ) |
  4466. sed "s/^/$as_me: WARNING: /" >&2
  4467. ;;
  4468. esac
  4469. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4470. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4471. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4472. echo $ECHO_N "(cached) $ECHO_C" >&6
  4473. else
  4474. eval "$as_ac_Header=\$ac_header_preproc"
  4475. fi
  4476. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4477. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4478. fi
  4479. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4480. cat >>confdefs.h <<_ACEOF
  4481. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4482. _ACEOF
  4483. fi
  4484. done
  4485. for ac_func in getpagesize
  4486. do
  4487. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4488. echo "$as_me:$LINENO: checking for $ac_func" >&5
  4489. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  4490. if eval "test \"\${$as_ac_var+set}\" = set"; then
  4491. echo $ECHO_N "(cached) $ECHO_C" >&6
  4492. else
  4493. cat >conftest.$ac_ext <<_ACEOF
  4494. /* confdefs.h. */
  4495. _ACEOF
  4496. cat confdefs.h >>conftest.$ac_ext
  4497. cat >>conftest.$ac_ext <<_ACEOF
  4498. /* end confdefs.h. */
  4499. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4500. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4501. #define $ac_func innocuous_$ac_func
  4502. /* System header to define __stub macros and hopefully few prototypes,
  4503. which can conflict with char $ac_func (); below.
  4504. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4505. <limits.h> exists even on freestanding compilers. */
  4506. #ifdef __STDC__
  4507. # include <limits.h>
  4508. #else
  4509. # include <assert.h>
  4510. #endif
  4511. #undef $ac_func
  4512. /* Override any gcc2 internal prototype to avoid an error. */
  4513. #ifdef __cplusplus
  4514. extern "C"
  4515. {
  4516. #endif
  4517. /* We use char because int might match the return type of a gcc2
  4518. builtin and then its argument prototype would still apply. */
  4519. char $ac_func ();
  4520. /* The GNU C library defines this for functions which it implements
  4521. to always fail with ENOSYS. Some functions are actually named
  4522. something starting with __ and the normal name is an alias. */
  4523. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4524. choke me
  4525. #else
  4526. char (*f) () = $ac_func;
  4527. #endif
  4528. #ifdef __cplusplus
  4529. }
  4530. #endif
  4531. int
  4532. main ()
  4533. {
  4534. return f != $ac_func;
  4535. ;
  4536. return 0;
  4537. }
  4538. _ACEOF
  4539. rm -f conftest.$ac_objext conftest$ac_exeext
  4540. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4541. (eval $ac_link) 2>conftest.er1
  4542. ac_status=$?
  4543. grep -v '^ *+' conftest.er1 >conftest.err
  4544. rm -f conftest.er1
  4545. cat conftest.err >&5
  4546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4547. (exit $ac_status); } &&
  4548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4550. (eval $ac_try) 2>&5
  4551. ac_status=$?
  4552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4553. (exit $ac_status); }; } &&
  4554. { ac_try='test -s conftest$ac_exeext'
  4555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4556. (eval $ac_try) 2>&5
  4557. ac_status=$?
  4558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4559. (exit $ac_status); }; }; then
  4560. eval "$as_ac_var=yes"
  4561. else
  4562. echo "$as_me: failed program was:" >&5
  4563. sed 's/^/| /' conftest.$ac_ext >&5
  4564. eval "$as_ac_var=no"
  4565. fi
  4566. rm -f conftest.err conftest.$ac_objext \
  4567. conftest$ac_exeext conftest.$ac_ext
  4568. fi
  4569. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  4570. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  4571. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4572. cat >>confdefs.h <<_ACEOF
  4573. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4574. _ACEOF
  4575. fi
  4576. done
  4577. echo "$as_me:$LINENO: checking for working mmap" >&5
  4578. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  4579. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  4580. echo $ECHO_N "(cached) $ECHO_C" >&6
  4581. else
  4582. if test "$cross_compiling" = yes; then
  4583. ac_cv_func_mmap_fixed_mapped=no
  4584. else
  4585. cat >conftest.$ac_ext <<_ACEOF
  4586. /* confdefs.h. */
  4587. _ACEOF
  4588. cat confdefs.h >>conftest.$ac_ext
  4589. cat >>conftest.$ac_ext <<_ACEOF
  4590. /* end confdefs.h. */
  4591. $ac_includes_default
  4592. /* malloc might have been renamed as rpl_malloc. */
  4593. #undef malloc
  4594. /* Thanks to Mike Haertel and Jim Avera for this test.
  4595. Here is a matrix of mmap possibilities:
  4596. mmap private not fixed
  4597. mmap private fixed at somewhere currently unmapped
  4598. mmap private fixed at somewhere already mapped
  4599. mmap shared not fixed
  4600. mmap shared fixed at somewhere currently unmapped
  4601. mmap shared fixed at somewhere already mapped
  4602. For private mappings, we should verify that changes cannot be read()
  4603. back from the file, nor mmap's back from the file at a different
  4604. address. (There have been systems where private was not correctly
  4605. implemented like the infamous i386 svr4.0, and systems where the
  4606. VM page cache was not coherent with the file system buffer cache
  4607. like early versions of FreeBSD and possibly contemporary NetBSD.)
  4608. For shared mappings, we should conversely verify that changes get
  4609. propagated back to all the places they're supposed to be.
  4610. Grep wants private fixed already mapped.
  4611. The main things grep needs to know about mmap are:
  4612. * does it exist and is it safe to write into the mmap'd area
  4613. * how to use it (BSD variants) */
  4614. #include <fcntl.h>
  4615. #include <sys/mman.h>
  4616. #if !STDC_HEADERS && !HAVE_STDLIB_H
  4617. char *malloc ();
  4618. #endif
  4619. /* This mess was copied from the GNU getpagesize.h. */
  4620. #if !HAVE_GETPAGESIZE
  4621. /* Assume that all systems that can run configure have sys/param.h. */
  4622. # if !HAVE_SYS_PARAM_H
  4623. # define HAVE_SYS_PARAM_H 1
  4624. # endif
  4625. # ifdef _SC_PAGESIZE
  4626. # define getpagesize() sysconf(_SC_PAGESIZE)
  4627. # else /* no _SC_PAGESIZE */
  4628. # if HAVE_SYS_PARAM_H
  4629. # include <sys/param.h>
  4630. # ifdef EXEC_PAGESIZE
  4631. # define getpagesize() EXEC_PAGESIZE
  4632. # else /* no EXEC_PAGESIZE */
  4633. # ifdef NBPG
  4634. # define getpagesize() NBPG * CLSIZE
  4635. # ifndef CLSIZE
  4636. # define CLSIZE 1
  4637. # endif /* no CLSIZE */
  4638. # else /* no NBPG */
  4639. # ifdef NBPC
  4640. # define getpagesize() NBPC
  4641. # else /* no NBPC */
  4642. # ifdef PAGESIZE
  4643. # define getpagesize() PAGESIZE
  4644. # endif /* PAGESIZE */
  4645. # endif /* no NBPC */
  4646. # endif /* no NBPG */
  4647. # endif /* no EXEC_PAGESIZE */
  4648. # else /* no HAVE_SYS_PARAM_H */
  4649. # define getpagesize() 8192 /* punt totally */
  4650. # endif /* no HAVE_SYS_PARAM_H */
  4651. # endif /* no _SC_PAGESIZE */
  4652. #endif /* no HAVE_GETPAGESIZE */
  4653. int
  4654. main ()
  4655. {
  4656. char *data, *data2, *data3;
  4657. int i, pagesize;
  4658. int fd;
  4659. pagesize = getpagesize ();
  4660. /* First, make a file with some known garbage in it. */
  4661. data = (char *) malloc (pagesize);
  4662. if (!data)
  4663. exit (1);
  4664. for (i = 0; i < pagesize; ++i)
  4665. *(data + i) = rand ();
  4666. umask (0);
  4667. fd = creat ("conftest.mmap", 0600);
  4668. if (fd < 0)
  4669. exit (1);
  4670. if (write (fd, data, pagesize) != pagesize)
  4671. exit (1);
  4672. close (fd);
  4673. /* Next, try to mmap the file at a fixed address which already has
  4674. something else allocated at it. If we can, also make sure that
  4675. we see the same garbage. */
  4676. fd = open ("conftest.mmap", O_RDWR);
  4677. if (fd < 0)
  4678. exit (1);
  4679. data2 = (char *) malloc (2 * pagesize);
  4680. if (!data2)
  4681. exit (1);
  4682. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  4683. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  4684. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  4685. exit (1);
  4686. for (i = 0; i < pagesize; ++i)
  4687. if (*(data + i) != *(data2 + i))
  4688. exit (1);
  4689. /* Finally, make sure that changes to the mapped area do not
  4690. percolate back to the file as seen by read(). (This is a bug on
  4691. some variants of i386 svr4.0.) */
  4692. for (i = 0; i < pagesize; ++i)
  4693. *(data2 + i) = *(data2 + i) + 1;
  4694. data3 = (char *) malloc (pagesize);
  4695. if (!data3)
  4696. exit (1);
  4697. if (read (fd, data3, pagesize) != pagesize)
  4698. exit (1);
  4699. for (i = 0; i < pagesize; ++i)
  4700. if (*(data + i) != *(data3 + i))
  4701. exit (1);
  4702. close (fd);
  4703. exit (0);
  4704. }
  4705. _ACEOF
  4706. rm -f conftest$ac_exeext
  4707. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4708. (eval $ac_link) 2>&5
  4709. ac_status=$?
  4710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4713. (eval $ac_try) 2>&5
  4714. ac_status=$?
  4715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4716. (exit $ac_status); }; }; then
  4717. ac_cv_func_mmap_fixed_mapped=yes
  4718. else
  4719. echo "$as_me: program exited with status $ac_status" >&5
  4720. echo "$as_me: failed program was:" >&5
  4721. sed 's/^/| /' conftest.$ac_ext >&5
  4722. ( exit $ac_status )
  4723. ac_cv_func_mmap_fixed_mapped=no
  4724. fi
  4725. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4726. fi
  4727. fi
  4728. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  4729. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  4730. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  4731. cat >>confdefs.h <<\_ACEOF
  4732. #define HAVE_MMAP 1
  4733. _ACEOF
  4734. fi
  4735. rm -f conftest.mmap
  4736. # Checks for header files
  4737. ac_header_dirent=no
  4738. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4739. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4740. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4741. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4742. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4743. echo $ECHO_N "(cached) $ECHO_C" >&6
  4744. else
  4745. cat >conftest.$ac_ext <<_ACEOF
  4746. /* confdefs.h. */
  4747. _ACEOF
  4748. cat confdefs.h >>conftest.$ac_ext
  4749. cat >>conftest.$ac_ext <<_ACEOF
  4750. /* end confdefs.h. */
  4751. #include <sys/types.h>
  4752. #include <$ac_hdr>
  4753. int
  4754. main ()
  4755. {
  4756. if ((DIR *) 0)
  4757. return 0;
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. rm -f conftest.$ac_objext
  4763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4764. (eval $ac_compile) 2>conftest.er1
  4765. ac_status=$?
  4766. grep -v '^ *+' conftest.er1 >conftest.err
  4767. rm -f conftest.er1
  4768. cat conftest.err >&5
  4769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4770. (exit $ac_status); } &&
  4771. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4773. (eval $ac_try) 2>&5
  4774. ac_status=$?
  4775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4776. (exit $ac_status); }; } &&
  4777. { ac_try='test -s conftest.$ac_objext'
  4778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4779. (eval $ac_try) 2>&5
  4780. ac_status=$?
  4781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4782. (exit $ac_status); }; }; then
  4783. eval "$as_ac_Header=yes"
  4784. else
  4785. echo "$as_me: failed program was:" >&5
  4786. sed 's/^/| /' conftest.$ac_ext >&5
  4787. eval "$as_ac_Header=no"
  4788. fi
  4789. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4790. fi
  4791. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4792. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4793. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4794. cat >>confdefs.h <<_ACEOF
  4795. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4796. _ACEOF
  4797. ac_header_dirent=$ac_hdr; break
  4798. fi
  4799. done
  4800. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4801. if test $ac_header_dirent = dirent.h; then
  4802. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4803. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4804. if test "${ac_cv_search_opendir+set}" = set; then
  4805. echo $ECHO_N "(cached) $ECHO_C" >&6
  4806. else
  4807. ac_func_search_save_LIBS=$LIBS
  4808. ac_cv_search_opendir=no
  4809. cat >conftest.$ac_ext <<_ACEOF
  4810. /* confdefs.h. */
  4811. _ACEOF
  4812. cat confdefs.h >>conftest.$ac_ext
  4813. cat >>conftest.$ac_ext <<_ACEOF
  4814. /* end confdefs.h. */
  4815. /* Override any gcc2 internal prototype to avoid an error. */
  4816. #ifdef __cplusplus
  4817. extern "C"
  4818. #endif
  4819. /* We use char because int might match the return type of a gcc2
  4820. builtin and then its argument prototype would still apply. */
  4821. char opendir ();
  4822. int
  4823. main ()
  4824. {
  4825. opendir ();
  4826. ;
  4827. return 0;
  4828. }
  4829. _ACEOF
  4830. rm -f conftest.$ac_objext conftest$ac_exeext
  4831. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4832. (eval $ac_link) 2>conftest.er1
  4833. ac_status=$?
  4834. grep -v '^ *+' conftest.er1 >conftest.err
  4835. rm -f conftest.er1
  4836. cat conftest.err >&5
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); } &&
  4839. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4841. (eval $ac_try) 2>&5
  4842. ac_status=$?
  4843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844. (exit $ac_status); }; } &&
  4845. { ac_try='test -s conftest$ac_exeext'
  4846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4847. (eval $ac_try) 2>&5
  4848. ac_status=$?
  4849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4850. (exit $ac_status); }; }; then
  4851. ac_cv_search_opendir="none required"
  4852. else
  4853. echo "$as_me: failed program was:" >&5
  4854. sed 's/^/| /' conftest.$ac_ext >&5
  4855. fi
  4856. rm -f conftest.err conftest.$ac_objext \
  4857. conftest$ac_exeext conftest.$ac_ext
  4858. if test "$ac_cv_search_opendir" = no; then
  4859. for ac_lib in dir; do
  4860. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4861. cat >conftest.$ac_ext <<_ACEOF
  4862. /* confdefs.h. */
  4863. _ACEOF
  4864. cat confdefs.h >>conftest.$ac_ext
  4865. cat >>conftest.$ac_ext <<_ACEOF
  4866. /* end confdefs.h. */
  4867. /* Override any gcc2 internal prototype to avoid an error. */
  4868. #ifdef __cplusplus
  4869. extern "C"
  4870. #endif
  4871. /* We use char because int might match the return type of a gcc2
  4872. builtin and then its argument prototype would still apply. */
  4873. char opendir ();
  4874. int
  4875. main ()
  4876. {
  4877. opendir ();
  4878. ;
  4879. return 0;
  4880. }
  4881. _ACEOF
  4882. rm -f conftest.$ac_objext conftest$ac_exeext
  4883. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4884. (eval $ac_link) 2>conftest.er1
  4885. ac_status=$?
  4886. grep -v '^ *+' conftest.er1 >conftest.err
  4887. rm -f conftest.er1
  4888. cat conftest.err >&5
  4889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4890. (exit $ac_status); } &&
  4891. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4893. (eval $ac_try) 2>&5
  4894. ac_status=$?
  4895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4896. (exit $ac_status); }; } &&
  4897. { ac_try='test -s conftest$ac_exeext'
  4898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4899. (eval $ac_try) 2>&5
  4900. ac_status=$?
  4901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4902. (exit $ac_status); }; }; then
  4903. ac_cv_search_opendir="-l$ac_lib"
  4904. break
  4905. else
  4906. echo "$as_me: failed program was:" >&5
  4907. sed 's/^/| /' conftest.$ac_ext >&5
  4908. fi
  4909. rm -f conftest.err conftest.$ac_objext \
  4910. conftest$ac_exeext conftest.$ac_ext
  4911. done
  4912. fi
  4913. LIBS=$ac_func_search_save_LIBS
  4914. fi
  4915. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4916. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4917. if test "$ac_cv_search_opendir" != no; then
  4918. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4919. fi
  4920. else
  4921. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4922. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4923. if test "${ac_cv_search_opendir+set}" = set; then
  4924. echo $ECHO_N "(cached) $ECHO_C" >&6
  4925. else
  4926. ac_func_search_save_LIBS=$LIBS
  4927. ac_cv_search_opendir=no
  4928. cat >conftest.$ac_ext <<_ACEOF
  4929. /* confdefs.h. */
  4930. _ACEOF
  4931. cat confdefs.h >>conftest.$ac_ext
  4932. cat >>conftest.$ac_ext <<_ACEOF
  4933. /* end confdefs.h. */
  4934. /* Override any gcc2 internal prototype to avoid an error. */
  4935. #ifdef __cplusplus
  4936. extern "C"
  4937. #endif
  4938. /* We use char because int might match the return type of a gcc2
  4939. builtin and then its argument prototype would still apply. */
  4940. char opendir ();
  4941. int
  4942. main ()
  4943. {
  4944. opendir ();
  4945. ;
  4946. return 0;
  4947. }
  4948. _ACEOF
  4949. rm -f conftest.$ac_objext conftest$ac_exeext
  4950. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4951. (eval $ac_link) 2>conftest.er1
  4952. ac_status=$?
  4953. grep -v '^ *+' conftest.er1 >conftest.err
  4954. rm -f conftest.er1
  4955. cat conftest.err >&5
  4956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4957. (exit $ac_status); } &&
  4958. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4960. (eval $ac_try) 2>&5
  4961. ac_status=$?
  4962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4963. (exit $ac_status); }; } &&
  4964. { ac_try='test -s conftest$ac_exeext'
  4965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4966. (eval $ac_try) 2>&5
  4967. ac_status=$?
  4968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4969. (exit $ac_status); }; }; then
  4970. ac_cv_search_opendir="none required"
  4971. else
  4972. echo "$as_me: failed program was:" >&5
  4973. sed 's/^/| /' conftest.$ac_ext >&5
  4974. fi
  4975. rm -f conftest.err conftest.$ac_objext \
  4976. conftest$ac_exeext conftest.$ac_ext
  4977. if test "$ac_cv_search_opendir" = no; then
  4978. for ac_lib in x; do
  4979. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4980. cat >conftest.$ac_ext <<_ACEOF
  4981. /* confdefs.h. */
  4982. _ACEOF
  4983. cat confdefs.h >>conftest.$ac_ext
  4984. cat >>conftest.$ac_ext <<_ACEOF
  4985. /* end confdefs.h. */
  4986. /* Override any gcc2 internal prototype to avoid an error. */
  4987. #ifdef __cplusplus
  4988. extern "C"
  4989. #endif
  4990. /* We use char because int might match the return type of a gcc2
  4991. builtin and then its argument prototype would still apply. */
  4992. char opendir ();
  4993. int
  4994. main ()
  4995. {
  4996. opendir ();
  4997. ;
  4998. return 0;
  4999. }
  5000. _ACEOF
  5001. rm -f conftest.$ac_objext conftest$ac_exeext
  5002. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5003. (eval $ac_link) 2>conftest.er1
  5004. ac_status=$?
  5005. grep -v '^ *+' conftest.er1 >conftest.err
  5006. rm -f conftest.er1
  5007. cat conftest.err >&5
  5008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5009. (exit $ac_status); } &&
  5010. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5012. (eval $ac_try) 2>&5
  5013. ac_status=$?
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); }; } &&
  5016. { ac_try='test -s conftest$ac_exeext'
  5017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5018. (eval $ac_try) 2>&5
  5019. ac_status=$?
  5020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5021. (exit $ac_status); }; }; then
  5022. ac_cv_search_opendir="-l$ac_lib"
  5023. break
  5024. else
  5025. echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027. fi
  5028. rm -f conftest.err conftest.$ac_objext \
  5029. conftest$ac_exeext conftest.$ac_ext
  5030. done
  5031. fi
  5032. LIBS=$ac_func_search_save_LIBS
  5033. fi
  5034. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5035. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5036. if test "$ac_cv_search_opendir" != no; then
  5037. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5038. fi
  5039. fi
  5040. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5041. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  5042. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5043. echo $ECHO_N "(cached) $ECHO_C" >&6
  5044. else
  5045. cat >conftest.$ac_ext <<_ACEOF
  5046. /* confdefs.h. */
  5047. _ACEOF
  5048. cat confdefs.h >>conftest.$ac_ext
  5049. cat >>conftest.$ac_ext <<_ACEOF
  5050. /* end confdefs.h. */
  5051. #include <sys/types.h>
  5052. #include <sys/wait.h>
  5053. #ifndef WEXITSTATUS
  5054. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5055. #endif
  5056. #ifndef WIFEXITED
  5057. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5058. #endif
  5059. int
  5060. main ()
  5061. {
  5062. int s;
  5063. wait (&s);
  5064. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5065. ;
  5066. return 0;
  5067. }
  5068. _ACEOF
  5069. rm -f conftest.$ac_objext
  5070. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5071. (eval $ac_compile) 2>conftest.er1
  5072. ac_status=$?
  5073. grep -v '^ *+' conftest.er1 >conftest.err
  5074. rm -f conftest.er1
  5075. cat conftest.err >&5
  5076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5077. (exit $ac_status); } &&
  5078. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5080. (eval $ac_try) 2>&5
  5081. ac_status=$?
  5082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5083. (exit $ac_status); }; } &&
  5084. { ac_try='test -s conftest.$ac_objext'
  5085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5086. (eval $ac_try) 2>&5
  5087. ac_status=$?
  5088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5089. (exit $ac_status); }; }; then
  5090. ac_cv_header_sys_wait_h=yes
  5091. else
  5092. echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. ac_cv_header_sys_wait_h=no
  5095. fi
  5096. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5097. fi
  5098. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5099. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5100. if test $ac_cv_header_sys_wait_h = yes; then
  5101. cat >>confdefs.h <<\_ACEOF
  5102. #define HAVE_SYS_WAIT_H 1
  5103. _ACEOF
  5104. fi
  5105. for ac_header in sys/time.h
  5106. do
  5107. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5108. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5109. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5110. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5111. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5112. echo $ECHO_N "(cached) $ECHO_C" >&6
  5113. fi
  5114. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5115. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5116. else
  5117. # Is the header compilable?
  5118. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5119. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5120. cat >conftest.$ac_ext <<_ACEOF
  5121. /* confdefs.h. */
  5122. _ACEOF
  5123. cat confdefs.h >>conftest.$ac_ext
  5124. cat >>conftest.$ac_ext <<_ACEOF
  5125. /* end confdefs.h. */
  5126. $ac_includes_default
  5127. #include <$ac_header>
  5128. _ACEOF
  5129. rm -f conftest.$ac_objext
  5130. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5131. (eval $ac_compile) 2>conftest.er1
  5132. ac_status=$?
  5133. grep -v '^ *+' conftest.er1 >conftest.err
  5134. rm -f conftest.er1
  5135. cat conftest.err >&5
  5136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5137. (exit $ac_status); } &&
  5138. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5140. (eval $ac_try) 2>&5
  5141. ac_status=$?
  5142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5143. (exit $ac_status); }; } &&
  5144. { ac_try='test -s conftest.$ac_objext'
  5145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5146. (eval $ac_try) 2>&5
  5147. ac_status=$?
  5148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5149. (exit $ac_status); }; }; then
  5150. ac_header_compiler=yes
  5151. else
  5152. echo "$as_me: failed program was:" >&5
  5153. sed 's/^/| /' conftest.$ac_ext >&5
  5154. ac_header_compiler=no
  5155. fi
  5156. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5157. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5158. echo "${ECHO_T}$ac_header_compiler" >&6
  5159. # Is the header present?
  5160. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5161. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5162. cat >conftest.$ac_ext <<_ACEOF
  5163. /* confdefs.h. */
  5164. _ACEOF
  5165. cat confdefs.h >>conftest.$ac_ext
  5166. cat >>conftest.$ac_ext <<_ACEOF
  5167. /* end confdefs.h. */
  5168. #include <$ac_header>
  5169. _ACEOF
  5170. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5171. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5172. ac_status=$?
  5173. grep -v '^ *+' conftest.er1 >conftest.err
  5174. rm -f conftest.er1
  5175. cat conftest.err >&5
  5176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5177. (exit $ac_status); } >/dev/null; then
  5178. if test -s conftest.err; then
  5179. ac_cpp_err=$ac_c_preproc_warn_flag
  5180. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5181. else
  5182. ac_cpp_err=
  5183. fi
  5184. else
  5185. ac_cpp_err=yes
  5186. fi
  5187. if test -z "$ac_cpp_err"; then
  5188. ac_header_preproc=yes
  5189. else
  5190. echo "$as_me: failed program was:" >&5
  5191. sed 's/^/| /' conftest.$ac_ext >&5
  5192. ac_header_preproc=no
  5193. fi
  5194. rm -f conftest.err conftest.$ac_ext
  5195. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5196. echo "${ECHO_T}$ac_header_preproc" >&6
  5197. # So? What about this header?
  5198. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5199. yes:no: )
  5200. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5201. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5202. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5203. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5204. ac_header_preproc=yes
  5205. ;;
  5206. no:yes:* )
  5207. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5208. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5209. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5210. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5211. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5212. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5213. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5214. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5215. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5216. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5217. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5218. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5219. (
  5220. cat <<\_ASBOX
  5221. ## ------------------------------------------ ##
  5222. ## Report this to the AC_PACKAGE_NAME lists. ##
  5223. ## ------------------------------------------ ##
  5224. _ASBOX
  5225. ) |
  5226. sed "s/^/$as_me: WARNING: /" >&2
  5227. ;;
  5228. esac
  5229. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5230. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5231. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5232. echo $ECHO_N "(cached) $ECHO_C" >&6
  5233. else
  5234. eval "$as_ac_Header=\$ac_header_preproc"
  5235. fi
  5236. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5237. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5238. fi
  5239. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5240. cat >>confdefs.h <<_ACEOF
  5241. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5242. _ACEOF
  5243. fi
  5244. done
  5245. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5246. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5247. if test "${ac_cv_header_time+set}" = set; then
  5248. echo $ECHO_N "(cached) $ECHO_C" >&6
  5249. else
  5250. cat >conftest.$ac_ext <<_ACEOF
  5251. /* confdefs.h. */
  5252. _ACEOF
  5253. cat confdefs.h >>conftest.$ac_ext
  5254. cat >>conftest.$ac_ext <<_ACEOF
  5255. /* end confdefs.h. */
  5256. #include <sys/types.h>
  5257. #include <sys/time.h>
  5258. #include <time.h>
  5259. int
  5260. main ()
  5261. {
  5262. if ((struct tm *) 0)
  5263. return 0;
  5264. ;
  5265. return 0;
  5266. }
  5267. _ACEOF
  5268. rm -f conftest.$ac_objext
  5269. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5270. (eval $ac_compile) 2>conftest.er1
  5271. ac_status=$?
  5272. grep -v '^ *+' conftest.er1 >conftest.err
  5273. rm -f conftest.er1
  5274. cat conftest.err >&5
  5275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5276. (exit $ac_status); } &&
  5277. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5279. (eval $ac_try) 2>&5
  5280. ac_status=$?
  5281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5282. (exit $ac_status); }; } &&
  5283. { ac_try='test -s conftest.$ac_objext'
  5284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5285. (eval $ac_try) 2>&5
  5286. ac_status=$?
  5287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5288. (exit $ac_status); }; }; then
  5289. ac_cv_header_time=yes
  5290. else
  5291. echo "$as_me: failed program was:" >&5
  5292. sed 's/^/| /' conftest.$ac_ext >&5
  5293. ac_cv_header_time=no
  5294. fi
  5295. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5296. fi
  5297. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5298. echo "${ECHO_T}$ac_cv_header_time" >&6
  5299. if test $ac_cv_header_time = yes; then
  5300. cat >>confdefs.h <<\_ACEOF
  5301. #define TIME_WITH_SYS_TIME 1
  5302. _ACEOF
  5303. fi
  5304. for ac_header in zlib.h
  5305. do
  5306. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5307. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  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. fi
  5313. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5314. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5315. else
  5316. # Is the header compilable?
  5317. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5318. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5319. cat >conftest.$ac_ext <<_ACEOF
  5320. /* confdefs.h. */
  5321. _ACEOF
  5322. cat confdefs.h >>conftest.$ac_ext
  5323. cat >>conftest.$ac_ext <<_ACEOF
  5324. /* end confdefs.h. */
  5325. $ac_includes_default
  5326. #include <$ac_header>
  5327. _ACEOF
  5328. rm -f conftest.$ac_objext
  5329. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5330. (eval $ac_compile) 2>conftest.er1
  5331. ac_status=$?
  5332. grep -v '^ *+' conftest.er1 >conftest.err
  5333. rm -f conftest.er1
  5334. cat conftest.err >&5
  5335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5336. (exit $ac_status); } &&
  5337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5339. (eval $ac_try) 2>&5
  5340. ac_status=$?
  5341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5342. (exit $ac_status); }; } &&
  5343. { ac_try='test -s conftest.$ac_objext'
  5344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5345. (eval $ac_try) 2>&5
  5346. ac_status=$?
  5347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5348. (exit $ac_status); }; }; then
  5349. ac_header_compiler=yes
  5350. else
  5351. echo "$as_me: failed program was:" >&5
  5352. sed 's/^/| /' conftest.$ac_ext >&5
  5353. ac_header_compiler=no
  5354. fi
  5355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5356. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5357. echo "${ECHO_T}$ac_header_compiler" >&6
  5358. # Is the header present?
  5359. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5360. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5361. cat >conftest.$ac_ext <<_ACEOF
  5362. /* confdefs.h. */
  5363. _ACEOF
  5364. cat confdefs.h >>conftest.$ac_ext
  5365. cat >>conftest.$ac_ext <<_ACEOF
  5366. /* end confdefs.h. */
  5367. #include <$ac_header>
  5368. _ACEOF
  5369. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5370. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5371. ac_status=$?
  5372. grep -v '^ *+' conftest.er1 >conftest.err
  5373. rm -f conftest.er1
  5374. cat conftest.err >&5
  5375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); } >/dev/null; then
  5377. if test -s conftest.err; then
  5378. ac_cpp_err=$ac_c_preproc_warn_flag
  5379. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5380. else
  5381. ac_cpp_err=
  5382. fi
  5383. else
  5384. ac_cpp_err=yes
  5385. fi
  5386. if test -z "$ac_cpp_err"; then
  5387. ac_header_preproc=yes
  5388. else
  5389. echo "$as_me: failed program was:" >&5
  5390. sed 's/^/| /' conftest.$ac_ext >&5
  5391. ac_header_preproc=no
  5392. fi
  5393. rm -f conftest.err conftest.$ac_ext
  5394. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5395. echo "${ECHO_T}$ac_header_preproc" >&6
  5396. # So? What about this header?
  5397. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5398. yes:no: )
  5399. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5400. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5401. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5402. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5403. ac_header_preproc=yes
  5404. ;;
  5405. no:yes:* )
  5406. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5407. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5408. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5409. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5410. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5411. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5412. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5413. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5414. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5415. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5416. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5417. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5418. (
  5419. cat <<\_ASBOX
  5420. ## ------------------------------------------ ##
  5421. ## Report this to the AC_PACKAGE_NAME lists. ##
  5422. ## ------------------------------------------ ##
  5423. _ASBOX
  5424. ) |
  5425. sed "s/^/$as_me: WARNING: /" >&2
  5426. ;;
  5427. esac
  5428. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5429. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5430. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5431. echo $ECHO_N "(cached) $ECHO_C" >&6
  5432. else
  5433. eval "$as_ac_Header=\$ac_header_preproc"
  5434. fi
  5435. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5436. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5437. fi
  5438. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5439. cat >>confdefs.h <<_ACEOF
  5440. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5441. _ACEOF
  5442. fi
  5443. done
  5444. if test "x${ZLIB}" = x; then
  5445. cat >&2 <<EOF
  5446. configure: error:
  5447. Your system does not provide a working zlib compression library.
  5448. It is required.
  5449. EOF
  5450. exit 1
  5451. else
  5452. if test "${ac_cv_header_zlib_h}" != yes; then
  5453. cat >&2 <<EOF
  5454. configure: error:
  5455. Your system does not provide the necessary zlib header file.
  5456. It is required.
  5457. EOF
  5458. exit 1
  5459. fi
  5460. fi
  5461. for ac_header in openssl/ssl.h openssl/crypto.h
  5462. do
  5463. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5464. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5465. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5466. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5467. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5468. echo $ECHO_N "(cached) $ECHO_C" >&6
  5469. fi
  5470. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5471. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5472. else
  5473. # Is the header compilable?
  5474. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5475. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5476. cat >conftest.$ac_ext <<_ACEOF
  5477. /* confdefs.h. */
  5478. _ACEOF
  5479. cat confdefs.h >>conftest.$ac_ext
  5480. cat >>conftest.$ac_ext <<_ACEOF
  5481. /* end confdefs.h. */
  5482. $ac_includes_default
  5483. #include <$ac_header>
  5484. _ACEOF
  5485. rm -f conftest.$ac_objext
  5486. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5487. (eval $ac_compile) 2>conftest.er1
  5488. ac_status=$?
  5489. grep -v '^ *+' conftest.er1 >conftest.err
  5490. rm -f conftest.er1
  5491. cat conftest.err >&5
  5492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5493. (exit $ac_status); } &&
  5494. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5496. (eval $ac_try) 2>&5
  5497. ac_status=$?
  5498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5499. (exit $ac_status); }; } &&
  5500. { ac_try='test -s conftest.$ac_objext'
  5501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5502. (eval $ac_try) 2>&5
  5503. ac_status=$?
  5504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5505. (exit $ac_status); }; }; then
  5506. ac_header_compiler=yes
  5507. else
  5508. echo "$as_me: failed program was:" >&5
  5509. sed 's/^/| /' conftest.$ac_ext >&5
  5510. ac_header_compiler=no
  5511. fi
  5512. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5513. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5514. echo "${ECHO_T}$ac_header_compiler" >&6
  5515. # Is the header present?
  5516. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5517. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5518. cat >conftest.$ac_ext <<_ACEOF
  5519. /* confdefs.h. */
  5520. _ACEOF
  5521. cat confdefs.h >>conftest.$ac_ext
  5522. cat >>conftest.$ac_ext <<_ACEOF
  5523. /* end confdefs.h. */
  5524. #include <$ac_header>
  5525. _ACEOF
  5526. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5527. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5528. ac_status=$?
  5529. grep -v '^ *+' conftest.er1 >conftest.err
  5530. rm -f conftest.er1
  5531. cat conftest.err >&5
  5532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5533. (exit $ac_status); } >/dev/null; then
  5534. if test -s conftest.err; then
  5535. ac_cpp_err=$ac_c_preproc_warn_flag
  5536. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5537. else
  5538. ac_cpp_err=
  5539. fi
  5540. else
  5541. ac_cpp_err=yes
  5542. fi
  5543. if test -z "$ac_cpp_err"; then
  5544. ac_header_preproc=yes
  5545. else
  5546. echo "$as_me: failed program was:" >&5
  5547. sed 's/^/| /' conftest.$ac_ext >&5
  5548. ac_header_preproc=no
  5549. fi
  5550. rm -f conftest.err conftest.$ac_ext
  5551. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5552. echo "${ECHO_T}$ac_header_preproc" >&6
  5553. # So? What about this header?
  5554. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5555. yes:no: )
  5556. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5557. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5558. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5559. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5560. ac_header_preproc=yes
  5561. ;;
  5562. no:yes:* )
  5563. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5564. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5565. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5566. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5567. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5568. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5569. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5570. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5571. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5572. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5573. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5574. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5575. (
  5576. cat <<\_ASBOX
  5577. ## ------------------------------------------ ##
  5578. ## Report this to the AC_PACKAGE_NAME lists. ##
  5579. ## ------------------------------------------ ##
  5580. _ASBOX
  5581. ) |
  5582. sed "s/^/$as_me: WARNING: /" >&2
  5583. ;;
  5584. esac
  5585. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5586. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5587. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5588. echo $ECHO_N "(cached) $ECHO_C" >&6
  5589. else
  5590. eval "$as_ac_Header=\$ac_header_preproc"
  5591. fi
  5592. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5593. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5594. fi
  5595. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5596. cat >>confdefs.h <<_ACEOF
  5597. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5598. _ACEOF
  5599. fi
  5600. done
  5601. if test "x${SSL}" = x; then
  5602. cat >&2 <<EOF
  5603. configure: error:
  5604. Your system does not provide a working ssl library.
  5605. It is required. Download openssl at www.openssl.org
  5606. EOF
  5607. exit 1
  5608. else
  5609. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5610. cat >&2 <<EOF
  5611. configure: error:
  5612. Your system does not provide the necessary ssl header file.
  5613. It is required. Download openssl at www.openssl.org
  5614. EOF
  5615. exit 1
  5616. fi
  5617. fi
  5618. for ac_header in sys/select.h sys/rusage.h unistd.h dlfcn.h stdarg.h std_args.h strings.h limits.h
  5619. do
  5620. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5621. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5622. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5623. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5624. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5625. echo $ECHO_N "(cached) $ECHO_C" >&6
  5626. fi
  5627. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5628. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5629. else
  5630. # Is the header compilable?
  5631. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5632. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5633. cat >conftest.$ac_ext <<_ACEOF
  5634. /* confdefs.h. */
  5635. _ACEOF
  5636. cat confdefs.h >>conftest.$ac_ext
  5637. cat >>conftest.$ac_ext <<_ACEOF
  5638. /* end confdefs.h. */
  5639. $ac_includes_default
  5640. #include <$ac_header>
  5641. _ACEOF
  5642. rm -f conftest.$ac_objext
  5643. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5644. (eval $ac_compile) 2>conftest.er1
  5645. ac_status=$?
  5646. grep -v '^ *+' conftest.er1 >conftest.err
  5647. rm -f conftest.er1
  5648. cat conftest.err >&5
  5649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5650. (exit $ac_status); } &&
  5651. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5653. (eval $ac_try) 2>&5
  5654. ac_status=$?
  5655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656. (exit $ac_status); }; } &&
  5657. { ac_try='test -s conftest.$ac_objext'
  5658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5659. (eval $ac_try) 2>&5
  5660. ac_status=$?
  5661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662. (exit $ac_status); }; }; then
  5663. ac_header_compiler=yes
  5664. else
  5665. echo "$as_me: failed program was:" >&5
  5666. sed 's/^/| /' conftest.$ac_ext >&5
  5667. ac_header_compiler=no
  5668. fi
  5669. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5670. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5671. echo "${ECHO_T}$ac_header_compiler" >&6
  5672. # Is the header present?
  5673. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5674. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5675. cat >conftest.$ac_ext <<_ACEOF
  5676. /* confdefs.h. */
  5677. _ACEOF
  5678. cat confdefs.h >>conftest.$ac_ext
  5679. cat >>conftest.$ac_ext <<_ACEOF
  5680. /* end confdefs.h. */
  5681. #include <$ac_header>
  5682. _ACEOF
  5683. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5684. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5685. ac_status=$?
  5686. grep -v '^ *+' conftest.er1 >conftest.err
  5687. rm -f conftest.er1
  5688. cat conftest.err >&5
  5689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5690. (exit $ac_status); } >/dev/null; then
  5691. if test -s conftest.err; then
  5692. ac_cpp_err=$ac_c_preproc_warn_flag
  5693. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5694. else
  5695. ac_cpp_err=
  5696. fi
  5697. else
  5698. ac_cpp_err=yes
  5699. fi
  5700. if test -z "$ac_cpp_err"; then
  5701. ac_header_preproc=yes
  5702. else
  5703. echo "$as_me: failed program was:" >&5
  5704. sed 's/^/| /' conftest.$ac_ext >&5
  5705. ac_header_preproc=no
  5706. fi
  5707. rm -f conftest.err conftest.$ac_ext
  5708. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5709. echo "${ECHO_T}$ac_header_preproc" >&6
  5710. # So? What about this header?
  5711. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5712. yes:no: )
  5713. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5714. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5715. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5716. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5717. ac_header_preproc=yes
  5718. ;;
  5719. no:yes:* )
  5720. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5721. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5722. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5723. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5724. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5725. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5726. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5727. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5729. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5730. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5731. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5732. (
  5733. cat <<\_ASBOX
  5734. ## ------------------------------------------ ##
  5735. ## Report this to the AC_PACKAGE_NAME lists. ##
  5736. ## ------------------------------------------ ##
  5737. _ASBOX
  5738. ) |
  5739. sed "s/^/$as_me: WARNING: /" >&2
  5740. ;;
  5741. esac
  5742. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5743. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5745. echo $ECHO_N "(cached) $ECHO_C" >&6
  5746. else
  5747. eval "$as_ac_Header=\$ac_header_preproc"
  5748. fi
  5749. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5750. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5751. fi
  5752. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5753. cat >>confdefs.h <<_ACEOF
  5754. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5755. _ACEOF
  5756. fi
  5757. done
  5758. # Checks for typedefs, structures, and compiler characteristics
  5759. echo "$as_me:$LINENO: checking for pid_t" >&5
  5760. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5761. if test "${ac_cv_type_pid_t+set}" = set; then
  5762. echo $ECHO_N "(cached) $ECHO_C" >&6
  5763. else
  5764. cat >conftest.$ac_ext <<_ACEOF
  5765. /* confdefs.h. */
  5766. _ACEOF
  5767. cat confdefs.h >>conftest.$ac_ext
  5768. cat >>conftest.$ac_ext <<_ACEOF
  5769. /* end confdefs.h. */
  5770. $ac_includes_default
  5771. int
  5772. main ()
  5773. {
  5774. if ((pid_t *) 0)
  5775. return 0;
  5776. if (sizeof (pid_t))
  5777. return 0;
  5778. ;
  5779. return 0;
  5780. }
  5781. _ACEOF
  5782. rm -f conftest.$ac_objext
  5783. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5784. (eval $ac_compile) 2>conftest.er1
  5785. ac_status=$?
  5786. grep -v '^ *+' conftest.er1 >conftest.err
  5787. rm -f conftest.er1
  5788. cat conftest.err >&5
  5789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5790. (exit $ac_status); } &&
  5791. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5793. (eval $ac_try) 2>&5
  5794. ac_status=$?
  5795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5796. (exit $ac_status); }; } &&
  5797. { ac_try='test -s conftest.$ac_objext'
  5798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5799. (eval $ac_try) 2>&5
  5800. ac_status=$?
  5801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5802. (exit $ac_status); }; }; then
  5803. ac_cv_type_pid_t=yes
  5804. else
  5805. echo "$as_me: failed program was:" >&5
  5806. sed 's/^/| /' conftest.$ac_ext >&5
  5807. ac_cv_type_pid_t=no
  5808. fi
  5809. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5810. fi
  5811. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5812. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5813. if test $ac_cv_type_pid_t = yes; then
  5814. :
  5815. else
  5816. cat >>confdefs.h <<_ACEOF
  5817. #define pid_t int
  5818. _ACEOF
  5819. fi
  5820. echo "$as_me:$LINENO: checking for size_t" >&5
  5821. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5822. if test "${ac_cv_type_size_t+set}" = set; then
  5823. echo $ECHO_N "(cached) $ECHO_C" >&6
  5824. else
  5825. cat >conftest.$ac_ext <<_ACEOF
  5826. /* confdefs.h. */
  5827. _ACEOF
  5828. cat confdefs.h >>conftest.$ac_ext
  5829. cat >>conftest.$ac_ext <<_ACEOF
  5830. /* end confdefs.h. */
  5831. $ac_includes_default
  5832. int
  5833. main ()
  5834. {
  5835. if ((size_t *) 0)
  5836. return 0;
  5837. if (sizeof (size_t))
  5838. return 0;
  5839. ;
  5840. return 0;
  5841. }
  5842. _ACEOF
  5843. rm -f conftest.$ac_objext
  5844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5845. (eval $ac_compile) 2>conftest.er1
  5846. ac_status=$?
  5847. grep -v '^ *+' conftest.er1 >conftest.err
  5848. rm -f conftest.er1
  5849. cat conftest.err >&5
  5850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5851. (exit $ac_status); } &&
  5852. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5854. (eval $ac_try) 2>&5
  5855. ac_status=$?
  5856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5857. (exit $ac_status); }; } &&
  5858. { ac_try='test -s conftest.$ac_objext'
  5859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5860. (eval $ac_try) 2>&5
  5861. ac_status=$?
  5862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5863. (exit $ac_status); }; }; then
  5864. ac_cv_type_size_t=yes
  5865. else
  5866. echo "$as_me: failed program was:" >&5
  5867. sed 's/^/| /' conftest.$ac_ext >&5
  5868. ac_cv_type_size_t=no
  5869. fi
  5870. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5871. fi
  5872. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5873. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5874. if test $ac_cv_type_size_t = yes; then
  5875. :
  5876. else
  5877. cat >>confdefs.h <<_ACEOF
  5878. #define size_t unsigned
  5879. _ACEOF
  5880. fi
  5881. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5882. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5883. if test "${ac_cv_c_const+set}" = set; then
  5884. echo $ECHO_N "(cached) $ECHO_C" >&6
  5885. else
  5886. cat >conftest.$ac_ext <<_ACEOF
  5887. /* confdefs.h. */
  5888. _ACEOF
  5889. cat confdefs.h >>conftest.$ac_ext
  5890. cat >>conftest.$ac_ext <<_ACEOF
  5891. /* end confdefs.h. */
  5892. int
  5893. main ()
  5894. {
  5895. /* FIXME: Include the comments suggested by Paul. */
  5896. #ifndef __cplusplus
  5897. /* Ultrix mips cc rejects this. */
  5898. typedef int charset[2];
  5899. const charset x;
  5900. /* SunOS 4.1.1 cc rejects this. */
  5901. char const *const *ccp;
  5902. char **p;
  5903. /* NEC SVR4.0.2 mips cc rejects this. */
  5904. struct point {int x, y;};
  5905. static struct point const zero = {0,0};
  5906. /* AIX XL C 1.02.0.0 rejects this.
  5907. It does not let you subtract one const X* pointer from another in
  5908. an arm of an if-expression whose if-part is not a constant
  5909. expression */
  5910. const char *g = "string";
  5911. ccp = &g + (g ? g-g : 0);
  5912. /* HPUX 7.0 cc rejects these. */
  5913. ++ccp;
  5914. p = (char**) ccp;
  5915. ccp = (char const *const *) p;
  5916. { /* SCO 3.2v4 cc rejects this. */
  5917. char *t;
  5918. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5919. *t++ = 0;
  5920. }
  5921. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5922. int x[] = {25, 17};
  5923. const int *foo = &x[0];
  5924. ++foo;
  5925. }
  5926. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5927. typedef const int *iptr;
  5928. iptr p = 0;
  5929. ++p;
  5930. }
  5931. { /* AIX XL C 1.02.0.0 rejects this saying
  5932. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5933. struct s { int j; const int *ap[3]; };
  5934. struct s *b; b->j = 5;
  5935. }
  5936. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5937. const int foo = 10;
  5938. }
  5939. #endif
  5940. ;
  5941. return 0;
  5942. }
  5943. _ACEOF
  5944. rm -f conftest.$ac_objext
  5945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5946. (eval $ac_compile) 2>conftest.er1
  5947. ac_status=$?
  5948. grep -v '^ *+' conftest.er1 >conftest.err
  5949. rm -f conftest.er1
  5950. cat conftest.err >&5
  5951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5952. (exit $ac_status); } &&
  5953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5955. (eval $ac_try) 2>&5
  5956. ac_status=$?
  5957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5958. (exit $ac_status); }; } &&
  5959. { ac_try='test -s conftest.$ac_objext'
  5960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5961. (eval $ac_try) 2>&5
  5962. ac_status=$?
  5963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5964. (exit $ac_status); }; }; then
  5965. ac_cv_c_const=yes
  5966. else
  5967. echo "$as_me: failed program was:" >&5
  5968. sed 's/^/| /' conftest.$ac_ext >&5
  5969. ac_cv_c_const=no
  5970. fi
  5971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5972. fi
  5973. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5974. echo "${ECHO_T}$ac_cv_c_const" >&6
  5975. if test $ac_cv_c_const = no; then
  5976. cat >>confdefs.h <<\_ACEOF
  5977. #define const
  5978. _ACEOF
  5979. fi
  5980. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5981. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5982. if test "${ac_cv_c_bigendian+set}" = set; then
  5983. echo $ECHO_N "(cached) $ECHO_C" >&6
  5984. else
  5985. # See if sys/param.h defines the BYTE_ORDER macro.
  5986. cat >conftest.$ac_ext <<_ACEOF
  5987. /* confdefs.h. */
  5988. _ACEOF
  5989. cat confdefs.h >>conftest.$ac_ext
  5990. cat >>conftest.$ac_ext <<_ACEOF
  5991. /* end confdefs.h. */
  5992. #include <sys/types.h>
  5993. #include <sys/param.h>
  5994. int
  5995. main ()
  5996. {
  5997. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5998. bogus endian macros
  5999. #endif
  6000. ;
  6001. return 0;
  6002. }
  6003. _ACEOF
  6004. rm -f conftest.$ac_objext
  6005. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6006. (eval $ac_compile) 2>conftest.er1
  6007. ac_status=$?
  6008. grep -v '^ *+' conftest.er1 >conftest.err
  6009. rm -f conftest.er1
  6010. cat conftest.err >&5
  6011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6012. (exit $ac_status); } &&
  6013. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6015. (eval $ac_try) 2>&5
  6016. ac_status=$?
  6017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6018. (exit $ac_status); }; } &&
  6019. { ac_try='test -s conftest.$ac_objext'
  6020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6021. (eval $ac_try) 2>&5
  6022. ac_status=$?
  6023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6024. (exit $ac_status); }; }; then
  6025. # It does; now see whether it defined to BIG_ENDIAN or not.
  6026. cat >conftest.$ac_ext <<_ACEOF
  6027. /* confdefs.h. */
  6028. _ACEOF
  6029. cat confdefs.h >>conftest.$ac_ext
  6030. cat >>conftest.$ac_ext <<_ACEOF
  6031. /* end confdefs.h. */
  6032. #include <sys/types.h>
  6033. #include <sys/param.h>
  6034. int
  6035. main ()
  6036. {
  6037. #if BYTE_ORDER != BIG_ENDIAN
  6038. not big endian
  6039. #endif
  6040. ;
  6041. return 0;
  6042. }
  6043. _ACEOF
  6044. rm -f conftest.$ac_objext
  6045. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6046. (eval $ac_compile) 2>conftest.er1
  6047. ac_status=$?
  6048. grep -v '^ *+' conftest.er1 >conftest.err
  6049. rm -f conftest.er1
  6050. cat conftest.err >&5
  6051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6052. (exit $ac_status); } &&
  6053. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6055. (eval $ac_try) 2>&5
  6056. ac_status=$?
  6057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6058. (exit $ac_status); }; } &&
  6059. { ac_try='test -s conftest.$ac_objext'
  6060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6061. (eval $ac_try) 2>&5
  6062. ac_status=$?
  6063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6064. (exit $ac_status); }; }; then
  6065. ac_cv_c_bigendian=yes
  6066. else
  6067. echo "$as_me: failed program was:" >&5
  6068. sed 's/^/| /' conftest.$ac_ext >&5
  6069. ac_cv_c_bigendian=no
  6070. fi
  6071. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6072. else
  6073. echo "$as_me: failed program was:" >&5
  6074. sed 's/^/| /' conftest.$ac_ext >&5
  6075. # It does not; compile a test program.
  6076. if test "$cross_compiling" = yes; then
  6077. # try to guess the endianness by grepping values into an object file
  6078. ac_cv_c_bigendian=unknown
  6079. cat >conftest.$ac_ext <<_ACEOF
  6080. /* confdefs.h. */
  6081. _ACEOF
  6082. cat confdefs.h >>conftest.$ac_ext
  6083. cat >>conftest.$ac_ext <<_ACEOF
  6084. /* end confdefs.h. */
  6085. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6086. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6087. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6088. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6089. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6090. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6091. int
  6092. main ()
  6093. {
  6094. _ascii (); _ebcdic ();
  6095. ;
  6096. return 0;
  6097. }
  6098. _ACEOF
  6099. rm -f conftest.$ac_objext
  6100. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6101. (eval $ac_compile) 2>conftest.er1
  6102. ac_status=$?
  6103. grep -v '^ *+' conftest.er1 >conftest.err
  6104. rm -f conftest.er1
  6105. cat conftest.err >&5
  6106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6107. (exit $ac_status); } &&
  6108. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6110. (eval $ac_try) 2>&5
  6111. ac_status=$?
  6112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6113. (exit $ac_status); }; } &&
  6114. { ac_try='test -s conftest.$ac_objext'
  6115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6116. (eval $ac_try) 2>&5
  6117. ac_status=$?
  6118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6119. (exit $ac_status); }; }; then
  6120. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6121. ac_cv_c_bigendian=yes
  6122. fi
  6123. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6124. if test "$ac_cv_c_bigendian" = unknown; then
  6125. ac_cv_c_bigendian=no
  6126. else
  6127. # finding both strings is unlikely to happen, but who knows?
  6128. ac_cv_c_bigendian=unknown
  6129. fi
  6130. fi
  6131. else
  6132. echo "$as_me: failed program was:" >&5
  6133. sed 's/^/| /' conftest.$ac_ext >&5
  6134. fi
  6135. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6136. else
  6137. cat >conftest.$ac_ext <<_ACEOF
  6138. /* confdefs.h. */
  6139. _ACEOF
  6140. cat confdefs.h >>conftest.$ac_ext
  6141. cat >>conftest.$ac_ext <<_ACEOF
  6142. /* end confdefs.h. */
  6143. int
  6144. main ()
  6145. {
  6146. /* Are we little or big endian? From Harbison&Steele. */
  6147. union
  6148. {
  6149. long l;
  6150. char c[sizeof (long)];
  6151. } u;
  6152. u.l = 1;
  6153. exit (u.c[sizeof (long) - 1] == 1);
  6154. }
  6155. _ACEOF
  6156. rm -f conftest$ac_exeext
  6157. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6158. (eval $ac_link) 2>&5
  6159. ac_status=$?
  6160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6161. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6163. (eval $ac_try) 2>&5
  6164. ac_status=$?
  6165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6166. (exit $ac_status); }; }; then
  6167. ac_cv_c_bigendian=no
  6168. else
  6169. echo "$as_me: program exited with status $ac_status" >&5
  6170. echo "$as_me: failed program was:" >&5
  6171. sed 's/^/| /' conftest.$ac_ext >&5
  6172. ( exit $ac_status )
  6173. ac_cv_c_bigendian=yes
  6174. fi
  6175. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6176. fi
  6177. fi
  6178. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6179. fi
  6180. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6181. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6182. case $ac_cv_c_bigendian in
  6183. yes)
  6184. cat >>confdefs.h <<\_ACEOF
  6185. #define WORDS_BIGENDIAN 1
  6186. _ACEOF
  6187. ;;
  6188. no)
  6189. ;;
  6190. *)
  6191. { { echo "$as_me:$LINENO: error: unknown endianness
  6192. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6193. echo "$as_me: error: unknown endianness
  6194. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6195. { (exit 1); exit 1; }; } ;;
  6196. esac
  6197. echo "$as_me:$LINENO: checking for inline" >&5
  6198. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6199. if test "${ac_cv_c_inline+set}" = set; then
  6200. echo $ECHO_N "(cached) $ECHO_C" >&6
  6201. else
  6202. ac_cv_c_inline=no
  6203. for ac_kw in inline __inline__ __inline; do
  6204. cat >conftest.$ac_ext <<_ACEOF
  6205. /* confdefs.h. */
  6206. _ACEOF
  6207. cat confdefs.h >>conftest.$ac_ext
  6208. cat >>conftest.$ac_ext <<_ACEOF
  6209. /* end confdefs.h. */
  6210. #ifndef __cplusplus
  6211. typedef int foo_t;
  6212. static $ac_kw foo_t static_foo () {return 0; }
  6213. $ac_kw foo_t foo () {return 0; }
  6214. #endif
  6215. _ACEOF
  6216. rm -f conftest.$ac_objext
  6217. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6218. (eval $ac_compile) 2>conftest.er1
  6219. ac_status=$?
  6220. grep -v '^ *+' conftest.er1 >conftest.err
  6221. rm -f conftest.er1
  6222. cat conftest.err >&5
  6223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6224. (exit $ac_status); } &&
  6225. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6227. (eval $ac_try) 2>&5
  6228. ac_status=$?
  6229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6230. (exit $ac_status); }; } &&
  6231. { ac_try='test -s conftest.$ac_objext'
  6232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6233. (eval $ac_try) 2>&5
  6234. ac_status=$?
  6235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6236. (exit $ac_status); }; }; then
  6237. ac_cv_c_inline=$ac_kw; break
  6238. else
  6239. echo "$as_me: failed program was:" >&5
  6240. sed 's/^/| /' conftest.$ac_ext >&5
  6241. fi
  6242. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6243. done
  6244. fi
  6245. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6246. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6247. case $ac_cv_c_inline in
  6248. inline | yes) ;;
  6249. *)
  6250. case $ac_cv_c_inline in
  6251. no) ac_val=;;
  6252. *) ac_val=$ac_cv_c_inline;;
  6253. esac
  6254. cat >>confdefs.h <<_ACEOF
  6255. #ifndef __cplusplus
  6256. #define inline $ac_val
  6257. #endif
  6258. _ACEOF
  6259. ;;
  6260. esac
  6261. echo "$as_me:$LINENO: checking for long" >&5
  6262. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6263. if test "${ac_cv_type_long+set}" = set; then
  6264. echo $ECHO_N "(cached) $ECHO_C" >&6
  6265. else
  6266. cat >conftest.$ac_ext <<_ACEOF
  6267. /* confdefs.h. */
  6268. _ACEOF
  6269. cat confdefs.h >>conftest.$ac_ext
  6270. cat >>conftest.$ac_ext <<_ACEOF
  6271. /* end confdefs.h. */
  6272. $ac_includes_default
  6273. int
  6274. main ()
  6275. {
  6276. if ((long *) 0)
  6277. return 0;
  6278. if (sizeof (long))
  6279. return 0;
  6280. ;
  6281. return 0;
  6282. }
  6283. _ACEOF
  6284. rm -f conftest.$ac_objext
  6285. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6286. (eval $ac_compile) 2>conftest.er1
  6287. ac_status=$?
  6288. grep -v '^ *+' conftest.er1 >conftest.err
  6289. rm -f conftest.er1
  6290. cat conftest.err >&5
  6291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); } &&
  6293. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6295. (eval $ac_try) 2>&5
  6296. ac_status=$?
  6297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6298. (exit $ac_status); }; } &&
  6299. { ac_try='test -s conftest.$ac_objext'
  6300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6301. (eval $ac_try) 2>&5
  6302. ac_status=$?
  6303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6304. (exit $ac_status); }; }; then
  6305. ac_cv_type_long=yes
  6306. else
  6307. echo "$as_me: failed program was:" >&5
  6308. sed 's/^/| /' conftest.$ac_ext >&5
  6309. ac_cv_type_long=no
  6310. fi
  6311. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. fi
  6313. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6314. echo "${ECHO_T}$ac_cv_type_long" >&6
  6315. echo "$as_me:$LINENO: checking size of long" >&5
  6316. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6317. if test "${ac_cv_sizeof_long+set}" = set; then
  6318. echo $ECHO_N "(cached) $ECHO_C" >&6
  6319. else
  6320. if test "$ac_cv_type_long" = yes; then
  6321. # The cast to unsigned long works around a bug in the HP C Compiler
  6322. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6323. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6324. # This bug is HP SR number 8606223364.
  6325. if test "$cross_compiling" = yes; then
  6326. # Depending upon the size, compute the lo and hi bounds.
  6327. cat >conftest.$ac_ext <<_ACEOF
  6328. /* confdefs.h. */
  6329. _ACEOF
  6330. cat confdefs.h >>conftest.$ac_ext
  6331. cat >>conftest.$ac_ext <<_ACEOF
  6332. /* end confdefs.h. */
  6333. $ac_includes_default
  6334. int
  6335. main ()
  6336. {
  6337. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6338. test_array [0] = 0
  6339. ;
  6340. return 0;
  6341. }
  6342. _ACEOF
  6343. rm -f conftest.$ac_objext
  6344. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6345. (eval $ac_compile) 2>conftest.er1
  6346. ac_status=$?
  6347. grep -v '^ *+' conftest.er1 >conftest.err
  6348. rm -f conftest.er1
  6349. cat conftest.err >&5
  6350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6351. (exit $ac_status); } &&
  6352. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6354. (eval $ac_try) 2>&5
  6355. ac_status=$?
  6356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6357. (exit $ac_status); }; } &&
  6358. { ac_try='test -s conftest.$ac_objext'
  6359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6360. (eval $ac_try) 2>&5
  6361. ac_status=$?
  6362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. (exit $ac_status); }; }; then
  6364. ac_lo=0 ac_mid=0
  6365. while :; do
  6366. cat >conftest.$ac_ext <<_ACEOF
  6367. /* confdefs.h. */
  6368. _ACEOF
  6369. cat confdefs.h >>conftest.$ac_ext
  6370. cat >>conftest.$ac_ext <<_ACEOF
  6371. /* end confdefs.h. */
  6372. $ac_includes_default
  6373. int
  6374. main ()
  6375. {
  6376. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6377. test_array [0] = 0
  6378. ;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. rm -f conftest.$ac_objext
  6383. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6384. (eval $ac_compile) 2>conftest.er1
  6385. ac_status=$?
  6386. grep -v '^ *+' conftest.er1 >conftest.err
  6387. rm -f conftest.er1
  6388. cat conftest.err >&5
  6389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6390. (exit $ac_status); } &&
  6391. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6393. (eval $ac_try) 2>&5
  6394. ac_status=$?
  6395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6396. (exit $ac_status); }; } &&
  6397. { ac_try='test -s conftest.$ac_objext'
  6398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6399. (eval $ac_try) 2>&5
  6400. ac_status=$?
  6401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6402. (exit $ac_status); }; }; then
  6403. ac_hi=$ac_mid; break
  6404. else
  6405. echo "$as_me: failed program was:" >&5
  6406. sed 's/^/| /' conftest.$ac_ext >&5
  6407. ac_lo=`expr $ac_mid + 1`
  6408. if test $ac_lo -le $ac_mid; then
  6409. ac_lo= ac_hi=
  6410. break
  6411. fi
  6412. ac_mid=`expr 2 '*' $ac_mid + 1`
  6413. fi
  6414. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6415. done
  6416. else
  6417. echo "$as_me: failed program was:" >&5
  6418. sed 's/^/| /' conftest.$ac_ext >&5
  6419. cat >conftest.$ac_ext <<_ACEOF
  6420. /* confdefs.h. */
  6421. _ACEOF
  6422. cat confdefs.h >>conftest.$ac_ext
  6423. cat >>conftest.$ac_ext <<_ACEOF
  6424. /* end confdefs.h. */
  6425. $ac_includes_default
  6426. int
  6427. main ()
  6428. {
  6429. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6430. test_array [0] = 0
  6431. ;
  6432. return 0;
  6433. }
  6434. _ACEOF
  6435. rm -f conftest.$ac_objext
  6436. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6437. (eval $ac_compile) 2>conftest.er1
  6438. ac_status=$?
  6439. grep -v '^ *+' conftest.er1 >conftest.err
  6440. rm -f conftest.er1
  6441. cat conftest.err >&5
  6442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6443. (exit $ac_status); } &&
  6444. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6446. (eval $ac_try) 2>&5
  6447. ac_status=$?
  6448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6449. (exit $ac_status); }; } &&
  6450. { ac_try='test -s conftest.$ac_objext'
  6451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6452. (eval $ac_try) 2>&5
  6453. ac_status=$?
  6454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6455. (exit $ac_status); }; }; then
  6456. ac_hi=-1 ac_mid=-1
  6457. while :; do
  6458. cat >conftest.$ac_ext <<_ACEOF
  6459. /* confdefs.h. */
  6460. _ACEOF
  6461. cat confdefs.h >>conftest.$ac_ext
  6462. cat >>conftest.$ac_ext <<_ACEOF
  6463. /* end confdefs.h. */
  6464. $ac_includes_default
  6465. int
  6466. main ()
  6467. {
  6468. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6469. test_array [0] = 0
  6470. ;
  6471. return 0;
  6472. }
  6473. _ACEOF
  6474. rm -f conftest.$ac_objext
  6475. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6476. (eval $ac_compile) 2>conftest.er1
  6477. ac_status=$?
  6478. grep -v '^ *+' conftest.er1 >conftest.err
  6479. rm -f conftest.er1
  6480. cat conftest.err >&5
  6481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6482. (exit $ac_status); } &&
  6483. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  6489. { ac_try='test -s conftest.$ac_objext'
  6490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6491. (eval $ac_try) 2>&5
  6492. ac_status=$?
  6493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6494. (exit $ac_status); }; }; then
  6495. ac_lo=$ac_mid; break
  6496. else
  6497. echo "$as_me: failed program was:" >&5
  6498. sed 's/^/| /' conftest.$ac_ext >&5
  6499. ac_hi=`expr '(' $ac_mid ')' - 1`
  6500. if test $ac_mid -le $ac_hi; then
  6501. ac_lo= ac_hi=
  6502. break
  6503. fi
  6504. ac_mid=`expr 2 '*' $ac_mid`
  6505. fi
  6506. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6507. done
  6508. else
  6509. echo "$as_me: failed program was:" >&5
  6510. sed 's/^/| /' conftest.$ac_ext >&5
  6511. ac_lo= ac_hi=
  6512. fi
  6513. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6514. fi
  6515. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6516. # Binary search between lo and hi bounds.
  6517. while test "x$ac_lo" != "x$ac_hi"; do
  6518. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6519. cat >conftest.$ac_ext <<_ACEOF
  6520. /* confdefs.h. */
  6521. _ACEOF
  6522. cat confdefs.h >>conftest.$ac_ext
  6523. cat >>conftest.$ac_ext <<_ACEOF
  6524. /* end confdefs.h. */
  6525. $ac_includes_default
  6526. int
  6527. main ()
  6528. {
  6529. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6530. test_array [0] = 0
  6531. ;
  6532. return 0;
  6533. }
  6534. _ACEOF
  6535. rm -f conftest.$ac_objext
  6536. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6537. (eval $ac_compile) 2>conftest.er1
  6538. ac_status=$?
  6539. grep -v '^ *+' conftest.er1 >conftest.err
  6540. rm -f conftest.er1
  6541. cat conftest.err >&5
  6542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6543. (exit $ac_status); } &&
  6544. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6546. (eval $ac_try) 2>&5
  6547. ac_status=$?
  6548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6549. (exit $ac_status); }; } &&
  6550. { ac_try='test -s conftest.$ac_objext'
  6551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6552. (eval $ac_try) 2>&5
  6553. ac_status=$?
  6554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6555. (exit $ac_status); }; }; then
  6556. ac_hi=$ac_mid
  6557. else
  6558. echo "$as_me: failed program was:" >&5
  6559. sed 's/^/| /' conftest.$ac_ext >&5
  6560. ac_lo=`expr '(' $ac_mid ')' + 1`
  6561. fi
  6562. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6563. done
  6564. case $ac_lo in
  6565. ?*) ac_cv_sizeof_long=$ac_lo;;
  6566. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6567. See \`config.log' for more details." >&5
  6568. echo "$as_me: error: cannot compute sizeof (long), 77
  6569. See \`config.log' for more details." >&2;}
  6570. { (exit 1); exit 1; }; } ;;
  6571. esac
  6572. else
  6573. if test "$cross_compiling" = yes; then
  6574. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6575. See \`config.log' for more details." >&5
  6576. echo "$as_me: error: cannot run test program while cross compiling
  6577. See \`config.log' for more details." >&2;}
  6578. { (exit 1); exit 1; }; }
  6579. else
  6580. cat >conftest.$ac_ext <<_ACEOF
  6581. /* confdefs.h. */
  6582. _ACEOF
  6583. cat confdefs.h >>conftest.$ac_ext
  6584. cat >>conftest.$ac_ext <<_ACEOF
  6585. /* end confdefs.h. */
  6586. $ac_includes_default
  6587. long longval () { return (long) (sizeof (long)); }
  6588. unsigned long ulongval () { return (long) (sizeof (long)); }
  6589. #include <stdio.h>
  6590. #include <stdlib.h>
  6591. int
  6592. main ()
  6593. {
  6594. FILE *f = fopen ("conftest.val", "w");
  6595. if (! f)
  6596. exit (1);
  6597. if (((long) (sizeof (long))) < 0)
  6598. {
  6599. long i = longval ();
  6600. if (i != ((long) (sizeof (long))))
  6601. exit (1);
  6602. fprintf (f, "%ld\n", i);
  6603. }
  6604. else
  6605. {
  6606. unsigned long i = ulongval ();
  6607. if (i != ((long) (sizeof (long))))
  6608. exit (1);
  6609. fprintf (f, "%lu\n", i);
  6610. }
  6611. exit (ferror (f) || fclose (f) != 0);
  6612. ;
  6613. return 0;
  6614. }
  6615. _ACEOF
  6616. rm -f conftest$ac_exeext
  6617. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6618. (eval $ac_link) 2>&5
  6619. ac_status=$?
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6623. (eval $ac_try) 2>&5
  6624. ac_status=$?
  6625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6626. (exit $ac_status); }; }; then
  6627. ac_cv_sizeof_long=`cat conftest.val`
  6628. else
  6629. echo "$as_me: program exited with status $ac_status" >&5
  6630. echo "$as_me: failed program was:" >&5
  6631. sed 's/^/| /' conftest.$ac_ext >&5
  6632. ( exit $ac_status )
  6633. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6634. See \`config.log' for more details." >&5
  6635. echo "$as_me: error: cannot compute sizeof (long), 77
  6636. See \`config.log' for more details." >&2;}
  6637. { (exit 1); exit 1; }; }
  6638. fi
  6639. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6640. fi
  6641. fi
  6642. rm -f conftest.val
  6643. else
  6644. ac_cv_sizeof_long=0
  6645. fi
  6646. fi
  6647. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6648. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6649. cat >>confdefs.h <<_ACEOF
  6650. #define SIZEOF_LONG $ac_cv_sizeof_long
  6651. _ACEOF
  6652. echo "$as_me:$LINENO: checking for int" >&5
  6653. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6654. if test "${ac_cv_type_int+set}" = set; then
  6655. echo $ECHO_N "(cached) $ECHO_C" >&6
  6656. else
  6657. cat >conftest.$ac_ext <<_ACEOF
  6658. /* confdefs.h. */
  6659. _ACEOF
  6660. cat confdefs.h >>conftest.$ac_ext
  6661. cat >>conftest.$ac_ext <<_ACEOF
  6662. /* end confdefs.h. */
  6663. $ac_includes_default
  6664. int
  6665. main ()
  6666. {
  6667. if ((int *) 0)
  6668. return 0;
  6669. if (sizeof (int))
  6670. return 0;
  6671. ;
  6672. return 0;
  6673. }
  6674. _ACEOF
  6675. rm -f conftest.$ac_objext
  6676. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6677. (eval $ac_compile) 2>conftest.er1
  6678. ac_status=$?
  6679. grep -v '^ *+' conftest.er1 >conftest.err
  6680. rm -f conftest.er1
  6681. cat conftest.err >&5
  6682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6683. (exit $ac_status); } &&
  6684. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6686. (eval $ac_try) 2>&5
  6687. ac_status=$?
  6688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6689. (exit $ac_status); }; } &&
  6690. { ac_try='test -s conftest.$ac_objext'
  6691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6692. (eval $ac_try) 2>&5
  6693. ac_status=$?
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); }; }; then
  6696. ac_cv_type_int=yes
  6697. else
  6698. echo "$as_me: failed program was:" >&5
  6699. sed 's/^/| /' conftest.$ac_ext >&5
  6700. ac_cv_type_int=no
  6701. fi
  6702. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6703. fi
  6704. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6705. echo "${ECHO_T}$ac_cv_type_int" >&6
  6706. echo "$as_me:$LINENO: checking size of int" >&5
  6707. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6708. if test "${ac_cv_sizeof_int+set}" = set; then
  6709. echo $ECHO_N "(cached) $ECHO_C" >&6
  6710. else
  6711. if test "$ac_cv_type_int" = yes; then
  6712. # The cast to unsigned long works around a bug in the HP C Compiler
  6713. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6714. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6715. # This bug is HP SR number 8606223364.
  6716. if test "$cross_compiling" = yes; then
  6717. # Depending upon the size, compute the lo and hi bounds.
  6718. cat >conftest.$ac_ext <<_ACEOF
  6719. /* confdefs.h. */
  6720. _ACEOF
  6721. cat confdefs.h >>conftest.$ac_ext
  6722. cat >>conftest.$ac_ext <<_ACEOF
  6723. /* end confdefs.h. */
  6724. $ac_includes_default
  6725. int
  6726. main ()
  6727. {
  6728. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6729. test_array [0] = 0
  6730. ;
  6731. return 0;
  6732. }
  6733. _ACEOF
  6734. rm -f conftest.$ac_objext
  6735. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6736. (eval $ac_compile) 2>conftest.er1
  6737. ac_status=$?
  6738. grep -v '^ *+' conftest.er1 >conftest.err
  6739. rm -f conftest.er1
  6740. cat conftest.err >&5
  6741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6742. (exit $ac_status); } &&
  6743. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6745. (eval $ac_try) 2>&5
  6746. ac_status=$?
  6747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6748. (exit $ac_status); }; } &&
  6749. { ac_try='test -s conftest.$ac_objext'
  6750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6751. (eval $ac_try) 2>&5
  6752. ac_status=$?
  6753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6754. (exit $ac_status); }; }; then
  6755. ac_lo=0 ac_mid=0
  6756. while :; do
  6757. cat >conftest.$ac_ext <<_ACEOF
  6758. /* confdefs.h. */
  6759. _ACEOF
  6760. cat confdefs.h >>conftest.$ac_ext
  6761. cat >>conftest.$ac_ext <<_ACEOF
  6762. /* end confdefs.h. */
  6763. $ac_includes_default
  6764. int
  6765. main ()
  6766. {
  6767. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6768. test_array [0] = 0
  6769. ;
  6770. return 0;
  6771. }
  6772. _ACEOF
  6773. rm -f conftest.$ac_objext
  6774. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6775. (eval $ac_compile) 2>conftest.er1
  6776. ac_status=$?
  6777. grep -v '^ *+' conftest.er1 >conftest.err
  6778. rm -f conftest.er1
  6779. cat conftest.err >&5
  6780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6781. (exit $ac_status); } &&
  6782. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6784. (eval $ac_try) 2>&5
  6785. ac_status=$?
  6786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6787. (exit $ac_status); }; } &&
  6788. { ac_try='test -s conftest.$ac_objext'
  6789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6790. (eval $ac_try) 2>&5
  6791. ac_status=$?
  6792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6793. (exit $ac_status); }; }; then
  6794. ac_hi=$ac_mid; break
  6795. else
  6796. echo "$as_me: failed program was:" >&5
  6797. sed 's/^/| /' conftest.$ac_ext >&5
  6798. ac_lo=`expr $ac_mid + 1`
  6799. if test $ac_lo -le $ac_mid; then
  6800. ac_lo= ac_hi=
  6801. break
  6802. fi
  6803. ac_mid=`expr 2 '*' $ac_mid + 1`
  6804. fi
  6805. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6806. done
  6807. else
  6808. echo "$as_me: failed program was:" >&5
  6809. sed 's/^/| /' conftest.$ac_ext >&5
  6810. cat >conftest.$ac_ext <<_ACEOF
  6811. /* confdefs.h. */
  6812. _ACEOF
  6813. cat confdefs.h >>conftest.$ac_ext
  6814. cat >>conftest.$ac_ext <<_ACEOF
  6815. /* end confdefs.h. */
  6816. $ac_includes_default
  6817. int
  6818. main ()
  6819. {
  6820. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6821. test_array [0] = 0
  6822. ;
  6823. return 0;
  6824. }
  6825. _ACEOF
  6826. rm -f conftest.$ac_objext
  6827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6828. (eval $ac_compile) 2>conftest.er1
  6829. ac_status=$?
  6830. grep -v '^ *+' conftest.er1 >conftest.err
  6831. rm -f conftest.er1
  6832. cat conftest.err >&5
  6833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6834. (exit $ac_status); } &&
  6835. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6836. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6837. (eval $ac_try) 2>&5
  6838. ac_status=$?
  6839. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6840. (exit $ac_status); }; } &&
  6841. { ac_try='test -s conftest.$ac_objext'
  6842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6843. (eval $ac_try) 2>&5
  6844. ac_status=$?
  6845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6846. (exit $ac_status); }; }; then
  6847. ac_hi=-1 ac_mid=-1
  6848. while :; do
  6849. cat >conftest.$ac_ext <<_ACEOF
  6850. /* confdefs.h. */
  6851. _ACEOF
  6852. cat confdefs.h >>conftest.$ac_ext
  6853. cat >>conftest.$ac_ext <<_ACEOF
  6854. /* end confdefs.h. */
  6855. $ac_includes_default
  6856. int
  6857. main ()
  6858. {
  6859. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6860. test_array [0] = 0
  6861. ;
  6862. return 0;
  6863. }
  6864. _ACEOF
  6865. rm -f conftest.$ac_objext
  6866. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6867. (eval $ac_compile) 2>conftest.er1
  6868. ac_status=$?
  6869. grep -v '^ *+' conftest.er1 >conftest.err
  6870. rm -f conftest.er1
  6871. cat conftest.err >&5
  6872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6873. (exit $ac_status); } &&
  6874. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6876. (eval $ac_try) 2>&5
  6877. ac_status=$?
  6878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6879. (exit $ac_status); }; } &&
  6880. { ac_try='test -s conftest.$ac_objext'
  6881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6882. (eval $ac_try) 2>&5
  6883. ac_status=$?
  6884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6885. (exit $ac_status); }; }; then
  6886. ac_lo=$ac_mid; break
  6887. else
  6888. echo "$as_me: failed program was:" >&5
  6889. sed 's/^/| /' conftest.$ac_ext >&5
  6890. ac_hi=`expr '(' $ac_mid ')' - 1`
  6891. if test $ac_mid -le $ac_hi; then
  6892. ac_lo= ac_hi=
  6893. break
  6894. fi
  6895. ac_mid=`expr 2 '*' $ac_mid`
  6896. fi
  6897. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6898. done
  6899. else
  6900. echo "$as_me: failed program was:" >&5
  6901. sed 's/^/| /' conftest.$ac_ext >&5
  6902. ac_lo= ac_hi=
  6903. fi
  6904. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6905. fi
  6906. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6907. # Binary search between lo and hi bounds.
  6908. while test "x$ac_lo" != "x$ac_hi"; do
  6909. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6910. cat >conftest.$ac_ext <<_ACEOF
  6911. /* confdefs.h. */
  6912. _ACEOF
  6913. cat confdefs.h >>conftest.$ac_ext
  6914. cat >>conftest.$ac_ext <<_ACEOF
  6915. /* end confdefs.h. */
  6916. $ac_includes_default
  6917. int
  6918. main ()
  6919. {
  6920. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6921. test_array [0] = 0
  6922. ;
  6923. return 0;
  6924. }
  6925. _ACEOF
  6926. rm -f conftest.$ac_objext
  6927. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6928. (eval $ac_compile) 2>conftest.er1
  6929. ac_status=$?
  6930. grep -v '^ *+' conftest.er1 >conftest.err
  6931. rm -f conftest.er1
  6932. cat conftest.err >&5
  6933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6934. (exit $ac_status); } &&
  6935. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6937. (eval $ac_try) 2>&5
  6938. ac_status=$?
  6939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6940. (exit $ac_status); }; } &&
  6941. { ac_try='test -s conftest.$ac_objext'
  6942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6943. (eval $ac_try) 2>&5
  6944. ac_status=$?
  6945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6946. (exit $ac_status); }; }; then
  6947. ac_hi=$ac_mid
  6948. else
  6949. echo "$as_me: failed program was:" >&5
  6950. sed 's/^/| /' conftest.$ac_ext >&5
  6951. ac_lo=`expr '(' $ac_mid ')' + 1`
  6952. fi
  6953. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6954. done
  6955. case $ac_lo in
  6956. ?*) ac_cv_sizeof_int=$ac_lo;;
  6957. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6958. See \`config.log' for more details." >&5
  6959. echo "$as_me: error: cannot compute sizeof (int), 77
  6960. See \`config.log' for more details." >&2;}
  6961. { (exit 1); exit 1; }; } ;;
  6962. esac
  6963. else
  6964. if test "$cross_compiling" = yes; then
  6965. { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
  6966. See \`config.log' for more details." >&5
  6967. echo "$as_me: error: cannot run test program while cross compiling
  6968. See \`config.log' for more details." >&2;}
  6969. { (exit 1); exit 1; }; }
  6970. else
  6971. cat >conftest.$ac_ext <<_ACEOF
  6972. /* confdefs.h. */
  6973. _ACEOF
  6974. cat confdefs.h >>conftest.$ac_ext
  6975. cat >>conftest.$ac_ext <<_ACEOF
  6976. /* end confdefs.h. */
  6977. $ac_includes_default
  6978. long longval () { return (long) (sizeof (int)); }
  6979. unsigned long ulongval () { return (long) (sizeof (int)); }
  6980. #include <stdio.h>
  6981. #include <stdlib.h>
  6982. int
  6983. main ()
  6984. {
  6985. FILE *f = fopen ("conftest.val", "w");
  6986. if (! f)
  6987. exit (1);
  6988. if (((long) (sizeof (int))) < 0)
  6989. {
  6990. long i = longval ();
  6991. if (i != ((long) (sizeof (int))))
  6992. exit (1);
  6993. fprintf (f, "%ld\n", i);
  6994. }
  6995. else
  6996. {
  6997. unsigned long i = ulongval ();
  6998. if (i != ((long) (sizeof (int))))
  6999. exit (1);
  7000. fprintf (f, "%lu\n", i);
  7001. }
  7002. exit (ferror (f) || fclose (f) != 0);
  7003. ;
  7004. return 0;
  7005. }
  7006. _ACEOF
  7007. rm -f conftest$ac_exeext
  7008. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7009. (eval $ac_link) 2>&5
  7010. ac_status=$?
  7011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7012. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7014. (eval $ac_try) 2>&5
  7015. ac_status=$?
  7016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7017. (exit $ac_status); }; }; then
  7018. ac_cv_sizeof_int=`cat conftest.val`
  7019. else
  7020. echo "$as_me: program exited with status $ac_status" >&5
  7021. echo "$as_me: failed program was:" >&5
  7022. sed 's/^/| /' conftest.$ac_ext >&5
  7023. ( exit $ac_status )
  7024. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7025. See \`config.log' for more details." >&5
  7026. echo "$as_me: error: cannot compute sizeof (int), 77
  7027. See \`config.log' for more details." >&2;}
  7028. { (exit 1); exit 1; }; }
  7029. fi
  7030. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7031. fi
  7032. fi
  7033. rm -f conftest.val
  7034. else
  7035. ac_cv_sizeof_int=0
  7036. fi
  7037. fi
  7038. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7039. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7040. cat >>confdefs.h <<_ACEOF
  7041. #define SIZEOF_INT $ac_cv_sizeof_int
  7042. _ACEOF
  7043. # Check for IPv6 support
  7044. #EGG_IPV6_SUPPORTED
  7045. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7046. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7047. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7048. if test "${enable_ipv6+set}" = set; then
  7049. enableval="$enable_ipv6"
  7050. ac_cv_dipv6="yes"
  7051. echo "$as_me:$LINENO: result: yes" >&5
  7052. echo "${ECHO_T}yes" >&6
  7053. else
  7054. ac_cv_dipv6="no"
  7055. if test "$egg_cv_ipv6_supported" = "no"; then
  7056. ac_cv_dipv6="no"
  7057. fi
  7058. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7059. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7060. fi;
  7061. if test "$ac_cv_dipv6" = "no"; then
  7062. cat >>confdefs.h <<\_ACEOF
  7063. #define HAVE_IPV6 1
  7064. _ACEOF
  7065. fi
  7066. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7067. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7068. if test "${egg_cv_socklen_t+set}" = set; then
  7069. echo $ECHO_N "(cached) $ECHO_C" >&6
  7070. else
  7071. if test "$cross_compiling" = yes; then
  7072. egg_cv_socklen_t=no
  7073. else
  7074. cat >conftest.$ac_ext <<_ACEOF
  7075. /* confdefs.h. */
  7076. _ACEOF
  7077. cat confdefs.h >>conftest.$ac_ext
  7078. cat >>conftest.$ac_ext <<_ACEOF
  7079. /* end confdefs.h. */
  7080. #include <unistd.h>
  7081. #include <sys/types.h>
  7082. #include <sys/socket.h>
  7083. #include <netinet/in.h>
  7084. #include <arpa/inet.h>
  7085. int main()
  7086. {
  7087. socklen_t test = sizeof(int);
  7088. return 0;
  7089. }
  7090. _ACEOF
  7091. rm -f conftest$ac_exeext
  7092. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7093. (eval $ac_link) 2>&5
  7094. ac_status=$?
  7095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7096. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7098. (eval $ac_try) 2>&5
  7099. ac_status=$?
  7100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7101. (exit $ac_status); }; }; then
  7102. egg_cv_socklen_t=yes
  7103. else
  7104. echo "$as_me: program exited with status $ac_status" >&5
  7105. echo "$as_me: failed program was:" >&5
  7106. sed 's/^/| /' conftest.$ac_ext >&5
  7107. ( exit $ac_status )
  7108. egg_cv_socklen_t=no
  7109. fi
  7110. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7111. fi
  7112. fi
  7113. if test "$egg_cv_socklen_t" = "yes"; then
  7114. cat >>confdefs.h <<\_ACEOF
  7115. #define HAVE_SOCKLEN_T 1
  7116. _ACEOF
  7117. echo "$as_me:$LINENO: result: yes" >&5
  7118. echo "${ECHO_T}yes" >&6
  7119. else
  7120. echo "$as_me:$LINENO: result: no" >&5
  7121. echo "${ECHO_T}no" >&6
  7122. fi
  7123. # Checks for library functions
  7124. for ac_func in clock getrusage setpgid uname sigaction sigemptyset rename strcasecmp strncasecmp getdtablesize memset random srandom
  7125. do
  7126. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7127. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7128. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7129. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7130. echo $ECHO_N "(cached) $ECHO_C" >&6
  7131. else
  7132. cat >conftest.$ac_ext <<_ACEOF
  7133. /* confdefs.h. */
  7134. _ACEOF
  7135. cat confdefs.h >>conftest.$ac_ext
  7136. cat >>conftest.$ac_ext <<_ACEOF
  7137. /* end confdefs.h. */
  7138. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7139. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7140. #define $ac_func innocuous_$ac_func
  7141. /* System header to define __stub macros and hopefully few prototypes,
  7142. which can conflict with char $ac_func (); below.
  7143. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7144. <limits.h> exists even on freestanding compilers. */
  7145. #ifdef __STDC__
  7146. # include <limits.h>
  7147. #else
  7148. # include <assert.h>
  7149. #endif
  7150. #undef $ac_func
  7151. /* Override any gcc2 internal prototype to avoid an error. */
  7152. #ifdef __cplusplus
  7153. extern "C"
  7154. {
  7155. #endif
  7156. /* We use char because int might match the return type of a gcc2
  7157. builtin and then its argument prototype would still apply. */
  7158. char $ac_func ();
  7159. /* The GNU C library defines this for functions which it implements
  7160. to always fail with ENOSYS. Some functions are actually named
  7161. something starting with __ and the normal name is an alias. */
  7162. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7163. choke me
  7164. #else
  7165. char (*f) () = $ac_func;
  7166. #endif
  7167. #ifdef __cplusplus
  7168. }
  7169. #endif
  7170. int
  7171. main ()
  7172. {
  7173. return f != $ac_func;
  7174. ;
  7175. return 0;
  7176. }
  7177. _ACEOF
  7178. rm -f conftest.$ac_objext conftest$ac_exeext
  7179. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7180. (eval $ac_link) 2>conftest.er1
  7181. ac_status=$?
  7182. grep -v '^ *+' conftest.er1 >conftest.err
  7183. rm -f conftest.er1
  7184. cat conftest.err >&5
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. (exit $ac_status); } &&
  7187. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7189. (eval $ac_try) 2>&5
  7190. ac_status=$?
  7191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7192. (exit $ac_status); }; } &&
  7193. { ac_try='test -s conftest$ac_exeext'
  7194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7195. (eval $ac_try) 2>&5
  7196. ac_status=$?
  7197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. (exit $ac_status); }; }; then
  7199. eval "$as_ac_var=yes"
  7200. else
  7201. echo "$as_me: failed program was:" >&5
  7202. sed 's/^/| /' conftest.$ac_ext >&5
  7203. eval "$as_ac_var=no"
  7204. fi
  7205. rm -f conftest.err conftest.$ac_objext \
  7206. conftest$ac_exeext conftest.$ac_ext
  7207. fi
  7208. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7209. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7210. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7211. cat >>confdefs.h <<_ACEOF
  7212. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7213. _ACEOF
  7214. fi
  7215. done
  7216. for ac_func in dlopen dprintf snprintf vsnprintf isascii inet_aton inet_ntop memcpy strftime fsync gethostbyname2 getipnodebyname
  7217. do
  7218. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7219. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7220. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7221. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7222. echo $ECHO_N "(cached) $ECHO_C" >&6
  7223. else
  7224. cat >conftest.$ac_ext <<_ACEOF
  7225. /* confdefs.h. */
  7226. _ACEOF
  7227. cat confdefs.h >>conftest.$ac_ext
  7228. cat >>conftest.$ac_ext <<_ACEOF
  7229. /* end confdefs.h. */
  7230. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7231. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7232. #define $ac_func innocuous_$ac_func
  7233. /* System header to define __stub macros and hopefully few prototypes,
  7234. which can conflict with char $ac_func (); below.
  7235. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7236. <limits.h> exists even on freestanding compilers. */
  7237. #ifdef __STDC__
  7238. # include <limits.h>
  7239. #else
  7240. # include <assert.h>
  7241. #endif
  7242. #undef $ac_func
  7243. /* Override any gcc2 internal prototype to avoid an error. */
  7244. #ifdef __cplusplus
  7245. extern "C"
  7246. {
  7247. #endif
  7248. /* We use char because int might match the return type of a gcc2
  7249. builtin and then its argument prototype would still apply. */
  7250. char $ac_func ();
  7251. /* The GNU C library defines this for functions which it implements
  7252. to always fail with ENOSYS. Some functions are actually named
  7253. something starting with __ and the normal name is an alias. */
  7254. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7255. choke me
  7256. #else
  7257. char (*f) () = $ac_func;
  7258. #endif
  7259. #ifdef __cplusplus
  7260. }
  7261. #endif
  7262. int
  7263. main ()
  7264. {
  7265. return f != $ac_func;
  7266. ;
  7267. return 0;
  7268. }
  7269. _ACEOF
  7270. rm -f conftest.$ac_objext conftest$ac_exeext
  7271. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7272. (eval $ac_link) 2>conftest.er1
  7273. ac_status=$?
  7274. grep -v '^ *+' conftest.er1 >conftest.err
  7275. rm -f conftest.er1
  7276. cat conftest.err >&5
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); } &&
  7279. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7281. (eval $ac_try) 2>&5
  7282. ac_status=$?
  7283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7284. (exit $ac_status); }; } &&
  7285. { ac_try='test -s conftest$ac_exeext'
  7286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7287. (eval $ac_try) 2>&5
  7288. ac_status=$?
  7289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7290. (exit $ac_status); }; }; then
  7291. eval "$as_ac_var=yes"
  7292. else
  7293. echo "$as_me: failed program was:" >&5
  7294. sed 's/^/| /' conftest.$ac_ext >&5
  7295. eval "$as_ac_var=no"
  7296. fi
  7297. rm -f conftest.err conftest.$ac_objext \
  7298. conftest$ac_exeext conftest.$ac_ext
  7299. fi
  7300. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7301. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7302. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7303. cat >>confdefs.h <<_ACEOF
  7304. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7305. _ACEOF
  7306. fi
  7307. done
  7308. for ac_func in vsprintf
  7309. do
  7310. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7311. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7312. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7313. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7314. echo $ECHO_N "(cached) $ECHO_C" >&6
  7315. else
  7316. cat >conftest.$ac_ext <<_ACEOF
  7317. /* confdefs.h. */
  7318. _ACEOF
  7319. cat confdefs.h >>conftest.$ac_ext
  7320. cat >>conftest.$ac_ext <<_ACEOF
  7321. /* end confdefs.h. */
  7322. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7323. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7324. #define $ac_func innocuous_$ac_func
  7325. /* System header to define __stub macros and hopefully few prototypes,
  7326. which can conflict with char $ac_func (); below.
  7327. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7328. <limits.h> exists even on freestanding compilers. */
  7329. #ifdef __STDC__
  7330. # include <limits.h>
  7331. #else
  7332. # include <assert.h>
  7333. #endif
  7334. #undef $ac_func
  7335. /* Override any gcc2 internal prototype to avoid an error. */
  7336. #ifdef __cplusplus
  7337. extern "C"
  7338. {
  7339. #endif
  7340. /* We use char because int might match the return type of a gcc2
  7341. builtin and then its argument prototype would still apply. */
  7342. char $ac_func ();
  7343. /* The GNU C library defines this for functions which it implements
  7344. to always fail with ENOSYS. Some functions are actually named
  7345. something starting with __ and the normal name is an alias. */
  7346. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7347. choke me
  7348. #else
  7349. char (*f) () = $ac_func;
  7350. #endif
  7351. #ifdef __cplusplus
  7352. }
  7353. #endif
  7354. int
  7355. main ()
  7356. {
  7357. return f != $ac_func;
  7358. ;
  7359. return 0;
  7360. }
  7361. _ACEOF
  7362. rm -f conftest.$ac_objext conftest$ac_exeext
  7363. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7364. (eval $ac_link) 2>conftest.er1
  7365. ac_status=$?
  7366. grep -v '^ *+' conftest.er1 >conftest.err
  7367. rm -f conftest.er1
  7368. cat conftest.err >&5
  7369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. (exit $ac_status); } &&
  7371. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7373. (eval $ac_try) 2>&5
  7374. ac_status=$?
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); }; } &&
  7377. { ac_try='test -s conftest$ac_exeext'
  7378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7379. (eval $ac_try) 2>&5
  7380. ac_status=$?
  7381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7382. (exit $ac_status); }; }; then
  7383. eval "$as_ac_var=yes"
  7384. else
  7385. echo "$as_me: failed program was:" >&5
  7386. sed 's/^/| /' conftest.$ac_ext >&5
  7387. eval "$as_ac_var=no"
  7388. fi
  7389. rm -f conftest.err conftest.$ac_objext \
  7390. conftest$ac_exeext conftest.$ac_ext
  7391. fi
  7392. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7393. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7394. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7395. cat >>confdefs.h <<_ACEOF
  7396. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7397. _ACEOF
  7398. fi
  7399. done
  7400. if test "$ac_cv_func_vsprintf" = "no"
  7401. then
  7402. cat << 'EOF' >&2
  7403. configure: error:
  7404. Your system does not have the sprintf/vsprintf libraries.
  7405. These are required to compile almost anything. Sorry.
  7406. EOF
  7407. exit 1
  7408. fi
  7409. for ac_func in uname
  7410. do
  7411. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7412. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7413. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7414. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7415. echo $ECHO_N "(cached) $ECHO_C" >&6
  7416. else
  7417. cat >conftest.$ac_ext <<_ACEOF
  7418. /* confdefs.h. */
  7419. _ACEOF
  7420. cat confdefs.h >>conftest.$ac_ext
  7421. cat >>conftest.$ac_ext <<_ACEOF
  7422. /* end confdefs.h. */
  7423. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7424. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7425. #define $ac_func innocuous_$ac_func
  7426. /* System header to define __stub macros and hopefully few prototypes,
  7427. which can conflict with char $ac_func (); below.
  7428. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7429. <limits.h> exists even on freestanding compilers. */
  7430. #ifdef __STDC__
  7431. # include <limits.h>
  7432. #else
  7433. # include <assert.h>
  7434. #endif
  7435. #undef $ac_func
  7436. /* Override any gcc2 internal prototype to avoid an error. */
  7437. #ifdef __cplusplus
  7438. extern "C"
  7439. {
  7440. #endif
  7441. /* We use char because int might match the return type of a gcc2
  7442. builtin and then its argument prototype would still apply. */
  7443. char $ac_func ();
  7444. /* The GNU C library defines this for functions which it implements
  7445. to always fail with ENOSYS. Some functions are actually named
  7446. something starting with __ and the normal name is an alias. */
  7447. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7448. choke me
  7449. #else
  7450. char (*f) () = $ac_func;
  7451. #endif
  7452. #ifdef __cplusplus
  7453. }
  7454. #endif
  7455. int
  7456. main ()
  7457. {
  7458. return f != $ac_func;
  7459. ;
  7460. return 0;
  7461. }
  7462. _ACEOF
  7463. rm -f conftest.$ac_objext conftest$ac_exeext
  7464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7465. (eval $ac_link) 2>conftest.er1
  7466. ac_status=$?
  7467. grep -v '^ *+' conftest.er1 >conftest.err
  7468. rm -f conftest.er1
  7469. cat conftest.err >&5
  7470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7471. (exit $ac_status); } &&
  7472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7474. (eval $ac_try) 2>&5
  7475. ac_status=$?
  7476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7477. (exit $ac_status); }; } &&
  7478. { ac_try='test -s conftest$ac_exeext'
  7479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7480. (eval $ac_try) 2>&5
  7481. ac_status=$?
  7482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7483. (exit $ac_status); }; }; then
  7484. eval "$as_ac_var=yes"
  7485. else
  7486. echo "$as_me: failed program was:" >&5
  7487. sed 's/^/| /' conftest.$ac_ext >&5
  7488. eval "$as_ac_var=no"
  7489. fi
  7490. rm -f conftest.err conftest.$ac_objext \
  7491. conftest$ac_exeext conftest.$ac_ext
  7492. fi
  7493. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7494. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7495. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7496. cat >>confdefs.h <<_ACEOF
  7497. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7498. _ACEOF
  7499. fi
  7500. done
  7501. if test "$ac_cv_func_uname" = "no"
  7502. then
  7503. cat << 'EOF' >&2
  7504. configure: error:
  7505. Your system does not have the uname() function.
  7506. This is required for the botpack.
  7507. EOF
  7508. exit 1
  7509. fi
  7510. # Make sure we have stdc headers, since we can't compile without them
  7511. if test "$ac_cv_header_stdc" = "no"
  7512. then
  7513. cat << 'EOF' >&2
  7514. configure: error:
  7515. Your system must support ANSI C Header files.
  7516. These are required for the language support. Sorry.
  7517. EOF
  7518. exit 1
  7519. fi
  7520. # Make sure we are using the correct result from a broken libsafe sscanf
  7521. echo "$as_me:$LINENO: checking for broken libsafe sscanf" >&5
  7522. echo $ECHO_N "checking for broken libsafe sscanf... $ECHO_C" >&6
  7523. if test "${egg_cv_var_libsafe_sscanf+set}" = set; then
  7524. echo $ECHO_N "(cached) $ECHO_C" >&6
  7525. else
  7526. if test "$cross_compiling" = yes; then
  7527. egg_cv_var_libsafe_sscanf="no"
  7528. else
  7529. cat >conftest.$ac_ext <<_ACEOF
  7530. /* confdefs.h. */
  7531. _ACEOF
  7532. cat confdefs.h >>conftest.$ac_ext
  7533. cat >>conftest.$ac_ext <<_ACEOF
  7534. /* end confdefs.h. */
  7535. #include <stdio.h>
  7536. int main()
  7537. {
  7538. char *src = "0x001,guppyism\n";
  7539. char dst[10];
  7540. int idx;
  7541. if (sscanf(src, "0x%x,%10c", &idx, dst) == 1)
  7542. exit(1);
  7543. return 0;
  7544. }
  7545. _ACEOF
  7546. rm -f conftest$ac_exeext
  7547. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7548. (eval $ac_link) 2>&5
  7549. ac_status=$?
  7550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7551. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7553. (eval $ac_try) 2>&5
  7554. ac_status=$?
  7555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7556. (exit $ac_status); }; }; then
  7557. egg_cv_var_libsafe_sscanf="no"
  7558. else
  7559. echo "$as_me: program exited with status $ac_status" >&5
  7560. echo "$as_me: failed program was:" >&5
  7561. sed 's/^/| /' conftest.$ac_ext >&5
  7562. ( exit $ac_status )
  7563. egg_cv_var_libsafe_sscanf="yes"
  7564. fi
  7565. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7566. fi
  7567. fi
  7568. echo "$as_me:$LINENO: result: $egg_cv_var_libsafe_sscanf" >&5
  7569. echo "${ECHO_T}$egg_cv_var_libsafe_sscanf" >&6
  7570. if test "$egg_cv_var_libsafe_sscanf" = "yes"
  7571. then
  7572. cat >>confdefs.h <<\_ACEOF
  7573. #define LIBSAFE_HACKS 1
  7574. _ACEOF
  7575. fi
  7576. # Where is Tcl? Is it here?
  7577. # ---------- begin robey's Tcl thingies
  7578. # (well, what used to be robey's Tcl thingies...)
  7579. # Latest tested Tcl version to recommend if Tcl isn't found
  7580. tclrecommendver="8.4"
  7581. # Site recommended to download Tcl from
  7582. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  7583. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  7584. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  7585. tcl8.0 tcl80"
  7586. # Tcl library filename suffixes
  7587. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  7588. # Tcl library search paths
  7589. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  7590. /usr/local/lib /usr/local/pkgs/tcl/lib \
  7591. /usr/lib /lib /usr/i486-linuxaout/lib \
  7592. /beos/system/lib /sys/lib"
  7593. # Tcl header filenames
  7594. tclheadernames="tcl.h"
  7595. # Tcl header search paths
  7596. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  7597. /usr/local/include /usr/local/pkgs/tcl/include \
  7598. /usr/include /beos/system/include /beos/devel/include \
  7599. /sys/include"
  7600. # oohh new configure --variables for those with multiple Tcl libs
  7601. # Check whether --with-tcllib or --without-tcllib was given.
  7602. if test "${with_tcllib+set}" = set; then
  7603. withval="$with_tcllib"
  7604. tcllibname="$withval"
  7605. fi;
  7606. # Check whether --with-tclinc or --without-tclinc was given.
  7607. if test "${with_tclinc+set}" = set; then
  7608. withval="$with_tclinc"
  7609. tclincname="$withval"
  7610. fi;
  7611. WARN=0
  7612. # Make sure either both or neither $tcllibname and $tclincname are set
  7613. if test ! "${tcllibname-x}" = "x"
  7614. then
  7615. if test "${tclincname-x}" = "x"
  7616. then
  7617. WARN=1
  7618. tcllibname=""
  7619. TCLLIB=""
  7620. TCLINC=""
  7621. fi
  7622. else
  7623. if test ! "${tclincname-x}" = "x"
  7624. then
  7625. WARN=1
  7626. tclincname=""
  7627. TCLLIB=""
  7628. TCLINC=""
  7629. fi
  7630. fi
  7631. if test "$WARN" = 1
  7632. then
  7633. cat << 'EOF' >&2
  7634. configure: warning:
  7635. You must specify both --with-tcllib and --with-tclinc for them to work.
  7636. configure will now attempt to autodetect both the Tcl library and header...
  7637. EOF
  7638. fi
  7639. WARN=0
  7640. # Make sure either both or neither $TCLLIB and $TCLINC are set
  7641. if test ! "${TCLLIB-x}" = "x"
  7642. then
  7643. if test "${TCLINC-x}" = "x"
  7644. then
  7645. WARN=1
  7646. WVAR1=TCLLIB
  7647. WVAR2=TCLINC
  7648. TCLLIB=""
  7649. fi
  7650. else
  7651. if test ! "${TCLINC-x}" = "x"
  7652. then
  7653. WARN=1
  7654. WVAR1=TCLINC
  7655. WVAR2=TCLLIB
  7656. TCLINC=""
  7657. fi
  7658. fi
  7659. if test "$WARN" = 1
  7660. then
  7661. cat << EOF >&2
  7662. configure: warning:
  7663. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  7664. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  7665. configure will now attempt to autodetect both the Tcl library and header...
  7666. EOF
  7667. fi
  7668. # Look for Tcl library: if $tcllibname is set, check there first
  7669. if test ! "${tcllibname-x}" = "x"
  7670. then
  7671. if test -f "$tcllibname" && test -r "$tcllibname"
  7672. then
  7673. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  7674. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  7675. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  7676. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  7677. else
  7678. cat << EOF >&2
  7679. configure: warning:
  7680. The file '$tcllibname' given to option --with-tcllib is not valid.
  7681. configure will now attempt to autodetect both the Tcl library and header...
  7682. EOF
  7683. tcllibname=""
  7684. tclincname=""
  7685. TCLLIB=""
  7686. TCLLIBFN=""
  7687. TCLINC=""
  7688. TCLINCFN=""
  7689. fi
  7690. fi
  7691. # Look for Tcl header: if $tclincname is set, check there first
  7692. if test ! "${tclincname-x}" = "x"
  7693. then
  7694. if test -f "$tclincname" && test -r "$tclincname"
  7695. then
  7696. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  7697. TCLINCFN=`$BASENAME $tclincname`
  7698. else
  7699. cat << EOF >&2
  7700. configure: warning:
  7701. The file '$tclincname' given to option --with-tclinc is not valid.
  7702. configure will now attempt to autodetect both the Tcl library and header...
  7703. EOF
  7704. tcllibname=""
  7705. tclincname=""
  7706. TCLLIB=""
  7707. TCLLIBFN=""
  7708. TCLINC=""
  7709. TCLINCFN=""
  7710. fi
  7711. fi
  7712. # Look for Tcl library: if $TCLLIB is set, check there first
  7713. if test "${TCLLIBFN-x}" = "x"
  7714. then
  7715. if test ! "${TCLLIB-x}" = "x"
  7716. then
  7717. if test -d "$TCLLIB"
  7718. then
  7719. for tcllibfns in $tcllibnames
  7720. do
  7721. for tcllibext in $tcllibextensions
  7722. do
  7723. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  7724. then
  7725. TCLLIBFN="$tcllibfns$tcllibext"
  7726. TCLLIBEXT="$tcllibext"
  7727. TCLLIBFNS="$tcllibfns"
  7728. break 2
  7729. fi
  7730. done
  7731. done
  7732. fi
  7733. if test "${TCLLIBFN-x}" = "x"
  7734. then
  7735. cat << 'EOF' >&2
  7736. configure: warning:
  7737. Environment variable TCLLIB was set, but incorrect.
  7738. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  7739. configure will now attempt to autodetect both the Tcl library and header...
  7740. EOF
  7741. TCLLIB=""
  7742. TCLLIBFN=""
  7743. TCLINC=""
  7744. TCLINCFN=""
  7745. fi
  7746. fi
  7747. fi
  7748. # Look for Tcl header: if $TCLINC is set, check there first
  7749. if test "${TCLINCFN-x}" = "x"
  7750. then
  7751. if test ! "${TCLINC-x}" = "x"
  7752. then
  7753. if test -d "$TCLINC"
  7754. then
  7755. for tclheaderfn in $tclheadernames
  7756. do
  7757. if test -r "$TCLINC/$tclheaderfn"
  7758. then
  7759. TCLINCFN="$tclheaderfn"
  7760. break
  7761. fi
  7762. done
  7763. fi
  7764. if test "${TCLINCFN-x}" = "x"
  7765. then
  7766. cat << 'EOF' >&2
  7767. configure: warning:
  7768. Environment variable TCLINC was set, but incorrect.
  7769. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  7770. configure will now attempt to autodetect both the Tcl library and header...
  7771. EOF
  7772. TCLLIB=""
  7773. TCLLIBFN=""
  7774. TCLINC=""
  7775. TCLINCFN=""
  7776. fi
  7777. fi
  7778. fi
  7779. echo "$as_me:$LINENO: checking for Tcl library" >&5
  7780. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  7781. # Attempt autodetect for $TCLLIBFN if it's not set
  7782. if test ! "${TCLLIBFN-x}" = "x"
  7783. then
  7784. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  7785. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  7786. else
  7787. for tcllibfns in $tcllibnames
  7788. do
  7789. for tcllibext in $tcllibextensions
  7790. do
  7791. for tcllibpath in $tcllibpaths
  7792. do
  7793. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  7794. then
  7795. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  7796. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  7797. TCLLIB="$tcllibpath"
  7798. TCLLIBFN="$tcllibfns$tcllibext"
  7799. TCLLIBEXT="$tcllibext"
  7800. TCLLIBFNS="$tcllibfns"
  7801. break 3
  7802. fi
  7803. done
  7804. done
  7805. done
  7806. fi
  7807. # Show if $TCLLIBFN wasn't found
  7808. if test "${TCLLIBFN-x}" = "x"
  7809. then
  7810. echo "$as_me:$LINENO: result: not found" >&5
  7811. echo "${ECHO_T}not found" >&6
  7812. fi
  7813. echo "$as_me:$LINENO: checking for Tcl header" >&5
  7814. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  7815. # Attempt autodetect for $TCLINCFN if it's not set
  7816. if test ! "${TCLINCFN-x}" = "x"
  7817. then
  7818. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  7819. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  7820. else
  7821. for tclheaderpath in $tclheaderpaths
  7822. do
  7823. for tclheaderfn in $tclheadernames
  7824. do
  7825. if test -r "$tclheaderpath/$tclheaderfn"
  7826. then
  7827. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  7828. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  7829. TCLINC="$tclheaderpath"
  7830. TCLINCFN="$tclheaderfn"
  7831. break 2
  7832. fi
  7833. done
  7834. done
  7835. # FreeBSD hack ...
  7836. if test "${TCLINCFN-x}" = "x"
  7837. then
  7838. for tcllibfns in $tcllibnames
  7839. do
  7840. for tclheaderpath in $tclheaderpaths
  7841. do
  7842. for tclheaderfn in $tclheadernames
  7843. do
  7844. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  7845. then
  7846. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  7847. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  7848. TCLINC="$tclheaderpath/$tcllibfns"
  7849. TCLINCFN="$tclheaderfn"
  7850. break 3
  7851. fi
  7852. done
  7853. done
  7854. done
  7855. fi
  7856. fi
  7857. # Show if $TCLINCFN wasn't found
  7858. if test "${TCLINCFN-x}" = "x"
  7859. then
  7860. echo "$as_me:$LINENO: result: not found" >&5
  7861. echo "${ECHO_T}not found" >&6
  7862. fi
  7863. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  7864. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  7865. egg_tcl_changed=yes
  7866. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  7867. if test ! "$egg_tcl_id" = ":::"
  7868. then
  7869. egg_tcl_cached=yes
  7870. if test "${egg_cv_var_tcl_id+set}" = set; then
  7871. echo $ECHO_N "(cached) $ECHO_C" >&6
  7872. else
  7873. egg_cv_var_tcl_id="$egg_tcl_id"
  7874. egg_tcl_cached=no
  7875. fi
  7876. if test "$egg_tcl_cached" = "yes"
  7877. then
  7878. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  7879. then
  7880. egg_tcl_changed=no
  7881. else
  7882. egg_cv_var_tcl_id="$egg_tcl_id"
  7883. fi
  7884. fi
  7885. fi
  7886. if test "$egg_tcl_changed" = "yes"
  7887. then
  7888. echo "$as_me:$LINENO: result: yes" >&5
  7889. echo "${ECHO_T}yes" >&6
  7890. else
  7891. echo "$as_me:$LINENO: result: no" >&5
  7892. echo "${ECHO_T}no" >&6
  7893. fi
  7894. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  7895. TCL_FOUND=0
  7896. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  7897. then
  7898. TCL_FOUND=1
  7899. # Check Tcl's version
  7900. if test "$egg_tcl_changed" = "yes"
  7901. then
  7902. unset egg_cv_var_tcl_version
  7903. fi
  7904. echo "$as_me:$LINENO: checking for Tcl version" >&5
  7905. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  7906. if test "${egg_cv_var_tcl_version+set}" = set; then
  7907. echo $ECHO_N "(cached) $ECHO_C" >&6
  7908. else
  7909. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  7910. fi
  7911. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  7912. then
  7913. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  7914. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  7915. else
  7916. echo "$as_me:$LINENO: result: not found" >&5
  7917. echo "${ECHO_T}not found" >&6
  7918. TCL_FOUND=0
  7919. fi
  7920. # Check Tcl's patch level (if available)
  7921. if test "$egg_tcl_changed" = "yes"
  7922. then
  7923. unset egg_cv_var_tcl_patch_level
  7924. fi
  7925. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  7926. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  7927. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  7928. echo $ECHO_N "(cached) $ECHO_C" >&6
  7929. else
  7930. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  7931. fi
  7932. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  7933. then
  7934. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  7935. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  7936. else
  7937. egg_cv_var_tcl_patch_level="unknown"
  7938. echo "$as_me:$LINENO: result: unknown" >&5
  7939. echo "${ECHO_T}unknown" >&6
  7940. fi
  7941. fi
  7942. # Check if we found Tcl's version
  7943. if test "$TCL_FOUND" = 0
  7944. then
  7945. cat << 'EOF' >&2
  7946. configure: error:
  7947. I can't find Tcl on this system.
  7948. You must set the path for it in pack/conf.h
  7949. EOF
  7950. exit 1
  7951. fi
  7952. # Is this version of Tcl too old for us to use ?
  7953. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  7954. if test "$TCL_VER_PRE80" = "yes"
  7955. then
  7956. cat << EOF >&2
  7957. configure: error:
  7958. Your Tcl version is much too old for Eggdrop to use.
  7959. I suggest you download and compile a more recent version.
  7960. The most reliable current version is $tclrecommendver and
  7961. can be downloaded from $tclrecommendsite
  7962. EOF
  7963. exit 1
  7964. fi
  7965. # Set variables for Tcl library tests
  7966. TCL_TEST_LIB="$TCLLIBFNS"
  7967. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  7968. if test ! "${ac_cv_lib_pthread-x}" = "x"
  7969. then
  7970. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  7971. fi
  7972. if test "$egg_tcl_changed" = "yes"
  7973. then
  7974. unset egg_cv_var_tcl_free
  7975. fi
  7976. # Check for Tcl_Free()
  7977. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  7978. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  7979. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  7980. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  7981. echo $ECHO_N "(cached) $ECHO_C" >&6
  7982. else
  7983. ac_check_lib_save_LIBS=$LIBS
  7984. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  7985. cat >conftest.$ac_ext <<_ACEOF
  7986. /* confdefs.h. */
  7987. _ACEOF
  7988. cat confdefs.h >>conftest.$ac_ext
  7989. cat >>conftest.$ac_ext <<_ACEOF
  7990. /* end confdefs.h. */
  7991. /* Override any gcc2 internal prototype to avoid an error. */
  7992. #ifdef __cplusplus
  7993. extern "C"
  7994. #endif
  7995. /* We use char because int might match the return type of a gcc2
  7996. builtin and then its argument prototype would still apply. */
  7997. char Tcl_Free ();
  7998. int
  7999. main ()
  8000. {
  8001. Tcl_Free ();
  8002. ;
  8003. return 0;
  8004. }
  8005. _ACEOF
  8006. rm -f conftest.$ac_objext conftest$ac_exeext
  8007. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8008. (eval $ac_link) 2>conftest.er1
  8009. ac_status=$?
  8010. grep -v '^ *+' conftest.er1 >conftest.err
  8011. rm -f conftest.er1
  8012. cat conftest.err >&5
  8013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8014. (exit $ac_status); } &&
  8015. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8016. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8017. (eval $ac_try) 2>&5
  8018. ac_status=$?
  8019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8020. (exit $ac_status); }; } &&
  8021. { ac_try='test -s conftest$ac_exeext'
  8022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8023. (eval $ac_try) 2>&5
  8024. ac_status=$?
  8025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8026. (exit $ac_status); }; }; then
  8027. eval "$as_ac_Lib=yes"
  8028. else
  8029. echo "$as_me: failed program was:" >&5
  8030. sed 's/^/| /' conftest.$ac_ext >&5
  8031. eval "$as_ac_Lib=no"
  8032. fi
  8033. rm -f conftest.err conftest.$ac_objext \
  8034. conftest$ac_exeext conftest.$ac_ext
  8035. LIBS=$ac_check_lib_save_LIBS
  8036. fi
  8037. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  8038. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  8039. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  8040. egg_cv_var_tcl_free="yes"
  8041. else
  8042. egg_cv_var_tcl_free="no"
  8043. fi
  8044. if test "$egg_cv_var_tcl_free" = "yes"
  8045. then
  8046. cat >>confdefs.h <<\_ACEOF
  8047. #define HAVE_TCL_FREE 1
  8048. _ACEOF
  8049. fi
  8050. if test "$egg_tcl_changed" = "yes"
  8051. then
  8052. unset egg_cv_var_tcl_threaded
  8053. fi
  8054. # Check for TclpFinalizeThreadData()
  8055. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  8056. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  8057. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  8058. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  8059. echo $ECHO_N "(cached) $ECHO_C" >&6
  8060. else
  8061. ac_check_lib_save_LIBS=$LIBS
  8062. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  8063. cat >conftest.$ac_ext <<_ACEOF
  8064. /* confdefs.h. */
  8065. _ACEOF
  8066. cat confdefs.h >>conftest.$ac_ext
  8067. cat >>conftest.$ac_ext <<_ACEOF
  8068. /* end confdefs.h. */
  8069. /* Override any gcc2 internal prototype to avoid an error. */
  8070. #ifdef __cplusplus
  8071. extern "C"
  8072. #endif
  8073. /* We use char because int might match the return type of a gcc2
  8074. builtin and then its argument prototype would still apply. */
  8075. char TclpFinalizeThreadData ();
  8076. int
  8077. main ()
  8078. {
  8079. TclpFinalizeThreadData ();
  8080. ;
  8081. return 0;
  8082. }
  8083. _ACEOF
  8084. rm -f conftest.$ac_objext conftest$ac_exeext
  8085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8086. (eval $ac_link) 2>conftest.er1
  8087. ac_status=$?
  8088. grep -v '^ *+' conftest.er1 >conftest.err
  8089. rm -f conftest.er1
  8090. cat conftest.err >&5
  8091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8092. (exit $ac_status); } &&
  8093. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8095. (eval $ac_try) 2>&5
  8096. ac_status=$?
  8097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8098. (exit $ac_status); }; } &&
  8099. { ac_try='test -s conftest$ac_exeext'
  8100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8101. (eval $ac_try) 2>&5
  8102. ac_status=$?
  8103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8104. (exit $ac_status); }; }; then
  8105. eval "$as_ac_Lib=yes"
  8106. else
  8107. echo "$as_me: failed program was:" >&5
  8108. sed 's/^/| /' conftest.$ac_ext >&5
  8109. eval "$as_ac_Lib=no"
  8110. fi
  8111. rm -f conftest.err conftest.$ac_objext \
  8112. conftest$ac_exeext conftest.$ac_ext
  8113. LIBS=$ac_check_lib_save_LIBS
  8114. fi
  8115. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  8116. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  8117. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  8118. egg_cv_var_tcl_threaded="yes"
  8119. else
  8120. egg_cv_var_tcl_threaded="no"
  8121. fi
  8122. enable_tcl_threads=no
  8123. if test "$egg_cv_var_tcl_threaded" = "yes"
  8124. then
  8125. if test "$enable_tcl_threads" = "no"
  8126. then
  8127. cat << 'EOF' >&2
  8128. configure: warning:
  8129. You have disabled threads support on a system with a threaded Tcl library.
  8130. Tcl features that rely on scheduled events may not function properly.
  8131. EOF
  8132. fi
  8133. # Add pthread library to $LIBS if we need it
  8134. if test ! "${ac_cv_lib_pthread-x}" = "x"
  8135. then
  8136. LIBS="$ac_cv_lib_pthread $LIBS"
  8137. fi
  8138. fi
  8139. if test "$EGG_CYGWIN" = "yes"
  8140. then
  8141. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  8142. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  8143. else
  8144. if test ! "$TCLLIBEXT" = ".a"
  8145. then
  8146. cat << 'EOF' >&2
  8147. configure: warning:
  8148. Your Tcl library is not compiled statically.
  8149. You will need to compile Tcl statically to successfully compile wraith.
  8150. EOF
  8151. exit 1
  8152. else
  8153. # Was the --with-tcllib option given ?
  8154. if test ! "${tcllibname-x}" = "x"
  8155. then
  8156. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  8157. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  8158. else
  8159. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  8160. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  8161. fi
  8162. fi
  8163. fi
  8164. ac_config_commands="$ac_config_commands default-1"
  8165. # ---------- end of (what used to be) robey's Tcl thingies
  8166. if test "$NEED_DL" = 1 && test "$ac_cv_func_dlopen" = "no"
  8167. then
  8168. if test "$LINUX" = "yes"
  8169. then
  8170. cat << 'EOF' >&2
  8171. configure: warning:
  8172. Since you are on a Linux system, this has a known problem...
  8173. I know a kludge for it,
  8174. EOF
  8175. if test -r "/lib/libdl.so.1"
  8176. then
  8177. cat << 'EOF' >&2
  8178. and you seem to have it, so we'll do that...
  8179. EOF
  8180. cat >>confdefs.h <<\_ACEOF
  8181. #define HAVE_DLOPEN 1
  8182. _ACEOF
  8183. LIBS="/lib/libdl.so.1 $LIBS"
  8184. else
  8185. cat << 'EOF' >&2
  8186. which you DON'T seem to have... doh!
  8187. perhaps you may still have the stuff lying around somewhere
  8188. if you work out where it is, add it to your XLIBS= lines
  8189. and #define HAVE_DLOPEN in config.h
  8190. we'll proceed on anyway, but you probably won't be able
  8191. to 'make eggdrop' but you might be able to make the
  8192. static bot (I'll default your make to this version).
  8193. EOF
  8194. fi
  8195. else
  8196. cat << 'EOF' >&2
  8197. configure: warning:
  8198. You don't seem to have libdl anywhere I can find it, this will
  8199. prevent you from doing dynamic modules, I'll set your default
  8200. make to static linking.
  8201. EOF
  8202. fi
  8203. fi
  8204. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $4}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  8205. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $4}' | sed -e 's/\;//g'`
  8206. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  8207. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  8208. cat >>confdefs.h <<_ACEOF
  8209. #define EGG_VERSION $version_num
  8210. _ACEOF
  8211. case "$srcdir" in
  8212. [\\/]* | ?:[\\/]*)
  8213. MOD_UPDIR=""
  8214. ;;
  8215. *)
  8216. MOD_UPDIR="../"
  8217. ;;
  8218. esac
  8219. ac_config_commands="$ac_config_commands default-2"
  8220. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  8221. cat >confcache <<\_ACEOF
  8222. # This file is a shell script that caches the results of configure
  8223. # tests run on this system so they can be shared between configure
  8224. # scripts and configure runs, see configure's option --config-cache.
  8225. # It is not useful on other systems. If it contains results you don't
  8226. # want to keep, you may remove or edit it.
  8227. #
  8228. # config.status only pays attention to the cache file if you give it
  8229. # the --recheck option to rerun configure.
  8230. #
  8231. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8232. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8233. # following values.
  8234. _ACEOF
  8235. # The following way of writing the cache mishandles newlines in values,
  8236. # but we know of no workaround that is simple, portable, and efficient.
  8237. # So, don't put newlines in cache variables' values.
  8238. # Ultrix sh set writes to stderr and can't be redirected directly,
  8239. # and sets the high bit in the cache file unless we assign to the vars.
  8240. {
  8241. (set) 2>&1 |
  8242. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8243. *ac_space=\ *)
  8244. # `set' does not quote correctly, so add quotes (double-quote
  8245. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8246. sed -n \
  8247. "s/'/'\\\\''/g;
  8248. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8249. ;;
  8250. *)
  8251. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8252. sed -n \
  8253. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8254. ;;
  8255. esac;
  8256. } |
  8257. sed '
  8258. t clear
  8259. : clear
  8260. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8261. t end
  8262. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8263. : end' >>confcache
  8264. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8265. if test -w $cache_file; then
  8266. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  8267. cat confcache >$cache_file
  8268. else
  8269. echo "not updating unwritable cache $cache_file"
  8270. fi
  8271. fi
  8272. rm -f confcache
  8273. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8274. # Let make expand exec_prefix.
  8275. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8276. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  8277. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  8278. # trailing colons and then remove the whole line if VPATH becomes empty
  8279. # (actually we leave an empty line to preserve line numbers).
  8280. if test "x$srcdir" = x.; then
  8281. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  8282. s/:*\$(srcdir):*/:/;
  8283. s/:*\${srcdir}:*/:/;
  8284. s/:*@srcdir@:*/:/;
  8285. s/^\([^=]*=[ ]*\):*/\1/;
  8286. s/:*$//;
  8287. s/^[^=]*=[ ]*$//;
  8288. }'
  8289. fi
  8290. DEFS=-DHAVE_CONFIG_H
  8291. ac_libobjs=
  8292. ac_ltlibobjs=
  8293. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8294. # 1. Remove the extension, and $U if already installed.
  8295. ac_i=`echo "$ac_i" |
  8296. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8297. # 2. Add them.
  8298. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8299. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8300. done
  8301. LIBOBJS=$ac_libobjs
  8302. LTLIBOBJS=$ac_ltlibobjs
  8303. : ${CONFIG_STATUS=./config.status}
  8304. ac_clean_files_save=$ac_clean_files
  8305. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8306. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8307. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8308. cat >$CONFIG_STATUS <<_ACEOF
  8309. #! $SHELL
  8310. # Generated by $as_me.
  8311. # Run this file to recreate the current configuration.
  8312. # Compiler output produced by configure, useful for debugging
  8313. # configure, is in config.log if it exists.
  8314. debug=false
  8315. ac_cs_recheck=false
  8316. ac_cs_silent=false
  8317. SHELL=\${CONFIG_SHELL-$SHELL}
  8318. _ACEOF
  8319. cat >>$CONFIG_STATUS <<\_ACEOF
  8320. ## --------------------- ##
  8321. ## M4sh Initialization. ##
  8322. ## --------------------- ##
  8323. # Be Bourne compatible
  8324. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8325. emulate sh
  8326. NULLCMD=:
  8327. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8328. # is contrary to our usage. Disable this feature.
  8329. alias -g '${1+"$@"}'='"$@"'
  8330. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8331. set -o posix
  8332. fi
  8333. DUALCASE=1; export DUALCASE # for MKS sh
  8334. # Support unset when possible.
  8335. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8336. as_unset=unset
  8337. else
  8338. as_unset=false
  8339. fi
  8340. # Work around bugs in pre-3.0 UWIN ksh.
  8341. $as_unset ENV MAIL MAILPATH
  8342. PS1='$ '
  8343. PS2='> '
  8344. PS4='+ '
  8345. # NLS nuisances.
  8346. for as_var in \
  8347. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8348. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8349. LC_TELEPHONE LC_TIME
  8350. do
  8351. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8352. eval $as_var=C; export $as_var
  8353. else
  8354. $as_unset $as_var
  8355. fi
  8356. done
  8357. # Required to use basename.
  8358. if expr a : '\(a\)' >/dev/null 2>&1; then
  8359. as_expr=expr
  8360. else
  8361. as_expr=false
  8362. fi
  8363. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8364. as_basename=basename
  8365. else
  8366. as_basename=false
  8367. fi
  8368. # Name of the executable.
  8369. as_me=`$as_basename "$0" ||
  8370. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8371. X"$0" : 'X\(//\)$' \| \
  8372. X"$0" : 'X\(/\)$' \| \
  8373. . : '\(.\)' 2>/dev/null ||
  8374. echo X/"$0" |
  8375. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8376. /^X\/\(\/\/\)$/{ s//\1/; q; }
  8377. /^X\/\(\/\).*/{ s//\1/; q; }
  8378. s/.*/./; q'`
  8379. # PATH needs CR, and LINENO needs CR and PATH.
  8380. # Avoid depending upon Character Ranges.
  8381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8384. as_cr_digits='0123456789'
  8385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8386. # The user is always right.
  8387. if test "${PATH_SEPARATOR+set}" != set; then
  8388. echo "#! /bin/sh" >conf$$.sh
  8389. echo "exit 0" >>conf$$.sh
  8390. chmod +x conf$$.sh
  8391. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8392. PATH_SEPARATOR=';'
  8393. else
  8394. PATH_SEPARATOR=:
  8395. fi
  8396. rm -f conf$$.sh
  8397. fi
  8398. as_lineno_1=$LINENO
  8399. as_lineno_2=$LINENO
  8400. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8401. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8402. test "x$as_lineno_3" = "x$as_lineno_2" || {
  8403. # Find who we are. Look in the path if we contain no path at all
  8404. # relative or not.
  8405. case $0 in
  8406. *[\\/]* ) as_myself=$0 ;;
  8407. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8408. for as_dir in $PATH
  8409. do
  8410. IFS=$as_save_IFS
  8411. test -z "$as_dir" && as_dir=.
  8412. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8413. done
  8414. ;;
  8415. esac
  8416. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8417. # in which case we are not to be found in the path.
  8418. if test "x$as_myself" = x; then
  8419. as_myself=$0
  8420. fi
  8421. if test ! -f "$as_myself"; then
  8422. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8423. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8424. { (exit 1); exit 1; }; }
  8425. fi
  8426. case $CONFIG_SHELL in
  8427. '')
  8428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8429. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8430. do
  8431. IFS=$as_save_IFS
  8432. test -z "$as_dir" && as_dir=.
  8433. for as_base in sh bash ksh sh5; do
  8434. case $as_dir in
  8435. /*)
  8436. if ("$as_dir/$as_base" -c '
  8437. as_lineno_1=$LINENO
  8438. as_lineno_2=$LINENO
  8439. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8440. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8441. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8442. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8443. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8444. CONFIG_SHELL=$as_dir/$as_base
  8445. export CONFIG_SHELL
  8446. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8447. fi;;
  8448. esac
  8449. done
  8450. done
  8451. ;;
  8452. esac
  8453. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8454. # uniformly replaced by the line number. The first 'sed' inserts a
  8455. # line-number line before each line; the second 'sed' does the real
  8456. # work. The second script uses 'N' to pair each line-number line
  8457. # with the numbered line, and appends trailing '-' during
  8458. # substitution so that $LINENO is not a special case at line end.
  8459. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8460. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8461. sed '=' <$as_myself |
  8462. sed '
  8463. N
  8464. s,$,-,
  8465. : loop
  8466. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8467. t loop
  8468. s,-$,,
  8469. s,^['$as_cr_digits']*\n,,
  8470. ' >$as_me.lineno &&
  8471. chmod +x $as_me.lineno ||
  8472. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8473. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8474. { (exit 1); exit 1; }; }
  8475. # Don't try to exec as it changes $[0], causing all sort of problems
  8476. # (the dirname of $[0] is not the place where we might find the
  8477. # original and so on. Autoconf is especially sensible to this).
  8478. . ./$as_me.lineno
  8479. # Exit status is that of the last command.
  8480. exit
  8481. }
  8482. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8483. *c*,-n*) ECHO_N= ECHO_C='
  8484. ' ECHO_T=' ' ;;
  8485. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8486. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8487. esac
  8488. if expr a : '\(a\)' >/dev/null 2>&1; then
  8489. as_expr=expr
  8490. else
  8491. as_expr=false
  8492. fi
  8493. rm -f conf$$ conf$$.exe conf$$.file
  8494. echo >conf$$.file
  8495. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8496. # We could just check for DJGPP; but this test a) works b) is more generic
  8497. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8498. if test -f conf$$.exe; then
  8499. # Don't use ln at all; we don't have any links
  8500. as_ln_s='cp -p'
  8501. else
  8502. as_ln_s='ln -s'
  8503. fi
  8504. elif ln conf$$.file conf$$ 2>/dev/null; then
  8505. as_ln_s=ln
  8506. else
  8507. as_ln_s='cp -p'
  8508. fi
  8509. rm -f conf$$ conf$$.exe conf$$.file
  8510. if mkdir -p . 2>/dev/null; then
  8511. as_mkdir_p=:
  8512. else
  8513. test -d ./-p && rmdir ./-p
  8514. as_mkdir_p=false
  8515. fi
  8516. as_executable_p="test -f"
  8517. # Sed expression to map a string onto a valid CPP name.
  8518. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8519. # Sed expression to map a string onto a valid variable name.
  8520. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8521. # IFS
  8522. # We need space, tab and new line, in precisely that order.
  8523. as_nl='
  8524. '
  8525. IFS=" $as_nl"
  8526. # CDPATH.
  8527. $as_unset CDPATH
  8528. exec 6>&1
  8529. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  8530. # report actual input values of CONFIG_FILES etc. instead of their
  8531. # values after options handling. Logging --version etc. is OK.
  8532. exec 5>>config.log
  8533. {
  8534. echo
  8535. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8536. ## Running $as_me. ##
  8537. _ASBOX
  8538. } >&5
  8539. cat >&5 <<_CSEOF
  8540. This file was extended by $as_me, which was
  8541. generated by GNU Autoconf 2.58. Invocation command line was
  8542. CONFIG_FILES = $CONFIG_FILES
  8543. CONFIG_HEADERS = $CONFIG_HEADERS
  8544. CONFIG_LINKS = $CONFIG_LINKS
  8545. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8546. $ $0 $@
  8547. _CSEOF
  8548. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8549. echo >&5
  8550. _ACEOF
  8551. # Files that config.status was made for.
  8552. if test -n "$ac_config_files"; then
  8553. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8554. fi
  8555. if test -n "$ac_config_headers"; then
  8556. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8557. fi
  8558. if test -n "$ac_config_links"; then
  8559. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8560. fi
  8561. if test -n "$ac_config_commands"; then
  8562. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8563. fi
  8564. cat >>$CONFIG_STATUS <<\_ACEOF
  8565. ac_cs_usage="\
  8566. \`$as_me' instantiates files from templates according to the
  8567. current configuration.
  8568. Usage: $0 [OPTIONS] [FILE]...
  8569. -h, --help print this help, then exit
  8570. -V, --version print version number, then exit
  8571. -q, --quiet do not print progress messages
  8572. -d, --debug don't remove temporary files
  8573. --recheck update $as_me by reconfiguring in the same conditions
  8574. --file=FILE[:TEMPLATE]
  8575. instantiate the configuration file FILE
  8576. --header=FILE[:TEMPLATE]
  8577. instantiate the configuration header FILE
  8578. Configuration files:
  8579. $config_files
  8580. Configuration headers:
  8581. $config_headers
  8582. Configuration commands:
  8583. $config_commands
  8584. Report bugs to <bug-autoconf@gnu.org>."
  8585. _ACEOF
  8586. cat >>$CONFIG_STATUS <<_ACEOF
  8587. ac_cs_version="\\
  8588. config.status
  8589. configured by $0, generated by GNU Autoconf 2.58,
  8590. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8591. Copyright (C) 2003 Free Software Foundation, Inc.
  8592. This config.status script is free software; the Free Software Foundation
  8593. gives unlimited permission to copy, distribute and modify it."
  8594. srcdir=$srcdir
  8595. _ACEOF
  8596. cat >>$CONFIG_STATUS <<\_ACEOF
  8597. # If no file are specified by the user, then we need to provide default
  8598. # value. By we need to know if files were specified by the user.
  8599. ac_need_defaults=:
  8600. while test $# != 0
  8601. do
  8602. case $1 in
  8603. --*=*)
  8604. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8605. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8606. ac_shift=:
  8607. ;;
  8608. -*)
  8609. ac_option=$1
  8610. ac_optarg=$2
  8611. ac_shift=shift
  8612. ;;
  8613. *) # This is not an option, so the user has probably given explicit
  8614. # arguments.
  8615. ac_option=$1
  8616. ac_need_defaults=false;;
  8617. esac
  8618. case $ac_option in
  8619. # Handling of the options.
  8620. _ACEOF
  8621. cat >>$CONFIG_STATUS <<\_ACEOF
  8622. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8623. ac_cs_recheck=: ;;
  8624. --version | --vers* | -V )
  8625. echo "$ac_cs_version"; exit 0 ;;
  8626. --he | --h)
  8627. # Conflict between --help and --header
  8628. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8629. Try \`$0 --help' for more information." >&5
  8630. echo "$as_me: error: ambiguous option: $1
  8631. Try \`$0 --help' for more information." >&2;}
  8632. { (exit 1); exit 1; }; };;
  8633. --help | --hel | -h )
  8634. echo "$ac_cs_usage"; exit 0 ;;
  8635. --debug | --d* | -d )
  8636. debug=: ;;
  8637. --file | --fil | --fi | --f )
  8638. $ac_shift
  8639. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8640. ac_need_defaults=false;;
  8641. --header | --heade | --head | --hea )
  8642. $ac_shift
  8643. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8644. ac_need_defaults=false;;
  8645. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8646. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8647. ac_cs_silent=: ;;
  8648. # This is an error.
  8649. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8650. Try \`$0 --help' for more information." >&5
  8651. echo "$as_me: error: unrecognized option: $1
  8652. Try \`$0 --help' for more information." >&2;}
  8653. { (exit 1); exit 1; }; } ;;
  8654. *) ac_config_targets="$ac_config_targets $1" ;;
  8655. esac
  8656. shift
  8657. done
  8658. ac_configure_extra_args=
  8659. if $ac_cs_silent; then
  8660. exec 6>/dev/null
  8661. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8662. fi
  8663. _ACEOF
  8664. cat >>$CONFIG_STATUS <<_ACEOF
  8665. if \$ac_cs_recheck; then
  8666. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8667. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8668. fi
  8669. _ACEOF
  8670. cat >>$CONFIG_STATUS <<_ACEOF
  8671. #
  8672. # INIT-COMMANDS section.
  8673. #
  8674. egg_tclinc="$TCLINC"
  8675. egg_tclincfn="$TCLINCFN"
  8676. _ACEOF
  8677. cat >>$CONFIG_STATUS <<\_ACEOF
  8678. for ac_config_target in $ac_config_targets
  8679. do
  8680. case "$ac_config_target" in
  8681. # Handling of arguments.
  8682. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8683. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8684. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  8685. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  8686. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8687. "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
  8688. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8689. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8690. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8691. { (exit 1); exit 1; }; };;
  8692. esac
  8693. done
  8694. # If the user did not use the arguments to specify the items to instantiate,
  8695. # then the envvar interface is used. Set only those that are not.
  8696. # We use the long form for the default assignment because of an extremely
  8697. # bizarre bug on SunOS 4.1.3.
  8698. if $ac_need_defaults; then
  8699. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8700. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8701. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8702. fi
  8703. # Have a temporary directory for convenience. Make it in the build tree
  8704. # simply because there is no reason to put it here, and in addition,
  8705. # creating and moving files from /tmp can sometimes cause problems.
  8706. # Create a temporary directory, and hook for its removal unless debugging.
  8707. $debug ||
  8708. {
  8709. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8710. trap '{ (exit 1); exit 1; }' 1 2 13 15
  8711. }
  8712. # Create a (secure) tmp directory for tmp files.
  8713. {
  8714. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8715. test -n "$tmp" && test -d "$tmp"
  8716. } ||
  8717. {
  8718. tmp=./confstat$$-$RANDOM
  8719. (umask 077 && mkdir $tmp)
  8720. } ||
  8721. {
  8722. echo "$me: cannot create a temporary directory in ." >&2
  8723. { (exit 1); exit 1; }
  8724. }
  8725. _ACEOF
  8726. cat >>$CONFIG_STATUS <<_ACEOF
  8727. #
  8728. # CONFIG_FILES section.
  8729. #
  8730. # No need to generate the scripts if there are no CONFIG_FILES.
  8731. # This happens for instance when ./config.status config.h
  8732. if test -n "\$CONFIG_FILES"; then
  8733. # Protect against being on the right side of a sed subst in config.status.
  8734. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8735. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8736. s,@SHELL@,$SHELL,;t t
  8737. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8738. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8739. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8740. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8741. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8742. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8743. s,@exec_prefix@,$exec_prefix,;t t
  8744. s,@prefix@,$prefix,;t t
  8745. s,@program_transform_name@,$program_transform_name,;t t
  8746. s,@bindir@,$bindir,;t t
  8747. s,@sbindir@,$sbindir,;t t
  8748. s,@libexecdir@,$libexecdir,;t t
  8749. s,@datadir@,$datadir,;t t
  8750. s,@sysconfdir@,$sysconfdir,;t t
  8751. s,@sharedstatedir@,$sharedstatedir,;t t
  8752. s,@localstatedir@,$localstatedir,;t t
  8753. s,@libdir@,$libdir,;t t
  8754. s,@includedir@,$includedir,;t t
  8755. s,@oldincludedir@,$oldincludedir,;t t
  8756. s,@infodir@,$infodir,;t t
  8757. s,@mandir@,$mandir,;t t
  8758. s,@build_alias@,$build_alias,;t t
  8759. s,@host_alias@,$host_alias,;t t
  8760. s,@target_alias@,$target_alias,;t t
  8761. s,@DEFS@,$DEFS,;t t
  8762. s,@ECHO_C@,$ECHO_C,;t t
  8763. s,@ECHO_N@,$ECHO_N,;t t
  8764. s,@ECHO_T@,$ECHO_T,;t t
  8765. s,@LIBS@,$LIBS,;t t
  8766. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  8767. s,@CC@,$CC,;t t
  8768. s,@CFLAGS@,$CFLAGS,;t t
  8769. s,@LDFLAGS@,$LDFLAGS,;t t
  8770. s,@CPPFLAGS@,$CPPFLAGS,;t t
  8771. s,@ac_ct_CC@,$ac_ct_CC,;t t
  8772. s,@EXEEXT@,$EXEEXT,;t t
  8773. s,@OBJEXT@,$OBJEXT,;t t
  8774. s,@CPP@,$CPP,;t t
  8775. s,@EGREP@,$EGREP,;t t
  8776. s,@SET_MAKE@,$SET_MAKE,;t t
  8777. s,@HEAD_1@,$HEAD_1,;t t
  8778. s,@STRIP@,$STRIP,;t t
  8779. s,@AWK@,$AWK,;t t
  8780. s,@BASENAME@,$BASENAME,;t t
  8781. s,@UNAME@,$UNAME,;t t
  8782. s,@ZLIB@,$ZLIB,;t t
  8783. s,@SSL@,$SSL,;t t
  8784. s,@TCLLIB@,$TCLLIB,;t t
  8785. s,@TCLLIBFN@,$TCLLIBFN,;t t
  8786. s,@TCLINC@,$TCLINC,;t t
  8787. s,@TCLINCFN@,$TCLINCFN,;t t
  8788. s,@TCL_REQS@,$TCL_REQS,;t t
  8789. s,@TCL_LIBS@,$TCL_LIBS,;t t
  8790. s,@VERSION@,$VERSION,;t t
  8791. s,@NUMVER@,$NUMVER,;t t
  8792. s,@PACKNAME@,$PACKNAME,;t t
  8793. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  8794. s,@LIBOBJS@,$LIBOBJS,;t t
  8795. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  8796. CEOF
  8797. _ACEOF
  8798. cat >>$CONFIG_STATUS <<\_ACEOF
  8799. # Split the substitutions into bite-sized pieces for seds with
  8800. # small command number limits, like on Digital OSF/1 and HP-UX.
  8801. ac_max_sed_lines=48
  8802. ac_sed_frag=1 # Number of current file.
  8803. ac_beg=1 # First line for current file.
  8804. ac_end=$ac_max_sed_lines # Line after last line for current file.
  8805. ac_more_lines=:
  8806. ac_sed_cmds=
  8807. while $ac_more_lines; do
  8808. if test $ac_beg -gt 1; then
  8809. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8810. else
  8811. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8812. fi
  8813. if test ! -s $tmp/subs.frag; then
  8814. ac_more_lines=false
  8815. else
  8816. # The purpose of the label and of the branching condition is to
  8817. # speed up the sed processing (if there are no `@' at all, there
  8818. # is no need to browse any of the substitutions).
  8819. # These are the two extra sed commands mentioned above.
  8820. (echo ':t
  8821. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  8822. if test -z "$ac_sed_cmds"; then
  8823. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  8824. else
  8825. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  8826. fi
  8827. ac_sed_frag=`expr $ac_sed_frag + 1`
  8828. ac_beg=$ac_end
  8829. ac_end=`expr $ac_end + $ac_max_sed_lines`
  8830. fi
  8831. done
  8832. if test -z "$ac_sed_cmds"; then
  8833. ac_sed_cmds=cat
  8834. fi
  8835. fi # test -n "$CONFIG_FILES"
  8836. _ACEOF
  8837. cat >>$CONFIG_STATUS <<\_ACEOF
  8838. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  8839. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8840. case $ac_file in
  8841. - | *:- | *:-:* ) # input from stdin
  8842. cat >$tmp/stdin
  8843. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8844. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8845. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8846. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8847. * ) ac_file_in=$ac_file.in ;;
  8848. esac
  8849. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8850. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8851. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8852. X"$ac_file" : 'X\(//\)[^/]' \| \
  8853. X"$ac_file" : 'X\(//\)$' \| \
  8854. X"$ac_file" : 'X\(/\)' \| \
  8855. . : '\(.\)' 2>/dev/null ||
  8856. echo X"$ac_file" |
  8857. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8858. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8859. /^X\(\/\/\)$/{ s//\1/; q; }
  8860. /^X\(\/\).*/{ s//\1/; q; }
  8861. s/.*/./; q'`
  8862. { if $as_mkdir_p; then
  8863. mkdir -p "$ac_dir"
  8864. else
  8865. as_dir="$ac_dir"
  8866. as_dirs=
  8867. while test ! -d "$as_dir"; do
  8868. as_dirs="$as_dir $as_dirs"
  8869. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8870. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8871. X"$as_dir" : 'X\(//\)[^/]' \| \
  8872. X"$as_dir" : 'X\(//\)$' \| \
  8873. X"$as_dir" : 'X\(/\)' \| \
  8874. . : '\(.\)' 2>/dev/null ||
  8875. echo X"$as_dir" |
  8876. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8877. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8878. /^X\(\/\/\)$/{ s//\1/; q; }
  8879. /^X\(\/\).*/{ s//\1/; q; }
  8880. s/.*/./; q'`
  8881. done
  8882. test ! -n "$as_dirs" || mkdir $as_dirs
  8883. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8884. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8885. { (exit 1); exit 1; }; }; }
  8886. ac_builddir=.
  8887. if test "$ac_dir" != .; then
  8888. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8889. # A "../" for each directory in $ac_dir_suffix.
  8890. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8891. else
  8892. ac_dir_suffix= ac_top_builddir=
  8893. fi
  8894. case $srcdir in
  8895. .) # No --srcdir option. We are building in place.
  8896. ac_srcdir=.
  8897. if test -z "$ac_top_builddir"; then
  8898. ac_top_srcdir=.
  8899. else
  8900. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8901. fi ;;
  8902. [\\/]* | ?:[\\/]* ) # Absolute path.
  8903. ac_srcdir=$srcdir$ac_dir_suffix;
  8904. ac_top_srcdir=$srcdir ;;
  8905. *) # Relative path.
  8906. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8907. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8908. esac
  8909. # Do not use `cd foo && pwd` to compute absolute paths, because
  8910. # the directories may not exist.
  8911. case `pwd` in
  8912. .) ac_abs_builddir="$ac_dir";;
  8913. *)
  8914. case "$ac_dir" in
  8915. .) ac_abs_builddir=`pwd`;;
  8916. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8917. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8918. esac;;
  8919. esac
  8920. case $ac_abs_builddir in
  8921. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8922. *)
  8923. case ${ac_top_builddir}. in
  8924. .) ac_abs_top_builddir=$ac_abs_builddir;;
  8925. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8926. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8927. esac;;
  8928. esac
  8929. case $ac_abs_builddir in
  8930. .) ac_abs_srcdir=$ac_srcdir;;
  8931. *)
  8932. case $ac_srcdir in
  8933. .) ac_abs_srcdir=$ac_abs_builddir;;
  8934. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8935. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8936. esac;;
  8937. esac
  8938. case $ac_abs_builddir in
  8939. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8940. *)
  8941. case $ac_top_srcdir in
  8942. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8943. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8944. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8945. esac;;
  8946. esac
  8947. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8948. # use $as_me), people would be surprised to read:
  8949. # /* config.h. Generated by config.status. */
  8950. if test x"$ac_file" = x-; then
  8951. configure_input=
  8952. else
  8953. configure_input="$ac_file. "
  8954. fi
  8955. configure_input=$configure_input"Generated from `echo $ac_file_in |
  8956. sed 's,.*/,,'` by configure."
  8957. # First look for the input files in the build tree, otherwise in the
  8958. # src tree.
  8959. ac_file_inputs=`IFS=:
  8960. for f in $ac_file_in; do
  8961. case $f in
  8962. -) echo $tmp/stdin ;;
  8963. [\\/$]*)
  8964. # Absolute (can't be DOS-style, as IFS=:)
  8965. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8966. echo "$as_me: error: cannot find input file: $f" >&2;}
  8967. { (exit 1); exit 1; }; }
  8968. echo "$f";;
  8969. *) # Relative
  8970. if test -f "$f"; then
  8971. # Build tree
  8972. echo "$f"
  8973. elif test -f "$srcdir/$f"; then
  8974. # Source tree
  8975. echo "$srcdir/$f"
  8976. else
  8977. # /dev/null tree
  8978. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8979. echo "$as_me: error: cannot find input file: $f" >&2;}
  8980. { (exit 1); exit 1; }; }
  8981. fi;;
  8982. esac
  8983. done` || { (exit 1); exit 1; }
  8984. if test x"$ac_file" != x-; then
  8985. { echo "$as_me:$LINENO: creating $ac_file" >&5
  8986. echo "$as_me: creating $ac_file" >&6;}
  8987. rm -f "$ac_file"
  8988. fi
  8989. _ACEOF
  8990. cat >>$CONFIG_STATUS <<_ACEOF
  8991. sed "$ac_vpsub
  8992. $extrasub
  8993. _ACEOF
  8994. cat >>$CONFIG_STATUS <<\_ACEOF
  8995. :t
  8996. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8997. s,@configure_input@,$configure_input,;t t
  8998. s,@srcdir@,$ac_srcdir,;t t
  8999. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9000. s,@top_srcdir@,$ac_top_srcdir,;t t
  9001. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9002. s,@builddir@,$ac_builddir,;t t
  9003. s,@abs_builddir@,$ac_abs_builddir,;t t
  9004. s,@top_builddir@,$ac_top_builddir,;t t
  9005. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9006. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9007. rm -f $tmp/stdin
  9008. if test x"$ac_file" != x-; then
  9009. mv $tmp/out $ac_file
  9010. else
  9011. cat $tmp/out
  9012. rm -f $tmp/out
  9013. fi
  9014. done
  9015. _ACEOF
  9016. cat >>$CONFIG_STATUS <<\_ACEOF
  9017. #
  9018. # CONFIG_HEADER section.
  9019. #
  9020. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9021. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9022. #
  9023. # ac_d sets the value in "#define NAME VALUE" lines.
  9024. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9025. ac_dB='[ ].*$,\1#\2'
  9026. ac_dC=' '
  9027. ac_dD=',;t'
  9028. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9029. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9030. ac_uB='$,\1#\2define\3'
  9031. ac_uC=' '
  9032. ac_uD=',;t'
  9033. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9034. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9035. case $ac_file in
  9036. - | *:- | *:-:* ) # input from stdin
  9037. cat >$tmp/stdin
  9038. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9039. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9040. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9041. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9042. * ) ac_file_in=$ac_file.in ;;
  9043. esac
  9044. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9045. echo "$as_me: creating $ac_file" >&6;}
  9046. # First look for the input files in the build tree, otherwise in the
  9047. # src tree.
  9048. ac_file_inputs=`IFS=:
  9049. for f in $ac_file_in; do
  9050. case $f in
  9051. -) echo $tmp/stdin ;;
  9052. [\\/$]*)
  9053. # Absolute (can't be DOS-style, as IFS=:)
  9054. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9055. echo "$as_me: error: cannot find input file: $f" >&2;}
  9056. { (exit 1); exit 1; }; }
  9057. # Do quote $f, to prevent DOS paths from being IFS'd.
  9058. echo "$f";;
  9059. *) # Relative
  9060. if test -f "$f"; then
  9061. # Build tree
  9062. echo "$f"
  9063. elif test -f "$srcdir/$f"; then
  9064. # Source tree
  9065. echo "$srcdir/$f"
  9066. else
  9067. # /dev/null tree
  9068. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9069. echo "$as_me: error: cannot find input file: $f" >&2;}
  9070. { (exit 1); exit 1; }; }
  9071. fi;;
  9072. esac
  9073. done` || { (exit 1); exit 1; }
  9074. # Remove the trailing spaces.
  9075. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9076. _ACEOF
  9077. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  9078. # `conftest.undefs', that substitutes the proper values into
  9079. # config.h.in to produce config.h. The first handles `#define'
  9080. # templates, and the second `#undef' templates.
  9081. # And first: Protect against being on the right side of a sed subst in
  9082. # config.status. Protect against being in an unquoted here document
  9083. # in config.status.
  9084. rm -f conftest.defines conftest.undefs
  9085. # Using a here document instead of a string reduces the quoting nightmare.
  9086. # Putting comments in sed scripts is not portable.
  9087. #
  9088. # `end' is used to avoid that the second main sed command (meant for
  9089. # 0-ary CPP macros) applies to n-ary macro definitions.
  9090. # See the Autoconf documentation for `clear'.
  9091. cat >confdef2sed.sed <<\_ACEOF
  9092. s/[\\&,]/\\&/g
  9093. s,[\\$`],\\&,g
  9094. t clear
  9095. : clear
  9096. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9097. t end
  9098. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9099. : end
  9100. _ACEOF
  9101. # If some macros were called several times there might be several times
  9102. # the same #defines, which is useless. Nevertheless, we may not want to
  9103. # sort them, since we want the *last* AC-DEFINE to be honored.
  9104. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9105. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9106. rm -f confdef2sed.sed
  9107. # This sed command replaces #undef with comments. This is necessary, for
  9108. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9109. # on some systems where configure will not decide to define it.
  9110. cat >>conftest.undefs <<\_ACEOF
  9111. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9112. _ACEOF
  9113. # Break up conftest.defines because some shells have a limit on the size
  9114. # of here documents, and old seds have small limits too (100 cmds).
  9115. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9116. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9117. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9118. echo ' :' >>$CONFIG_STATUS
  9119. rm -f conftest.tail
  9120. while grep . conftest.defines >/dev/null
  9121. do
  9122. # Write a limited-size here document to $tmp/defines.sed.
  9123. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9124. # Speed up: don't consider the non `#define' lines.
  9125. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9126. # Work around the forget-to-reset-the-flag bug.
  9127. echo 't clr' >>$CONFIG_STATUS
  9128. echo ': clr' >>$CONFIG_STATUS
  9129. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9130. echo 'CEOF
  9131. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9132. rm -f $tmp/in
  9133. mv $tmp/out $tmp/in
  9134. ' >>$CONFIG_STATUS
  9135. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9136. rm -f conftest.defines
  9137. mv conftest.tail conftest.defines
  9138. done
  9139. rm -f conftest.defines
  9140. echo ' fi # grep' >>$CONFIG_STATUS
  9141. echo >>$CONFIG_STATUS
  9142. # Break up conftest.undefs because some shells have a limit on the size
  9143. # of here documents, and old seds have small limits too (100 cmds).
  9144. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9145. rm -f conftest.tail
  9146. while grep . conftest.undefs >/dev/null
  9147. do
  9148. # Write a limited-size here document to $tmp/undefs.sed.
  9149. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9150. # Speed up: don't consider the non `#undef'
  9151. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9152. # Work around the forget-to-reset-the-flag bug.
  9153. echo 't clr' >>$CONFIG_STATUS
  9154. echo ': clr' >>$CONFIG_STATUS
  9155. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9156. echo 'CEOF
  9157. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9158. rm -f $tmp/in
  9159. mv $tmp/out $tmp/in
  9160. ' >>$CONFIG_STATUS
  9161. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9162. rm -f conftest.undefs
  9163. mv conftest.tail conftest.undefs
  9164. done
  9165. rm -f conftest.undefs
  9166. cat >>$CONFIG_STATUS <<\_ACEOF
  9167. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9168. # use $as_me), people would be surprised to read:
  9169. # /* config.h. Generated by config.status. */
  9170. if test x"$ac_file" = x-; then
  9171. echo "/* Generated by configure. */" >$tmp/config.h
  9172. else
  9173. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9174. fi
  9175. cat $tmp/in >>$tmp/config.h
  9176. rm -f $tmp/in
  9177. if test x"$ac_file" != x-; then
  9178. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9179. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9180. echo "$as_me: $ac_file is unchanged" >&6;}
  9181. else
  9182. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9183. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9184. X"$ac_file" : 'X\(//\)[^/]' \| \
  9185. X"$ac_file" : 'X\(//\)$' \| \
  9186. X"$ac_file" : 'X\(/\)' \| \
  9187. . : '\(.\)' 2>/dev/null ||
  9188. echo X"$ac_file" |
  9189. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9190. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9191. /^X\(\/\/\)$/{ s//\1/; q; }
  9192. /^X\(\/\).*/{ s//\1/; q; }
  9193. s/.*/./; q'`
  9194. { if $as_mkdir_p; then
  9195. mkdir -p "$ac_dir"
  9196. else
  9197. as_dir="$ac_dir"
  9198. as_dirs=
  9199. while test ! -d "$as_dir"; do
  9200. as_dirs="$as_dir $as_dirs"
  9201. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9202. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9203. X"$as_dir" : 'X\(//\)[^/]' \| \
  9204. X"$as_dir" : 'X\(//\)$' \| \
  9205. X"$as_dir" : 'X\(/\)' \| \
  9206. . : '\(.\)' 2>/dev/null ||
  9207. echo X"$as_dir" |
  9208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9209. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9210. /^X\(\/\/\)$/{ s//\1/; q; }
  9211. /^X\(\/\).*/{ s//\1/; q; }
  9212. s/.*/./; q'`
  9213. done
  9214. test ! -n "$as_dirs" || mkdir $as_dirs
  9215. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9216. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9217. { (exit 1); exit 1; }; }; }
  9218. rm -f $ac_file
  9219. mv $tmp/config.h $ac_file
  9220. fi
  9221. else
  9222. cat $tmp/config.h
  9223. rm -f $tmp/config.h
  9224. fi
  9225. done
  9226. _ACEOF
  9227. cat >>$CONFIG_STATUS <<\_ACEOF
  9228. #
  9229. # CONFIG_COMMANDS section.
  9230. #
  9231. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  9232. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  9233. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9234. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  9235. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9236. X"$ac_dest" : 'X\(//\)[^/]' \| \
  9237. X"$ac_dest" : 'X\(//\)$' \| \
  9238. X"$ac_dest" : 'X\(/\)' \| \
  9239. . : '\(.\)' 2>/dev/null ||
  9240. echo X"$ac_dest" |
  9241. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9242. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9243. /^X\(\/\/\)$/{ s//\1/; q; }
  9244. /^X\(\/\).*/{ s//\1/; q; }
  9245. s/.*/./; q'`
  9246. { if $as_mkdir_p; then
  9247. mkdir -p "$ac_dir"
  9248. else
  9249. as_dir="$ac_dir"
  9250. as_dirs=
  9251. while test ! -d "$as_dir"; do
  9252. as_dirs="$as_dir $as_dirs"
  9253. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9254. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9255. X"$as_dir" : 'X\(//\)[^/]' \| \
  9256. X"$as_dir" : 'X\(//\)$' \| \
  9257. X"$as_dir" : 'X\(/\)' \| \
  9258. . : '\(.\)' 2>/dev/null ||
  9259. echo X"$as_dir" |
  9260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9261. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9262. /^X\(\/\/\)$/{ s//\1/; q; }
  9263. /^X\(\/\).*/{ s//\1/; q; }
  9264. s/.*/./; q'`
  9265. done
  9266. test ! -n "$as_dirs" || mkdir $as_dirs
  9267. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9268. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9269. { (exit 1); exit 1; }; }; }
  9270. ac_builddir=.
  9271. if test "$ac_dir" != .; then
  9272. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9273. # A "../" for each directory in $ac_dir_suffix.
  9274. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9275. else
  9276. ac_dir_suffix= ac_top_builddir=
  9277. fi
  9278. case $srcdir in
  9279. .) # No --srcdir option. We are building in place.
  9280. ac_srcdir=.
  9281. if test -z "$ac_top_builddir"; then
  9282. ac_top_srcdir=.
  9283. else
  9284. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9285. fi ;;
  9286. [\\/]* | ?:[\\/]* ) # Absolute path.
  9287. ac_srcdir=$srcdir$ac_dir_suffix;
  9288. ac_top_srcdir=$srcdir ;;
  9289. *) # Relative path.
  9290. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9291. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9292. esac
  9293. # Do not use `cd foo && pwd` to compute absolute paths, because
  9294. # the directories may not exist.
  9295. case `pwd` in
  9296. .) ac_abs_builddir="$ac_dir";;
  9297. *)
  9298. case "$ac_dir" in
  9299. .) ac_abs_builddir=`pwd`;;
  9300. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9301. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9302. esac;;
  9303. esac
  9304. case $ac_abs_builddir in
  9305. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9306. *)
  9307. case ${ac_top_builddir}. in
  9308. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9309. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9310. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9311. esac;;
  9312. esac
  9313. case $ac_abs_builddir in
  9314. .) ac_abs_srcdir=$ac_srcdir;;
  9315. *)
  9316. case $ac_srcdir in
  9317. .) ac_abs_srcdir=$ac_abs_builddir;;
  9318. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9319. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9320. esac;;
  9321. esac
  9322. case $ac_abs_builddir in
  9323. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9324. *)
  9325. case $ac_top_srcdir in
  9326. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9327. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9328. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9329. esac;;
  9330. esac
  9331. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  9332. echo "$as_me: executing $ac_dest commands" >&6;}
  9333. case $ac_dest in
  9334. default-1 )
  9335. egg_replace_file="lush.h"
  9336. echo "creating lush.h"
  9337. cat > conftest.out << EGGEOF
  9338. /* Ignore me but do not erase me. I am a kludge. */
  9339. #include "$egg_tclinc/$egg_tclincfn"
  9340. EGGEOF
  9341. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file
  9342. then
  9343. echo "lush.h is unchanged"
  9344. else
  9345. mv conftest.out $egg_replace_file
  9346. fi
  9347. rm -f conftest.out ;;
  9348. default-2 )
  9349. if test -f .modules
  9350. then
  9351. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  9352. fi ;;
  9353. esac
  9354. done
  9355. _ACEOF
  9356. cat >>$CONFIG_STATUS <<\_ACEOF
  9357. { (exit 0); exit 0; }
  9358. _ACEOF
  9359. chmod +x $CONFIG_STATUS
  9360. ac_clean_files=$ac_clean_files_save
  9361. # configure is writing to config.log, and then calls config.status.
  9362. # config.status does its own redirection, appending to config.log.
  9363. # Unfortunately, on DOS this fails, as config.log is still kept open
  9364. # by configure, so config.status won't be able to write to it; its
  9365. # output is simply discarded. So we exec the FD to /dev/null,
  9366. # effectively closing config.log, so it can be properly (re)opened and
  9367. # appended to by config.status. When coming back to configure, we
  9368. # need to make the FD available again.
  9369. if test "$no_create" != yes; then
  9370. ac_cs_success=:
  9371. ac_config_status_args=
  9372. test "$silent" = yes &&
  9373. ac_config_status_args="$ac_config_status_args --quiet"
  9374. exec 5>/dev/null
  9375. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9376. exec 5>>config.log
  9377. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9378. # would make configure fail if this is the last instruction.
  9379. $ac_cs_success || { (exit 1); exit 1; }
  9380. fi