configure 200 KB

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