Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure 165KB

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