configure 190 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967
  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_header in langinfo.h
  4207. do
  4208. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4209. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4210. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4211. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4212. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4213. echo $ECHO_N "(cached) $ECHO_C" >&6
  4214. fi
  4215. ac_res=`eval echo '${'$as_ac_Header'}'`
  4216. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4217. echo "${ECHO_T}$ac_res" >&6; }
  4218. else
  4219. # Is the header compilable?
  4220. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4221. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4222. cat >conftest.$ac_ext <<_ACEOF
  4223. /* confdefs.h. */
  4224. _ACEOF
  4225. cat confdefs.h >>conftest.$ac_ext
  4226. cat >>conftest.$ac_ext <<_ACEOF
  4227. /* end confdefs.h. */
  4228. $ac_includes_default
  4229. #include <$ac_header>
  4230. _ACEOF
  4231. rm -f conftest.$ac_objext
  4232. if { (ac_try="$ac_compile"
  4233. case "(($ac_try" in
  4234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4235. *) ac_try_echo=$ac_try;;
  4236. esac
  4237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4238. (eval "$ac_compile") 2>conftest.er1
  4239. ac_status=$?
  4240. grep -v '^ *+' conftest.er1 >conftest.err
  4241. rm -f conftest.er1
  4242. cat conftest.err >&5
  4243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4244. (exit $ac_status); } && {
  4245. test -z "$ac_c_werror_flag" ||
  4246. test ! -s conftest.err
  4247. } && test -s conftest.$ac_objext; then
  4248. ac_header_compiler=yes
  4249. else
  4250. echo "$as_me: failed program was:" >&5
  4251. sed 's/^/| /' conftest.$ac_ext >&5
  4252. ac_header_compiler=no
  4253. fi
  4254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4255. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4256. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4257. # Is the header present?
  4258. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4259. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4260. cat >conftest.$ac_ext <<_ACEOF
  4261. /* confdefs.h. */
  4262. _ACEOF
  4263. cat confdefs.h >>conftest.$ac_ext
  4264. cat >>conftest.$ac_ext <<_ACEOF
  4265. /* end confdefs.h. */
  4266. #include <$ac_header>
  4267. _ACEOF
  4268. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4269. case "(($ac_try" in
  4270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4271. *) ac_try_echo=$ac_try;;
  4272. esac
  4273. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4274. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4275. ac_status=$?
  4276. grep -v '^ *+' conftest.er1 >conftest.err
  4277. rm -f conftest.er1
  4278. cat conftest.err >&5
  4279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280. (exit $ac_status); } >/dev/null && {
  4281. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4282. test ! -s conftest.err
  4283. }; then
  4284. ac_header_preproc=yes
  4285. else
  4286. echo "$as_me: failed program was:" >&5
  4287. sed 's/^/| /' conftest.$ac_ext >&5
  4288. ac_header_preproc=no
  4289. fi
  4290. rm -f conftest.err conftest.$ac_ext
  4291. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4292. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4293. # So? What about this header?
  4294. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4295. yes:no: )
  4296. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4297. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4298. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4299. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4300. ac_header_preproc=yes
  4301. ;;
  4302. no:yes:* )
  4303. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4304. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4305. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4306. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4307. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4308. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4309. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4310. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4311. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4312. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4313. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4314. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4315. ;;
  4316. esac
  4317. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4318. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4319. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4320. echo $ECHO_N "(cached) $ECHO_C" >&6
  4321. else
  4322. eval "$as_ac_Header=\$ac_header_preproc"
  4323. fi
  4324. ac_res=`eval echo '${'$as_ac_Header'}'`
  4325. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4326. echo "${ECHO_T}$ac_res" >&6; }
  4327. fi
  4328. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4329. cat >>confdefs.h <<_ACEOF
  4330. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4331. _ACEOF
  4332. fi
  4333. done
  4334. { echo "$as_me:$LINENO: checking for nl_langinfo" >&5
  4335. echo $ECHO_N "checking for nl_langinfo... $ECHO_C" >&6; }
  4336. if test "${ac_cv_func_nl_langinfo+set}" = set; then
  4337. echo $ECHO_N "(cached) $ECHO_C" >&6
  4338. else
  4339. cat >conftest.$ac_ext <<_ACEOF
  4340. /* confdefs.h. */
  4341. _ACEOF
  4342. cat confdefs.h >>conftest.$ac_ext
  4343. cat >>conftest.$ac_ext <<_ACEOF
  4344. /* end confdefs.h. */
  4345. /* Define nl_langinfo to an innocuous variant, in case <limits.h> declares nl_langinfo.
  4346. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4347. #define nl_langinfo innocuous_nl_langinfo
  4348. /* System header to define __stub macros and hopefully few prototypes,
  4349. which can conflict with char nl_langinfo (); below.
  4350. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4351. <limits.h> exists even on freestanding compilers. */
  4352. #ifdef __STDC__
  4353. # include <limits.h>
  4354. #else
  4355. # include <assert.h>
  4356. #endif
  4357. #undef nl_langinfo
  4358. /* Override any GCC internal prototype to avoid an error.
  4359. Use char because int might match the return type of a GCC
  4360. builtin and then its argument prototype would still apply. */
  4361. #ifdef __cplusplus
  4362. extern "C"
  4363. #endif
  4364. char nl_langinfo ();
  4365. /* The GNU C library defines this for functions which it implements
  4366. to always fail with ENOSYS. Some functions are actually named
  4367. something starting with __ and the normal name is an alias. */
  4368. #if defined __stub_nl_langinfo || defined __stub___nl_langinfo
  4369. choke me
  4370. #endif
  4371. int
  4372. main ()
  4373. {
  4374. return nl_langinfo ();
  4375. ;
  4376. return 0;
  4377. }
  4378. _ACEOF
  4379. rm -f conftest.$ac_objext conftest$ac_exeext
  4380. if { (ac_try="$ac_link"
  4381. case "(($ac_try" in
  4382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4383. *) ac_try_echo=$ac_try;;
  4384. esac
  4385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4386. (eval "$ac_link") 2>conftest.er1
  4387. ac_status=$?
  4388. grep -v '^ *+' conftest.er1 >conftest.err
  4389. rm -f conftest.er1
  4390. cat conftest.err >&5
  4391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); } && {
  4393. test -z "$ac_c_werror_flag" ||
  4394. test ! -s conftest.err
  4395. } && test -s conftest$ac_exeext &&
  4396. $as_test_x conftest$ac_exeext; then
  4397. ac_cv_func_nl_langinfo=yes
  4398. else
  4399. echo "$as_me: failed program was:" >&5
  4400. sed 's/^/| /' conftest.$ac_ext >&5
  4401. ac_cv_func_nl_langinfo=no
  4402. fi
  4403. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4404. conftest$ac_exeext conftest.$ac_ext
  4405. fi
  4406. { echo "$as_me:$LINENO: result: $ac_cv_func_nl_langinfo" >&5
  4407. echo "${ECHO_T}$ac_cv_func_nl_langinfo" >&6; }
  4408. if test $ac_cv_func_nl_langinfo = yes; then
  4409. :
  4410. else
  4411. case " $LIBOBJS " in
  4412. *" c/fake/langinfo.$ac_objext "* ) ;;
  4413. *) LIBOBJS="$LIBOBJS c/fake/langinfo.$ac_objext"
  4414. ;;
  4415. esac
  4416. fi
  4417. for ac_func in gettimeofday ftime nlist select setitimer sigaction
  4418. do
  4419. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4420. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4421. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4422. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4423. echo $ECHO_N "(cached) $ECHO_C" >&6
  4424. else
  4425. cat >conftest.$ac_ext <<_ACEOF
  4426. /* confdefs.h. */
  4427. _ACEOF
  4428. cat confdefs.h >>conftest.$ac_ext
  4429. cat >>conftest.$ac_ext <<_ACEOF
  4430. /* end confdefs.h. */
  4431. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4432. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4433. #define $ac_func innocuous_$ac_func
  4434. /* System header to define __stub macros and hopefully few prototypes,
  4435. which can conflict with char $ac_func (); below.
  4436. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4437. <limits.h> exists even on freestanding compilers. */
  4438. #ifdef __STDC__
  4439. # include <limits.h>
  4440. #else
  4441. # include <assert.h>
  4442. #endif
  4443. #undef $ac_func
  4444. /* Override any GCC internal prototype to avoid an error.
  4445. Use char because int might match the return type of a GCC
  4446. builtin and then its argument prototype would still apply. */
  4447. #ifdef __cplusplus
  4448. extern "C"
  4449. #endif
  4450. char $ac_func ();
  4451. /* The GNU C library defines this for functions which it implements
  4452. to always fail with ENOSYS. Some functions are actually named
  4453. something starting with __ and the normal name is an alias. */
  4454. #if defined __stub_$ac_func || defined __stub___$ac_func
  4455. choke me
  4456. #endif
  4457. int
  4458. main ()
  4459. {
  4460. return $ac_func ();
  4461. ;
  4462. return 0;
  4463. }
  4464. _ACEOF
  4465. rm -f conftest.$ac_objext conftest$ac_exeext
  4466. if { (ac_try="$ac_link"
  4467. case "(($ac_try" in
  4468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4469. *) ac_try_echo=$ac_try;;
  4470. esac
  4471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4472. (eval "$ac_link") 2>conftest.er1
  4473. ac_status=$?
  4474. grep -v '^ *+' conftest.er1 >conftest.err
  4475. rm -f conftest.er1
  4476. cat conftest.err >&5
  4477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4478. (exit $ac_status); } && {
  4479. test -z "$ac_c_werror_flag" ||
  4480. test ! -s conftest.err
  4481. } && test -s conftest$ac_exeext &&
  4482. $as_test_x conftest$ac_exeext; then
  4483. eval "$as_ac_var=yes"
  4484. else
  4485. echo "$as_me: failed program was:" >&5
  4486. sed 's/^/| /' conftest.$ac_ext >&5
  4487. eval "$as_ac_var=no"
  4488. fi
  4489. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4490. conftest$ac_exeext conftest.$ac_ext
  4491. fi
  4492. ac_res=`eval echo '${'$as_ac_var'}'`
  4493. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4494. echo "${ECHO_T}$ac_res" >&6; }
  4495. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4496. cat >>confdefs.h <<_ACEOF
  4497. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4498. _ACEOF
  4499. fi
  4500. done
  4501. { echo "$as_me:$LINENO: checking for dlopen" >&5
  4502. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  4503. if test "${ac_cv_func_dlopen+set}" = set; then
  4504. echo $ECHO_N "(cached) $ECHO_C" >&6
  4505. else
  4506. cat >conftest.$ac_ext <<_ACEOF
  4507. /* confdefs.h. */
  4508. _ACEOF
  4509. cat confdefs.h >>conftest.$ac_ext
  4510. cat >>conftest.$ac_ext <<_ACEOF
  4511. /* end confdefs.h. */
  4512. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  4513. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4514. #define dlopen innocuous_dlopen
  4515. /* System header to define __stub macros and hopefully few prototypes,
  4516. which can conflict with char dlopen (); below.
  4517. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4518. <limits.h> exists even on freestanding compilers. */
  4519. #ifdef __STDC__
  4520. # include <limits.h>
  4521. #else
  4522. # include <assert.h>
  4523. #endif
  4524. #undef dlopen
  4525. /* Override any GCC internal prototype to avoid an error.
  4526. Use char because int might match the return type of a GCC
  4527. builtin and then its argument prototype would still apply. */
  4528. #ifdef __cplusplus
  4529. extern "C"
  4530. #endif
  4531. char dlopen ();
  4532. /* The GNU C library defines this for functions which it implements
  4533. to always fail with ENOSYS. Some functions are actually named
  4534. something starting with __ and the normal name is an alias. */
  4535. #if defined __stub_dlopen || defined __stub___dlopen
  4536. choke me
  4537. #endif
  4538. int
  4539. main ()
  4540. {
  4541. return dlopen ();
  4542. ;
  4543. return 0;
  4544. }
  4545. _ACEOF
  4546. rm -f conftest.$ac_objext conftest$ac_exeext
  4547. if { (ac_try="$ac_link"
  4548. case "(($ac_try" in
  4549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4550. *) ac_try_echo=$ac_try;;
  4551. esac
  4552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4553. (eval "$ac_link") 2>conftest.er1
  4554. ac_status=$?
  4555. grep -v '^ *+' conftest.er1 >conftest.err
  4556. rm -f conftest.er1
  4557. cat conftest.err >&5
  4558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4559. (exit $ac_status); } && {
  4560. test -z "$ac_c_werror_flag" ||
  4561. test ! -s conftest.err
  4562. } && test -s conftest$ac_exeext &&
  4563. $as_test_x conftest$ac_exeext; then
  4564. ac_cv_func_dlopen=yes
  4565. else
  4566. echo "$as_me: failed program was:" >&5
  4567. sed 's/^/| /' conftest.$ac_ext >&5
  4568. ac_cv_func_dlopen=no
  4569. fi
  4570. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4571. conftest$ac_exeext conftest.$ac_ext
  4572. fi
  4573. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  4574. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  4575. if test $ac_cv_func_dlopen = yes; then
  4576. cat >>confdefs.h <<\_ACEOF
  4577. #define HAVE_DLOPEN 1
  4578. _ACEOF
  4579. else
  4580. { echo "$as_me:$LINENO: checking for nlist" >&5
  4581. echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
  4582. if test "${ac_cv_func_nlist+set}" = set; then
  4583. echo $ECHO_N "(cached) $ECHO_C" >&6
  4584. else
  4585. cat >conftest.$ac_ext <<_ACEOF
  4586. /* confdefs.h. */
  4587. _ACEOF
  4588. cat confdefs.h >>conftest.$ac_ext
  4589. cat >>conftest.$ac_ext <<_ACEOF
  4590. /* end confdefs.h. */
  4591. /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
  4592. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4593. #define nlist innocuous_nlist
  4594. /* System header to define __stub macros and hopefully few prototypes,
  4595. which can conflict with char nlist (); below.
  4596. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4597. <limits.h> exists even on freestanding compilers. */
  4598. #ifdef __STDC__
  4599. # include <limits.h>
  4600. #else
  4601. # include <assert.h>
  4602. #endif
  4603. #undef nlist
  4604. /* Override any GCC internal prototype to avoid an error.
  4605. Use char because int might match the return type of a GCC
  4606. builtin and then its argument prototype would still apply. */
  4607. #ifdef __cplusplus
  4608. extern "C"
  4609. #endif
  4610. char nlist ();
  4611. /* The GNU C library defines this for functions which it implements
  4612. to always fail with ENOSYS. Some functions are actually named
  4613. something starting with __ and the normal name is an alias. */
  4614. #if defined __stub_nlist || defined __stub___nlist
  4615. choke me
  4616. #endif
  4617. int
  4618. main ()
  4619. {
  4620. return nlist ();
  4621. ;
  4622. return 0;
  4623. }
  4624. _ACEOF
  4625. rm -f conftest.$ac_objext conftest$ac_exeext
  4626. if { (ac_try="$ac_link"
  4627. case "(($ac_try" in
  4628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4629. *) ac_try_echo=$ac_try;;
  4630. esac
  4631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4632. (eval "$ac_link") 2>conftest.er1
  4633. ac_status=$?
  4634. grep -v '^ *+' conftest.er1 >conftest.err
  4635. rm -f conftest.er1
  4636. cat conftest.err >&5
  4637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4638. (exit $ac_status); } && {
  4639. test -z "$ac_c_werror_flag" ||
  4640. test ! -s conftest.err
  4641. } && test -s conftest$ac_exeext &&
  4642. $as_test_x conftest$ac_exeext; then
  4643. ac_cv_func_nlist=yes
  4644. else
  4645. echo "$as_me: failed program was:" >&5
  4646. sed 's/^/| /' conftest.$ac_ext >&5
  4647. ac_cv_func_nlist=no
  4648. fi
  4649. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4650. conftest$ac_exeext conftest.$ac_ext
  4651. fi
  4652. { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
  4653. echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
  4654. if test $ac_cv_func_nlist = yes; then
  4655. case " $LIBOBJS " in
  4656. *" c/fake/libdl1.$ac_objext "* ) ;;
  4657. *) LIBOBJS="$LIBOBJS c/fake/libdl1.$ac_objext"
  4658. ;;
  4659. esac
  4660. else
  4661. case " $LIBOBJS " in
  4662. *" c/fake/libdl2.$ac_objext "* ) ;;
  4663. *) LIBOBJS="$LIBOBJS c/fake/libdl2.$ac_objext"
  4664. ;;
  4665. esac
  4666. fi
  4667. fi
  4668. for ac_func in socket chroot
  4669. do
  4670. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4671. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4672. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4673. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4674. echo $ECHO_N "(cached) $ECHO_C" >&6
  4675. else
  4676. cat >conftest.$ac_ext <<_ACEOF
  4677. /* confdefs.h. */
  4678. _ACEOF
  4679. cat confdefs.h >>conftest.$ac_ext
  4680. cat >>conftest.$ac_ext <<_ACEOF
  4681. /* end confdefs.h. */
  4682. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4683. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4684. #define $ac_func innocuous_$ac_func
  4685. /* System header to define __stub macros and hopefully few prototypes,
  4686. which can conflict with char $ac_func (); below.
  4687. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4688. <limits.h> exists even on freestanding compilers. */
  4689. #ifdef __STDC__
  4690. # include <limits.h>
  4691. #else
  4692. # include <assert.h>
  4693. #endif
  4694. #undef $ac_func
  4695. /* Override any GCC internal prototype to avoid an error.
  4696. Use char because int might match the return type of a GCC
  4697. builtin and then its argument prototype would still apply. */
  4698. #ifdef __cplusplus
  4699. extern "C"
  4700. #endif
  4701. char $ac_func ();
  4702. /* The GNU C library defines this for functions which it implements
  4703. to always fail with ENOSYS. Some functions are actually named
  4704. something starting with __ and the normal name is an alias. */
  4705. #if defined __stub_$ac_func || defined __stub___$ac_func
  4706. choke me
  4707. #endif
  4708. int
  4709. main ()
  4710. {
  4711. return $ac_func ();
  4712. ;
  4713. return 0;
  4714. }
  4715. _ACEOF
  4716. rm -f conftest.$ac_objext conftest$ac_exeext
  4717. if { (ac_try="$ac_link"
  4718. case "(($ac_try" in
  4719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4720. *) ac_try_echo=$ac_try;;
  4721. esac
  4722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4723. (eval "$ac_link") 2>conftest.er1
  4724. ac_status=$?
  4725. grep -v '^ *+' conftest.er1 >conftest.err
  4726. rm -f conftest.er1
  4727. cat conftest.err >&5
  4728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4729. (exit $ac_status); } && {
  4730. test -z "$ac_c_werror_flag" ||
  4731. test ! -s conftest.err
  4732. } && test -s conftest$ac_exeext &&
  4733. $as_test_x conftest$ac_exeext; then
  4734. eval "$as_ac_var=yes"
  4735. else
  4736. echo "$as_me: failed program was:" >&5
  4737. sed 's/^/| /' conftest.$ac_ext >&5
  4738. eval "$as_ac_var=no"
  4739. fi
  4740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4741. conftest$ac_exeext conftest.$ac_ext
  4742. fi
  4743. ac_res=`eval echo '${'$as_ac_var'}'`
  4744. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4745. echo "${ECHO_T}$ac_res" >&6; }
  4746. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4747. cat >>confdefs.h <<_ACEOF
  4748. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4749. _ACEOF
  4750. fi
  4751. done
  4752. { echo "$as_me:$LINENO: checking for strerror" >&5
  4753. echo $ECHO_N "checking for strerror... $ECHO_C" >&6; }
  4754. if test "${ac_cv_func_strerror+set}" = set; then
  4755. echo $ECHO_N "(cached) $ECHO_C" >&6
  4756. else
  4757. cat >conftest.$ac_ext <<_ACEOF
  4758. /* confdefs.h. */
  4759. _ACEOF
  4760. cat confdefs.h >>conftest.$ac_ext
  4761. cat >>conftest.$ac_ext <<_ACEOF
  4762. /* end confdefs.h. */
  4763. /* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
  4764. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4765. #define strerror innocuous_strerror
  4766. /* System header to define __stub macros and hopefully few prototypes,
  4767. which can conflict with char strerror (); below.
  4768. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4769. <limits.h> exists even on freestanding compilers. */
  4770. #ifdef __STDC__
  4771. # include <limits.h>
  4772. #else
  4773. # include <assert.h>
  4774. #endif
  4775. #undef strerror
  4776. /* Override any GCC internal prototype to avoid an error.
  4777. Use char because int might match the return type of a GCC
  4778. builtin and then its argument prototype would still apply. */
  4779. #ifdef __cplusplus
  4780. extern "C"
  4781. #endif
  4782. char strerror ();
  4783. /* The GNU C library defines this for functions which it implements
  4784. to always fail with ENOSYS. Some functions are actually named
  4785. something starting with __ and the normal name is an alias. */
  4786. #if defined __stub_strerror || defined __stub___strerror
  4787. choke me
  4788. #endif
  4789. int
  4790. main ()
  4791. {
  4792. return strerror ();
  4793. ;
  4794. return 0;
  4795. }
  4796. _ACEOF
  4797. rm -f conftest.$ac_objext conftest$ac_exeext
  4798. if { (ac_try="$ac_link"
  4799. case "(($ac_try" in
  4800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4801. *) ac_try_echo=$ac_try;;
  4802. esac
  4803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4804. (eval "$ac_link") 2>conftest.er1
  4805. ac_status=$?
  4806. grep -v '^ *+' conftest.er1 >conftest.err
  4807. rm -f conftest.er1
  4808. cat conftest.err >&5
  4809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4810. (exit $ac_status); } && {
  4811. test -z "$ac_c_werror_flag" ||
  4812. test ! -s conftest.err
  4813. } && test -s conftest$ac_exeext &&
  4814. $as_test_x conftest$ac_exeext; then
  4815. ac_cv_func_strerror=yes
  4816. else
  4817. echo "$as_me: failed program was:" >&5
  4818. sed 's/^/| /' conftest.$ac_ext >&5
  4819. ac_cv_func_strerror=no
  4820. fi
  4821. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4822. conftest$ac_exeext conftest.$ac_ext
  4823. fi
  4824. { echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
  4825. echo "${ECHO_T}$ac_cv_func_strerror" >&6; }
  4826. if test $ac_cv_func_strerror = yes; then
  4827. cat >>confdefs.h <<\_ACEOF
  4828. #define HAVE_STRERROR 1
  4829. _ACEOF
  4830. else
  4831. case " $LIBOBJS " in
  4832. *" c/fake/strerror.o.$ac_objext "* ) ;;
  4833. *) LIBOBJS="$LIBOBJS c/fake/strerror.o.$ac_objext"
  4834. ;;
  4835. esac
  4836. fi
  4837. { echo "$as_me:$LINENO: checking environ" >&5
  4838. echo $ECHO_N "checking environ... $ECHO_C" >&6; }
  4839. cat >conftest.$ac_ext <<_ACEOF
  4840. /* confdefs.h. */
  4841. _ACEOF
  4842. cat confdefs.h >>conftest.$ac_ext
  4843. cat >>conftest.$ac_ext <<_ACEOF
  4844. /* end confdefs.h. */
  4845. int
  4846. main ()
  4847. {
  4848. extern char **environ;
  4849. if (environ)
  4850. return 0;
  4851. else
  4852. return 1;
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. rm -f conftest.$ac_objext conftest$ac_exeext
  4858. if { (ac_try="$ac_link"
  4859. case "(($ac_try" in
  4860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4861. *) ac_try_echo=$ac_try;;
  4862. esac
  4863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4864. (eval "$ac_link") 2>conftest.er1
  4865. ac_status=$?
  4866. grep -v '^ *+' conftest.er1 >conftest.err
  4867. rm -f conftest.er1
  4868. cat conftest.err >&5
  4869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4870. (exit $ac_status); } && {
  4871. test -z "$ac_c_werror_flag" ||
  4872. test ! -s conftest.err
  4873. } && test -s conftest$ac_exeext &&
  4874. $as_test_x conftest$ac_exeext; then
  4875. cat >>confdefs.h <<\_ACEOF
  4876. #define ENVIRON_NAME environ
  4877. _ACEOF
  4878. { echo "$as_me:$LINENO: result: using environ" >&5
  4879. echo "${ECHO_T}using environ" >&6; }
  4880. else
  4881. echo "$as_me: failed program was:" >&5
  4882. sed 's/^/| /' conftest.$ac_ext >&5
  4883. cat >conftest.$ac_ext <<_ACEOF
  4884. /* confdefs.h. */
  4885. _ACEOF
  4886. cat confdefs.h >>conftest.$ac_ext
  4887. cat >>conftest.$ac_ext <<_ACEOF
  4888. /* end confdefs.h. */
  4889. int
  4890. main ()
  4891. {
  4892. extern char **__environ;
  4893. if (__environ)
  4894. return 0;
  4895. else
  4896. return 1;
  4897. ;
  4898. return 0;
  4899. }
  4900. _ACEOF
  4901. rm -f conftest.$ac_objext conftest$ac_exeext
  4902. if { (ac_try="$ac_link"
  4903. case "(($ac_try" in
  4904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4905. *) ac_try_echo=$ac_try;;
  4906. esac
  4907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4908. (eval "$ac_link") 2>conftest.er1
  4909. ac_status=$?
  4910. grep -v '^ *+' conftest.er1 >conftest.err
  4911. rm -f conftest.er1
  4912. cat conftest.err >&5
  4913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4914. (exit $ac_status); } && {
  4915. test -z "$ac_c_werror_flag" ||
  4916. test ! -s conftest.err
  4917. } && test -s conftest$ac_exeext &&
  4918. $as_test_x conftest$ac_exeext; then
  4919. cat >>confdefs.h <<\_ACEOF
  4920. #define ENVIRON_NAME __environ
  4921. _ACEOF
  4922. { echo "$as_me:$LINENO: result: using __environ" >&5
  4923. echo "${ECHO_T}using __environ" >&6; }
  4924. else
  4925. echo "$as_me: failed program was:" >&5
  4926. sed 's/^/| /' conftest.$ac_ext >&5
  4927. { echo "$as_me:$LINENO: WARNING: no environ variable found" >&5
  4928. echo "$as_me: WARNING: no environ variable found" >&2;}
  4929. case " $LIBOBJS " in
  4930. *" c/fake/environ.o.$ac_objext "* ) ;;
  4931. *) LIBOBJS="$LIBOBJS c/fake/environ.o.$ac_objext"
  4932. ;;
  4933. esac
  4934. fi
  4935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4936. conftest$ac_exeext conftest.$ac_ext
  4937. fi
  4938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4939. conftest$ac_exeext conftest.$ac_ext
  4940. { echo "$as_me:$LINENO: checking n_name" >&5
  4941. echo $ECHO_N "checking n_name... $ECHO_C" >&6; }
  4942. cat >conftest.$ac_ext <<_ACEOF
  4943. /* confdefs.h. */
  4944. _ACEOF
  4945. cat confdefs.h >>conftest.$ac_ext
  4946. cat >>conftest.$ac_ext <<_ACEOF
  4947. /* end confdefs.h. */
  4948. #include <nlist.h>
  4949. int
  4950. main ()
  4951. {
  4952. struct nlist name_list;
  4953. name_list.n_name = "foo";
  4954. ;
  4955. return 0;
  4956. }
  4957. _ACEOF
  4958. rm -f conftest.$ac_objext conftest$ac_exeext
  4959. if { (ac_try="$ac_link"
  4960. case "(($ac_try" in
  4961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4962. *) ac_try_echo=$ac_try;;
  4963. esac
  4964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4965. (eval "$ac_link") 2>conftest.er1
  4966. ac_status=$?
  4967. grep -v '^ *+' conftest.er1 >conftest.err
  4968. rm -f conftest.er1
  4969. cat conftest.err >&5
  4970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4971. (exit $ac_status); } && {
  4972. test -z "$ac_c_werror_flag" ||
  4973. test ! -s conftest.err
  4974. } && test -s conftest$ac_exeext &&
  4975. $as_test_x conftest$ac_exeext; then
  4976. cat >>confdefs.h <<\_ACEOF
  4977. #define NLIST_HAS_N_NAME 1
  4978. _ACEOF
  4979. { echo "$as_me:$LINENO: result: yes" >&5
  4980. echo "${ECHO_T}yes" >&6; }
  4981. else
  4982. echo "$as_me: failed program was:" >&5
  4983. sed 's/^/| /' conftest.$ac_ext >&5
  4984. { echo "$as_me:$LINENO: result: no" >&5
  4985. echo "${ECHO_T}no" >&6; }
  4986. fi
  4987. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4988. conftest$ac_exeext conftest.$ac_ext
  4989. { echo "$as_me:$LINENO: checking __NEXT__" >&5
  4990. echo $ECHO_N "checking __NEXT__... $ECHO_C" >&6; }
  4991. cat >conftest.$ac_ext <<_ACEOF
  4992. /* confdefs.h. */
  4993. _ACEOF
  4994. cat confdefs.h >>conftest.$ac_ext
  4995. cat >>conftest.$ac_ext <<_ACEOF
  4996. /* end confdefs.h. */
  4997. int
  4998. main ()
  4999. {
  5000. #ifdef __NeXT__
  5001. return 0;
  5002. #else
  5003. fail
  5004. #endif
  5005. ;
  5006. return 0;
  5007. }
  5008. _ACEOF
  5009. rm -f conftest.$ac_objext conftest$ac_exeext
  5010. if { (ac_try="$ac_link"
  5011. case "(($ac_try" in
  5012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5013. *) ac_try_echo=$ac_try;;
  5014. esac
  5015. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5016. (eval "$ac_link") 2>conftest.er1
  5017. ac_status=$?
  5018. grep -v '^ *+' conftest.er1 >conftest.err
  5019. rm -f conftest.er1
  5020. cat conftest.err >&5
  5021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5022. (exit $ac_status); } && {
  5023. test -z "$ac_c_werror_flag" ||
  5024. test ! -s conftest.err
  5025. } && test -s conftest$ac_exeext &&
  5026. $as_test_x conftest$ac_exeext; then
  5027. CC="$CC -posix"
  5028. cat >>confdefs.h <<\_ACEOF
  5029. #define HAVE_SIGACTION 1
  5030. _ACEOF
  5031. { echo "$as_me:$LINENO: result: yes" >&5
  5032. echo "${ECHO_T}yes" >&6; }
  5033. else
  5034. echo "$as_me: failed program was:" >&5
  5035. sed 's/^/| /' conftest.$ac_ext >&5
  5036. { echo "$as_me:$LINENO: result: no" >&5
  5037. echo "${ECHO_T}no" >&6; }
  5038. fi
  5039. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5040. conftest$ac_exeext conftest.$ac_ext
  5041. { echo "$as_me:$LINENO: checking underscore before symbols" >&5
  5042. echo $ECHO_N "checking underscore before symbols... $ECHO_C" >&6; }
  5043. echo 'main() { return 0; } fnord() {}' >conftest.c
  5044. if ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c ${LIBS} &&
  5045. nm a.out | grep _fnord >/dev/null; then
  5046. { echo "$as_me:$LINENO: result: yes" >&5
  5047. echo "${ECHO_T}yes" >&6; }
  5048. cat >>confdefs.h <<\_ACEOF
  5049. #define USCORE 1
  5050. _ACEOF
  5051. else
  5052. { echo "$as_me:$LINENO: result: no" >&5
  5053. echo "${ECHO_T}no" >&6; }
  5054. fi
  5055. rm -f conftest.c a.out
  5056. { echo "$as_me:$LINENO: checking link with -rdynamic" >&5
  5057. echo $ECHO_N "checking link with -rdynamic... $ECHO_C" >&6; }
  5058. cat >conftest.$ac_ext <<_ACEOF
  5059. /* confdefs.h. */
  5060. _ACEOF
  5061. cat confdefs.h >>conftest.$ac_ext
  5062. cat >>conftest.$ac_ext <<_ACEOF
  5063. /* end confdefs.h. */
  5064. int
  5065. main ()
  5066. {
  5067. #if (defined(__linux__) || defined(__FreeBSD__)) && defined(__ELF__)
  5068. this must not compile
  5069. #endif
  5070. ;
  5071. return 0;
  5072. }
  5073. _ACEOF
  5074. rm -f conftest.$ac_objext
  5075. if { (ac_try="$ac_compile"
  5076. case "(($ac_try" in
  5077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5078. *) ac_try_echo=$ac_try;;
  5079. esac
  5080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5081. (eval "$ac_compile") 2>conftest.er1
  5082. ac_status=$?
  5083. grep -v '^ *+' conftest.er1 >conftest.err
  5084. rm -f conftest.er1
  5085. cat conftest.err >&5
  5086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5087. (exit $ac_status); } && {
  5088. test -z "$ac_c_werror_flag" ||
  5089. test ! -s conftest.err
  5090. } && test -s conftest.$ac_objext; then
  5091. { echo "$as_me:$LINENO: result: no" >&5
  5092. echo "${ECHO_T}no" >&6; }
  5093. else
  5094. echo "$as_me: failed program was:" >&5
  5095. sed 's/^/| /' conftest.$ac_ext >&5
  5096. { echo "$as_me:$LINENO: result: yes" >&5
  5097. echo "${ECHO_T}yes" >&6; }
  5098. LDFLAGS="$LDFLAGS -rdynamic"
  5099. fi
  5100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5101. if test "$GCC" = "yes"; then
  5102. { echo "$as_me:$LINENO: checking -munaligned-doubles" >&5
  5103. echo $ECHO_N "checking -munaligned-doubles... $ECHO_C" >&6; }
  5104. oldCFLAGS="$CFLAGS"
  5105. CFLAGS="$CFLAGS -munaligned-doubles"
  5106. if test "$cross_compiling" = yes; then
  5107. { echo "$as_me:$LINENO: result: no" >&5
  5108. echo "${ECHO_T}no" >&6; }
  5109. CFLAGS="$oldCFLAGS"
  5110. else
  5111. cat >conftest.$ac_ext <<_ACEOF
  5112. /* confdefs.h. */
  5113. _ACEOF
  5114. cat confdefs.h >>conftest.$ac_ext
  5115. cat >>conftest.$ac_ext <<_ACEOF
  5116. /* end confdefs.h. */
  5117. int main() { return 0;}
  5118. _ACEOF
  5119. rm -f conftest$ac_exeext
  5120. if { (ac_try="$ac_link"
  5121. case "(($ac_try" in
  5122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5123. *) ac_try_echo=$ac_try;;
  5124. esac
  5125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5126. (eval "$ac_link") 2>&5
  5127. ac_status=$?
  5128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5129. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5130. { (case "(($ac_try" in
  5131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5132. *) ac_try_echo=$ac_try;;
  5133. esac
  5134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5135. (eval "$ac_try") 2>&5
  5136. ac_status=$?
  5137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5138. (exit $ac_status); }; }; then
  5139. { echo "$as_me:$LINENO: result: yes" >&5
  5140. echo "${ECHO_T}yes" >&6; }
  5141. else
  5142. echo "$as_me: program exited with status $ac_status" >&5
  5143. echo "$as_me: failed program was:" >&5
  5144. sed 's/^/| /' conftest.$ac_ext >&5
  5145. ( exit $ac_status )
  5146. { echo "$as_me:$LINENO: result: no" >&5
  5147. echo "${ECHO_T}no" >&6; }
  5148. CFLAGS="$oldCFLAGS"
  5149. fi
  5150. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5151. fi
  5152. fi
  5153. { echo "$as_me:$LINENO: checking IEEE floating-point endianness" >&5
  5154. echo $ECHO_N "checking IEEE floating-point endianness... $ECHO_C" >&6; }
  5155. if test "$option_enable_universal_binary" = "yes"
  5156. then
  5157. { echo "$as_me:$LINENO: result: building Universal Binary; using compiler defined macros instead" >&5
  5158. echo "${ECHO_T}building Universal Binary; using compiler defined macros instead" >&6; }
  5159. else
  5160. if test "$cross_compiling" = yes; then
  5161. ieee_endianness="least first"
  5162. else
  5163. cat >conftest.$ac_ext <<_ACEOF
  5164. /* confdefs.h. */
  5165. _ACEOF
  5166. cat confdefs.h >>conftest.$ac_ext
  5167. cat >>conftest.$ac_ext <<_ACEOF
  5168. /* end confdefs.h. */
  5169. #include <stdio.h>
  5170. typedef unsigned long word32_t;
  5171. typedef union { double d; word32_t word[2]; } double_overlay;
  5172. #define DOUBLE_WORD0(x) ((double_overlay*)&(x))->word[0]
  5173. #define DOUBLE_WORD1(x) ((double_overlay*)&(x))->word[1]
  5174. int
  5175. main(void)
  5176. {
  5177. double n = 0.3;
  5178. /* least significant byte first */
  5179. if ((DOUBLE_WORD0(n) == 0x33333333) && (DOUBLE_WORD1(n) == 0x3fd33333))
  5180. return 0;
  5181. /* most significant byte first */
  5182. else if ((DOUBLE_WORD1(n) == 0x33333333) && (DOUBLE_WORD0(n) == 0x3fd33333))
  5183. return 1;
  5184. else {
  5185. fprintf(stderr, "WARNING: unknown IEEE format; assuming IEEE with least significant byte first\n");
  5186. return 0;
  5187. }
  5188. }
  5189. _ACEOF
  5190. rm -f conftest$ac_exeext
  5191. if { (ac_try="$ac_link"
  5192. case "(($ac_try" in
  5193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5194. *) ac_try_echo=$ac_try;;
  5195. esac
  5196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5197. (eval "$ac_link") 2>&5
  5198. ac_status=$?
  5199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5200. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5201. { (case "(($ac_try" in
  5202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5203. *) ac_try_echo=$ac_try;;
  5204. esac
  5205. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5206. (eval "$ac_try") 2>&5
  5207. ac_status=$?
  5208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5209. (exit $ac_status); }; }; then
  5210. ieee_endianness="least first"
  5211. else
  5212. echo "$as_me: program exited with status $ac_status" >&5
  5213. echo "$as_me: failed program was:" >&5
  5214. sed 's/^/| /' conftest.$ac_ext >&5
  5215. ( exit $ac_status )
  5216. ieee_endianness="most first"
  5217. fi
  5218. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5219. fi
  5220. { echo "$as_me:$LINENO: result: $ieee_endianness" >&5
  5221. echo "${ECHO_T}$ieee_endianness" >&6; }
  5222. if test "$ieee_endianness" = "most first"; then
  5223. cat >>confdefs.h <<\_ACEOF
  5224. #define IEEE_MOST_FIRST 1
  5225. _ACEOF
  5226. fi
  5227. fi
  5228. ac_config_files="$ac_config_files Makefile"
  5229. cat >confcache <<\_ACEOF
  5230. # This file is a shell script that caches the results of configure
  5231. # tests run on this system so they can be shared between configure
  5232. # scripts and configure runs, see configure's option --config-cache.
  5233. # It is not useful on other systems. If it contains results you don't
  5234. # want to keep, you may remove or edit it.
  5235. #
  5236. # config.status only pays attention to the cache file if you give it
  5237. # the --recheck option to rerun configure.
  5238. #
  5239. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5240. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5241. # following values.
  5242. _ACEOF
  5243. # The following way of writing the cache mishandles newlines in values,
  5244. # but we know of no workaround that is simple, portable, and efficient.
  5245. # So, we kill variables containing newlines.
  5246. # Ultrix sh set writes to stderr and can't be redirected directly,
  5247. # and sets the high bit in the cache file unless we assign to the vars.
  5248. (
  5249. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5250. eval ac_val=\$$ac_var
  5251. case $ac_val in #(
  5252. *${as_nl}*)
  5253. case $ac_var in #(
  5254. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5255. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5256. esac
  5257. case $ac_var in #(
  5258. _ | IFS | as_nl) ;; #(
  5259. *) $as_unset $ac_var ;;
  5260. esac ;;
  5261. esac
  5262. done
  5263. (set) 2>&1 |
  5264. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5265. *${as_nl}ac_space=\ *)
  5266. # `set' does not quote correctly, so add quotes (double-quote
  5267. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5268. sed -n \
  5269. "s/'/'\\\\''/g;
  5270. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5271. ;; #(
  5272. *)
  5273. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5274. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5275. ;;
  5276. esac |
  5277. sort
  5278. ) |
  5279. sed '
  5280. /^ac_cv_env_/b end
  5281. t clear
  5282. :clear
  5283. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5284. t end
  5285. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5286. :end' >>confcache
  5287. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5288. if test -w "$cache_file"; then
  5289. test "x$cache_file" != "x/dev/null" &&
  5290. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5291. echo "$as_me: updating cache $cache_file" >&6;}
  5292. cat confcache >$cache_file
  5293. else
  5294. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5295. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5296. fi
  5297. fi
  5298. rm -f confcache
  5299. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5300. # Let make expand exec_prefix.
  5301. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5302. DEFS=-DHAVE_CONFIG_H
  5303. ac_libobjs=
  5304. ac_ltlibobjs=
  5305. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5306. # 1. Remove the extension, and $U if already installed.
  5307. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  5308. ac_i=`echo "$ac_i" | sed "$ac_script"`
  5309. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  5310. # will be set to the directory where LIBOBJS objects are built.
  5311. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  5312. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  5313. done
  5314. LIBOBJS=$ac_libobjs
  5315. LTLIBOBJS=$ac_ltlibobjs
  5316. : ${CONFIG_STATUS=./config.status}
  5317. ac_clean_files_save=$ac_clean_files
  5318. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5319. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  5320. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5321. cat >$CONFIG_STATUS <<_ACEOF
  5322. #! $SHELL
  5323. # Generated by $as_me.
  5324. # Run this file to recreate the current configuration.
  5325. # Compiler output produced by configure, useful for debugging
  5326. # configure, is in config.log if it exists.
  5327. debug=false
  5328. ac_cs_recheck=false
  5329. ac_cs_silent=false
  5330. SHELL=\${CONFIG_SHELL-$SHELL}
  5331. _ACEOF
  5332. cat >>$CONFIG_STATUS <<\_ACEOF
  5333. ## --------------------- ##
  5334. ## M4sh Initialization. ##
  5335. ## --------------------- ##
  5336. # Be more Bourne compatible
  5337. DUALCASE=1; export DUALCASE # for MKS sh
  5338. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5339. emulate sh
  5340. NULLCMD=:
  5341. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5342. # is contrary to our usage. Disable this feature.
  5343. alias -g '${1+"$@"}'='"$@"'
  5344. setopt NO_GLOB_SUBST
  5345. else
  5346. case `(set -o) 2>/dev/null` in
  5347. *posix*) set -o posix ;;
  5348. esac
  5349. fi
  5350. # PATH needs CR
  5351. # Avoid depending upon Character Ranges.
  5352. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5353. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5354. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5355. as_cr_digits='0123456789'
  5356. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5357. # The user is always right.
  5358. if test "${PATH_SEPARATOR+set}" != set; then
  5359. echo "#! /bin/sh" >conf$$.sh
  5360. echo "exit 0" >>conf$$.sh
  5361. chmod +x conf$$.sh
  5362. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5363. PATH_SEPARATOR=';'
  5364. else
  5365. PATH_SEPARATOR=:
  5366. fi
  5367. rm -f conf$$.sh
  5368. fi
  5369. # Support unset when possible.
  5370. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5371. as_unset=unset
  5372. else
  5373. as_unset=false
  5374. fi
  5375. # IFS
  5376. # We need space, tab and new line, in precisely that order. Quoting is
  5377. # there to prevent editors from complaining about space-tab.
  5378. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  5379. # splitting by setting IFS to empty value.)
  5380. as_nl='
  5381. '
  5382. IFS=" "" $as_nl"
  5383. # Find who we are. Look in the path if we contain no directory separator.
  5384. case $0 in
  5385. *[\\/]* ) as_myself=$0 ;;
  5386. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5387. for as_dir in $PATH
  5388. do
  5389. IFS=$as_save_IFS
  5390. test -z "$as_dir" && as_dir=.
  5391. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5392. done
  5393. IFS=$as_save_IFS
  5394. ;;
  5395. esac
  5396. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5397. # in which case we are not to be found in the path.
  5398. if test "x$as_myself" = x; then
  5399. as_myself=$0
  5400. fi
  5401. if test ! -f "$as_myself"; then
  5402. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  5403. { (exit 1); exit 1; }
  5404. fi
  5405. # Work around bugs in pre-3.0 UWIN ksh.
  5406. for as_var in ENV MAIL MAILPATH
  5407. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5408. done
  5409. PS1='$ '
  5410. PS2='> '
  5411. PS4='+ '
  5412. # NLS nuisances.
  5413. for as_var in \
  5414. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5415. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5416. LC_TELEPHONE LC_TIME
  5417. do
  5418. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5419. eval $as_var=C; export $as_var
  5420. else
  5421. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  5422. fi
  5423. done
  5424. # Required to use basename.
  5425. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5426. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5427. as_expr=expr
  5428. else
  5429. as_expr=false
  5430. fi
  5431. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  5432. as_basename=basename
  5433. else
  5434. as_basename=false
  5435. fi
  5436. # Name of the executable.
  5437. as_me=`$as_basename -- "$0" ||
  5438. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5439. X"$0" : 'X\(//\)$' \| \
  5440. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  5441. echo X/"$0" |
  5442. sed '/^.*\/\([^/][^/]*\)\/*$/{
  5443. s//\1/
  5444. q
  5445. }
  5446. /^X\/\(\/\/\)$/{
  5447. s//\1/
  5448. q
  5449. }
  5450. /^X\/\(\/\).*/{
  5451. s//\1/
  5452. q
  5453. }
  5454. s/.*/./; q'`
  5455. # CDPATH.
  5456. $as_unset CDPATH
  5457. as_lineno_1=$LINENO
  5458. as_lineno_2=$LINENO
  5459. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5460. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  5461. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5462. # uniformly replaced by the line number. The first 'sed' inserts a
  5463. # line-number line after each line using $LINENO; the second 'sed'
  5464. # does the real work. The second script uses 'N' to pair each
  5465. # line-number line with the line containing $LINENO, and appends
  5466. # trailing '-' during substitution so that $LINENO is not a special
  5467. # case at line end.
  5468. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5469. # scripts with optimization help from Paolo Bonzini. Blame Lee
  5470. # E. McMahon (1931-1989) for sed's syntax. :-)
  5471. sed -n '
  5472. p
  5473. /[$]LINENO/=
  5474. ' <$as_myself |
  5475. sed '
  5476. s/[$]LINENO.*/&-/
  5477. t lineno
  5478. b
  5479. :lineno
  5480. N
  5481. :loop
  5482. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  5483. t loop
  5484. s/-\n.*//
  5485. ' >$as_me.lineno &&
  5486. chmod +x "$as_me.lineno" ||
  5487. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  5488. { (exit 1); exit 1; }; }
  5489. # Don't try to exec as it changes $[0], causing all sort of problems
  5490. # (the dirname of $[0] is not the place where we might find the
  5491. # original and so on. Autoconf is especially sensitive to this).
  5492. . "./$as_me.lineno"
  5493. # Exit status is that of the last command.
  5494. exit
  5495. }
  5496. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  5497. as_dirname=dirname
  5498. else
  5499. as_dirname=false
  5500. fi
  5501. ECHO_C= ECHO_N= ECHO_T=
  5502. case `echo -n x` in
  5503. -n*)
  5504. case `echo 'x\c'` in
  5505. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  5506. *) ECHO_C='\c';;
  5507. esac;;
  5508. *)
  5509. ECHO_N='-n';;
  5510. esac
  5511. if expr a : '\(a\)' >/dev/null 2>&1 &&
  5512. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  5513. as_expr=expr
  5514. else
  5515. as_expr=false
  5516. fi
  5517. rm -f conf$$ conf$$.exe conf$$.file
  5518. if test -d conf$$.dir; then
  5519. rm -f conf$$.dir/conf$$.file
  5520. else
  5521. rm -f conf$$.dir
  5522. mkdir conf$$.dir
  5523. fi
  5524. echo >conf$$.file
  5525. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5526. as_ln_s='ln -s'
  5527. # ... but there are two gotchas:
  5528. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  5529. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  5530. # In both cases, we have to default to `cp -p'.
  5531. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  5532. as_ln_s='cp -p'
  5533. elif ln conf$$.file conf$$ 2>/dev/null; then
  5534. as_ln_s=ln
  5535. else
  5536. as_ln_s='cp -p'
  5537. fi
  5538. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  5539. rmdir conf$$.dir 2>/dev/null
  5540. if mkdir -p . 2>/dev/null; then
  5541. as_mkdir_p=:
  5542. else
  5543. test -d ./-p && rmdir ./-p
  5544. as_mkdir_p=false
  5545. fi
  5546. if test -x / >/dev/null 2>&1; then
  5547. as_test_x='test -x'
  5548. else
  5549. if ls -dL / >/dev/null 2>&1; then
  5550. as_ls_L_option=L
  5551. else
  5552. as_ls_L_option=
  5553. fi
  5554. as_test_x='
  5555. eval sh -c '\''
  5556. if test -d "$1"; then
  5557. test -d "$1/.";
  5558. else
  5559. case $1 in
  5560. -*)set "./$1";;
  5561. esac;
  5562. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  5563. ???[sx]*):;;*)false;;esac;fi
  5564. '\'' sh
  5565. '
  5566. fi
  5567. as_executable_p=$as_test_x
  5568. # Sed expression to map a string onto a valid CPP name.
  5569. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5570. # Sed expression to map a string onto a valid variable name.
  5571. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5572. exec 6>&1
  5573. # Save the log message, to keep $[0] and so on meaningful, and to
  5574. # report actual input values of CONFIG_FILES etc. instead of their
  5575. # values after options handling.
  5576. ac_log="
  5577. This file was extended by $as_me, which was
  5578. generated by GNU Autoconf 2.61. Invocation command line was
  5579. CONFIG_FILES = $CONFIG_FILES
  5580. CONFIG_HEADERS = $CONFIG_HEADERS
  5581. CONFIG_LINKS = $CONFIG_LINKS
  5582. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5583. $ $0 $@
  5584. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  5585. "
  5586. _ACEOF
  5587. cat >>$CONFIG_STATUS <<_ACEOF
  5588. # Files that config.status was made for.
  5589. config_files="$ac_config_files"
  5590. config_headers="$ac_config_headers"
  5591. _ACEOF
  5592. cat >>$CONFIG_STATUS <<\_ACEOF
  5593. ac_cs_usage="\
  5594. \`$as_me' instantiates files from templates according to the
  5595. current configuration.
  5596. Usage: $0 [OPTIONS] [FILE]...
  5597. -h, --help print this help, then exit
  5598. -V, --version print version number and configuration settings, then exit
  5599. -q, --quiet do not print progress messages
  5600. -d, --debug don't remove temporary files
  5601. --recheck update $as_me by reconfiguring in the same conditions
  5602. --file=FILE[:TEMPLATE]
  5603. instantiate the configuration file FILE
  5604. --header=FILE[:TEMPLATE]
  5605. instantiate the configuration header FILE
  5606. Configuration files:
  5607. $config_files
  5608. Configuration headers:
  5609. $config_headers
  5610. Report bugs to <bug-autoconf@gnu.org>."
  5611. _ACEOF
  5612. cat >>$CONFIG_STATUS <<_ACEOF
  5613. ac_cs_version="\\
  5614. config.status
  5615. configured by $0, generated by GNU Autoconf 2.61,
  5616. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  5617. Copyright (C) 2006 Free Software Foundation, Inc.
  5618. This config.status script is free software; the Free Software Foundation
  5619. gives unlimited permission to copy, distribute and modify it."
  5620. ac_pwd='$ac_pwd'
  5621. srcdir='$srcdir'
  5622. INSTALL='$INSTALL'
  5623. _ACEOF
  5624. cat >>$CONFIG_STATUS <<\_ACEOF
  5625. # If no file are specified by the user, then we need to provide default
  5626. # value. By we need to know if files were specified by the user.
  5627. ac_need_defaults=:
  5628. while test $# != 0
  5629. do
  5630. case $1 in
  5631. --*=*)
  5632. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  5633. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  5634. ac_shift=:
  5635. ;;
  5636. *)
  5637. ac_option=$1
  5638. ac_optarg=$2
  5639. ac_shift=shift
  5640. ;;
  5641. esac
  5642. case $ac_option in
  5643. # Handling of the options.
  5644. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5645. ac_cs_recheck=: ;;
  5646. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  5647. echo "$ac_cs_version"; exit ;;
  5648. --debug | --debu | --deb | --de | --d | -d )
  5649. debug=: ;;
  5650. --file | --fil | --fi | --f )
  5651. $ac_shift
  5652. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5653. ac_need_defaults=false;;
  5654. --header | --heade | --head | --hea )
  5655. $ac_shift
  5656. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5657. ac_need_defaults=false;;
  5658. --he | --h)
  5659. # Conflict between --help and --header
  5660. { echo "$as_me: error: ambiguous option: $1
  5661. Try \`$0 --help' for more information." >&2
  5662. { (exit 1); exit 1; }; };;
  5663. --help | --hel | -h )
  5664. echo "$ac_cs_usage"; exit ;;
  5665. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5666. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5667. ac_cs_silent=: ;;
  5668. # This is an error.
  5669. -*) { echo "$as_me: error: unrecognized option: $1
  5670. Try \`$0 --help' for more information." >&2
  5671. { (exit 1); exit 1; }; } ;;
  5672. *) ac_config_targets="$ac_config_targets $1"
  5673. ac_need_defaults=false ;;
  5674. esac
  5675. shift
  5676. done
  5677. ac_configure_extra_args=
  5678. if $ac_cs_silent; then
  5679. exec 6>/dev/null
  5680. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5681. fi
  5682. _ACEOF
  5683. cat >>$CONFIG_STATUS <<_ACEOF
  5684. if \$ac_cs_recheck; then
  5685. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5686. CONFIG_SHELL=$SHELL
  5687. export CONFIG_SHELL
  5688. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5689. fi
  5690. _ACEOF
  5691. cat >>$CONFIG_STATUS <<\_ACEOF
  5692. exec 5>>config.log
  5693. {
  5694. echo
  5695. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5696. ## Running $as_me. ##
  5697. _ASBOX
  5698. echo "$ac_log"
  5699. } >&5
  5700. _ACEOF
  5701. cat >>$CONFIG_STATUS <<_ACEOF
  5702. _ACEOF
  5703. cat >>$CONFIG_STATUS <<\_ACEOF
  5704. # Handling of arguments.
  5705. for ac_config_target in $ac_config_targets
  5706. do
  5707. case $ac_config_target in
  5708. "c/sysdep.h") CONFIG_HEADERS="$CONFIG_HEADERS c/sysdep.h" ;;
  5709. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5710. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5711. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5712. { (exit 1); exit 1; }; };;
  5713. esac
  5714. done
  5715. # If the user did not use the arguments to specify the items to instantiate,
  5716. # then the envvar interface is used. Set only those that are not.
  5717. # We use the long form for the default assignment because of an extremely
  5718. # bizarre bug on SunOS 4.1.3.
  5719. if $ac_need_defaults; then
  5720. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5721. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  5722. fi
  5723. # Have a temporary directory for convenience. Make it in the build tree
  5724. # simply because there is no reason against having it here, and in addition,
  5725. # creating and moving files from /tmp can sometimes cause problems.
  5726. # Hook for its removal unless debugging.
  5727. # Note that there is a small window in which the directory will not be cleaned:
  5728. # after its creation but before its name has been assigned to `$tmp'.
  5729. $debug ||
  5730. {
  5731. tmp=
  5732. trap 'exit_status=$?
  5733. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  5734. ' 0
  5735. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5736. }
  5737. # Create a (secure) tmp directory for tmp files.
  5738. {
  5739. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  5740. test -n "$tmp" && test -d "$tmp"
  5741. } ||
  5742. {
  5743. tmp=./conf$$-$RANDOM
  5744. (umask 077 && mkdir "$tmp")
  5745. } ||
  5746. {
  5747. echo "$me: cannot create a temporary directory in ." >&2
  5748. { (exit 1); exit 1; }
  5749. }
  5750. #
  5751. # Set up the sed scripts for CONFIG_FILES section.
  5752. #
  5753. # No need to generate the scripts if there are no CONFIG_FILES.
  5754. # This happens for instance when ./config.status config.h
  5755. if test -n "$CONFIG_FILES"; then
  5756. _ACEOF
  5757. ac_delim='%!_!# '
  5758. for ac_last_try in false false false false false :; do
  5759. cat >conf$$subs.sed <<_ACEOF
  5760. SHELL!$SHELL$ac_delim
  5761. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  5762. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  5763. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  5764. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  5765. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  5766. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  5767. exec_prefix!$exec_prefix$ac_delim
  5768. prefix!$prefix$ac_delim
  5769. program_transform_name!$program_transform_name$ac_delim
  5770. bindir!$bindir$ac_delim
  5771. sbindir!$sbindir$ac_delim
  5772. libexecdir!$libexecdir$ac_delim
  5773. datarootdir!$datarootdir$ac_delim
  5774. datadir!$datadir$ac_delim
  5775. sysconfdir!$sysconfdir$ac_delim
  5776. sharedstatedir!$sharedstatedir$ac_delim
  5777. localstatedir!$localstatedir$ac_delim
  5778. includedir!$includedir$ac_delim
  5779. oldincludedir!$oldincludedir$ac_delim
  5780. docdir!$docdir$ac_delim
  5781. infodir!$infodir$ac_delim
  5782. htmldir!$htmldir$ac_delim
  5783. dvidir!$dvidir$ac_delim
  5784. pdfdir!$pdfdir$ac_delim
  5785. psdir!$psdir$ac_delim
  5786. libdir!$libdir$ac_delim
  5787. localedir!$localedir$ac_delim
  5788. mandir!$mandir$ac_delim
  5789. DEFS!$DEFS$ac_delim
  5790. ECHO_C!$ECHO_C$ac_delim
  5791. ECHO_N!$ECHO_N$ac_delim
  5792. ECHO_T!$ECHO_T$ac_delim
  5793. LIBS!$LIBS$ac_delim
  5794. build_alias!$build_alias$ac_delim
  5795. host_alias!$host_alias$ac_delim
  5796. target_alias!$target_alias$ac_delim
  5797. CC!$CC$ac_delim
  5798. CFLAGS!$CFLAGS$ac_delim
  5799. LDFLAGS!$LDFLAGS$ac_delim
  5800. CPPFLAGS!$CPPFLAGS$ac_delim
  5801. ac_ct_CC!$ac_ct_CC$ac_delim
  5802. EXEEXT!$EXEEXT$ac_delim
  5803. OBJEXT!$OBJEXT$ac_delim
  5804. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  5805. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  5806. INSTALL_DATA!$INSTALL_DATA$ac_delim
  5807. CPP!$CPP$ac_delim
  5808. GREP!$GREP$ac_delim
  5809. EGREP!$EGREP$ac_delim
  5810. LIBOBJS!$LIBOBJS$ac_delim
  5811. LTLIBOBJS!$LTLIBOBJS$ac_delim
  5812. _ACEOF
  5813. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
  5814. break
  5815. elif $ac_last_try; then
  5816. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  5817. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  5818. { (exit 1); exit 1; }; }
  5819. else
  5820. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  5821. fi
  5822. done
  5823. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  5824. if test -n "$ac_eof"; then
  5825. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  5826. ac_eof=`expr $ac_eof + 1`
  5827. fi
  5828. cat >>$CONFIG_STATUS <<_ACEOF
  5829. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  5830. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  5831. _ACEOF
  5832. sed '
  5833. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  5834. s/^/s,@/; s/!/@,|#_!!_#|/
  5835. :n
  5836. t n
  5837. s/'"$ac_delim"'$/,g/; t
  5838. s/$/\\/; p
  5839. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  5840. ' >>$CONFIG_STATUS <conf$$subs.sed
  5841. rm -f conf$$subs.sed
  5842. cat >>$CONFIG_STATUS <<_ACEOF
  5843. :end
  5844. s/|#_!!_#|//g
  5845. CEOF$ac_eof
  5846. _ACEOF
  5847. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5848. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5849. # trailing colons and then remove the whole line if VPATH becomes empty
  5850. # (actually we leave an empty line to preserve line numbers).
  5851. if test "x$srcdir" = x.; then
  5852. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5853. s/:*\$(srcdir):*/:/
  5854. s/:*\${srcdir}:*/:/
  5855. s/:*@srcdir@:*/:/
  5856. s/^\([^=]*=[ ]*\):*/\1/
  5857. s/:*$//
  5858. s/^[^=]*=[ ]*$//
  5859. }'
  5860. fi
  5861. cat >>$CONFIG_STATUS <<\_ACEOF
  5862. fi # test -n "$CONFIG_FILES"
  5863. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  5864. do
  5865. case $ac_tag in
  5866. :[FHLC]) ac_mode=$ac_tag; continue;;
  5867. esac
  5868. case $ac_mode$ac_tag in
  5869. :[FHL]*:*);;
  5870. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  5871. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  5872. { (exit 1); exit 1; }; };;
  5873. :[FH]-) ac_tag=-:-;;
  5874. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  5875. esac
  5876. ac_save_IFS=$IFS
  5877. IFS=:
  5878. set x $ac_tag
  5879. IFS=$ac_save_IFS
  5880. shift
  5881. ac_file=$1
  5882. shift
  5883. case $ac_mode in
  5884. :L) ac_source=$1;;
  5885. :[FH])
  5886. ac_file_inputs=
  5887. for ac_f
  5888. do
  5889. case $ac_f in
  5890. -) ac_f="$tmp/stdin";;
  5891. *) # Look for the file first in the build tree, then in the source tree
  5892. # (if the path is not absolute). The absolute path cannot be DOS-style,
  5893. # because $ac_f cannot contain `:'.
  5894. test -f "$ac_f" ||
  5895. case $ac_f in
  5896. [\\/$]*) false;;
  5897. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  5898. esac ||
  5899. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  5900. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  5901. { (exit 1); exit 1; }; };;
  5902. esac
  5903. ac_file_inputs="$ac_file_inputs $ac_f"
  5904. done
  5905. # Let's still pretend it is `configure' which instantiates (i.e., don't
  5906. # use $as_me), people would be surprised to read:
  5907. # /* config.h. Generated by config.status. */
  5908. configure_input="Generated from "`IFS=:
  5909. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  5910. if test x"$ac_file" != x-; then
  5911. configure_input="$ac_file. $configure_input"
  5912. { echo "$as_me:$LINENO: creating $ac_file" >&5
  5913. echo "$as_me: creating $ac_file" >&6;}
  5914. fi
  5915. case $ac_tag in
  5916. *:-:* | *:-) cat >"$tmp/stdin";;
  5917. esac
  5918. ;;
  5919. esac
  5920. ac_dir=`$as_dirname -- "$ac_file" ||
  5921. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5922. X"$ac_file" : 'X\(//\)[^/]' \| \
  5923. X"$ac_file" : 'X\(//\)$' \| \
  5924. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  5925. echo X"$ac_file" |
  5926. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5927. s//\1/
  5928. q
  5929. }
  5930. /^X\(\/\/\)[^/].*/{
  5931. s//\1/
  5932. q
  5933. }
  5934. /^X\(\/\/\)$/{
  5935. s//\1/
  5936. q
  5937. }
  5938. /^X\(\/\).*/{
  5939. s//\1/
  5940. q
  5941. }
  5942. s/.*/./; q'`
  5943. { as_dir="$ac_dir"
  5944. case $as_dir in #(
  5945. -*) as_dir=./$as_dir;;
  5946. esac
  5947. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  5948. as_dirs=
  5949. while :; do
  5950. case $as_dir in #(
  5951. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  5952. *) as_qdir=$as_dir;;
  5953. esac
  5954. as_dirs="'$as_qdir' $as_dirs"
  5955. as_dir=`$as_dirname -- "$as_dir" ||
  5956. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  5957. X"$as_dir" : 'X\(//\)[^/]' \| \
  5958. X"$as_dir" : 'X\(//\)$' \| \
  5959. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  5960. echo X"$as_dir" |
  5961. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  5962. s//\1/
  5963. q
  5964. }
  5965. /^X\(\/\/\)[^/].*/{
  5966. s//\1/
  5967. q
  5968. }
  5969. /^X\(\/\/\)$/{
  5970. s//\1/
  5971. q
  5972. }
  5973. /^X\(\/\).*/{
  5974. s//\1/
  5975. q
  5976. }
  5977. s/.*/./; q'`
  5978. test -d "$as_dir" && break
  5979. done
  5980. test -z "$as_dirs" || eval "mkdir $as_dirs"
  5981. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  5982. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  5983. { (exit 1); exit 1; }; }; }
  5984. ac_builddir=.
  5985. case "$ac_dir" in
  5986. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5987. *)
  5988. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  5989. # A ".." for each directory in $ac_dir_suffix.
  5990. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  5991. case $ac_top_builddir_sub in
  5992. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  5993. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  5994. esac ;;
  5995. esac
  5996. ac_abs_top_builddir=$ac_pwd
  5997. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  5998. # for backward compatibility:
  5999. ac_top_builddir=$ac_top_build_prefix
  6000. case $srcdir in
  6001. .) # We are building in place.
  6002. ac_srcdir=.
  6003. ac_top_srcdir=$ac_top_builddir_sub
  6004. ac_abs_top_srcdir=$ac_pwd ;;
  6005. [\\/]* | ?:[\\/]* ) # Absolute name.
  6006. ac_srcdir=$srcdir$ac_dir_suffix;
  6007. ac_top_srcdir=$srcdir
  6008. ac_abs_top_srcdir=$srcdir ;;
  6009. *) # Relative name.
  6010. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  6011. ac_top_srcdir=$ac_top_build_prefix$srcdir
  6012. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  6013. esac
  6014. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  6015. case $ac_mode in
  6016. :F)
  6017. #
  6018. # CONFIG_FILE
  6019. #
  6020. case $INSTALL in
  6021. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  6022. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  6023. esac
  6024. _ACEOF
  6025. cat >>$CONFIG_STATUS <<\_ACEOF
  6026. # If the template does not know about datarootdir, expand it.
  6027. # FIXME: This hack should be removed a few years after 2.60.
  6028. ac_datarootdir_hack=; ac_datarootdir_seen=
  6029. case `sed -n '/datarootdir/ {
  6030. p
  6031. q
  6032. }
  6033. /@datadir@/p
  6034. /@docdir@/p
  6035. /@infodir@/p
  6036. /@localedir@/p
  6037. /@mandir@/p
  6038. ' $ac_file_inputs` in
  6039. *datarootdir*) ac_datarootdir_seen=yes;;
  6040. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  6041. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  6042. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  6043. _ACEOF
  6044. cat >>$CONFIG_STATUS <<_ACEOF
  6045. ac_datarootdir_hack='
  6046. s&@datadir@&$datadir&g
  6047. s&@docdir@&$docdir&g
  6048. s&@infodir@&$infodir&g
  6049. s&@localedir@&$localedir&g
  6050. s&@mandir@&$mandir&g
  6051. s&\\\${datarootdir}&$datarootdir&g' ;;
  6052. esac
  6053. _ACEOF
  6054. # Neutralize VPATH when `$srcdir' = `.'.
  6055. # Shell code in configure.ac might set extrasub.
  6056. # FIXME: do we really want to maintain this feature?
  6057. cat >>$CONFIG_STATUS <<_ACEOF
  6058. sed "$ac_vpsub
  6059. $extrasub
  6060. _ACEOF
  6061. cat >>$CONFIG_STATUS <<\_ACEOF
  6062. :t
  6063. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6064. s&@configure_input@&$configure_input&;t t
  6065. s&@top_builddir@&$ac_top_builddir_sub&;t t
  6066. s&@srcdir@&$ac_srcdir&;t t
  6067. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  6068. s&@top_srcdir@&$ac_top_srcdir&;t t
  6069. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  6070. s&@builddir@&$ac_builddir&;t t
  6071. s&@abs_builddir@&$ac_abs_builddir&;t t
  6072. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  6073. s&@INSTALL@&$ac_INSTALL&;t t
  6074. $ac_datarootdir_hack
  6075. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  6076. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  6077. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  6078. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  6079. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6080. which seems to be undefined. Please make sure it is defined." >&5
  6081. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  6082. which seems to be undefined. Please make sure it is defined." >&2;}
  6083. rm -f "$tmp/stdin"
  6084. case $ac_file in
  6085. -) cat "$tmp/out"; rm -f "$tmp/out";;
  6086. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  6087. esac
  6088. ;;
  6089. :H)
  6090. #
  6091. # CONFIG_HEADER
  6092. #
  6093. _ACEOF
  6094. # Transform confdefs.h into a sed script `conftest.defines', that
  6095. # substitutes the proper values into config.h.in to produce config.h.
  6096. rm -f conftest.defines conftest.tail
  6097. # First, append a space to every undef/define line, to ease matching.
  6098. echo 's/$/ /' >conftest.defines
  6099. # Then, protect against being on the right side of a sed subst, or in
  6100. # an unquoted here document, in config.status. If some macros were
  6101. # called several times there might be several #defines for the same
  6102. # symbol, which is useless. But do not sort them, since the last
  6103. # AC_DEFINE must be honored.
  6104. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  6105. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  6106. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  6107. # PARAMS is the parameter list in the macro definition--in most cases, it's
  6108. # just an empty string.
  6109. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  6110. ac_dB='\\)[ (].*,\\1define\\2'
  6111. ac_dC=' '
  6112. ac_dD=' ,'
  6113. uniq confdefs.h |
  6114. sed -n '
  6115. t rset
  6116. :rset
  6117. s/^[ ]*#[ ]*define[ ][ ]*//
  6118. t ok
  6119. d
  6120. :ok
  6121. s/[\\&,]/\\&/g
  6122. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  6123. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  6124. ' >>conftest.defines
  6125. # Remove the space that was appended to ease matching.
  6126. # Then replace #undef with comments. This is necessary, for
  6127. # example, in the case of _POSIX_SOURCE, which is predefined and required
  6128. # on some systems where configure will not decide to define it.
  6129. # (The regexp can be short, since the line contains either #define or #undef.)
  6130. echo 's/ $//
  6131. s,^[ #]*u.*,/* & */,' >>conftest.defines
  6132. # Break up conftest.defines:
  6133. ac_max_sed_lines=50
  6134. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  6135. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  6136. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  6137. # et cetera.
  6138. ac_in='$ac_file_inputs'
  6139. ac_out='"$tmp/out1"'
  6140. ac_nxt='"$tmp/out2"'
  6141. while :
  6142. do
  6143. # Write a here document:
  6144. cat >>$CONFIG_STATUS <<_ACEOF
  6145. # First, check the format of the line:
  6146. cat >"\$tmp/defines.sed" <<\\CEOF
  6147. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  6148. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  6149. b
  6150. :def
  6151. _ACEOF
  6152. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  6153. echo 'CEOF
  6154. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  6155. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  6156. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  6157. grep . conftest.tail >/dev/null || break
  6158. rm -f conftest.defines
  6159. mv conftest.tail conftest.defines
  6160. done
  6161. rm -f conftest.defines conftest.tail
  6162. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  6163. cat >>$CONFIG_STATUS <<\_ACEOF
  6164. if test x"$ac_file" != x-; then
  6165. echo "/* $configure_input */" >"$tmp/config.h"
  6166. cat "$ac_result" >>"$tmp/config.h"
  6167. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  6168. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  6169. echo "$as_me: $ac_file is unchanged" >&6;}
  6170. else
  6171. rm -f $ac_file
  6172. mv "$tmp/config.h" $ac_file
  6173. fi
  6174. else
  6175. echo "/* $configure_input */"
  6176. cat "$ac_result"
  6177. fi
  6178. rm -f "$tmp/out12"
  6179. ;;
  6180. esac
  6181. done # for ac_tag
  6182. { (exit 0); exit 0; }
  6183. _ACEOF
  6184. chmod +x $CONFIG_STATUS
  6185. ac_clean_files=$ac_clean_files_save
  6186. # configure is writing to config.log, and then calls config.status.
  6187. # config.status does its own redirection, appending to config.log.
  6188. # Unfortunately, on DOS this fails, as config.log is still kept open
  6189. # by configure, so config.status won't be able to write to it; its
  6190. # output is simply discarded. So we exec the FD to /dev/null,
  6191. # effectively closing config.log, so it can be properly (re)opened and
  6192. # appended to by config.status. When coming back to configure, we
  6193. # need to make the FD available again.
  6194. if test "$no_create" != yes; then
  6195. ac_cs_success=:
  6196. ac_config_status_args=
  6197. test "$silent" = yes &&
  6198. ac_config_status_args="$ac_config_status_args --quiet"
  6199. exec 5>/dev/null
  6200. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6201. exec 5>>config.log
  6202. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6203. # would make configure fail if this is the last instruction.
  6204. $ac_cs_success || { (exit 1); exit 1; }
  6205. fi