1
0

configure 193 KB

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