configure 181 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 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 more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. exec 7<&0 </dev/null 6>&1
  474. # Name of the host.
  475. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  476. # so uname gets run too.
  477. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  478. #
  479. # Initializations.
  480. #
  481. ac_default_prefix=/usr/local
  482. ac_clean_files=
  483. ac_config_libobj_dir=.
  484. LIBOBJS=
  485. cross_compiling=no
  486. subdirs=
  487. MFLAGS=
  488. MAKEFLAGS=
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. # Identity of this package.
  491. PACKAGE_NAME=
  492. PACKAGE_TARNAME=
  493. PACKAGE_VERSION=
  494. PACKAGE_STRING=
  495. PACKAGE_BUGREPORT=
  496. ac_unique_file="c/prescheme.h"
  497. # Factoring default headers for most tests.
  498. ac_includes_default="\
  499. #include <stdio.h>
  500. #ifdef HAVE_SYS_TYPES_H
  501. # include <sys/types.h>
  502. #endif
  503. #ifdef HAVE_SYS_STAT_H
  504. # include <sys/stat.h>
  505. #endif
  506. #ifdef STDC_HEADERS
  507. # include <stdlib.h>
  508. # include <stddef.h>
  509. #else
  510. # ifdef HAVE_STDLIB_H
  511. # include <stdlib.h>
  512. # endif
  513. #endif
  514. #ifdef HAVE_STRING_H
  515. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  516. # include <memory.h>
  517. # endif
  518. # include <string.h>
  519. #endif
  520. #ifdef HAVE_STRINGS_H
  521. # include <strings.h>
  522. #endif
  523. #ifdef HAVE_INTTYPES_H
  524. # include <inttypes.h>
  525. #endif
  526. #ifdef HAVE_STDINT_H
  527. # include <stdint.h>
  528. #endif
  529. #ifdef HAVE_UNISTD_H
  530. # include <unistd.h>
  531. #endif"
  532. ac_subst_vars='SHELL
  533. PATH_SEPARATOR
  534. PACKAGE_NAME
  535. PACKAGE_TARNAME
  536. PACKAGE_VERSION
  537. PACKAGE_STRING
  538. PACKAGE_BUGREPORT
  539. exec_prefix
  540. prefix
  541. program_transform_name
  542. bindir
  543. sbindir
  544. libexecdir
  545. datarootdir
  546. datadir
  547. sysconfdir
  548. sharedstatedir
  549. localstatedir
  550. includedir
  551. oldincludedir
  552. docdir
  553. infodir
  554. htmldir
  555. dvidir
  556. pdfdir
  557. psdir
  558. libdir
  559. localedir
  560. mandir
  561. DEFS
  562. ECHO_C
  563. ECHO_N
  564. ECHO_T
  565. LIBS
  566. build_alias
  567. host_alias
  568. target_alias
  569. CC
  570. CFLAGS
  571. LDFLAGS
  572. CPPFLAGS
  573. ac_ct_CC
  574. EXEEXT
  575. OBJEXT
  576. INSTALL_PROGRAM
  577. INSTALL_SCRIPT
  578. INSTALL_DATA
  579. CPP
  580. GREP
  581. EGREP
  582. LIBOBJS
  583. LTLIBOBJS'
  584. ac_subst_files=''
  585. ac_precious_vars='build_alias
  586. host_alias
  587. target_alias
  588. CC
  589. CFLAGS
  590. LDFLAGS
  591. LIBS
  592. CPPFLAGS
  593. CPP'
  594. # Initialize some variables set by options.
  595. ac_init_help=
  596. ac_init_version=false
  597. # The variables have the same names as the options, with
  598. # dashes changed to underlines.
  599. cache_file=/dev/null
  600. exec_prefix=NONE
  601. no_create=
  602. no_recursion=
  603. prefix=NONE
  604. program_prefix=NONE
  605. program_suffix=NONE
  606. program_transform_name=s,x,x,
  607. silent=
  608. site=
  609. srcdir=
  610. verbose=
  611. x_includes=NONE
  612. x_libraries=NONE
  613. # Installation directory options.
  614. # These are left unexpanded so users can "make install exec_prefix=/foo"
  615. # and all the variables that are supposed to be based on exec_prefix
  616. # by default will actually change.
  617. # Use braces instead of parens because sh, perl, etc. also accept them.
  618. # (The list follows the same order as the GNU Coding Standards.)
  619. bindir='${exec_prefix}/bin'
  620. sbindir='${exec_prefix}/sbin'
  621. libexecdir='${exec_prefix}/libexec'
  622. datarootdir='${prefix}/share'
  623. datadir='${datarootdir}'
  624. sysconfdir='${prefix}/etc'
  625. sharedstatedir='${prefix}/com'
  626. localstatedir='${prefix}/var'
  627. includedir='${prefix}/include'
  628. oldincludedir='/usr/include'
  629. docdir='${datarootdir}/doc/${PACKAGE}'
  630. infodir='${datarootdir}/info'
  631. htmldir='${docdir}'
  632. dvidir='${docdir}'
  633. pdfdir='${docdir}'
  634. psdir='${docdir}'
  635. libdir='${exec_prefix}/lib'
  636. localedir='${datarootdir}/locale'
  637. mandir='${datarootdir}/man'
  638. ac_prev=
  639. ac_dashdash=
  640. for ac_option
  641. do
  642. # If the previous option needs an argument, assign it.
  643. if test -n "$ac_prev"; then
  644. eval $ac_prev=\$ac_option
  645. ac_prev=
  646. continue
  647. fi
  648. case $ac_option in
  649. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  650. *) ac_optarg=yes ;;
  651. esac
  652. # Accept the important Cygnus configure options, so we can diagnose typos.
  653. case $ac_dashdash$ac_option in
  654. --)
  655. ac_dashdash=yes ;;
  656. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  657. ac_prev=bindir ;;
  658. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  659. bindir=$ac_optarg ;;
  660. -build | --build | --buil | --bui | --bu)
  661. ac_prev=build_alias ;;
  662. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  663. build_alias=$ac_optarg ;;
  664. -cache-file | --cache-file | --cache-fil | --cache-fi \
  665. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  666. ac_prev=cache_file ;;
  667. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  668. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  669. cache_file=$ac_optarg ;;
  670. --config-cache | -C)
  671. cache_file=config.cache ;;
  672. -datadir | --datadir | --datadi | --datad)
  673. ac_prev=datadir ;;
  674. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  675. datadir=$ac_optarg ;;
  676. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  677. | --dataroo | --dataro | --datar)
  678. ac_prev=datarootdir ;;
  679. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  680. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  681. datarootdir=$ac_optarg ;;
  682. -disable-* | --disable-*)
  683. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  684. # Reject names that are not valid shell variable names.
  685. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  686. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  687. { (exit 1); exit 1; }; }
  688. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  689. eval enable_$ac_feature=no ;;
  690. -docdir | --docdir | --docdi | --doc | --do)
  691. ac_prev=docdir ;;
  692. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  693. docdir=$ac_optarg ;;
  694. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  695. ac_prev=dvidir ;;
  696. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  697. dvidir=$ac_optarg ;;
  698. -enable-* | --enable-*)
  699. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  700. # Reject names that are not valid shell variable names.
  701. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  702. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  703. { (exit 1); exit 1; }; }
  704. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  705. eval enable_$ac_feature=\$ac_optarg ;;
  706. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  707. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  708. | --exec | --exe | --ex)
  709. ac_prev=exec_prefix ;;
  710. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  711. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  712. | --exec=* | --exe=* | --ex=*)
  713. exec_prefix=$ac_optarg ;;
  714. -gas | --gas | --ga | --g)
  715. # Obsolete; use --with-gas.
  716. with_gas=yes ;;
  717. -help | --help | --hel | --he | -h)
  718. ac_init_help=long ;;
  719. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  720. ac_init_help=recursive ;;
  721. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  722. ac_init_help=short ;;
  723. -host | --host | --hos | --ho)
  724. ac_prev=host_alias ;;
  725. -host=* | --host=* | --hos=* | --ho=*)
  726. host_alias=$ac_optarg ;;
  727. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  728. ac_prev=htmldir ;;
  729. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  730. | --ht=*)
  731. htmldir=$ac_optarg ;;
  732. -includedir | --includedir | --includedi | --included | --include \
  733. | --includ | --inclu | --incl | --inc)
  734. ac_prev=includedir ;;
  735. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  736. | --includ=* | --inclu=* | --incl=* | --inc=*)
  737. includedir=$ac_optarg ;;
  738. -infodir | --infodir | --infodi | --infod | --info | --inf)
  739. ac_prev=infodir ;;
  740. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  741. infodir=$ac_optarg ;;
  742. -libdir | --libdir | --libdi | --libd)
  743. ac_prev=libdir ;;
  744. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  745. libdir=$ac_optarg ;;
  746. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  747. | --libexe | --libex | --libe)
  748. ac_prev=libexecdir ;;
  749. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  750. | --libexe=* | --libex=* | --libe=*)
  751. libexecdir=$ac_optarg ;;
  752. -localedir | --localedir | --localedi | --localed | --locale)
  753. ac_prev=localedir ;;
  754. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  755. localedir=$ac_optarg ;;
  756. -localstatedir | --localstatedir | --localstatedi | --localstated \
  757. | --localstate | --localstat | --localsta | --localst | --locals)
  758. ac_prev=localstatedir ;;
  759. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  760. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  761. localstatedir=$ac_optarg ;;
  762. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  763. ac_prev=mandir ;;
  764. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  765. mandir=$ac_optarg ;;
  766. -nfp | --nfp | --nf)
  767. # Obsolete; use --without-fp.
  768. with_fp=no ;;
  769. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  770. | --no-cr | --no-c | -n)
  771. no_create=yes ;;
  772. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  773. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  774. no_recursion=yes ;;
  775. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  776. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  777. | --oldin | --oldi | --old | --ol | --o)
  778. ac_prev=oldincludedir ;;
  779. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  780. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  781. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  782. oldincludedir=$ac_optarg ;;
  783. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  784. ac_prev=prefix ;;
  785. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  786. prefix=$ac_optarg ;;
  787. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  788. | --program-pre | --program-pr | --program-p)
  789. ac_prev=program_prefix ;;
  790. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  791. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  792. program_prefix=$ac_optarg ;;
  793. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  794. | --program-suf | --program-su | --program-s)
  795. ac_prev=program_suffix ;;
  796. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  797. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  798. program_suffix=$ac_optarg ;;
  799. -program-transform-name | --program-transform-name \
  800. | --program-transform-nam | --program-transform-na \
  801. | --program-transform-n | --program-transform- \
  802. | --program-transform | --program-transfor \
  803. | --program-transfo | --program-transf \
  804. | --program-trans | --program-tran \
  805. | --progr-tra | --program-tr | --program-t)
  806. ac_prev=program_transform_name ;;
  807. -program-transform-name=* | --program-transform-name=* \
  808. | --program-transform-nam=* | --program-transform-na=* \
  809. | --program-transform-n=* | --program-transform-=* \
  810. | --program-transform=* | --program-transfor=* \
  811. | --program-transfo=* | --program-transf=* \
  812. | --program-trans=* | --program-tran=* \
  813. | --progr-tra=* | --program-tr=* | --program-t=*)
  814. program_transform_name=$ac_optarg ;;
  815. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  816. ac_prev=pdfdir ;;
  817. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  818. pdfdir=$ac_optarg ;;
  819. -psdir | --psdir | --psdi | --psd | --ps)
  820. ac_prev=psdir ;;
  821. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  822. psdir=$ac_optarg ;;
  823. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  824. | -silent | --silent | --silen | --sile | --sil)
  825. silent=yes ;;
  826. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  827. ac_prev=sbindir ;;
  828. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  829. | --sbi=* | --sb=*)
  830. sbindir=$ac_optarg ;;
  831. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  832. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  833. | --sharedst | --shareds | --shared | --share | --shar \
  834. | --sha | --sh)
  835. ac_prev=sharedstatedir ;;
  836. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  837. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  838. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  839. | --sha=* | --sh=*)
  840. sharedstatedir=$ac_optarg ;;
  841. -site | --site | --sit)
  842. ac_prev=site ;;
  843. -site=* | --site=* | --sit=*)
  844. site=$ac_optarg ;;
  845. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  846. ac_prev=srcdir ;;
  847. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  848. srcdir=$ac_optarg ;;
  849. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  850. | --syscon | --sysco | --sysc | --sys | --sy)
  851. ac_prev=sysconfdir ;;
  852. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  853. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  854. sysconfdir=$ac_optarg ;;
  855. -target | --target | --targe | --targ | --tar | --ta | --t)
  856. ac_prev=target_alias ;;
  857. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  858. target_alias=$ac_optarg ;;
  859. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  860. verbose=yes ;;
  861. -version | --version | --versio | --versi | --vers | -V)
  862. ac_init_version=: ;;
  863. -with-* | --with-*)
  864. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  867. { echo "$as_me: error: invalid package name: $ac_package" >&2
  868. { (exit 1); exit 1; }; }
  869. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  870. eval with_$ac_package=\$ac_optarg ;;
  871. -without-* | --without-*)
  872. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  873. # Reject names that are not valid shell variable names.
  874. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  875. { echo "$as_me: error: invalid package name: $ac_package" >&2
  876. { (exit 1); exit 1; }; }
  877. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  878. eval with_$ac_package=no ;;
  879. --x)
  880. # Obsolete; use --with-x.
  881. with_x=yes ;;
  882. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  883. | --x-incl | --x-inc | --x-in | --x-i)
  884. ac_prev=x_includes ;;
  885. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  886. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  887. x_includes=$ac_optarg ;;
  888. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  889. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  890. ac_prev=x_libraries ;;
  891. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  892. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  893. x_libraries=$ac_optarg ;;
  894. -*) { echo "$as_me: error: unrecognized option: $ac_option
  895. Try \`$0 --help' for more information." >&2
  896. { (exit 1); exit 1; }; }
  897. ;;
  898. *=*)
  899. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  902. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  903. { (exit 1); exit 1; }; }
  904. eval $ac_envvar=\$ac_optarg
  905. export $ac_envvar ;;
  906. *)
  907. # FIXME: should be removed in autoconf 3.0.
  908. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  909. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  910. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  911. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  912. ;;
  913. esac
  914. done
  915. if test -n "$ac_prev"; then
  916. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  917. { echo "$as_me: error: missing argument to $ac_option" >&2
  918. { (exit 1); exit 1; }; }
  919. fi
  920. # Be sure to have absolute directory names.
  921. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  922. datadir sysconfdir sharedstatedir localstatedir includedir \
  923. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  924. libdir localedir mandir
  925. do
  926. eval ac_val=\$$ac_var
  927. case $ac_val in
  928. [\\/$]* | ?:[\\/]* ) continue;;
  929. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  930. esac
  931. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  932. { (exit 1); exit 1; }; }
  933. done
  934. # There might be people who depend on the old broken behavior: `$host'
  935. # used to hold the argument of --host etc.
  936. # FIXME: To remove some day.
  937. build=$build_alias
  938. host=$host_alias
  939. target=$target_alias
  940. # FIXME: To remove some day.
  941. if test "x$host_alias" != x; then
  942. if test "x$build_alias" = x; then
  943. cross_compiling=maybe
  944. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  945. If a cross compiler is detected then cross compile mode will be used." >&2
  946. elif test "x$build_alias" != "x$host_alias"; then
  947. cross_compiling=yes
  948. fi
  949. fi
  950. ac_tool_prefix=
  951. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  952. test "$silent" = yes && exec 6>/dev/null
  953. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  954. ac_ls_di=`ls -di .` &&
  955. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  956. { echo "$as_me: error: Working directory cannot be determined" >&2
  957. { (exit 1); exit 1; }; }
  958. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  959. { echo "$as_me: error: pwd does not report name of working directory" >&2
  960. { (exit 1); exit 1; }; }
  961. # Find the source files, if location was not specified.
  962. if test -z "$srcdir"; then
  963. ac_srcdir_defaulted=yes
  964. # Try the directory containing this script, then the parent directory.
  965. ac_confdir=`$as_dirname -- "$0" ||
  966. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  967. X"$0" : 'X\(//\)[^/]' \| \
  968. X"$0" : 'X\(//\)$' \| \
  969. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  970. echo X"$0" |
  971. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  972. s//\1/
  973. q
  974. }
  975. /^X\(\/\/\)[^/].*/{
  976. s//\1/
  977. q
  978. }
  979. /^X\(\/\/\)$/{
  980. s//\1/
  981. q
  982. }
  983. /^X\(\/\).*/{
  984. s//\1/
  985. q
  986. }
  987. s/.*/./; q'`
  988. srcdir=$ac_confdir
  989. if test ! -r "$srcdir/$ac_unique_file"; then
  990. srcdir=..
  991. fi
  992. else
  993. ac_srcdir_defaulted=no
  994. fi
  995. if test ! -r "$srcdir/$ac_unique_file"; then
  996. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  997. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  998. { (exit 1); exit 1; }; }
  999. fi
  1000. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1001. ac_abs_confdir=`(
  1002. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1003. { (exit 1); exit 1; }; }
  1004. pwd)`
  1005. # When building in place, set srcdir=.
  1006. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1007. srcdir=.
  1008. fi
  1009. # Remove unnecessary trailing slashes from srcdir.
  1010. # Double slashes in file names in object file debugging info
  1011. # mess up M-x gdb in Emacs.
  1012. case $srcdir in
  1013. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1014. esac
  1015. for ac_var in $ac_precious_vars; do
  1016. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1017. eval ac_env_${ac_var}_value=\$${ac_var}
  1018. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1019. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1020. done
  1021. #
  1022. # Report the --help message.
  1023. #
  1024. if test "$ac_init_help" = "long"; then
  1025. # Omit some internal or obsolete options to make the list less imposing.
  1026. # This message is too long to be a string in the A/UX 3.1 sh.
  1027. cat <<_ACEOF
  1028. \`configure' configures this package to adapt to many kinds of systems.
  1029. Usage: $0 [OPTION]... [VAR=VALUE]...
  1030. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1031. VAR=VALUE. See below for descriptions of some of the useful variables.
  1032. Defaults for the options are specified in brackets.
  1033. Configuration:
  1034. -h, --help display this help and exit
  1035. --help=short display options specific to this package
  1036. --help=recursive display the short help of all the included packages
  1037. -V, --version display version information and exit
  1038. -q, --quiet, --silent do not print \`checking...' messages
  1039. --cache-file=FILE cache test results in FILE [disabled]
  1040. -C, --config-cache alias for \`--cache-file=config.cache'
  1041. -n, --no-create do not create output files
  1042. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1043. Installation directories:
  1044. --prefix=PREFIX install architecture-independent files in PREFIX
  1045. [$ac_default_prefix]
  1046. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1047. [PREFIX]
  1048. By default, \`make install' will install all the files in
  1049. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1050. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1051. for instance \`--prefix=\$HOME'.
  1052. For better control, use the options below.
  1053. Fine tuning of the installation directories:
  1054. --bindir=DIR user executables [EPREFIX/bin]
  1055. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1056. --libexecdir=DIR program executables [EPREFIX/libexec]
  1057. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1058. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1059. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1060. --libdir=DIR object code libraries [EPREFIX/lib]
  1061. --includedir=DIR C header files [PREFIX/include]
  1062. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1063. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1064. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1065. --infodir=DIR info documentation [DATAROOTDIR/info]
  1066. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1067. --mandir=DIR man documentation [DATAROOTDIR/man]
  1068. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1069. --htmldir=DIR html documentation [DOCDIR]
  1070. --dvidir=DIR dvi documentation [DOCDIR]
  1071. --pdfdir=DIR pdf documentation [DOCDIR]
  1072. --psdir=DIR ps documentation [DOCDIR]
  1073. _ACEOF
  1074. cat <<\_ACEOF
  1075. _ACEOF
  1076. fi
  1077. if test -n "$ac_init_help"; then
  1078. cat <<\_ACEOF
  1079. Optional Features:
  1080. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1081. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1082. --enable-universal-binary
  1083. Build MacOS X Universal Binary
  1084. Some influential environment variables:
  1085. CC C compiler command
  1086. CFLAGS C compiler flags
  1087. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1088. nonstandard directory <lib dir>
  1089. LIBS libraries to pass to the linker, e.g. -l<library>
  1090. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1091. you have headers in a nonstandard directory <include dir>
  1092. CPP C preprocessor
  1093. Use these variables to override the choices made by `configure' or to help
  1094. it to find libraries and programs with nonstandard names/locations.
  1095. _ACEOF
  1096. ac_status=$?
  1097. fi
  1098. if test "$ac_init_help" = "recursive"; then
  1099. # If there are subdirs, report their specific --help.
  1100. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1101. test -d "$ac_dir" || continue
  1102. ac_builddir=.
  1103. case "$ac_dir" in
  1104. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1105. *)
  1106. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1107. # A ".." for each directory in $ac_dir_suffix.
  1108. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1109. case $ac_top_builddir_sub in
  1110. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1111. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1112. esac ;;
  1113. esac
  1114. ac_abs_top_builddir=$ac_pwd
  1115. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1116. # for backward compatibility:
  1117. ac_top_builddir=$ac_top_build_prefix
  1118. case $srcdir in
  1119. .) # We are building in place.
  1120. ac_srcdir=.
  1121. ac_top_srcdir=$ac_top_builddir_sub
  1122. ac_abs_top_srcdir=$ac_pwd ;;
  1123. [\\/]* | ?:[\\/]* ) # Absolute name.
  1124. ac_srcdir=$srcdir$ac_dir_suffix;
  1125. ac_top_srcdir=$srcdir
  1126. ac_abs_top_srcdir=$srcdir ;;
  1127. *) # Relative name.
  1128. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1129. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1130. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1131. esac
  1132. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1133. cd "$ac_dir" || { ac_status=$?; continue; }
  1134. # Check for guested configure.
  1135. if test -f "$ac_srcdir/configure.gnu"; then
  1136. echo &&
  1137. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1138. elif test -f "$ac_srcdir/configure"; then
  1139. echo &&
  1140. $SHELL "$ac_srcdir/configure" --help=recursive
  1141. else
  1142. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1143. fi || ac_status=$?
  1144. cd "$ac_pwd" || { ac_status=$?; break; }
  1145. done
  1146. fi
  1147. test -n "$ac_init_help" && exit $ac_status
  1148. if $ac_init_version; then
  1149. cat <<\_ACEOF
  1150. configure
  1151. generated by GNU Autoconf 2.61
  1152. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1153. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1154. This configure script is free software; the Free Software Foundation
  1155. gives unlimited permission to copy, distribute and modify it.
  1156. _ACEOF
  1157. exit
  1158. fi
  1159. cat >config.log <<_ACEOF
  1160. This file contains any messages produced by compilers while
  1161. running configure, to aid debugging if configure makes a mistake.
  1162. It was created by $as_me, which was
  1163. generated by GNU Autoconf 2.61. Invocation command line was
  1164. $ $0 $@
  1165. _ACEOF
  1166. exec 5>>config.log
  1167. {
  1168. cat <<_ASUNAME
  1169. ## --------- ##
  1170. ## Platform. ##
  1171. ## --------- ##
  1172. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1173. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1174. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1175. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1176. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1177. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1178. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1179. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1180. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1181. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1182. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1183. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1184. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1185. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1186. _ASUNAME
  1187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1188. for as_dir in $PATH
  1189. do
  1190. IFS=$as_save_IFS
  1191. test -z "$as_dir" && as_dir=.
  1192. echo "PATH: $as_dir"
  1193. done
  1194. IFS=$as_save_IFS
  1195. } >&5
  1196. cat >&5 <<_ACEOF
  1197. ## ----------- ##
  1198. ## Core tests. ##
  1199. ## ----------- ##
  1200. _ACEOF
  1201. # Keep a trace of the command line.
  1202. # Strip out --no-create and --no-recursion so they do not pile up.
  1203. # Strip out --silent because we don't want to record it for future runs.
  1204. # Also quote any args containing shell meta-characters.
  1205. # Make two passes to allow for proper duplicate-argument suppression.
  1206. ac_configure_args=
  1207. ac_configure_args0=
  1208. ac_configure_args1=
  1209. ac_must_keep_next=false
  1210. for ac_pass in 1 2
  1211. do
  1212. for ac_arg
  1213. do
  1214. case $ac_arg in
  1215. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1216. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1217. | -silent | --silent | --silen | --sile | --sil)
  1218. continue ;;
  1219. *\'*)
  1220. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1221. esac
  1222. case $ac_pass in
  1223. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1224. 2)
  1225. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1226. if test $ac_must_keep_next = true; then
  1227. ac_must_keep_next=false # Got value, back to normal.
  1228. else
  1229. case $ac_arg in
  1230. *=* | --config-cache | -C | -disable-* | --disable-* \
  1231. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1232. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1233. | -with-* | --with-* | -without-* | --without-* | --x)
  1234. case "$ac_configure_args0 " in
  1235. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1236. esac
  1237. ;;
  1238. -* ) ac_must_keep_next=true ;;
  1239. esac
  1240. fi
  1241. ac_configure_args="$ac_configure_args '$ac_arg'"
  1242. ;;
  1243. esac
  1244. done
  1245. done
  1246. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1247. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1248. # When interrupted or exit'd, cleanup temporary files, and complete
  1249. # config.log. We remove comments because anyway the quotes in there
  1250. # would cause problems or look ugly.
  1251. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1252. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1253. trap 'exit_status=$?
  1254. # Save into config.log some information that might help in debugging.
  1255. {
  1256. echo
  1257. cat <<\_ASBOX
  1258. ## ---------------- ##
  1259. ## Cache variables. ##
  1260. ## ---------------- ##
  1261. _ASBOX
  1262. echo
  1263. # The following way of writing the cache mishandles newlines in values,
  1264. (
  1265. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1266. eval ac_val=\$$ac_var
  1267. case $ac_val in #(
  1268. *${as_nl}*)
  1269. case $ac_var in #(
  1270. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1271. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1272. esac
  1273. case $ac_var in #(
  1274. _ | IFS | as_nl) ;; #(
  1275. *) $as_unset $ac_var ;;
  1276. esac ;;
  1277. esac
  1278. done
  1279. (set) 2>&1 |
  1280. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1281. *${as_nl}ac_space=\ *)
  1282. sed -n \
  1283. "s/'\''/'\''\\\\'\'''\''/g;
  1284. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1285. ;; #(
  1286. *)
  1287. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1288. ;;
  1289. esac |
  1290. sort
  1291. )
  1292. echo
  1293. cat <<\_ASBOX
  1294. ## ----------------- ##
  1295. ## Output variables. ##
  1296. ## ----------------- ##
  1297. _ASBOX
  1298. echo
  1299. for ac_var in $ac_subst_vars
  1300. do
  1301. eval ac_val=\$$ac_var
  1302. case $ac_val in
  1303. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1304. esac
  1305. echo "$ac_var='\''$ac_val'\''"
  1306. done | sort
  1307. echo
  1308. if test -n "$ac_subst_files"; then
  1309. cat <<\_ASBOX
  1310. ## ------------------- ##
  1311. ## File substitutions. ##
  1312. ## ------------------- ##
  1313. _ASBOX
  1314. echo
  1315. for ac_var in $ac_subst_files
  1316. do
  1317. eval ac_val=\$$ac_var
  1318. case $ac_val in
  1319. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1320. esac
  1321. echo "$ac_var='\''$ac_val'\''"
  1322. done | sort
  1323. echo
  1324. fi
  1325. if test -s confdefs.h; then
  1326. cat <<\_ASBOX
  1327. ## ----------- ##
  1328. ## confdefs.h. ##
  1329. ## ----------- ##
  1330. _ASBOX
  1331. echo
  1332. cat confdefs.h
  1333. echo
  1334. fi
  1335. test "$ac_signal" != 0 &&
  1336. echo "$as_me: caught signal $ac_signal"
  1337. echo "$as_me: exit $exit_status"
  1338. } >&5
  1339. rm -f core *.core core.conftest.* &&
  1340. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1341. exit $exit_status
  1342. ' 0
  1343. for ac_signal in 1 2 13 15; do
  1344. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1345. done
  1346. ac_signal=0
  1347. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1348. rm -f -r conftest* confdefs.h
  1349. # Predefined preprocessor variables.
  1350. cat >>confdefs.h <<_ACEOF
  1351. #define PACKAGE_NAME "$PACKAGE_NAME"
  1352. _ACEOF
  1353. cat >>confdefs.h <<_ACEOF
  1354. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1355. _ACEOF
  1356. cat >>confdefs.h <<_ACEOF
  1357. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1358. _ACEOF
  1359. cat >>confdefs.h <<_ACEOF
  1360. #define PACKAGE_STRING "$PACKAGE_STRING"
  1361. _ACEOF
  1362. cat >>confdefs.h <<_ACEOF
  1363. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1364. _ACEOF
  1365. # Let the site file select an alternate cache file if it wants to.
  1366. # Prefer explicitly selected file to automatically selected ones.
  1367. if test -n "$CONFIG_SITE"; then
  1368. set x "$CONFIG_SITE"
  1369. elif test "x$prefix" != xNONE; then
  1370. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1371. else
  1372. set x "$ac_default_prefix/share/config.site" \
  1373. "$ac_default_prefix/etc/config.site"
  1374. fi
  1375. shift
  1376. for ac_site_file
  1377. do
  1378. if test -r "$ac_site_file"; then
  1379. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1380. echo "$as_me: loading site script $ac_site_file" >&6;}
  1381. sed 's/^/| /' "$ac_site_file" >&5
  1382. . "$ac_site_file"
  1383. fi
  1384. done
  1385. if test -r "$cache_file"; then
  1386. # Some versions of bash will fail to source /dev/null (special
  1387. # files actually), so we avoid doing that.
  1388. if test -f "$cache_file"; then
  1389. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1390. echo "$as_me: loading cache $cache_file" >&6;}
  1391. case $cache_file in
  1392. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1393. *) . "./$cache_file";;
  1394. esac
  1395. fi
  1396. else
  1397. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1398. echo "$as_me: creating cache $cache_file" >&6;}
  1399. >$cache_file
  1400. fi
  1401. # Check that the precious variables saved in the cache have kept the same
  1402. # value.
  1403. ac_cache_corrupted=false
  1404. for ac_var in $ac_precious_vars; do
  1405. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1406. eval ac_new_set=\$ac_env_${ac_var}_set
  1407. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1408. eval ac_new_val=\$ac_env_${ac_var}_value
  1409. case $ac_old_set,$ac_new_set in
  1410. set,)
  1411. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1412. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1413. ac_cache_corrupted=: ;;
  1414. ,set)
  1415. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1416. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1417. ac_cache_corrupted=: ;;
  1418. ,);;
  1419. *)
  1420. if test "x$ac_old_val" != "x$ac_new_val"; then
  1421. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1422. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1423. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1424. echo "$as_me: former value: $ac_old_val" >&2;}
  1425. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1426. echo "$as_me: current value: $ac_new_val" >&2;}
  1427. ac_cache_corrupted=:
  1428. fi;;
  1429. esac
  1430. # Pass precious variables to config.status.
  1431. if test "$ac_new_set" = set; then
  1432. case $ac_new_val in
  1433. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1434. *) ac_arg=$ac_var=$ac_new_val ;;
  1435. esac
  1436. case " $ac_configure_args " in
  1437. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1438. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1439. esac
  1440. fi
  1441. done
  1442. if $ac_cache_corrupted; then
  1443. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1444. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1445. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1446. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1447. { (exit 1); exit 1; }; }
  1448. fi
  1449. ac_ext=c
  1450. ac_cpp='$CPP $CPPFLAGS'
  1451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1454. ac_config_headers="$ac_config_headers c/sysdep.h"
  1455. { echo "$as_me:$LINENO: checking whether we are building a Universal Binary" >&5
  1456. echo $ECHO_N "checking whether we are building a Universal Binary... $ECHO_C" >&6; }
  1457. # Check whether --enable-universal-binary was given.
  1458. if test "${enable_universal_binary+set}" = set; then
  1459. enableval=$enable_universal_binary; CFLAGS="${CFLAGS} -arch i386 -arch ppc";
  1460. option_enable_universal_binary="yes";
  1461. cat >>confdefs.h <<\_ACEOF
  1462. #define BUILD_UNIVERSAL_BINARY 1
  1463. _ACEOF
  1464. { echo "$as_me:$LINENO: result: yes" >&5
  1465. echo "${ECHO_T}yes" >&6; }
  1466. else
  1467. option_enable_universal_binary="no";
  1468. { echo "$as_me:$LINENO: result: no" >&5
  1469. echo "${ECHO_T}no" >&6; }
  1470. fi
  1471. mkdir -p c/unix
  1472. mkdir -p c/posix
  1473. mkdir -p c/fake
  1474. oldCFLAGS="$CFLAGS"
  1475. ac_ext=c
  1476. ac_cpp='$CPP $CPPFLAGS'
  1477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1480. if test -n "$ac_tool_prefix"; then
  1481. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1482. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1483. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1484. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1485. if test "${ac_cv_prog_CC+set}" = set; then
  1486. echo $ECHO_N "(cached) $ECHO_C" >&6
  1487. else
  1488. if test -n "$CC"; then
  1489. ac_cv_prog_CC="$CC" # Let the user override the test.
  1490. else
  1491. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1492. for as_dir in $PATH
  1493. do
  1494. IFS=$as_save_IFS
  1495. test -z "$as_dir" && as_dir=.
  1496. for ac_exec_ext in '' $ac_executable_extensions; do
  1497. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1498. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1499. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1500. break 2
  1501. fi
  1502. done
  1503. done
  1504. IFS=$as_save_IFS
  1505. fi
  1506. fi
  1507. CC=$ac_cv_prog_CC
  1508. if test -n "$CC"; then
  1509. { echo "$as_me:$LINENO: result: $CC" >&5
  1510. echo "${ECHO_T}$CC" >&6; }
  1511. else
  1512. { echo "$as_me:$LINENO: result: no" >&5
  1513. echo "${ECHO_T}no" >&6; }
  1514. fi
  1515. fi
  1516. if test -z "$ac_cv_prog_CC"; then
  1517. ac_ct_CC=$CC
  1518. # Extract the first word of "gcc", so it can be a program name with args.
  1519. set dummy gcc; ac_word=$2
  1520. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1521. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1522. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1523. echo $ECHO_N "(cached) $ECHO_C" >&6
  1524. else
  1525. if test -n "$ac_ct_CC"; then
  1526. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1527. else
  1528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1529. for as_dir in $PATH
  1530. do
  1531. IFS=$as_save_IFS
  1532. test -z "$as_dir" && as_dir=.
  1533. for ac_exec_ext in '' $ac_executable_extensions; do
  1534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1535. ac_cv_prog_ac_ct_CC="gcc"
  1536. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1537. break 2
  1538. fi
  1539. done
  1540. done
  1541. IFS=$as_save_IFS
  1542. fi
  1543. fi
  1544. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1545. if test -n "$ac_ct_CC"; then
  1546. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1547. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1548. else
  1549. { echo "$as_me:$LINENO: result: no" >&5
  1550. echo "${ECHO_T}no" >&6; }
  1551. fi
  1552. if test "x$ac_ct_CC" = x; then
  1553. CC=""
  1554. else
  1555. case $cross_compiling:$ac_tool_warned in
  1556. yes:)
  1557. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1558. whose name does not start with the host triplet. If you think this
  1559. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1560. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1561. whose name does not start with the host triplet. If you think this
  1562. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1563. ac_tool_warned=yes ;;
  1564. esac
  1565. CC=$ac_ct_CC
  1566. fi
  1567. else
  1568. CC="$ac_cv_prog_CC"
  1569. fi
  1570. if test -z "$CC"; then
  1571. if test -n "$ac_tool_prefix"; then
  1572. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1573. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1574. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1575. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1576. if test "${ac_cv_prog_CC+set}" = set; then
  1577. echo $ECHO_N "(cached) $ECHO_C" >&6
  1578. else
  1579. if test -n "$CC"; then
  1580. ac_cv_prog_CC="$CC" # Let the user override the test.
  1581. else
  1582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1583. for as_dir in $PATH
  1584. do
  1585. IFS=$as_save_IFS
  1586. test -z "$as_dir" && as_dir=.
  1587. for ac_exec_ext in '' $ac_executable_extensions; do
  1588. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1589. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1590. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1591. break 2
  1592. fi
  1593. done
  1594. done
  1595. IFS=$as_save_IFS
  1596. fi
  1597. fi
  1598. CC=$ac_cv_prog_CC
  1599. if test -n "$CC"; then
  1600. { echo "$as_me:$LINENO: result: $CC" >&5
  1601. echo "${ECHO_T}$CC" >&6; }
  1602. else
  1603. { echo "$as_me:$LINENO: result: no" >&5
  1604. echo "${ECHO_T}no" >&6; }
  1605. fi
  1606. fi
  1607. fi
  1608. if test -z "$CC"; then
  1609. # Extract the first word of "cc", so it can be a program name with args.
  1610. set dummy cc; ac_word=$2
  1611. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1612. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1613. if test "${ac_cv_prog_CC+set}" = set; then
  1614. echo $ECHO_N "(cached) $ECHO_C" >&6
  1615. else
  1616. if test -n "$CC"; then
  1617. ac_cv_prog_CC="$CC" # Let the user override the test.
  1618. else
  1619. ac_prog_rejected=no
  1620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1621. for as_dir in $PATH
  1622. do
  1623. IFS=$as_save_IFS
  1624. test -z "$as_dir" && as_dir=.
  1625. for ac_exec_ext in '' $ac_executable_extensions; do
  1626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1627. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1628. ac_prog_rejected=yes
  1629. continue
  1630. fi
  1631. ac_cv_prog_CC="cc"
  1632. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1633. break 2
  1634. fi
  1635. done
  1636. done
  1637. IFS=$as_save_IFS
  1638. if test $ac_prog_rejected = yes; then
  1639. # We found a bogon in the path, so make sure we never use it.
  1640. set dummy $ac_cv_prog_CC
  1641. shift
  1642. if test $# != 0; then
  1643. # We chose a different compiler from the bogus one.
  1644. # However, it has the same basename, so the bogon will be chosen
  1645. # first if we set CC to just the basename; use the full file name.
  1646. shift
  1647. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1648. fi
  1649. fi
  1650. fi
  1651. fi
  1652. CC=$ac_cv_prog_CC
  1653. if test -n "$CC"; then
  1654. { echo "$as_me:$LINENO: result: $CC" >&5
  1655. echo "${ECHO_T}$CC" >&6; }
  1656. else
  1657. { echo "$as_me:$LINENO: result: no" >&5
  1658. echo "${ECHO_T}no" >&6; }
  1659. fi
  1660. fi
  1661. if test -z "$CC"; then
  1662. if test -n "$ac_tool_prefix"; then
  1663. for ac_prog in cl.exe
  1664. do
  1665. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1666. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1667. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1668. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1669. if test "${ac_cv_prog_CC+set}" = set; then
  1670. echo $ECHO_N "(cached) $ECHO_C" >&6
  1671. else
  1672. if test -n "$CC"; then
  1673. ac_cv_prog_CC="$CC" # Let the user override the test.
  1674. else
  1675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1676. for as_dir in $PATH
  1677. do
  1678. IFS=$as_save_IFS
  1679. test -z "$as_dir" && as_dir=.
  1680. for ac_exec_ext in '' $ac_executable_extensions; do
  1681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1682. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1683. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1684. break 2
  1685. fi
  1686. done
  1687. done
  1688. IFS=$as_save_IFS
  1689. fi
  1690. fi
  1691. CC=$ac_cv_prog_CC
  1692. if test -n "$CC"; then
  1693. { echo "$as_me:$LINENO: result: $CC" >&5
  1694. echo "${ECHO_T}$CC" >&6; }
  1695. else
  1696. { echo "$as_me:$LINENO: result: no" >&5
  1697. echo "${ECHO_T}no" >&6; }
  1698. fi
  1699. test -n "$CC" && break
  1700. done
  1701. fi
  1702. if test -z "$CC"; then
  1703. ac_ct_CC=$CC
  1704. for ac_prog in cl.exe
  1705. do
  1706. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1707. set dummy $ac_prog; ac_word=$2
  1708. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1709. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1710. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1711. echo $ECHO_N "(cached) $ECHO_C" >&6
  1712. else
  1713. if test -n "$ac_ct_CC"; then
  1714. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1715. else
  1716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1717. for as_dir in $PATH
  1718. do
  1719. IFS=$as_save_IFS
  1720. test -z "$as_dir" && as_dir=.
  1721. for ac_exec_ext in '' $ac_executable_extensions; do
  1722. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1723. ac_cv_prog_ac_ct_CC="$ac_prog"
  1724. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1725. break 2
  1726. fi
  1727. done
  1728. done
  1729. IFS=$as_save_IFS
  1730. fi
  1731. fi
  1732. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1733. if test -n "$ac_ct_CC"; then
  1734. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1735. echo "${ECHO_T}$ac_ct_CC" >&6; }
  1736. else
  1737. { echo "$as_me:$LINENO: result: no" >&5
  1738. echo "${ECHO_T}no" >&6; }
  1739. fi
  1740. test -n "$ac_ct_CC" && break
  1741. done
  1742. if test "x$ac_ct_CC" = x; then
  1743. CC=""
  1744. else
  1745. case $cross_compiling:$ac_tool_warned in
  1746. yes:)
  1747. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1748. whose name does not start with the host triplet. If you think this
  1749. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1750. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1751. whose name does not start with the host triplet. If you think this
  1752. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1753. ac_tool_warned=yes ;;
  1754. esac
  1755. CC=$ac_ct_CC
  1756. fi
  1757. fi
  1758. fi
  1759. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1760. See \`config.log' for more details." >&5
  1761. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1762. See \`config.log' for more details." >&2;}
  1763. { (exit 1); exit 1; }; }
  1764. # Provide some information about the compiler.
  1765. echo "$as_me:$LINENO: checking for C compiler version" >&5
  1766. ac_compiler=`set X $ac_compile; echo $2`
  1767. { (ac_try="$ac_compiler --version >&5"
  1768. case "(($ac_try" in
  1769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1770. *) ac_try_echo=$ac_try;;
  1771. esac
  1772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1773. (eval "$ac_compiler --version >&5") 2>&5
  1774. ac_status=$?
  1775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1776. (exit $ac_status); }
  1777. { (ac_try="$ac_compiler -v >&5"
  1778. case "(($ac_try" in
  1779. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1780. *) ac_try_echo=$ac_try;;
  1781. esac
  1782. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1783. (eval "$ac_compiler -v >&5") 2>&5
  1784. ac_status=$?
  1785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1786. (exit $ac_status); }
  1787. { (ac_try="$ac_compiler -V >&5"
  1788. case "(($ac_try" in
  1789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1790. *) ac_try_echo=$ac_try;;
  1791. esac
  1792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1793. (eval "$ac_compiler -V >&5") 2>&5
  1794. ac_status=$?
  1795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1796. (exit $ac_status); }
  1797. cat >conftest.$ac_ext <<_ACEOF
  1798. /* confdefs.h. */
  1799. _ACEOF
  1800. cat confdefs.h >>conftest.$ac_ext
  1801. cat >>conftest.$ac_ext <<_ACEOF
  1802. /* end confdefs.h. */
  1803. int
  1804. main ()
  1805. {
  1806. ;
  1807. return 0;
  1808. }
  1809. _ACEOF
  1810. ac_clean_files_save=$ac_clean_files
  1811. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1812. # Try to create an executable without -o first, disregard a.out.
  1813. # It will help us diagnose broken compilers, and finding out an intuition
  1814. # of exeext.
  1815. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1816. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1817. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1818. #
  1819. # List of possible output files, starting from the most likely.
  1820. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1821. # only as a last resort. b.out is created by i960 compilers.
  1822. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1823. #
  1824. # The IRIX 6 linker writes into existing files which may not be
  1825. # executable, retaining their permissions. Remove them first so a
  1826. # subsequent execution test works.
  1827. ac_rmfiles=
  1828. for ac_file in $ac_files
  1829. do
  1830. case $ac_file in
  1831. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1832. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1833. esac
  1834. done
  1835. rm -f $ac_rmfiles
  1836. if { (ac_try="$ac_link_default"
  1837. case "(($ac_try" in
  1838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1839. *) ac_try_echo=$ac_try;;
  1840. esac
  1841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1842. (eval "$ac_link_default") 2>&5
  1843. ac_status=$?
  1844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1845. (exit $ac_status); }; then
  1846. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1847. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1848. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1849. # so that the user can short-circuit this test for compilers unknown to
  1850. # Autoconf.
  1851. for ac_file in $ac_files ''
  1852. do
  1853. test -f "$ac_file" || continue
  1854. case $ac_file in
  1855. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1856. ;;
  1857. [ab].out )
  1858. # We found the default executable, but exeext='' is most
  1859. # certainly right.
  1860. break;;
  1861. *.* )
  1862. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1863. then :; else
  1864. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1865. fi
  1866. # We set ac_cv_exeext here because the later test for it is not
  1867. # safe: cross compilers may not add the suffix if given an `-o'
  1868. # argument, so we may need to know it at that point already.
  1869. # Even if this section looks crufty: it has the advantage of
  1870. # actually working.
  1871. break;;
  1872. * )
  1873. break;;
  1874. esac
  1875. done
  1876. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1877. else
  1878. ac_file=''
  1879. fi
  1880. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1881. echo "${ECHO_T}$ac_file" >&6; }
  1882. if test -z "$ac_file"; then
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1886. See \`config.log' for more details." >&5
  1887. echo "$as_me: error: C compiler cannot create executables
  1888. See \`config.log' for more details." >&2;}
  1889. { (exit 77); exit 77; }; }
  1890. fi
  1891. ac_exeext=$ac_cv_exeext
  1892. # Check that the compiler produces executables we can run. If not, either
  1893. # the compiler is broken, or we cross compile.
  1894. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1895. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1896. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1897. # If not cross compiling, check that we can run a simple program.
  1898. if test "$cross_compiling" != yes; then
  1899. if { ac_try='./$ac_file'
  1900. { (case "(($ac_try" in
  1901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1902. *) ac_try_echo=$ac_try;;
  1903. esac
  1904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1905. (eval "$ac_try") 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; }; then
  1909. cross_compiling=no
  1910. else
  1911. if test "$cross_compiling" = maybe; then
  1912. cross_compiling=yes
  1913. else
  1914. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1915. If you meant to cross compile, use \`--host'.
  1916. See \`config.log' for more details." >&5
  1917. echo "$as_me: error: cannot run C compiled programs.
  1918. If you meant to cross compile, use \`--host'.
  1919. See \`config.log' for more details." >&2;}
  1920. { (exit 1); exit 1; }; }
  1921. fi
  1922. fi
  1923. fi
  1924. { echo "$as_me:$LINENO: result: yes" >&5
  1925. echo "${ECHO_T}yes" >&6; }
  1926. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1927. ac_clean_files=$ac_clean_files_save
  1928. # Check that the compiler produces executables we can run. If not, either
  1929. # the compiler is broken, or we cross compile.
  1930. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1931. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1932. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1933. echo "${ECHO_T}$cross_compiling" >&6; }
  1934. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1935. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1936. if { (ac_try="$ac_link"
  1937. case "(($ac_try" in
  1938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1939. *) ac_try_echo=$ac_try;;
  1940. esac
  1941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1942. (eval "$ac_link") 2>&5
  1943. ac_status=$?
  1944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1945. (exit $ac_status); }; then
  1946. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1947. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1948. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1949. # `rm'.
  1950. for ac_file in conftest.exe conftest conftest.*; do
  1951. test -f "$ac_file" || continue
  1952. case $ac_file in
  1953. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1954. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1955. break;;
  1956. * ) break;;
  1957. esac
  1958. done
  1959. else
  1960. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1961. See \`config.log' for more details." >&5
  1962. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1963. See \`config.log' for more details." >&2;}
  1964. { (exit 1); exit 1; }; }
  1965. fi
  1966. rm -f conftest$ac_cv_exeext
  1967. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1968. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1969. rm -f conftest.$ac_ext
  1970. EXEEXT=$ac_cv_exeext
  1971. ac_exeext=$EXEEXT
  1972. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1973. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1974. if test "${ac_cv_objext+set}" = set; then
  1975. echo $ECHO_N "(cached) $ECHO_C" >&6
  1976. else
  1977. cat >conftest.$ac_ext <<_ACEOF
  1978. /* confdefs.h. */
  1979. _ACEOF
  1980. cat confdefs.h >>conftest.$ac_ext
  1981. cat >>conftest.$ac_ext <<_ACEOF
  1982. /* end confdefs.h. */
  1983. int
  1984. main ()
  1985. {
  1986. ;
  1987. return 0;
  1988. }
  1989. _ACEOF
  1990. rm -f conftest.o conftest.obj
  1991. if { (ac_try="$ac_compile"
  1992. case "(($ac_try" in
  1993. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1994. *) ac_try_echo=$ac_try;;
  1995. esac
  1996. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1997. (eval "$ac_compile") 2>&5
  1998. ac_status=$?
  1999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2000. (exit $ac_status); }; then
  2001. for ac_file in conftest.o conftest.obj conftest.*; do
  2002. test -f "$ac_file" || continue;
  2003. case $ac_file in
  2004. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2005. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2006. break;;
  2007. esac
  2008. done
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2013. See \`config.log' for more details." >&5
  2014. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2015. See \`config.log' for more details." >&2;}
  2016. { (exit 1); exit 1; }; }
  2017. fi
  2018. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2019. fi
  2020. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2021. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2022. OBJEXT=$ac_cv_objext
  2023. ac_objext=$OBJEXT
  2024. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2025. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2026. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2027. echo $ECHO_N "(cached) $ECHO_C" >&6
  2028. else
  2029. cat >conftest.$ac_ext <<_ACEOF
  2030. /* confdefs.h. */
  2031. _ACEOF
  2032. cat confdefs.h >>conftest.$ac_ext
  2033. cat >>conftest.$ac_ext <<_ACEOF
  2034. /* end confdefs.h. */
  2035. int
  2036. main ()
  2037. {
  2038. #ifndef __GNUC__
  2039. choke me
  2040. #endif
  2041. ;
  2042. return 0;
  2043. }
  2044. _ACEOF
  2045. rm -f conftest.$ac_objext
  2046. if { (ac_try="$ac_compile"
  2047. case "(($ac_try" in
  2048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2049. *) ac_try_echo=$ac_try;;
  2050. esac
  2051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2052. (eval "$ac_compile") 2>conftest.er1
  2053. ac_status=$?
  2054. grep -v '^ *+' conftest.er1 >conftest.err
  2055. rm -f conftest.er1
  2056. cat conftest.err >&5
  2057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2058. (exit $ac_status); } && {
  2059. test -z "$ac_c_werror_flag" ||
  2060. test ! -s conftest.err
  2061. } && test -s conftest.$ac_objext; then
  2062. ac_compiler_gnu=yes
  2063. else
  2064. echo "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. ac_compiler_gnu=no
  2067. fi
  2068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2069. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2070. fi
  2071. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2072. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2073. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2074. ac_test_CFLAGS=${CFLAGS+set}
  2075. ac_save_CFLAGS=$CFLAGS
  2076. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2077. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2078. if test "${ac_cv_prog_cc_g+set}" = set; then
  2079. echo $ECHO_N "(cached) $ECHO_C" >&6
  2080. else
  2081. ac_save_c_werror_flag=$ac_c_werror_flag
  2082. ac_c_werror_flag=yes
  2083. ac_cv_prog_cc_g=no
  2084. CFLAGS="-g"
  2085. cat >conftest.$ac_ext <<_ACEOF
  2086. /* confdefs.h. */
  2087. _ACEOF
  2088. cat confdefs.h >>conftest.$ac_ext
  2089. cat >>conftest.$ac_ext <<_ACEOF
  2090. /* end confdefs.h. */
  2091. int
  2092. main ()
  2093. {
  2094. ;
  2095. return 0;
  2096. }
  2097. _ACEOF
  2098. rm -f conftest.$ac_objext
  2099. if { (ac_try="$ac_compile"
  2100. case "(($ac_try" in
  2101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2102. *) ac_try_echo=$ac_try;;
  2103. esac
  2104. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2105. (eval "$ac_compile") 2>conftest.er1
  2106. ac_status=$?
  2107. grep -v '^ *+' conftest.er1 >conftest.err
  2108. rm -f conftest.er1
  2109. cat conftest.err >&5
  2110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2111. (exit $ac_status); } && {
  2112. test -z "$ac_c_werror_flag" ||
  2113. test ! -s conftest.err
  2114. } && test -s conftest.$ac_objext; then
  2115. ac_cv_prog_cc_g=yes
  2116. else
  2117. echo "$as_me: failed program was:" >&5
  2118. sed 's/^/| /' conftest.$ac_ext >&5
  2119. CFLAGS=""
  2120. cat >conftest.$ac_ext <<_ACEOF
  2121. /* confdefs.h. */
  2122. _ACEOF
  2123. cat confdefs.h >>conftest.$ac_ext
  2124. cat >>conftest.$ac_ext <<_ACEOF
  2125. /* end confdefs.h. */
  2126. int
  2127. main ()
  2128. {
  2129. ;
  2130. return 0;
  2131. }
  2132. _ACEOF
  2133. rm -f conftest.$ac_objext
  2134. if { (ac_try="$ac_compile"
  2135. case "(($ac_try" in
  2136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2137. *) ac_try_echo=$ac_try;;
  2138. esac
  2139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2140. (eval "$ac_compile") 2>conftest.er1
  2141. ac_status=$?
  2142. grep -v '^ *+' conftest.er1 >conftest.err
  2143. rm -f conftest.er1
  2144. cat conftest.err >&5
  2145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2146. (exit $ac_status); } && {
  2147. test -z "$ac_c_werror_flag" ||
  2148. test ! -s conftest.err
  2149. } && test -s conftest.$ac_objext; then
  2150. :
  2151. else
  2152. echo "$as_me: failed program was:" >&5
  2153. sed 's/^/| /' conftest.$ac_ext >&5
  2154. ac_c_werror_flag=$ac_save_c_werror_flag
  2155. CFLAGS="-g"
  2156. cat >conftest.$ac_ext <<_ACEOF
  2157. /* confdefs.h. */
  2158. _ACEOF
  2159. cat confdefs.h >>conftest.$ac_ext
  2160. cat >>conftest.$ac_ext <<_ACEOF
  2161. /* end confdefs.h. */
  2162. int
  2163. main ()
  2164. {
  2165. ;
  2166. return 0;
  2167. }
  2168. _ACEOF
  2169. rm -f conftest.$ac_objext
  2170. if { (ac_try="$ac_compile"
  2171. case "(($ac_try" in
  2172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2173. *) ac_try_echo=$ac_try;;
  2174. esac
  2175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2176. (eval "$ac_compile") 2>conftest.er1
  2177. ac_status=$?
  2178. grep -v '^ *+' conftest.er1 >conftest.err
  2179. rm -f conftest.er1
  2180. cat conftest.err >&5
  2181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2182. (exit $ac_status); } && {
  2183. test -z "$ac_c_werror_flag" ||
  2184. test ! -s conftest.err
  2185. } && test -s conftest.$ac_objext; then
  2186. ac_cv_prog_cc_g=yes
  2187. else
  2188. echo "$as_me: failed program was:" >&5
  2189. sed 's/^/| /' conftest.$ac_ext >&5
  2190. fi
  2191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2192. fi
  2193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2194. fi
  2195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2196. ac_c_werror_flag=$ac_save_c_werror_flag
  2197. fi
  2198. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2199. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2200. if test "$ac_test_CFLAGS" = set; then
  2201. CFLAGS=$ac_save_CFLAGS
  2202. elif test $ac_cv_prog_cc_g = yes; then
  2203. if test "$GCC" = yes; then
  2204. CFLAGS="-g -O2"
  2205. else
  2206. CFLAGS="-g"
  2207. fi
  2208. else
  2209. if test "$GCC" = yes; then
  2210. CFLAGS="-O2"
  2211. else
  2212. CFLAGS=
  2213. fi
  2214. fi
  2215. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2216. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2217. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2218. echo $ECHO_N "(cached) $ECHO_C" >&6
  2219. else
  2220. ac_cv_prog_cc_c89=no
  2221. ac_save_CC=$CC
  2222. cat >conftest.$ac_ext <<_ACEOF
  2223. /* confdefs.h. */
  2224. _ACEOF
  2225. cat confdefs.h >>conftest.$ac_ext
  2226. cat >>conftest.$ac_ext <<_ACEOF
  2227. /* end confdefs.h. */
  2228. #include <stdarg.h>
  2229. #include <stdio.h>
  2230. #include <sys/types.h>
  2231. #include <sys/stat.h>
  2232. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2233. struct buf { int x; };
  2234. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2235. static char *e (p, i)
  2236. char **p;
  2237. int i;
  2238. {
  2239. return p[i];
  2240. }
  2241. static char *f (char * (*g) (char **, int), char **p, ...)
  2242. {
  2243. char *s;
  2244. va_list v;
  2245. va_start (v,p);
  2246. s = g (p, va_arg (v,int));
  2247. va_end (v);
  2248. return s;
  2249. }
  2250. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2251. function prototypes and stuff, but not '\xHH' hex character constants.
  2252. These don't provoke an error unfortunately, instead are silently treated
  2253. as 'x'. The following induces an error, until -std is added to get
  2254. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2255. array size at least. It's necessary to write '\x00'==0 to get something
  2256. that's true only with -std. */
  2257. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2258. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2259. inside strings and character constants. */
  2260. #define FOO(x) 'x'
  2261. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2262. int test (int i, double x);
  2263. struct s1 {int (*f) (int a);};
  2264. struct s2 {int (*f) (double a);};
  2265. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2266. int argc;
  2267. char **argv;
  2268. int
  2269. main ()
  2270. {
  2271. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2272. ;
  2273. return 0;
  2274. }
  2275. _ACEOF
  2276. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2277. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2278. do
  2279. CC="$ac_save_CC $ac_arg"
  2280. rm -f conftest.$ac_objext
  2281. if { (ac_try="$ac_compile"
  2282. case "(($ac_try" in
  2283. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2284. *) ac_try_echo=$ac_try;;
  2285. esac
  2286. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2287. (eval "$ac_compile") 2>conftest.er1
  2288. ac_status=$?
  2289. grep -v '^ *+' conftest.er1 >conftest.err
  2290. rm -f conftest.er1
  2291. cat conftest.err >&5
  2292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2293. (exit $ac_status); } && {
  2294. test -z "$ac_c_werror_flag" ||
  2295. test ! -s conftest.err
  2296. } && test -s conftest.$ac_objext; then
  2297. ac_cv_prog_cc_c89=$ac_arg
  2298. else
  2299. echo "$as_me: failed program was:" >&5
  2300. sed 's/^/| /' conftest.$ac_ext >&5
  2301. fi
  2302. rm -f core conftest.err conftest.$ac_objext
  2303. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2304. done
  2305. rm -f conftest.$ac_ext
  2306. CC=$ac_save_CC
  2307. fi
  2308. # AC_CACHE_VAL
  2309. case "x$ac_cv_prog_cc_c89" in
  2310. x)
  2311. { echo "$as_me:$LINENO: result: none needed" >&5
  2312. echo "${ECHO_T}none needed" >&6; } ;;
  2313. xno)
  2314. { echo "$as_me:$LINENO: result: unsupported" >&5
  2315. echo "${ECHO_T}unsupported" >&6; } ;;
  2316. *)
  2317. CC="$CC $ac_cv_prog_cc_c89"
  2318. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2319. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  2320. esac
  2321. ac_ext=c
  2322. ac_cpp='$CPP $CPPFLAGS'
  2323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2326. if test "z$oldCFLAGS" = z; then
  2327. if test "z$GCC" = z; then
  2328. CFLAGS='-O'
  2329. else
  2330. CFLAGS='-O2'
  2331. fi
  2332. fi
  2333. { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2334. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  2335. if test "${ac_cv_search_strerror+set}" = set; then
  2336. echo $ECHO_N "(cached) $ECHO_C" >&6
  2337. else
  2338. ac_func_search_save_LIBS=$LIBS
  2339. cat >conftest.$ac_ext <<_ACEOF
  2340. /* confdefs.h. */
  2341. _ACEOF
  2342. cat confdefs.h >>conftest.$ac_ext
  2343. cat >>conftest.$ac_ext <<_ACEOF
  2344. /* end confdefs.h. */
  2345. /* Override any GCC internal prototype to avoid an error.
  2346. Use char because int might match the return type of a GCC
  2347. builtin and then its argument prototype would still apply. */
  2348. #ifdef __cplusplus
  2349. extern "C"
  2350. #endif
  2351. char strerror ();
  2352. int
  2353. main ()
  2354. {
  2355. return strerror ();
  2356. ;
  2357. return 0;
  2358. }
  2359. _ACEOF
  2360. for ac_lib in '' cposix; do
  2361. if test -z "$ac_lib"; then
  2362. ac_res="none required"
  2363. else
  2364. ac_res=-l$ac_lib
  2365. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2366. fi
  2367. rm -f conftest.$ac_objext conftest$ac_exeext
  2368. if { (ac_try="$ac_link"
  2369. case "(($ac_try" in
  2370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2371. *) ac_try_echo=$ac_try;;
  2372. esac
  2373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2374. (eval "$ac_link") 2>conftest.er1
  2375. ac_status=$?
  2376. grep -v '^ *+' conftest.er1 >conftest.err
  2377. rm -f conftest.er1
  2378. cat conftest.err >&5
  2379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2380. (exit $ac_status); } && {
  2381. test -z "$ac_c_werror_flag" ||
  2382. test ! -s conftest.err
  2383. } && test -s conftest$ac_exeext &&
  2384. $as_test_x conftest$ac_exeext; then
  2385. ac_cv_search_strerror=$ac_res
  2386. else
  2387. echo "$as_me: failed program was:" >&5
  2388. sed 's/^/| /' conftest.$ac_ext >&5
  2389. fi
  2390. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2391. conftest$ac_exeext
  2392. if test "${ac_cv_search_strerror+set}" = set; then
  2393. break
  2394. fi
  2395. done
  2396. if test "${ac_cv_search_strerror+set}" = set; then
  2397. :
  2398. else
  2399. ac_cv_search_strerror=no
  2400. fi
  2401. rm conftest.$ac_ext
  2402. LIBS=$ac_func_search_save_LIBS
  2403. fi
  2404. { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2405. echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  2406. ac_res=$ac_cv_search_strerror
  2407. if test "$ac_res" != no; then
  2408. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2409. fi
  2410. if test "$cross_compiling" = yes; then
  2411. true
  2412. else
  2413. cat >conftest.$ac_ext <<_ACEOF
  2414. /* confdefs.h. */
  2415. _ACEOF
  2416. cat confdefs.h >>conftest.$ac_ext
  2417. cat >>conftest.$ac_ext <<_ACEOF
  2418. /* end confdefs.h. */
  2419. int main() { return 0;}
  2420. _ACEOF
  2421. rm -f conftest$ac_exeext
  2422. if { (ac_try="$ac_link"
  2423. case "(($ac_try" in
  2424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2425. *) ac_try_echo=$ac_try;;
  2426. esac
  2427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2428. (eval "$ac_link") 2>&5
  2429. ac_status=$?
  2430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2431. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2432. { (case "(($ac_try" in
  2433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2434. *) ac_try_echo=$ac_try;;
  2435. esac
  2436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2437. (eval "$ac_try") 2>&5
  2438. ac_status=$?
  2439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2440. (exit $ac_status); }; }; then
  2441. :
  2442. else
  2443. echo "$as_me: program exited with status $ac_status" >&5
  2444. echo "$as_me: failed program was:" >&5
  2445. sed 's/^/| /' conftest.$ac_ext >&5
  2446. fi
  2447. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2448. fi
  2449. ac_aux_dir=
  2450. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2451. if test -f "$ac_dir/install-sh"; then
  2452. ac_aux_dir=$ac_dir
  2453. ac_install_sh="$ac_aux_dir/install-sh -c"
  2454. break
  2455. elif test -f "$ac_dir/install.sh"; then
  2456. ac_aux_dir=$ac_dir
  2457. ac_install_sh="$ac_aux_dir/install.sh -c"
  2458. break
  2459. elif test -f "$ac_dir/shtool"; then
  2460. ac_aux_dir=$ac_dir
  2461. ac_install_sh="$ac_aux_dir/shtool install -c"
  2462. break
  2463. fi
  2464. done
  2465. if test -z "$ac_aux_dir"; then
  2466. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2467. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2468. { (exit 1); exit 1; }; }
  2469. fi
  2470. # These three variables are undocumented and unsupported,
  2471. # and are intended to be withdrawn in a future Autoconf release.
  2472. # They can cause serious problems if a builder's source tree is in a directory
  2473. # whose full name contains unusual characters.
  2474. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2475. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2476. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2477. # Find a good install program. We prefer a C program (faster),
  2478. # so one script is as good as another. But avoid the broken or
  2479. # incompatible versions:
  2480. # SysV /etc/install, /usr/sbin/install
  2481. # SunOS /usr/etc/install
  2482. # IRIX /sbin/install
  2483. # AIX /bin/install
  2484. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2485. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2486. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2487. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2488. # OS/2's system install, which has a completely different semantic
  2489. # ./install, which can be erroneously created by make from ./install.sh.
  2490. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2491. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  2492. if test -z "$INSTALL"; then
  2493. if test "${ac_cv_path_install+set}" = set; then
  2494. echo $ECHO_N "(cached) $ECHO_C" >&6
  2495. else
  2496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2497. for as_dir in $PATH
  2498. do
  2499. IFS=$as_save_IFS
  2500. test -z "$as_dir" && as_dir=.
  2501. # Account for people who put trailing slashes in PATH elements.
  2502. case $as_dir/ in
  2503. ./ | .// | /cC/* | \
  2504. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2505. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2506. /usr/ucb/* ) ;;
  2507. *)
  2508. # OSF1 and SCO ODT 3.0 have their own names for install.
  2509. # Don't use installbsd from OSF since it installs stuff as root
  2510. # by default.
  2511. for ac_prog in ginstall scoinst install; do
  2512. for ac_exec_ext in '' $ac_executable_extensions; do
  2513. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2514. if test $ac_prog = install &&
  2515. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2516. # AIX install. It has an incompatible calling convention.
  2517. :
  2518. elif test $ac_prog = install &&
  2519. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2520. # program-specific install script used by HP pwplus--don't use.
  2521. :
  2522. else
  2523. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2524. break 3
  2525. fi
  2526. fi
  2527. done
  2528. done
  2529. ;;
  2530. esac
  2531. done
  2532. IFS=$as_save_IFS
  2533. fi
  2534. if test "${ac_cv_path_install+set}" = set; then
  2535. INSTALL=$ac_cv_path_install
  2536. else
  2537. # As a last resort, use the slow shell script. Don't cache a
  2538. # value for INSTALL within a source directory, because that will
  2539. # break other packages using the cache if that directory is
  2540. # removed, or if the value is a relative name.
  2541. INSTALL=$ac_install_sh
  2542. fi
  2543. fi
  2544. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  2545. echo "${ECHO_T}$INSTALL" >&6; }
  2546. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2547. # It thinks the first close brace ends the variable substitution.
  2548. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2549. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2550. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2551. { echo "$as_me:$LINENO: checking for main in -lm" >&5
  2552. echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
  2553. if test "${ac_cv_lib_m_main+set}" = set; then
  2554. echo $ECHO_N "(cached) $ECHO_C" >&6
  2555. else
  2556. ac_check_lib_save_LIBS=$LIBS
  2557. LIBS="-lm $LIBS"
  2558. cat >conftest.$ac_ext <<_ACEOF
  2559. /* confdefs.h. */
  2560. _ACEOF
  2561. cat confdefs.h >>conftest.$ac_ext
  2562. cat >>conftest.$ac_ext <<_ACEOF
  2563. /* end confdefs.h. */
  2564. int
  2565. main ()
  2566. {
  2567. return main ();
  2568. ;
  2569. return 0;
  2570. }
  2571. _ACEOF
  2572. rm -f conftest.$ac_objext conftest$ac_exeext
  2573. if { (ac_try="$ac_link"
  2574. case "(($ac_try" in
  2575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2576. *) ac_try_echo=$ac_try;;
  2577. esac
  2578. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2579. (eval "$ac_link") 2>conftest.er1
  2580. ac_status=$?
  2581. grep -v '^ *+' conftest.er1 >conftest.err
  2582. rm -f conftest.er1
  2583. cat conftest.err >&5
  2584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2585. (exit $ac_status); } && {
  2586. test -z "$ac_c_werror_flag" ||
  2587. test ! -s conftest.err
  2588. } && test -s conftest$ac_exeext &&
  2589. $as_test_x conftest$ac_exeext; then
  2590. ac_cv_lib_m_main=yes
  2591. else
  2592. echo "$as_me: failed program was:" >&5
  2593. sed 's/^/| /' conftest.$ac_ext >&5
  2594. ac_cv_lib_m_main=no
  2595. fi
  2596. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2597. conftest$ac_exeext conftest.$ac_ext
  2598. LIBS=$ac_check_lib_save_LIBS
  2599. fi
  2600. { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
  2601. echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
  2602. if test $ac_cv_lib_m_main = yes; then
  2603. cat >>confdefs.h <<_ACEOF
  2604. #define HAVE_LIBM 1
  2605. _ACEOF
  2606. LIBS="-lm $LIBS"
  2607. fi
  2608. { echo "$as_me:$LINENO: checking for main in -ldl" >&5
  2609. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
  2610. if test "${ac_cv_lib_dl_main+set}" = set; then
  2611. echo $ECHO_N "(cached) $ECHO_C" >&6
  2612. else
  2613. ac_check_lib_save_LIBS=$LIBS
  2614. LIBS="-ldl $LIBS"
  2615. cat >conftest.$ac_ext <<_ACEOF
  2616. /* confdefs.h. */
  2617. _ACEOF
  2618. cat confdefs.h >>conftest.$ac_ext
  2619. cat >>conftest.$ac_ext <<_ACEOF
  2620. /* end confdefs.h. */
  2621. int
  2622. main ()
  2623. {
  2624. return main ();
  2625. ;
  2626. return 0;
  2627. }
  2628. _ACEOF
  2629. rm -f conftest.$ac_objext conftest$ac_exeext
  2630. if { (ac_try="$ac_link"
  2631. case "(($ac_try" in
  2632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2633. *) ac_try_echo=$ac_try;;
  2634. esac
  2635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2636. (eval "$ac_link") 2>conftest.er1
  2637. ac_status=$?
  2638. grep -v '^ *+' conftest.er1 >conftest.err
  2639. rm -f conftest.er1
  2640. cat conftest.err >&5
  2641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2642. (exit $ac_status); } && {
  2643. test -z "$ac_c_werror_flag" ||
  2644. test ! -s conftest.err
  2645. } && test -s conftest$ac_exeext &&
  2646. $as_test_x conftest$ac_exeext; then
  2647. ac_cv_lib_dl_main=yes
  2648. else
  2649. echo "$as_me: failed program was:" >&5
  2650. sed 's/^/| /' conftest.$ac_ext >&5
  2651. ac_cv_lib_dl_main=no
  2652. fi
  2653. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2654. conftest$ac_exeext conftest.$ac_ext
  2655. LIBS=$ac_check_lib_save_LIBS
  2656. fi
  2657. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  2658. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
  2659. if test $ac_cv_lib_dl_main = yes; then
  2660. cat >>confdefs.h <<_ACEOF
  2661. #define HAVE_LIBDL 1
  2662. _ACEOF
  2663. LIBS="-ldl $LIBS"
  2664. fi
  2665. { echo "$as_me:$LINENO: checking for main in -lmld" >&5
  2666. echo $ECHO_N "checking for main in -lmld... $ECHO_C" >&6; }
  2667. if test "${ac_cv_lib_mld_main+set}" = set; then
  2668. echo $ECHO_N "(cached) $ECHO_C" >&6
  2669. else
  2670. ac_check_lib_save_LIBS=$LIBS
  2671. LIBS="-lmld $LIBS"
  2672. cat >conftest.$ac_ext <<_ACEOF
  2673. /* confdefs.h. */
  2674. _ACEOF
  2675. cat confdefs.h >>conftest.$ac_ext
  2676. cat >>conftest.$ac_ext <<_ACEOF
  2677. /* end confdefs.h. */
  2678. int
  2679. main ()
  2680. {
  2681. return main ();
  2682. ;
  2683. return 0;
  2684. }
  2685. _ACEOF
  2686. rm -f conftest.$ac_objext conftest$ac_exeext
  2687. if { (ac_try="$ac_link"
  2688. case "(($ac_try" in
  2689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2690. *) ac_try_echo=$ac_try;;
  2691. esac
  2692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2693. (eval "$ac_link") 2>conftest.er1
  2694. ac_status=$?
  2695. grep -v '^ *+' conftest.er1 >conftest.err
  2696. rm -f conftest.er1
  2697. cat conftest.err >&5
  2698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2699. (exit $ac_status); } && {
  2700. test -z "$ac_c_werror_flag" ||
  2701. test ! -s conftest.err
  2702. } && test -s conftest$ac_exeext &&
  2703. $as_test_x conftest$ac_exeext; then
  2704. ac_cv_lib_mld_main=yes
  2705. else
  2706. echo "$as_me: failed program was:" >&5
  2707. sed 's/^/| /' conftest.$ac_ext >&5
  2708. ac_cv_lib_mld_main=no
  2709. fi
  2710. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2711. conftest$ac_exeext conftest.$ac_ext
  2712. LIBS=$ac_check_lib_save_LIBS
  2713. fi
  2714. { echo "$as_me:$LINENO: result: $ac_cv_lib_mld_main" >&5
  2715. echo "${ECHO_T}$ac_cv_lib_mld_main" >&6; }
  2716. if test $ac_cv_lib_mld_main = yes; then
  2717. cat >>confdefs.h <<_ACEOF
  2718. #define HAVE_LIBMLD 1
  2719. _ACEOF
  2720. LIBS="-lmld $LIBS"
  2721. fi
  2722. { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  2723. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
  2724. if test "${ac_cv_lib_nsl_main+set}" = set; then
  2725. echo $ECHO_N "(cached) $ECHO_C" >&6
  2726. else
  2727. ac_check_lib_save_LIBS=$LIBS
  2728. LIBS="-lnsl $LIBS"
  2729. cat >conftest.$ac_ext <<_ACEOF
  2730. /* confdefs.h. */
  2731. _ACEOF
  2732. cat confdefs.h >>conftest.$ac_ext
  2733. cat >>conftest.$ac_ext <<_ACEOF
  2734. /* end confdefs.h. */
  2735. int
  2736. main ()
  2737. {
  2738. return main ();
  2739. ;
  2740. return 0;
  2741. }
  2742. _ACEOF
  2743. rm -f conftest.$ac_objext conftest$ac_exeext
  2744. if { (ac_try="$ac_link"
  2745. case "(($ac_try" in
  2746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2747. *) ac_try_echo=$ac_try;;
  2748. esac
  2749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2750. (eval "$ac_link") 2>conftest.er1
  2751. ac_status=$?
  2752. grep -v '^ *+' conftest.er1 >conftest.err
  2753. rm -f conftest.er1
  2754. cat conftest.err >&5
  2755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2756. (exit $ac_status); } && {
  2757. test -z "$ac_c_werror_flag" ||
  2758. test ! -s conftest.err
  2759. } && test -s conftest$ac_exeext &&
  2760. $as_test_x conftest$ac_exeext; then
  2761. ac_cv_lib_nsl_main=yes
  2762. else
  2763. echo "$as_me: failed program was:" >&5
  2764. sed 's/^/| /' conftest.$ac_ext >&5
  2765. ac_cv_lib_nsl_main=no
  2766. fi
  2767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2768. conftest$ac_exeext conftest.$ac_ext
  2769. LIBS=$ac_check_lib_save_LIBS
  2770. fi
  2771. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  2772. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
  2773. if test $ac_cv_lib_nsl_main = yes; then
  2774. cat >>confdefs.h <<_ACEOF
  2775. #define HAVE_LIBNSL 1
  2776. _ACEOF
  2777. LIBS="-lnsl $LIBS"
  2778. fi
  2779. { echo "$as_me:$LINENO: checking for main in -lgen" >&5
  2780. echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
  2781. if test "${ac_cv_lib_gen_main+set}" = set; then
  2782. echo $ECHO_N "(cached) $ECHO_C" >&6
  2783. else
  2784. ac_check_lib_save_LIBS=$LIBS
  2785. LIBS="-lgen $LIBS"
  2786. cat >conftest.$ac_ext <<_ACEOF
  2787. /* confdefs.h. */
  2788. _ACEOF
  2789. cat confdefs.h >>conftest.$ac_ext
  2790. cat >>conftest.$ac_ext <<_ACEOF
  2791. /* end confdefs.h. */
  2792. int
  2793. main ()
  2794. {
  2795. return main ();
  2796. ;
  2797. return 0;
  2798. }
  2799. _ACEOF
  2800. rm -f conftest.$ac_objext conftest$ac_exeext
  2801. if { (ac_try="$ac_link"
  2802. case "(($ac_try" in
  2803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2804. *) ac_try_echo=$ac_try;;
  2805. esac
  2806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2807. (eval "$ac_link") 2>conftest.er1
  2808. ac_status=$?
  2809. grep -v '^ *+' conftest.er1 >conftest.err
  2810. rm -f conftest.er1
  2811. cat conftest.err >&5
  2812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2813. (exit $ac_status); } && {
  2814. test -z "$ac_c_werror_flag" ||
  2815. test ! -s conftest.err
  2816. } && test -s conftest$ac_exeext &&
  2817. $as_test_x conftest$ac_exeext; then
  2818. ac_cv_lib_gen_main=yes
  2819. else
  2820. echo "$as_me: failed program was:" >&5
  2821. sed 's/^/| /' conftest.$ac_ext >&5
  2822. ac_cv_lib_gen_main=no
  2823. fi
  2824. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2825. conftest$ac_exeext conftest.$ac_ext
  2826. LIBS=$ac_check_lib_save_LIBS
  2827. fi
  2828. { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
  2829. echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
  2830. if test $ac_cv_lib_gen_main = yes; then
  2831. cat >>confdefs.h <<_ACEOF
  2832. #define HAVE_LIBGEN 1
  2833. _ACEOF
  2834. LIBS="-lgen $LIBS"
  2835. fi
  2836. { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  2837. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
  2838. if test "${ac_cv_lib_socket_main+set}" = set; then
  2839. echo $ECHO_N "(cached) $ECHO_C" >&6
  2840. else
  2841. ac_check_lib_save_LIBS=$LIBS
  2842. LIBS="-lsocket $LIBS"
  2843. cat >conftest.$ac_ext <<_ACEOF
  2844. /* confdefs.h. */
  2845. _ACEOF
  2846. cat confdefs.h >>conftest.$ac_ext
  2847. cat >>conftest.$ac_ext <<_ACEOF
  2848. /* end confdefs.h. */
  2849. int
  2850. main ()
  2851. {
  2852. return main ();
  2853. ;
  2854. return 0;
  2855. }
  2856. _ACEOF
  2857. rm -f conftest.$ac_objext conftest$ac_exeext
  2858. if { (ac_try="$ac_link"
  2859. case "(($ac_try" in
  2860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2861. *) ac_try_echo=$ac_try;;
  2862. esac
  2863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2864. (eval "$ac_link") 2>conftest.er1
  2865. ac_status=$?
  2866. grep -v '^ *+' conftest.er1 >conftest.err
  2867. rm -f conftest.er1
  2868. cat conftest.err >&5
  2869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2870. (exit $ac_status); } && {
  2871. test -z "$ac_c_werror_flag" ||
  2872. test ! -s conftest.err
  2873. } && test -s conftest$ac_exeext &&
  2874. $as_test_x conftest$ac_exeext; then
  2875. ac_cv_lib_socket_main=yes
  2876. else
  2877. echo "$as_me: failed program was:" >&5
  2878. sed 's/^/| /' conftest.$ac_ext >&5
  2879. ac_cv_lib_socket_main=no
  2880. fi
  2881. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2882. conftest$ac_exeext conftest.$ac_ext
  2883. LIBS=$ac_check_lib_save_LIBS
  2884. fi
  2885. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  2886. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
  2887. if test $ac_cv_lib_socket_main = yes; then
  2888. cat >>confdefs.h <<_ACEOF
  2889. #define HAVE_LIBSOCKET 1
  2890. _ACEOF
  2891. LIBS="-lsocket $LIBS"
  2892. fi
  2893. { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
  2894. echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
  2895. if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
  2896. echo $ECHO_N "(cached) $ECHO_C" >&6
  2897. else
  2898. ac_check_lib_save_LIBS=$LIBS
  2899. LIBS="-lsun $LIBS"
  2900. cat >conftest.$ac_ext <<_ACEOF
  2901. /* confdefs.h. */
  2902. _ACEOF
  2903. cat confdefs.h >>conftest.$ac_ext
  2904. cat >>conftest.$ac_ext <<_ACEOF
  2905. /* end confdefs.h. */
  2906. /* Override any GCC internal prototype to avoid an error.
  2907. Use char because int might match the return type of a GCC
  2908. builtin and then its argument prototype would still apply. */
  2909. #ifdef __cplusplus
  2910. extern "C"
  2911. #endif
  2912. char getpwnam ();
  2913. int
  2914. main ()
  2915. {
  2916. return getpwnam ();
  2917. ;
  2918. return 0;
  2919. }
  2920. _ACEOF
  2921. rm -f conftest.$ac_objext conftest$ac_exeext
  2922. if { (ac_try="$ac_link"
  2923. case "(($ac_try" in
  2924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2925. *) ac_try_echo=$ac_try;;
  2926. esac
  2927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2928. (eval "$ac_link") 2>conftest.er1
  2929. ac_status=$?
  2930. grep -v '^ *+' conftest.er1 >conftest.err
  2931. rm -f conftest.er1
  2932. cat conftest.err >&5
  2933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2934. (exit $ac_status); } && {
  2935. test -z "$ac_c_werror_flag" ||
  2936. test ! -s conftest.err
  2937. } && test -s conftest$ac_exeext &&
  2938. $as_test_x conftest$ac_exeext; then
  2939. ac_cv_lib_sun_getpwnam=yes
  2940. else
  2941. echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. ac_cv_lib_sun_getpwnam=no
  2944. fi
  2945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2946. conftest$ac_exeext conftest.$ac_ext
  2947. LIBS=$ac_check_lib_save_LIBS
  2948. fi
  2949. { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
  2950. echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
  2951. if test $ac_cv_lib_sun_getpwnam = yes; then
  2952. cat >>confdefs.h <<_ACEOF
  2953. #define HAVE_LIBSUN 1
  2954. _ACEOF
  2955. LIBS="-lsun $LIBS"
  2956. fi
  2957. { echo "$as_me:$LINENO: checking for main in -lelf" >&5
  2958. echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
  2959. if test "${ac_cv_lib_elf_main+set}" = set; then
  2960. echo $ECHO_N "(cached) $ECHO_C" >&6
  2961. else
  2962. ac_check_lib_save_LIBS=$LIBS
  2963. LIBS="-lelf $LIBS"
  2964. cat >conftest.$ac_ext <<_ACEOF
  2965. /* confdefs.h. */
  2966. _ACEOF
  2967. cat confdefs.h >>conftest.$ac_ext
  2968. cat >>conftest.$ac_ext <<_ACEOF
  2969. /* end confdefs.h. */
  2970. int
  2971. main ()
  2972. {
  2973. return main ();
  2974. ;
  2975. return 0;
  2976. }
  2977. _ACEOF
  2978. rm -f conftest.$ac_objext conftest$ac_exeext
  2979. if { (ac_try="$ac_link"
  2980. case "(($ac_try" in
  2981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2982. *) ac_try_echo=$ac_try;;
  2983. esac
  2984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2985. (eval "$ac_link") 2>conftest.er1
  2986. ac_status=$?
  2987. grep -v '^ *+' conftest.er1 >conftest.err
  2988. rm -f conftest.er1
  2989. cat conftest.err >&5
  2990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2991. (exit $ac_status); } && {
  2992. test -z "$ac_c_werror_flag" ||
  2993. test ! -s conftest.err
  2994. } && test -s conftest$ac_exeext &&
  2995. $as_test_x conftest$ac_exeext; then
  2996. ac_cv_lib_elf_main=yes
  2997. else
  2998. echo "$as_me: failed program was:" >&5
  2999. sed 's/^/| /' conftest.$ac_ext >&5
  3000. ac_cv_lib_elf_main=no
  3001. fi
  3002. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3003. conftest$ac_exeext conftest.$ac_ext
  3004. LIBS=$ac_check_lib_save_LIBS
  3005. fi
  3006. { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
  3007. echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
  3008. if test $ac_cv_lib_elf_main = yes; then
  3009. cat >>confdefs.h <<_ACEOF
  3010. #define HAVE_LIBELF 1
  3011. _ACEOF
  3012. LIBS="-lelf $LIBS"
  3013. fi
  3014. echo checking for RISC/OS POSIX library lossage
  3015. if test -f /usr/posix/usr/lib/libc.a; then
  3016. LIBS="${LIBS} /usr/posix/usr/lib/libc.a"
  3017. fi
  3018. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3019. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  3020. if test "${ac_cv_c_const+set}" = set; then
  3021. echo $ECHO_N "(cached) $ECHO_C" >&6
  3022. else
  3023. cat >conftest.$ac_ext <<_ACEOF
  3024. /* confdefs.h. */
  3025. _ACEOF
  3026. cat confdefs.h >>conftest.$ac_ext
  3027. cat >>conftest.$ac_ext <<_ACEOF
  3028. /* end confdefs.h. */
  3029. int
  3030. main ()
  3031. {
  3032. /* FIXME: Include the comments suggested by Paul. */
  3033. #ifndef __cplusplus
  3034. /* Ultrix mips cc rejects this. */
  3035. typedef int charset[2];
  3036. const charset cs;
  3037. /* SunOS 4.1.1 cc rejects this. */
  3038. char const *const *pcpcc;
  3039. char **ppc;
  3040. /* NEC SVR4.0.2 mips cc rejects this. */
  3041. struct point {int x, y;};
  3042. static struct point const zero = {0,0};
  3043. /* AIX XL C 1.02.0.0 rejects this.
  3044. It does not let you subtract one const X* pointer from another in
  3045. an arm of an if-expression whose if-part is not a constant
  3046. expression */
  3047. const char *g = "string";
  3048. pcpcc = &g + (g ? g-g : 0);
  3049. /* HPUX 7.0 cc rejects these. */
  3050. ++pcpcc;
  3051. ppc = (char**) pcpcc;
  3052. pcpcc = (char const *const *) ppc;
  3053. { /* SCO 3.2v4 cc rejects this. */
  3054. char *t;
  3055. char const *s = 0 ? (char *) 0 : (char const *) 0;
  3056. *t++ = 0;
  3057. if (s) return 0;
  3058. }
  3059. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3060. int x[] = {25, 17};
  3061. const int *foo = &x[0];
  3062. ++foo;
  3063. }
  3064. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3065. typedef const int *iptr;
  3066. iptr p = 0;
  3067. ++p;
  3068. }
  3069. { /* AIX XL C 1.02.0.0 rejects this saying
  3070. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3071. struct s { int j; const int *ap[3]; };
  3072. struct s *b; b->j = 5;
  3073. }
  3074. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3075. const int foo = 10;
  3076. if (!foo) return 0;
  3077. }
  3078. return !cs[0] && !zero.x;
  3079. #endif
  3080. ;
  3081. return 0;
  3082. }
  3083. _ACEOF
  3084. rm -f conftest.$ac_objext
  3085. if { (ac_try="$ac_compile"
  3086. case "(($ac_try" in
  3087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3088. *) ac_try_echo=$ac_try;;
  3089. esac
  3090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3091. (eval "$ac_compile") 2>conftest.er1
  3092. ac_status=$?
  3093. grep -v '^ *+' conftest.er1 >conftest.err
  3094. rm -f conftest.er1
  3095. cat conftest.err >&5
  3096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); } && {
  3098. test -z "$ac_c_werror_flag" ||
  3099. test ! -s conftest.err
  3100. } && test -s conftest.$ac_objext; then
  3101. ac_cv_c_const=yes
  3102. else
  3103. echo "$as_me: failed program was:" >&5
  3104. sed 's/^/| /' conftest.$ac_ext >&5
  3105. ac_cv_c_const=no
  3106. fi
  3107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3108. fi
  3109. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3110. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  3111. if test $ac_cv_c_const = no; then
  3112. cat >>confdefs.h <<\_ACEOF
  3113. #define const
  3114. _ACEOF
  3115. fi
  3116. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  3117. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  3118. cat >conftest.$ac_ext <<_ACEOF
  3119. /* confdefs.h. */
  3120. _ACEOF
  3121. cat confdefs.h >>conftest.$ac_ext
  3122. cat >>conftest.$ac_ext <<_ACEOF
  3123. /* end confdefs.h. */
  3124. #include <sys/types.h>
  3125. #include <sys/socket.h>
  3126. socklen_t x;
  3127. int
  3128. main ()
  3129. {
  3130. ;
  3131. return 0;
  3132. }
  3133. _ACEOF
  3134. rm -f conftest.$ac_objext
  3135. if { (ac_try="$ac_compile"
  3136. case "(($ac_try" in
  3137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3138. *) ac_try_echo=$ac_try;;
  3139. esac
  3140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3141. (eval "$ac_compile") 2>conftest.er1
  3142. ac_status=$?
  3143. grep -v '^ *+' conftest.er1 >conftest.err
  3144. rm -f conftest.er1
  3145. cat conftest.err >&5
  3146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3147. (exit $ac_status); } && {
  3148. test -z "$ac_c_werror_flag" ||
  3149. test ! -s conftest.err
  3150. } && test -s conftest.$ac_objext; then
  3151. { echo "$as_me:$LINENO: result: yes" >&5
  3152. echo "${ECHO_T}yes" >&6; }
  3153. else
  3154. echo "$as_me: failed program was:" >&5
  3155. sed 's/^/| /' conftest.$ac_ext >&5
  3156. cat >conftest.$ac_ext <<_ACEOF
  3157. /* confdefs.h. */
  3158. _ACEOF
  3159. cat confdefs.h >>conftest.$ac_ext
  3160. cat >>conftest.$ac_ext <<_ACEOF
  3161. /* end confdefs.h. */
  3162. #include <sys/types.h>
  3163. #include <sys/socket.h>
  3164. int accept (int,
  3165. struct sockaddr *,
  3166. size_t *);
  3167. int
  3168. main ()
  3169. {
  3170. ;
  3171. return 0;
  3172. }
  3173. _ACEOF
  3174. rm -f conftest.$ac_objext
  3175. if { (ac_try="$ac_compile"
  3176. case "(($ac_try" in
  3177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3178. *) ac_try_echo=$ac_try;;
  3179. esac
  3180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3181. (eval "$ac_compile") 2>conftest.er1
  3182. ac_status=$?
  3183. grep -v '^ *+' conftest.er1 >conftest.err
  3184. rm -f conftest.er1
  3185. cat conftest.err >&5
  3186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3187. (exit $ac_status); } && {
  3188. test -z "$ac_c_werror_flag" ||
  3189. test ! -s conftest.err
  3190. } && test -s conftest.$ac_objext; then
  3191. { echo "$as_me:$LINENO: result: size_t" >&5
  3192. echo "${ECHO_T}size_t" >&6; }
  3193. cat >>confdefs.h <<\_ACEOF
  3194. #define socklen_t size_t
  3195. _ACEOF
  3196. else
  3197. echo "$as_me: failed program was:" >&5
  3198. sed 's/^/| /' conftest.$ac_ext >&5
  3199. { echo "$as_me:$LINENO: result: int" >&5
  3200. echo "${ECHO_T}int" >&6; }
  3201. cat >>confdefs.h <<\_ACEOF
  3202. #define socklen_t int
  3203. _ACEOF
  3204. fi
  3205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  3209. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  3210. if test "${ac_cv_type_signal+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. cat >conftest.$ac_ext <<_ACEOF
  3214. /* confdefs.h. */
  3215. _ACEOF
  3216. cat confdefs.h >>conftest.$ac_ext
  3217. cat >>conftest.$ac_ext <<_ACEOF
  3218. /* end confdefs.h. */
  3219. #include <sys/types.h>
  3220. #include <signal.h>
  3221. int
  3222. main ()
  3223. {
  3224. return *(signal (0, 0)) (0) == 1;
  3225. ;
  3226. return 0;
  3227. }
  3228. _ACEOF
  3229. rm -f conftest.$ac_objext
  3230. if { (ac_try="$ac_compile"
  3231. case "(($ac_try" in
  3232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3233. *) ac_try_echo=$ac_try;;
  3234. esac
  3235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3236. (eval "$ac_compile") 2>conftest.er1
  3237. ac_status=$?
  3238. grep -v '^ *+' conftest.er1 >conftest.err
  3239. rm -f conftest.er1
  3240. cat conftest.err >&5
  3241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); } && {
  3243. test -z "$ac_c_werror_flag" ||
  3244. test ! -s conftest.err
  3245. } && test -s conftest.$ac_objext; then
  3246. ac_cv_type_signal=int
  3247. else
  3248. echo "$as_me: failed program was:" >&5
  3249. sed 's/^/| /' conftest.$ac_ext >&5
  3250. ac_cv_type_signal=void
  3251. fi
  3252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3253. fi
  3254. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  3255. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  3256. cat >>confdefs.h <<_ACEOF
  3257. #define RETSIGTYPE $ac_cv_type_signal
  3258. _ACEOF
  3259. ac_ext=c
  3260. ac_cpp='$CPP $CPPFLAGS'
  3261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3264. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3265. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  3266. # On Suns, sometimes $CPP names a directory.
  3267. if test -n "$CPP" && test -d "$CPP"; then
  3268. CPP=
  3269. fi
  3270. if test -z "$CPP"; then
  3271. if test "${ac_cv_prog_CPP+set}" = set; then
  3272. echo $ECHO_N "(cached) $ECHO_C" >&6
  3273. else
  3274. # Double quotes because CPP needs to be expanded
  3275. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3276. do
  3277. ac_preproc_ok=false
  3278. for ac_c_preproc_warn_flag in '' yes
  3279. do
  3280. # Use a header file that comes with gcc, so configuring glibc
  3281. # with a fresh cross-compiler works.
  3282. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3283. # <limits.h> exists even on freestanding compilers.
  3284. # On the NeXT, cc -E runs the code through the compiler's parser,
  3285. # not just through cpp. "Syntax error" is here to catch this case.
  3286. cat >conftest.$ac_ext <<_ACEOF
  3287. /* confdefs.h. */
  3288. _ACEOF
  3289. cat confdefs.h >>conftest.$ac_ext
  3290. cat >>conftest.$ac_ext <<_ACEOF
  3291. /* end confdefs.h. */
  3292. #ifdef __STDC__
  3293. # include <limits.h>
  3294. #else
  3295. # include <assert.h>
  3296. #endif
  3297. Syntax error
  3298. _ACEOF
  3299. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3300. case "(($ac_try" in
  3301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3302. *) ac_try_echo=$ac_try;;
  3303. esac
  3304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3305. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3306. ac_status=$?
  3307. grep -v '^ *+' conftest.er1 >conftest.err
  3308. rm -f conftest.er1
  3309. cat conftest.err >&5
  3310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3311. (exit $ac_status); } >/dev/null && {
  3312. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3313. test ! -s conftest.err
  3314. }; then
  3315. :
  3316. else
  3317. echo "$as_me: failed program was:" >&5
  3318. sed 's/^/| /' conftest.$ac_ext >&5
  3319. # Broken: fails on valid input.
  3320. continue
  3321. fi
  3322. rm -f conftest.err conftest.$ac_ext
  3323. # OK, works on sane cases. Now check whether nonexistent headers
  3324. # can be detected and how.
  3325. cat >conftest.$ac_ext <<_ACEOF
  3326. /* confdefs.h. */
  3327. _ACEOF
  3328. cat confdefs.h >>conftest.$ac_ext
  3329. cat >>conftest.$ac_ext <<_ACEOF
  3330. /* end confdefs.h. */
  3331. #include <ac_nonexistent.h>
  3332. _ACEOF
  3333. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3334. case "(($ac_try" in
  3335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3336. *) ac_try_echo=$ac_try;;
  3337. esac
  3338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3339. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3340. ac_status=$?
  3341. grep -v '^ *+' conftest.er1 >conftest.err
  3342. rm -f conftest.er1
  3343. cat conftest.err >&5
  3344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3345. (exit $ac_status); } >/dev/null && {
  3346. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3347. test ! -s conftest.err
  3348. }; then
  3349. # Broken: success on invalid input.
  3350. continue
  3351. else
  3352. echo "$as_me: failed program was:" >&5
  3353. sed 's/^/| /' conftest.$ac_ext >&5
  3354. # Passes both tests.
  3355. ac_preproc_ok=:
  3356. break
  3357. fi
  3358. rm -f conftest.err conftest.$ac_ext
  3359. done
  3360. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3361. rm -f conftest.err conftest.$ac_ext
  3362. if $ac_preproc_ok; then
  3363. break
  3364. fi
  3365. done
  3366. ac_cv_prog_CPP=$CPP
  3367. fi
  3368. CPP=$ac_cv_prog_CPP
  3369. else
  3370. ac_cv_prog_CPP=$CPP
  3371. fi
  3372. { echo "$as_me:$LINENO: result: $CPP" >&5
  3373. echo "${ECHO_T}$CPP" >&6; }
  3374. ac_preproc_ok=false
  3375. for ac_c_preproc_warn_flag in '' yes
  3376. do
  3377. # Use a header file that comes with gcc, so configuring glibc
  3378. # with a fresh cross-compiler works.
  3379. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3380. # <limits.h> exists even on freestanding compilers.
  3381. # On the NeXT, cc -E runs the code through the compiler's parser,
  3382. # not just through cpp. "Syntax error" is here to catch this case.
  3383. cat >conftest.$ac_ext <<_ACEOF
  3384. /* confdefs.h. */
  3385. _ACEOF
  3386. cat confdefs.h >>conftest.$ac_ext
  3387. cat >>conftest.$ac_ext <<_ACEOF
  3388. /* end confdefs.h. */
  3389. #ifdef __STDC__
  3390. # include <limits.h>
  3391. #else
  3392. # include <assert.h>
  3393. #endif
  3394. Syntax error
  3395. _ACEOF
  3396. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3397. case "(($ac_try" in
  3398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3399. *) ac_try_echo=$ac_try;;
  3400. esac
  3401. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3402. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3403. ac_status=$?
  3404. grep -v '^ *+' conftest.er1 >conftest.err
  3405. rm -f conftest.er1
  3406. cat conftest.err >&5
  3407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3408. (exit $ac_status); } >/dev/null && {
  3409. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3410. test ! -s conftest.err
  3411. }; then
  3412. :
  3413. else
  3414. echo "$as_me: failed program was:" >&5
  3415. sed 's/^/| /' conftest.$ac_ext >&5
  3416. # Broken: fails on valid input.
  3417. continue
  3418. fi
  3419. rm -f conftest.err conftest.$ac_ext
  3420. # OK, works on sane cases. Now check whether nonexistent headers
  3421. # can be detected and how.
  3422. cat >conftest.$ac_ext <<_ACEOF
  3423. /* confdefs.h. */
  3424. _ACEOF
  3425. cat confdefs.h >>conftest.$ac_ext
  3426. cat >>conftest.$ac_ext <<_ACEOF
  3427. /* end confdefs.h. */
  3428. #include <ac_nonexistent.h>
  3429. _ACEOF
  3430. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3437. ac_status=$?
  3438. grep -v '^ *+' conftest.er1 >conftest.err
  3439. rm -f conftest.er1
  3440. cat conftest.err >&5
  3441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3442. (exit $ac_status); } >/dev/null && {
  3443. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3444. test ! -s conftest.err
  3445. }; then
  3446. # Broken: success on invalid input.
  3447. continue
  3448. else
  3449. echo "$as_me: failed program was:" >&5
  3450. sed 's/^/| /' conftest.$ac_ext >&5
  3451. # Passes both tests.
  3452. ac_preproc_ok=:
  3453. break
  3454. fi
  3455. rm -f conftest.err conftest.$ac_ext
  3456. done
  3457. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3458. rm -f conftest.err conftest.$ac_ext
  3459. if $ac_preproc_ok; then
  3460. :
  3461. else
  3462. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3463. See \`config.log' for more details." >&5
  3464. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3465. See \`config.log' for more details." >&2;}
  3466. { (exit 1); exit 1; }; }
  3467. fi
  3468. ac_ext=c
  3469. ac_cpp='$CPP $CPPFLAGS'
  3470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3473. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3474. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3475. if test "${ac_cv_path_GREP+set}" = set; then
  3476. echo $ECHO_N "(cached) $ECHO_C" >&6
  3477. else
  3478. # Extract the first word of "grep ggrep" to use in msg output
  3479. if test -z "$GREP"; then
  3480. set dummy grep ggrep; ac_prog_name=$2
  3481. if test "${ac_cv_path_GREP+set}" = set; then
  3482. echo $ECHO_N "(cached) $ECHO_C" >&6
  3483. else
  3484. ac_path_GREP_found=false
  3485. # Loop through the user's path and test for each of PROGNAME-LIST
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_prog in grep ggrep; do
  3492. for ac_exec_ext in '' $ac_executable_extensions; do
  3493. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3494. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3495. # Check for GNU ac_path_GREP and select it if it is found.
  3496. # Check for GNU $ac_path_GREP
  3497. case `"$ac_path_GREP" --version 2>&1` in
  3498. *GNU*)
  3499. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3500. *)
  3501. ac_count=0
  3502. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3503. while :
  3504. do
  3505. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3506. mv "conftest.tmp" "conftest.in"
  3507. cp "conftest.in" "conftest.nl"
  3508. echo 'GREP' >> "conftest.nl"
  3509. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3510. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3511. ac_count=`expr $ac_count + 1`
  3512. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3513. # Best one so far, save it but keep looking for a better one
  3514. ac_cv_path_GREP="$ac_path_GREP"
  3515. ac_path_GREP_max=$ac_count
  3516. fi
  3517. # 10*(2^10) chars as input seems more than enough
  3518. test $ac_count -gt 10 && break
  3519. done
  3520. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3521. esac
  3522. $ac_path_GREP_found && break 3
  3523. done
  3524. done
  3525. done
  3526. IFS=$as_save_IFS
  3527. fi
  3528. GREP="$ac_cv_path_GREP"
  3529. if test -z "$GREP"; then
  3530. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3531. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3532. { (exit 1); exit 1; }; }
  3533. fi
  3534. else
  3535. ac_cv_path_GREP=$GREP
  3536. fi
  3537. fi
  3538. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3539. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3540. GREP="$ac_cv_path_GREP"
  3541. { echo "$as_me:$LINENO: checking for egrep" >&5
  3542. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3543. if test "${ac_cv_path_EGREP+set}" = set; then
  3544. echo $ECHO_N "(cached) $ECHO_C" >&6
  3545. else
  3546. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3547. then ac_cv_path_EGREP="$GREP -E"
  3548. else
  3549. # Extract the first word of "egrep" to use in msg output
  3550. if test -z "$EGREP"; then
  3551. set dummy egrep; ac_prog_name=$2
  3552. if test "${ac_cv_path_EGREP+set}" = set; then
  3553. echo $ECHO_N "(cached) $ECHO_C" >&6
  3554. else
  3555. ac_path_EGREP_found=false
  3556. # Loop through the user's path and test for each of PROGNAME-LIST
  3557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3558. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3559. do
  3560. IFS=$as_save_IFS
  3561. test -z "$as_dir" && as_dir=.
  3562. for ac_prog in egrep; do
  3563. for ac_exec_ext in '' $ac_executable_extensions; do
  3564. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3565. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3566. # Check for GNU ac_path_EGREP and select it if it is found.
  3567. # Check for GNU $ac_path_EGREP
  3568. case `"$ac_path_EGREP" --version 2>&1` in
  3569. *GNU*)
  3570. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3571. *)
  3572. ac_count=0
  3573. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3574. while :
  3575. do
  3576. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3577. mv "conftest.tmp" "conftest.in"
  3578. cp "conftest.in" "conftest.nl"
  3579. echo 'EGREP' >> "conftest.nl"
  3580. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3581. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3582. ac_count=`expr $ac_count + 1`
  3583. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3584. # Best one so far, save it but keep looking for a better one
  3585. ac_cv_path_EGREP="$ac_path_EGREP"
  3586. ac_path_EGREP_max=$ac_count
  3587. fi
  3588. # 10*(2^10) chars as input seems more than enough
  3589. test $ac_count -gt 10 && break
  3590. done
  3591. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3592. esac
  3593. $ac_path_EGREP_found && break 3
  3594. done
  3595. done
  3596. done
  3597. IFS=$as_save_IFS
  3598. fi
  3599. EGREP="$ac_cv_path_EGREP"
  3600. if test -z "$EGREP"; then
  3601. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3602. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3603. { (exit 1); exit 1; }; }
  3604. fi
  3605. else
  3606. ac_cv_path_EGREP=$EGREP
  3607. fi
  3608. fi
  3609. fi
  3610. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3611. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3612. EGREP="$ac_cv_path_EGREP"
  3613. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3614. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  3615. if test "${ac_cv_header_stdc+set}" = set; then
  3616. echo $ECHO_N "(cached) $ECHO_C" >&6
  3617. else
  3618. cat >conftest.$ac_ext <<_ACEOF
  3619. /* confdefs.h. */
  3620. _ACEOF
  3621. cat confdefs.h >>conftest.$ac_ext
  3622. cat >>conftest.$ac_ext <<_ACEOF
  3623. /* end confdefs.h. */
  3624. #include <stdlib.h>
  3625. #include <stdarg.h>
  3626. #include <string.h>
  3627. #include <float.h>
  3628. int
  3629. main ()
  3630. {
  3631. ;
  3632. return 0;
  3633. }
  3634. _ACEOF
  3635. rm -f conftest.$ac_objext
  3636. if { (ac_try="$ac_compile"
  3637. case "(($ac_try" in
  3638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3639. *) ac_try_echo=$ac_try;;
  3640. esac
  3641. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3642. (eval "$ac_compile") 2>conftest.er1
  3643. ac_status=$?
  3644. grep -v '^ *+' conftest.er1 >conftest.err
  3645. rm -f conftest.er1
  3646. cat conftest.err >&5
  3647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3648. (exit $ac_status); } && {
  3649. test -z "$ac_c_werror_flag" ||
  3650. test ! -s conftest.err
  3651. } && test -s conftest.$ac_objext; then
  3652. ac_cv_header_stdc=yes
  3653. else
  3654. echo "$as_me: failed program was:" >&5
  3655. sed 's/^/| /' conftest.$ac_ext >&5
  3656. ac_cv_header_stdc=no
  3657. fi
  3658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3659. if test $ac_cv_header_stdc = yes; then
  3660. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3661. cat >conftest.$ac_ext <<_ACEOF
  3662. /* confdefs.h. */
  3663. _ACEOF
  3664. cat confdefs.h >>conftest.$ac_ext
  3665. cat >>conftest.$ac_ext <<_ACEOF
  3666. /* end confdefs.h. */
  3667. #include <string.h>
  3668. _ACEOF
  3669. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3670. $EGREP "memchr" >/dev/null 2>&1; then
  3671. :
  3672. else
  3673. ac_cv_header_stdc=no
  3674. fi
  3675. rm -f conftest*
  3676. fi
  3677. if test $ac_cv_header_stdc = yes; then
  3678. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3679. cat >conftest.$ac_ext <<_ACEOF
  3680. /* confdefs.h. */
  3681. _ACEOF
  3682. cat confdefs.h >>conftest.$ac_ext
  3683. cat >>conftest.$ac_ext <<_ACEOF
  3684. /* end confdefs.h. */
  3685. #include <stdlib.h>
  3686. _ACEOF
  3687. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3688. $EGREP "free" >/dev/null 2>&1; then
  3689. :
  3690. else
  3691. ac_cv_header_stdc=no
  3692. fi
  3693. rm -f conftest*
  3694. fi
  3695. if test $ac_cv_header_stdc = yes; then
  3696. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3697. if test "$cross_compiling" = yes; then
  3698. :
  3699. else
  3700. cat >conftest.$ac_ext <<_ACEOF
  3701. /* confdefs.h. */
  3702. _ACEOF
  3703. cat confdefs.h >>conftest.$ac_ext
  3704. cat >>conftest.$ac_ext <<_ACEOF
  3705. /* end confdefs.h. */
  3706. #include <ctype.h>
  3707. #include <stdlib.h>
  3708. #if ((' ' & 0x0FF) == 0x020)
  3709. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3710. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3711. #else
  3712. # define ISLOWER(c) \
  3713. (('a' <= (c) && (c) <= 'i') \
  3714. || ('j' <= (c) && (c) <= 'r') \
  3715. || ('s' <= (c) && (c) <= 'z'))
  3716. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3717. #endif
  3718. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3719. int
  3720. main ()
  3721. {
  3722. int i;
  3723. for (i = 0; i < 256; i++)
  3724. if (XOR (islower (i), ISLOWER (i))
  3725. || toupper (i) != TOUPPER (i))
  3726. return 2;
  3727. return 0;
  3728. }
  3729. _ACEOF
  3730. rm -f conftest$ac_exeext
  3731. if { (ac_try="$ac_link"
  3732. case "(($ac_try" in
  3733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3734. *) ac_try_echo=$ac_try;;
  3735. esac
  3736. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3737. (eval "$ac_link") 2>&5
  3738. ac_status=$?
  3739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3741. { (case "(($ac_try" in
  3742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3743. *) ac_try_echo=$ac_try;;
  3744. esac
  3745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3746. (eval "$ac_try") 2>&5
  3747. ac_status=$?
  3748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3749. (exit $ac_status); }; }; then
  3750. :
  3751. else
  3752. echo "$as_me: program exited with status $ac_status" >&5
  3753. echo "$as_me: failed program was:" >&5
  3754. sed 's/^/| /' conftest.$ac_ext >&5
  3755. ( exit $ac_status )
  3756. ac_cv_header_stdc=no
  3757. fi
  3758. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3759. fi
  3760. fi
  3761. fi
  3762. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3763. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  3764. if test $ac_cv_header_stdc = yes; then
  3765. cat >>confdefs.h <<\_ACEOF
  3766. #define STDC_HEADERS 1
  3767. _ACEOF
  3768. fi
  3769. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3770. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3771. inttypes.h stdint.h unistd.h
  3772. do
  3773. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3774. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3775. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3776. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3777. echo $ECHO_N "(cached) $ECHO_C" >&6
  3778. else
  3779. cat >conftest.$ac_ext <<_ACEOF
  3780. /* confdefs.h. */
  3781. _ACEOF
  3782. cat confdefs.h >>conftest.$ac_ext
  3783. cat >>conftest.$ac_ext <<_ACEOF
  3784. /* end confdefs.h. */
  3785. $ac_includes_default
  3786. #include <$ac_header>
  3787. _ACEOF
  3788. rm -f conftest.$ac_objext
  3789. if { (ac_try="$ac_compile"
  3790. case "(($ac_try" in
  3791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3792. *) ac_try_echo=$ac_try;;
  3793. esac
  3794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3795. (eval "$ac_compile") 2>conftest.er1
  3796. ac_status=$?
  3797. grep -v '^ *+' conftest.er1 >conftest.err
  3798. rm -f conftest.er1
  3799. cat conftest.err >&5
  3800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3801. (exit $ac_status); } && {
  3802. test -z "$ac_c_werror_flag" ||
  3803. test ! -s conftest.err
  3804. } && test -s conftest.$ac_objext; then
  3805. eval "$as_ac_Header=yes"
  3806. else
  3807. echo "$as_me: failed program was:" >&5
  3808. sed 's/^/| /' conftest.$ac_ext >&5
  3809. eval "$as_ac_Header=no"
  3810. fi
  3811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3812. fi
  3813. ac_res=`eval echo '${'$as_ac_Header'}'`
  3814. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3815. echo "${ECHO_T}$ac_res" >&6; }
  3816. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3817. cat >>confdefs.h <<_ACEOF
  3818. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3819. _ACEOF
  3820. fi
  3821. done
  3822. for ac_header in libgen.h sys/timeb.h posix/time.h
  3823. do
  3824. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3825. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3826. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3827. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3828. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3829. echo $ECHO_N "(cached) $ECHO_C" >&6
  3830. fi
  3831. ac_res=`eval echo '${'$as_ac_Header'}'`
  3832. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3833. echo "${ECHO_T}$ac_res" >&6; }
  3834. else
  3835. # Is the header compilable?
  3836. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3837. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  3838. cat >conftest.$ac_ext <<_ACEOF
  3839. /* confdefs.h. */
  3840. _ACEOF
  3841. cat confdefs.h >>conftest.$ac_ext
  3842. cat >>conftest.$ac_ext <<_ACEOF
  3843. /* end confdefs.h. */
  3844. $ac_includes_default
  3845. #include <$ac_header>
  3846. _ACEOF
  3847. rm -f conftest.$ac_objext
  3848. if { (ac_try="$ac_compile"
  3849. case "(($ac_try" in
  3850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3851. *) ac_try_echo=$ac_try;;
  3852. esac
  3853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3854. (eval "$ac_compile") 2>conftest.er1
  3855. ac_status=$?
  3856. grep -v '^ *+' conftest.er1 >conftest.err
  3857. rm -f conftest.er1
  3858. cat conftest.err >&5
  3859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3860. (exit $ac_status); } && {
  3861. test -z "$ac_c_werror_flag" ||
  3862. test ! -s conftest.err
  3863. } && test -s conftest.$ac_objext; then
  3864. ac_header_compiler=yes
  3865. else
  3866. echo "$as_me: failed program was:" >&5
  3867. sed 's/^/| /' conftest.$ac_ext >&5
  3868. ac_header_compiler=no
  3869. fi
  3870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3871. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3872. echo "${ECHO_T}$ac_header_compiler" >&6; }
  3873. # Is the header present?
  3874. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3875. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  3876. cat >conftest.$ac_ext <<_ACEOF
  3877. /* confdefs.h. */
  3878. _ACEOF
  3879. cat confdefs.h >>conftest.$ac_ext
  3880. cat >>conftest.$ac_ext <<_ACEOF
  3881. /* end confdefs.h. */
  3882. #include <$ac_header>
  3883. _ACEOF
  3884. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3885. case "(($ac_try" in
  3886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3887. *) ac_try_echo=$ac_try;;
  3888. esac
  3889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3890. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3891. ac_status=$?
  3892. grep -v '^ *+' conftest.er1 >conftest.err
  3893. rm -f conftest.er1
  3894. cat conftest.err >&5
  3895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3896. (exit $ac_status); } >/dev/null && {
  3897. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3898. test ! -s conftest.err
  3899. }; then
  3900. ac_header_preproc=yes
  3901. else
  3902. echo "$as_me: failed program was:" >&5
  3903. sed 's/^/| /' conftest.$ac_ext >&5
  3904. ac_header_preproc=no
  3905. fi
  3906. rm -f conftest.err conftest.$ac_ext
  3907. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3908. echo "${ECHO_T}$ac_header_preproc" >&6; }
  3909. # So? What about this header?
  3910. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3911. yes:no: )
  3912. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3913. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3914. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3915. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3916. ac_header_preproc=yes
  3917. ;;
  3918. no:yes:* )
  3919. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3920. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3921. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3922. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3923. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3924. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3925. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3926. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3927. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3928. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3929. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3930. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3931. ;;
  3932. esac
  3933. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3934. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3935. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3936. echo $ECHO_N "(cached) $ECHO_C" >&6
  3937. else
  3938. eval "$as_ac_Header=\$ac_header_preproc"
  3939. fi
  3940. ac_res=`eval echo '${'$as_ac_Header'}'`
  3941. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3942. echo "${ECHO_T}$ac_res" >&6; }
  3943. fi
  3944. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3945. cat >>confdefs.h <<_ACEOF
  3946. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3947. _ACEOF
  3948. fi
  3949. done
  3950. for ac_header in sys/select.h
  3951. do
  3952. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3953. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3954. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  3955. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  3956. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3957. echo $ECHO_N "(cached) $ECHO_C" >&6
  3958. fi
  3959. ac_res=`eval echo '${'$as_ac_Header'}'`
  3960. { echo "$as_me:$LINENO: result: $ac_res" >&5
  3961. echo "${ECHO_T}$ac_res" >&6; }
  3962. else
  3963. # Is the header compilable?
  3964. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3965. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  3966. cat >conftest.$ac_ext <<_ACEOF
  3967. /* confdefs.h. */
  3968. _ACEOF
  3969. cat confdefs.h >>conftest.$ac_ext
  3970. cat >>conftest.$ac_ext <<_ACEOF
  3971. /* end confdefs.h. */
  3972. $ac_includes_default
  3973. #include <$ac_header>
  3974. _ACEOF
  3975. rm -f conftest.$ac_objext
  3976. if { (ac_try="$ac_compile"
  3977. case "(($ac_try" in
  3978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3979. *) ac_try_echo=$ac_try;;
  3980. esac
  3981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3982. (eval "$ac_compile") 2>conftest.er1
  3983. ac_status=$?
  3984. grep -v '^ *+' conftest.er1 >conftest.err
  3985. rm -f conftest.er1
  3986. cat conftest.err >&5
  3987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3988. (exit $ac_status); } && {
  3989. test -z "$ac_c_werror_flag" ||
  3990. test ! -s conftest.err
  3991. } && test -s conftest.$ac_objext; then
  3992. ac_header_compiler=yes
  3993. else
  3994. echo "$as_me: failed program was:" >&5
  3995. sed 's/^/| /' conftest.$ac_ext >&5
  3996. ac_header_compiler=no
  3997. fi
  3998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3999. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4000. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4001. # Is the header present?
  4002. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4003. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4004. cat >conftest.$ac_ext <<_ACEOF
  4005. /* confdefs.h. */
  4006. _ACEOF
  4007. cat confdefs.h >>conftest.$ac_ext
  4008. cat >>conftest.$ac_ext <<_ACEOF
  4009. /* end confdefs.h. */
  4010. #include <$ac_header>
  4011. _ACEOF
  4012. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4013. case "(($ac_try" in
  4014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4015. *) ac_try_echo=$ac_try;;
  4016. esac
  4017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4018. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4019. ac_status=$?
  4020. grep -v '^ *+' conftest.er1 >conftest.err
  4021. rm -f conftest.er1
  4022. cat conftest.err >&5
  4023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024. (exit $ac_status); } >/dev/null && {
  4025. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4026. test ! -s conftest.err
  4027. }; then
  4028. ac_header_preproc=yes
  4029. else
  4030. echo "$as_me: failed program was:" >&5
  4031. sed 's/^/| /' conftest.$ac_ext >&5
  4032. ac_header_preproc=no
  4033. fi
  4034. rm -f conftest.err conftest.$ac_ext
  4035. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4036. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4037. # So? What about this header?
  4038. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4039. yes:no: )
  4040. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4041. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4042. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4043. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4044. ac_header_preproc=yes
  4045. ;;
  4046. no:yes:* )
  4047. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4048. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4049. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4050. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4051. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4052. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4053. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4054. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4055. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4056. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4057. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4058. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4059. ;;
  4060. esac
  4061. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4062. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4063. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4064. echo $ECHO_N "(cached) $ECHO_C" >&6
  4065. else
  4066. eval "$as_ac_Header=\$ac_header_preproc"
  4067. fi
  4068. ac_res=`eval echo '${'$as_ac_Header'}'`
  4069. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4070. echo "${ECHO_T}$ac_res" >&6; }
  4071. fi
  4072. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4073. cat >>confdefs.h <<_ACEOF
  4074. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4075. _ACEOF
  4076. fi
  4077. done
  4078. for ac_header in sysexits.h
  4079. do
  4080. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4081. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4082. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4083. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4084. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4085. echo $ECHO_N "(cached) $ECHO_C" >&6
  4086. fi
  4087. ac_res=`eval echo '${'$as_ac_Header'}'`
  4088. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4089. echo "${ECHO_T}$ac_res" >&6; }
  4090. else
  4091. # Is the header compilable?
  4092. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4093. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4094. cat >conftest.$ac_ext <<_ACEOF
  4095. /* confdefs.h. */
  4096. _ACEOF
  4097. cat confdefs.h >>conftest.$ac_ext
  4098. cat >>conftest.$ac_ext <<_ACEOF
  4099. /* end confdefs.h. */
  4100. $ac_includes_default
  4101. #include <$ac_header>
  4102. _ACEOF
  4103. rm -f conftest.$ac_objext
  4104. if { (ac_try="$ac_compile"
  4105. case "(($ac_try" in
  4106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4107. *) ac_try_echo=$ac_try;;
  4108. esac
  4109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4110. (eval "$ac_compile") 2>conftest.er1
  4111. ac_status=$?
  4112. grep -v '^ *+' conftest.er1 >conftest.err
  4113. rm -f conftest.er1
  4114. cat conftest.err >&5
  4115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4116. (exit $ac_status); } && {
  4117. test -z "$ac_c_werror_flag" ||
  4118. test ! -s conftest.err
  4119. } && test -s conftest.$ac_objext; then
  4120. ac_header_compiler=yes
  4121. else
  4122. echo "$as_me: failed program was:" >&5
  4123. sed 's/^/| /' conftest.$ac_ext >&5
  4124. ac_header_compiler=no
  4125. fi
  4126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4127. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4128. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4129. # Is the header present?
  4130. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4131. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. #include <$ac_header>
  4139. _ACEOF
  4140. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4141. case "(($ac_try" in
  4142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4143. *) ac_try_echo=$ac_try;;
  4144. esac
  4145. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4146. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4147. ac_status=$?
  4148. grep -v '^ *+' conftest.er1 >conftest.err
  4149. rm -f conftest.er1
  4150. cat conftest.err >&5
  4151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4152. (exit $ac_status); } >/dev/null && {
  4153. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4154. test ! -s conftest.err
  4155. }; then
  4156. ac_header_preproc=yes
  4157. else
  4158. echo "$as_me: failed program was:" >&5
  4159. sed 's/^/| /' conftest.$ac_ext >&5
  4160. ac_header_preproc=no
  4161. fi
  4162. rm -f conftest.err conftest.$ac_ext
  4163. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4164. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4165. # So? What about this header?
  4166. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4167. yes:no: )
  4168. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4169. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4170. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4171. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4172. ac_header_preproc=yes
  4173. ;;
  4174. no:yes:* )
  4175. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4176. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4177. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4178. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4179. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4180. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4181. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4182. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4183. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4184. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4185. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4186. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4187. ;;
  4188. esac
  4189. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4190. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4191. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4192. echo $ECHO_N "(cached) $ECHO_C" >&6
  4193. else
  4194. eval "$as_ac_Header=\$ac_header_preproc"
  4195. fi
  4196. ac_res=`eval echo '${'$as_ac_Header'}'`
  4197. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4198. echo "${ECHO_T}$ac_res" >&6; }
  4199. fi
  4200. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4201. cat >>confdefs.h <<_ACEOF
  4202. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4203. _ACEOF
  4204. fi
  4205. done
  4206. for ac_func in gettimeofday ftime nlist select setitimer sigaction
  4207. do
  4208. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4209. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4210. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4211. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4212. echo $ECHO_N "(cached) $ECHO_C" >&6
  4213. else
  4214. cat >conftest.$ac_ext <<_ACEOF
  4215. /* confdefs.h. */
  4216. _ACEOF
  4217. cat confdefs.h >>conftest.$ac_ext
  4218. cat >>conftest.$ac_ext <<_ACEOF
  4219. /* end confdefs.h. */
  4220. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4221. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4222. #define $ac_func innocuous_$ac_func
  4223. /* System header to define __stub macros and hopefully few prototypes,
  4224. which can conflict with char $ac_func (); below.
  4225. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4226. <limits.h> exists even on freestanding compilers. */
  4227. #ifdef __STDC__
  4228. # include <limits.h>
  4229. #else
  4230. # include <assert.h>
  4231. #endif
  4232. #undef $ac_func
  4233. /* Override any GCC internal prototype to avoid an error.
  4234. Use char because int might match the return type of a GCC
  4235. builtin and then its argument prototype would still apply. */
  4236. #ifdef __cplusplus
  4237. extern "C"
  4238. #endif
  4239. char $ac_func ();
  4240. /* The GNU C library defines this for functions which it implements
  4241. to always fail with ENOSYS. Some functions are actually named
  4242. something starting with __ and the normal name is an alias. */
  4243. #if defined __stub_$ac_func || defined __stub___$ac_func
  4244. choke me
  4245. #endif
  4246. int
  4247. main ()
  4248. {
  4249. return $ac_func ();
  4250. ;
  4251. return 0;
  4252. }
  4253. _ACEOF
  4254. rm -f conftest.$ac_objext conftest$ac_exeext
  4255. if { (ac_try="$ac_link"
  4256. case "(($ac_try" in
  4257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4258. *) ac_try_echo=$ac_try;;
  4259. esac
  4260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4261. (eval "$ac_link") 2>conftest.er1
  4262. ac_status=$?
  4263. grep -v '^ *+' conftest.er1 >conftest.err
  4264. rm -f conftest.er1
  4265. cat conftest.err >&5
  4266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4267. (exit $ac_status); } && {
  4268. test -z "$ac_c_werror_flag" ||
  4269. test ! -s conftest.err
  4270. } && test -s conftest$ac_exeext &&
  4271. $as_test_x conftest$ac_exeext; then
  4272. eval "$as_ac_var=yes"
  4273. else
  4274. echo "$as_me: failed program was:" >&5
  4275. sed 's/^/| /' conftest.$ac_ext >&5
  4276. eval "$as_ac_var=no"
  4277. fi
  4278. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4279. conftest$ac_exeext conftest.$ac_ext
  4280. fi
  4281. ac_res=`eval echo '${'$as_ac_var'}'`
  4282. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4283. echo "${ECHO_T}$ac_res" >&6; }
  4284. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4285. cat >>confdefs.h <<_ACEOF
  4286. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4287. _ACEOF
  4288. fi
  4289. done
  4290. { echo "$as_me:$LINENO: checking for dlopen" >&5
  4291. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  4292. if test "${ac_cv_func_dlopen+set}" = set; then
  4293. echo $ECHO_N "(cached) $ECHO_C" >&6
  4294. else
  4295. cat >conftest.$ac_ext <<_ACEOF
  4296. /* confdefs.h. */
  4297. _ACEOF
  4298. cat confdefs.h >>conftest.$ac_ext
  4299. cat >>conftest.$ac_ext <<_ACEOF
  4300. /* end confdefs.h. */
  4301. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  4302. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4303. #define dlopen innocuous_dlopen
  4304. /* System header to define __stub macros and hopefully few prototypes,
  4305. which can conflict with char dlopen (); below.
  4306. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4307. <limits.h> exists even on freestanding compilers. */
  4308. #ifdef __STDC__
  4309. # include <limits.h>
  4310. #else
  4311. # include <assert.h>
  4312. #endif
  4313. #undef dlopen
  4314. /* Override any GCC internal prototype to avoid an error.
  4315. Use char because int might match the return type of a GCC
  4316. builtin and then its argument prototype would still apply. */
  4317. #ifdef __cplusplus
  4318. extern "C"
  4319. #endif
  4320. char dlopen ();
  4321. /* The GNU C library defines this for functions which it implements
  4322. to always fail with ENOSYS. Some functions are actually named
  4323. something starting with __ and the normal name is an alias. */
  4324. #if defined __stub_dlopen || defined __stub___dlopen
  4325. choke me
  4326. #endif
  4327. int
  4328. main ()
  4329. {
  4330. return dlopen ();
  4331. ;
  4332. return 0;
  4333. }
  4334. _ACEOF
  4335. rm -f conftest.$ac_objext conftest$ac_exeext
  4336. if { (ac_try="$ac_link"
  4337. case "(($ac_try" in
  4338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4339. *) ac_try_echo=$ac_try;;
  4340. esac
  4341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4342. (eval "$ac_link") 2>conftest.er1
  4343. ac_status=$?
  4344. grep -v '^ *+' conftest.er1 >conftest.err
  4345. rm -f conftest.er1
  4346. cat conftest.err >&5
  4347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4348. (exit $ac_status); } && {
  4349. test -z "$ac_c_werror_flag" ||
  4350. test ! -s conftest.err
  4351. } && test -s conftest$ac_exeext &&
  4352. $as_test_x conftest$ac_exeext; then
  4353. ac_cv_func_dlopen=yes
  4354. else
  4355. echo "$as_me: failed program was:" >&5
  4356. sed 's/^/| /' conftest.$ac_ext >&5
  4357. ac_cv_func_dlopen=no
  4358. fi
  4359. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4360. conftest$ac_exeext conftest.$ac_ext
  4361. fi
  4362. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  4363. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  4364. if test $ac_cv_func_dlopen = yes; then
  4365. cat >>confdefs.h <<\_ACEOF
  4366. #define HAVE_DLOPEN 1
  4367. _ACEOF
  4368. else
  4369. { echo "$as_me:$LINENO: checking for nlist" >&5
  4370. echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
  4371. if test "${ac_cv_func_nlist+set}" = set; then
  4372. echo $ECHO_N "(cached) $ECHO_C" >&6
  4373. else
  4374. cat >conftest.$ac_ext <<_ACEOF
  4375. /* confdefs.h. */
  4376. _ACEOF
  4377. cat confdefs.h >>conftest.$ac_ext
  4378. cat >>conftest.$ac_ext <<_ACEOF
  4379. /* end confdefs.h. */
  4380. /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
  4381. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4382. #define nlist innocuous_nlist
  4383. /* System header to define __stub macros and hopefully few prototypes,
  4384. which can conflict with char nlist (); below.
  4385. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4386. <limits.h> exists even on freestanding compilers. */
  4387. #ifdef __STDC__
  4388. # include <limits.h>
  4389. #else
  4390. # include <assert.h>
  4391. #endif
  4392. #undef nlist
  4393. /* Override any GCC internal prototype to avoid an error.
  4394. Use char because int might match the return type of a GCC
  4395. builtin and then its argument prototype would still apply. */
  4396. #ifdef __cplusplus
  4397. extern "C"
  4398. #endif
  4399. char nlist ();
  4400. /* The GNU C library defines this for functions which it implements
  4401. to always fail with ENOSYS. Some functions are actually named
  4402. something starting with __ and the normal name is an alias. */
  4403. #if defined __stub_nlist || defined __stub___nlist
  4404. choke me
  4405. #endif
  4406. int
  4407. main ()
  4408. {
  4409. return nlist ();
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. rm -f conftest.$ac_objext conftest$ac_exeext
  4415. if { (ac_try="$ac_link"
  4416. case "(($ac_try" in
  4417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4418. *) ac_try_echo=$ac_try;;
  4419. esac
  4420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4421. (eval "$ac_link") 2>conftest.er1
  4422. ac_status=$?
  4423. grep -v '^ *+' conftest.er1 >conftest.err
  4424. rm -f conftest.er1
  4425. cat conftest.err >&5
  4426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4427. (exit $ac_status); } && {
  4428. test -z "$ac_c_werror_flag" ||
  4429. test ! -s conftest.err
  4430. } && test -s conftest$ac_exeext &&
  4431. $as_test_x conftest$ac_exeext; then
  4432. ac_cv_func_nlist=yes
  4433. else
  4434. echo "$as_me: failed program was:" >&5
  4435. sed 's/^/| /' conftest.$ac_ext >&5
  4436. ac_cv_func_nlist=no
  4437. fi
  4438. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4439. conftest$ac_exeext conftest.$ac_ext
  4440. fi
  4441. { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
  4442. echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
  4443. if test $ac_cv_func_nlist = yes; then
  4444. case " $LIBOBJS " in
  4445. *" c/fake/libdl1.$ac_objext "* ) ;;
  4446. *) LIBOBJS="$LIBOBJS c/fake/libdl1.$ac_objext"
  4447. ;;
  4448. esac
  4449. else
  4450. case " $LIBOBJS " in
  4451. *" c/fake/libdl2.$ac_objext "* ) ;;
  4452. *) LIBOBJS="$LIBOBJS c/fake/libdl2.$ac_objext"
  4453. ;;
  4454. esac
  4455. fi
  4456. fi
  4457. for ac_func in socket chroot
  4458. do
  4459. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4460. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4461. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4462. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4463. echo $ECHO_N "(cached) $ECHO_C" >&6
  4464. else
  4465. cat >conftest.$ac_ext <<_ACEOF
  4466. /* confdefs.h. */
  4467. _ACEOF
  4468. cat confdefs.h >>conftest.$ac_ext
  4469. cat >>conftest.$ac_ext <<_ACEOF
  4470. /* end confdefs.h. */
  4471. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4472. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4473. #define $ac_func innocuous_$ac_func
  4474. /* System header to define __stub macros and hopefully few prototypes,
  4475. which can conflict with char $ac_func (); below.
  4476. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4477. <limits.h> exists even on freestanding compilers. */
  4478. #ifdef __STDC__
  4479. # include <limits.h>
  4480. #else
  4481. # include <assert.h>
  4482. #endif
  4483. #undef $ac_func
  4484. /* Override any GCC internal prototype to avoid an error.
  4485. Use char because int might match the return type of a GCC
  4486. builtin and then its argument prototype would still apply. */
  4487. #ifdef __cplusplus
  4488. extern "C"
  4489. #endif
  4490. char $ac_func ();
  4491. /* The GNU C library defines this for functions which it implements
  4492. to always fail with ENOSYS. Some functions are actually named
  4493. something starting with __ and the normal name is an alias. */
  4494. #if defined __stub_$ac_func || defined __stub___$ac_func
  4495. choke me
  4496. #endif
  4497. int
  4498. main ()
  4499. {
  4500. return $ac_func ();
  4501. ;
  4502. return 0;
  4503. }
  4504. _ACEOF
  4505. rm -f conftest.$ac_objext conftest$ac_exeext
  4506. if { (ac_try="$ac_link"
  4507. case "(($ac_try" in
  4508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4509. *) ac_try_echo=$ac_try;;
  4510. esac
  4511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4512. (eval "$ac_link") 2>conftest.er1
  4513. ac_status=$?
  4514. grep -v '^ *+' conftest.er1 >conftest.err
  4515. rm -f conftest.er1
  4516. cat conftest.err >&5
  4517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518. (exit $ac_status); } && {
  4519. test -z "$ac_c_werror_flag" ||
  4520. test ! -s conftest.err
  4521. } && test -s conftest$ac_exeext &&
  4522. $as_test_x conftest$ac_exeext; then
  4523. eval "$as_ac_var=yes"
  4524. else
  4525. echo "$as_me: failed program was:" >&5
  4526. sed 's/^/| /' conftest.$ac_ext >&5
  4527. eval "$as_ac_var=no"
  4528. fi
  4529. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4530. conftest$ac_exeext conftest.$ac_ext
  4531. fi
  4532. ac_res=`eval echo '${'$as_ac_var'}'`
  4533. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4534. echo "${ECHO_T}$ac_res" >&6; }
  4535. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4536. cat >>confdefs.h <<_ACEOF
  4537. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4538. _ACEOF
  4539. fi
  4540. done
  4541. { echo "$as_me:$LINENO: checking for strerror" >&5
  4542. echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
  4543. if test "${ac_cv_func_strerror+set}" = set; then
  4544. echo $ECHO_N "(cached) $ECHO_C" >&6
  4545. else
  4546. cat >conftest.$ac_ext <<_ACEOF
  4547. /* confdefs.h. */
  4548. _ACEOF
  4549. cat confdefs.h >>conftest.$ac_ext
  4550. cat >>conftest.$ac_ext <<_ACEOF
  4551. /* end confdefs.h. */
  4552. /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
  4553. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4554. #define strerror innocuous_strerror
  4555. /* System header to define __stub macros and hopefully few prototypes,
  4556. which can conflict with char strerror (); below.
  4557. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4558. <limits.h> exists even on freestanding compilers. */
  4559. #ifdef __STDC__
  4560. # include <limits.h>
  4561. #else
  4562. # include <assert.h>
  4563. #endif
  4564. #undef strerror
  4565. /* Override any GCC internal prototype to avoid an error.
  4566. Use char because int might match the return type of a GCC
  4567. builtin and then its argument prototype would still apply. */
  4568. #ifdef __cplusplus
  4569. extern "C"
  4570. #endif
  4571. char strerror ();
  4572. /* The GNU C library defines this for functions which it implements
  4573. to always fail with ENOSYS. Some functions are actually named
  4574. something starting with __ and the normal name is an alias. */
  4575. #if defined __stub_strerror || defined __stub___strerror
  4576. choke me
  4577. #endif
  4578. int
  4579. main ()
  4580. {
  4581. return strerror ();
  4582. ;
  4583. return 0;
  4584. }
  4585. _ACEOF
  4586. rm -f conftest.$ac_objext conftest$ac_exeext
  4587. if { (ac_try="$ac_link"
  4588. case "(($ac_try" in
  4589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4590. *) ac_try_echo=$ac_try;;
  4591. esac
  4592. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4593. (eval "$ac_link") 2>conftest.er1
  4594. ac_status=$?
  4595. grep -v '^ *+' conftest.er1 >conftest.err
  4596. rm -f conftest.er1
  4597. cat conftest.err >&5
  4598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4599. (exit $ac_status); } && {
  4600. test -z "$ac_c_werror_flag" ||
  4601. test ! -s conftest.err
  4602. } && test -s conftest$ac_exeext &&
  4603. $as_test_x conftest$ac_exeext; then
  4604. ac_cv_func_strerror=yes
  4605. else
  4606. echo "$as_me: failed program was:" >&5
  4607. sed 's/^/| /' conftest.$ac_ext >&5
  4608. ac_cv_func_strerror=no
  4609. fi
  4610. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4611. conftest$ac_exeext conftest.$ac_ext
  4612. fi
  4613. { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
  4614. echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
  4615. if test $ac_cv_func_strerror = yes; then
  4616. cat >>confdefs.h <<\_ACEOF
  4617. #define HAVE_STRERROR 1
  4618. _ACEOF
  4619. else
  4620. case " $LIBOBJS " in
  4621. *" c/fake/strerror.o.$ac_objext "* ) ;;
  4622. *) LIBOBJS="$LIBOBJS c/fake/strerror.o.$ac_objext"
  4623. ;;
  4624. esac
  4625. fi
  4626. { echo "$as_me:$LINENO: checking environ" >&5
  4627. echo $ECHO_N "checking environ... $ECHO_C" >&6; }
  4628. cat >conftest.$ac_ext <<_ACEOF
  4629. /* confdefs.h. */
  4630. _ACEOF
  4631. cat confdefs.h >>conftest.$ac_ext
  4632. cat >>conftest.$ac_ext <<_ACEOF
  4633. /* end confdefs.h. */
  4634. int
  4635. main ()
  4636. {
  4637. extern char **environ;
  4638. if (environ)
  4639. return 0;
  4640. else
  4641. return 1;
  4642. ;
  4643. return 0;
  4644. }
  4645. _ACEOF
  4646. rm -f conftest.$ac_objext conftest$ac_exeext
  4647. if { (ac_try="$ac_link"
  4648. case "(($ac_try" in
  4649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4650. *) ac_try_echo=$ac_try;;
  4651. esac
  4652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4653. (eval "$ac_link") 2>conftest.er1
  4654. ac_status=$?
  4655. grep -v '^ *+' conftest.er1 >conftest.err
  4656. rm -f conftest.er1
  4657. cat conftest.err >&5
  4658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4659. (exit $ac_status); } && {
  4660. test -z "$ac_c_werror_flag" ||
  4661. test ! -s conftest.err
  4662. } && test -s conftest$ac_exeext &&
  4663. $as_test_x conftest$ac_exeext; then
  4664. cat >>confdefs.h <<\_ACEOF
  4665. #define ENVIRON_NAME environ
  4666. _ACEOF
  4667. { echo "$as_me:$LINENO: result: using environ" >&5
  4668. echo "${ECHO_T}using environ" >&6; }
  4669. else
  4670. echo "$as_me: failed program was:" >&5
  4671. sed 's/^/| /' conftest.$ac_ext >&5
  4672. cat >conftest.$ac_ext <<_ACEOF
  4673. /* confdefs.h. */
  4674. _ACEOF
  4675. cat confdefs.h >>conftest.$ac_ext
  4676. cat >>conftest.$ac_ext <<_ACEOF
  4677. /* end confdefs.h. */
  4678. int
  4679. main ()
  4680. {
  4681. extern char **__environ;
  4682. if (__environ)
  4683. return 0;
  4684. else
  4685. return 1;
  4686. ;
  4687. return 0;
  4688. }
  4689. _ACEOF
  4690. rm -f conftest.$ac_objext conftest$ac_exeext
  4691. if { (ac_try="$ac_link"
  4692. case "(($ac_try" in
  4693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4694. *) ac_try_echo=$ac_try;;
  4695. esac
  4696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4697. (eval "$ac_link") 2>conftest.er1
  4698. ac_status=$?
  4699. grep -v '^ *+' conftest.er1 >conftest.err
  4700. rm -f conftest.er1
  4701. cat conftest.err >&5
  4702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4703. (exit $ac_status); } && {
  4704. test -z "$ac_c_werror_flag" ||
  4705. test ! -s conftest.err
  4706. } && test -s conftest$ac_exeext &&
  4707. $as_test_x conftest$ac_exeext; then
  4708. cat >>confdefs.h <<\_ACEOF
  4709. #define ENVIRON_NAME __environ
  4710. _ACEOF
  4711. { echo "$as_me:$LINENO: result: using __environ" >&5
  4712. echo "${ECHO_T}using __environ" >&6; }
  4713. else
  4714. echo "$as_me: failed program was:" >&5
  4715. sed 's/^/| /' conftest.$ac_ext >&5
  4716. { echo "$as_me:$LINENO: WARNING: no environ variable found" >&5
  4717. echo "$as_me: WARNING: no environ variable found" >&2;}
  4718. case " $LIBOBJS " in
  4719. *" c/fake/environ.o.$ac_objext "* ) ;;
  4720. *) LIBOBJS="$LIBOBJS c/fake/environ.o.$ac_objext"
  4721. ;;
  4722. esac
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4725. conftest$ac_exeext conftest.$ac_ext
  4726. fi
  4727. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4728. conftest$ac_exeext conftest.$ac_ext
  4729. { echo "$as_me:$LINENO: checking n_name" >&5
  4730. echo $ECHO_N "checking n_name... $ECHO_C" >&6; }
  4731. cat >conftest.$ac_ext <<_ACEOF
  4732. /* confdefs.h. */
  4733. _ACEOF
  4734. cat confdefs.h >>conftest.$ac_ext
  4735. cat >>conftest.$ac_ext <<_ACEOF
  4736. /* end confdefs.h. */
  4737. #include <nlist.h>
  4738. int
  4739. main ()
  4740. {
  4741. struct nlist name_list;
  4742. name_list.n_name = "foo";
  4743. ;
  4744. return 0;
  4745. }
  4746. _ACEOF
  4747. rm -f conftest.$ac_objext conftest$ac_exeext
  4748. if { (ac_try="$ac_link"
  4749. case "(($ac_try" in
  4750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4751. *) ac_try_echo=$ac_try;;
  4752. esac
  4753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4754. (eval "$ac_link") 2>conftest.er1
  4755. ac_status=$?
  4756. grep -v '^ *+' conftest.er1 >conftest.err
  4757. rm -f conftest.er1
  4758. cat conftest.err >&5
  4759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760. (exit $ac_status); } && {
  4761. test -z "$ac_c_werror_flag" ||
  4762. test ! -s conftest.err
  4763. } && test -s conftest$ac_exeext &&
  4764. $as_test_x conftest$ac_exeext; then
  4765. cat >>confdefs.h <<\_ACEOF
  4766. #define NLIST_HAS_N_NAME 1
  4767. _ACEOF
  4768. { echo "$as_me:$LINENO: result: yes" >&5
  4769. echo "${ECHO_T}yes" >&6; }
  4770. else
  4771. echo "$as_me: failed program was:" >&5
  4772. sed 's/^/| /' conftest.$ac_ext >&5
  4773. { echo "$as_me:$LINENO: result: no" >&5
  4774. echo "${ECHO_T}no" >&6; }
  4775. fi
  4776. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4777. conftest$ac_exeext conftest.$ac_ext
  4778. { echo "$as_me:$LINENO: checking __NEXT__" >&5
  4779. echo $ECHO_N "checking __NEXT__... $ECHO_C" >&6; }
  4780. cat >conftest.$ac_ext <<_ACEOF
  4781. /* confdefs.h. */
  4782. _ACEOF
  4783. cat confdefs.h >>conftest.$ac_ext
  4784. cat >>conftest.$ac_ext <<_ACEOF
  4785. /* end confdefs.h. */
  4786. int
  4787. main ()
  4788. {
  4789. #ifdef __NeXT__
  4790. return 0;
  4791. #else
  4792. fail
  4793. #endif
  4794. ;
  4795. return 0;
  4796. }
  4797. _ACEOF
  4798. rm -f conftest.$ac_objext conftest$ac_exeext
  4799. if { (ac_try="$ac_link"
  4800. case "(($ac_try" in
  4801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4802. *) ac_try_echo=$ac_try;;
  4803. esac
  4804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4805. (eval "$ac_link") 2>conftest.er1
  4806. ac_status=$?
  4807. grep -v '^ *+' conftest.er1 >conftest.err
  4808. rm -f conftest.er1
  4809. cat conftest.err >&5
  4810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4811. (exit $ac_status); } && {
  4812. test -z "$ac_c_werror_flag" ||
  4813. test ! -s conftest.err
  4814. } && test -s conftest$ac_exeext &&
  4815. $as_test_x conftest$ac_exeext; then
  4816. CC="$CC -posix"
  4817. cat >>confdefs.h <<\_ACEOF
  4818. #define HAVE_SIGACTION 1
  4819. _ACEOF
  4820. { echo "$as_me:$LINENO: result: yes" >&5
  4821. echo "${ECHO_T}yes" >&6; }
  4822. else
  4823. echo "$as_me: failed program was:" >&5
  4824. sed 's/^/| /' conftest.$ac_ext >&5
  4825. { echo "$as_me:$LINENO: result: no" >&5
  4826. echo "${ECHO_T}no" >&6; }
  4827. fi
  4828. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4829. conftest$ac_exeext conftest.$ac_ext
  4830. { echo "$as_me:$LINENO: checking underscore before symbols" >&5
  4831. echo $ECHO_N "checking underscore before symbols... $ECHO_C" >&6; }
  4832. echo 'main() { return 0; } fnord() {}' >conftest.c
  4833. if ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c ${LIBS} &&
  4834. nm a.out | grep _fnord >/dev/null; then
  4835. { echo "$as_me:$LINENO: result: yes" >&5
  4836. echo "${ECHO_T}yes" >&6; }
  4837. cat >>confdefs.h <<\_ACEOF
  4838. #define USCORE 1
  4839. _ACEOF
  4840. else
  4841. { echo "$as_me:$LINENO: result: no" >&5
  4842. echo "${ECHO_T}no" >&6; }
  4843. fi
  4844. rm -f conftest.c a.out
  4845. { echo "$as_me:$LINENO: checking link with -rdynamic" >&5
  4846. echo $ECHO_N "checking link with -rdynamic... $ECHO_C" >&6; }
  4847. cat >conftest.$ac_ext <<_ACEOF
  4848. /* confdefs.h. */
  4849. _ACEOF
  4850. cat confdefs.h >>conftest.$ac_ext
  4851. cat >>conftest.$ac_ext <<_ACEOF
  4852. /* end confdefs.h. */
  4853. int
  4854. main ()
  4855. {
  4856. #if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
  4857. this must not compile
  4858. #endif
  4859. ;
  4860. return 0;
  4861. }
  4862. _ACEOF
  4863. rm -f conftest.$ac_objext
  4864. if { (ac_try="$ac_compile"
  4865. case "(($ac_try" in
  4866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4867. *) ac_try_echo=$ac_try;;
  4868. esac
  4869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4870. (eval "$ac_compile") 2>conftest.er1
  4871. ac_status=$?
  4872. grep -v '^ *+' conftest.er1 >conftest.err
  4873. rm -f conftest.er1
  4874. cat conftest.err >&5
  4875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4876. (exit $ac_status); } && {
  4877. test -z "$ac_c_werror_flag" ||
  4878. test ! -s conftest.err
  4879. } && test -s conftest.$ac_objext; then
  4880. { echo "$as_me:$LINENO: result: no" >&5
  4881. echo "${ECHO_T}no" >&6; }
  4882. else
  4883. echo "$as_me: failed program was:" >&5
  4884. sed 's/^/| /' conftest.$ac_ext >&5
  4885. { echo "$as_me:$LINENO: result: yes" >&5
  4886. echo "${ECHO_T}yes" >&6; }
  4887. LDFLAGS="$LDFLAGS -rdynamic"
  4888. fi
  4889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4890. { echo "$as_me:$LINENO: checking IEEE floating-point endianness" >&5
  4891. echo $ECHO_N "checking IEEE floating-point endianness... $ECHO_C" >&6; }
  4892. if test "$option_enable_universal_binary" = "yes"
  4893. then
  4894. { echo "$as_me:$LINENO: result: building Universal Binary; using compiler defined macros instead" >&5
  4895. echo "${ECHO_T}building Universal Binary; using compiler defined macros instead" >&6; }
  4896. else
  4897. if test "$cross_compiling" = yes; then
  4898. ieee_endianness="least first"
  4899. else
  4900. cat >conftest.$ac_ext <<_ACEOF
  4901. /* confdefs.h. */
  4902. _ACEOF
  4903. cat confdefs.h >>conftest.$ac_ext
  4904. cat >>conftest.$ac_ext <<_ACEOF
  4905. /* end confdefs.h. */
  4906. #include <stdio.h>
  4907. typedef unsigned long word32_t;
  4908. typedef union { double d; word32_t word[2]; } double_overlay;
  4909. #define DOUBLE_WORD0(x) ((double_overlay*)&(x))->word[0]
  4910. #define DOUBLE_WORD1(x) ((double_overlay*)&(x))->word[1]
  4911. int
  4912. main(void)
  4913. {
  4914. double n = 0.3;
  4915. /* least significant byte first */
  4916. if ((DOUBLE_WORD0(n) == 0x33333333) && (DOUBLE_WORD1(n) == 0x3fd33333))
  4917. return 0;
  4918. /* most significant byte first */
  4919. else if ((DOUBLE_WORD1(n) == 0x33333333) && (DOUBLE_WORD0(n) == 0x3fd33333))
  4920. return 1;
  4921. else {
  4922. fprintf(stderr, "WARNING: unknown IEEE format; assuming IEEE with least significant byte first\n");
  4923. return 0;
  4924. }
  4925. }
  4926. _ACEOF
  4927. rm -f conftest$ac_exeext
  4928. if { (ac_try="$ac_link"
  4929. case "(($ac_try" in
  4930. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4931. *) ac_try_echo=$ac_try;;
  4932. esac
  4933. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4934. (eval "$ac_link") 2>&5
  4935. ac_status=$?
  4936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4937. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4938. { (case "(($ac_try" in
  4939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4940. *) ac_try_echo=$ac_try;;
  4941. esac
  4942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4943. (eval "$ac_try") 2>&5
  4944. ac_status=$?
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); }; }; then
  4947. ieee_endianness="least first"
  4948. else
  4949. echo "$as_me: program exited with status $ac_status" >&5
  4950. echo "$as_me: failed program was:" >&5
  4951. sed 's/^/| /' conftest.$ac_ext >&5
  4952. ( exit $ac_status )
  4953. ieee_endianness="most first"
  4954. fi
  4955. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4956. fi
  4957. { echo "$as_me:$LINENO: result: $ieee_endianness" >&5
  4958. echo "${ECHO_T}$ieee_endianness" >&6; }
  4959. if test "$ieee_endianness" = "most first"; then
  4960. cat >>confdefs.h <<\_ACEOF
  4961. #define IEEE_MOST_FIRST 1
  4962. _ACEOF
  4963. fi
  4964. fi
  4965. ac_config_files="$ac_config_files Makefile"
  4966. cat >confcache <<\_ACEOF
  4967. # This file is a shell script that caches the results of configure
  4968. # tests run on this system so they can be shared between configure
  4969. # scripts and configure runs, see configure's option --config-cache.
  4970. # It is not useful on other systems. If it contains results you don't
  4971. # want to keep, you may remove or edit it.
  4972. #
  4973. # config.status only pays attention to the cache file if you give it
  4974. # the --recheck option to rerun configure.
  4975. #
  4976. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4977. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4978. # following values.
  4979. _ACEOF
  4980. # The following way of writing the cache mishandles newlines in values,
  4981. # but we know of no workaround that is simple, portable, and efficient.
  4982. # So, we kill variables containing newlines.
  4983. # Ultrix sh set writes to stderr and can't be redirected directly,
  4984. # and sets the high bit in the cache file unless we assign to the vars.
  4985. (
  4986. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4987. eval ac_val=\$$ac_var
  4988. case $ac_val in #(
  4989. *${as_nl}*)
  4990. case $ac_var in #(
  4991. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4992. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4993. esac
  4994. case $ac_var in #(
  4995. _ | IFS | as_nl) ;; #(
  4996. *) $as_unset $ac_var ;;
  4997. esac ;;
  4998. esac
  4999. done
  5000. (set) 2>&1 |
  5001. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5002. *${as_nl}ac_space=\ *)
  5003. # `set' does not quote correctly, so add quotes (double-quote
  5004. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5005. sed -n \
  5006. "s/'/'\\\\''/g;
  5007. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5008. ;; #(
  5009. *)
  5010. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5011. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5012. ;;
  5013. esac |
  5014. sort
  5015. ) |
  5016. sed '
  5017. /^ac_cv_env_/b end
  5018. t clear
  5019. :clear
  5020. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5021. t end
  5022. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5023. :end' >>confcache
  5024. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5025. if test -w "$cache_file"; then
  5026. test "x$cache_file" != "x/dev/null" &&
  5027. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5028. echo "$as_me: updating cache $cache_file" >&6;}
  5029. cat confcache >$cache_file
  5030. else
  5031. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5032. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5033. fi
  5034. fi
  5035. rm -f confcache
  5036. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5037. # Let make expand exec_prefix.
  5038. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5039. DEFS=-DHAVE_CONFIG_H
  5040. ac_libobjs=
  5041. ac_ltlibobjs=
  5042. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5043. # 1. Remove the extension, and $U if already installed.
  5044. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5045. ac_i=`echo "$ac_i" | sed "$ac_script"`
  5046. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5047. # will be set to the directory where LIBOBJS objects are built.
  5048. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5049. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  5050. done
  5051. LIBOBJS=$ac_libobjs
  5052. LTLIBOBJS=$ac_ltlibobjs
  5053. : ${CONFIG_STATUS=./config.status}
  5054. ac_clean_files_save=$ac_clean_files
  5055. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5056. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  5057. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5058. cat >$CONFIG_STATUS <<_ACEOF
  5059. #! $SHELL
  5060. # Generated by $as_me.
  5061. # Run this file to recreate the current configuration.
  5062. # Compiler output produced by configure, useful for debugging
  5063. # configure, is in config.log if it exists.
  5064. debug=false
  5065. ac_cs_recheck=false
  5066. ac_cs_silent=false
  5067. SHELL=\${CONFIG_SHELL-$SHELL}
  5068. _ACEOF
  5069. cat >>$CONFIG_STATUS <<\_ACEOF
  5070. ## --------------------- ##
  5071. ## M4sh Initialization. ##
  5072. ## --------------------- ##
  5073. # Be more Bourne compatible
  5074. DUALCASE=1; export DUALCASE # for MKS sh
  5075. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5076. emulate sh
  5077. NULLCMD=:
  5078. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5079. # is contrary to our usage. Disable this feature.
  5080. alias -g '${1+"$@"}'='"$@"'
  5081. setopt NO_GLOB_SUBST
  5082. else
  5083. case `(set -o) 2>/dev/null` in
  5084. *posix*) set -o posix ;;
  5085. esac
  5086. fi
  5087. # PATH needs CR
  5088. # Avoid depending upon Character Ranges.
  5089. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5090. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5091. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5092. as_cr_digits='0123456789'
  5093. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5094. # The user is always right.
  5095. if test "${PATH_SEPARATOR+set}" != set; then
  5096. echo "#! /bin/sh" >conf$$.sh
  5097. echo "exit 0" >>conf$$.sh
  5098. chmod +x conf$$.sh
  5099. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5100. PATH_SEPARATOR=';'
  5101. else
  5102. PATH_SEPARATOR=:
  5103. fi
  5104. rm -f conf$$.sh
  5105. fi
  5106. # Support unset when possible.
  5107. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5108. as_unset=unset
  5109. else
  5110. as_unset=false
  5111. fi
  5112. # IFS
  5113. # We need space, tab and new line, in precisely that order. Quoting is
  5114. # there to prevent editors from complaining about space-tab.
  5115. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5116. # splitting by setting IFS to empty value.)
  5117. as_nl='
  5118. '
  5119. IFS=" "" $as_nl"
  5120. # Find who we are. Look in the path if we contain no directory separator.
  5121. case $0 in
  5122. *[\\/]* ) as_myself=$0 ;;
  5123. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5124. for as_dir in $PATH
  5125. do
  5126. IFS=$as_save_IFS
  5127. test -z "$as_dir" && as_dir=.
  5128. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5129. done
  5130. IFS=$as_save_IFS
  5131. ;;
  5132. esac
  5133. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5134. # in which case we are not to be found in the path.
  5135. if test "x$as_myself" = x; then
  5136. as_myself=$0
  5137. fi
  5138. if test ! -f "$as_myself"; then
  5139. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5140. { (exit 1); exit 1; }
  5141. fi
  5142. # Work around bugs in pre-3.0 UWIN ksh.
  5143. for as_var in ENV MAIL MAILPATH
  5144. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5145. done
  5146. PS1='$ '
  5147. PS2='> '
  5148. PS4='+ '
  5149. # NLS nuisances.
  5150. for as_var in \
  5151. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5152. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5153. LC_TELEPHONE LC_TIME
  5154. do
  5155. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5156. eval $as_var=C; export $as_var
  5157. else
  5158. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5159. fi
  5160. done
  5161. # Required to use basename.
  5162. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5163. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5164. as_expr=expr
  5165. else
  5166. as_expr=false
  5167. fi
  5168. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5169. as_basename=basename
  5170. else
  5171. as_basename=false
  5172. fi
  5173. # Name of the executable.
  5174. as_me=`$as_basename -- "$0" ||
  5175. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5176. X"$0" : 'X\(//\)$' \| \
  5177. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5178. echo X/"$0" |
  5179. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5180. s//\1/
  5181. q
  5182. }
  5183. /^X\/\(\/\/\)$/{
  5184. s//\1/
  5185. q
  5186. }
  5187. /^X\/\(\/\).*/{
  5188. s//\1/
  5189. q
  5190. }
  5191. s/.*/./; q'`
  5192. # CDPATH.
  5193. $as_unset CDPATH
  5194. as_lineno_1=$LINENO
  5195. as_lineno_2=$LINENO
  5196. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5197. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  5198. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5199. # uniformly replaced by the line number. The first 'sed' inserts a
  5200. # line-number line after each line using $LINENO; the second 'sed'
  5201. # does the real work. The second script uses 'N' to pair each
  5202. # line-number line with the line containing $LINENO, and appends
  5203. # trailing '-' during substitution so that $LINENO is not a special
  5204. # case at line end.
  5205. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5206. # scripts with optimization help from Paolo Bonzini. Blame Lee
  5207. # E. McMahon (1931-1989) for sed's syntax. :-)
  5208. sed -n '
  5209. p
  5210. /[$]LINENO/=
  5211. ' <$as_myself |
  5212. sed '
  5213. s/[$]LINENO.*/&-/
  5214. t lineno
  5215. b
  5216. :lineno
  5217. N
  5218. :loop
  5219. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  5220. t loop
  5221. s/-\n.*//
  5222. ' >$as_me.lineno &&
  5223. chmod +x "$as_me.lineno" ||
  5224. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  5225. { (exit 1); exit 1; }; }
  5226. # Don't try to exec as it changes $[0], causing all sort of problems
  5227. # (the dirname of $[0] is not the place where we might find the
  5228. # original and so on. Autoconf is especially sensitive to this).
  5229. . "./$as_me.lineno"
  5230. # Exit status is that of the last command.
  5231. exit
  5232. }
  5233. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5234. as_dirname=dirname
  5235. else
  5236. as_dirname=false
  5237. fi
  5238. ECHO_C= ECHO_N= ECHO_T=
  5239. case `echo -n x` in
  5240. -n*)
  5241. case `echo 'x\c'` in
  5242. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5243. *) ECHO_C='\c';;
  5244. esac;;
  5245. *)
  5246. ECHO_N='-n';;
  5247. esac
  5248. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5249. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5250. as_expr=expr
  5251. else
  5252. as_expr=false
  5253. fi
  5254. rm -f conf$$ conf$$.exe conf$$.file
  5255. if test -d conf$$.dir; then
  5256. rm -f conf$$.dir/conf$$.file
  5257. else
  5258. rm -f conf$$.dir
  5259. mkdir conf$$.dir
  5260. fi
  5261. echo >conf$$.file
  5262. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5263. as_ln_s='ln -s'
  5264. # ... but there are two gotchas:
  5265. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5266. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5267. # In both cases, we have to default to `cp -p'.
  5268. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5269. as_ln_s='cp -p'
  5270. elif ln conf$$.file conf$$ 2>/dev/null; then
  5271. as_ln_s=ln
  5272. else
  5273. as_ln_s='cp -p'
  5274. fi
  5275. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5276. rmdir conf$$.dir 2>/dev/null
  5277. if mkdir -p . 2>/dev/null; then
  5278. as_mkdir_p=:
  5279. else
  5280. test -d ./-p && rmdir ./-p
  5281. as_mkdir_p=false
  5282. fi
  5283. if test -x / >/dev/null 2>&1; then
  5284. as_test_x='test -x'
  5285. else
  5286. if ls -dL / >/dev/null 2>&1; then
  5287. as_ls_L_option=L
  5288. else
  5289. as_ls_L_option=
  5290. fi
  5291. as_test_x='
  5292. eval sh -c '\''
  5293. if test -d "$1"; then
  5294. test -d "$1/.";
  5295. else
  5296. case $1 in
  5297. -*)set "./$1";;
  5298. esac;
  5299. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  5300. ???[sx]*):;;*)false;;esac;fi
  5301. '\'' sh
  5302. '
  5303. fi
  5304. as_executable_p=$as_test_x
  5305. # Sed expression to map a string onto a valid CPP name.
  5306. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5307. # Sed expression to map a string onto a valid variable name.
  5308. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5309. exec 6>&1
  5310. # Save the log message, to keep $[0] and so on meaningful, and to
  5311. # report actual input values of CONFIG_FILES etc. instead of their
  5312. # values after options handling.
  5313. ac_log="
  5314. This file was extended by $as_me, which was
  5315. generated by GNU Autoconf 2.61. Invocation command line was
  5316. CONFIG_FILES = $CONFIG_FILES
  5317. CONFIG_HEADERS = $CONFIG_HEADERS
  5318. CONFIG_LINKS = $CONFIG_LINKS
  5319. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5320. $ $0 $@
  5321. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5322. "
  5323. _ACEOF
  5324. cat >>$CONFIG_STATUS <<_ACEOF
  5325. # Files that config.status was made for.
  5326. config_files="$ac_config_files"
  5327. config_headers="$ac_config_headers"
  5328. _ACEOF
  5329. cat >>$CONFIG_STATUS <<\_ACEOF
  5330. ac_cs_usage="\
  5331. \`$as_me' instantiates files from templates according to the
  5332. current configuration.
  5333. Usage: $0 [OPTIONS] [FILE]...
  5334. -h, --help print this help, then exit
  5335. -V, --version print version number and configuration settings, then exit
  5336. -q, --quiet do not print progress messages
  5337. -d, --debug don't remove temporary files
  5338. --recheck update $as_me by reconfiguring in the same conditions
  5339. --file=FILE[:TEMPLATE]
  5340. instantiate the configuration file FILE
  5341. --header=FILE[:TEMPLATE]
  5342. instantiate the configuration header FILE
  5343. Configuration files:
  5344. $config_files
  5345. Configuration headers:
  5346. $config_headers
  5347. Report bugs to <bug-autoconf@gnu.org>."
  5348. _ACEOF
  5349. cat >>$CONFIG_STATUS <<_ACEOF
  5350. ac_cs_version="\\
  5351. config.status
  5352. configured by $0, generated by GNU Autoconf 2.61,
  5353. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  5354. Copyright (C) 2006 Free Software Foundation, Inc.
  5355. This config.status script is free software; the Free Software Foundation
  5356. gives unlimited permission to copy, distribute and modify it."
  5357. ac_pwd='$ac_pwd'
  5358. srcdir='$srcdir'
  5359. INSTALL='$INSTALL'
  5360. _ACEOF
  5361. cat >>$CONFIG_STATUS <<\_ACEOF
  5362. # If no file are specified by the user, then we need to provide default
  5363. # value. By we need to know if files were specified by the user.
  5364. ac_need_defaults=:
  5365. while test $# != 0
  5366. do
  5367. case $1 in
  5368. --*=*)
  5369. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5370. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5371. ac_shift=:
  5372. ;;
  5373. *)
  5374. ac_option=$1
  5375. ac_optarg=$2
  5376. ac_shift=shift
  5377. ;;
  5378. esac
  5379. case $ac_option in
  5380. # Handling of the options.
  5381. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5382. ac_cs_recheck=: ;;
  5383. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5384. echo "$ac_cs_version"; exit ;;
  5385. --debug | --debu | --deb | --de | --d | -d )
  5386. debug=: ;;
  5387. --file | --fil | --fi | --f )
  5388. $ac_shift
  5389. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5390. ac_need_defaults=false;;
  5391. --header | --heade | --head | --hea )
  5392. $ac_shift
  5393. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5394. ac_need_defaults=false;;
  5395. --he | --h)
  5396. # Conflict between --help and --header
  5397. { echo "$as_me: error: ambiguous option: $1
  5398. Try \`$0 --help' for more information." >&2
  5399. { (exit 1); exit 1; }; };;
  5400. --help | --hel | -h )
  5401. echo "$ac_cs_usage"; exit ;;
  5402. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5403. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5404. ac_cs_silent=: ;;
  5405. # This is an error.
  5406. -*) { echo "$as_me: error: unrecognized option: $1
  5407. Try \`$0 --help' for more information." >&2
  5408. { (exit 1); exit 1; }; } ;;
  5409. *) ac_config_targets="$ac_config_targets $1"
  5410. ac_need_defaults=false ;;
  5411. esac
  5412. shift
  5413. done
  5414. ac_configure_extra_args=
  5415. if $ac_cs_silent; then
  5416. exec 6>/dev/null
  5417. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5418. fi
  5419. _ACEOF
  5420. cat >>$CONFIG_STATUS <<_ACEOF
  5421. if \$ac_cs_recheck; then
  5422. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5423. CONFIG_SHELL=$SHELL
  5424. export CONFIG_SHELL
  5425. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5426. fi
  5427. _ACEOF
  5428. cat >>$CONFIG_STATUS <<\_ACEOF
  5429. exec 5>>config.log
  5430. {
  5431. echo
  5432. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5433. ## Running $as_me. ##
  5434. _ASBOX
  5435. echo "$ac_log"
  5436. } >&5
  5437. _ACEOF
  5438. cat >>$CONFIG_STATUS <<_ACEOF
  5439. _ACEOF
  5440. cat >>$CONFIG_STATUS <<\_ACEOF
  5441. # Handling of arguments.
  5442. for ac_config_target in $ac_config_targets
  5443. do
  5444. case $ac_config_target in
  5445. "c/sysdep.h") CONFIG_HEADERS="$CONFIG_HEADERS c/sysdep.h" ;;
  5446. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5447. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5448. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5449. { (exit 1); exit 1; }; };;
  5450. esac
  5451. done
  5452. # If the user did not use the arguments to specify the items to instantiate,
  5453. # then the envvar interface is used. Set only those that are not.
  5454. # We use the long form for the default assignment because of an extremely
  5455. # bizarre bug on SunOS 4.1.3.
  5456. if $ac_need_defaults; then
  5457. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5458. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5459. fi
  5460. # Have a temporary directory for convenience. Make it in the build tree
  5461. # simply because there is no reason against having it here, and in addition,
  5462. # creating and moving files from /tmp can sometimes cause problems.
  5463. # Hook for its removal unless debugging.
  5464. # Note that there is a small window in which the directory will not be cleaned:
  5465. # after its creation but before its name has been assigned to `$tmp'.
  5466. $debug ||
  5467. {
  5468. tmp=
  5469. trap 'exit_status=$?
  5470. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  5471. ' 0
  5472. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5473. }
  5474. # Create a (secure) tmp directory for tmp files.
  5475. {
  5476. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5477. test -n "$tmp" && test -d "$tmp"
  5478. } ||
  5479. {
  5480. tmp=./conf$$-$RANDOM
  5481. (umask 077 && mkdir "$tmp")
  5482. } ||
  5483. {
  5484. echo "$me: cannot create a temporary directory in ." >&2
  5485. { (exit 1); exit 1; }
  5486. }
  5487. #
  5488. # Set up the sed scripts for CONFIG_FILES section.
  5489. #
  5490. # No need to generate the scripts if there are no CONFIG_FILES.
  5491. # This happens for instance when ./config.status config.h
  5492. if test -n "$CONFIG_FILES"; then
  5493. _ACEOF
  5494. ac_delim='%!_!# '
  5495. for ac_last_try in false false false false false :; do
  5496. cat >conf$$subs.sed <<_ACEOF
  5497. SHELL!$SHELL$ac_delim
  5498. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  5499. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  5500. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  5501. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  5502. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  5503. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  5504. exec_prefix!$exec_prefix$ac_delim
  5505. prefix!$prefix$ac_delim
  5506. program_transform_name!$program_transform_name$ac_delim
  5507. bindir!$bindir$ac_delim
  5508. sbindir!$sbindir$ac_delim
  5509. libexecdir!$libexecdir$ac_delim
  5510. datarootdir!$datarootdir$ac_delim
  5511. datadir!$datadir$ac_delim
  5512. sysconfdir!$sysconfdir$ac_delim
  5513. sharedstatedir!$sharedstatedir$ac_delim
  5514. localstatedir!$localstatedir$ac_delim
  5515. includedir!$includedir$ac_delim
  5516. oldincludedir!$oldincludedir$ac_delim
  5517. docdir!$docdir$ac_delim
  5518. infodir!$infodir$ac_delim
  5519. htmldir!$htmldir$ac_delim
  5520. dvidir!$dvidir$ac_delim
  5521. pdfdir!$pdfdir$ac_delim
  5522. psdir!$psdir$ac_delim
  5523. libdir!$libdir$ac_delim
  5524. localedir!$localedir$ac_delim
  5525. mandir!$mandir$ac_delim
  5526. DEFS!$DEFS$ac_delim
  5527. ECHO_C!$ECHO_C$ac_delim
  5528. ECHO_N!$ECHO_N$ac_delim
  5529. ECHO_T!$ECHO_T$ac_delim
  5530. LIBS!$LIBS$ac_delim
  5531. build_alias!$build_alias$ac_delim
  5532. host_alias!$host_alias$ac_delim
  5533. target_alias!$target_alias$ac_delim
  5534. CC!$CC$ac_delim
  5535. CFLAGS!$CFLAGS$ac_delim
  5536. LDFLAGS!$LDFLAGS$ac_delim
  5537. CPPFLAGS!$CPPFLAGS$ac_delim
  5538. ac_ct_CC!$ac_ct_CC$ac_delim
  5539. EXEEXT!$EXEEXT$ac_delim
  5540. OBJEXT!$OBJEXT$ac_delim
  5541. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  5542. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  5543. INSTALL_DATA!$INSTALL_DATA$ac_delim
  5544. CPP!$CPP$ac_delim
  5545. GREP!$GREP$ac_delim
  5546. EGREP!$EGREP$ac_delim
  5547. LIBOBJS!$LIBOBJS$ac_delim
  5548. LTLIBOBJS!$LTLIBOBJS$ac_delim
  5549. _ACEOF
  5550. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
  5551. break
  5552. elif $ac_last_try; then
  5553. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  5554. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  5555. { (exit 1); exit 1; }; }
  5556. else
  5557. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5558. fi
  5559. done
  5560. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  5561. if test -n "$ac_eof"; then
  5562. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  5563. ac_eof=`expr $ac_eof + 1`
  5564. fi
  5565. cat >>$CONFIG_STATUS <<_ACEOF
  5566. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  5567. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  5568. _ACEOF
  5569. sed '
  5570. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  5571. s/^/s,@/; s/!/@,|#_!!_#|/
  5572. :n
  5573. t n
  5574. s/'"$ac_delim"'$/,g/; t
  5575. s/$/\\/; p
  5576. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  5577. ' >>$CONFIG_STATUS <conf$$subs.sed
  5578. rm -f conf$$subs.sed
  5579. cat >>$CONFIG_STATUS <<_ACEOF
  5580. :end
  5581. s/|#_!!_#|//g
  5582. CEOF$ac_eof
  5583. _ACEOF
  5584. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5585. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5586. # trailing colons and then remove the whole line if VPATH becomes empty
  5587. # (actually we leave an empty line to preserve line numbers).
  5588. if test "x$srcdir" = x.; then
  5589. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5590. s/:*\$(srcdir):*/:/
  5591. s/:*\${srcdir}:*/:/
  5592. s/:*@srcdir@:*/:/
  5593. s/^\([^=]*=[ ]*\):*/\1/
  5594. s/:*$//
  5595. s/^[^=]*=[ ]*$//
  5596. }'
  5597. fi
  5598. cat >>$CONFIG_STATUS <<\_ACEOF
  5599. fi # test -n "$CONFIG_FILES"
  5600. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  5601. do
  5602. case $ac_tag in
  5603. :[FHLC]) ac_mode=$ac_tag; continue;;
  5604. esac
  5605. case $ac_mode$ac_tag in
  5606. :[FHL]*:*);;
  5607. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  5608. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  5609. { (exit 1); exit 1; }; };;
  5610. :[FH]-) ac_tag=-:-;;
  5611. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5612. esac
  5613. ac_save_IFS=$IFS
  5614. IFS=:
  5615. set x $ac_tag
  5616. IFS=$ac_save_IFS
  5617. shift
  5618. ac_file=$1
  5619. shift
  5620. case $ac_mode in
  5621. :L) ac_source=$1;;
  5622. :[FH])
  5623. ac_file_inputs=
  5624. for ac_f
  5625. do
  5626. case $ac_f in
  5627. -) ac_f="$tmp/stdin";;
  5628. *) # Look for the file first in the build tree, then in the source tree
  5629. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5630. # because $ac_f cannot contain `:'.
  5631. test -f "$ac_f" ||
  5632. case $ac_f in
  5633. [\\/$]*) false;;
  5634. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5635. esac ||
  5636. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  5637. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  5638. { (exit 1); exit 1; }; };;
  5639. esac
  5640. ac_file_inputs="$ac_file_inputs $ac_f"
  5641. done
  5642. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5643. # use $as_me), people would be surprised to read:
  5644. # /* config.h. Generated by config.status. */
  5645. configure_input="Generated from "`IFS=:
  5646. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  5647. if test x"$ac_file" != x-; then
  5648. configure_input="$ac_file. $configure_input"
  5649. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5650. echo "$as_me: creating $ac_file" >&6;}
  5651. fi
  5652. case $ac_tag in
  5653. *:-:* | *:-) cat >"$tmp/stdin";;
  5654. esac
  5655. ;;
  5656. esac
  5657. ac_dir=`$as_dirname -- "$ac_file" ||
  5658. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5659. X"$ac_file" : 'X\(//\)[^/]' \| \
  5660. X"$ac_file" : 'X\(//\)$' \| \
  5661. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5662. echo X"$ac_file" |
  5663. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5664. s//\1/
  5665. q
  5666. }
  5667. /^X\(\/\/\)[^/].*/{
  5668. s//\1/
  5669. q
  5670. }
  5671. /^X\(\/\/\)$/{
  5672. s//\1/
  5673. q
  5674. }
  5675. /^X\(\/\).*/{
  5676. s//\1/
  5677. q
  5678. }
  5679. s/.*/./; q'`
  5680. { as_dir="$ac_dir"
  5681. case $as_dir in #(
  5682. -*) as_dir=./$as_dir;;
  5683. esac
  5684. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  5685. as_dirs=
  5686. while :; do
  5687. case $as_dir in #(
  5688. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  5689. *) as_qdir=$as_dir;;
  5690. esac
  5691. as_dirs="'$as_qdir' $as_dirs"
  5692. as_dir=`$as_dirname -- "$as_dir" ||
  5693. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5694. X"$as_dir" : 'X\(//\)[^/]' \| \
  5695. X"$as_dir" : 'X\(//\)$' \| \
  5696. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5697. echo X"$as_dir" |
  5698. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5699. s//\1/
  5700. q
  5701. }
  5702. /^X\(\/\/\)[^/].*/{
  5703. s//\1/
  5704. q
  5705. }
  5706. /^X\(\/\/\)$/{
  5707. s//\1/
  5708. q
  5709. }
  5710. /^X\(\/\).*/{
  5711. s//\1/
  5712. q
  5713. }
  5714. s/.*/./; q'`
  5715. test -d "$as_dir" && break
  5716. done
  5717. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5718. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  5719. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  5720. { (exit 1); exit 1; }; }; }
  5721. ac_builddir=.
  5722. case "$ac_dir" in
  5723. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5724. *)
  5725. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5726. # A ".." for each directory in $ac_dir_suffix.
  5727. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  5728. case $ac_top_builddir_sub in
  5729. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5730. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5731. esac ;;
  5732. esac
  5733. ac_abs_top_builddir=$ac_pwd
  5734. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5735. # for backward compatibility:
  5736. ac_top_builddir=$ac_top_build_prefix
  5737. case $srcdir in
  5738. .) # We are building in place.
  5739. ac_srcdir=.
  5740. ac_top_srcdir=$ac_top_builddir_sub
  5741. ac_abs_top_srcdir=$ac_pwd ;;
  5742. [\\/]* | ?:[\\/]* ) # Absolute name.
  5743. ac_srcdir=$srcdir$ac_dir_suffix;
  5744. ac_top_srcdir=$srcdir
  5745. ac_abs_top_srcdir=$srcdir ;;
  5746. *) # Relative name.
  5747. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  5748. ac_top_srcdir=$ac_top_build_prefix$srcdir
  5749. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  5750. esac
  5751. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  5752. case $ac_mode in
  5753. :F)
  5754. #
  5755. # CONFIG_FILE
  5756. #
  5757. case $INSTALL in
  5758. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  5759. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  5760. esac
  5761. _ACEOF
  5762. cat >>$CONFIG_STATUS <<\_ACEOF
  5763. # If the template does not know about datarootdir, expand it.
  5764. # FIXME: This hack should be removed a few years after 2.60.
  5765. ac_datarootdir_hack=; ac_datarootdir_seen=
  5766. case `sed -n '/datarootdir/ {
  5767. p
  5768. q
  5769. }
  5770. /@datadir@/p
  5771. /@docdir@/p
  5772. /@infodir@/p
  5773. /@localedir@/p
  5774. /@mandir@/p
  5775. ' $ac_file_inputs` in
  5776. *datarootdir*) ac_datarootdir_seen=yes;;
  5777. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  5778. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  5779. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  5780. _ACEOF
  5781. cat >>$CONFIG_STATUS <<_ACEOF
  5782. ac_datarootdir_hack='
  5783. s&@datadir@&$datadir&g
  5784. s&@docdir@&$docdir&g
  5785. s&@infodir@&$infodir&g
  5786. s&@localedir@&$localedir&g
  5787. s&@mandir@&$mandir&g
  5788. s&\\\${datarootdir}&$datarootdir&g' ;;
  5789. esac
  5790. _ACEOF
  5791. # Neutralize VPATH when `$srcdir' = `.'.
  5792. # Shell code in configure.ac might set extrasub.
  5793. # FIXME: do we really want to maintain this feature?
  5794. cat >>$CONFIG_STATUS <<_ACEOF
  5795. sed "$ac_vpsub
  5796. $extrasub
  5797. _ACEOF
  5798. cat >>$CONFIG_STATUS <<\_ACEOF
  5799. :t
  5800. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  5801. s&@configure_input@&$configure_input&;t t
  5802. s&@top_builddir@&$ac_top_builddir_sub&;t t
  5803. s&@srcdir@&$ac_srcdir&;t t
  5804. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  5805. s&@top_srcdir@&$ac_top_srcdir&;t t
  5806. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  5807. s&@builddir@&$ac_builddir&;t t
  5808. s&@abs_builddir@&$ac_abs_builddir&;t t
  5809. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  5810. s&@INSTALL@&$ac_INSTALL&;t t
  5811. $ac_datarootdir_hack
  5812. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  5813. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  5814. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  5815. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  5816. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5817. which seems to be undefined. Please make sure it is defined." >&5
  5818. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  5819. which seems to be undefined. Please make sure it is defined." >&2;}
  5820. rm -f "$tmp/stdin"
  5821. case $ac_file in
  5822. -) cat "$tmp/out"; rm -f "$tmp/out";;
  5823. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  5824. esac
  5825. ;;
  5826. :H)
  5827. #
  5828. # CONFIG_HEADER
  5829. #
  5830. _ACEOF
  5831. # Transform confdefs.h into a sed script `conftest.defines', that
  5832. # substitutes the proper values into config.h.in to produce config.h.
  5833. rm -f conftest.defines conftest.tail
  5834. # First, append a space to every undef/define line, to ease matching.
  5835. echo 's/$/ /' >conftest.defines
  5836. # Then, protect against being on the right side of a sed subst, or in
  5837. # an unquoted here document, in config.status. If some macros were
  5838. # called several times there might be several #defines for the same
  5839. # symbol, which is useless. But do not sort them, since the last
  5840. # AC_DEFINE must be honored.
  5841. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  5842. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  5843. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  5844. # PARAMS is the parameter list in the macro definition--in most cases, it's
  5845. # just an empty string.
  5846. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  5847. ac_dB='\\)[ (].*,\\1define\\2'
  5848. ac_dC=' '
  5849. ac_dD=' ,'
  5850. uniq confdefs.h |
  5851. sed -n '
  5852. t rset
  5853. :rset
  5854. s/^[ ]*#[ ]*define[ ][ ]*//
  5855. t ok
  5856. d
  5857. :ok
  5858. s/[\\&,]/\\&/g
  5859. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  5860. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  5861. ' >>conftest.defines
  5862. # Remove the space that was appended to ease matching.
  5863. # Then replace #undef with comments. This is necessary, for
  5864. # example, in the case of _POSIX_SOURCE, which is predefined and required
  5865. # on some systems where configure will not decide to define it.
  5866. # (The regexp can be short, since the line contains either #define or #undef.)
  5867. echo 's/ $//
  5868. s,^[ #]*u.*,/* & */,' >>conftest.defines
  5869. # Break up conftest.defines:
  5870. ac_max_sed_lines=50
  5871. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  5872. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  5873. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  5874. # et cetera.
  5875. ac_in='$ac_file_inputs'
  5876. ac_out='"$tmp/out1"'
  5877. ac_nxt='"$tmp/out2"'
  5878. while :
  5879. do
  5880. # Write a here document:
  5881. cat >>$CONFIG_STATUS <<_ACEOF
  5882. # First, check the format of the line:
  5883. cat >"\$tmp/defines.sed" <<\\CEOF
  5884. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  5885. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  5886. b
  5887. :def
  5888. _ACEOF
  5889. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  5890. echo 'CEOF
  5891. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  5892. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  5893. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  5894. grep . conftest.tail >/dev/null || break
  5895. rm -f conftest.defines
  5896. mv conftest.tail conftest.defines
  5897. done
  5898. rm -f conftest.defines conftest.tail
  5899. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  5900. cat >>$CONFIG_STATUS <<\_ACEOF
  5901. if test x"$ac_file" != x-; then
  5902. echo "/* $configure_input */" >"$tmp/config.h"
  5903. cat "$ac_result" >>"$tmp/config.h"
  5904. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  5905. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  5906. echo "$as_me: $ac_file is unchanged" >&6;}
  5907. else
  5908. rm -f $ac_file
  5909. mv "$tmp/config.h" $ac_file
  5910. fi
  5911. else
  5912. echo "/* $configure_input */"
  5913. cat "$ac_result"
  5914. fi
  5915. rm -f "$tmp/out12"
  5916. ;;
  5917. esac
  5918. done # for ac_tag
  5919. { (exit 0); exit 0; }
  5920. _ACEOF
  5921. chmod +x $CONFIG_STATUS
  5922. ac_clean_files=$ac_clean_files_save
  5923. # configure is writing to config.log, and then calls config.status.
  5924. # config.status does its own redirection, appending to config.log.
  5925. # Unfortunately, on DOS this fails, as config.log is still kept open
  5926. # by configure, so config.status won't be able to write to it; its
  5927. # output is simply discarded. So we exec the FD to /dev/null,
  5928. # effectively closing config.log, so it can be properly (re)opened and
  5929. # appended to by config.status. When coming back to configure, we
  5930. # need to make the FD available again.
  5931. if test "$no_create" != yes; then
  5932. ac_cs_success=:
  5933. ac_config_status_args=
  5934. test "$silent" = yes &&
  5935. ac_config_status_args="$ac_config_status_args --quiet"
  5936. exec 5>/dev/null
  5937. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  5938. exec 5>>config.log
  5939. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  5940. # would make configure fail if this is the last instruction.
  5941. $ac_cs_success || { (exit 1); exit 1; }
  5942. fi